/* =========================================================
   TOTO HULIN POOLS – Homepage Redesign
   Theme: Glossy Chinese Red + Imperial Gold
   Responsive: mobile-first, tablet, desktop
   ========================================================= */

@font-face {
    font-family: 'noto';
    src: url("../fonts/NotoSerif-Regular.ttf");
    font-display: swap;
}

:root {
    --red-900: #4a0000;
    --red-800: #7a0000;
    --red-700: #a30606;
    --red-600: #c8102e;
    --red-500: #e51837;
    --red-400: #ff3b45;
    --gold-100: #fff4c2;
    --gold-300: #ffe066;
    --gold-500: #f5c518;
    --gold-600: #d4a017;
    --gold-700: #8f6b00;
    --ink-950: #0a0505;
    --ink-900: #140808;
    --ink-800: #1c0a0a;
    --paper: #fff8ec;
    --shadow-red: 0 10px 30px rgba(200, 16, 46, 0.35);
    --shadow-gold: 0 6px 20px rgba(245, 197, 24, 0.35);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-brd: rgba(255, 215, 0, 0.25);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin-bottom: 0;
    padding-bottom: 60px;
    font-family: 'Poppins', 'noto', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #fff8ec;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(255, 59, 69, 0.25), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(245, 197, 24, 0.15), transparent 60%),
        linear-gradient(180deg, #180404 0%, #0a0303 60%, #060202 100%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Chinese pattern subtle overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.04) 1px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 59, 69, 0.05) 1px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.container, main, footer, .swiper { position: relative; z-index: 1; }
header, .site-hero { position: relative; z-index: 100; }
.navbot { position: fixed; z-index: 1050; }
.hero-nav { z-index: 101; }

/* Google font fallback */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@500;700;900&display=swap');

.font-cn { font-family: 'Noto Serif SC', 'noto', serif; }

/* =============== HERO (Big Centered Logo + Menu below) =============== */
.site-hero {
    position: relative;
    padding: 28px 16px 18px;
    text-align: center;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 215, 0, 0.18);
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.hero-brand {
    display: inline-block;
    transition: transform 0.35s ease;
}
.hero-brand:hover { transform: scale(1.02); }
.logo-hero {
    width: min(520px, 78vw);
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 22px rgba(255, 59, 69, 0.5)) drop-shadow(0 0 40px rgba(245, 197, 24, 0.25));
    animation: logo-glow 4s ease-in-out infinite;
}
@keyframes logo-glow {
    0%,100% { filter: drop-shadow(0 8px 22px rgba(255, 59, 69, 0.5)) drop-shadow(0 0 40px rgba(245, 197, 24, 0.25)); }
    50%     { filter: drop-shadow(0 8px 26px rgba(255, 59, 69, 0.65)) drop-shadow(0 0 60px rgba(245, 197, 24, 0.45)); }
}
.hero-tag {
    color: var(--gold-300);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
    text-shadow: 0 0 12px rgba(245, 197, 24, 0.4);
    padding-top: 2px;
}
.hero-tag::before, .hero-tag::after {
    content: "◆";
    color: var(--red-500);
    margin: 0 10px;
    vertical-align: middle;
    font-size: 0.7rem;
}
.hero-glow {
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: min(800px, 100vw);
    height: 400px;
    background: radial-gradient(closest-side, rgba(255, 59, 69, 0.28), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 1;
}

/* Horizontal centered menu below logo */
.hero-nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}
.hero-nav-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 8px 10px;
    margin: 0;
    background: linear-gradient(180deg, rgba(28, 10, 10, 0.9), rgba(10, 3, 3, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-wrap: wrap;
}
.hero-nav-list > li { position: relative; }
.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    color: #ffe9b5;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.hero-link i { color: var(--gold-300); font-size: 0.95rem; transition: transform 0.25s ease; }
.hero-link:hover {
    color: #fff;
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.25);
}
.hero-link:hover i { transform: scale(1.15); color: var(--gold-100); }
.hero-link.active {
    background: linear-gradient(180deg, rgba(200, 16, 46, 0.65), rgba(122, 0, 0, 0.65));
    border-color: var(--gold-500);
    color: #fff;
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.hero-link.active i { color: var(--gold-300); }
.hero-nav-list .dropdown-toggle::after {
    margin-left: 6px;
    color: var(--gold-300);
}

/* legacy .logo utility (used inside live component) */
.logo {
    width: 155px !important;
    max-width: 55vw;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(255, 59, 69, 0.55));
    transition: transform 0.3s ease;
}

/* =============== SECTION LABEL =============== */
.section-label {
    color: var(--gold-300);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.95rem;
    padding: 6px 4px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    position: relative;
}
.section-label i { color: var(--red-500); }
.section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.5), transparent);
}

/* =============== THIN MARQUEE STRIP (right column top) =============== */
.marquee-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: linear-gradient(90deg, rgba(200, 16, 46, 0.3), rgba(122, 0, 0, 0.15) 60%, rgba(200, 16, 46, 0.3));
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.marquee-icon {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
    color: #4a0000;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: pulse-gold 2s ease-in-out infinite;
}
@keyframes pulse-gold {
    0%,100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(245, 197, 24, 0.5); }
    50%     { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(245, 197, 24, 0); }
}
.text-runn-slim {
    flex: 1 1 auto;
    color: var(--gold-300);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin: 0;
    padding: 4px 0;
    background: transparent;
    border: none;
}

/* Dropdown */
.dropdown-menu {
    background: linear-gradient(180deg, #1c0a0a, #0a0303);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.dropdown-item {
    color: #ffe9b5 !important;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.dropdown-item:hover, .dropdown-item.active {
    background: linear-gradient(135deg, #c8102e, #7a0000) !important;
    color: #fff !important;
}

/* =============== MARQUEE (legacy - hidden, replaced by thin strip) =============== */
.text-runn {
    display: none;
}

/* =============== SWIPER SLIDER (fits in left col below live card) =============== */
.swiper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 215, 0, 0.25);
}
.slideimg {
    width: 100%;
    display: block;
    border-radius: 20px;
}
.swiper-button-prev, .swiper-button-next {
    color: var(--gold-300);
    background: rgba(10, 3, 3, 0.6);
    backdrop-filter: blur(6px);
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.swiper-button-prev:after, .swiper-button-next:after { font-size: 14px; font-weight: 900; }

/* =============== LIVE RESULT CARD (LEFT column) =============== */
.card-live {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent !important;
    border: none;
}
.card-live .card-body { padding: 0; }

#live {
    background:
        radial-gradient(600px 200px at 50% -10%, rgba(245, 197, 24, 0.25), transparent 60%),
        linear-gradient(160deg, #c8102e 0%, #8b0000 50%, #4a0000 100%);
    border: 2px solid rgba(255, 215, 0, 0.55) !important;
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow:
        var(--shadow-red),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -30px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}
#live::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
    pointer-events: none;
}

/* =============== COUNTDOWN =============== */
.draw-countdown {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 auto 14px;
    padding: 10px 16px 12px;
    max-width: 100%;
    background:
        radial-gradient(400px 120px at 50% 0%, rgba(255, 215, 0, 0.28), transparent 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
}
.cd-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold-300);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.cd-label i { color: var(--gold-100); animation: cd-pulse 1.6s ease-in-out infinite; }
.cd-period {
    background: linear-gradient(180deg, #fff4c2, #ffd700);
    color: #4a0000 !important;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    font-size: 0.72rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.cd-timer {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}
.cd-block {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 4px 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
    min-width: 58px;
    justify-content: center;
}
.cd-num {
    font-family: 'Poppins', 'Courier New', monospace;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #fff8ec 0%, #ffe066 45%, #d4a017 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}
.cd-unit {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-300);
    letter-spacing: 0.5px;
}
.cd-sep {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-500);
    padding: 0 2px;
    animation: cd-blink 1s step-end infinite;
}
@keyframes cd-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
@keyframes cd-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.draw-countdown.cd-urgent {
    animation: cd-urgent-glow 0.8s ease-in-out infinite;
    border-color: #ff3b45;
}
.draw-countdown.cd-urgent .cd-num {
    background: linear-gradient(180deg, #fff, #ffa8ae 50%, #ff3b45 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.draw-countdown.cd-urgent .cd-label i { color: #ff3b45; }
@keyframes cd-urgent-glow {
    0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 59, 69, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    50%      { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(255, 59, 69, 0), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
}
.draw-countdown.cd-empty {
    opacity: 0.75;
}
.draw-countdown.cd-empty .cd-label { font-size: 0.85rem; }
#live .navbar-brand { justify-content: center; width: 100%; margin: 0 0 8px; }
#live .logo {
    width: 180px !important;
    filter: drop-shadow(0 6px 14px rgba(255, 215, 0, 0.5));
}
#live h4, #live h5, #live h6 { color: #fff8ec; margin: 0; }
#live h4.fw-bold { font-size: 1.05rem; }
#live h5.fw-bold { font-size: 1rem; color: var(--gold-300); }
#live h6.fw-bold { font-size: 0.85rem; opacity: 0.9; }

.live-content {
    padding: 16px;
    margin-top: 14px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25)) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.live-content .row > .col-6 h4 {
    font-size: 1.2rem;
    font-weight: 800;
    padding: 8px 6px;
}
.live-content .row > .col-6:nth-child(2) h4,
.live-content .row > .col-6:nth-child(5) h4,
.live-content .row > .col-6:nth-child(8) h4 {
    background: linear-gradient(180deg, #fff4c2 0%, #ffd700 50%, #d4a017 100%);
    color: #4a0000 !important;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.55rem;
    letter-spacing: 3px;
    text-shadow: none;
}
.live-content hr {
    border-color: rgba(255, 215, 0, 0.35);
    opacity: 0.6;
    margin: 6px 0;
}

/* Override old dark bg */
div.live-content.bg-dark.rounded {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)) !important;
}

/* =============== HISTORY SECTION =============== */
.card1, .card-live-dk {
    background: linear-gradient(180deg, rgba(28, 10, 10, 0.85), rgba(10, 5, 5, 0.92)) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 0, 0.22) !important;
    border-radius: 22px !important;
    color: #fff8ec;
    padding: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin: 0 !important;
    width: 100% !important;
}

.card1 h4 {
    font-family: 'Noto Serif SC', 'noto', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-300);
    margin-bottom: 18px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}
.card1 h4::before, .card1 h4::after {
    content: "◆";
    color: var(--red-500);
    margin: 0 12px;
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Result Card (compact w/ BIG numbers) */
.result-card {
    background:
        radial-gradient(400px 150px at 50% -20%, rgba(255, 215, 0, 0.25), transparent 60%),
        linear-gradient(160deg, #c8102e 0%, #7a0000 55%, #3a0000 100%) !important;
    color: #fff;
    padding: 16px 14px !important;
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    border-radius: 18px !important;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.result-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
}
.result-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><text x='20' y='30' font-size='14' fill='rgba(255,215,0,0.05)' text-anchor='middle'>幸</text></svg>");
    pointer-events: none;
    opacity: 0.5;
}
.result-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(200, 16, 46, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.result-card h5, .result-card h6 { color: #fff; position: relative; z-index: 2; margin: 4px 0; }
.result-card h5 { font-size: 0.95rem; font-weight: 700; }
.result-card h6 { font-size: 0.78rem; opacity: 0.85; font-weight: 500; }
.result-card hr {
    border-color: rgba(255, 215, 0, 0.4);
    opacity: 0.6;
    margin: 8px auto;
}

.result-card .p-num {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(180deg, #fff8ec 0%, #ffe066 40%, #d4a017 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    margin: 6px 0 8px !important;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.result-card .fa-trophy {
    color: var(--gold-300) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Compact grid gaps */
.row.g-2 > [class*="col-"] { padding: 8px; }

/* =============== SECONDARY NAV (view all dropdown) =============== */
.navbar-result-custom {
    background: linear-gradient(90deg, #7a0000, #c8102e, #7a0000) !important;
    border-radius: 999px !important;
    padding: 6px 10px !important;
    margin-top: 18px !important;
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.navbar-result-custom .nav-link.dropdown-toggle {
    color: var(--gold-300) !important;
    font-weight: 700;
    letter-spacing: 1px;
}
.navbar-nav-custom {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* =============== RESULT PAGE / OTHER CARDS =============== */
.bg-card4 {
    background:
        radial-gradient(300px 120px at 50% -10%, rgba(255, 215, 0, 0.25), transparent 60%),
        linear-gradient(160deg, #c8102e 0%, #7a0000 60%, #3a0000 100%) !important;
    border: 1.5px solid rgba(255, 215, 0, 0.4) !important;
    border-radius: 18px !important;
    color: #fff !important;
}
.ball-result {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 5px;
    background: linear-gradient(180deg, #fff8ec, #ffe066 45%, #d4a017);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 4px 0 !important;
}

.bg-light.p-2 {
    background: linear-gradient(180deg, rgba(28, 10, 10, 0.9), rgba(10, 5, 5, 0.95)) !important;
    color: var(--gold-300) !important;
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin: 20px 0;
}
.bg-light.p-2 h2 { color: var(--gold-300); font-weight: 800; }
.bg-light.p-2 .btn-danger {
    background: linear-gradient(180deg, #e51837, #7a0000);
    border: none;
}
.bg-light.p-2 .input-group-text {
    background: #1c0a0a;
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--gold-300);
}
.bg-light.p-2 .form-control {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.2);
    color: #fff;
}
.bg-light.p-2 .form-control::placeholder { color: rgba(255, 215, 0, 0.5); }

/* Pagination */
.pagination .page-link {
    background: rgba(28, 10, 10, 0.8);
    color: var(--gold-300);
    border: 1px solid rgba(255, 215, 0, 0.25);
    margin: 0 3px;
    border-radius: 10px !important;
    font-weight: 700;
}
.pagination .page-link:hover {
    background: linear-gradient(135deg, #c8102e, #7a0000);
    color: #fff;
    border-color: var(--gold-500);
}
.pagination .active .page-link {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: #4a0000;
    border-color: var(--gold-500);
}
.pagination .disabled .page-link { opacity: 0.5; }

/* =============== BOTTOM INFO BAR (Date + Time only) =============== */
.navbot {
    padding: 8px 8px;
    background:
        linear-gradient(180deg, rgba(20, 4, 4, 0.95), rgba(10, 3, 3, 0.98)) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55);
    color: #fff;
    z-index: 1050;
}
.list-top, .bottom-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.bottom-nav > li { color: var(--gold-300); font-weight: 600; }
.time-cur {
    font-size: 0.82rem;
    color: var(--gold-300) !important;
    font-weight: 600;
}
#time-india {
    color: #fff;
    font-family: 'Poppins', monospace;
    font-weight: 700;
}

/* =============== FOOTER =============== */
footer {
    margin-top: 40px !important;
    padding: 20px 10px 90px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}
.copyright-text {
    color: var(--gold-300);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* =============== MODAL =============== */
.modal-content {
    background: linear-gradient(180deg, #1c0a0a, #0a0303);
    color: #fff8ec;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 18px;
}
.modal-header { border-bottom: 1px solid rgba(255, 215, 0, 0.25); }
.modal-title { color: var(--gold-300); }
.btn-close { filter: invert(1) hue-rotate(180deg) brightness(1.5); }

/* =============== RESPONSIVE =============== */
@media (max-width: 991.98px) {
    .site-hero { padding: 22px 12px 16px; }
    .logo-hero { width: min(360px, 78vw); }
    .hero-tag { font-size: 0.8rem; letter-spacing: 2px; }
    .section-label { font-size: 0.85rem; letter-spacing: 1.5px; }
    .hero-nav-list { gap: 4px; padding: 6px 8px; }
    .hero-link { padding: 7px 14px; font-size: 0.85rem; }
    body { padding-bottom: 70px; }
}

@media (max-width: 767.98px) {
    body { margin-bottom: 0; padding-bottom: 70px; }
    .site-hero { padding: 18px 10px 12px; }
    .logo-hero { width: min(280px, 80vw); }
    .hero-tag { font-size: 0.72rem; letter-spacing: 1.5px; }
    .hero-nav { margin-top: 8px; width: 100%; }
    .hero-nav-list {
        display: flex;
        width: 100%;
        max-width: 100%;
        border-radius: 16px;
        padding: 6px;
        justify-content: space-around;
        flex-wrap: nowrap;
        overflow: visible;
    }
    .hero-nav-list > li { position: relative; }
    .hero-nav-list .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        min-width: 200px;
        max-width: calc(100vw - 24px);
        z-index: 1055;
    }
    .hero-link { padding: 6px 10px; font-size: 0.78rem; gap: 5px; }
    .hero-link i { font-size: 0.85rem; }
    .hero-link span { display: inline; }

    .logo { width: 130px !important; }
    #live .logo { width: 150px !important; }
    .card1 h4 { font-size: 1.2rem; }
    .card1 h4::before, .card1 h4::after { margin: 0 6px; }
    .result-card { padding: 14px 12px !important; }
    .result-card .p-num { font-size: 1.9rem; letter-spacing: 3px; }
    .ball-result { font-size: 2.2rem; letter-spacing: 3px; }
    .live-content .row > .col-6 h4 { font-size: 1rem; }
    .live-content .row > .col-6:nth-child(2) h4,
    .live-content .row > .col-6:nth-child(5) h4,
    .live-content .row > .col-6:nth-child(8) h4 { font-size: 1.25rem; letter-spacing: 2px; }
    .swiper { border-radius: 16px; }
    .slideimg, .swiper { border-radius: 16px; }
    .card1, .card-live-dk { padding: 16px !important; border-radius: 18px !important; }
    #live { padding: 16px 14px; border-radius: 18px; }

    .marquee-strip { padding: 5px 10px 5px 5px; }
    .marquee-icon { width: 30px; height: 30px; font-size: 0.85rem; }
    .text-runn-slim { font-size: 0.74rem; }

    .cd-num { font-size: 1.35rem; }
    .cd-block { min-width: 48px; padding: 3px 6px; }
    .cd-label { font-size: 0.7rem; letter-spacing: 1px; }
    .cd-period { font-size: 0.66rem; padding: 2px 8px; }
    .cd-sep { font-size: 1.15rem; }

    .navbot { padding: 6px 4px; }
    .time-cur { font-size: 0.72rem; }
    .section-label { font-size: 0.78rem; padding: 4px 4px 6px; }
}

@media (max-width: 480px) {
    .logo-hero { width: min(220px, 82vw); }
    .hero-tag { font-size: 0.62rem; }
    .hero-link span { display: none; }
    .hero-link { padding: 8px 12px; }
    .hero-link i { font-size: 1rem; }
    .result-card .p-num { font-size: 1.7rem; letter-spacing: 2px; }
    .card1 h4 { font-size: 1.05rem; letter-spacing: 1px; }
    body::before { background-size: 24px 24px; }
    .bottom-nav > li { font-size: 0.7rem; }
    .bottom-nav { gap: 8px; }
}

/* =============== LEGACY (kept for compatibility) =============== */
.bg-brown { background-color: transparent !important; }
.bg-card1 { background: linear-gradient(135deg, #c8102e, #7a0000); border: 1px solid var(--gold-500); color: #fff; padding: 10px; }
.bg-card2 { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 215, 0, 0.2); color: #fff; padding: 10px; border-radius: 10px; }
.bg-card3 { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 215, 0, 0.15); color: #fff; padding: 10px; border-radius: 10px; }
.ball-num-1, .ball-num-2, .ball-num-3 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
}
.ball-num-1 { background: linear-gradient(180deg, #c8102e, #7a0000); border: 1px solid var(--gold-500); color: #fff; }
.ball-num-2 { background: linear-gradient(180deg, #ffe066, #d4a017); border: 1px solid var(--gold-500); color: #4a0000; }
.ball-num-3 { background: linear-gradient(180deg, #f7f7f7, #cacaca); border: 1px solid #cacaca; color: #4a0000; }

.prize-title {
    font-size: 1.05rem;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--gold-500);
    text-transform: uppercase;
    color: var(--gold-300);
}
.running-blw { width: 100%; position: relative; }
.icon-runn { position: absolute; z-index: 9999; top: -5px; font-size: 0.9rem; color: var(--gold-300); }

.topnav {
    background: rgba(28, 10, 10, 0.85);
    padding: 8px;
    color: var(--gold-300);
    border-radius: 10px;
}

/* Spin wheel legacy */
#fire { background-color: #313131 !important; height: 100%; width: 100%; }
.fire { height: 600px; }
.power_controls {
    background: url("../images/spin-wheel.png") center bottom no-repeat;
    height: 621px;
    width: 100%;
    z-index: 1;
}
.power_controls .can-pos {
    position: absolute; z-index: -1; left: 26.35%; margin-top: 58px; transform: scale(1.1);
}
.power_controls .can-pos canvas { width: 95%; display: block; margin: 0 auto; }
.power_controls button {
    color: #fff;
    background: linear-gradient(to bottom, #fdb040 0%, #d07400 100%);
    padding: 1px; font-size: 30px; width: 486px; height: 50px; margin-top: 459px; font-weight: 700;
}
.power_controls p { font-size: 5rem; font-weight: 700; width: 390px; height: 80px; margin: 25px auto; text-align: left; }
.power_controls span { font-size: 40px; color: #fff; font-weight: bold; }
.slot-container { width: 70%; margin-top: 10px; display: flex; gap: 10px; margin-left: auto; margin-right: auto; }
.slot {
    background-color: #da0000;
    border: 4px solid #e69121;
    border-radius: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

@media screen and (max-width: 1199px) {
    .power_controls { background-size: 75%; height: 0; padding-bottom: 100%; }
    .power_controls .can-pos { left: 55.25%; margin-top: 2.75%; transform: none; }
    .power_controls button { width: 68%; margin-top: 73%; }
    .power_controls p { width: 68%; margin: 2% auto; font-size: 6.5vw; }
}
@media screen and (max-width: 991px) {
    .power_controls { background-size: 90%; padding-bottom: 120%; }
    .power_controls span { font-size: 30px; }
    .power_controls .can-pos canvas { width: 95%; }
    .power_controls button { font-size: 3vw; height: auto; width: 80%; margin-top: 87%; }
    .power_controls p { margin: 2% auto; font-size: 7.5vw; width: 80%; }
    .slot { min-height: 50px; }
}
@media screen and (max-width: 567px) {
    .slot { border: 2px solid #e69121; border-radius: 4px; min-height: 30px; }
}
