/* 
   Premium Apple Aesthetics v2 - Modern UI/UX Unified Stylesheet
   Target Audience: 35-60 Years, High Contrast, High Legibility, 4G Optimized, Absolute Zero-CLS
   Includes Complete Dark Mode fixes for Datepicker, Select Dropdowns, Inputs, and Heatmaps.
*/

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

:root {
    --apple-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --apple-font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --card-bg-light: #ffffff;
    --card-bg-dark: #18181b;
    --border-light: #e2e8f0;
    --border-dark: #27272a;
    --color-mn: #e11d48; /* Crimson red for Southern region */
    --color-mt: #2563eb; /* Cobalt blue for Central region */
    --color-mb: #16a34a; /* Forest green for Northern region */
}

body {
    font-family: var(--apple-font-sans) !important;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 1. Perfect Monospace Lottery Numbers & Readable Sizes */
.xs_number, 
.xs_prize, 
.giai-db, 
.giaidb, 
.giai-dac-biet, 
td.giaidb, 
.xs_prize_col, 
.xs_prize_row td, 
.box-result td,
table.bkqtinhmienbac td,
table.rightcl td {
    font-family: var(--apple-font-mono) !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    letter-spacing: 0.5px !important;
    padding: 10px 5px !important;
    text-align: center !important;
}

.xs_prize1,
.xs_prize2,
.xs_prize3,
.prize1,
.prize2,
.prize3,
.prize4,
.prize5,
.prize6,
.prize7,
.prize8,
.xs_number_db,
.color_red {
    font-family: var(--apple-font-mono) !important;
    font-weight: 700 !important;
}

/* Special Prize (GĐB) Styling */
.xs_number_db, 
td.giaidb, 
.giaidb,
.giai-db,
.giai-dac-biet,
.color_red {
    font-size: clamp(24px, 4vw, 32px) !important;
    color: #ef4444 !important;
    background-color: #fef2f2 !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
}

/* First Prize (G1) */
.prize1, td.giai1, .giai1 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

/* Middle Prizes (G2, G3) */
.prize2, .prize3, td.giai2, td.giai3, .giai2, .giai3 {
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* Small Prizes (G4 to G8) */
.prize4, .prize5, .prize6, .prize7, .prize8,
td.giai4, td.giai5, td.giai6, td.giai7, td.giai8,
.giai4, .giai5, .giai6, .giai7, .giai8,
.xs_prize1, .xs_prize2, .xs_prize3 {
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* 2. Responsive Cards & Containers */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.content-left {
    flex: 1;
    min-width: 0;
}

/* Elegant Apple Card Shadows */
.widget, 
.box-result, 
.stats-card,
.pascal-card,
.dream-list-item,
.content-block {
    background: var(--card-bg-light);
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget:hover, 
.box-result:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08) !important;
}

/* Title Styling */
.widget-title, 
.title-c, 
.widget_bg h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}

/* 3. Mobile Layout Optimizations */
@media only screen and (max-width: 768px) {
    .main-content {
        flex-direction: column !important;
        padding: 10px !important;
    }
    
    .aside-160, 
    .aside-300 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mobile-top-search {
        order: -1 !important;
        margin-bottom: 15px !important;
    }

    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .xs_number, .xs_prize {
        font-size: 20px !important;
    }
    td.giaidb, .giaidb {
        font-size: 24px !important;
    }
}

/* 4. Skeleton Loading Effects */
.skeleton-loader {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    width: 100%;
}
.skeleton-line {
    height: 35px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 5. Elegant Day Bubble Navigation */
.day-bubble-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0 25px 0;
    flex-wrap: wrap;
}
.day-bubble-item {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.day-bubble-item:hover, 
.day-bubble-item.active {
    background: var(--theme-color, #c80505) !important;
    color: #ffffff !important;
    border-color: var(--theme-color, #c80505) !important;
    box-shadow: 0 4px 10px rgba(200, 5, 5, 0.2);
}

/* 6. Clean Ads Containers (No Layout Shift) */
.ads-premium-container {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 8px;
    margin: 20px 0;
    text-align: center;
    position: relative;
    min-height: 100px;
}
.ads-premium-container::before {
    content: 'TÀI TRỢ / QUẢNG CÁO';
    display: block;
    font-size: 9px;
    color: #94a3b8;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-align: left;
    padding-left: 8px;
    font-weight: bold;
}

/* 7. Sound and Countdown Widgets */
.live-countdown-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

/* 8. Mobile Dò Vé Top Replacement Layout Control */
.mobile-only-dove {
    display: none;
}
@media only screen and (max-width: 768px) {
    .mobile-only-dove {
        display: block !important;
        margin-bottom: 24px !important;
    }
    .aside-300 .ticket-checker-widget {
        display: none !important;
    }
}

/* 9. Premium 2-Column Layout Overrides for Desktop */
@media only screen and (min-width: 961px) {
    .aside-300 {
        width: 300px !important;
        flex-shrink: 0 !important;
        float: none !important;
    }
    .aside-160 {
        display: none !important;
    }
    .content-left {
        flex: 1 !important;
        float: none !important;
        padding-right: 0 !important;
        width: auto !important;
    }
}

/* 10. Blink Animation for Drawing Cells */
@keyframes pending-blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
.xs-pending, .xs_pending, .img-loading, .blink {
    animation: pending-blink 1s infinite ease-in-out !important;
}

/* 11. AdSense Layout Stability Slots (Zero-CLS) */
.ads-slot-header {
    min-height: 90px;
    width: 100%;
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}
.ads-slot-mid {
    min-height: 100px;
    width: 100%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}
.ads-slot-sidebar {
    min-height: 250px;
    width: 100%;
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}
.ads-slot-footer {
    min-height: 90px;
    width: 100%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

/* ==========================================================================
   12. Sleek Premium Dark Mode Integration (Apple Dark Pro Tones)
   ========================================================================== */
body.dark-mode {
    background-color: #09090b !important;
    color: #f4f4f5 !important;
}

body.dark-mode .widget, 
body.dark-mode .box-result, 
body.dark-mode .stats-card,
body.dark-mode .pascal-card,
body.dark-mode .dream-list-item,
body.dark-mode .content-block,
body.dark-mode .pushbar {
    background: var(--card-bg-dark) !important;
    border-color: var(--border-dark) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .xs_number, 
body.dark-mode .xs_prize,
body.dark-mode td,
body.dark-mode th,
body.dark-mode table,
body.dark-mode tr {
    background-color: #27272a !important;
    color: #f4f4f5 !important;
    border-color: #3f3f46 !important;
}

body.dark-mode .day-bubble-item {
    background: #27272a;
    color: #d4d4d8;
    border-color: #3f3f46;
}

body.dark-mode .day-bubble-item:hover,
body.dark-mode .day-bubble-item.active {
    background: var(--theme-color, #c80505) !important;
    color: #ffffff !important;
}

body.dark-mode td.giaidb, 
body.dark-mode .giaidb,
body.dark-mode .giai-db,
body.dark-mode .giai-dac-biet {
    background-color: #270f0f !important;
    color: #f87171 !important;
    border-color: #3f3f46 !important;
}

body.dark-mode .ads-premium-container {
    background: #1e1e24 !important;
    border-color: #2e2e38 !important;
}

body.dark-mode .live-countdown-banner {
    background: linear-gradient(135deg, #18181b, #09090b);
}

body.dark-mode .ads-slot-header,
body.dark-mode .ads-slot-mid,
body.dark-mode .ads-slot-sidebar,
body.dark-mode .ads-slot-footer {
    background: #18181b;
    border-color: #3f3f46;
}

/* jQuery UI Datepicker - High Contrast Dark Mode */
body.dark-mode .ui-datepicker {
    background-color: #18181b !important;
    border: 1px solid #3f3f46 !important;
    color: #f4f4f5 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    padding: 8px !important;
}
body.dark-mode .ui-datepicker-header {
    background: #27272a !important;
    border: 1px solid #3f3f46 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}
body.dark-mode .ui-datepicker-title {
    font-weight: bold !important;
}
body.dark-mode .ui-datepicker-calendar th {
    color: #a1a1aa !important;
    background: #18181b !important;
    border: none !important;
    font-weight: 600 !important;
}
body.dark-mode .ui-datepicker-calendar td {
    background: #18181b !important;
    border: none !important;
    padding: 2px !important;
}
body.dark-mode .ui-state-default {
    background: #27272a !important;
    color: #f4f4f5 !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-weight: 500 !important;
}
body.dark-mode .ui-state-active, 
body.dark-mode .ui-state-hover {
    background: var(--theme-color, #c80505) !important;
    color: #ffffff !important;
    border-color: var(--theme-color, #c80505) !important;
}

/* Dark Mode Form Select Dropdowns & Inputs */
body.dark-mode select,
body.dark-mode input[type="text"],
body.dark-mode input[type="search"],
body.dark-mode textarea {
    background-color: #27272a !important;
    color: #f4f4f5 !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}
body.dark-mode select:focus,
body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="search"]:focus {
    border-color: var(--theme-color, #c80505) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(200, 5, 5, 0.2) !important;
}

/* Heatmap Frequency Grid Dark Mode Fixes */
body.dark-mode .table-frequency td,
body.dark-mode .tanso_hangchuc,
body.dark-mode .tanso_hangdonvi,
body.dark-mode .somien,
body.dark-mode .somiens {
    background-color: #27272a !important;
    color: #f4f4f5 !important;
    border-color: #3f3f46 !important;
}
body.dark-mode .numberHightlight {
    color: #60a5fa !important;
}
body.dark-mode .numberHightlight.log {
    color: #f87171 !important;
}
body.dark-mode .shadow.somien,
body.dark-mode .shadow.somiens {
    background-color: #27272a !important;
    color: #ffffff !important;
}

/* Morning Notice Banner styling */
.date-notice {
    background: #fffde7;
    border: 1px solid #f9a825;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #5d4037;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.countdown-inline {
    font-family: var(--apple-font-mono), monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--theme-color, #c80505);
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ffe0b2;
}
body.dark-mode .date-notice {
    background: #2d2a15 !important;
    border-color: #856404 !important;
    color: #fff3cd !important;
}
body.dark-mode .countdown-inline {
    background: #18181b !important;
    color: #ffc107 !important;
    border-color: #856404 !important;
}

/* ==========================================================================
   13. Premium Mockup Elements Integration (Claude Pro Aesthetics)
   ========================================================================== */
:root {
    --r: #c80505;
    --rd: #8b0000;
    --rl: #fff5f5;
    --rb: #fca5a5;
    --vl: #1a56db;
    --vld: #1e429f;
    --vlg: #ffd700;
    --bg: #ebebeb;
    --card: #fff;
    --bdr: #ddd;
    --t: #111;
    --t2: #444;
    --t3: #888;
}

/* Card Results Premium Layout */
.rc {
    background: var(--card-bg-light);
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rc:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08) !important;
}
.rc-hdr {
    background: var(--theme-color, #c80505);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}
.rc-ttl {
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: -0.2px;
}
.bl {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 9.5px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    animation: pending-blink 1.2s infinite;
}
.bd {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 9.5px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
}
.bd.completed {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    font-weight: 700 !important;
}
.rc-act {
    display: flex;
    gap: 6px;
}
.ba {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}
.ba:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Premium Table Result styling */
.kq {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.kq thead th {
    background: #fdf2f2;
    color: var(--theme-color, #c80505);
    font-size: 13px;
    font-weight: 800;
    padding: 10px 6px;
    text-align: center;
    border: 1px solid #fee2e2;
}
.kq thead th a {
    color: var(--theme-color, #c80505);
    text-decoration: none;
    font-weight: 800;
}
.kq thead th a:hover {
    text-decoration: underline;
}
.gn {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 4px !important;
    width: 50px !important;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.3;
    font-family: var(--apple-font-sans) !important;
}
.kq tbody td {
    border: 1px solid #e2e8f0 !important;
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
}
.kq tbody tr:nth-child(even) td:not(.gn) {
    background: #fcfcfd;
}
.row-db .gn {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
    border-top: 2px solid #fca5a5 !important;
}
.row-db td {
    border-top: 2px solid #fca5a5 !important;
    background: #fff8f8 !important;
}

/* Monospace Numbers classes */
.ndb {
    font-family: var(--apple-font-mono) !important;
    font-size: clamp(24px, 4.5vw, 30px) !important;
    font-weight: 900 !important;
    color: #ef4444 !important;
    letter-spacing: 1px !important;
    display: block;
    padding: 6px 0;
    line-height: 1.1;
}
.n1 {
    font-family: var(--apple-font-mono) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: 0.5px;
    display: block;
    padding: 4px 0;
}
.n2 {
    font-family: var(--apple-font-mono) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: inline-block;
    margin: 0 2px;
}
.ns {
    font-family: var(--apple-font-mono) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    display: inline-block;
    margin: 0 2px;
}
.nx {
    font-family: var(--apple-font-mono) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    display: inline-block;
    margin: 0 2px;
}
.sep {
    color: #cbd5e1;
    font-size: 13px;
    margin: 0 3px;
    vertical-align: middle;
    font-weight: 400;
}
.np {
    font-family: var(--apple-font-mono) !important;
    font-size: 14px !important;
    color: #d97706 !important;
    letter-spacing: 2px;
    animation: pending-blink 1s infinite ease-in-out !important;
}

/* Loto Section styling */
.loto {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
}
.loto-t {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.kq-loto {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.kq-loto th {
    padding: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
}
.kq-loto td {
    padding: 6px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
}
.loto-mid {
    font-weight: bold;
    color: var(--theme-color, #c80505);
    background: #fff5f5;
    font-family: var(--apple-font-mono) !important;
}
.loto-left, .loto-right {
    font-family: var(--apple-font-mono) !important;
    font-weight: 600;
    letter-spacing: 1px;
    color: #334155;
}

/* Footer & Buttons */
.rc-ft {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.rc-ft-i {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}
.rc-btns {
    display: flex;
    gap: 6px;
}
.bsm {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.bsm:hover {
    border-color: var(--theme-color, #c80505);
    color: var(--theme-color, #c80505);
}
.bsm-p {
    background: var(--theme-color, #c80505);
    border-color: var(--theme-color, #c80505);
    color: #fff;
}
.bsm-p:hover {
    background: var(--theme-color-hover, #c80505dd);
    color: #fff;
}

/* Dark Mode Overrides for Claude Mockup elements */
body.dark-mode .rc {
    background: var(--card-bg-dark) !important;
    border-color: var(--border-dark) !important;
}
body.dark-mode .rc-hdr {
    background: #27272a !important;
    border-bottom: 1px solid #3f3f46;
}
body.dark-mode .ba {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
body.dark-mode .ba:hover {
    background: rgba(255, 255, 255, 0.15);
}
body.dark-mode .kq thead th {
    background: #1c1917 !important;
    color: #f87171 !important;
    border-color: #3f3f46 !important;
}
body.dark-mode .kq thead th a {
    color: #f87171 !important;
}
body.dark-mode .gn {
    background: #18181b !important;
    color: #a1a1aa !important;
    border-color: #27272a !important;
}
body.dark-mode .kq tbody td {
    background: #18181b !important;
    color: #e4e4e7 !important;
    border-color: #27272a !important;
}
body.dark-mode .kq tbody tr:nth-child(even) td:not(.gn) {
    background: #202024 !important;
}
body.dark-mode .row-db .gn {
    background: #2d1818 !important;
    color: #f87171 !important;
    border-top: 2px solid #7f1d1d !important;
}
body.dark-mode .row-db td {
    border-top: 2px solid #7f1d1d !important;
    background: #271414 !important;
}
body.dark-mode .n1 {
    color: #f4f4f5 !important;
}
body.dark-mode .n2 {
    color: #e4e4e7 !important;
}
body.dark-mode .ns {
    color: #d4d4d8 !important;
}
body.dark-mode .nx {
    color: #a1a1aa !important;
}
body.dark-mode .sep {
    color: #4b5563 !important;
}
body.dark-mode .loto {
    background: #18181b !important;
    border-color: #27272a !important;
}
body.dark-mode .kq-loto {
    border-color: #27272a !important;
}
body.dark-mode .kq-loto th {
    background: #27272a !important;
    color: #d4d4d8 !important;
    border-color: #27272a !important;
}
body.dark-mode .kq-loto td {
    border-color: #27272a !important;
}
body.dark-mode .loto-mid {
    color: #f87171 !important;
    background: #3a1616 !important;
}
body.dark-mode .loto-left,
body.dark-mode .loto-right {
    color: #e4e4e7 !important;
}
body.dark-mode .rc-ft {
    background: #18181b !important;
    border-color: #27272a !important;
}
body.dark-mode .bsm {
    background: #27272a !important;
    border-color: #3f3f46 !important;
    color: #d4d4d8 !important;
}
body.dark-mode .bsm:hover {
    border-color: #f87171 !important;
    color: #f87171 !important;
}
body.dark-mode .bsm-p {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

/* Card Status Transitions (Apple Ambient Pro) */
.rc.live-active {
    border-color: #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
.rc.live-active .rc-hdr {
    background: linear-gradient(90deg, #ef4444, #b91c1c) !important;
}
.rc.live-completed {
    border-color: #cbd5e1 !important;
}
.rc.live-completed .rc-hdr {
    background: #475569 !important; /* Elegant slate gray for completed */
}
.rc.live-pending {
    opacity: 0.85;
}
.rc.live-pending .rc-hdr {
    background: #64748b !important; /* Soft steel blue for pending */
}

/* Dark mode specific status adjustments */
body.dark-mode .rc.live-completed .rc-hdr {
    background: #27272a !important;
}
body.dark-mode .rc.live-pending .rc-hdr {
    background: #1f1f23 !important;
}
body.dark-mode .rc.live-active {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.25), 0 4px 6px -1px rgba(0, 0, 0, 0.2) !important;
}


