/* ============================================
   XỔ SỐ 360 — PREMIUM DESIGN SYSTEM
   Dark header + gradient accents + glassmorphism
   NO icons/emojis — pure CSS typography
   ============================================ */

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand Colors */
    --brand-red: #e53e3e;
    --brand-red-dark: #c53030;
    --brand-red-light: #fed7d7;
    --brand-gold: #d69e2e;
    --brand-gold-light: #fefcbf;

    /* Dark Theme Header */
    --header-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --header-text: #e2e8f0;

    /* Surfaces */
    --surface-bg: #f0f4f8;
    --surface-card: #ffffff;
    --surface-card-hover: #fafbfc;
    --surface-border: #e2e8f0;
    --surface-border-light: #edf2f7;

    /* Text */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-on-dark: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--surface-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   HEADER — DARK PREMIUM
   ============================================ */
.header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 64px;
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .logo-text-xs {
    color: var(--brand-red);
}

.logo .logo-text-360 {
    background: linear-gradient(135deg, var(--brand-gold) 0%, #f6e05e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav>a,
.nav-dropdown>.nav-link {
    color: var(--header-text);
    font-size: 14px;
    font-weight: 600;
    padding: 20px 14px;
    position: relative;
    transition: color var(--transition-fast), background var(--transition-fast);
    margin-left: 0;
    display: inline-block;
}

.nav>a:hover,
.nav-dropdown>.nav-link:hover,
.nav>a.active-nav,
.nav-dropdown>.nav-link.active-nav {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav>a.active-nav,
.nav-dropdown>.nav-link.active-nav {
    font-weight: 700;
}

.nav>a.active-nav::after,
.nav-dropdown>.nav-link.active-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
    border-radius: 3px 3px 0 0;
}

/* Desktop Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    border: 1px solid var(--surface-border);
    border-top: 3px solid var(--brand-red);
    animation: dropdownFade var(--transition-fast) ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Only use :hover for devices with real hover (mouse) */
@media (hover: hover) {
    .nav-dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Click/tap toggle - works on all devices */
.nav-dropdown.open .dropdown-content {
    display: block;
}

.nav-dropdown .dropdown-content a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--surface-border-light);
}

.nav-dropdown .dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown .dropdown-content a:hover {
    background: #fef5f5;
    color: var(--brand-red);
    padding-left: 22px;
}

/* ============================================
   PAGE HEADER — GRADIENT BANNER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    color: #fff;
    text-align: center;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(214, 158, 46, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

.date-display {
    font-size: 15px;
    opacity: 0.85;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ============================================
   SECTIONS — REGION HEADERS
   ============================================ */
.section-mb,
.section-mn,
.section-mt {
    margin-bottom: 36px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--surface-border);
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    display: none;
}

/* Hide emoji icons */

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-red), var(--brand-gold));
    border-radius: 4px;
}

.link-stats {
    color: var(--brand-red);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all var(--transition-fast);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.link-stats:hover {
    background: #fef5f5;
    border-color: var(--brand-red-light);
    text-decoration: none;
}

/* ============================================
   CARDS — GLASSMORPHISM
   ============================================ */
.card-xoso {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--surface-border);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card-xoso:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.card-header-info {
    background: linear-gradient(135deg, #fef5f5 0%, #fff5f5 100%);
    padding: 14px 20px;
    border-bottom: 1px solid #fecaca;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.draw-code {
    font-weight: 700;
    color: var(--brand-red);
    font-size: 15px;
}

.draw-time {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   KQXS TABLE — az24-style grid layout
   ============================================ */
.table-kqxs {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 450px;
}

.table-kqxs td {
    border: 1px solid #e2e8f0;
    padding: 0;
    vertical-align: middle;
}

/* Label column */
.td-label {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    background: #f8fafc;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #64748b;
    padding: 8px 4px;
    border-right: 2px solid #cbd5e1;
}

.td-label-g7 {
    background: #fef2f2;
    color: #dc2626;
}

/* Number cells */
.td-numbers {
    text-align: center;
    padding: 10px 8px;
}

.td-num-cell {
    text-align: center;
    padding: 8px 4px;
}

.td-g7 {
    background: #fef2f2;
}

/* Number spans inside table */
.num {
    display: inline-block;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: default;
    transition: background 0.15s, color 0.15s;
    border-radius: 3px;
    padding: 2px 4px;
}

/* Prize-specific styling */
.num-db {
    font-size: 38px;
    font-weight: 900;
    color: #dc2626;
    letter-spacing: 5px;
}

.num-g1 {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
}

.num-g2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.num-g3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.num-g4 {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
}

.num-g5 {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
}

.num-g6 {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
}

.num-g7 {
    font-size: 26px;
    font-weight: 900;
    color: #dc2626;
}

/* Digit highlight — last 2 digits get highlighted */
.num.digit-match .hl-prefix {
    color: #9ca3af;
    font-weight: 400;
}

.num.digit-match .hl-digit {
    display: inline-block;
    background: #f97316;
    color: #fff;
    font-weight: 800;
    font-style: normal;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

.num-g7.digit-match .hl-digit {
    background: #ea580c;
}

/* Alternating row shading */
.table-kqxs .row-g2 {
    background: #fafbfc;
}

.table-kqxs .row-g4 {
    background: #fafbfc;
}

.table-kqxs .row-g6 {
    background: #fafbfc;
}

/* Hover on rows */
.table-kqxs tr:hover td:not(.td-label) {
    background: #f1f5f9;
}

.table-kqxs .row-g7:hover td {
    background: #fee2e2;
}

/* ============================================
   LIVE RESULTS — waiting / rolling / new-value
   ============================================ */
.live-kqxs .num.waiting {
    min-width: 40px;
    min-height: 28px;
    display: inline-block;
    color: transparent;
    background: url('/images/loader-red.gif') center center no-repeat;
    background-size: 24px 24px;
}

.live-kqxs .num.rolling {
    background: none;
    color: inherit;
    animation: rollDigit 0.08s infinite;
}

@keyframes rollDigit {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.live-kqxs .num.has-value {
    animation: none;
}

.live-kqxs .num.new-value {
    animation: flashNew 0.6s ease-out;
}

@keyframes flashNew {
    0% {
        background: #fef08a;
        transform: scale(1.1);
    }

    100% {
        background: transparent;
        transform: scale(1);
    }
}

.live-kqxs .digit-red {
    color: #dc2626;
}

.live-kqxs .digit-black {
    color: #1e293b;
}

/* Live Loto Grid */
.live-loto-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.live-loto-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% / 9);
    padding: 10px 0;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    transition: background 0.3s;
}

.live-loto-number:hover {
    background: #f8fafc;
}

.live-loto-number.new-loto {
    animation: lotoFlash 0.6s ease-out;
    background: #fef9c3;
}

@keyframes lotoFlash {
    0% {
        background: #fde047;
        transform: scale(1.15);
    }

    100% {
        background: #fef9c3;
        transform: scale(1);
    }
}

/* ============================================
   RESULT TOOLBAR — Display modes + Digit filter
   ============================================ */
.result-toolbar {
    border-top: 2px solid #e2e8f0;
    padding: 10px 14px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Display modes (Đầy đủ / 2 số / 3 số) */
.display-modes {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mode-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: #475569;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    border-right: 1px solid #e2e8f0;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}

.mode-btn:last-child {
    border-right: none;
}

.mode-btn:hover {
    background: #f1f5f9;
}

.mode-btn.active {
    background: #dc2626;
    color: #fff;
    font-weight: 700;
}

/* Digit filter buttons */
.digit-filter {
    display: flex;
    gap: 4px;
}

.digit-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.digit-btn:hover {
    border-color: #f59e0b;
    background: #fefce8;
}

.digit-btn.active {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    transform: scale(1.08);
}

/* ============================================
   Mobile toolbar + table
   ============================================ */
@media (max-width: 768px) {
    .toolbar-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .digit-btn {
        font-size: 16px;
    }

    .mode-btn {
        padding: 5px 10px;
        font-size: 14px;
    }

    .num-db {
        font-size: 26px;
    }

    .num-g1 {
        font-size: 18px;
    }

    .num-g7 {
        font-size: 18px;
    }

    .table-kqxs {
        min-width: 360px;
    }

    .td-label {
        width: 36px;
        min-width: 36px;
        max-width: 36px;
        font-size: 11px;
    }
}

@keyframes numberReveal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile toolbar */
@media (max-width: 768px) {
    .display-modes {
        justify-content: center;
    }

    .digit-filter {
        justify-content: center;
        flex-wrap: wrap;
    }

    .prize-row.db .prize-number {
        font-size: 26px;
    }

    .prize-row.g7 .prize-number {
        font-size: 18px;
    }
}

/* ============================================
   NO RESULTS STATE
   ============================================ */
.no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.no-results p {
    margin: 6px 0;
}

.no-results .sub-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 14px 0 8px;
    margin-bottom: 8px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    gap: 4px;
    align-items: center;
}

.breadcrumb-item {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--brand-red);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.breadcrumb-item a:hover {
    opacity: 0.7;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #cbd5e0;
    font-weight: 400;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   SIDEBAR — PREMIUM CARDS
   ============================================ */
.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar .card-sidebar,
.sidebar .calendar-card,
.sidebar .sidebar-section {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-title,
.calendar-card h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0;
    padding: 12px 18px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
}

/* ============================================
   FOOTER — FULL PREMIUM
   ============================================ */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--text-on-dark);
    margin-top: 60px;
    padding: 0;
    border-top: none;
    font-size: 14px;
    text-align: left;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 20px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand .footer-logo .ft-xs {
    color: var(--brand-red);
}

.footer-brand .footer-logo .ft-360 {
    color: var(--brand-gold);
}

.footer-brand p {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0 0 16px 0;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #a0aec0;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #718096;
}

.footer-bottom a {
    color: #a0aec0;
    margin-left: 20px;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ============================================
   SEO CONTENT SECTION
   ============================================ */
.seo-content {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-top: 36px;
    box-shadow: var(--shadow-sm);
}

.seo-content h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 14px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--surface-border);
}

.seo-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 8px 0;
}

.seo-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 12px 0;
}

.seo-content ul {
    padding-left: 20px;
    margin: 8px 0 12px;
}

.seo-content ul li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 4px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-xoso {
    animation: fadeInUp 0.4s ease;
}

/* Previous day cards stagger */
.previous-day-card:nth-child(1) {
    animation-delay: 0.05s;
}

.previous-day-card:nth-child(2) {
    animation-delay: 0.1s;
}

.previous-day-card:nth-child(3) {
    animation-delay: 0.15s;
}

/* ============================================
   LOTO SECTION
   ============================================ */
.loto-section {
    margin-top: 16px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {

    /* Header Mobile */
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .menu-toggle span {
        background: #fff;
    }

    /* ===== Mobile Nav Panel ===== */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
        padding: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        flex-direction: column;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        text-align: left;
    }

    .nav.active {
        right: 0;
    }

    /* Spacer for close btn */
    .nav::before {
        content: '';
        display: block;
        height: 60px;
        flex-shrink: 0;
    }

    /* ===== Nav Items ===== */
    .nav>a {
        display: block;
        padding: 15px 24px;
        font-size: 15px;
        font-weight: 500;
        color: #cbd5e1;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease;
        text-align: left;
    }

    .nav>a:hover,
    .nav>a:active {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

    .nav>a.active-nav {
        color: #f59e0b;
        background: rgba(245, 158, 11, 0.08);
    }

    .nav>a.active-nav::after {
        display: none;
    }

    /* ===== Dropdown Groups ===== */
    .nav-dropdown {
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-dropdown>.nav-link {
        display: block;
        padding: 15px 24px;
        padding-right: 52px;
        font-size: 15px;
        font-weight: 500;
        color: #cbd5e1;
        text-decoration: none;
        transition: all 0.2s ease;
        border: none;
    }

    .nav-dropdown>.nav-link:hover,
    .nav-dropdown>.nav-link:active {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

    .nav-dropdown>.nav-link.active-nav {
        color: #f59e0b;
    }

    /* ===== Dropdown Arrow ===== */
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        width: 52px;
        height: 49px;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 0;
        color: transparent;
        transition: all 0.25s ease;
        padding: 0;
    }

    .dropdown-toggle::after {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #64748b;
        border-bottom: 2px solid #64748b;
        transform: rotate(45deg);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-top: -3px;
    }

    .nav-dropdown.open .dropdown-toggle::after {
        transform: rotate(-135deg);
        margin-top: 3px;
        border-color: #f59e0b;
    }

    .nav-dropdown.open .dropdown-toggle {
        transform: none;
    }

    /* ===== Dropdown Content ===== */
    .nav-dropdown .dropdown-content {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
        border-radius: 0;
        border-top: none;
        animation: none;
        overflow: hidden;
    }

    .nav-dropdown.open .dropdown-content {
        display: block !important;
        animation: mobileSlideDown 0.3s ease forwards;
    }

    @keyframes mobileSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-dropdown .dropdown-content a {
        display: block;
        padding: 12px 24px 12px 44px;
        font-size: 14px;
        color: #94a3b8;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
        transition: all 0.2s ease;
        position: relative;
    }

    .nav-dropdown .dropdown-content a::before {
        content: '';
        position: absolute;
        left: 28px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #475569;
        transition: all 0.2s ease;
    }

    .nav-dropdown .dropdown-content a:hover,
    .nav-dropdown .dropdown-content a:active {
        background: rgba(255, 255, 255, 0.04);
        color: #f1f5f9;
        padding-left: 44px;
    }

    .nav-dropdown .dropdown-content a:hover::before {
        background: #f59e0b;
        box-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
    }

    .nav-dropdown .dropdown-content a:last-child {
        border-bottom: none;
    }

    /* ===== Body Lock ===== */
    body.menu-open {
        overflow: hidden;
    }

    /* Layout Mobile */
    .layout-two-cols {
        grid-template-columns: 1fr;
    }

    .page-header {
        border-radius: 0;
        margin: -20px -20px 24px;
        padding: 24px 20px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .section-title {
        font-size: 18px;
    }

    .special-prize {
        font-size: 28px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-bottom a {
        margin-left: 10px;
    }
}