:root {
    --m-red: #b91f2d;
    --m-red-dark: #7e111c;
    --m-navy: #123244;
    --m-teal: #008c95;
    --m-bg: #f4f8fa;
    --m-card: #ffffff;
    --m-text: #17252f;
    --m-muted: #657781;
    --m-line: #d9e6ea;
    --m-shadow: 0 18px 44px rgba(18, 50, 68, .12);
}
body { background: var(--m-bg) !important; color: var(--m-text); }
.iqm-shell { width: min(1180px, calc(100% - 32px)); margin: 30px auto 70px; }
.iqm-hero { background: linear-gradient(135deg, rgba(18,50,68,.96), rgba(126,17,28,.82)); color: #fff; border-radius: 8px; padding: 34px; box-shadow: var(--m-shadow); margin-bottom: 22px; }
.iqm-hero h1 { margin: 0; color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: 0; line-height: 1.05; }
.iqm-hero p { color: rgba(255,255,255,.84); max-width: 760px; margin: 14px 0 0; line-height: 1.7; }
.iqm-kicker { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: #ffc5ca; font-size: .78rem; margin-bottom: 10px; }
.iqm-card { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 8px; box-shadow: var(--m-shadow); padding: 26px; margin-bottom: 22px; }
.iqm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.iqm-field { grid-column: span 4; }
.iqm-field.wide { grid-column: span 6; }
.iqm-field.full { grid-column: 1 / -1; }
.iqm-field label { display: block; color: var(--m-navy); font-weight: 800; margin-bottom: 7px; }
.iqm-field input, .iqm-field select { width: 100%; min-height: 46px; border: 1px solid var(--m-line); border-radius: 6px; padding: 10px 12px; background: #fff; color: var(--m-text); }
.iqm-field input:focus, .iqm-field select:focus { outline: 3px solid rgba(0,140,149,.14); border-color: var(--m-teal); }
.iqm-help { color: var(--m-muted); display: block; margin-top: 6px; font-size: .88rem; line-height: 1.45; }
.iqm-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.iqm-btn { border: 0; border-radius: 6px; min-height: 44px; padding: 0 18px; font-weight: 900; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iqm-btn.primary { background: var(--m-red); color: #fff; }
.iqm-btn.primary:hover { background: var(--m-red-dark); color: #fff; }
.iqm-btn.secondary { background: var(--m-navy); color: #fff; }
.iqm-btn.soft { background: #eef6f7; color: var(--m-navy); }
.iqm-btn.danger { background: #ba1e2b; color: #fff; }
.iqm-alert { border-radius: 6px; padding: 13px 15px; margin-bottom: 16px; font-weight: 800; }
.iqm-alert.success { background: #e8f7ef; color: #126b3b; border: 1px solid #bfe7d1; }
.iqm-alert.error { background: #fff0f1; color: #9e1724; border: 1px solid #f1c1c6; }
.iqm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.iqm-stat { background: #fff; border: 1px solid var(--m-line); border-radius: 8px; padding: 18px; box-shadow: var(--m-shadow); }
.iqm-stat strong { display: block; font-size: 2rem; color: var(--m-navy); line-height: 1; }
.iqm-stat span { color: var(--m-muted); font-weight: 800; }
.iqm-section-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.iqm-section-title h2 { margin: 0; color: var(--m-navy); font-size: 1.45rem; }
.iqm-table { width: 100%; border-collapse: collapse; }
.iqm-table th, .iqm-table td { padding: 12px 10px; border-bottom: 1px solid var(--m-line); text-align: left; vertical-align: top; }
.iqm-table th { color: var(--m-navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.iqm-table td { color: var(--m-text); }
.iqm-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: .78rem; font-weight: 900; }
.iqm-badge.pending { background: #fff4d9; color: #8a5d00; }
.iqm-badge.approved { background: #e8f7ef; color: #126b3b; }
.iqm-profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; }
.iqm-photo { width: 150px; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid var(--m-line); background: #eef6f7; }
.iqm-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.iqm-detail { border: 1px solid var(--m-line); border-radius: 6px; padding: 12px; background: #fbfdfe; }
.iqm-detail span { display: block; color: var(--m-muted); font-size: .82rem; font-weight: 800; margin-bottom: 4px; }
.iqm-detail strong { color: var(--m-navy); overflow-wrap: anywhere; }
@media (max-width: 900px) { .iqm-field, .iqm-field.wide { grid-column: 1 / -1; } .iqm-stats { grid-template-columns: repeat(2, 1fr); } .iqm-profile { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .iqm-shell { width: min(100% - 22px, 1180px); margin-top: 18px; } .iqm-hero, .iqm-card { padding: 20px; } .iqm-stats, .iqm-detail-list { grid-template-columns: 1fr; } .iqm-table { display: block; overflow-x: auto; } }
.iqm-login-page { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #f7fbff 0%, #eef7f6 45%, #fff7f7 100%); }
.iqm-login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.iqm-login-card { width: min(980px, 100%); min-height: 520px; display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border: 1px solid #e6edf2; box-shadow: 0 24px 70px rgba(17, 45, 78, .13); border-radius: 14px; overflow: hidden; }
.iqm-login-copy { padding: 56px; color: #fff; background: linear-gradient(145deg, rgba(144, 24, 31, .94), rgba(17, 45, 78, .96)), url('../images/pages/bg-01.png') center/cover; display: flex; flex-direction: column; justify-content: flex-end; }
.iqm-login-copy h1 { color: #fff; font-size: 42px; line-height: 1.1; margin: 12px 0; }
.iqm-login-copy p { color: rgba(255,255,255,.86); font-size: 17px; max-width: 430px; }
.iqm-login-form { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.iqm-login-form label, .iqm-grid-form label, .iqm-upload-actions label { color: #263847; font-weight: 700; display: grid; gap: 8px; }
.iqm-login-form input, .iqm-grid-form input, .iqm-grid-form select, .iqm-upload-actions input { width: 100%; border: 1px solid #d8e3ea; border-radius: 8px; padding: 13px 14px; background: #fbfdff; color: #182b3a; }
.iqm-admin-page { background: #f5f8fb; min-height: 100vh; }
.iqm-admin-shell { padding-top: 26px; padding-bottom: 44px; }
.iqm-admin-hero, .iqm-profile-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 28px; background: linear-gradient(135deg, #ffffff, #f6fbfb); border: 1px solid #e1ebf0; border-radius: 8px; margin-bottom: 18px; }
.iqm-admin-hero h1, .iqm-profile-hero h1 { margin: 8px 0; color: #112d4e; font-size: 32px; line-height: 1.15; }
.iqm-admin-hero p, .iqm-profile-hero p { color: #637282; margin: 0; max-width: 760px; }
.iqm-admin-user { min-width: 180px; padding: 14px 16px; background: #fff; border: 1px solid #e1ebf0; border-radius: 8px; }
.iqm-admin-user span, .iqm-kicker, .iqm-detail span, .iqm-stat span { display: block; color: #8a1f2d; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.iqm-admin-user strong { color: #112d4e; }
.iqm-alert { padding: 13px 16px; border-radius: 8px; margin: 12px 0; font-weight: 700; }
.iqm-alert.success { background: #e8f7ef; color: #12633b; border: 1px solid #bfe8d0; }
.iqm-alert.error { background: #fff0f1; color: #9a1b2c; border: 1px solid #f4c9cf; }
.iqm-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.iqm-stat, .iqm-panel, .iqm-profile-card { background: #fff; border: 1px solid #e1ebf0; border-radius: 8px; box-shadow: 0 10px 30px rgba(17, 45, 78, .06); }
.iqm-stat { padding: 20px; }
.iqm-stat strong { display: block; color: #112d4e; font-size: 34px; margin-top: 6px; }
.iqm-panel { padding: 22px; margin: 18px 0; }
.iqm-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.iqm-panel-head h2 { margin: 6px 0 0; color: #112d4e; font-size: 22px; }
.iqm-table-wrap { overflow-x: auto; }
.iqm-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.iqm-table th { text-align: left; color: #627383; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #e1ebf0; padding: 12px; }
.iqm-table td { padding: 14px 12px; border-bottom: 1px solid #eef3f6; color: #263847; vertical-align: middle; }
.iqm-actions { white-space: nowrap; text-align: right; }
.iqm-small-btn, .iqm-primary-btn, .iqm-danger-btn { border: 0; border-radius: 8px; padding: 11px 15px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.iqm-primary-btn, .iqm-small-btn { background: #8f1d2b; color: #fff; }
.iqm-small-btn.ghost { background: #eef6f7; color: #184c61; }
.iqm-danger-btn { background: #263847; color: #fff; }
.iqm-primary-btn.full { width: 100%; margin-top: 16px; }
.iqm-empty { text-align: center; color: #748491; padding: 28px !important; }
.iqm-back-link { display: inline-flex; color: #1e6a78; font-weight: 800; text-decoration: none; margin-bottom: 12px; }
.iqm-status { display: inline-flex; border-radius: 999px; padding: 9px 13px; font-weight: 900; white-space: nowrap; }
.iqm-status.pending { background: #fff5df; color: #8a5a00; }
.iqm-status.approved { background: #e8f7ef; color: #12633b; }
.iqm-profile-grid { display: grid; grid-template-columns: 310px 1fr; gap: 18px; align-items: start; }
.iqm-profile-card { padding: 22px; text-align: center; }
.iqm-avatar { width: 164px; height: 164px; object-fit: cover; border-radius: 50%; border: 6px solid #f0f6f8; margin-bottom: 16px; background: #eef3f6; }
.iqm-profile-card h2 { color: #112d4e; font-size: 24px; margin: 8px 0; }
.iqm-profile-card p { color: #637282; overflow-wrap: anywhere; }
.iqm-mini-grid, .iqm-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.iqm-mini-grid { grid-template-columns: 1fr; margin: 18px 0; text-align: left; }
.iqm-detail { background: #f8fbfd; border: 1px solid #e8f0f4; border-radius: 8px; padding: 13px; }
.iqm-detail strong { display: block; margin-top: 5px; color: #263847; overflow-wrap: anywhere; }
.iqm-action-row, .iqm-upload-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.iqm-grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.iqm-upload-actions form { flex: 1 1 280px; display: grid; gap: 12px; background: #f8fbfd; border: 1px solid #e8f0f4; border-radius: 8px; padding: 14px; }
.iqm-public-profile { background: #f5f8fb; }
.iqm-profile-hero.public { margin-top: 24px; }
@media (max-width: 900px) { .iqm-login-card, .iqm-profile-grid, .iqm-grid-form, .iqm-stats-grid { grid-template-columns: 1fr; } .iqm-login-copy, .iqm-login-form { padding: 32px; } .iqm-admin-hero, .iqm-profile-hero { align-items: flex-start; flex-direction: column; } .iqm-mini-grid, .iqm-detail-grid { grid-template-columns: 1fr; } }

/* Standalone public membership application */
.iqm-application-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 10%, rgba(185, 31, 45, .10), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(0, 140, 149, .14), transparent 30%),
        linear-gradient(180deg, #f8fbfc 0%, #eef5f7 100%);
    color: var(--m-text);
    font-family: Arial, Helvetica, sans-serif;
}
.iqm-apply-shell {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 64px;
}
.iqm-apply-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 26px;
    align-items: end;
    min-height: 330px;
    padding: 34px;
    border: 1px solid rgba(217, 230, 234, .95);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,250,251,.91)),
        url('../images/animation-bg.jpg') center/cover;
    box-shadow: 0 24px 70px rgba(18, 50, 68, .13);
}
.iqm-apply-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 52%, rgba(255,255,255,.62) 100%);
    pointer-events: none;
}
.iqm-apply-hero > * { position: relative; z-index: 1; }
.iqm-apply-brand {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e4eef2;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(18, 50, 68, .12);
}
.iqm-apply-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}
.iqm-apply-brand span {
    display: block;
    color: #8a1f2d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.iqm-apply-brand strong {
    display: block;
    margin-top: 3px;
    color: #123244;
    font-size: 15px;
}
.iqm-apply-hero-copy {
    max-width: 710px;
    text-align: left;
}
.iqm-apply-hero-copy .iqm-kicker {
    color: #8a1f2d;
    margin-bottom: 12px;
}
.iqm-apply-hero-copy h1 {
    margin: 0;
    color: #102d3e;
    font-size: clamp(2.25rem, 5vw, 4.55rem);
    line-height: 1.02;
    letter-spacing: 0;
}
.iqm-apply-hero-copy p {
    margin: 18px 0 0;
    max-width: 660px;
    color: #506575;
    font-size: 17px;
    line-height: 1.75;
}
.iqm-apply-hero-note {
    width: 260px;
    padding: 18px;
    border: 1px solid #dce9ee;
    border-radius: 10px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
}
.iqm-apply-hero-note span {
    display: block;
    color: #008c95;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.iqm-apply-hero-note strong {
    color: #183747;
    font-size: 14px;
    line-height: 1.55;
}
.iqm-apply-form {
    margin-top: 22px;
    background: #fff;
    border: 1px solid #dce9ee;
    border-radius: 12px;
    box-shadow: 0 18px 54px rgba(18, 50, 68, .10);
    overflow: hidden;
}
.iqm-form-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    padding: 28px;
    border-bottom: 1px solid #e8f0f4;
}
.iqm-form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.iqm-form-section-head > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef8f8;
    color: #007d86;
    font-weight: 900;
}
.iqm-form-section-head h2 {
    margin: 0;
    color: #123244;
    font-size: 21px;
    line-height: 1.2;
}
.iqm-form-section-head p {
    margin: 7px 0 0;
    color: #697b86;
    line-height: 1.55;
}
.iqm-apply-grid {
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}
.iqm-apply-grid label {
    min-width: 0;
    color: #263847;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
}
.iqm-apply-grid input,
.iqm-apply-grid select {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 11px 13px;
    border: 1px solid #d8e5ea;
    border-radius: 8px;
    background: #fbfdfe;
    color: #17252f;
    font-size: 15px;
    text-align: left;
    direction: ltr;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.iqm-apply-grid input:focus,
.iqm-apply-grid select:focus {
    outline: 0;
    border-color: #008c95;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 140, 149, .13);
}
.iqm-file-field {
    grid-column: span 3;
    padding: 15px;
    border: 1px dashed #cddfe5;
    border-radius: 10px;
    background: #f8fbfc;
}
.iqm-file-field small {
    display: block;
    margin-top: 7px;
    color: #6c7f89;
    font-weight: 700;
    line-height: 1.45;
}
.iqm-apply-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    background: linear-gradient(90deg, #f8fbfc, #fff);
}
.iqm-apply-submit p {
    margin: 0;
    max-width: 620px;
    color: #5d707b;
    line-height: 1.6;
}
.iqm-apply-submit button {
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 9px;
    background: #b91f2d;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(185, 31, 45, .24);
}
.iqm-apply-submit button:hover { background: #7e111c; }
@media (max-width: 980px) {
    .iqm-apply-hero,
    .iqm-form-section,
    .iqm-apply-submit {
        grid-template-columns: 1fr;
    }
    .iqm-apply-hero-note { width: auto; }
    .iqm-apply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .iqm-file-field { grid-column: span 2; }
    .iqm-apply-submit { align-items: flex-start; }
}
@media (max-width: 640px) {
    .iqm-apply-shell { width: min(100% - 22px, 1120px); padding-top: 16px; }
    .iqm-apply-hero { min-height: 0; padding: 22px; }
    .iqm-apply-brand { align-items: flex-start; }
    .iqm-apply-brand img { width: 54px; height: 54px; }
    .iqm-apply-hero-copy h1 { font-size: 2rem; }
    .iqm-form-section { padding: 20px; }
    .iqm-apply-grid { grid-template-columns: 1fr; }
    .iqm-file-field { grid-column: span 1; }
    .iqm-apply-submit { padding: 20px; flex-direction: column; }
    .iqm-apply-submit button { width: 100%; }
}

/* Refined public application experience */
.iqm-application-page {
    background:
        linear-gradient(180deg, rgba(243, 248, 250, .96), rgba(237, 245, 247, .98)),
        radial-gradient(circle at 12% 4%, rgba(185, 31, 45, .10), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(0, 140, 149, .13), transparent 26%) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.iqm-apply-v2 {
    width: min(1240px, calc(100% - 40px));
    padding: 22px 0 54px;
}
.iqm-apply-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.iqm-apply-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #112f42;
    text-decoration: none;
    font-weight: 900;
}
.iqm-apply-logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(17, 45, 78, .11);
}
.iqm-apply-logo span {
    display: grid;
    gap: 2px;
    font-size: 13px;
    color: #49606d;
}
.iqm-apply-logo strong {
    color: #8a1f2d;
    letter-spacing: .08em;
}
.iqm-apply-secure {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #d9e8ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #466170;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
}
.iqm-apply-hero-v2 {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: stretch;
    gap: 22px;
    padding: 28px;
    border-radius: 18px;
    background:
        linear-gradient(120deg, #ffffff 0%, rgba(255,255,255,.94) 54%, rgba(244,250,251,.88) 100%),
        url('../images/animation-bg.jpg') right center / cover;
    box-shadow: 0 22px 70px rgba(18, 50, 68, .12);
}
.iqm-apply-hero-v2::before { display: none; }
.iqm-apply-hero-v2 .iqm-apply-hero-copy {
    max-width: 760px;
    padding: 8px 0 4px;
}
.iqm-apply-hero-v2 .iqm-kicker {
    color: #008c95;
    font-size: 12px;
    letter-spacing: .12em;
}
.iqm-apply-hero-v2 h1 {
    max-width: 740px;
    color: #123244;
    font-size: clamp(2.15rem, 4.2vw, 4.1rem);
    line-height: 1.03;
    text-wrap: balance;
}
.iqm-apply-hero-v2 p {
    max-width: 690px;
    margin-top: 15px;
    color: #4d6573;
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.75;
}
.iqm-apply-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}
.iqm-apply-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf8f8;
    color: #007982;
    font-size: 12px;
    font-weight: 900;
}
.iqm-apply-summary {
    align-self: end;
    padding: 19px 20px;
    border: 1px solid #d8e8ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 16px 40px rgba(18, 50, 68, .08);
}
.iqm-apply-summary span {
    display: block;
    margin-bottom: 12px;
    color: #8a1f2d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.iqm-apply-summary ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.iqm-apply-summary li {
    position: relative;
    padding-left: 20px;
    color: #294354;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}
.iqm-apply-summary li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #008c95;
}
.iqm-apply-form-v2 {
    margin-top: 18px;
    border-radius: 18px;
    box-shadow: 0 20px 70px rgba(18, 50, 68, .10);
}
.iqm-form-section-v2 {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    padding: 24px 28px;
    background: #fff;
}
.iqm-form-section-v2:nth-of-type(even) {
    background: #fbfdfd;
}
.iqm-form-section-v2 .iqm-form-section-head {
    gap: 13px;
    align-self: start;
    position: sticky;
    top: 18px;
}
.iqm-form-section-v2 .iqm-form-section-head > span {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    background: linear-gradient(180deg, #e8f8f8, #f3fbfb);
    color: #00818a;
    font-size: 15px;
}
.iqm-form-section-v2 .iqm-form-section-head h2 {
    color: #123244;
    font-size: 20px;
    line-height: 1.18;
}
.iqm-form-section-v2 .iqm-form-section-head p {
    max-width: 170px;
    color: #617683;
    font-size: 14px;
}
.iqm-apply-grid-v2 {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px 18px;
    align-items: start;
}
.iqm-apply-grid-v2 label {
    display: grid;
    gap: 7px;
    color: #123244;
    font-size: 13px;
    line-height: 1.2;
}
.iqm-apply-grid-v2 label.span-2 { grid-column: span 2; }
.iqm-apply-grid-v2 label.span-3 { grid-column: 1 / -1; }
.iqm-apply-grid-v2 input,
.iqm-apply-grid-v2 select {
    min-height: 44px;
    margin-top: 0;
    padding: 10px 12px;
    border-color: #d5e3e8;
    border-radius: 10px;
    background: #f9fcfd;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.iqm-apply-grid-v2 input:hover,
.iqm-apply-grid-v2 select:hover {
    border-color: #bcd5dd;
    background: #fff;
}
.iqm-apply-grid-v2 input:focus,
.iqm-apply-grid-v2 select:focus {
    border-color: #008c95;
    box-shadow: 0 0 0 4px rgba(0, 140, 149, .12);
}
.iqm-apply-grid-v2 input[type="file"] {
    padding: 9px;
    background: #fff;
}
.iqm-apply-grid-v2 input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 8px;
    background: #123244;
    color: #fff;
    padding: 9px 12px;
    font-weight: 900;
    cursor: pointer;
}
.iqm-file-field.span-3 {
    display: grid;
    grid-column: 1 / -1;
    padding: 15px;
    border: 1px solid #d8e8ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfefe, #f7fbfc);
}
.iqm-file-field.span-3 small {
    color: #5c7380;
    font-size: 12px;
}
.iqm-apply-submit-v2 {
    padding: 22px 28px;
    background: linear-gradient(90deg, #f8fbfc, #ffffff);
}
.iqm-apply-submit-v2 p {
    color: #506675;
    font-size: 14px;
}
.iqm-apply-submit-v2 button {
    min-width: 210px;
    min-height: 48px;
    border-radius: 11px;
    background: linear-gradient(135deg, #bd1f31, #941827);
    box-shadow: 0 14px 30px rgba(185, 31, 45, .22);
    transition: transform .16s ease, box-shadow .16s ease;
}
.iqm-apply-submit-v2 button:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 36px rgba(185, 31, 45, .28);
}
@media (max-width: 1100px) {
    .iqm-apply-v2 { width: min(100% - 28px, 1240px); }
    .iqm-apply-hero-v2 { grid-template-columns: 1fr; }
    .iqm-apply-summary { align-self: stretch; }
    .iqm-apply-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .iqm-apply-grid-v2 label.span-2 { grid-column: span 2; }
}
@media (max-width: 820px) {
    .iqm-apply-v2 { width: min(100% - 22px, 1240px); padding-top: 14px; }
    .iqm-apply-topbar { align-items: flex-start; flex-direction: column; }
    .iqm-apply-hero-v2 { padding: 22px; border-radius: 16px; }
    .iqm-form-section-v2 {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px;
    }
    .iqm-form-section-v2 .iqm-form-section-head {
        position: static;
    }
    .iqm-form-section-v2 .iqm-form-section-head p { max-width: none; }
}
@media (max-width: 620px) {
    .iqm-apply-logo img { width: 42px; height: 42px; }
    .iqm-apply-secure { width: 100%; justify-content: center; }
    .iqm-apply-hero-v2 h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
    .iqm-apply-hero-v2 p { font-size: 15px; line-height: 1.65; }
    .iqm-apply-meta { gap: 7px; }
    .iqm-apply-meta span { min-height: 30px; font-size: 11px; }
    .iqm-apply-summary { padding: 16px; }
    .iqm-apply-grid-v2 { grid-template-columns: 1fr; gap: 14px; }
    .iqm-apply-grid-v2 label.span-2,
    .iqm-apply-grid-v2 label.span-3,
    .iqm-file-field.span-3 { grid-column: 1 / -1; }
    .iqm-apply-grid-v2 input,
    .iqm-apply-grid-v2 select { min-height: 46px; font-size: 16px; }
    .iqm-apply-submit-v2 {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    .iqm-apply-submit-v2 button { width: 100%; }
}
@media (max-width: 390px) {
    .iqm-apply-v2 { width: min(100% - 16px, 1240px); }
    .iqm-apply-hero-v2,
    .iqm-form-section-v2 { padding: 18px; }
    .iqm-apply-logo span { font-size: 12px; }
}

/* Final polish: tighter desktop form and smoother responsive behavior */
.iqm-apply-v2 {
    width: min(1160px, calc(100% - 40px));
}
.iqm-apply-hero-v2 {
    grid-template-columns: minmax(0, 1fr) 285px;
    padding: 24px 26px;
}
.iqm-apply-hero-v2 h1 {
    max-width: 680px;
    font-size: clamp(2rem, 3.45vw, 3.35rem);
}
.iqm-apply-hero-v2 p {
    max-width: 620px;
}
.iqm-apply-form-v2 {
    border-color: #d4e3e9;
}
.iqm-form-section-v2 {
    grid-template-columns: 205px minmax(0, 1fr);
    padding: 22px 24px;
}
.iqm-apply-grid-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
}
.iqm-apply-grid-v2 input,
.iqm-apply-grid-v2 select {
    min-height: 42px;
    padding: 9px 11px;
}
.iqm-file-field.span-3 {
    padding: 13px 14px;
}
.iqm-apply-submit-v2 {
    padding: 20px 24px;
}
@media (min-width: 1280px) {
    .iqm-apply-v2 { width: min(1140px, calc(100% - 48px)); }
}
@media (max-width: 1100px) {
    .iqm-apply-v2 { width: min(100% - 28px, 1160px); }
    .iqm-apply-hero-v2 { grid-template-columns: 1fr; }
    .iqm-apply-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .iqm-apply-v2 { width: min(100% - 20px, 1160px); }
    .iqm-apply-topbar { margin-bottom: 12px; }
    .iqm-apply-hero-v2 { padding: 20px; }
    .iqm-form-section-v2 { padding: 20px; }
    .iqm-form-section-v2 .iqm-form-section-head {
        padding-bottom: 2px;
        border-bottom: 1px solid #edf3f5;
    }
    .iqm-apply-submit-v2 { padding: 18px 20px; }
}
@media (max-width: 540px) {
    .iqm-apply-v2 { width: min(100% - 14px, 1160px); }
    .iqm-apply-topbar { gap: 10px; }
    .iqm-apply-logo { width: 100%; }
    .iqm-apply-hero-v2 { padding: 18px; border-radius: 14px; }
    .iqm-apply-summary { display: none; }
    .iqm-apply-meta span { flex: 1 1 auto; justify-content: center; }
    .iqm-form-section-v2 { padding: 18px; }
    .iqm-form-section-head > span { width: 34px; height: 34px; flex-basis: 34px; }
    .iqm-form-section-v2 .iqm-form-section-head h2 { font-size: 18px; }
    .iqm-apply-grid-v2 label { font-size: 12px; }
    .iqm-apply-grid-v2 input[type="file"]::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 8px;
    }
}

/* IQSOH premium public application v3 */
.iqm-application-pro {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(247, 251, 252, .98), rgba(235, 244, 247, .98)),
        radial-gradient(circle at 12% 0%, rgba(183, 31, 45, .12), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(0, 140, 149, .13), transparent 30%) !important;
    color: #102b3b;
    font-family: Inter, Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.iqm-pro-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 56px;
}
.iqm-pro-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}
.iqm-pro-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #123244;
    text-decoration: none;
}
.iqm-pro-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    padding: 5px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 50, 68, .12);
}
.iqm-pro-logo span {
    display: grid;
    gap: 2px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
}
.iqm-pro-logo strong {
    color: #a7192a;
    font-size: 12px;
    letter-spacing: .13em;
}
.iqm-pro-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #d9e7ed;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: #54707f;
    font-size: 12px;
    font-weight: 800;
}
.iqm-pro-top-actions strong {
    color: #007f88;
}
.iqm-pro-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid #d7e7ed;
    border-radius: 22px;
    background:
        linear-gradient(120deg, #ffffff 0%, rgba(255,255,255,.96) 58%, rgba(241,248,249,.92) 100%),
        url('../images/animation-bg.jpg') right center / cover;
    box-shadow: 0 24px 70px rgba(18, 50, 68, .11);
}
.iqm-pro-kicker {
    display: block;
    margin-bottom: 10px;
    color: #008c95;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.iqm-pro-hero h1 {
    max-width: 690px;
    margin: 0;
    color: #102f42;
    font-size: clamp(2.15rem, 4vw, 3.65rem);
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: balance;
}
.iqm-pro-hero p {
    max-width: 650px;
    margin: 14px 0 0;
    color: #4e6572;
    font-size: 16px;
    line-height: 1.7;
}
.iqm-pro-checklist {
    align-self: end;
    padding: 18px;
    border: 1px solid #d8e7ed;
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 36px rgba(18, 50, 68, .08);
}
.iqm-pro-checklist span {
    display: block;
    margin-bottom: 12px;
    color: #a7192a;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.iqm-pro-checklist ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.iqm-pro-checklist li {
    position: relative;
    padding-left: 19px;
    color: #263f50;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}
.iqm-pro-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #008c95;
}
.iqm-pro-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}
.iqm-pro-progress span {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e7ed;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    color: #617786;
    font-size: 12px;
    font-weight: 900;
}
.iqm-pro-progress span.active {
    background: #123244;
    border-color: #123244;
    color: #fff;
}
.iqm-pro-form {
    overflow: hidden;
    border: 1px solid #d6e6ec;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(18, 50, 68, .11);
}
.iqm-pro-section {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid #e6eff3;
}
.iqm-pro-section:nth-of-type(even) {
    background: #fbfdfd;
}
.iqm-pro-section-head {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}
.iqm-pro-section-head > span {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf8f8;
    color: #007f88;
    font-size: 15px;
    font-weight: 950;
}
.iqm-pro-section-head h2 {
    margin: 0;
    color: #102f42;
    font-size: 20px;
    line-height: 1.2;
}
.iqm-pro-section-head p {
    max-width: 170px;
    margin: 7px 0 0;
    color: #667b88;
    font-size: 13px;
    line-height: 1.5;
}
.iqm-pro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    direction: ltr;
}
.iqm-pro-grid label {
    min-width: 0;
    display: grid;
    gap: 7px;
    color: #112f42;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
    text-align: left;
}
.iqm-pro-grid label.wide { grid-column: span 2; }
.iqm-pro-grid label.full { grid-column: 1 / -1; }
.iqm-pro-grid input,
.iqm-pro-grid select {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid #d3e2e8;
    border-radius: 11px;
    background: #f9fcfd;
    color: #112f42;
    font-size: 14px;
    text-align: left;
    direction: ltr;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.iqm-pro-grid input::placeholder {
    color: #9aadba;
}
.iqm-pro-grid input:hover,
.iqm-pro-grid select:hover {
    border-color: #b8d2da;
    background: #fff;
}
.iqm-pro-grid input:focus,
.iqm-pro-grid select:focus {
    outline: 0;
    border-color: #008c95;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 140, 149, .13);
}
.iqm-pro-file {
    padding: 15px;
    border: 1px dashed #c8dfe6;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfefe, #f6fbfc);
}
.iqm-pro-file > span {
    color: #112f42;
    font-size: 13px;
    font-weight: 950;
}
.iqm-pro-file input[type="file"] {
    margin-top: 10px;
    background: #fff;
}
.iqm-pro-file input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 9px;
    background: #123244;
    color: #fff;
    padding: 8px 12px;
    font-weight: 900;
    cursor: pointer;
}
.iqm-pro-file small {
    display: block;
    margin-top: 7px;
    color: #607784;
    font-size: 12px;
    font-weight: 800;
}
.iqm-pro-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 21px 24px;
    background: linear-gradient(90deg, #f7fbfc, #fff);
}
.iqm-pro-submit p {
    max-width: 620px;
    margin: 0;
    color: #516977;
    font-size: 14px;
    line-height: 1.55;
}
.iqm-pro-submit button {
    min-width: 215px;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #bd1f31, #941827);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(185, 31, 45, .24);
    transition: transform .15s ease, box-shadow .15s ease;
}
.iqm-pro-submit button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(185, 31, 45, .30);
}
@media (max-width: 1080px) {
    .iqm-pro-shell { width: min(100% - 28px, 1120px); }
    .iqm-pro-hero { grid-template-columns: 1fr; }
    .iqm-pro-checklist { align-self: stretch; }
    .iqm-pro-section { grid-template-columns: 1fr; gap: 16px; }
    .iqm-pro-section-head p { max-width: none; }
}
@media (max-width: 820px) {
    .iqm-pro-shell { width: min(100% - 22px, 1120px); padding-top: 16px; }
    .iqm-pro-topbar { align-items: flex-start; flex-direction: column; }
    .iqm-pro-top-actions { width: 100%; justify-content: center; }
    .iqm-pro-hero { padding: 20px; border-radius: 18px; }
    .iqm-pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .iqm-pro-grid label.wide { grid-column: 1 / -1; }
    .iqm-pro-section { padding: 20px; }
}
@media (max-width: 600px) {
    .iqm-pro-shell { width: min(100% - 14px, 1120px); }
    .iqm-pro-logo img { width: 44px; height: 44px; }
    .iqm-pro-hero h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
    .iqm-pro-hero p { font-size: 15px; line-height: 1.6; }
    .iqm-pro-checklist { display: none; }
    .iqm-pro-progress { grid-template-columns: 1fr; }
    .iqm-pro-progress span { min-height: 34px; }
    .iqm-pro-grid { grid-template-columns: 1fr; gap: 13px; }
    .iqm-pro-grid label.wide,
    .iqm-pro-grid label.full { grid-column: 1 / -1; }
    .iqm-pro-grid input,
    .iqm-pro-grid select { min-height: 46px; font-size: 16px; }
    .iqm-pro-submit { flex-direction: column; align-items: stretch; padding: 18px; }
    .iqm-pro-submit button { width: 100%; }
    .iqm-pro-file input[type="file"]::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 8px;
    }
}
@media (max-width: 390px) {
    .iqm-pro-hero,
    .iqm-pro-section { padding: 16px; }
    .iqm-pro-section-head > span { width: 34px; height: 34px; flex-basis: 34px; }
    .iqm-pro-section-head h2 { font-size: 18px; }
}

/* IQSOH membership admin redesign */
.iqm-admin-page,
.iqm-admin-page * {
    box-sizing: border-box;
}
body:has(.iqm-admin-page) {
    background:
        linear-gradient(180deg, #f7fbfc 0%, #eef6f8 100%) !important;
    color: #0e2a3b;
}
body:has(.iqm-admin-page) .navbar,
body:has(.iqm-admin-page) .overlay,
body:has(.iqm-admin-page) #leftsidebar {
    display: none !important;
}
.iqm-admin-page.content {
    margin: 0 !important;
    padding: 0 0 46px !important;
    min-height: auto !important;
}
.iqm-admin-shell {
    width: min(1240px, calc(100% - 40px));
    max-width: 1240px;
    margin: 0 auto;
    padding: 0;
    direction: ltr;
}
.iqm-admin-nav {
    width: min(1240px, calc(100% - 40px));
    margin: 18px auto 18px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d8e7ed;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 20px 55px rgba(16, 47, 66, .08);
    direction: ltr;
}
.iqm-admin-signed {
    flex: 0 0 auto;
    min-width: 220px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 8px;
    border: 1px solid #d9e8ed;
    border-radius: 14px;
    background: #fff;
    text-align: left;
}
.iqm-admin-signed img {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 4px;
    border-radius: 12px;
    background: #f8fcfd;
}
.iqm-admin-signed span {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.iqm-admin-signed small {
    color: #8a1f2d;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}
.iqm-admin-signed strong {
    color: #102f42;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}
.iqm-admin-nav-menu {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
}
.iqm-admin-nav-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #4f6877;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}
.iqm-admin-nav-link i {
    color: inherit;
    font-size: 15px;
}
.iqm-admin-nav-link:hover,
.iqm-admin-nav-link.active {
    border-color: #cfe3e9;
    background: #eff9fa;
    color: #007f88;
}
.iqm-admin-nav-link.danger {
    color: #9f1b2c;
}
.iqm-admin-hero,
.iqm-profile-hero {
    border: 1px solid #d9e8ed;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,251,252,.96)),
        url('../images/animation-bg.jpg') right center / cover;
    box-shadow: 0 22px 60px rgba(16, 47, 66, .09);
}
.iqm-admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    text-align: left;
}
.iqm-admin-hero > div {
    min-width: 0;
}
.iqm-admin-hero .iqm-kicker,
.iqm-admin-hero h1,
.iqm-admin-hero p {
    text-align: left;
}
.iqm-admin-hero h1,
.iqm-profile-hero h1 {
    color: #102f42;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: 0;
}
.iqm-admin-hero p,
.iqm-profile-hero p {
    color: #4d6573;
    font-size: 15px;
    line-height: 1.65;
}
.iqm-admin-user,
.iqm-status {
    border-radius: 14px;
}
.iqm-admin-user {
    text-align: left;
}
.iqm-admin-user span,
.iqm-admin-user strong {
    text-align: left;
}
.iqm-stats-grid {
    gap: 14px;
    margin: 18px 0;
}
.iqm-stat {
    border-radius: 18px;
    border-color: #dceaf0;
    box-shadow: 0 16px 44px rgba(16, 47, 66, .07);
    text-align: left;
}
.iqm-stat span,
.iqm-stat strong {
    text-align: left;
}
.iqm-panel {
    border-color: #dceaf0;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(16, 47, 66, .075);
}
.iqm-panel-head {
    direction: ltr;
    text-align: left;
}
.iqm-panel-head > div:first-child {
    min-width: 0;
}
.iqm-panel-head h2 {
    color: #102f42;
    font-size: 25px;
    font-weight: 950;
}
.iqm-export-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.iqm-export-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #123244;
    border-radius: 11px;
    background: #123244;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(18, 50, 68, .14);
}
.iqm-export-btn.ghost {
    border-color: #d7e6ec;
    background: #fff;
    color: #123244;
    box-shadow: none;
}
.iqm-export-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}
.iqm-export-btn.ghost:hover {
    color: #123244;
}
.iqm-admin-table {
    min-width: 980px;
    direction: ltr;
    table-layout: auto;
}
.iqm-admin-table th,
.iqm-admin-table td {
    text-align: left;
}
.iqm-admin-table th {
    padding: 14px 16px;
    color: #5c7280;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
}
.iqm-admin-table td {
    padding: 18px 16px;
    color: #102f42;
    font-size: 14px;
    line-height: 1.45;
}
.iqm-admin-table td:nth-child(1) {
    width: 86px;
    color: #0b8390;
}
.iqm-admin-table td:nth-child(2) {
    min-width: 220px;
}
.iqm-admin-table td:nth-child(3) {
    min-width: 250px;
    overflow-wrap: anywhere;
}
.iqm-admin-table td:last-child {
    width: 170px;
}
.iqm-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.iqm-small-btn,
.iqm-primary-btn,
.iqm-danger-btn {
    border-radius: 12px;
    font-weight: 950;
}
.iqm-small-btn {
    background: #123244;
    box-shadow: 0 12px 24px rgba(18, 50, 68, .14);
}
.iqm-small-btn.ghost {
    border: 1px solid #d7e6ec;
    background: #fff;
    color: #123244;
    box-shadow: none;
}
.iqm-profile-grid {
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    gap: 20px;
}
.iqm-profile-card {
    position: sticky;
    top: 18px;
    border-color: #dceaf0;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(16, 47, 66, .075);
}
.iqm-avatar {
    border: 4px solid #eef8f9;
    box-shadow: 0 16px 34px rgba(16, 47, 66, .12);
}
.iqm-detail {
    border-radius: 14px;
    background: #f8fcfd;
    direction: ltr;
    text-align: left;
}
.iqm-detail span,
.iqm-detail strong {
    display: block;
    text-align: left;
    overflow-wrap: anywhere;
}
.iqm-action-panel {
    border-color: #d7e9ee;
    background: linear-gradient(135deg, #fff, #f8fcfd);
}
.iqm-action-row {
    gap: 10px;
    justify-content: flex-start;
}
.iqm-upload-actions {
    gap: 14px;
}
.iqm-upload-actions form {
    border-radius: 16px;
    border-color: #dceaf0;
    background: #fbfefe;
}
@media (max-width: 1120px) {
    .iqm-admin-nav {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .iqm-admin-nav-menu {
        flex-basis: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
@media (max-width: 760px) {
    .iqm-admin-shell,
    .iqm-admin-nav {
        width: min(100% - 20px, 1240px);
    }
    .iqm-admin-nav {
        align-items: stretch;
        padding: 10px;
        flex-direction: column;
    }
    .iqm-admin-signed {
        width: 100%;
    }
    .iqm-admin-nav-menu {
        display: grid;
        grid-template-columns: 1fr;
    }
    .iqm-admin-nav-link {
        width: 100%;
        justify-content: flex-start;
    }
    .iqm-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .iqm-export-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .iqm-admin-hero,
    .iqm-profile-hero,
    .iqm-panel {
        border-radius: 16px;
        padding: 18px;
    }
    .iqm-admin-hero {
        grid-template-columns: 1fr;
    }
    .iqm-profile-grid {
        grid-template-columns: 1fr;
    }
    .iqm-profile-card {
        position: static;
    }
    .iqm-admin-table {
        min-width: 860px;
    }
}

.iqm-portal-shell {
    padding-bottom: 54px;
}

.iqm-portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.iqm-portal-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border: 1px solid #d9e8ed;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,251,252,.96)),
        url('../images/animation-bg.jpg') right center / cover;
    box-shadow: 0 18px 48px rgba(16, 47, 66, .075);
    color: #102f42;
    text-align: left;
    text-decoration: none;
}

.iqm-portal-card:hover {
    color: #102f42;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 24px 62px rgba(16, 47, 66, .11);
}

.iqm-portal-card span {
    color: #8a1f2d;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.iqm-portal-card strong {
    max-width: 320px;
    color: #102f42;
    font-size: 18px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .iqm-portal-grid {
        grid-template-columns: 1fr;
    }
}

/* IQSOH form layout correction: spacing, box sizing, compact uploads */
.iqm-application-pro,
.iqm-application-pro * {
    box-sizing: border-box;
}
.iqm-application-pro {
    overflow-x: hidden;
}
.iqm-pro-shell {
    width: min(1180px, calc(100% - 40px));
}
.iqm-pro-form {
    background: #ffffff;
}
.iqm-pro-section {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 30px;
    padding: 26px 28px;
}
.iqm-pro-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px 22px;
    align-items: start;
}
.iqm-pro-grid label {
    grid-column: span 4;
}
.iqm-pro-grid label.wide {
    grid-column: span 8;
}
.iqm-pro-grid label.half,
.iqm-pro-grid .iqm-pro-file.half {
    grid-column: span 6;
}
.iqm-pro-grid label.full,
.iqm-pro-grid .iqm-pro-file.full {
    grid-column: 1 / -1;
}
.iqm-pro-grid input,
.iqm-pro-grid select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    border-radius: 12px;
    background: #fbfdfe;
}
.iqm-pro-grid input[type="text"],
.iqm-pro-grid input[type="email"],
.iqm-pro-grid input[type="tel"] {
    line-height: 1.25;
}
.iqm-pro-grid input[pattern]::placeholder {
    color: #7f95a3;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
.iqm-pro-logo,
.iqm-pro-top-actions,
.iqm-pro-hero,
.iqm-pro-hero-copy,
.iqm-pro-section,
.iqm-pro-grid,
.iqm-pro-grid label {
    min-width: 0;
}
.iqm-pro-file.half {
    min-height: 0;
    padding: 14px 16px;
}
.iqm-pro-file.half input[type="file"] {
    min-height: 42px;
    padding: 7px;
}
.iqm-pro-file.half small {
    margin-top: 6px;
}
.iqm-pro-submit {
    padding: 20px 28px;
}
@media (max-width: 1080px) {
    .iqm-pro-section {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
@media (max-width: 820px) {
    .iqm-pro-shell { width: min(100% - 24px, 1180px); }
    .iqm-pro-section { padding: 22px; }
    .iqm-pro-grid label {
        grid-column: span 6;
    }
    .iqm-pro-grid label.wide,
    .iqm-pro-grid label.full,
    .iqm-pro-grid .iqm-pro-file.full {
        grid-column: 1 / -1;
    }
    .iqm-pro-grid label.half,
    .iqm-pro-grid .iqm-pro-file.half {
        grid-column: span 6;
    }
}
@media (max-width: 600px) {
    .iqm-pro-shell {
        width: 100%;
        max-width: 100vw;
        padding: 14px 7px 44px;
        overflow: hidden;
    }
    .iqm-pro-topbar {
        gap: 12px;
    }
    .iqm-pro-logo {
        width: 100%;
    }
    .iqm-pro-logo span {
        min-width: 0;
    }
    .iqm-pro-top-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        flex-wrap: wrap;
        gap: 6px 10px;
        white-space: normal;
        line-height: 1.35;
        text-align: center;
    }
    .iqm-pro-hero {
        display: block;
        max-width: 100%;
        overflow: hidden;
        padding: 18px;
    }
    .iqm-pro-hero-copy {
        width: 100%;
        max-width: calc(100vw - 50px);
    }
    .iqm-pro-hero h1 {
        font-size: clamp(1.7rem, 8vw, 2rem);
        line-height: 1.08;
        text-wrap: wrap;
        white-space: normal;
    }
    .iqm-pro-hero h1,
    .iqm-pro-hero p {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .iqm-pro-section { padding: 18px; }
    .iqm-pro-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .iqm-pro-grid label,
    .iqm-pro-grid label.wide,
    .iqm-pro-grid label.half,
    .iqm-pro-grid .iqm-pro-file.half,
    .iqm-pro-grid .iqm-pro-file.full {
        grid-column: 1 / -1;
    }
    .iqm-pro-grid input,
    .iqm-pro-grid select {
        min-height: 46px;
        font-size: 16px;
    }
    .iqm-pro-file.half input[type="file"]::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 8px;
    }
}
