.site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
        align-items: center;
        min-height: 72px;
        padding: 10px 30px;
        background: rgba(15, 23, 42, 0.96);
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.34);
        font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .site-header .logo-container { position: relative; z-index: 1010; justify-self: start; }
    .site-header .logo { display: inline-flex; text-decoration: none; }
    .site-header .logo img {
        display: block;
        width: auto;
        height: 88px;
        margin-bottom: -28px;
        border-radius: 8px;
        filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
        transition: transform 0.25s ease, filter 0.25s ease;
    }
    .site-header .logo:hover img {
        transform: translateY(2px) scale(1.02);
        filter: drop-shadow(0 12px 22px rgba(144, 234, 42, 0.28));
    }

    .site-header .desktop-nav { display: flex; align-items: center; justify-content: center; gap: 26px; }
    .site-header .desktop-nav a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 0;
        color: #cbd5e1;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    .site-header .desktop-nav a:hover,
    .site-header .desktop-nav a.active { color: #90ea2a; }
    .site-header .pill-free {
        padding: 2px 8px;
        border-radius: 999px;
        background: #90ea2a;
        color: #0f172a;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .header-right-actions { position: relative; display: flex; align-items: center; justify-self: end; }
    .profile-btn-wrap { position: relative; }
    .profile-avatar-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1.5px solid rgba(144, 234, 42, 0.48);
        border-radius: 50%;
        outline: none;
        background: #141b2d;
        color: #90ea2a;
        cursor: pointer;
        transition: all 0.22s ease;
    }
    .profile-avatar-btn:hover,
    .profile-avatar-btn.active,
    .profile-avatar-btn:focus-visible {
        border-color: #90ea2a;
        background: #1e293b;
        box-shadow: 0 0 0 4px rgba(144, 234, 42, 0.14);
    }
    .profile-avatar-btn svg { width: 20px; height: 20px; fill: currentColor; }

    .profile-dropdown-modal {
        position: absolute;
        top: calc(100% + 14px);
        right: 0;
        z-index: 1100;
        display: none;
        width: min(320px, calc(100vw - 32px));
        padding: 23px 21px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        background: #141b2d;
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.58);
        color: #fff;
    }
    .profile-dropdown-modal.show { display: block; animation: accountModalIn 0.2s ease-out; }
    @keyframes accountModalIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .modal-arrow {
        position: absolute;
        top: -6px;
        right: 15px;
        width: 12px;
        height: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        background: #141b2d;
        transform: rotate(45deg);
    }
    .modal-head {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 17px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .modal-icon-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: rgba(144, 234, 42, 0.12);
        color: #90ea2a;
    }
    .modal-head h4 { margin: 0; color: #fff; font-size: 16px; font-weight: 800; }
    .modal-head p { margin: 3px 0 0; color: #94a3b8; font-size: 12px; }
    .login-form-group { margin-bottom: 13px; text-align: left; }
    .login-form-group label {
        display: block;
        margin-bottom: 5px;
        color: #cbd5e1;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.45px;
        text-transform: uppercase;
    }
    .login-input {
        width: 100%;
        padding: 11px 13px;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 10px;
        outline: none;
        background: #0f172a;
        color: #fff;
        font: inherit;
        font-size: 13px;
    }
    .login-input:focus { border-color: #90ea2a; box-shadow: 0 0 0 3px rgba(144, 234, 42, 0.14); }
    .login-submit-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 15px;
        padding: 12px;
        border: 0;
        border-radius: 999px;
        background: #90ea2a;
        color: #0f172a;
        font-size: 14px;
        font-weight: 900;
        cursor: pointer;
    }
    .login-pending-message {
        display: none;
        margin: 12px 0 0;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(144, 234, 42, 0.1);
        color: #cfeea8;
        font-size: 12px;
        line-height: 1.45;
    }
    .login-pending-message.show { display: block; }
    .modal-footer-links { margin-top: 15px; text-align: center; color: #94a3b8; font-size: 12px; }
    .modal-footer-links a { color: #90ea2a; font-weight: 700; text-decoration: none; }
    .modal-footer-link-first { margin: 0 0 6px; }
    .modal-footer-link-last { margin: 0; }
    .mobile-floating-pill-nav { display: none; }

    @media (max-width: 900px) {
        .site-header { grid-template-columns: 1fr auto; min-height: 66px; padding: 9px 17px; }
        .site-header .logo img { height: 74px; margin-bottom: -24px; }
        .site-header .desktop-nav { display: none; }
        .mobile-floating-pill-nav {
            position: fixed;
            right: 12px;
            bottom: max(14px, env(safe-area-inset-bottom));
            left: 12px;
            z-index: 1000;
            display: block;
            max-width: 520px;
            margin: auto;
            padding: 6px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 24px;
            background: rgba(15, 23, 42, 0.94);
            box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }
        .mobile-pill-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
        .mobile-pill-link {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 7px 5px;
            border-radius: 18px;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 800;
            text-decoration: none;
            white-space: nowrap;
        }
        .mobile-pill-link.active { background: #90ea2a; color: #0f172a; }
        body { padding-bottom: 82px; }
    }

    @media (max-width: 390px) {
        .mobile-pill-link { font-size: 10px; }
        .profile-dropdown-modal { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; }
        .profile-dropdown-modal .modal-arrow { display: none; }
    }
