/* ===========================================================
   BRETON POOLS — Chelsea-Inspired Theme
   Dark navy + neon accents + billiard-ball digits
   =========================================================== */

:root {
    /* Backgrounds */
    --bp-bg-deepest: #07101F;
    --bp-bg-dark:    #0E1626;
    --bp-bg-mid:     #131C30;
    --bp-bg-card:    #1B2438;
    --bp-bg-card-2:  #243049;

    /* Borders & dividers */
    --bp-line:       rgba(255, 255, 255, 0.08);
    --bp-line-2:     rgba(255, 255, 255, 0.14);

    /* Text */
    --bp-text:       #FFFFFF;
    --bp-text-soft:  #C9D0DE;
    --bp-text-muted: #8A93A8;
    --bp-text-dim:   #5E6678;

    /* Accents */
    --bp-red:        #FF2D38;
    --bp-red-2:      #FF5566;
    --bp-pink:       #FF4D8D;
    --bp-purple:     #B660FF;
    --bp-violet:     #6B5BFF;
    --bp-blue:       #2DA9FF;
    --bp-blue-2:     #2563EB;
    --bp-cyan:       #2DD4D4;
    --bp-green:      #3FB46B;
    --bp-green-2:    #2DDE6B;
    --bp-yellow:     #F4B41A;
    --bp-gold:       #F2C744;
    --bp-orange:     #FF8023;

    /* Ball palette */
    --b-0: #E63946;
    --b-1: #FF4D8D;
    --b-2: #3FB46B;
    --b-3: #2DD4D4;
    --b-4: #2563EB;
    --b-5: #C13FB4;
    --b-6: #F4B41A;
    --b-7: #FF8023;
    --b-8: #1A1F2A;
    --b-9: #62C26B;

    /* Shadows */
    --bp-glow-red: 0 18px 40px -10px rgba(255, 45, 56, 0.45);
    --bp-glow-pink: 0 12px 36px -8px rgba(255, 77, 141, 0.50);
    --bp-shadow-card: 0 18px 40px -16px rgba(0, 0, 0, 0.6), 0 2px 0 rgba(255,255,255,0.04) inset;

    --bp-radius:    14px;
    --bp-radius-lg: 22px;
    --bp-radius-xl: 28px;

    --bp-font: 'Poppins', 'Manrope', 'Inter', system-ui, sans-serif;
    --bp-font-display: 'Poppins', 'Manrope', sans-serif;
}

/* ------------------ Base ------------------ */
* { box-sizing: border-box; }

html, body {
    background: var(--bp-bg-deepest);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--bp-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--bp-text-soft);
    background:
        radial-gradient(900px 600px at 110% -10%, rgba(255, 45, 56, 0.10), transparent 55%),
        radial-gradient(800px 500px at -10% 110%, rgba(107, 91, 255, 0.10), transparent 60%),
        repeating-linear-gradient(
            -22deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 2px,
            transparent 2px,
            transparent 90px
        ),
        var(--bp-bg-deepest);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .fw-bold {
    font-family: var(--bp-font-display);
    color: var(--bp-text);
    letter-spacing: 0.2px;
    font-weight: 700;
}

a { color: var(--bp-text-soft); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--bp-pink); }

::selection { background: var(--bp-pink); color: #fff; }

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

/* ------------------ Top utility strip ------------------ */
.bp-topstrip {
    background: var(--bp-bg-deepest);
    border-bottom: 1px solid var(--bp-line);
    padding: 8px 0;
    font-size: 0.78rem;
    color: var(--bp-text-muted);
}
.bp-topstrip a {
    color: var(--bp-text-soft);
    margin-right: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.bp-topstrip a:hover { color: var(--bp-pink); }
.bp-topstrip .time-cur {
    font-family: 'JetBrains Mono', 'Manrope', monospace;
    color: var(--bp-text-soft);
    font-size: 0.78rem;
    font-weight: 600;
}
.bp-topstrip .time-cur #time-india { color: var(--bp-pink); }

/* ------------------ Header / Navbar ------------------ */
header { position: relative; z-index: 50; }

.navbar.navbar-expand-lg {
    background: var(--bp-bg-dark) !important;
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bp-line);
}
.bg-brown { background: var(--bp-bg-dark) !important; }

.navbar-brand { padding: 0; display: flex; align-items: center; gap: 10px; }
.navbar-brand .logo, .logo {
    width: 130px !important;
    height: auto;
    filter: drop-shadow(0 4px 14px rgba(255, 77, 141, 0.20));
    transition: transform .35s ease;
}
.navbar-brand:hover .logo { transform: translateY(-1px) scale(1.02); }

.navbar-dark .navbar-nav .nav-link {
    color: var(--bp-text-soft) !important;
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 10px 16px !important;
    margin: 0 2px;
    position: relative;
    transition: color .25s ease;
}
.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 4px;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--bp-pink), var(--bp-purple));
    transform: translateX(-50%);
    transition: width .3s ease;
    border-radius: 2px;
}
.navbar-dark .navbar-nav .nav-link:hover { color: var(--bp-text) !important; }
.navbar-dark .navbar-nav .nav-link:hover::after { width: 60%; }
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--bp-text) !important;
}
.navbar-dark .navbar-nav .nav-link.active::after { width: 60%; }

/* CTA pill (used in topstrip if any) */
.bp-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, var(--bp-pink), var(--bp-purple));
    color: #fff !important;
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--bp-glow-pink);
    transition: transform .25s ease, box-shadow .25s ease;
}
.bp-cta-pill:hover {
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 16px 40px -8px rgba(255, 77, 141, 0.65);
}

.dropdown-menu {
    background: var(--bp-bg-card);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7);
    padding: 8px;
    margin-top: 12px !important;
    min-width: 220px;
}
.dropdown-item {
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bp-text-soft);
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: background .2s ease, color .2s ease;
}
.dropdown-item:hover {
    background: rgba(255, 77, 141, 0.10);
    color: var(--bp-pink);
}
.dropdown-item.active, .dropdown-item:active {
    background: linear-gradient(90deg, var(--bp-pink), var(--bp-purple));
    color: #fff;
}

.navbar-toggler {
    border: 1px solid var(--bp-line-2);
    padding: 6px 10px;
    border-radius: 10px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.30); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23FF4D8D' stroke-width='2' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
}

/* ------------------ Marquee ------------------ */
.text-runn {
    background: linear-gradient(90deg, var(--bp-red), var(--bp-pink) 50%, var(--bp-purple));
    color: #fff !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(0,0,0,0.25);
    box-shadow: 0 6px 20px -8px rgba(255, 45, 56, 0.35);
}

/* ------------------ Hero / Swiper ------------------ */
.swiper {
    width: 100%;
    margin: 0;
    overflow: hidden;
    position: relative;
}
.swiper-slide { position: relative; overflow: hidden; }
.slideimg {
    width: 100%; height: 100%; display: block; object-fit: cover;
    transform: scale(1.03);
    transition: transform 6s ease;
}
.swiper-slide-active .slideimg { transform: scale(1.08); }
.swiper-slide::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,16,31,0) 50%, rgba(7,16,31,0.95) 100%);
    pointer-events: none;
}
.swiper-button-prev, .swiper-button-next {
    color: #fff !important;
    background: rgba(255, 45, 56, 0.85);
    width: 50px !important; height: 50px !important;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.18);
    transition: all .3s ease;
    box-shadow: 0 10px 30px -10px rgba(255, 45, 56, 0.55);
}
.swiper-button-prev:hover, .swiper-button-next:hover {
    background: var(--bp-pink);
    transform: scale(1.05);
}
.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 18px !important; font-weight: 800;
}

/* ------------------ Countdown ------------------ */
.bp-countdown {
    max-width: 1140px;
    margin: -60px auto 0;
    padding: 22px 28px;
    background: linear-gradient(95deg, var(--bp-red) 0%, var(--bp-red-2) 70%, #FF6E4F 100%);
    border-radius: var(--bp-radius-xl);
    color: #fff;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--bp-glow-red), 0 0 0 1px rgba(255,255,255,0.06) inset;
    overflow: hidden;
}
.bp-countdown::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(255,255,255,0.18), transparent 60%),
        radial-gradient(400px 200px at 100% 100%, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}
.bp-countdown__label {
    font-family: var(--bp-font-display);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.bp-countdown__label small {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-top: 6px;
}
.bp-countdown__grid {
    display: flex;
    gap: 14px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.bp-countdown__cell {
    text-align: center;
    min-width: 78px;
}
.bp-countdown__cell-label {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.85);
    text-transform: capitalize;
    font-weight: 600;
    margin-bottom: 4px;
}
.bp-countdown__cell-value {
    font-family: 'Poppins', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* ------------------ Container scaffolding ------------------ */
.bp-section {
    max-width: 1140px;
    margin: 32px auto;
    padding: 0 16px;
}
.bp-section-title {
    text-align: center;
    font-family: var(--bp-font-display);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 28px;
    text-transform: uppercase;
}
.bp-section-title small {
    display: block;
    font-size: 0.72rem;
    color: var(--bp-text-muted);
    letter-spacing: 4px;
    margin-top: 6px;
    font-weight: 500;
}

/* ------------------ Prize Banner Cards ------------------ */
.bp-prizes { display: grid; grid-template-columns: 1fr; gap: 22px; }

.bp-prize {
    position: relative;
    border-radius: var(--bp-radius-lg);
    padding: 32px 38px;
    color: #fff;
    overflow: hidden;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 30px 60px -28px rgba(0,0,0,0.65);
    isolation: isolate;
}
.bp-prize::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(300px 200px at 10% 50%, rgba(255,255,255,0.22), transparent 65%),
        radial-gradient(220px 160px at 30% 30%, rgba(255,255,255,0.16), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.bp-prize::after {
    content: "4D";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--bp-font-display);
    font-size: 9rem;
    font-weight: 900;
    letter-spacing: -4px;
    color: rgba(255, 255, 255, 0.10);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}
.bp-prize > * { position: relative; z-index: 1; }

.bp-prize h2 {
    font-family: var(--bp-font-display);
    font-weight: 800;
    font-size: 2.1rem;
    margin: 0 0 6px;
    color: #fff;
    font-style: italic;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
.bp-prize .bp-prize__date {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.bp-prize.bp-prize--1 { background: linear-gradient(95deg, #FF2832 0%, #FF5566 60%, #FF8470 100%); }
.bp-prize.bp-prize--2 { background: linear-gradient(95deg, #6B5BFF 0%, #8C5AE6 35%, #3FB46B 100%); }
.bp-prize.bp-prize--3 { background: linear-gradient(95deg, #F4B41A 0%, #F0794A 25%, #2DA9FF 100%); }

/* ------------------ Ball Component ------------------ */
.balls {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.ball {
    --ball-color: #555;
    --ball-glow: rgba(255,255,255,0.6);
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, var(--ball-glow) 0%, rgba(255,255,255,0.55) 7%, rgba(255,255,255,0.0) 28%),
        radial-gradient(circle at 65% 78%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.0) 55%),
        radial-gradient(circle at 50% 50%, var(--ball-color) 0%, var(--ball-color) 70%, rgba(0,0,0,0.4) 100%);
    box-shadow:
        0 6px 14px -4px rgba(0,0,0,0.55),
        inset 0 -3px 8px rgba(0,0,0,0.40),
        inset 0 2px 4px rgba(255,255,255,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bp-font-display);
    font-weight: 800;
    overflow: hidden;
}
.ball::before {
    content: "";
    position: absolute;
    width: 60%; height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffffff 0%, #f5f5f5 60%, #d8d8d8 100%);
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.10);
    z-index: 1;
}
.ball span {
    position: relative;
    z-index: 2;
    color: #111;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: none;
}

.ball.b-0 { --ball-color: var(--b-0); }
.ball.b-1 { --ball-color: var(--b-1); }
.ball.b-2 { --ball-color: var(--b-2); }
.ball.b-3 { --ball-color: var(--b-3); }
.ball.b-4 { --ball-color: var(--b-4); }
.ball.b-5 { --ball-color: var(--b-5); }
.ball.b-6 { --ball-color: var(--b-6); }
.ball.b-7 { --ball-color: var(--b-7); }
.ball.b-8 { --ball-color: var(--b-8); }
.ball.b-9 { --ball-color: var(--b-9); }

.ball.ball-blank {
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.30) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 70%, rgba(0,0,0,0.30) 100%);
    box-shadow: 0 4px 10px -4px rgba(0,0,0,0.5), inset 0 -2px 6px rgba(0,0,0,0.30);
}
.ball.ball-blank::before { background: rgba(255,255,255,0.10); box-shadow: none; }
.ball.ball-blank span { color: rgba(255,255,255,0.50); }

/* Sizes */
.balls-lg .ball { width: 56px; height: 56px; }
.balls-lg .ball span { font-size: 1.45rem; }
.balls-md .ball { width: 42px; height: 42px; }
.balls-sm .ball { width: 32px; height: 32px; }
.balls-sm .ball span { font-size: 0.85rem; }

/* ------------------ Winning Result Section ------------------ */
.bp-winning {
    background: var(--bp-bg-card);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius-xl);
    padding: 36px 32px 40px;
    box-shadow: var(--bp-shadow-card);
    margin: 32px auto;
    max-width: 1140px;
}
.bp-winning__title {
    text-align: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 28px;
}

.bp-winning__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.bp-result-card {
    background: var(--bp-bg-card-2);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    padding: 22px 18px 24px;
    text-align: center;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
    position: relative;
    overflow: hidden;
}
.bp-result-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bp-red), var(--bp-pink), var(--bp-purple));
    opacity: 0.85;
}
.bp-result-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 77, 141, 0.40);
    box-shadow: 0 30px 60px -28px rgba(255, 77, 141, 0.35);
}

.bp-result-card__period {
    color: var(--bp-text-soft);
    font-size: 0.92rem;
    font-weight: 500;
    margin: 4px 0 16px;
    line-height: 1.5;
}
.bp-result-card__period strong { color: #fff; font-weight: 700; }

.bp-result-card__prize-label {
    color: #fff;
    font-family: var(--bp-font-display);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 14px 0 10px;
}

/* Chips (lucky / consolation pills) */
.chips {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-bg-deepest);
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-family: var(--bp-font-display);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    border: 1px solid var(--bp-line);
    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.20);
    transition: transform .2s ease, border-color .2s ease;
}
.chip:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 77, 141, 0.40);
}

/* ------------------ "See all" CTA ------------------ */
.bp-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: 999px;
    padding: 11px 28px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all .25s ease;
    text-decoration: none;
}
.bp-cta-link:hover {
    background: linear-gradient(90deg, var(--bp-pink), var(--bp-purple));
    border-color: transparent;
    color: #fff !important;
    box-shadow: var(--bp-glow-pink);
    transform: translateY(-1px);
}

.bp-winning__cta {
    text-align: center;
    margin-top: 32px;
}

/* ------------------ Tagline banner ------------------ */
.bp-tagline {
    max-width: 1140px;
    margin: 36px auto 24px;
    background: linear-gradient(90deg, var(--bp-red) 0%, #FF4747 100%);
    color: #fff;
    border-radius: var(--bp-radius-xl);
    padding: 18px 28px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--bp-glow-red);
    position: relative;
    overflow: hidden;
}
.bp-tagline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 100px at 0% 50%, rgba(255,255,255,0.15), transparent 60%);
}
.bp-tagline > span { position: relative; z-index: 1; }

/* ------------------ Result Page (?page=result) ------------------ */
.bp-results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
}
.bp-results-toolbar h2 {
    color: #fff;
    font-family: var(--bp-font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 4px 0 2px;
}
.bp-results-toolbar .bp-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bp-pink);
    font-weight: 700;
}
.bp-results-toolbar .bp-sub {
    color: var(--bp-text-muted);
    font-size: 0.86rem;
}

#dateres .input-group {
    background: var(--bp-bg-card);
    border: 1px solid var(--bp-line-2);
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 6px 18px -8px rgba(0,0,0,0.5);
    max-width: 360px;
    width: 100%;
}
#dateres .input-group .input-group-text {
    background: transparent;
    border: none;
    color: var(--bp-pink);
    padding-left: 16px;
}
#dateres .input-group .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff;
    font-weight: 500;
}
#dateres .input-group .form-control::placeholder { color: var(--bp-text-dim); }
#dateres .btn-danger {
    background: linear-gradient(90deg, var(--bp-pink), var(--bp-purple)) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 700;
    padding: 9px 20px;
    letter-spacing: 0.5px;
    box-shadow: var(--bp-glow-pink);
}
#dateres .btn-danger:hover {
    transform: translateY(-1px);
    color: #fff !important;
}

/* ------------------ Pagination ------------------ */
.pagination { margin-top: 32px; gap: 4px; }
.pagination .page-item .page-link {
    border: 1px solid var(--bp-line-2);
    background: var(--bp-bg-card);
    color: var(--bp-text-soft);
    border-radius: 10px !important;
    font-weight: 700;
    padding: 8px 14px;
    transition: all .25s ease;
}
.pagination .page-item .page-link:hover {
    background: rgba(255, 77, 141, 0.10);
    color: var(--bp-pink);
    border-color: rgba(255, 77, 141, 0.30);
}
.pagination .page-item.active .page-link {
    background: linear-gradient(90deg, var(--bp-pink), var(--bp-purple));
    border-color: transparent;
    color: #fff;
    box-shadow: var(--bp-glow-pink);
}
.pagination .page-item.disabled .page-link {
    color: var(--bp-text-dim);
    background: rgba(255,255,255,0.02);
}

/* ------------------ Footer ------------------ */
.navbot.fixed-bottom.navbar-dark { display: none !important; } /* remove legacy bottom bar */

footer {
    margin-top: 60px !important;
    padding: 28px 0;
    background: var(--bp-bg-deepest);
    border-top: 1px solid var(--bp-line);
}
.bp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 14px;
}
.bp-footer-links a {
    color: var(--bp-text-soft);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.bp-footer-links a:hover { color: var(--bp-pink); }
.copyright-text {
    color: var(--bp-text-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ------------------ Modal (Responsible Play) ------------------ */
.modal-content {
    background: var(--bp-bg-card);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
    color: var(--bp-text-soft);
}
.modal-header {
    background: linear-gradient(95deg, var(--bp-red), var(--bp-pink));
    color: #fff;
    border-bottom: none;
    padding: 18px 22px;
}
.modal-header .modal-title { color: #fff; font-weight: 800; letter-spacing: 0.5px; }
.modal-header .btn-close { filter: invert(1) brightness(1.5); opacity: 0.9; }
.modal-body { padding: 22px 24px 28px; color: var(--bp-text-soft); line-height: 1.75; }
.modal-body h3.text-danger {
    color: var(--bp-pink) !important;
    font-weight: 800;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bp-line);
}
.modal-body p.fw-bold { color: #fff; margin-top: 18px; }

/* ------------------ Legacy cleanup (hide old live.php panel by default unless used) ------------------ */
.live-content { display: none; }
.card.card-live, .card-live { background: transparent; border: none; box-shadow: none; }
.card-live > .card-body { padding: 0; }
.card1 { background: transparent; border: none; padding: 0; box-shadow: none; }
.card-live-dk { width: 100%; }

/* error/no-result card */
#errormsgp, .card.my-2.bg-dark.text-light {
    background: var(--bp-bg-card) !important;
    border: 1px solid var(--bp-line) !important;
    border-radius: var(--bp-radius);
    color: var(--bp-text-soft) !important;
    text-align: center;
    padding: 18px;
}
#errormsgp .text-danger { color: var(--bp-pink) !important; font-weight: 700; }

/* ------------------ Responsive ------------------ */
@media (max-width: 992px) {
    .bp-winning__grid { grid-template-columns: 1fr 1fr; }
    .bp-prize { padding: 26px 24px; }
    .bp-prize h2 { font-size: 1.7rem; }
    .bp-prize::after { font-size: 6rem; right: 16px; }
    .bp-countdown { margin-top: -40px; padding: 18px 20px; }
    .bp-countdown__label { font-size: 1.4rem; }
    .bp-countdown__cell-value { font-size: 1.8rem; }
    .bp-countdown__cell { min-width: 60px; }
}

@media (max-width: 720px) {
    body { font-size: 14px; }
    .navbar-dark .navbar-nav .nav-link { padding: 8px 12px !important; font-size: 0.78rem; }
    .bp-winning__grid { grid-template-columns: 1fr; }
    .bp-winning { padding: 24px 16px 28px; }
    .bp-section-title { font-size: 1.6rem; }
    .bp-winning__title { font-size: 1.5rem; letter-spacing: 2px; }
    .bp-prize { padding: 22px 18px; min-height: 150px; }
    .bp-prize h2 { font-size: 1.4rem; }
    .bp-prize .bp-prize__date { font-size: 0.8rem; margin-bottom: 12px; }
    .bp-prize::after { font-size: 4.5rem; }
    .balls-md .ball { width: 36px; height: 36px; }
    .balls-md .ball span { font-size: 0.95rem; }
    .balls-lg .ball { width: 44px; height: 44px; }
    .balls-lg .ball span { font-size: 1.15rem; }
    .bp-countdown {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        margin-top: -30px;
        padding: 16px;
    }
    .bp-countdown__label { font-size: 1.2rem; text-align: center; }
    .bp-countdown__grid { justify-content: center; gap: 10px; }
    .bp-countdown__cell { min-width: 56px; }
    .bp-countdown__cell-value { font-size: 1.5rem; }
    .bp-tagline { font-size: 0.85rem; padding: 14px 18px; }
}

/* legacy spin wheel kept */
#fire { background-color: #313131 !important; height: 100%; width: 100%; }
.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; }
.slot-container { width: 70%; margin-top: 10px; display: flex; gap: 10px; margin-left: auto; margin-right: auto; }
.slot { background-color: #da0000; border: 4px solid #8a9195; border-radius: 10px; width: 100%; display: flex; justify-content: center; align-items: center; min-height: 60px; }
