/* ============================================================
   ALIFE AIR — Account System Styles
   Covers: Account nav icon + dropdown, Sign-in modal,
           Registration wizard, Account dashboard
   Design: Institutional / Financial — clean, professional
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --navy:    #00205b;
    --navy-dk: #001540;
    --cyan:    #00b5e2;
    --white:   #ffffff;
    --off-wh:  #f8fafc;
    --border:  #e2e8f0;
    --text:    #1e293b;
    --muted:   #64748b;
    --light:   #f1f5f9;
    --error:   #dc2626;
    --success: #16a34a;
    --radius:  2px;
    --shadow:  0 4px 16px rgba(0,0,0,0.08);
    --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   ACCOUNT NAV ICON — Works on index.html (style.css nav)
   ============================================================ */

/* Account icon button — desktop visible in nav-center */
.nav-account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #171a20;
    position: relative;
    padding: 0;
}

.nav-account-btn:hover {
    background: rgba(0,0,0,0.06);
}

/* Hero mode: white icon */
.site-nav.hero-mode .nav-account-btn {
    color: #ffffff;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.5));
}
.site-nav.hero-mode .nav-account-btn:hover {
    background: rgba(255,255,255,0.12);
    filter: none;
}
/* Remove shadows when mega menu is active */
.site-nav.hero-mode:has(.nav-item:hover) .nav-account-btn,
.site-nav.hero-mode:has(.nav-item.active) .nav-account-btn {
    filter: none;
}

.nav-account-btn svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

/* Logged-in indicator dot */
.nav-account-btn .account-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--white);
    display: none;
}
.nav-account-btn.is-signed-in .account-dot {
    display: block;
}
.site-nav.hero-mode .nav-account-btn .account-dot {
    border-color: transparent;
}

/* ── Account Dropdown ────────────────────────────────────── */
.account-dropdown-wrapper {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    overflow: hidden;
}

.account-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown header (when signed in) */
.account-dropdown-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--border);
    display: none;
}
.account-dropdown.signed-in .account-dropdown-header {
    display: block;
}
.account-dropdown-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-dropdown-email {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-dropdown-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    background: var(--navy);
    color: var(--white);
}
.account-dropdown-badge.corporate {
    background: var(--navy);
}
.account-dropdown-badge.product {
    background: var(--cyan);
    color: var(--white);
}

/* Dropdown links */
.account-dropdown-links {
    padding: 8px 0;
}
.account-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font);
}
.account-dropdown-link:hover {
    background: var(--off-wh);
    color: var(--navy);
}
.account-dropdown-link.danger {
    color: var(--error);
}
.account-dropdown-link.danger:hover {
    background: #fef2f2;
}
.account-dropdown-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.7;
}
.account-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Signed-out vs signed-in state control */
.account-dropdown .signed-out-only { display: flex; }
.account-dropdown .signed-in-only  { display: none; }
.account-dropdown.signed-in .signed-out-only { display: none; }
.account-dropdown.signed-in .signed-in-only  { display: flex; }

/* ============================================================
   SIGN-IN MODAL (overlays all pages)
   ============================================================ */
.signin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.signin-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.signin-modal {
    background: var(--white);
    border-top: 3px solid var(--navy);
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
}

.signin-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.signin-modal-close:hover { color: var(--text); }

.signin-modal-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.signin-modal-logo img { height: 28px; width: auto; }
.signin-modal-logo span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy);
}

.signin-modal h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.signin-modal p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 28px;
}

/* ── Form Elements (shared) ─────────────────────────────── */
.acct-field {
    margin-bottom: 16px;
}
.acct-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin-bottom: 6px;
}
.acct-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s ease;
}
.acct-input:focus {
    border-color: var(--navy);
}
.acct-input::placeholder { color: #c0cad8; }
.acct-input.error { border-color: var(--error); }

/* Password wrapper with show/hide toggle */
.acct-pw-wrap {
    position: relative;
}
.acct-pw-wrap .acct-input {
    padding-right: 44px;
}
.acct-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    display: flex;
    align-items: center;
}
.acct-pw-toggle:hover { color: var(--navy); }
.acct-pw-toggle svg { width: 18px; height: 18px; }

/* Error / info messages */
.acct-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 5px;
    display: none;
}
.acct-error.visible { display: block; }

.acct-alert {
    padding: 11px 14px;
    font-size: 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: none;
}
.acct-alert.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--error);
}
.acct-alert.success {
    display: block;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--success);
}

/* Buttons */
.acct-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    text-align: center;
    text-decoration: none;
}
.acct-btn-primary {
    background: var(--navy);
    color: var(--white);
}
.acct-btn-primary:hover { background: var(--navy-dk); }
.acct-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.acct-btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--border);
}
.acct-btn-secondary:hover { border-color: var(--navy); background: var(--off-wh); }

/* Divider row */
.acct-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.acct-divider::before,
.acct-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Footer text */
.acct-footnote {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 20px;
}
.acct-footnote a {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.acct-footnote a:hover { border-color: var(--navy); }

/* ============================================================
   REGISTRATION PAGE — register.html
   ============================================================ */
.reg-page {
    min-height: 100vh;
    background: var(--off-wh);
    font-family: var(--font);
    color: var(--text);
}

/* Top bar */
.reg-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.reg-topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.reg-topbar-logo img { height: 28px; width: auto; }
.reg-topbar-logo span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy);
}
.reg-topbar-link {
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
}
.reg-topbar-link:hover { color: var(--navy); }

/* Main container */
.reg-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

/* Progress Steps */
.reg-progress {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}
.reg-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.reg-step.active { color: var(--navy); }
.reg-step.done { color: var(--success); }

.reg-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: var(--white);
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.reg-step.active .reg-step-num {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}
.reg-step.done .reg-step-num {
    border-color: var(--success);
    background: var(--success);
    color: var(--white);
}

.reg-step-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin: 0 6px;
}

/* Step heading */
.reg-step-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.reg-heading {
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.reg-subhead {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 32px;
    line-height: 1.5;
}

/* Step panels */
.reg-panel { display: none; }
.reg-panel.active { display: block; }

/* Account type cards (Step 1) */
.reg-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}
@media (max-width: 480px) {
    .reg-type-cards { grid-template-columns: 1fr; }
}

.reg-type-card {
    position: relative;
    padding: 24px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}
.reg-type-card:hover {
    border-color: #a0b4c8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.reg-type-card.selected {
    border-color: var(--navy);
    background: #f0f4fa;
}
.reg-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.reg-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: background 0.2s ease;
}
.reg-type-card.selected .reg-type-icon {
    background: var(--navy);
    color: var(--white);
}
.reg-type-icon svg { width: 20px; height: 20px; }
.reg-type-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.reg-type-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}
.reg-type-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.reg-type-card.selected .reg-type-check {
    border-color: var(--navy);
    background: var(--navy);
}
.reg-type-check svg {
    width: 11px;
    height: 11px;
    color: var(--white);
    display: none;
}
.reg-type-card.selected .reg-type-check svg { display: block; }

/* Access info box */
.reg-access-box {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 18px 20px;
    margin-bottom: 24px;
    border-left: 3px solid var(--navy);
    display: none;
}
.reg-access-box.visible { display: block; }
.reg-access-box h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin: 0 0 10px;
}
.reg-access-list {
    list-style: none;
    padding: 0; margin: 0;
}
.reg-access-list li {
    font-size: 13px;
    color: var(--text);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reg-access-list li::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--navy);
    flex-shrink: 0;
}
.reg-access-list li.restricted {
    color: var(--muted);
    text-decoration: line-through;
}
.reg-access-list li.restricted::before { background: var(--muted); }

/* Two-column form row */
.reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 480px) {
    .reg-row { grid-template-columns: 1fr; }
}

/* Optional field label */
.acct-label .optional {
    font-weight: 400;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    font-size: 10px;
    margin-left: 4px;
}

/* Password strength bar */
.pw-strength {
    margin-top: 6px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.pw-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

/* Checkbox */
.acct-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.acct-checkbox-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--navy);
    cursor: pointer;
}
.acct-checkbox-wrap label {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    cursor: pointer;
}
.acct-checkbox-wrap a {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.acct-checkbox-wrap a:hover { border-color: var(--navy); }

/* OTP Step */
.reg-otp-email {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}
.reg-otp-grid {
    display: flex;
    gap: 8px;
    margin: 24px 0;
    justify-content: center;
}
.reg-otp-digit {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease;
    caret-color: var(--navy);
}
.reg-otp-digit:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0,32,91,0.08);
}
.reg-otp-digit.filled { background: #f0f4fa; }
@media (max-width: 380px) {
    .reg-otp-digit { width: 40px; height: 50px; font-size: 20px; }
}

.reg-resend-row {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}
.reg-resend-btn {
    background: none;
    border: none;
    color: var(--navy);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: var(--font);
}
.reg-resend-btn:disabled {
    color: var(--muted);
    text-decoration: none;
    cursor: default;
}
.reg-countdown {
    font-size: 12px;
    color: var(--muted);
}

/* Success state */
.reg-success {
    text-align: center;
    padding: 48px 20px;
    display: none;
}
.reg-success.visible { display: block; }
.reg-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--success);
}
.reg-success h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 10px;
}
.reg-success p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* ============================================================
   ACCOUNT DASHBOARD — account_dashboard.html
   ============================================================ */
.dash-page {
    min-height: 100vh;
    background: var(--off-wh);
    font-family: var(--font);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

/* Top nav */
.dash-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.dash-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.dash-topbar-logo img { height: 28px; }
.dash-topbar-logo span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy);
}
.dash-topbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}
.dash-topbar-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}
.dash-topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.dash-signout-btn {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 6px;
}
.dash-signout-btn:hover { color: var(--error); }
.dash-signout-btn svg { width: 14px; height: 14px; }

/* Body layout */
.dash-body {
    display: flex;
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Sidebar */
.dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    padding: 32px 0;
    border-right: 1px solid var(--border);
    background: var(--white);
    min-height: calc(100vh - 64px);
}

@media (max-width: 768px) {
    .dash-sidebar {
        position: fixed;
        left: 0; top: 64px; bottom: 0;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-sidebar-backdrop {
        position: fixed; inset: 0; top: 64px;
        background: rgba(0,0,0,0.3);
        z-index: 49;
        display: none;
    }
    .dash-sidebar-backdrop.open { display: block; }
}

.dash-sidebar-section {
    margin-bottom: 8px;
}
.dash-sidebar-section-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    padding: 6px 24px 2px;
}
.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font);
    border-left: 3px solid transparent;
}
.dash-nav-item:hover {
    background: var(--off-wh);
    color: var(--navy);
}
.dash-nav-item.active {
    background: #edf2f9;
    color: var(--navy);
    font-weight: 600;
    border-left-color: var(--navy);
}
.dash-nav-item svg { width: 16px; height: 16px; opacity: 0.65; flex-shrink: 0; }
.dash-nav-item.active svg { opacity: 1; }
.dash-nav-item.danger { color: var(--muted); }
.dash-nav-item.danger:hover { color: var(--error); background: #fef2f2; }

/* Main content */
.dash-main {
    flex: 1;
    padding: 36px 40px;
    overflow-y: auto;
}
@media (max-width: 768px) {
    .dash-main { padding: 24px 20px; }
}

/* Mobile menu toggle */
.dash-mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    background: none;
    border: 1px solid var(--border);
    padding: 6px 12px;
    cursor: pointer;
    font-family: var(--font);
}
@media (max-width: 768px) {
    .dash-mobile-menu-btn { display: flex; }
}

/* Content panels */
.dash-panel { display: none; }
.dash-panel.active { display: block; }

/* Page header */
.dash-page-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}
.dash-page-sub {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 32px;
}

/* Section card */
.dash-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 28px 32px;
    margin-bottom: 20px;
}
@media (max-width: 480px) {
    .dash-card { padding: 20px; }
}

.dash-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}
.dash-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 3px;
}
.dash-card-sub {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}
.dash-card-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font);
    padding: 0;
    flex-shrink: 0;
}
.dash-card-action:hover { text-decoration: underline; }

/* Info rows */
.dash-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 14px;
}
.dash-info-row:last-child { border-bottom: none; }
.dash-info-label { color: var(--muted); font-size: 13px; }
.dash-info-value { font-weight: 500; color: var(--text); }

/* Product grid */
.dash-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 4px;
}
.dash-product-card {
    border: 1px solid var(--border);
    background: var(--white);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.dash-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #a0b4c8;
}
.dash-product-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--light);
    display: block;
}
.dash-product-info {
    padding: 14px 16px;
}
.dash-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
}
.dash-product-category {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dash-product-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.dash-product-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
}
.dash-product-link:hover { border-color: var(--navy); }

/* Access locked card */
.dash-locked-card {
    border: 1px dashed var(--border);
    background: #fafbfc;
    padding: 28px 20px;
    text-align: center;
}
.dash-locked-icon {
    font-size: 28px;
    margin-bottom: 12px;
    opacity: 0.4;
}
.dash-locked-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}
.dash-locked-text {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Badge for user type */
.dash-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
}
.dash-badge-corporate { background: var(--navy); color: var(--white); }
.dash-badge-product { background: var(--cyan); color: var(--white); }

/* Security checkup widget */
.dash-security-progress {
    margin-bottom: 20px;
}
.dash-security-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 8px 0 4px;
}
.dash-security-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--navy);
    transition: width 0.5s ease;
}
.dash-security-label {
    font-size: 11px;
    color: var(--muted);
}
.dash-security-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
}
.dash-security-item:last-child { border-bottom: none; }
.dash-security-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-security-status.done {
    border-color: var(--success);
    background: var(--success);
    color: var(--white);
}
.dash-security-status svg { width: 11px; height: 11px; }

/* Order history empty state */
.dash-empty {
    text-align: center;
    padding: 48px 20px;
}
.dash-empty svg {
    width: 48px;
    height: 48px;
    color: var(--border);
    margin: 0 auto 16px;
    display: block;
}
.dash-empty-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.dash-empty-text { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* ── Page-specific account wrapper overrides ────────────── */
/* kbi_order.html — account icon sits inline in nav-actions */
.kbi-account-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}
.kbi-account-btn {
    color: #171a20;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .dash-body { flex-direction: column; }
    .dash-main { padding: 20px 16px; }
    .dash-page-title { font-size: 22px; }
}
