@font-face {
    font-family: "IRANYekanX";
    src: url("../fonts/IRANYekanX-Regular.woff2") format("woff2"), url("../fonts/IRANYekanX-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekanX";
    src: url("../fonts/IRANYekanX-Medium.woff2") format("woff2"), url("../fonts/IRANYekanX-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekanX";
    src: url("../fonts/IRANYekanX-Bold.woff2") format("woff2"), url("../fonts/IRANYekanX-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --portal-ink: #172033;
    --portal-muted: #697993;
    --portal-soft: #8d9ab0;
    --portal-line: #dce5f1;
    --portal-line-strong: #cbd7e8;
    --portal-surface: #ffffff;
    --portal-surface-muted: #f7f9fd;
    --portal-bg: #f2f6fc;
    --portal-primary: #2457d6;
    --portal-primary-dark: #173eaa;
    --portal-primary-soft: #edf3ff;
    --portal-accent: #69a0ff;
    --portal-navy: #111a2d;
    --portal-navy-deep: #0a1222;
    --portal-success: #16845d;
    --portal-danger: #b33a4b;
    --portal-shadow: 0 18px 50px rgba(25, 43, 76, .09);
    --portal-shadow-strong: 0 32px 80px rgba(2, 12, 32, .24);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--portal-ink);
    background: var(--portal-bg);
    font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:focus-visible {
    outline: 2px solid var(--portal-primary);
    outline-offset: 3px;
}

/* Customer login */
.customer-login-page {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 88% 10%, rgba(67, 118, 231, .28), transparent 25rem),
        radial-gradient(circle at 8% 88%, rgba(34, 162, 210, .13), transparent 24rem),
        linear-gradient(135deg, #0a1222 0%, #111d35 55%, #0c172a 100%);
}

.customer-login-page::before {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.customer-login-atmosphere,
.customer-login-atmosphere span { position: fixed; pointer-events: none; }

.customer-login-atmosphere { inset: 0; overflow: hidden; }
.customer-login-atmosphere span { border-radius: 999px; filter: blur(2px); }
.customer-login-atmosphere span:nth-child(1) { inset: -10rem auto auto 28%; width: 30rem; height: 30rem; border: 1px solid rgba(105,160,255,.16); }
.customer-login-atmosphere span:nth-child(2) { inset: auto -8rem -12rem auto; width: 38rem; height: 38rem; border: 1px solid rgba(105,160,255,.11); }
.customer-login-atmosphere span:nth-child(3) { inset: 20% 3% auto auto; width: 7rem; height: 7rem; background: rgba(49,96,201,.12); box-shadow: 0 0 100px rgba(76,135,255,.28); }

.customer-login-shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 48px));
    min-height: 100svh;
    margin: auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .78fr);
    gap: clamp(56px, 8vw, 112px);
    align-items: center;
}

.customer-login-brand {
    max-width: 660px;
    color: #fff;
}

.customer-brand-identity,
.customer-portal-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.customer-brand-mark,
.customer-portal-logo > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--theme-border, rgba(130, 172, 255, .35));
    border-radius: 16px;
    color: var(--theme-blue-text, #8eb4ff);
    background: linear-gradient(145deg, rgba(85,135,238,.22), rgba(255,255,255,.05));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.16);
}

.customer-brand-mark svg { width: 28px; height: 28px; }
.customer-brand-identity > span:last-child { display: grid; }
.customer-brand-identity strong { font-size: 1.08rem; letter-spacing: -.02em; }
.customer-brand-identity small { margin-top: -2px; color: var(--theme-muted, #91a3c2); font-size: .75rem; }

.customer-login-copy { margin-top: clamp(52px, 8vh, 86px); }
.customer-eyebrow,
.customer-welcome-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--theme-blue-text, #8fb5ff);
    font-size: .86rem;
    font-weight: 700;
}

.customer-eyebrow i,
.customer-welcome-label i,
.customer-system-status i,
.customer-portal-footer i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #36d39a;
    box-shadow: 0 0 0 5px rgba(54,211,154,.12);
}

.customer-login-copy h1 {
    max-width: 650px;
    margin: 16px 0 18px;
    font-size: clamp(2.25rem, 4.8vw, 4.25rem);
    line-height: 1.32;
    letter-spacing: -.035em;
}

.customer-login-copy p {
    max-width: 590px;
    margin: 0;
    color: var(--theme-muted, #aebdd5);
    font-size: clamp(.98rem, 1.5vw, 1.12rem);
    line-height: 2;
}

.customer-login-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 42px;
}

.customer-login-benefits > div {
    min-width: 0;
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1px 11px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
    backdrop-filter: blur(10px);
}

.customer-login-benefits > div > span {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: var(--theme-blue-text, #8fb5ff);
    background: rgba(83,133,235,.14);
}

.customer-login-benefits svg { width: 18px; height: 18px; }
.customer-login-benefits strong { overflow: hidden; color: #edf3ff; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.customer-login-benefits small { overflow: hidden; color: var(--theme-muted, #8293af); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }

.customer-login-card {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 4vw, 44px);
    border: 1px solid var(--theme-border, rgba(255,255,255,.75));
    border-radius: 30px;
    background: var(--theme-panel, rgba(255,255,255,.975));
    box-shadow: var(--portal-shadow-strong);
}

.customer-login-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, #2457d6, #6da4ff 60%, #40c6db);
}

.customer-login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 32px;
}

.customer-secure-badge,
.customer-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.customer-secure-badge { color: var(--theme-green-text, #137654); background: var(--theme-green-surface, #e9f8f2); }
.customer-secure-badge svg { width: 15px; height: 15px; }
.customer-step-badge { color: var(--theme-muted, #5f6f87); background: var(--theme-blue-surface, #f1f4f8); }

.customer-login-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(1.55rem, 3vw, 2rem);
    letter-spacing: -.025em;
}

.customer-login-heading p {
    margin: 0 0 27px;
    color: var(--portal-muted);
    font-size: .9rem;
}

.customer-login-methods {
    margin: -9px 0 23px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border: 1px solid var(--theme-border, #e2e8f1);
    border-radius: 14px;
    background: var(--theme-blue-surface, #f3f6fa);
}

.customer-login-methods a {
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--portal-muted);
    text-align: center;
    text-decoration: none;
    font-size: .73rem;
    font-weight: 700;
    transition: .2s ease;
}

.customer-login-methods a:hover { color: var(--portal-primary); }
.customer-login-methods a.active { color: var(--portal-primary); background: var(--theme-panel, #fff); box-shadow: 0 3px 10px rgba(35,64,107,.08); }

.customer-login-form { display: grid; gap: 10px; }
.customer-login-form label { color: var(--theme-text, #35445c); font-size: .83rem; font-weight: 700; }

.customer-input-shell {
    min-height: 62px;
    padding: 0 17px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--theme-border, #ced9e8);
    border-radius: 17px;
    color: var(--theme-muted, #8290a6);
    background: var(--theme-panel, #fbfcff);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.customer-input-shell:focus-within {
    border-color: var(--portal-primary);
    color: var(--portal-primary);
    background: var(--theme-panel, #fff);
    box-shadow: 0 0 0 4px rgba(36,87,214,.11);
}

.customer-input-shell svg { width: 21px; height: 21px; }
.customer-login-form .customer-input-shell input {
    min-width: 0;
    width: 100%;
    min-height: 58px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--portal-ink);
    background: transparent;
    text-align: center;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: .035em;
}

.customer-input-shell--otp input { font-size: 1.5rem !important; letter-spacing: .45em !important; }
.customer-login-form input::placeholder { color: var(--theme-muted, #a7b2c2); opacity: 1; }

.customer-otp-boxes {
    width: 100%;
    margin: 2px 0 4px;
    display: grid;
    grid-template-columns: repeat(4, minmax(54px, 66px));
    justify-content: center;
    gap: clamp(9px, 2.2vw, 13px);
}

.customer-otp-digit {
    width: 100%;
    aspect-ratio: 1 / 1.05;
    min-height: 58px;
    padding: 0;
    border: 1px solid var(--theme-border, #ccd8e8);
    border-radius: 17px;
    outline: 0;
    color: var(--portal-ink);
    background: var(--theme-panel, #fbfcff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    caret-color: var(--portal-primary);
    text-align: center;
    font-size: clamp(1.35rem, 4vw, 1.7rem);
    font-weight: 700;
    line-height: 1;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.customer-otp-digit:hover { border-color: var(--theme-border, #acbfdb); }
.customer-otp-digit:focus {
    border-color: var(--portal-primary);
    background: var(--theme-panel, #fff);
    box-shadow: 0 0 0 4px rgba(36,87,214,.11), 0 9px 20px rgba(36,87,214,.1);
    transform: translateY(-2px);
}
.customer-otp-digit.is-filled { border-color: var(--theme-border, #8eace4); color: var(--portal-primary-dark); background: var(--theme-blue-surface, #f1f5ff); }

.customer-primary-button {
    min-height: 58px;
    margin-top: 7px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 0;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(135deg, #2457d6, #1745bb);
    box-shadow: 0 12px 24px rgba(36,87,214,.23);
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.customer-primary-button svg { width: 19px; height: 19px; transform: rotate(180deg); transition: transform .2s ease; }
.customer-primary-button:hover { filter: brightness(1.04); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(36,87,214,.3); }
.customer-primary-button:hover svg { transform: rotate(180deg) translateX(3px); }
.customer-primary-button:active { transform: translateY(0); }

.customer-login-secondary { margin: 13px 0 0; display: grid; place-items: center; gap: 2px; text-align: center; }
.customer-login-secondary button { padding: 6px 12px; border: 0; color: var(--portal-primary); background: transparent; font-size: .83rem; font-weight: 700; cursor: pointer; }
.customer-login-secondary button:hover { color: var(--portal-primary-dark); }
.customer-login-secondary button:disabled { color: var(--theme-muted, #98a4b6); cursor: not-allowed; }
.customer-login-secondary span { min-height: 1.4rem; color: var(--theme-muted, #8b98aa); font-size: .66rem; }
.customer-password-help { margin: 17px 0 0; color: var(--portal-muted); text-align: center; font-size: .69rem; line-height: 1.8; }

.customer-login-note {
    margin-top: 25px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--theme-border, #e2e9f3);
    border-radius: 14px;
    color: var(--portal-muted);
    background: var(--theme-panel, #f8faff);
    font-size: .75rem;
}

.customer-login-note svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--portal-primary); }
.customer-system-status { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 19px; color: var(--theme-muted, #8894a6); font-size: .68rem; }
.customer-system-status i { width: 6px; height: 6px; box-shadow: 0 0 0 4px rgba(54,211,154,.1); }

.customer-alert {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 14px;
    line-height: 1.75;
    font-size: .82rem;
}

.customer-alert--info { color: var(--theme-blue-text, #174b9b); background: var(--theme-blue-surface, #edf5ff); border: 1px solid var(--theme-border, #cde1ff); }
.customer-alert--danger { color: var(--theme-red-text, #8b2431); background: var(--theme-red-surface, #fff0f2); border: 1px solid var(--theme-border, #f4c9cf); }

/* Customer dashboard */
.customer-portal-page {
    background:
        radial-gradient(circle at 90% 0, rgba(64, 116, 224, .09), transparent 28rem),
        radial-gradient(circle at 5% 45%, rgba(88, 185, 215, .055), transparent 24rem),
        var(--portal-bg);
}

.customer-portal-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--theme-border, rgba(220,229,241,.84));
    background: var(--theme-panel, rgba(255,255,255,.9));
    box-shadow: 0 5px 24px rgba(31,50,83,.035);
    backdrop-filter: blur(18px) saturate(150%);
}

.customer-portal-header-inner {
    width: min(1440px, calc(100% - 48px));
    min-height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.customer-portal-logo { color: var(--portal-ink); text-decoration: none; }
.customer-portal-logo:hover { color: var(--portal-ink); }
.customer-portal-logo > span { width: 45px; height: 45px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #2f66e7, #1947ba); box-shadow: 0 9px 20px rgba(36,87,214,.23); }
.customer-portal-logo > span svg { width: 24px; height: 24px; }
.customer-portal-logo > div { display: grid; }
.customer-portal-logo strong { font-size: .96rem; }
.customer-portal-logo small { margin-top: -3px; color: var(--portal-muted); font-size: .65rem; }

.customer-profile-summary { display: flex; align-items: center; gap: 11px; }
.customer-profile-avatar { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--theme-border, #d8e3f2); border-radius: 13px; color: var(--portal-primary); background: var(--portal-primary-soft); }
.customer-profile-avatar svg { width: 20px; height: 20px; }
.customer-profile-identity { display: grid; min-width: 0; margin-left: 4px; }
.customer-profile-identity > span { max-width: 220px; overflow: hidden; font-size: .82rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.customer-profile-identity small { color: var(--portal-muted); font-size: .68rem; }
.customer-profile-summary form { margin: 0; padding-right: 13px; border-right: 1px solid var(--portal-line); }
.customer-profile-summary button { min-height: 40px; padding: 0 13px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--theme-border, #e3d8dc); border-radius: 12px; color: var(--theme-red-text, #a83244); background: var(--theme-panel, #fff); font-size: .75rem; font-weight: 700; cursor: pointer; transition: .2s ease; }
.customer-profile-summary button svg { width: 17px; height: 17px; }
.customer-profile-summary button:hover { border-color: var(--theme-border, #ecc1c8); background: var(--theme-red-surface, #fff3f5); transform: translateY(-1px); }
.customer-profile-security { min-height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--theme-border, #d9e3f2); border-radius: 12px; color: var(--portal-primary); background: var(--theme-panel, #f7f9fd); font-size: .73rem; font-weight: 700; text-decoration: none; transition: .2s ease; }
.customer-profile-security svg { width: 17px; height: 17px; }
.customer-profile-security:hover { border-color: var(--theme-border, #b9cced); color: var(--portal-primary-dark); background: var(--theme-blue-surface, #edf3ff); transform: translateY(-1px); }

.customer-portal-main { width: min(1440px, calc(100% - 48px)); margin: 30px auto 46px; }

.customer-welcome {
    position: relative;
    overflow: hidden;
    min-height: 245px;
    padding: clamp(32px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    border: 1px solid rgba(118,157,230,.13);
    border-radius: 29px;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(20,52,106,.16), transparent 45%),
        linear-gradient(135deg, #101a2e 0%, #14274a 60%, #15386c 100%);
    box-shadow: 0 23px 55px rgba(19,42,79,.18);
}

.customer-welcome::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .26;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, transparent, #000);
}

.customer-hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.customer-hero-orb--one { width: 270px; height: 270px; inset: -130px -40px auto auto; border: 1px solid var(--theme-border, rgba(117,165,255,.2)); box-shadow: 0 0 90px rgba(44,103,220,.2); }
.customer-hero-orb--two { width: 140px; height: 140px; inset: auto 36% -100px auto; background: rgba(74,137,255,.08); box-shadow: 0 0 80px rgba(74,137,255,.24); }
.customer-welcome-content { position: relative; z-index: 1; max-width: 780px; }
.customer-welcome h1 { margin: 12px 0 9px; font-size: clamp(1.85rem, 3.6vw, 3rem); letter-spacing: -.03em; }
.customer-welcome p { margin: 0; color: var(--theme-muted, #bdcbe1); font-size: .93rem; line-height: 1.9; }
.customer-welcome-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 23px; }
.customer-welcome-trust span { display: inline-flex; align-items: center; gap: 7px; color: var(--theme-muted, #9fb4d2); font-size: .72rem; }
.customer-welcome-trust svg { width: 16px; height: 16px; color: var(--theme-blue-text, #78a4fa); }

.customer-count-card {
    position: relative;
    z-index: 1;
    min-width: 215px;
    min-height: 112px;
    padding: 19px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 21px;
    background: rgba(255,255,255,.075);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
}

.customer-count-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--theme-border, rgba(130,172,255,.21)); border-radius: 15px; color: var(--theme-blue-text, #8db4ff); background: rgba(90,143,247,.12); }
.customer-count-icon svg { width: 24px; height: 24px; }
.customer-count-card > span:last-child { display: grid; }
.customer-count-card strong { color: #fff; font-size: 2rem; line-height: 1.1; }
.customer-count-card small { margin-top: 4px; color: var(--theme-muted, #aebed7); font-size: .7rem; }

.customer-section {
    margin-top: 24px;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--theme-border, rgba(220,229,241,.95));
    border-radius: 26px;
    background: var(--theme-panel, rgba(255,255,255,.93));
    box-shadow: var(--portal-shadow);
}

.customer-section-heading { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.customer-section-title { display: flex; align-items: center; gap: 13px; }
.customer-section-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: var(--portal-primary); background: var(--portal-primary-soft); }
.customer-section-icon svg { width: 21px; height: 21px; }
.customer-section-icon--download { color: var(--theme-green-text, #0a8a70); background: var(--theme-green-surface, #e6f8f3); }
.customer-section-title > div { display: grid; }
.customer-section-title > div > span { color: var(--portal-primary); font-size: .68rem; font-weight: 700; }
.customer-section-heading h2 { margin: -2px 0 0; font-size: 1.35rem; letter-spacing: -.025em; }
.customer-section-count { padding: 7px 11px; border: 1px solid var(--theme-border, #e0e7f0); border-radius: 999px; color: var(--portal-muted); background: var(--theme-blue-surface, #f7f9fc); font-size: .7rem; font-weight: 700; }

.customer-license-grid,
.customer-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.customer-license-card {
    position: relative;
    overflow: hidden;
    padding: 23px;
    border: 1px solid var(--portal-line);
    border-radius: 21px;
    background: linear-gradient(180deg, var(--theme-panel, #fff), var(--theme-panel, #fbfcff));
    box-shadow: 0 7px 20px rgba(26,48,86,.035);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.customer-license-card:hover { border-color: var(--theme-border, #c2d4ef); transform: translateY(-2px); box-shadow: 0 15px 32px rgba(31,66,122,.08); }
.customer-license-card-accent { position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #2457d6, var(--theme-blue-surface, #79a8ff)); opacity: .9; }
.customer-license-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.customer-license-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.customer-license-module-icon { flex: 0 0 auto; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--portal-primary); background: var(--theme-blue-surface, #f0f5ff); }
.customer-license-module-icon svg { width: 19px; height: 19px; }
.customer-license-title > div { min-width: 0; }
.customer-license-title > div > span { color: var(--portal-muted); font-size: .67rem; }
.customer-license-card h3 { margin: 3px 0 0; overflow-wrap: anywhere; font-size: .96rem; letter-spacing: -.015em; }

.portal-status { flex: 0 0 auto; padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; white-space: nowrap; font-size: .66rem; font-weight: 700; }
.portal-status i { display: block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 13%, transparent); }
.portal-status--active { color: var(--theme-green-text, #08764d); background: var(--theme-green-surface, #e3f7ed); }
.portal-status--expired { color: var(--theme-amber-text, #986300); background: var(--theme-amber-surface, #fff2d4); }
.portal-status--trial { color: var(--theme-blue-text, #1557bd); background: var(--theme-blue-surface, #e7f0ff); }
.portal-status--pending { color: var(--theme-amber-text, #6d4d00); background: var(--theme-amber-surface, #fff0bf); }
.portal-status--inactive { color: var(--theme-red-text, #9a3542); background: var(--theme-red-surface, #ffe9ec); }

.customer-license-key {
    margin: 20px 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    border: 1px solid var(--theme-border, #dce7f7);
    border-radius: 15px;
    background: var(--theme-blue-surface, #f2f6fd);
}

.customer-license-key-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: var(--portal-muted); font-size: .66rem; }
.customer-license-key-label svg { width: 14px; height: 14px; color: var(--portal-primary); }
.customer-license-key code { min-width: 0; overflow-wrap: anywhere; color: var(--theme-text, #26354e); font-family: Consolas, "Courier New", monospace; font-size: .77rem; line-height: 1.75; }
.customer-license-key button { min-height: 44px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--theme-border, #bfd0eb); border-radius: 10px; color: var(--portal-primary); background: var(--theme-panel, #fff); font-size: .68rem; font-weight: 700; cursor: pointer; transition: .2s ease; }
.customer-license-key button svg { width: 14px; height: 14px; }
.customer-license-key button:hover { border-color: var(--portal-primary); background: var(--portal-primary); color: #fff; }

.customer-license-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 0; }
.customer-license-card dl div { min-width: 0; padding: 11px 12px; border: 1px solid var(--theme-border, #edf1f6); border-radius: 11px; background: var(--theme-panel, #fafbfd); }
.customer-license-card dt { color: var(--portal-muted); font-size: .62rem; font-weight: 500; }
.customer-license-card dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--theme-text, #303e54); font-size: .73rem; font-weight: 700; }

.customer-download-card {
    position: relative;
    overflow: hidden;
    min-height: 100px;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--portal-line);
    border-radius: 18px;
    color: var(--portal-ink);
    background: var(--theme-panel, #fff);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.customer-download-card::before { position: absolute; inset: 0 0 0 auto; width: 3px; content: ""; background: #2457d6; opacity: .75; }
.customer-download-card:hover { color: var(--portal-ink); border-color: var(--theme-border, #bcd0ef); box-shadow: 0 13px 27px rgba(24,82,178,.09); transform: translateY(-2px); }
.customer-download-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; color: var(--portal-primary); background: var(--theme-blue-surface, #edf3ff); }
.customer-download-icon svg { width: 22px; height: 22px; }
.customer-download-card[data-resource-kind="Proposal"]::before { background: #8a56d6; }
.customer-download-card[data-resource-kind="Proposal"] .customer-download-icon { color: var(--theme-purple-text, #7544bb); background: var(--theme-purple-surface, #f3ecff); }
.customer-download-card[data-resource-kind="Prerequisite"]::before { background: #d48719; }
.customer-download-card[data-resource-kind="Prerequisite"] .customer-download-icon { color: var(--theme-amber-text, #a6680e); background: var(--theme-amber-surface, #fff3df); }
.customer-download-card[data-resource-kind="VideoTutorial"]::before { background: #d34e68; }
.customer-download-card[data-resource-kind="VideoTutorial"] .customer-download-icon { color: var(--theme-red-text, #bd3d57); background: var(--theme-red-surface, #ffebef); }
.customer-download-content { min-width: 0; display: grid; gap: 3px; }
.customer-download-content small { color: var(--portal-primary); font-size: .65rem; }
.customer-download-content strong { overflow-wrap: anywhere; font-size: .84rem; }
.customer-download-content em { color: var(--portal-muted); font-size: .7rem; font-style: normal; line-height: 1.65; }
.customer-download-action { display: flex; align-items: center; gap: 5px; color: var(--portal-muted); font-size: .68rem; font-weight: 700; }
.customer-download-action svg { width: 15px; height: 15px; transition: transform .2s ease; }
.customer-download-card:hover .customer-download-action { color: var(--portal-primary); }
.customer-download-card:hover .customer-download-action svg { transform: translate(-2px, -2px); }

.customer-empty { min-height: 185px; padding: 30px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed var(--theme-border, #cad7e8); border-radius: 19px; color: var(--portal-muted); background: linear-gradient(145deg, var(--theme-panel, #fbfcfe), var(--theme-panel, #f8faff)); text-align: center; }
.customer-empty-icon { display: grid; place-items: center; width: 51px; height: 51px; margin-bottom: 5px; border-radius: 16px; color: var(--portal-primary); background: var(--theme-blue-surface, #edf3ff); }
.customer-empty-icon svg { width: 24px; height: 24px; }
.customer-empty-icon--download { color: var(--theme-green-text, #0b8a71); background: var(--theme-green-surface, #e8f8f4); }
.customer-empty strong { color: var(--portal-ink); font-size: .85rem; }
.customer-empty > span:last-child { font-size: .73rem; }

.customer-portal-footer { min-height: 62px; margin-top: 24px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--theme-muted, #8390a4); font-size: .68rem; }
.customer-portal-footer > span { display: flex; align-items: center; gap: 9px; }
.customer-portal-footer i { width: 6px; height: 6px; box-shadow: 0 0 0 4px rgba(54,211,154,.1); }

/* Customer account security */
.customer-security-main { width: min(1120px, calc(100% - 48px)); margin: 30px auto 60px; }
.customer-security-back { width: fit-content; margin-bottom: 18px; display: flex; align-items: center; gap: 7px; color: var(--portal-muted); font-size: .75rem; font-weight: 700; text-decoration: none; }
.customer-security-back svg { width: 17px; height: 17px; transform: rotate(180deg); }
.customer-security-back:hover { color: var(--portal-primary); }
.customer-security-shell { overflow: hidden; display: grid; grid-template-columns: .92fr 1.08fr; border: 1px solid var(--portal-line); border-radius: 28px; background: var(--theme-panel, #fff); box-shadow: var(--portal-shadow); }
.customer-security-intro { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 58px); color: #fff; background: linear-gradient(145deg, #101a2e, #173b72); }
.customer-security-intro::after { position: absolute; inset: auto -80px -100px auto; width: 260px; height: 260px; border: 1px solid var(--theme-border, rgba(126,167,247,.22)); border-radius: 50%; content: ""; box-shadow: 0 0 80px rgba(69,126,236,.16); }
.customer-security-visual { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 36px; border: 1px solid var(--theme-border, rgba(128,170,255,.24)); border-radius: 19px; color: var(--theme-blue-text, #90b6ff); background: rgba(87,140,244,.12); }
.customer-security-visual svg { width: 30px; height: 30px; }
.customer-security-intro h1 { margin: 12px 0 10px; font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -.025em; }
.customer-security-intro > p { margin: 0; color: var(--theme-muted, #b5c4db); font-size: .83rem; line-height: 1.95; }
.customer-security-intro ul { margin: 30px 0 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.customer-security-intro li { position: relative; padding-right: 18px; color: var(--theme-muted, #9fb0cb); font-size: .72rem; }
.customer-security-intro li::before { position: absolute; inset: .65em 0 auto auto; width: 6px; height: 6px; border-radius: 50%; background: var(--theme-blue-surface, #71a1ff); content: ""; }
.customer-security-card { padding: clamp(30px, 5vw, 56px); }
.customer-security-status { margin-bottom: 24px; padding: 13px 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--theme-border, #ead8bd); border-radius: 14px; color: var(--theme-amber-text, #8c610d); background: var(--theme-amber-surface, #fff8e9); font-size: .73rem; font-weight: 700; }
.customer-security-status i { width: 7px; height: 7px; border-radius: 50%; background: #d89420; box-shadow: 0 0 0 4px rgba(216,148,32,.12); }
.customer-security-status.is-active { border-color: var(--theme-border, #cceadb); color: var(--theme-green-text, #147451); background: var(--theme-green-surface, #eefaf5); }
.customer-security-status.is-active i { background: #23a773; box-shadow: 0 0 0 4px rgba(35,167,115,.12); }
.customer-security-form { display: grid; gap: 10px; }
.customer-security-form label { margin-top: 4px; color: var(--theme-text, #35445c); font-size: .79rem; font-weight: 700; }
.customer-security-form .customer-input-shell input { min-width: 0; width: 100%; min-height: 58px; padding: 0; border: 0; outline: 0; color: var(--portal-ink); background: transparent; font-size: .95rem; }
.customer-password-rule { margin: -3px 2px 3px; color: var(--portal-muted); font-size: .66rem; }
.customer-security-form .customer-primary-button { margin-top: 10px; }

.copy-feedback { position: fixed; z-index: 100; right: 24px; bottom: 24px; padding: 12px 18px; border-radius: 13px; color: #fff; background: #152238; box-shadow: 0 10px 32px rgba(0,0,0,.2); font-size: .78rem; }

@media (max-width: 1040px) {
    .customer-login-shell { grid-template-columns: minmax(0, 1fr) minmax(350px, .85fr); gap: 44px; }
    .customer-login-benefits { grid-template-columns: 1fr; max-width: 360px; }
    .customer-login-benefits > div { grid-template-columns: auto 1fr; }
    .customer-login-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
    .customer-license-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .customer-login-page { background: linear-gradient(160deg, #0a1222, #111e36); }
    .customer-login-shell { width: min(540px, calc(100% - 28px)); padding: 28px 0; grid-template-columns: 1fr; gap: 24px; }
    .customer-login-brand { max-width: none; }
    .customer-login-copy { margin-top: 34px; }
    .customer-login-copy h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .customer-login-benefits { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; }
    .customer-login-benefits > div { padding: 12px; grid-template-columns: 1fr; text-align: center; place-items: center; }
    .customer-login-benefits > div > span { grid-row: auto; }
    .customer-login-benefits strong { margin-top: 5px; }
    .customer-login-benefits small { display: none; }
    .customer-welcome { min-height: 0; align-items: stretch; flex-direction: column; }
    .customer-count-card { min-width: 0; min-height: 92px; align-self: stretch; }
    .customer-download-grid { grid-template-columns: 1fr; }
    .customer-security-shell { grid-template-columns: 1fr; }
    .customer-security-intro { padding: 34px 28px; }
    .customer-security-visual { margin-bottom: 24px; }
}

@media (max-width: 620px) {
    .customer-portal-header-inner { width: calc(100% - 28px); min-height: 72px; }
    .customer-portal-logo > span { width: 40px; height: 40px; }
    .customer-portal-logo small,
    .customer-profile-avatar,
    .customer-profile-identity small,
    .customer-profile-security span,
    .customer-profile-summary button span { display: none; }
    .customer-profile-identity > span { max-width: 115px; font-size: .74rem; }
    .customer-profile-summary form { padding-right: 9px; }
    .customer-profile-security { width: 39px; padding: 0; justify-content: center; }
    .customer-profile-summary button { width: 39px; padding: 0; justify-content: center; }
    .customer-portal-main { width: calc(100% - 24px); margin-top: 16px; }
    .customer-welcome { padding: 27px 21px; border-radius: 22px; }
    .customer-welcome h1 { font-size: 1.65rem; }
    .customer-welcome p { font-size: .78rem; }
    .customer-welcome-trust { gap: 8px 14px; margin-top: 18px; }
    .customer-welcome-trust span { font-size: .63rem; }
    .customer-section { margin-top: 16px; padding: 20px 15px; border-radius: 21px; }
    .customer-section-heading { align-items: flex-end; }
    .customer-section-icon { width: 39px; height: 39px; }
    .customer-section-heading h2 { font-size: 1.15rem; }
    .customer-section-count { padding: 5px 8px; }
    .customer-license-card { padding: 18px 14px; }
    .customer-license-card header { align-items: center; }
    .customer-license-module-icon { display: none; }
    .customer-license-card h3 { font-size: .84rem; }
    .customer-license-key { grid-template-columns: 1fr; }
    .customer-license-key button { justify-self: stretch; justify-content: center; }
    .customer-license-card dl { grid-template-columns: 1fr; }
    .customer-license-card dl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .customer-license-card dd { margin: 0; }
    .customer-download-card { grid-template-columns: auto 1fr; padding: 15px; }
    .customer-download-action { display: none; }
    .customer-portal-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
    .customer-security-main { width: calc(100% - 24px); margin-top: 16px; }
    .customer-security-shell { border-radius: 22px; }
    .customer-security-card { padding: 25px 18px; }
}

@media (max-width: 420px) {
    .customer-login-shell { width: min(100% - 20px, 540px); }
    .customer-login-card { padding: 27px 20px; border-radius: 24px; }
    .customer-brand-identity { padding: 0 6px; }
    .customer-login-copy { padding: 0 6px; }
    .customer-login-benefits { gap: 7px; }
    .customer-login-benefits > div { padding: 10px 5px; border-radius: 14px; }
    .customer-login-benefits strong { font-size: .68rem; }
    .customer-login-meta { margin-bottom: 25px; }
    .customer-login-note { align-items: flex-start; }
    .customer-otp-boxes { grid-template-columns: repeat(4, minmax(48px, 1fr)); gap: 8px; }
    .customer-otp-digit { border-radius: 14px; }
    .customer-section-title { gap: 9px; }
    .portal-status { padding: 5px 7px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.customer-notification-settings__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 0 0;
}

.customer-notification-settings__body p {
    margin: 0 0 .35rem;
    color: var(--theme-blue-text, #23395d);
    font-weight: 700;
}

.customer-notification-settings__body small {
    display: block;
    max-width: 46rem;
    color: var(--theme-muted, #64748b);
    line-height: 1.8;
}

.customer-notification-settings__actions {
    display: flex;
    flex: 0 0 auto;
    gap: .65rem;
}

.customer-notification-settings__actions button {
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border: 1px solid #173b73;
    border-radius: .75rem;
    color: #fff;
    background: #173b73;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.customer-notification-settings__actions button.is-secondary {
    color: var(--theme-blue-text, #173b73);
    background: var(--theme-panel, #fff);
}

.customer-notification-settings__actions button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.customer-section-icon--notification svg {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (max-width: 720px) {
    .customer-notification-settings__body {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-notification-settings__actions {
        flex-direction: column;
    }
}
