/* ==========================================================================
   TOTOKONI POOLS — Fresh Glossy Red Redesign
   Palette derived from the TOTOKONI logo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --tk-red-100: #ffe4e6;
    --tk-red-300: #ff6b6b;
    --tk-red-500: #ef2b3d;   /* logo bright red */
    --tk-red-600: #d21322;
    --tk-red-700: #a30d18;   /* logo deep red */
    --tk-red-900: #4a0208;
    --tk-black:   #0f0508;
    --tk-ink:     #1b0a0d;
    --tk-cream:   #fff5f0;
    --tk-gold:    #ffcf40;
    --tk-gold-2:  #ffb800;
    --tk-silver:  #e7e9ee;

    --tk-glass:      rgba(255, 255, 255, 0.08);
    --tk-glass-strong: rgba(255, 255, 255, 0.14);
    --tk-glass-brd:  rgba(255, 255, 255, 0.18);
    --tk-shadow-lg:  0 24px 60px -18px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255,255,255,0.06) inset;
    --tk-shadow-glow: 0 0 0 1px rgba(255, 65, 84, 0.35), 0 12px 40px -8px rgba(239, 43, 61, 0.55);

    --tk-radius: 18px;
    --tk-radius-sm: 12px;

    --tk-font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --tk-font-body:    'Manrope', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html, body {
    background: #0b0407;
    color: var(--tk-cream);
    font-family: var(--tk-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin-bottom: 70px;
    min-height: 100vh;
    background:
        radial-gradient(1200px 700px at 85% -10%, rgba(255, 60, 80, 0.28), transparent 60%),
        radial-gradient(1000px 600px at -10% 20%, rgba(180, 10, 22, 0.35), transparent 55%),
        radial-gradient(900px 700px at 50% 110%, rgba(255, 100, 120, 0.22), transparent 60%),
        linear-gradient(180deg, #1a0509 0%, #0d0306 45%, #0a0204 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Subtle grain overlay for depth */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft red glow blobs behind hero */
body::after {
    content: "";
    position: fixed;
    top: -180px;
    right: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 43, 61, 0.55), transparent 65%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

main, header, footer, section, .container { position: relative; z-index: 1; }

@font-face {
    font-family: 'noto';
    src: url("../fonts/NotoSerif-Regular.ttf");
    font-display: swap;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tk-font-display);
    color: var(--tk-cream);
    letter-spacing: -0.01em;
}

a { color: var(--tk-red-300); text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: #fff; }

/* ---------- Header / Navbar ---------- */
header { position: sticky; top: 0; z-index: 50; }

.navbar {
    background: linear-gradient(180deg, rgba(15, 5, 8, 0.85), rgba(15, 5, 8, 0.55)) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.bg-brown {
    background: transparent !important;
}

.logo {
    width: 165px !important;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(239, 43, 61, 0.55));
    transition: transform .35s ease, filter .35s ease;
}
.navbar-brand:hover .logo { transform: scale(1.03); filter: drop-shadow(0 10px 28px rgba(255, 90, 105, 0.75)); }

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 245, 240, 0.82);
    font-family: var(--tk-font-display);
    font-weight: 600;
    font-size: .95rem;
    padding: .5rem 1rem;
    margin: 0 .15rem;
    border-radius: 999px;
    position: relative;
    transition: color .25s ease, background .25s ease;
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(180deg, var(--tk-red-500), var(--tk-red-700));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -6px 12px rgba(0,0,0,0.25),
        0 8px 22px -8px rgba(239, 43, 61, 0.75);
}
.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
}
.navbar-dark .navbar-toggler-icon {
    filter: brightness(1.5);
}

/* Dropdown */
.dropdown-menu {
    background: rgba(20, 6, 9, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
    padding: .5rem;
    margin-top: .5rem !important;
}
.dropdown-item {
    color: rgba(255, 245, 240, 0.85);
    font-family: var(--tk-font-display);
    font-weight: 500;
    padding: .55rem .9rem;
    border-radius: 10px;
    transition: all .2s ease;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: linear-gradient(90deg, var(--tk-red-600), var(--tk-red-500));
    color: #fff;
}
.dropdown-item.active,
.dropdown-item:active {
    background: linear-gradient(90deg, var(--tk-red-700), var(--tk-red-500)) !important;
    color: #fff !important;
}

/* ---------- Marquee ---------- */
.text-runn {
    color: var(--tk-cream) !important;
    font-family: var(--tk-font-display);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .75rem 0;
    background: linear-gradient(90deg,
        rgba(163, 13, 24, 0.55) 0%,
        rgba(239, 43, 61, 0.35) 50%,
        rgba(163, 13, 24, 0.55) 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ---------- Swiper Slider ---------- */
.swiper {
    width: 100%;
    height: auto;
    border-radius: var(--tk-radius);
    overflow: hidden;
    margin: 1.5rem auto;
    max-width: 1280px;
    box-shadow:
        var(--tk-shadow-lg),
        0 0 0 1px rgba(255,255,255,0.05);
}
.swiper-slide { position: relative; }
.slideimg {
    width: 100%;
    display: block;
    object-fit: cover;
}
.swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 2, 4, 0.55) 100%);
    pointer-events: none;
}
.swiper-button-prev, .swiper-button-next {
    color: #fff !important;
    background: rgba(20, 6, 9, 0.55);
    backdrop-filter: blur(10px);
    width: 44px !important; height: 44px !important;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    transition: all .25s ease;
}
.swiper-button-prev:hover, .swiper-button-next:hover {
    background: var(--tk-red-500);
    border-color: var(--tk-red-300);
    transform: scale(1.06);
    box-shadow: 0 0 24px rgba(239, 43, 61, 0.65);
}
.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 18px !important;
    font-weight: 900;
}

/* ---------- Hero strip (Feature badges) ---------- */
.tk-feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1280px;
    margin: 1.25rem auto;
    padding: 0 12px;
}
.tk-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--tk-radius);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    backdrop-filter: blur(10px);
}
.tk-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 100, 115, 0.35);
    box-shadow: 0 12px 30px -12px rgba(239, 43, 61, 0.5);
}
.tk-feature .tk-ico {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(160deg, var(--tk-red-500), var(--tk-red-700));
    color: #fff;
    font-size: 1.1rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -6px 12px rgba(0,0,0,0.25),
        0 8px 20px -8px rgba(239, 43, 61, 0.7);
    flex-shrink: 0;
}
.tk-feature .tk-ico.gold {
    background: linear-gradient(160deg, var(--tk-gold), #d29200);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -6px 12px rgba(0,0,0,0.25),
        0 8px 20px -8px rgba(255, 191, 0, 0.6);
    color: #3a2400;
}
.tk-feature h6 {
    margin: 0;
    font-family: var(--tk-font-display);
    font-weight: 700;
    font-size: .92rem;
    color: #fff;
    line-height: 1.15;
}
.tk-feature span {
    font-size: .75rem;
    color: rgba(255,245,240,0.6);
    font-weight: 500;
}

/* ---------- Section titles ---------- */
.tk-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1280px;
    margin: 1.75rem auto .5rem;
    padding: 0 12px;
}
.tk-section-title h2 {
    font-family: var(--tk-font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tk-section-title h2::before {
    content: "";
    width: 4px; height: 22px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--tk-red-500), var(--tk-red-700));
    box-shadow: 0 0 12px rgba(239, 43, 61, 0.7);
}
.tk-section-title .tk-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.14), transparent);
}
.tk-section-title small {
    font-size: .78rem;
    color: rgba(255,245,240,0.55);
    font-weight: 500;
}

/* ---------- Live Card ---------- */
.card {
    background: transparent;
    border: none;
}

.card-live {
    width: 100%;
    max-width: 42rem;
    display: block;
    margin: 1rem auto;
    padding: 0;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) padding-box,
        linear-gradient(160deg, rgba(255, 100, 115, 0.45), rgba(255,255,255,0.06)) border-box;
    border: 1px solid transparent;
    border-radius: var(--tk-radius);
    box-shadow: var(--tk-shadow-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    position: relative;
}
.card-live::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 60%;
    background: radial-gradient(600px 120px at 50% -20%, rgba(255,120,140,0.28), transparent 70%);
    pointer-events: none;
}
.card-live .card-body { padding: 1.25rem 1.25rem 1rem; }

#live { border: none !important; padding: 6px; }

#live > center .navbar-brand { padding: 0; }
#live > center .logo {
    width: 130px !important;
    margin-bottom: .5rem;
}
#live .d-flex.justify-content-center h5,
#live .d-flex.justify-content-center h6,
#live .d-flex.justify-content-center h4 {
    color: #fff;
    text-align: center;
    margin-bottom: .25rem;
}
#live .d-flex.justify-content-center h5.fw-bold {
    font-family: var(--tk-font-display);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #fff, #ffd7db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Live prize board (inside .live-content) */
.live-content {
    padding: 18px 16px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(239, 43, 61, 0.22), rgba(15, 5, 8, 0.6)),
        radial-gradient(400px 200px at 20% 0%, rgba(255,120,140,0.25), transparent 70%) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    margin-top: .5rem;
}
div.live-content.bg-dark.rounded {
    background:
        linear-gradient(180deg, rgba(239, 43, 61, 0.22), rgba(15, 5, 8, 0.6)),
        radial-gradient(400px 200px at 20% 0%, rgba(255,120,140,0.25), transparent 70%) !important;
}
.live-content h4 {
    font-family: var(--tk-font-display);
    color: #fff;
    margin: .35rem 0;
    font-size: 1.15rem;
}
.live-content h4.fw-bold {
    font-weight: 700;
    letter-spacing: .02em;
    color: #ffe3e6;
}
.live-content hr {
    border-color: rgba(255,255,255,0.15);
    margin: .5rem 0;
}

/* ---------- Result section (card-live-dk) ---------- */
.card-live-dk {
    width: 100%;
    max-width: 1280px;
    display: block;
    margin: 1.5rem auto 2rem;
    padding: 1.5rem 1.25rem;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)) padding-box,
        linear-gradient(160deg, rgba(255,120,140,0.28), rgba(255,255,255,0.04)) border-box;
    border: 1px solid transparent !important;
    border-radius: var(--tk-radius);
    box-shadow: var(--tk-shadow-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
}
.card-live-dk h4 {
    font-family: var(--tk-font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}
.card-live-dk h4::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: .6rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tk-red-500), var(--tk-red-700));
    box-shadow: 0 0 10px rgba(239, 43, 61, 0.7);
}

.card1 {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent !important;
    border: none !important;
    border-radius: var(--tk-radius);
    align-items: center;
    padding: 0 !important;
}

/* ---------- Result Card (grid item) ---------- */
.result-card,
.result-card.bg-gradient {
    background:
        linear-gradient(160deg, #ff4d5e 0%, #ef2b3d 45%, #a30d18 100%) padding-box,
        linear-gradient(160deg, rgba(255,190,200,0.9), rgba(255,255,255,0.15)) border-box !important;
    background-image:
        linear-gradient(160deg, #ff4d5e 0%, #ef2b3d 45%, #a30d18 100%) !important;
    border: 1px solid transparent !important;
    color: #fff;
    padding: 22px 18px 18px !important;
    border-radius: var(--tk-radius) !important;
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -30px 60px rgba(0,0,0,0.28),
        0 16px 40px -12px rgba(239, 43, 61, 0.7);
}
.result-card::before {
    content: "";
    position: absolute;
    top: -60%; left: -20%;
    width: 140%; height: 120%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.28), transparent 55%);
    pointer-events: none;
    transform: rotate(-8deg);
}
.result-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
    border-radius: inherit;
}
.result-card:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -20px 40px rgba(0,0,0,0.25),
        0 24px 50px -10px rgba(239, 43, 61, 0.7);
}
.result-card > * { position: relative; z-index: 1; }
.result-card h5, .result-card h6 {
    font-family: var(--tk-font-display);
    color: #fff;
}
.result-card h5.text-capitalize {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .95;
    margin-bottom: .35rem;
}
.result-card h6 {
    font-weight: 500;
    font-size: .82rem;
    opacity: .8;
}
.result-card hr {
    border: 0;
    border-top: 1px dashed rgba(255,255,255,0.35);
    margin: .5rem auto;
}
.p-num {
    font-family: var(--tk-font-display);
    font-size: 2.1rem !important;
    font-weight: 800;
    letter-spacing: .18em;
    color: #fff;
    text-shadow:
        0 2px 0 rgba(0,0,0,0.35),
        0 0 20px rgba(255, 220, 225, 0.4);
    margin: .3rem 0;
}

.ball-result {
    font-family: var(--tk-font-display);
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: .22em;
    color: #fff;
    text-shadow:
        0 2px 0 rgba(0,0,0,0.4),
        0 0 24px rgba(255, 210, 215, 0.55);
}

/* Backwards-compat classes used in result.php */
.bg-card1 { background: linear-gradient(160deg, var(--tk-red-500), var(--tk-red-700)) !important; border: 1px solid rgba(255,150,165,0.4); color: #fff; border-radius: var(--tk-radius) !important; }
.bg-card2 { background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: var(--tk-radius) !important; }
.bg-card3 { background: rgba(255,255,255,0.04) !important; border: 1px solid rgba(255,255,255,0.08); color: #fff; border-radius: var(--tk-radius) !important; }
.bg-card4 {
    background:
        linear-gradient(160deg, #ff4d5e 0%, #ef2b3d 45%, #a30d18 100%) padding-box,
        linear-gradient(160deg, rgba(255,190,200,0.9), rgba(255,255,255,0.15)) border-box !important;
    background-image:
        linear-gradient(160deg, #ff4d5e 0%, #ef2b3d 45%, #a30d18 100%) !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    border-radius: var(--tk-radius) !important;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -30px 60px rgba(0,0,0,0.28),
        0 16px 40px -12px rgba(239, 43, 61, 0.7);
    transition: transform .35s ease, box-shadow .35s ease;
}
.bg-card4::before {
    content: "";
    position: absolute;
    top: -60%; left: -20%;
    width: 140%; height: 120%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.25), transparent 55%);
    pointer-events: none;
    transform: rotate(-8deg);
}
.bg-card4:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -20px 40px rgba(0,0,0,0.25),
        0 24px 50px -10px rgba(239, 43, 61, 0.7);
}
.bg-card4 .card-body { position: relative; z-index: 1; }
.bg-card4 .bg-light {
    background: rgba(255,255,255,0.9) !important;
    border-radius: 12px !important;
    padding: 10px !important;
}
.bg-card4 h5 {
    font-family: var(--tk-font-display);
    color: #fff;
}
.bg-card4 .badge {
    background: linear-gradient(90deg, var(--tk-gold), var(--tk-gold-2)) !important;
    color: #3a2400 !important;
    font-weight: 700;
    padding: .4em .7em;
    border-radius: 999px;
    box-shadow: 0 4px 12px -2px rgba(255, 184, 0, 0.55);
}
.bg-card4 .text-warning {
    color: var(--tk-gold) !important;
    font-family: var(--tk-font-display);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .02em;
}

/* Ball numbers */
.ball-num-1, .ball-num-2, .ball-num-3 {
    font-family: var(--tk-font-display);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: #fff;
    border-radius: 12px;
    padding: 4px 8px;
}
.ball-num-1 {
    background: linear-gradient(160deg, var(--tk-red-500), var(--tk-red-700));
    border: 1px solid rgba(255,150,165,0.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 18px -6px rgba(239,43,61,0.6);
}
.ball-num-2 {
    background: linear-gradient(160deg, #f5f5f7, #cfd2d8);
    border: 1px solid rgba(255,255,255,0.4);
    color: #1a1a1a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 18px -6px rgba(255,255,255,0.15);
}
.ball-num-3 {
    background: linear-gradient(160deg, #d7d9df, #a9adb5);
    border: 1px solid rgba(255,255,255,0.35);
    color: #1a1a1a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 18px -6px rgba(255,255,255,0.1);
}

.prize-title {
    font-family: var(--tk-font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .12em;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255,255,255,0.3);
    text-transform: uppercase;
    color: #fff;
}

/* ---------- Bottom Nav (result period nav) ---------- */
.navbar-result-custom {
    border-radius: 999px !important;
    padding: 4px !important;
    background: linear-gradient(180deg, rgba(15,5,8,0.75), rgba(15,5,8,0.5)) !important;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    margin: 1.5rem auto 0;
    max-width: 420px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.navbar-result-custom.bg-brown { background: linear-gradient(180deg, rgba(15,5,8,0.75), rgba(15,5,8,0.5)) !important; }
.navbar-nav-custom {
    display: flex;
    flex-direction: row !important;
    padding-left: 0;
    margin: 0;
    list-style: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
}
.navbar-nav-custom .nav-link {
    color: #fff;
    font-family: var(--tk-font-display);
    font-weight: 600;
    font-size: .9rem;
    padding: .55rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--tk-red-500), var(--tk-red-700));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -6px 12px rgba(0,0,0,0.2),
        0 8px 22px -8px rgba(239,43,61,0.7);
    transition: transform .25s ease, box-shadow .25s ease;
}
.navbar-nav-custom .nav-link:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -6px 12px rgba(0,0,0,0.2),
        0 12px 30px -8px rgba(239,43,61,0.85);
}

/* ---------- Bottom fixed nav (date/time bar) ---------- */
.navbot,
.navbot.fixed-bottom.navbar-dark.bg-dark {
    padding: 10px;
    color: #fff;
    background: linear-gradient(180deg, rgba(15,5,8,0.9), rgba(15,5,8,0.75)) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -12px 30px -12px rgba(0,0,0,0.7);
}
.bottom-nav {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.bottom-nav > li {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    font-family: var(--tk-font-display);
    font-weight: 600;
    color: #fff;
}
.bottom-nav > li:last-child { margin-right: 0; }
.time-cur {
    font-size: .82rem;
    color: rgba(255,245,240,0.85);
    letter-spacing: .02em;
}

/* Old .d-flex.justify-content-center inside old dark bg — force white text */
.navbot .d-flex.justify-content-center { color: #fff; }

/* ---------- Footer ---------- */
footer {
    margin-top: 3rem !important;
    padding: 1.5rem 0 5rem;
    text-align: center;
}
.copyright-text {
    font-family: var(--tk-font-display);
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,245,240,0.6) !important;
    margin: 0;
    letter-spacing: .04em;
}

/* ---------- Modal (Responsible Play) ---------- */
.modal-content {
    background: linear-gradient(160deg, #1a0509, #0d0306);
    color: var(--tk-cream);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--tk-radius);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9);
}
.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.modal-title {
    font-family: var(--tk-font-display);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.modal-body h3, .modal-body p.fw-bold { color: #fff; font-family: var(--tk-font-display); }
.modal-body p { color: rgba(255,245,240,0.78); line-height: 1.65; }
.modal-body .text-danger { color: var(--tk-red-300) !important; }
.btn-close { filter: invert(1) brightness(1.4); }

/* ---------- Forms ---------- */
.bg-light.p-2 {
    background:
        linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)) padding-box,
        linear-gradient(160deg, rgba(255,120,140,0.28), rgba(255,255,255,0.04)) border-box !important;
    border: 1px solid transparent;
    border-radius: var(--tk-radius);
    color: #fff !important;
    padding: 1.25rem 1rem !important;
    margin: 1.25rem auto;
    max-width: 1280px;
    backdrop-filter: blur(12px);
}
.bg-light.p-2 h2 {
    color: #fff !important;
    font-family: var(--tk-font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}
.input-group-text {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    border-radius: 12px 0 0 12px !important;
}
.form-control {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    padding: .6rem .9rem;
}
.form-control::placeholder { color: rgba(255,245,240,0.5); }
.form-control:focus {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: var(--tk-red-500);
    box-shadow: 0 0 0 3px rgba(239,43,61,0.25);
}
.btn-danger {
    background: linear-gradient(180deg, var(--tk-red-500), var(--tk-red-700));
    border: none;
    color: #fff;
    font-weight: 700;
    padding: .55rem 1.1rem;
    border-radius: 0 12px 12px 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 22px -8px rgba(239,43,61,0.7);
    transition: all .25s ease;
}
.btn-danger:hover, .btn-danger:focus {
    background: linear-gradient(180deg, #ff3f52, var(--tk-red-600));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 12px 30px -8px rgba(239,43,61,0.9);
    transform: translateY(-1px);
}

/* ---------- Pagination ---------- */
.pagination { margin-top: 1.5rem; gap: 6px; }
.page-item .page-link {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,245,240,0.85);
    font-family: var(--tk-font-display);
    font-weight: 600;
    border-radius: 12px;
    padding: .5rem .95rem;
    transition: all .2s ease;
}
.page-item .page-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,120,140,0.4);
}
.page-item.active .page-link {
    background: linear-gradient(180deg, var(--tk-red-500), var(--tk-red-700));
    border-color: transparent;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 8px 20px -8px rgba(239,43,61,0.7);
}
.page-item.disabled .page-link {
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.35);
}

/* ---------- Payment logos ---------- */
.payment-logo { width: 300px; }
.payment-mobile { width: 250px; }

/* ---------- List top / running (leftover) ---------- */
.list-top { list-style-type: none; padding: 0; margin: 0; }
.list-top > li {
    display: inline-block;
    margin-right: 7px;
    font-weight: bold;
    color: rgba(255,255,255,0.7);
}
.running-blw { width: 100%; position: relative; }
.icon-runn { position: absolute; z-index: 9999; top: -5px; font-size: 0.9rem; }

.topnav {
    background: rgba(255,255,255,0.04);
    padding: 8px;
    color: #fff;
    border-radius: 12px;
}

/* ---------- Spin wheel (kept as-is, tuned) ---------- */
#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, var(--tk-red-500) 0%, var(--tk-red-700) 100%);
    padding: 1px;
    font-size: 30px;
    width: 486px;
    height: 50px;
    margin-top: 459px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 12px 28px -8px rgba(239,43,61,0.7);
}
.power_controls .btn-danger:hover {
    background: linear-gradient(to bottom, #ff3f52 0%, var(--tk-red-600) 100%);
}
.power_controls .btn-danger:focus { box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 12px 28px -8px rgba(239,43,61,0.7); }
.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: linear-gradient(160deg, var(--tk-red-500), var(--tk-red-700));
    border: 3px solid rgba(255,150,165,0.4);
    border-radius: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 16px -6px rgba(239,43,61,0.6);
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 1200px) {
    .prize-title, .date-prize { text-align: center; }
    .card-live { width: 100%; }
    .card-live-dk { padding: 1rem .75rem; }
    .card-live { background:
        linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) padding-box,
        linear-gradient(160deg, rgba(255,120,140,0.35), rgba(255,255,255,0.05)) border-box; color: #fff; }
    .card1.card-body.card-live-dk.my-2 {
        background:
            linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) padding-box,
            linear-gradient(160deg, rgba(255,120,140,0.35), rgba(255,255,255,0.05)) border-box;
        color: #fff;
    }
    .d-flex.justify-content-center { color: #fff; }
    .tk-feature-strip { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 720px) {
    .tk-feature-strip { grid-template-columns: 1fr; }
    .logo { width: 130px !important; }
    .navbar-dark .navbar-nav .nav-link { padding: .5rem .75rem; }
    .p-num { font-size: 1.6rem !important; letter-spacing: .12em; }
    .ball-result { font-size: 2rem; letter-spacing: .16em; }
    .card-live-dk h4 { font-size: 1.2rem; }
    .tk-section-title h2 { font-size: 1.15rem; }
}

@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 .can-pos canvas { width: 95%; } .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: 1130px) { .power_controls .can-pos { left: 54.75%; } .power_controls .can-pos canvas { width: 92%; } }
@media screen and (max-width: 1100px) { .power_controls .can-pos { left: 54.25%; } .power_controls .can-pos canvas { width: 90%; } }
@media screen and (max-width: 1070px) { .power_controls .can-pos { left: 53.65%; } .power_controls .can-pos canvas { width: 88%; } }
@media screen and (max-width: 1050px) { .power_controls .can-pos { left: 15.2%; top: 7.5%; } .power_controls .can-pos canvas { width: 145%; } }
@media screen and (max-width: 1020px) { .power_controls .can-pos { left: 52.5%; } .power_controls .can-pos canvas { width: 82%; } }
@media screen and (max-width: 991px)  { .power_controls { background-size: 90%; padding-bottom: 120%; } .power_controls span { font-size: 30px; } .power_controls .can-pos { left: 52.25%; margin-top: 3%; } .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: 960px)  { .power_controls .can-pos { left: 51.5%; } .power_controls .can-pos canvas { width: 92%; } }
@media screen and (max-width: 945px)  { .power_controls .can-pos { left: 51.25%; } .power_controls .can-pos canvas { width: 90%; } }
@media screen and (max-width: 930px)  { .power_controls .can-pos { left: 19px; top: 63px; width: 660px; } }
@media screen and (max-width: 920px)  { .power_controls .can-pos canvas { width: 88%; } }
@media screen and (max-width: 868px)  { .power_controls .can-pos { left: 3%; margin-top: 3%; } }
@media screen and (max-width: 718px)  { .power_controls p span { margin: auto 4%; } .slot { min-height: 40px; } .slot-container { gap: 5px; } }
@media screen and (max-width: 567px)  { .slot { border: 2px solid #e69121; border-radius: 4px; min-height: 30px; } }
@media screen and (max-width: 557px)  { .power_controls button { font-size: 2.75vw; margin-top: 87.25%; } .power_controls p span { margin: auto 4.1%; } .power_controls span { font-size: 20px; } }
@media screen and (max-width: 500px)  { .power_controls .can-pos canvas { width: 84%; } .power_controls p span { margin: auto 3.8%; } .slot { min-height: 24px; } .slot-container { gap: 3px; } .timer { letter-spacing: 5px; } }
@media screen and (max-width: 486px)  { .power_controls p span { margin: auto 3.8%; } .power_controls { background-size: 88%; height: 0; padding-bottom: 114%; } .power_controls .can-pos { left: 1%; top: 5.7%; width: 99%; } .result-number::after { padding-bottom: 32%; } }
@media screen and (max-width: 410px)  { .power_controls button { margin-top: 86%; } .power_controls p span { margin: auto 3.8%; } }
@media screen and (max-width: 375px)  { .power_controls p span { margin: auto 3.7%; } }
@media screen and (max-width: 360px)  { .power_controls .can-pos canvas { width: 80%; } .slot { min-height: 20px; } }
@media screen and (max-width: 342px)  { .power_controls p span { margin: auto 3.5%; } }
@media screen and (max-width: 316px)  { .power_controls button { font-size: 2.25vw; } .power_controls p span { margin: auto 3.5%; } }
@media screen and (max-width: 294px)  { .power_controls p span { margin: auto 3.3%; } }
@media screen and (max-width: 277px)  { .power_controls p span { margin: auto 3.1%; } }

/* Selection */
::selection { background: rgba(239, 43, 61, 0.5); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0407; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--tk-red-500), var(--tk-red-700));
    border-radius: 999px;
    border: 2px solid #0b0407;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff3f52, var(--tk-red-500)); }
