/* ============================================================
   PLAYLOTTOGLOBAL - World Lottery Platform
   Modern dark theme with gold accent
   ============================================================ */

/* ==================== VARIABLES ==================== */
:root {
    --bg-body: #0a0a0c;
    --bg-sidebar: #101014;
    --bg-header: rgba(14, 14, 18, 0.92);
    --bg-card: #141418;
    --bg-card-hover: #1a1a20;
    --bg-input: #18181e;
    --bg-surface: #111115;
    --border: #222228;
    --border-light: #2a2a32;

    --accent: #f0a500;
    --accent-hover: #ffb81c;
    --accent-dim: rgba(240, 165, 0, 0.15);
    --accent-glow: rgba(240, 165, 0, 0.3);

    --text-primary: #f2f2f4;
    --text-secondary: #9898a4;
    --text-muted: #58586a;

    --green: #22c55e;
    --red: #ef4444;
    --blue: #3b82f6;

    --sidebar-width: 250px;
    --header-height: 68px;
    --mobile-nav-height: 64px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Lottery brand colors */
    --mega-millions: #0066cc;
    --powerball-us: #c8102e;
    --powerball-au: #ff6600;
    --superenalotto: #003ba3;
    --thunderball: #e91e8c;
    --euromillions: #003a70;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; color: inherit; }
input, select { font-family: var(--font); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ==================== SPARKLE CANVAS ==================== */
#sparkle-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ==================== LAYOUT ==================== */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease, transform 0.3s ease;
}

#app-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease;
}

#main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

#main-content {
    padding: 28px;
    max-width: 1280px;
    animation: pageEnter 0.35s ease;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 90;
}

.mobile-overlay.active { display: block; }

#mobile-bottom-nav { display: none; }

/* ==================== SIDEBAR STYLES ==================== */
.sidebar-logo {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), #ff6b00);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-logo-icon svg { width: 20px; height: 20px; }

.sidebar-logo-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sidebar-logo-text span {
    color: var(--accent);
}

.sidebar-nav {
    flex: 1;
    padding: 4px 10px;
}

.sidebar-section-label {
    padding: 16px 12px 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--accent-dim);
    color: var(--accent);
}

.sidebar-link.active .sidebar-icon {
    color: var(--accent);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s;
}

.sidebar-link:hover .sidebar-icon {
    color: var(--text-secondary);
}

.sidebar-icon svg { width: 20px; height: 20px; }

.sidebar-badge {
    margin-left: auto;
    background: var(--accent);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.sidebar-jackpot-card {
    background: linear-gradient(135deg, rgba(240,165,0,0.12), rgba(240,165,0,0.04));
    border: 1px solid rgba(240,165,0,0.2);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
}

.sidebar-jackpot-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 4px;
}

.sidebar-jackpot-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-jackpot-cta {
    display: block;
    margin-top: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s;
}

.sidebar-jackpot-cta:hover { background: var(--accent-hover); }

/* ==================== HEADER STYLES ==================== */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-hamburger {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.header-hamburger:hover { background: rgba(255,255,255,0.06); }
.header-hamburger svg { width: 22px; height: 22px; color: var(--text-secondary); }

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    min-width: 240px;
    transition: border-color 0.2s;
}

.header-search:focus-within { border-color: var(--accent); }
.header-search svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

.header-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    width: 100%;
}

.header-search input::placeholder { color: var(--text-muted); }

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

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.header-btn-primary {
    background: var(--accent);
    color: #000;
}

.header-btn-primary:hover { background: var(--accent-hover); }

.header-btn-outline {
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.header-btn-outline:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.header-btn svg { width: 16px; height: 16px; }

.header-user {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), #ff6b00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
}

/* ==================== PAGE TRANSITIONS ==================== */
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== TYPOGRAPHY ==================== */
.page-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.2s;
}

.section-link:hover { color: var(--accent-hover); }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 14px; font-size: 12px; }

.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 20px var(--accent-glow); }

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
    color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

.btn svg { width: 16px; height: 16px; }

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.25s;
}

.card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

/* ==================== LOTTERY BALLS ==================== */
.ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    position: relative;
    background: var(--ball-color, #3b82f6);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3), inset 0 -3px 6px rgba(0,0,0,0.2), inset 0 3px 6px rgba(255,255,255,0.15);
}

.ball-sm { width: 32px; height: 32px; font-size: 12px; }

.ball-red { --ball-color: #ef4444; }
.ball-blue { --ball-color: #3b82f6; }
.ball-green { --ball-color: #22c55e; }
.ball-yellow { --ball-color: #eab308; }
.ball-purple { --ball-color: #a855f7; }
.ball-orange { --ball-color: #f97316; }
.ball-pink { --ball-color: #ec4899; }
.ball-teal { --ball-color: #14b8a6; }
.ball-gold {
    --ball-color: #f0a500;
    box-shadow: 0 3px 12px rgba(240,165,0,0.4), inset 0 -3px 6px rgba(0,0,0,0.2), inset 0 3px 6px rgba(255,255,255,0.2);
}

.balls-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ball-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    margin: 0 4px;
}

@keyframes ballBounce {
    0% { transform: scale(0) translateY(-20px); opacity: 0; }
    60% { transform: scale(1.15) translateY(0); }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

.ball-animate {
    animation: ballBounce 0.4s ease forwards;
    opacity: 0;
}

/* ==================== COUNTDOWN ==================== */
.countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-unit {
    text-align: center;
}

.countdown-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.countdown-value-sm {
    width: 36px;
    height: 36px;
    font-size: 15px;
}

.countdown-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.countdown-sep {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 16px;
}

/* ==================== HERO / BANNER ==================== */
.hero-banner {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    overflow: hidden;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(255,255,255,0.06);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(240,165,0,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--accent-dim);
    border: 1px solid rgba(240,165,0,0.3);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-decor {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.8;
}

/* ==================== LOTTERY CARDS (CATALOG) ==================== */
.lottery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.lottery-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s;
    cursor: pointer;
}

.lottery-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.lottery-card-header {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}

.lottery-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.lottery-card-info h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.lottery-card-country {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.lottery-card-body {
    padding: 16px 20px 18px;
}

.lottery-card-jackpot-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.lottery-card-jackpot {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.lottery-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lottery-card-draw {
    font-size: 12px;
    color: var(--text-secondary);
}

.lottery-card-draw strong {
    color: var(--text-primary);
    font-weight: 600;
}

.lottery-card-cta {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.lottery-card-cta:hover { background: var(--accent-hover); }

/* ==================== UPCOMING DRAWS ==================== */
.draws-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.draw-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.draw-chip:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.draw-chip-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.draw-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.draw-chip-name {
    font-size: 13px;
    font-weight: 600;
}

.draw-chip-jackpot {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.draw-chip-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==================== WINNERS / RESULTS ==================== */
.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.results-table td {
    padding: 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.results-table tr:hover td {
    background: rgba(255,255,255,0.015);
}

.results-lottery-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-lottery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.results-date {
    color: var(--text-secondary);
    font-size: 13px;
}

.results-jackpot {
    font-weight: 700;
    color: var(--accent);
}

/* ==================== STATS BAR ==================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 2px;
}

.stat-value.accent { color: var(--accent); }
.stat-value.green { color: var(--green); }
.stat-value.blue { color: var(--blue); }

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== NUMBER PICKER ==================== */
.picker-section {
    margin-bottom: 28px;
}

.picker-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.picker-label span {
    color: var(--accent);
    font-weight: 700;
}

.picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 6px;
    max-width: 540px;
}

.picker-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-input);
    border: 1px solid var(--border);
    transition: all 0.15s;
    cursor: pointer;
}

.picker-num:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.picker-num.selected {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 2px 10px var(--accent-glow);
    font-weight: 700;
}

.picker-num.bonus-selected {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 2px 10px rgba(239,68,68,0.3);
    font-weight: 700;
}

.picker-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.selection-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
}

.selection-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.selected-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.selection-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== LOTTERY DETAIL PAGE ==================== */
.lottery-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.lottery-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.lottery-detail-info h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.lottery-detail-country {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.lottery-detail-jackpot {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1px;
}

.lottery-detail-jackpot-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.lottery-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.lottery-detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 28px);
}

.ticket-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.ticket-summary-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-summary-card h3 svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ticket-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.ticket-line-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.ticket-line-value {
    font-size: 14px;
    font-weight: 600;
}

.ticket-total {
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-total-label {
    font-size: 15px;
    font-weight: 700;
}

.ticket-total-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.ticket-buy-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #000;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ticket-buy-btn:hover { background: var(--accent-hover); box-shadow: 0 4px 20px var(--accent-glow); }
.ticket-buy-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ticket-buy-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* How to play */
.how-to-play {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.how-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.how-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.how-step h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.how-step p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== RESULTS PAGE ==================== */
.results-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.results-filter-btn {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.results-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.results-filter-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.result-card:hover {
    border-color: var(--border-light);
}

.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.result-card-lottery {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.result-card-name {
    font-size: 16px;
    font-weight: 700;
}

.result-card-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.result-card-jackpot {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.result-card-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==================== WINNERS TICKER ==================== */
.winners-ticker {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 32px;
    overflow: hidden;
}

.winners-ticker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.winners-ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.winners-ticker-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--green);
}

.winners-list {
    display: flex;
    gap: 24px;
    animation: tickerScroll 20s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.winner-name {
    font-size: 13px;
    font-weight: 600;
}

.winner-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.winner-lottery {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== TOAST ==================== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: toastIn 0.3s ease;
    max-width: 360px;
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
.toast.info { border-color: var(--blue); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-exit {
    animation: toastOut 0.25s ease forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px); }
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden { display: none; }

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==================== FEATURE CARDS ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--border-light);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.feature-icon svg { width: 20px; height: 20px; color: var(--accent); }

.feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
    width: fit-content;
}

.tab-btn {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tab-btn:hover { color: var(--text-primary); }

.tab-btn.active {
    background: var(--accent);
    color: #000;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--text-secondary); }
.empty-state p { font-size: 13px; }

/* ==================== PROFILE PAGE ==================== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff6b00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.profile-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.profile-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.profile-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.profile-stat-icon svg { width: 20px; height: 20px; }

.profile-stat-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.order-row:last-child { border-bottom: none; }

.order-id {
    font-size: 13px;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-primary);
}

.order-lottery {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-date {
    font-size: 12px;
    color: var(--text-muted);
}

.order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.win { background: rgba(34,197,94,0.15); color: var(--green); }
.order-status.no-win { background: rgba(255,255,255,0.05); color: var(--text-muted); }

.saved-number-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
}

.saved-number-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.saved-number-lottery {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.settings-row:last-child { border-bottom: none; }

.settings-label {
    font-size: 14px;
    font-weight: 500;
}

.settings-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Toggle switch */
.toggle {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--border);
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle.on { background: var(--accent); }

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

.toggle.on::after { transform: translateX(20px); }

/* ==================== CART PAGE ==================== */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cart-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.cart-item:hover { border-color: var(--border-light); }

.cart-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.cart-item-info { flex: 1; }

.cart-item-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item-draw {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

.cart-item-remove:hover { color: var(--red); background: rgba(239,68,68,0.1); }
.cart-item-remove svg { width: 16px; height: 16px; }

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 420px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 0 0;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.cart-summary-total span:first-child {
    font-size: 16px;
    font-weight: 700;
}

.cart-summary-total span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cart-empty-icon svg { width: 32px; height: 32px; color: var(--text-muted); }

/* ==================== SYNDICATES PAGE ==================== */
.syndicate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.syndicate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s;
}

.syndicate-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.syndicate-card-top {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.syndicate-card-lottery {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.syndicate-card-lottery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.syndicate-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.syndicate-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.syndicate-popularity {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(34,197,94,0.15);
    color: var(--green);
    white-space: nowrap;
}

.syndicate-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
}

.syndicate-stat {
    background: var(--bg-card);
    padding: 14px;
    text-align: center;
}

.syndicate-stat-value {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.syndicate-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.syndicate-card-footer {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}

.syndicate-members-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.syndicate-members-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--accent);
    transition: width 0.5s ease;
}

/* ==================== PROMOTIONS PAGE ==================== */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.promo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s;
}

.promo-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.promo-card-banner {
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

.promo-card-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: var(--promo-color);
}

.promo-card-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    position: relative;
}

.promo-card-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    position: relative;
}

.promo-card-subtitle {
    font-size: 15px;
    color: var(--accent);
    font-weight: 700;
    position: relative;
}

.promo-card-body {
    padding: 18px 20px;
}

.promo-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.promo-code-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 14px;
}

.promo-code-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-code-value {
    font-size: 15px;
    font-weight: 800;
    font-family: monospace;
    color: var(--accent);
    flex: 1;
}

.promo-code-copy {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.promo-code-copy:hover { color: var(--accent); background: var(--accent-dim); }
.promo-code-copy svg { width: 16px; height: 16px; }

.promo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-valid {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== HOW TO PLAY PAGE ==================== */
.htp-hero {
    text-align: center;
    padding: 40px 0 32px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.htp-hero h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
}

.htp-hero p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.htp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.htp-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    position: relative;
}

.htp-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.htp-step h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.htp-step p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.htp-step-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.htp-step-icon svg { width: 28px; height: 28px; }

.faq-list {
    max-width: 720px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.faq-question svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-bottom: 16px;
    display: none;
}

.faq-item.open .faq-answer { display: block; }

.lottery-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.lottery-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.lottery-info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lottery-info-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lottery-info-card h3 {
    font-size: 16px;
    font-weight: 700;
}

.lottery-info-detail {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.lottery-info-detail span:first-child {
    color: var(--text-muted);
}

.lottery-info-detail span:last-child {
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    #sidebar {
        width: 72px;
    }

    #sidebar .sidebar-logo-text,
    #sidebar .sidebar-link span,
    #sidebar .sidebar-section-label,
    #sidebar .sidebar-badge,
    #sidebar .sidebar-footer {
        display: none;
    }

    #sidebar .sidebar-logo { justify-content: center; padding: 16px; }
    #sidebar .sidebar-link { justify-content: center; padding: 12px; }

    #app-wrapper { margin-left: 72px; }

    .lottery-detail-grid {
        grid-template-columns: 1fr;
    }

    .lottery-detail-sidebar {
        position: static;
    }

    .hero-decor { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
        z-index: 110;
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #sidebar.open .sidebar-logo-text,
    #sidebar.open .sidebar-link span,
    #sidebar.open .sidebar-section-label,
    #sidebar.open .sidebar-badge,
    #sidebar.open .sidebar-footer {
        display: revert;
    }

    #app-wrapper { margin-left: 0; }

    #main-content {
        padding: 18px 14px;
        padding-bottom: calc(var(--mobile-nav-height) + 24px);
    }

    #main-header { padding: 0 14px; }

    .header-hamburger { display: flex; }
    .header-search { min-width: 0; flex: 1; }

    #mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--mobile-nav-height);
        background: var(--bg-header);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
        z-index: 100;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
    }

    .mob-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 12px;
        border-radius: var(--radius-md);
        font-size: 10px;
        font-weight: 600;
        color: var(--text-muted);
        transition: all 0.2s;
        position: relative;
    }

    .mob-nav-btn.active { color: var(--accent); }
    .mob-nav-btn svg { width: 22px; height: 22px; }

    .hero-banner { padding: 28px 20px; }
    .hero-title { font-size: 24px; }

    .lottery-grid { grid-template-columns: 1fr; }
    .lottery-card-jackpot { font-size: 22px; }

    .stats-bar { grid-template-columns: repeat(2, 1fr); }

    .draws-strip { grid-template-columns: repeat(2, 1fr); }

    .countdown-value { width: 36px; height: 36px; font-size: 15px; }

    .page-title { font-size: 22px; }

    .lottery-detail-header { flex-direction: column; }
    .lottery-detail-jackpot { font-size: 28px; }

    .picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
        gap: 5px;
    }

    .picker-num { width: 38px; height: 38px; font-size: 12px; }

    .how-to-play { grid-template-columns: 1fr 1fr; }

    .results-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }

    .profile-stats-row { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; text-align: center; }
    .syndicate-grid { grid-template-columns: 1fr; }
    .promo-grid { grid-template-columns: 1fr; }
    .htp-steps { grid-template-columns: 1fr 1fr; }
    .lottery-info-grid { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
}

@media (max-width: 420px) {
    .draws-strip { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 20px; }
    .hero-subtitle { font-size: 13px; }
    .how-to-play { grid-template-columns: 1fr; }
    .lottery-detail-jackpot { font-size: 24px; }
    .htp-steps { grid-template-columns: 1fr; }
    .profile-stats-row { grid-template-columns: 1fr; }

    .header-search { display: none; }
}
