/* ========================================
   LottoThai Pro - Dark Orange Theme
   Exact Match to React Version
   ======================================== */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-hover: #222222;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-glow: rgba(249, 115, 22, 0.4);
    --purple: #8b5cf6;
    --red: #dc2626;
    --green: #16a34a;
    --blue: #2563eb;
    --pink: #db2777;
    --cyan: #06b6d4;
    --yellow: #eab308;
    --primary-orange: #ff6b35;
    --primary-orange-dark: #e85a24;
    --primary-purple: #8b5cf6;
    --primary-cyan: #06b6d4;
    --primary-gold: #ffb800;
    --dark-bg: #050505;
    --card-bg: #111111;
    --orange-grad: linear-gradient(135deg, #ffffff 0%, #ff6b35 100%);
    --purple-grad: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --bg0: #0c0a08;
    --bg1: #0f0d0a;
    --bg2: #141210;
    --bg3: #1a1714;
    --bg4: #1f1b17;
    --bg5: #241f1a;
    --or: #f97316;
    --orb: #fb923c;
    --orh: #ea580c;
    --ord: #c2410c;
    --org: rgba(249, 115, 22, 0.12);
    --org2: rgba(249, 115, 22, 0.25);
    --orglow: rgba(249, 115, 22, 0.4);
    --gold: #f0c040;
    --yel: #fbbf24;
    --cyan: #22d3ee;
    --grn: #34d399;
    --red: #f43f5e;
    --pur: #a78bfa;
    --tw: #ede8e0;
    --ts: #a09888;
    --td: #605848;
    --tm: #3d352c;
    --bd: #2a2520;
    --bdl: #38322a;
    --bdh: #4a4038;
    --r: 10px;
    --rl: 14px;
    --lao-grad: linear-gradient(135deg, #0d1b3e 0%, #2d0a0a 100%);
    --hanoi-grad: linear-gradient(135deg, #4a0e0e 0%, #7a5c00 100%);
    --inner-card: #222222;
    --border-color: rgba(255, 107, 0, 0.3);
    --text-light: #ffffff;
    --text-gray: #999999;
}

/* SECTIONS */
.sh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem
}

.st {
    font-family: 'Kanit';
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.ico-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0
}

.sm {
    font-family: 'Kanit';
    font-size: .76rem;
    color: var(--or)
}

.sm:hover {
    opacity: .7
}

.sd {
    font-size: .76rem;
    color: var(--td);
    font-family: 'Kanit'
}

/* CARD */
.card {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: var(--rl);
    overflow: hidden;
    margin-bottom: 1.5rem
}

.card-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.2rem;
    border-bottom: 1px solid var(--bd)
}

.card-hl {
    display: flex;
    align-items: center;
    gap: .55rem
}

.card-body {
    padding: 1.2rem
}

.badge-ok {
    font-size: .66rem;
    padding: .12rem .45rem;
    border-radius: 4px;
    background: rgba(52, 211, 153, .12);
    color: var(--grn);
    font-family: 'Kanit'
}

.card-name {
    font-family: 'Kanit';
    font-weight: 600;
    font-size: .9rem
}

.card-sub {
    font-size: .7rem;
    color: var(--td)
}

/* Unified Card Style */
.standard-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.standard-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
}

/* Utility Classes */
.orange-text-gradient {
    background: var(--orange-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* LAO */
.lao-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .55rem
}

.lao-c {
    background: var(--bg4);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: .65rem .4rem;
    text-align: center
}

.lao-cl {
    font-size: .66rem;
    color: var(--td);
    font-family: 'Kanit'
}

.lao-cv {
    font-family: 'JetBrains Mono';
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--tw);
    margin-top: .15rem
}

.balls-label {
    text-align: center;
    font-family: 'Kanit';
    font-size: .78rem;
    color: var(--cyan);
    margin-top: .9rem
}

.balls {
    display: flex;
    gap: .45rem;
    justify-content: center;
    margin-top: .4rem
}

.ball {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono';
    font-weight: 800;
    font-size: .85rem;
    border: 2px solid var(--cyan);
    color: var(--cyan);
    background: rgba(34, 211, 238, .06);
    transition: all .2s
}

.ball:hover {
    background: rgba(34, 211, 238, .15);
    transform: scale(1.1)
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.countdown-item {
    text-align: center;
}

.countdown-card {
    background: rgba(255, 107, 53, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.15);
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 8px;
}

.countdown-label {
    font-size: 0.8rem;
    color: #666;
}

.accuracy-text {
    font-size: 0.75rem;
    font-weight: 700;
}

.progress-slim {
    height: 4px;
    border-radius: 10px;
    background: #333;
    margin-top: 15px;
}


/* Result Sections */
.result-title-row {
    border-left: 4px solid var(--primary-orange);
    padding-left: 15px;
    margin-bottom: 25px;
}

/* Dream Lotto Circle Style */
.dream-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-orange);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dream-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Lao Style */
.num-box-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.num-box-dark:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: var(--primary-orange);
}

.num-box-dark h4 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
}

.num-box-dark .label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Hanoi Style */
.hanoi-accent-border {
    border-top: 5px solid var(--primary-gold);
}

.hanoi-result-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.2rem;
    padding: 15px;
    margin-bottom: 12px;
}

.hanoi-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 50px;
    background: var(--primary-gold);
    color: #000;
    margin-bottom: 15px;
    display: inline-block;
}

.hanoi-label {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 5px;
}

.hanoi-value {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.hanoi-value.highlight {
    color: var(--primary-orange);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.orange-text {
    color: var(--primary-orange);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

/* News Section Styles */
.news-main-card {
    position: relative;
    height: 450px;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-main-card:hover .news-img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
}

.news-badge {
    background: var(--primary-orange);
    color: #000;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-block;
}

.small-news-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.small-news-item:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: var(--primary-orange);
}

.small-news-thumb {
    width: 100px;
    height: 100px;
    border-radius: 1rem;
    object-fit: cover;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* Stock Section Styles - Updated */
.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.stock-card {
    background: #111;
    border-radius: 1.5rem;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.stock-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    background: #151515;
}

.flag-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
    border: 2px solid var(--primary-orange);
    /* unified orange border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: #000;
}

.stock-result-box {
    background: #080808;
    border-radius: 1rem;
    padding: 12px;
    flex: 1;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.stock-label-pill {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.stock-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-orange);
}

.stock-num.white {
    color: #fff;
}

.stock-time-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* AI Section Styles - Updated to Dark Orange */
.ai-prediction-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 2rem;
    padding: 30px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s;
}

.ai-prediction-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
}

.ai-header-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.ai-number-display {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 1.2rem;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 107, 53, 0.05);
}

.ai-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-orange);
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.ai-label-small {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: 600;
}

.ai-accuracy-bar {
    height: 4px;
    background: #222;
    border-radius: 10px;
    margin-top: 10px;
}

.ai-accuracy-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--primary-orange);
}

.ai-hanoi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.05);
}

.ai-hanoi-row:last-child {
    border-bottom: none;
}

.hanoi-type-tag {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
}

.hanoi-pred-val {
    color: var(--primary-orange);
    font-weight: 800;
}

.ai-date-text {
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
}

/* Sidebar Result Style - Enhanced for Single Item */
.live-res-box-main {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 2rem;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.res-ball-small {
    width: 36px;
    height: 36px;
    background: var(--primary-orange);
    color: #000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    margin-right: 4px;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
    border: 1.5px solid #fff;
}

.res-label-main {
    font-size: 0.85rem;
    color: #888;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.res-big-val {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange-dark);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    background: transparent;
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.navbar-brand {
    text-decoration: none;
}

.logo-wrapper {
    position: relative;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 0 20px var(--orange-glow);
}

.logo-box-sm {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.live-pulse {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.brand-text {
    line-height: 1.1;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--orange), #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--orange), #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--orange-dark));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.btn-vip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem;
    background: transparent;
    border: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: 8px;
    color: var(--orange);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-vip:hover {
    background: rgba(249, 115, 22, 0.1);
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    box-shadow: 0 0 20px var(--orange-glow);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: calc(100vh - 80px);
    position: relative;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 25% 25%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 75%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 20px;
    color: var(--orange);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

/* Countdown */
.countdown-wrapper {
    margin-bottom: 2.5rem;
}

.countdown-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--orange);
    box-shadow: 0 0 20px var(--orange-glow);
}

.countdown-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary-glow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 0 30px var(--orange-glow);
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    box-shadow: 0 0 40px var(--orange-glow);
    transform: translateY(-2px);
}

.btn-outline-glow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: 10px;
    color: var(--orange);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: rgba(249, 115, 22, 0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--orange);
    margin: 0 auto 0.75rem;
}

.feature-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.section-icon.lao {
    background: linear-gradient(135deg, #1e40af, #991b1b);
}

.section-icon.hanoi {
    background: linear-gradient(135deg, #dc2626, #eab308);
}

.section-icon.bank {
    background: linear-gradient(135deg, var(--pink), #be185d);
}

.section-icon.stock {
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
}

.section-icon.live {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.section-title-center {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.link-arrow {
    color: var(--orange);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.link-arrow:hover {
    color: #fb923c;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

/* ========================================
   Cards
   ======================================== */
.lottery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lottery-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.lottery-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lottery-badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
}

.lottery-badge.lao {
    background: linear-gradient(135deg, #1e40af, #991b1b);
}

.lottery-badge.hanoi {
    background: linear-gradient(135deg, #dc2626, #eab308);
}

.lottery-badge.ai {
    background: linear-gradient(135deg, var(--purple), #7c3aed);
}

.lottery-name {
    font-weight: 600;
}

.lottery-date {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.lottery-actions {
    display: flex;
    gap: 0.5rem;
}

.lottery-body {
    padding: 2rem;
}

.lottery-footer {
    padding: 0 1.5rem 1.5rem;
}

/* ========================================
   News Section
   ======================================== */
.news-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
}

.news-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured:hover img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
}

.badge-hot {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: #dc2626;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.news-overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.news-overlay p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.news-meta i {
    margin-right: 0.25rem;
}

.news-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: rgba(249, 115, 22, 0.3);
}

.news-item img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-content .badge {
    font-size: 0.6875rem;
    margin-bottom: 0.5rem;
}

.news-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.news-content p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.stats-box {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.stats-numbers {
    display: flex;
    gap: 0.75rem;
}

.stat-box {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 8px;
}

.stat-box .num {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-box.hot .num {
    color: #dc2626;
}

.stat-box.cool .num {
    color: var(--blue);
}

.stat-box.popular .num {
    color: var(--green);
}

.stat-box .label {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

/* ========================================
   Lottery Numbers
   ======================================== */
.prize-section {
    padding: 2rem;
    text-align: center;
}

.prize-1 {
    background: linear-gradient(to bottom, rgba(249, 115, 22, 0.05), transparent);
    border-bottom: 1px solid var(--border-color);
}

.prize-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--orange);
    font-weight: 500;
    margin-bottom: 1rem;
}

.prize-numbers {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.number-ball {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px var(--orange-glow);
}

.number-ball-sm {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.prize-amount {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.prize-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .prize-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.prize-box {
    text-align: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.prize-label-small {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.prize-numbers-small {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.prize-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.prize-tags span {
    padding: 0.25rem 0.75rem;
    background: rgba(249, 115, 22, 0.2);
    color: var(--orange);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.prize-tags.purple span {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple);
}

.prize-tags.cyan span {
    background: rgba(6, 182, 212, 0.2);
    color: var(--cyan);
}

.prize-tags.pink span {
    background: rgba(219, 39, 119, 0.2);
    color: var(--pink);
}

.prize-amount-small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.btn-expand {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-color);
    color: var(--orange);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-expand:hover {
    background: rgba(249, 115, 22, 0.1);
}

.hidden-prizes {
    padding: 0 1.5rem 1.5rem;
}

.prize-extra {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .action-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

.btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-outline i {
    font-size: 1rem;
}

/* Lao Lottery */
.lottery-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.lottery-numbers {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.lottery-numbers.lao .number-ball {
    background: linear-gradient(135deg, #1e40af, #991b1b);
    box-shadow: none;
}

.lottery-sub {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.special-section {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-align: center;
}

.special-label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.special-numbers {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.special-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

/* Hanoi Tabs */
.lottery-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-btn span {
    opacity: 0.7;
    font-size: 0.75rem;
}

.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(135deg, #dc2626, #eab308);
    border-color: transparent;
    color: white;
}

/* Bank Lottery */
.bank-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bank-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-4px);
}

.bank-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.bank-badge.gsb {
    background: linear-gradient(135deg, var(--pink), #be185d);
}

.bank-badge.baac {
    background: linear-gradient(135deg, var(--green), #15803d);
}

.bank-number {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
}

.bank-number.gsb {
    background: linear-gradient(135deg, var(--pink), #be185d);
}

.bank-number.baac {
    background: linear-gradient(135deg, var(--green), #15803d);
}

.bank-number.orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

/* Stock Lottery */
.stock-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stock-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-4px);
}

.stock-flag {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #374151, #1f2937);
    border: 1px solid #4b5563;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stock-number {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
}

.stock-number.last3 {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

.stock-number.last2 {
    background: linear-gradient(135deg, var(--green), #15803d);
}

.market-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.market-change.up {
    color: var(--green);
}

.market-change.down {
    color: #dc2626;
}

/* AI Section */
.ai-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: var(--purple);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
    .ai-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ai-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.ai-feature:hover {
    border-color: var(--purple);
}

.ai-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--purple);
    margin: 0 auto 0.75rem;
}

.ai-feature-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.ai-feature-desc {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.btn-ai {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--purple), #7c3aed);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-ai:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.prediction-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.prediction-type {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.prediction-confidence {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.prediction-confidence.up {
    color: var(--green);
}

.prediction-confidence.down {
    color: #dc2626;
}

.prediction-confidence.stable {
    color: var(--yellow);
}

.prediction-numbers {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.prediction-number {
    flex: 1;
    height: 48px;
    background: linear-gradient(135deg, var(--purple), #7c3aed);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.progress-bar-custom {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), #a78bfa);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.prediction-desc {
    color: var(--text-secondary);
    font-size: 0.6875rem;
}

.vip-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 16px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.vip-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vip-icon-large {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.vip-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.vip-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Heatmap */
.sort-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sort.active,
.btn-sort:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}

.heatmap-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
}

.btn-filter.hot {
    background: #dc2626;
}

.btn-filter.warm {
    background: var(--orange);
}

.btn-filter.cool {
    background: var(--blue);
}

.btn-filter.cold {
    background: #6b7280;
}

.btn-filter.all {
    background: var(--orange);
}

.btn-filter:not(.active) {
    opacity: 0.6;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

@media (min-width: 576px) {
    .heatmap-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

.heatmap-number {
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.heatmap-number:hover {
    transform: scale(1.1);
}

.heatmap-number .freq {
    font-size: 0.6rem;
    opacity: 0.7;
}

.heatmap-number.hot {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.heatmap-number.warm {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: white;
    box-shadow: 0 2px 8px var(--orange-glow);
}

.heatmap-number.cool {
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    color: white;
}

.heatmap-number.cold {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.heatmap-stat {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid;
}

.heatmap-stat.hot {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.heatmap-stat.hot .stat-num {
    color: #dc2626;
}

.heatmap-stat.warm {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

.heatmap-stat.warm .stat-num {
    color: var(--orange);
}

.heatmap-stat.cool {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

.heatmap-stat.cool .stat-num {
    color: var(--blue);
}

.heatmap-stat.cold {
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.3);
}

.heatmap-stat.cold .stat-num {
    color: #6b7280;
}

.heatmap-stat .stat-num {
    font-size: 1.5rem;
    font-weight: 700;
}

.heatmap-stat .stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Guru Pick */
.guru-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guru-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guru-item:hover,
.guru-item.active {
    border-color: var(--orange);
    background: rgba(249, 115, 22, 0.1);
}

.guru-avatar {
    position: relative;
}

.guru-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.guru-vip {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #eab308, #ca8a04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: white;
}

.guru-info {
    flex: 1;
}

.guru-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.guru-name .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

.guru-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.guru-stats i {
    color: var(--green);
}

.guru-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.guru-detail-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guru-detail-info img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.guru-detail-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.guru-detail-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.guru-detail-stats i {
    color: var(--green);
}

.guru-picks {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.guru-pick {
    flex: 1;
    height: 64px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px var(--orange-glow);
}

.guru-analysis {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.guru-analysis-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.guru-analysis p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Live Draw */
.live-badge-lg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ef4444;
}

.live-player {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay {
    text-align: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ef4444;
    margin: 0 auto 1rem;
}

.play-text {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.play-sub {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.live-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.875rem;
    background: #ef4444;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.live-tag::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 1s infinite;
}

.viewer-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.875rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-body {
    padding: 1rem 1.25rem;
    max-height: 300px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
}

.chat-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.chat-user-name {
    font-weight: 500;
    font-size: 0.8125rem;
}

.chat-time {
    color: var(--text-muted);
    font-size: 0.6875rem;
}

.chat-text {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.chat-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--orange);
}

.chat-input input::placeholder {
    color: var(--text-muted);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(249, 115, 22, 0.2);
    color: var(--orange);
}

footer h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--orange);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-list i {
    margin-top: 0.25rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange);
}

/* ========================================
   Toast
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--green);
    border-radius: 10px;
    color: white;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-secondary);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
    }

    .nav-actions {
        margin-top: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .vip-banner {
        flex-direction: column;
        text-align: center;
    }

    .vip-info {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .countdown-value {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .number-ball {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .section-title-center {
        font-size: 1.75rem;
    }

}

/* Hero Section Thai */
.hero-section-thai {
    padding: 60px 0;
    text-align: center;
}

.hero-title-thai {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-subtitle-thai {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.search-container-thai {
    max-width: 750px;
    margin: 0 auto 50px;
    position: relative;
}

.search-input-thai {
    background: #111111;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 20px 30px;
    color: white;
    width: 100%;
    font-size: 1.1rem;
}

.btn-search-thai {
    position: absolute;
    right: 10px;
    top: 10px;
    bottom: 10px;
    background: var(--primary-orange);
    border: none;
    border-radius: 10px;
    padding: 0 30px;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

/* Section Title Style with Orange Bar */
.section-header {
    border-left: 5px solid var(--primary-orange);
    padding-left: 15px;
    margin-bottom: 30px;
}

.section-title {
    font-weight: 800;
    margin-bottom: 0;
    font-size: 1.75rem;
}

/* Main Prize Card */
.main-result-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 30px;
}

.prize-1-header {
    text-align: center;
    margin-bottom: 30px;
}

.prize-1-label {
    color: var(--primary-orange);
    font-weight: 600;
    margin-bottom: 5px;
}

.prize-1-val-label {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.prize-1-num {
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    margin: 20px 0;
    letter-spacing: 5px;
}

.prize-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.near-prize-label {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.near-prize-nums {
    font-weight: 700;
    color: var(--text-gray);
    letter-spacing: 2px;
}

.sub-prizes-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sub-prize-box {
    background: var(--inner-card);
    border-radius: 20px;
    padding: 30px 10px;
    text-align: center;
}

.sub-prize-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.sub-prize-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.sub-prize-val {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 10px;
}

/* Other Prizes Container */
.other-prizes-container {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 50px;
}

.prize-row-item {
    background: #111;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.prize-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.prize-title-accent {
    border-left: 4px solid var(--primary-orange);
    padding-left: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.prize-row-info {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.prize-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    justify-items: center;
}

.prize-num-tag {
    background: #1a1a1a;
    color: #efefef;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.2s;
}

.prize-num-tag:hover {
    background: #222;
    border-color: var(--primary-orange);
}

/* Past Results Cards */
.history-card-v2 {
    background: #161616;
    border-radius: 25px;
    padding: 35px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

.history-card-v2:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
}

.h-date {
    font-size: 1.2rem;
    font-weight: 800;
}

.h-period {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 20px;
}

.h-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

.h-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.h-main-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 25px;
}

.h-sub-label {
    font-size: 0.75rem;
    color: #444;
    margin-bottom: 5px;
}

.h-sub-num {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.h-sub-num-orange {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.btn-h-all {
    margin-top: 25px;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Historical Table */
.table-filter-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn-filter {
    background: #1a1a1a;
    color: #777;
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.btn-filter.active {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.table-custom-wrapper {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.table-custom thead th {
    background: #111;
    color: var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
    padding: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.table-custom tbody td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 1rem;
    vertical-align: middle;
}

.table-p1,
.table-b2 {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Heatmap Styles */
.heatmap-container {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 50px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin-top: 20px;
}

.heatmap-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 10px 4px;
    min-height: 60px;
}

.heatmap-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 0 18px rgba(255, 107, 0, 0.4);
}

.heatmap-num {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.2;
}

.heatmap-freq {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    font-weight: 500;
}

/* Heat levels */
.heat-hot {
    background: rgba(255, 107, 0, 0.85);
}
.heat-hot .heatmap-num { color: #fff; }
.heat-hot .heatmap-freq { color: rgba(255, 255, 255, 0.85); }

.heat-warm {
    background: rgba(255, 107, 0, 0.45);
}

.heat-cool {
    background: rgba(255, 107, 0, 0.18);
}

.heat-cold {
    background: rgba(255, 255, 255, 0.04);
}
.heat-cold .heatmap-num { color: rgba(255, 255, 255, 0.5); }
.heat-cold .heatmap-freq { color: rgba(255, 255, 255, 0.3); }

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    font-size: 0.8rem;
    color: #555;
}

.legend-box {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

/* Frequency Analytics Section Styles */
.frequency-container {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 40px;
    margin-bottom: 50px;
}

.freq-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    gap: 25px;
}

.freq-row:last-child {
    border-bottom: none;
}

.freq-count-badge {
    min-width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #222, #111);
    border: 2px solid var(--primary-orange);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.1);
}

.freq-count-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1;
}

.freq-count-unit {
    font-size: 0.65rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.freq-numbers-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.freq-num-pill {
    background: rgba(255, 107, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    color: #ddd;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.freq-num-pill:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
    transform: translateY(-2px);
}

/* --- NEW: AI Insight Styles --- */
.ai-insight-card {
    background: linear-gradient(145deg, #1e1a16, #121212);
    border-radius: 25px;
    padding: 35px;
    border: 1px solid var(--border-color);
    margin-top: 50px;
    margin-bottom: 80px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-orange);
    padding: 5px 15px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.insight-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.insight-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: block;
}

.insight-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.insight-subtext {
    font-size: 0.7rem;
    color: #555;
    margin-top: 10px;
    display: block;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.timer-item {
    background: #000;
    padding: 10px;
    border-radius: 10px;
    min-width: 50px;
}

.timer-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.timer-lbl {
    font-size: 0.6rem;
    color: #444;
}

@media (max-width: 992px) {
    .insight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .freq-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .freq-count-badge {
        min-width: 60px;
        height: 60px;
    }

    .freq-count-num {
        font-size: 1.2rem;
    }

    .heatmap-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .heatmap-cell {
        min-height: 50px;
        padding: 8px 2px;
    }

    .heatmap-num {
        font-size: 0.9rem;
    }

    .heatmap-freq {
        font-size: 0.5rem;
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Lotto Check Result Modal
   ======================================== */
.lotto-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lotto-modal-overlay.active {
    opacity: 1;
}

.lotto-modal-content {
    background: linear-gradient(160deg, #1a1208 0%, #0d0a06 50%, #1a1000 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 24px;
    padding: 40px 35px 30px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 0 60px rgba(249, 115, 22, 0.15),
        0 25px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lotto-modal-overlay.active .lotto-modal-content {
    transform: scale(1) translateY(0);
}

.lotto-modal-content.win {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow:
        0 0 80px rgba(249, 115, 22, 0.25),
        0 25px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lotto-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    z-index: 2;
}

.lotto-modal-close:hover {
    color: #f97316;
    transform: scale(1.2);
}

.lotto-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.lotto-modal-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.lotto-modal-title.win {
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lotto-modal-title.lose {
    color: #a0a0a0;
}

.lotto-modal-subtitle {
    font-family: 'Kanit', sans-serif;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.lotto-highlight-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.3rem;
    color: #f97316;
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

.lotto-result-list {
    margin: 15px 0;
    text-align: left;
}

.lotto-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.lotto-result-row:hover {
    background: rgba(249, 115, 22, 0.12);
}

.lotto-result-prize {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.lotto-result-amount {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fbbf24;
}

.lotto-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 14px;
    margin-top: 12px;
    margin-bottom: 20px;
}

.lotto-total-box span:first-child {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    color: #ccc;
    font-size: 0.95rem;
}

.lotto-total-amount {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lotto-modal-encourage {
    font-family: 'Kanit', sans-serif;
    color: #888;
    font-size: 1rem;
    margin: 15px 0 25px;
    line-height: 1.6;
}

.lotto-modal-btn {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
    margin-top: 10px;
}

.lotto-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(249, 115, 22, 0.5);
}

.lotto-modal-btn:active {
    transform: translateY(0);
}

#confettiCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

@media (max-width: 480px) {
    .lotto-modal-content {
        padding: 30px 20px 25px;
        border-radius: 18px;
    }

    .lotto-modal-title {
        font-size: 1.4rem;
    }

    .lotto-highlight-num {
        font-size: 1.1rem;
    }

    .lotto-total-amount {
        font-size: 1.1rem;
    }
}