:root {
    --ink: #0D1B35;
    --gold: #F5A623;
    --gold-l: #FFD580;
    --teal: #0ABFA3;
    --sky: #F0F5FF;
    --line: #DDE4F0;
    --sans: 'Plus Jakarta Sans', sans-serif;
    --serif: 'Lora', serif;
}

.ann-bar span {
    float: right;
    padding: 0 10px;
}
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
}

.ann-bar {
    background: var(--ink, #0D1B35);
    color: #fff;
    padding: 8px 1.25rem;
    font-size: 13px;
    font-weight: 500;
}

.ann-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    gap: 12px;
}

.ann-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    font-weight: 600;
}

.ann-gift-icon {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

.ann-refer-text {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.ann-apply-btn {
    background: var(--gold, #F5A623);
    color: var(--ink, #0D1B35);
    height: auto;
    border: none;
    padding: 3px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.3);
}

.ann-apply-btn:hover {
    background: #ffb733;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(245, 166, 35, 0.4);
}

.ann-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-left: auto;
}

.coupon-code {
    background: linear-gradient(135deg, #23cbf5, #a880ff);
    color: #0D1B35;
    padding: 3px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* box-shadow: 0 0 8px rgba(245, 166, 35, 0.6); */
    animation: couponPulse 1.6s ease-in-out infinite;
    cursor: default;
    white-space: nowrap;
}

@keyframes couponPulse {
    0%, 100% {
        box-shadow: 0 0 6px linear-gradient(135deg, #23cbf5, #a880ff);
        background: linear-gradient(135deg, #23cbf5, #a880ff);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 18px rgba(245, 166, 35, 0.95), 0 0 30px rgba(245, 166, 35, 0.4);
        background: linear-gradient(135deg, #23cbf5, #a880ff);
        transform: scale(1.05);
    }
}

.ann-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 300;
    padding: 0 2px;
    user-select: none;
}

.ann-bar-right .badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.ann-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, .5);
    font-size: 16px;
    cursor: pointer;
    line-height: 1
}

/* ─── NAV ─── */
nav {
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    gap: 16px;
    font-family: var(--sans);
}

/* ─── MAIN LOGO (replaces old .nav-logo) ─── */
.main-logo {
    flex-shrink: 0;
}

.main-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.main-logo-image {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.main-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.main-logo-title {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0.04em;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.main-logo-title .logo-accent {
    color: var(--gold);
}

.main-logo-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: #6C7A99;
    white-space: nowrap;
    margin-top: 2px;
}

.main-logo-subtitle strong {
    color: var(--teal);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ─── NAV LINKS ─── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin: 0 auto;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted, #6C7A99);
    text-decoration: none;
    transition: color .18s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a.active {
    color: var(--ink);
    font-weight: 700;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}

.nav-ctas {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-xs-ghost {
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 16px;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
    transition: all .18s;
    white-space: nowrap;
}

.btn-xs-ghost:hover {
    border-color: var(--ink);
    background: var(--sky);
}

.btn-xs-login {
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 16px;
    border: 1.5px solid var(--teal);
    border-radius: 99px;
    background: transparent;
    cursor: pointer;
    color: var(--teal);
    transition: all .18s;
    white-space: nowrap;
}

.btn-xs-login:hover {
    background: var(--teal);
    color: #fff;
}

.btn-xs-gold {
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 99px;
    background: var(--gold);
    border: none;
    cursor: pointer;
    color: var(--ink);
    transition: all .15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.btn-xs-gold:hover {
    background: var(--gold-l);
    transform: translateY(-1px);
}

/* ─── DROPDOWN MENU ─── */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 200;
    flex-direction: column;
    border: 1px solid var(--line);
}

.nav-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    display: flex;
}

.nav-dropdown .dropdown-menu a {
    padding: 10px 16px;
    display: block;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: background .18s, color .18s;
}

.nav-dropdown .dropdown-menu a:hover {
    background: var(--sky);
    color: var(--gold);
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
    pointer-events: auto;
}

.nav-dropdown:hover .dropdown-toggle,
.nav-dropdown.active .dropdown-toggle {
    color: var(--ink);
}

.nav-dropdown .dropdown-toggle::after {
    content: "▼";
    font-size: 8px;
    margin-left: 6px;
    vertical-align: middle;
    color: var(--muted, #6C7A99);
    display: inline-block;
    transition: transform 0.2s ease;
}

.nav-dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ─── VIDEO MODAL ─── */
.vmodal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.vmodal-overlay.active {
    display: flex;
}

.vmodal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.vmodal {
    width: min(860px, 92vw);
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.vmodal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.ref-modal-overlay, .ref-terms-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 53, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.ref-modal-card {
    background: #ffffff;
    color: #0D1B35;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    border: 1px solid #DDE4F0;
    box-shadow: 0 24px 64px rgba(13, 27, 53, 0.25);
    padding: 0;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: refModalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes refModalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ref-modal-header {
    background: var(--ink, #0D1B35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.ref-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ref-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.2);
    color: #F5A623;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 166, 35, 0.4);
}

.ref-modal-title {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.ref-modal-subtitle {
    color: #FFD580;
    font-size: 13px;
    margin: 2px 0 0 0;
}

.ref-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.ref-modal-close:hover {
    color: #ffffff;
}

.ref-modal-body {
    padding: 24px;
}

.ref-section-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.ref-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink, #0D1B35);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.ref-section-title svg {
    color: #6366f1;
}

.ref-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 540px) {
    .ref-grid {
        grid-template-columns: 1fr;
    }
}

.ref-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ref-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.ref-req {
    color: #ef4444;
}

.ref-input, .ref-select {
    background: #ffffff;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    color: #0F172A;
    padding: 9px 12px;
    font-size: 13px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ref-input::placeholder {
    color: #94A3B8;
}

.ref-input:focus, .ref-select:focus {
    border-color: #0ABFA3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 191, 163, 0.2);
}

.ref-select option {
    background: #ffffff;
    color: #0F172A;
}

.ref-terms-wrap {
    margin: 16px 0;
}

.ref-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
}

.ref-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #0D1B35;
    cursor: pointer;
}

.ref-terms-link {
    color: #0284C7;
    text-decoration: underline;
    font-weight: 600;
}

.ref-terms-link:hover {
    color: #0369A1;
}

.ref-submit-btn {
    width: 100%;
    background: #E2E8F0;
    color: #94A3B8;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.ref-submit-btn.active {
    background: var(--gold, #F5A623);
    color: var(--ink, #0D1B35);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}

.ref-submit-btn.active:hover {
    background: #FFB733;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.45);
}

.ref-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ref-alert-success {
    background: #D1E7DD;
    border: 1px solid #A3CFBB;
    color: #0F5132;
}

.ref-alert-danger {
    background: #F8D7DA;
    border: 1px solid #F5C2C7;
    color: #842029;
}

.ref-terms-card {
    background: #ffffff;
    color: #0F172A;
    width: 100%;
    max-width: 520px;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 40px rgba(13, 27, 53, 0.3);
    padding: 0;
    max-height: 85vh;
    overflow-y: auto;
}

.ref-terms-header {
    background: var(--ink, #0D1B35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}

.ref-terms-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.ref-terms-body {
    padding: 20px;
}

.ref-terms-body ol {
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
}

.ref-terms-body li {
    margin-bottom: 10px;
}

.ref-terms-footer {
    padding: 0 20px 20px 20px;
    text-align: right;
}

.ref-terms-accept-btn {
    background: var(--gold, #F5A623);
    color: var(--ink, #0D1B35);
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ref-terms-accept-btn:hover {
    background: #FFB733;
}

.nav-menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.nav-menu-header,
.nav-menu-footer,
.nav-close-btn,
.nav-overlay,
.nav-hamburger {
    display: none;
}

.nav-hamburger {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    transition: border-color .18s, background .18s;
}
.nav-hamburger:hover {
    border-color: var(--ink);
    background: var(--sky);
}
.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: all .25s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-hamburger {
        display: flex;
    }
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(13, 27, 53, 0.55);
        z-index: 300;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        animation: fadeInOverlay .25s ease;
    }
    .nav-overlay.open {
        display: block;
    }
    .nav-menu-container {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
        width: 300px;
        max-width: 85vw;
        background: #fff;
        z-index: 400;
        box-shadow: 4px 0 40px rgba(13, 27, 53, 0.15);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.16, 1, .3, 1);
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu-container.open {
        transform: translateX(0);
    }

    body.sidebar-open {
        overflow: hidden;
    }
    .nav-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 2;
    }
    .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1.5px solid var(--line);
        border-radius: 8px;
        background: none;
        cursor: pointer;
        color: var(--ink);
        font-size: 16px;
        font-weight: 700;
        transition: background .18s, border-color .18s;
    }
    .nav-close-btn:hover {
        background: var(--sky);
        border-color: var(--ink);
    }
    .nav-menu-container .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        margin: 0;
    }
    .nav-menu-container .nav-links a {
        padding: 11px 20px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
        border-left: 3px solid transparent;
        white-space: normal;
        display: block;
    }
    .nav-menu-container .nav-links a:hover {
        background: var(--sky);
        color: var(--gold);
    }
    .nav-menu-container .nav-links a.active {
        color: var(--ink);
        font-weight: 700;
        background: rgba(245, 166, 35, 0.08);
        border-bottom: none;
        border-left: 3px solid var(--gold);
        padding-bottom: 11px;
    }
    .nav-dropdown {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }
    .nav-dropdown .dropdown-toggle {
        pointer-events: auto;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    .nav-dropdown .dropdown-menu {
        display: none;
        flex-direction: column;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--sky);
        padding: 4px 0;
        min-width: 100%;
    }
    .nav-dropdown.active .dropdown-menu {
        display: flex !important;
    }
    .nav-dropdown .dropdown-menu a {
        padding: 9px 20px 9px 32px !important;
        font-size: 13px;
    }
    .nav-dropdown .dropdown-menu::before {
        display: none;
    }
    .nav-menu-container .nav-ctas {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 16px 20px 24px !important;
        border-top: 1px solid var(--line) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #fff !important;
        margin-top: 8px !important;
    }
    .nav-menu-container .nav-ctas form {
        width: 100% !important;
        margin: 0 !important;
    }
    .nav-menu-container .nav-ctas button,
    .nav-menu-container .nav-ctas a,
    .nav-menu-container .nav-ctas .btn-xs-login,
    .nav-menu-container .nav-ctas .btn-xs-gold {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        box-sizing: border-box !important;
        text-align: center !important;
        border-radius: 99px !important;
    }
    .ann-bar-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .ann-bar-center {
        width: 100%;
        justify-content: center;
        margin: 0;
        flex-wrap: wrap;
    }
    .ann-bar-right {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        gap: 6px;
        font-size: 11px;
        text-align: center;
    }
    nav {
        padding: 0 1rem;
    }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}