/* ==========================================================
   CATANIA LOTTERY — La Dolce Fortuna
   Sicilian Baroque · Vintage Italian poster · Etna glow
   Palette: Basil green · Aged cream · Terracotta · Espresso
   Type: Bodoni Moda (display) · Alegreya Sans (body)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Alegreya+Sans:ital,wght@0,300;0,400;0,500;0,700;0,800;1,400;1,700&family=Alegreya:ital,wght@0,400;0,700;0,800;1,400;1,700&family=IBM+Plex+Mono:wght@400;500;700&display=swap');

:root {
    --espresso:    #1a1210;
    --espresso-2:  #2a1e1a;
    --paper:       #f5e9d4;     /* dolce cream */
    --paper-2:     #ebdec3;
    --paper-3:     #e3d3af;
    --terracotta:  #a83a20;
    --terracotta-2:#7a2612;
    --magma:       #e07a3e;
    --magma-2:     #f0a750;
    --basil:       #0d5c3f;     /* Italian tricolore green */
    --basil-2:     #14764f;
    --burgundy:    #6e1a1a;
    --gold-old:    #b8892f;
    --line:        rgba(26,18,16,0.16);
    --ink:         #1a1210;
    --muted:       #7a6c56;

    --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
    --script:  'Alegreya', Georgia, 'Times New Roman', serif;
    --body:    'Alegreya Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:    'IBM Plex Mono', ui-monospace, monospace;
}

/* Baroque ornament divider (small SVG scrollwork) */
:root {
    --paper-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    --etna-glow: radial-gradient(60% 40% at 50% 100%, rgba(224,122,62,0.35), transparent 60%);
    --tricolore: linear-gradient(90deg, var(--basil) 0%, var(--basil) 33%, #f5e9d4 33%, #f5e9d4 66%, var(--terracotta) 66%, var(--terracotta) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    padding-bottom: 80px;
    background:
        radial-gradient(1200px 700px at 20% 0%, rgba(184,137,47,0.10), transparent 60%),
        radial-gradient(900px 500px at 90% 100%, rgba(168,58,32,0.10), transparent 60%),
        var(--paper);
    color: var(--espresso);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
}
body::before {
    content: "";
    position: fixed; inset: 0;
    background: var(--paper-noise);
    background-size: 160px 160px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 2; }

::selection { background: var(--terracotta); color: var(--paper); }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.text-warning { color: var(--gold-old) !important; }
.text-danger  { color: var(--terracotta) !important; }

/* ========== TRICOLORE TAPE (top) ========== */
body > header::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--tricolore);
}

/* ========== NAVBAR ========== */
.navbar.bg-brown {
    background: var(--paper) !important;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}
.navbar.bg-brown::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -1px;
    transform: translateX(-50%);
    width: 120px; height: 2px;
    background: var(--terracotta);
}

.navbar-brand .logo {
    width: 210px !important;
    filter: drop-shadow(0 3px 8px rgba(26,18,16,0.14));
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.navbar-brand:hover .logo { transform: scale(1.03) rotate(-1deg); }

.navbar-dark .navbar-nav .nav-link {
    color: var(--espresso) !important;
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.02rem;
    letter-spacing: 0.005em;
    text-transform: none;
    padding: 10px 14px !important;
    margin: 0 2px;
    position: relative;
    transition: color .3s ease;
    font-style: italic;
    font-variation-settings: "opsz" 96;
}
.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 1px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.navbar-dark .navbar-nav .nav-link:hover { color: var(--terracotta) !important; }
.navbar-dark .navbar-nav .nav-link:hover::after { transform: scaleX(1); }
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--terracotta) !important;
}
.navbar-dark .navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler {
    border: 1px solid var(--espresso);
    padding: 6px 10px;
    background: var(--paper);
}
.navbar-toggler .navbar-toggler-icon {
    filter: invert(1) sepia(1) hue-rotate(-40deg);
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(168,58,32,0.35); }

.dropdown-menu {
    background: var(--paper-2);
    border: 1px solid var(--espresso);
    border-radius: 2px;
    padding: 8px;
    box-shadow: 0 22px 44px rgba(26,18,16,0.28), 6px 6px 0 0 var(--terracotta);
    margin-top: 10px;
}
.dropdown-item {
    color: var(--espresso);
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-weight: 500;
    font-size: 0.98rem;
    padding: 8px 16px;
    border-radius: 2px;
    transition: background .2s ease, color .2s ease, padding .2s ease;
}
.dropdown-item:hover { background: var(--terracotta); color: var(--paper); padding-left: 22px; }
.dropdown-item.active { background: var(--basil); color: var(--paper); }

/* ========== MARQUEE ========== */
.text-runn, marquee.text-runn {
    display: block;
    background: var(--espresso);
    color: var(--paper) !important;
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    padding: 12px 0;
    border-top: 1px solid var(--espresso);
    border-bottom: 1px solid var(--espresso);
    position: relative;
}
.text-runn::before, .text-runn::after {
    content: "";
    position: absolute;
    top: 0; height: 100%;
    width: 3px;
    z-index: 2;
}
.text-runn::before { left: 0; background: var(--tricolore); }
.text-runn::after  { right: 0; background: var(--tricolore); }

/* ------------- HERO / SLIDER ------------- */
.swiper {
    width: 100%;
    height: clamp(180px, 40vw, 420px);
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

.swiper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(13,12,10,0) 55%,
        rgba(13,12,10,0.55) 100%
    );
    z-index: 2;
}

.swiper-slide {
    overflow: hidden;
}

.slideimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.03);
    transition: transform 8s ease;
    filter: contrast(1.02) saturate(1.02);
}

.swiper-slide-active .slideimg {
    transform: scale(1);
}

/* Tombol */
.swiper-button-prev,
.swiper-button-next {
    color: var(--gold-2) !important;
    background: rgba(13,12,10,0.55);
    width: 46px !important;
    height: 46px !important;
    border-radius: 50%;
    border: 1px solid rgba(215,181,109,0.35);
    backdrop-filter: blur(6px);
    transition: .3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--ink);
    transform: scale(1.06);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Tablet */
@media (max-width: 992px) {
    .swiper {
        height: clamp(220px, 45vw, 340px);
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .swiper {
        height: 240px;
    }

    .slideimg {
        object-position: center;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 36px !important;
        height: 36px !important;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 14px !important;
    }
}

/* HP kecil */
@media (max-width: 480px) {
    .swiper {
        height: 180px;
    }

    .slideimg {
        object-position: center;
    }
}

.slideimg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Postcard band under hero */
.hero-postcard {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    position: relative;
}
.hero-postcard::before, .hero-postcard::after {
    content: "";
    position: absolute; top: 0; bottom: 0;
    width: 20px;
    background:
        radial-gradient(circle at 10px 20px, transparent 8px, var(--paper) 8px) 0 0 / 20px 40px repeat-y;
}
.hero-postcard::before { left: 0; }
.hero-postcard::after  { right: 0; transform: scaleX(-1); }

.hero-postcard-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-size: 1.4rem;
    color: var(--espresso);
    letter-spacing: 0.01em;
}
.hero-postcard-inner .stamp {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--basil);
    color: var(--paper);
    padding: 8px 18px;
    border-radius: 2px;
    font-family: var(--body);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    border: 2px dashed rgba(245,233,212,0.4);
}
.hero-postcard-inner .stamp .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--magma);
    box-shadow: 0 0 0 0 rgba(240,167,80,0.7);
    animation: dolce-pulse 1.8s ease-in-out infinite;
}
@keyframes dolce-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240,167,80,0.7); }
    50%      { box-shadow: 0 0 0 10px rgba(240,167,80,0); }
}
.hero-postcard-inner .ital { color: var(--terracotta); font-weight: 700; }

/* ========== ORNAMENT DIVIDER ========== */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: var(--terracotta);
    font-size: 1.4rem;
    padding: 24px 0 4px;
}
.ornament::before, .ornament::after {
    content: "";
    height: 1px; flex: 1;
    background: linear-gradient(90deg, transparent, var(--espresso), transparent);
    max-width: 240px;
}
.ornament .glyph { font-family: var(--display); font-style: italic; font-variation-settings: "opsz" 96; letter-spacing: 0.2em; }

/* ========== SECTION HEAD ========== */
.section-head {
    text-align: center;
    padding: 30px 0 20px;
}
.section-head .kicker {
    display: inline-block;
    font-family: var(--body);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--basil);
    padding: 4px 12px;
    border: 1px solid var(--basil);
    border-radius: 40px;
    margin-bottom: 14px;
}
.section-head h2 {
    font-family: var(--display);
    font-variation-settings: "opsz" 96;
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.02;
    color: var(--espresso);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.section-head h2 em {
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96, "wght" 500;
    color: var(--terracotta);
}
.section-head .sub {
    font-family: var(--script);
    font-style: italic;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 8px auto 0;
}

/* ========== LIVE DRAW ARCHED CARD ========== */
.card-live {
    width: 100%;
    max-width: 820px;
    display: block;
    margin: 20px auto 24px;
    background: transparent;
    border: none;
    position: relative;
}
.card-live .card-body { padding: 0; }

#live {
    background: var(--espresso) !important;
    color: var(--paper);
    border: 1px solid var(--espresso) !important;
    padding: 46px clamp(20px, 4vw, 46px) 30px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 40px 80px -30px rgba(26,18,16,0.55),
        inset 0 0 0 1px rgba(240,167,80,0.15);
    /* Arch top */
    border-radius: 300px 300px 8px 8px / 160px 160px 8px 8px;
}
#live::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--etna-glow);
    pointer-events: none;
}
#live::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(240,167,80,0.25);
    border-radius: 300px 300px 6px 6px / 160px 160px 6px 6px;
    pointer-events: none;
}
#live > * { position: relative; z-index: 1; }

#live .navbar-brand .logo {
    width: 220px !important;
    margin: 0 auto 8px;
}
#live h5.fw-bold, #live h4.fw-bold {
    color: var(--magma-2);
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    letter-spacing: 0.01em;
    font-size: 1.6rem;
    margin: 4px 0;
}
#live > div.d-flex.justify-content-center h6 {
    color: rgba(245,233,212,0.72);
    font-family: var(--body);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0;
}
#live > div.d-flex.justify-content-center h5.fw-bold.text-capitalize {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--paper);
    text-transform: capitalize;
    font-weight: 400;
    margin-top: 4px;
    margin-bottom: 20px;
}

.live-content, div.live-content.bg-dark.rounded {
    background: transparent !important;
    padding: 24px 0 4px;
    color: var(--paper);
    border-top: 1px solid rgba(240,167,80,0.28);
    margin-top: 14px;
}
.live-content .row { row-gap: 6px; }
.live-content h4 {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--magma-2);
    letter-spacing: 0.06em;
    margin: 4px 0;
    padding: 4px 0;
}
.live-content h4.fw-bold {
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--paper);
    font-size: 1.05rem;
    text-transform: capitalize;
    display: inline-flex; align-items: center; gap: 8px;
}
.live-content hr {
    border: none;
    border-top: 1px dotted rgba(240,167,80,0.35);
    margin: 6px 0;
    opacity: 1;
}
.live-content i.fa-trophy.text-warning { color: var(--magma) !important; filter: drop-shadow(0 0 8px rgba(240,167,80,0.4)); }
.live-content i.fa-trophy.text-light   { color: var(--paper) !important; }

/* ========== RESULTS GRID (postcards) ========== */
.card-live-dk, .card1.card-live-dk {
    width: 100%;
    background: transparent !important;
    border: none;
    padding: 0 !important;
    box-shadow: none;
}
.card-live-dk > h4 { display: none; }

.result-card {
    position: relative;
    background: var(--paper) !important;
    color: var(--espresso) !important;
    padding: 26px 22px 22px !important;
    border: 1px solid var(--espresso);
    border-radius: 3px;
    overflow: hidden;
    transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
    height: 100%;
}
.result-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--tricolore);
}
.result-card::after {
    content: "★";
    position: absolute; top: 14px; right: 18px;
    color: var(--terracotta);
    font-family: var(--display);
    font-size: 0.9rem;
    opacity: 0.55;
}
.result-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -30px rgba(26,18,16,0.4);
}

.result-card > .text-center:first-child h5,
.result-card h5.text-capitalize {
    font-family: var(--body);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--basil);
    margin-bottom: 4px;
}
.result-card > .text-center:first-child h6 {
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-size: 1rem;
    font-weight: 400;
    color: var(--espresso);
    letter-spacing: 0.01em;
    margin-bottom: 6px;
}
.result-card hr {
    border: none;
    border-top: 1px dashed var(--line);
    margin: 12px 0;
    opacity: 1;
}
.result-card .d-block.mx-auto h5 {
    font-family: var(--body);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin: 6px 0 2px;
}
.result-card .p-num {
    font-family: var(--display) !important;
    font-variation-settings: "opsz" 96;
    font-weight: 400;
    font-size: 2.8rem !important;
    letter-spacing: -0.02em;
    color: var(--espresso) !important;
    line-height: 1;
    margin: 4px 0 8px;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--terracotta);
}

/* ========== RESULT PAGE (list) ========== */
.bg-light.p-2 {
    background: transparent !important;
    color: var(--espresso);
    padding: 40px 0 10px !important;
    text-align: center;
}
.bg-light.p-2 h2 {
    font-family: var(--display);
    font-variation-settings: "opsz" 96;
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: var(--espresso);
    letter-spacing: -0.02em;
    text-transform: capitalize;
    margin: 0 0 8px;
}
.bg-light.p-2 h2::before {
    content: "❦  Archivio  ❦";
    display: block;
    font-family: var(--display);
    font-style: italic;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--terracotta);
    margin-bottom: 8px;
    text-transform: uppercase;
}

#dateres { display: flex; justify-content: center; }
#dateres .input-group {
    background: var(--paper);
    border: 1px solid var(--espresso);
    border-radius: 3px;
    overflow: hidden;
    padding: 4px;
    width: 24rem !important;
    max-width: 100%;
    box-shadow: 4px 4px 0 0 var(--terracotta);
}
#dateres .input-group-text {
    background: transparent;
    border: none;
    color: var(--terracotta);
    padding-left: 14px;
}
#dateres .form-control {
    background: transparent;
    border: none;
    color: var(--espresso);
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-weight: 400;
}
#dateres .form-control::placeholder { color: var(--muted); }
#dateres .form-control:focus { box-shadow: none; }
#dateres .btn-danger {
    background: var(--terracotta);
    border: none;
    color: var(--paper);
    border-radius: 2px;
    padding: 10px 22px;
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: background .25s ease;
}
#dateres .btn-danger:hover { background: var(--basil); color: var(--paper); }

/* Featured/list result card */
.card.bg-card4, .bg-card4 {
    background: var(--paper) !important;
    color: var(--espresso) !important;
    border: 1px solid var(--espresso) !important;
    border-radius: 4px !important;
    overflow: hidden;
    position: relative;
    transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
    box-shadow: 5px 5px 0 0 var(--terracotta);
}
.card.bg-card4::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: var(--tricolore);
    z-index: 3;
}
.card.bg-card4::after {
    content: "";
    position: absolute; inset: 12px 12px 12px 12px;
    border: 1px solid rgba(26,18,16,0.15);
    pointer-events: none;
    border-radius: 2px;
}
.card.bg-card4:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0 0 var(--terracotta);
}
.card.bg-card4 .card-body { position: relative; z-index: 2; padding: 32px 22px 26px; }
.card.bg-card4 .bg-light.rounded {
    background: transparent !important;
    padding: 6px !important;
    border-radius: 0 !important;
}
.card.bg-card4 .img-fluid { max-width: 220px; width: 100%; }
.card.bg-card4 h5.text-capitalize {
    font-family: var(--body);
    font-weight: 700;
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--basil);
    margin: 14px 0 4px;
}
.card.bg-card4 .ball-result {
    font-family: var(--display) !important;
    font-variation-settings: "opsz" 96, "wght" 500;
    font-size: clamp(3.6rem, 6vw, 5.4rem) !important;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--espresso);
    margin: 6px 0 10px;
    line-height: 0.95;
    display: block;
}
.card.bg-card4 .ball-result::before,
.card.bg-card4 .ball-result::after {
    content: "❦";
    color: var(--terracotta);
    font-size: 1.2rem;
    vertical-align: middle;
    margin: 0 10px;
    opacity: 0.6;
}
.card.bg-card4 span {
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    color: var(--espresso);
    opacity: 0.85;
    display: inline-block;
    margin-bottom: 6px;
}
.card.bg-card4 .badge.bg-danger {
    background: var(--terracotta) !important;
    color: var(--paper) !important;
    font-family: var(--body);
    font-weight: 800;
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    padding: 5px 12px;
    border-radius: 40px;
    margin: 8px 0;
    display: inline-block;
    text-transform: uppercase;
}
.card.bg-card4 h6.text-warning {
    color: var(--basil) !important;
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.005em;
    margin-top: 10px;
    text-transform: none;
}

/* Pagination */
.pagination { gap: 6px; margin-top: 34px; }
.pagination .page-link {
    background: var(--paper);
    border: 1px solid var(--espresso);
    color: var(--espresso);
    font-family: var(--display);
    font-weight: 500;
    font-size: 0.94rem;
    border-radius: 2px;
    padding: 8px 14px;
    transition: all .25s ease;
    font-style: italic;
    font-variation-settings: "opsz" 96;
}
.pagination .page-link:hover { background: var(--terracotta); color: var(--paper); border-color: var(--terracotta); }
.pagination .page-item.active .page-link { background: var(--basil); border-color: var(--basil); color: var(--paper); }
.pagination .page-item.disabled .page-link { opacity: 0.4; }

/* ========== See All Results pill ========== */
.navbar.bg-brown.navbar-result-custom {
    background: var(--paper-2) !important;
    border-radius: 40px !important;
    padding: 4px 16px !important;
    max-width: 320px;
    margin: 32px auto 6px;
    border: 1px solid var(--espresso);
    box-shadow: 3px 3px 0 0 var(--terracotta);
}
.navbar.bg-brown.navbar-result-custom::after { display: none; }
.navbar.bg-brown.navbar-result-custom .nav-link {
    color: var(--espresso) !important;
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-size: 1rem;
    padding: 4px 10px !important;
}
.navbar.bg-brown.navbar-result-custom .nav-link:hover { color: var(--terracotta) !important; }

/* ========== BOTTOM STATUS BAR ========== */
.navbot.fixed-bottom, .navbot.fixed-bottom.navbar-dark.bg-dark {
    background: var(--espresso) !important;
    border-top: 4px solid transparent;
    background-image:
        linear-gradient(var(--espresso), var(--espresso)),
        var(--tricolore);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: var(--paper);
    padding: 12px 0 !important;
}
.navbot .bottom-nav { display: flex; align-items: center; gap: 22px; }
.navbot .bottom-nav > li {
    color: var(--paper);
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-size: 0.98rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    display: inline-flex; align-items: center;
}
.navbot .bottom-nav > li img {
    border-radius: 50%;
    outline: 1px solid var(--magma-2);
    outline-offset: 2px;
}
.navbot #time-india {
    font-family: var(--mono);
    color: var(--magma-2);
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 0.94rem;
}

/* ========== FOOTER ========== */
footer {
    background: transparent;
    padding: 50px 0 26px;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid var(--line);
    position: relative;
}
footer::before {
    content: "❦ ❦ ❦";
    display: block;
    color: var(--terracotta);
    font-family: var(--display);
    letter-spacing: 0.8em;
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.7;
}
.copyright-text {
    color: var(--muted) !important;
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    font-weight: 400;
    text-transform: none !important;
}

/* ========== RESPONSIBLE MODAL ========== */
.modal-content {
    background: var(--paper);
    border: 1px solid var(--espresso);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 10px 10px 0 0 var(--terracotta);
}
.modal-header {
    border-bottom: 1px solid var(--espresso);
    padding: 22px 26px;
    background: var(--paper-2);
    position: relative;
}
.modal-header::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--tricolore);
}
.modal-header .modal-title {
    color: var(--espresso);
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 96;
    font-weight: 500;
    font-size: 1.8rem;
    letter-spacing: -0.01em;
}
.modal-header .btn-close { filter: none; opacity: 1; }
.modal-body { padding: 30px 34px 34px; color: var(--espresso); background: var(--paper); }
.modal-body h3 {
    font-family: var(--display);
    font-variation-settings: "opsz" 96;
    color: var(--terracotta) !important;
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.modal-body p.fw-bold {
    font-family: var(--body);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--basil);
    margin-top: 22px;
    margin-bottom: 6px;
    display: inline-block;
    border-bottom: 1px solid var(--basil);
    padding-bottom: 2px;
}
.modal-body p { font-size: 0.98rem; line-height: 1.75; color: var(--espresso-2); font-family: var(--script); }

/* ========== DATE PICKER ========== */
.xdsoft_datetimepicker { border: 1px solid var(--espresso) !important; background: var(--paper) !important; box-shadow: 6px 6px 0 0 var(--terracotta) !important; border-radius: 2px !important; }
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_calendar td:hover { background: var(--terracotta) !important; color: var(--paper) !important; }
.xdsoft_label { color: var(--espresso) !important; }

/* ========== ANIMATIONS ========== */
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.card-live-dk .col-xl-4 { animation: riseIn .7s cubic-bezier(.2,.7,.2,1) both; }
.card-live-dk .col-xl-4:nth-child(1) { animation-delay: .05s; }
.card-live-dk .col-xl-4:nth-child(2) { animation-delay: .12s; }
.card-live-dk .col-xl-4:nth-child(3) { animation-delay: .19s; }
.card-live-dk .col-xl-4:nth-child(4) { animation-delay: .26s; }
.card-live-dk .col-xl-4:nth-child(5) { animation-delay: .33s; }
.card-live-dk .col-xl-4:nth-child(6) { animation-delay: .40s; }
.section-head, .ornament { animation: riseIn .8s ease both; }
#live { animation: fadeIn .9s ease both; }

/* ========== MISC ========== */
.card1, .card-live-dk.card1 { background: transparent; border: none; border-radius: 0; }
.navbar-nav-custom { flex-direction: row !important; align-items: center; justify-content: center; }

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .navbar-collapse { background: var(--paper-2); padding: 16px 12px; margin-top: 12px; border-top: 1px solid var(--espresso); border-radius: 3px; }
    .navbar-dark .navbar-nav .nav-link { padding: 12px 14px !important; margin: 3px 0; }
    .swiper { height: 42vh; }
    .hero-postcard-inner { justify-content: center; text-align: center; font-size: 1.15rem; }
}
@media (max-width: 767.98px) {
    body { padding-bottom: 92px; }
    .swiper { height: 36vh; }
    .card-live { margin: 12px auto; }
    #live { padding: 30px 18px; border-radius: 160px 160px 8px 8px / 90px 90px 8px 8px; }
    .live-content h4 { font-size: 1.2rem; }
    .card.bg-card4 .ball-result { font-size: 3rem !important; }
    .result-card .p-num { font-size: 2.2rem !important; }
    .text-runn { font-size: 0.95rem; }
    .navbot .bottom-nav { gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 0.88rem; }
}
@media (max-width: 480px) {
    .navbot .bottom-nav > li { font-size: 0.82rem; }
    .hero-postcard-inner { font-size: 1rem; }
}
