@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');


/* =========================================================
   ROOT
========================================================= */

:root {
    --bg: #07111f;
    --bg-soft: #0c1828;
    --card: rgba(17, 31, 49, 0.82);
    --border: rgba(255,255,255,0.10);
    --text: #ffffff;
    --muted: #91a1b5;
    --accent: #35a7ff;
    --accent-2: #7c5cff;
    --success: #27e58a;
    --table-bg: #0d1c2d;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 200px;
    height: auto;
}

.live-info {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff3c48;
    border-radius: 50%;
    box-shadow: 0 0 12px #ff3c48;
    animation: pulse 1.5s infinite;
}

.country-time {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #dce6f2;
    font-size: 12px;
    line-height: 1.5;
}

.country-time img {
    width: 25px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}


/* =========================================================
   DIGITAL LOTTERY HERO
========================================================= */

.hero-section {
    position: relative;
    overflow: hidden;

    min-height: 760px;

    padding: 175px 0 90px;

    background:
        linear-gradient(
            90deg,
            rgba(3, 10, 20, 0.78) 0%,
            rgba(3, 10, 20, 0.68) 45%,
            rgba(3, 10, 20, 0.55) 100%
        ),
        url("../images/hero-bg.jpg") center center / cover no-repeat;
}


/* Background lighting */

.hero-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(0, 155, 255, 0.12),
            transparent 38%
        );

    pointer-events: none;
}


/* Decorative glow */

.hero-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    pointer-events: none;

    z-index: 1;
}

.glow-one {
    width: 380px;
    height: 380px;

    right: 8%;
    top: 8%;

    background: rgba(0, 153, 255, .12);
}

.glow-two {
    width: 280px;
    height: 280px;

    left: 5%;
    bottom: 0;

    background: rgba(255, 193, 7, .06);
}


/* =========================================================
   HERO LAYOUT
========================================================= */

.hero-new {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr 1.05fr;

    align-items: center;

    gap: 85px;

    max-width: 1250px;

    margin: 0 auto;
}


/* =========================================================
   LEFT SIDE
========================================================= */

.lottery-side {
    width: 100%;
}

.hero-kicker {
    color: #ffd34d;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 10px;
}

.lottery-side h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(42px, 5vw, 68px);

    line-height: .98;

    letter-spacing: -2px;
}

.lottery-side h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #66d9ff
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-date {
    color: #a2b2c5;

    margin: 15px 0 25px;

    font-size: 14px;
}


/* =========================================================
   LOTTERY CARDS
========================================================= */

.lottery-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}

.lottery-card {
    position: relative;

    min-height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 10px 10px 16px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(18, 42, 70, .92),
            rgba(5, 15, 29, .94)
        );

    border: 1px solid
        rgba(91, 180, 255, .20);

    box-shadow:
        inset 0 1px rgba(255,255,255,.05),
        0 10px 25px rgba(0,0,0,.25);

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.lottery-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(255,211,77,.55);
}

.lottery-card span {
    color: #eaf3fc;

    font-size: 14px;

    font-weight: 600;
}

.lottery-card strong {
    min-width: 54px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color: #ffe16a;

    font-size: 24px;

    font-weight: 800;

    background:
        linear-gradient(
            145deg,
            #111d2b,
            #02070d
        );

    border: 1px solid
        rgba(255,216,77,.30);

    box-shadow:
        inset 0 0 14px
        rgba(255,190,30,.06),

        0 0 15px
        rgba(255,200,50,.05);

    text-shadow:
        0 0 10px
        rgba(255,215,70,.65);
}


/* =========================================================
   DIGITAL DISPLAY
========================================================= */

.digital-stage {
    position: relative;

    padding: 25px;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(22, 42, 63, .82),
            rgba(3, 10, 20, .90)
        );

    border: 1px solid
        rgba(100,190,255,.20);

    box-shadow:
        0 35px 70px rgba(0,0,0,.45),

        inset 0 1px
        rgba(255,255,255,.08);

    backdrop-filter: blur(12px);
}


/* =========================================================
   LIVE DRAW TITLE
========================================================= */

.stage-title {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #9eb2c7;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 18px;
}

.stage-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #39e58c;

    box-shadow:
        0 0 10px #39e58c;
}


/* =========================================================
   NUMBER DISPLAY
========================================================= */

.number-display {
    position: relative;

    padding: 22px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #071321,
            #01050a
        );

    border: 1px solid
        rgba(87,183,255,.22);

    box-shadow:
        inset 0 0 35px
        rgba(0,120,255,.07),

        0 15px 30px
        rgba(0,0,0,.30);

    overflow: hidden;
}

.number-display::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #42c8ff,
            transparent
        );

    opacity: .8;
}

.magic-box {
    margin-bottom: 18px;
}

.display-label {
    color: #7890a7;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.5px;

    text-align: center;

    margin-bottom: 15px;
}


/* =========================================================
   MAGIC NUMBER - 6 DIGITS
========================================================= */

.digit-row {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 8px;
}

.digital-digit {
    height: 92px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    color: #effcff;

    font-size: 48px;

    font-weight: 800;

    background:
        radial-gradient(
            circle at 50% 35%,
            #153d5c,
            #02070d 70%
        );

    border: 1px solid
        rgba(70,194,255,.30);

    box-shadow:
        inset 0 0 20px
        rgba(0,170,255,.08),

        0 0 15px
        rgba(0,150,255,.04);

    text-shadow:
        0 0 6px #fff,
        0 0 16px #41caff,
        0 0 30px
        rgba(0,190,255,.60);
}


/* =========================================================
   LUCKY NUMBER - 2 DIGITS
========================================================= */

.lucky-box {
    padding-bottom: 25px;
}

.lucky-digit-row {
    display: flex;

    justify-content: center;

    gap: 18px;
}

.lucky-digit {
    width: 125px;

    height: 105px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    color: #ffffff;

    font-size: 58px;

    font-weight: 900;

    background:
        radial-gradient(
            circle at 50% 35%,
            #194c70,
            #02070d 72%
        );

    border: 1px solid
        rgba(79,202,255,.38);

    box-shadow:
        inset 0 0 30px
        rgba(0,170,255,.10),

        0 0 25px
        rgba(0,170,255,.07);

    text-shadow:
        0 0 7px #fff,
        0 0 18px #46d2ff,
        0 0 35px
        rgba(0,190,255,.70);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .hero-section {
        padding:
            150px 0 70px;
    }

    .hero-new {
        grid-template-columns: 1fr;

        gap: 40px;

        max-width: 720px;
    }

    .lottery-side {
        max-width: 700px;

        margin: 0 auto;

        width: 100%;
    }

    .digital-stage {
        max-width: 700px;

        width: 100%;

        margin: 0 auto;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .hero-section {
        min-height: auto;

        padding:
            115px 12px 40px;

        background:
            linear-gradient(
                180deg,
                rgba(3,10,20,.86),
                rgba(5,17,30,.96)
            ),
            url("../images/hero-bg.jpg")
            center center / cover no-repeat;
    }

    .hero-section::before {
        background:
            radial-gradient(
                circle at 50% 15%,
                rgba(0,155,255,.13),
                transparent 42%
            );
    }

    .hero-glow {
        display: none;
    }

    .hero-new {
        display: flex;

        flex-direction: column;

        gap: 20px;

        width: 100%;
    }


    /* DIGITAL DISPLAY FIRST */

    .digital-stage {
        order: 1;

        width: 100%;

        padding: 15px;

        border-radius: 20px;
    }

    .stage-title {
        justify-content: center;

        font-size: 9px;

        margin-bottom: 12px;
    }

    .number-display {
        padding: 14px;

        border-radius: 14px;
    }

    .magic-box {
        margin-bottom: 10px;
    }

    .display-label {
        font-size: 9px;

        margin-bottom: 9px;

        letter-spacing: 2px;
    }


    /* MAGIC NUMBER */

    .digit-row {
        gap: 4px;
    }

    .digital-digit {
        height: 54px;

        border-radius: 7px;

        font-size: 25px;
    }


    /* LUCKY NUMBER */

    .lucky-digit-row {
        gap: 10px;
    }

    .lucky-digit {
        width: 82px;

        height: 65px;

        border-radius: 11px;

        font-size: 34px;
    }


    /* LOTTERY SIDE */

    .lottery-side {
        order: 2;

        width: 100%;
    }

    .hero-kicker {
        text-align: center;

        font-size: 10px;

        letter-spacing: 2px;
    }

    .lottery-side h1 {
        text-align: center;

        font-size: 31px;

        letter-spacing: -1px;
    }

    .hero-date {
        text-align: center;

        font-size: 12px;

        margin: 8px 0 14px;
    }


    /* LOTTERY GRID */

    .lottery-grid {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }

    .lottery-card {
        min-height: 52px;

        padding:
            6px 6px 6px 10px;

        border-radius: 9px;
    }

    .lottery-card span {
        font-size: 11px;

        line-height: 1.15;
    }

    .lottery-card strong {
        min-width: 40px;

        height: 37px;

        border-radius: 7px;

        font-size: 17px;
    }
}

/* =========================================================
   TODAY SECTION
========================================================= */

.today-section,
.history-section {
    padding: 90px 0;
}

.today-section {
    background: #091524;
}

.section-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;

    margin-bottom: 35px;
}

.section-heading h2 {
    font-family: 'Space Grotesk';

    font-size: clamp(28px, 4vw, 42px);

    margin-bottom: 7px;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
}

.today-badge {
    border: 1px solid rgba(39,229,138,.2);

    background: rgba(39,229,138,.06);

    color: var(--success);

    border-radius: 30px;

    padding: 9px 14px;

    font-size: 11px;
    font-weight: 700;
}

.today-badge span {
    display: inline-block;

    width: 7px;
    height: 7px;

    background: var(--success);

    border-radius: 50%;

    margin-right: 5px;
}


/* =========================================================
   TODAY DRAW CARDS
========================================================= */

.slot-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;
}

.slot-card {
    padding: 25px 15px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: var(--card);

    transition: .25s ease;
}

.slot-card:hover,
.slot-card.active {
    transform: translateY(-4px);

    border-color:
        rgba(53,167,255,.5);
}

.slot-card span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 10px;
}

.slot-card strong {
    font-family: 'Space Grotesk';

    font-size: 38px;
}


/* =========================================================
   HISTORY
========================================================= */

.history-section {
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(53,167,255,.08),
            transparent 30%
        ),
        var(--bg);
}

.filters {
    display: flex;
    gap: 10px;
}

.filter-box label {
    display: block;

    font-size: 10px;

    color: var(--muted);

    margin-bottom: 5px;
}

.filter-box select {
    min-width: 140px;

    padding: 12px 35px 12px 13px;

    border-radius: 10px;

    border: 1px solid var(--border);

    background: #0d1c2d;

    color: white;

    outline: none;
}


/* =========================================================
   RESULTS TABLE
========================================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: var(--table-bg);

    box-shadow:
        0 20px 60px rgba(0,0,0,.25);

    -webkit-overflow-scrolling: touch;
}

.results-table {
    border-collapse: collapse;

    min-width: 1050px;

    width: 100%;
}

.results-table th,
.results-table td {
    padding: 13px 12px;

    text-align: center;

    border-right:
        1px solid rgba(255,255,255,.06);

    border-bottom:
        1px solid rgba(255,255,255,.06);

    font-size: 12px;
}

.results-table thead th {
    background: #142943;

    color: #9ed8ff;

    font-size: 10px;

    font-weight: 700;
}

.results-table tbody td {
    color: #d8e3ed;
}

.results-table tbody tr:hover td {
    background:
        rgba(53,167,255,.06);
}

.time-column {
    position: sticky;

    left: 0;

    z-index: 3;

    background: #102238 !important;

    color: #fff !important;

    min-width: 105px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 25px 0;

    background: #050d17;

    text-align: center;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.75);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .hero-new {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .lottery-side {
        max-width: 700px;

        margin: auto;
    }

    .digital-stage {
        max-width: 700px;

        width: 100%;

        margin: auto;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .container {
        width: min(
            100% - 22px,
            1180px
        );
    }


    /* HEADER */

    .site-header {
        padding: 14px 0;
    }

    .logo img {
        width: 115px;
    }

    .live-info {
        gap: 8px;
    }

    .live-status {
        font-size: 9px;
    }

    .country-time {
        font-size: 9px;
    }

    .country-time img {
        width: 22px;
        height: 15px;
    }


    /* HERO */

    .hero-section {
        min-height: auto;

        padding: 105px 0 35px;

        background:
            radial-gradient(
                circle at 80% 10%,
                rgba(0,150,255,.15),
                transparent 35%
            ),
            linear-gradient(
                145deg,
                #030914 0%,
                #0a213a 50%,
                #020711 100%
            );
    }

    .hero-glow {
        display: none;
    }

    .hero-new {
        display: flex;

        flex-direction: column;

        gap: 20px;
    }


    /* DIGITAL DISPLAY FIRST */

    .digital-stage {
        order: 1;

        width: 100%;

        padding: 15px;

        border-radius: 20px;
    }

    .stage-title {
        justify-content: center;

        font-size: 9px;

        margin-bottom: 12px;
    }

    .number-display {
        padding: 14px;

        border-radius: 14px;
    }

    .magic-box {
        margin-bottom: 10px;
    }

    .display-label {
        font-size: 9px;

        margin-bottom: 9px;

        letter-spacing: 2px;
    }


    /* MAGIC NUMBER */

    .digit-row {
        gap: 4px;
    }

    .digital-digit {
        height: 54px;

        border-radius: 7px;

        font-size: 25px;
    }


    /* LUCKY NUMBER */

    .lucky-digit-row {
        gap: 10px;
    }

    .lucky-digit {
        width: 82px;

        height: 65px;

        border-radius: 11px;

        font-size: 34px;
    }


    /* LOTTERY SIDE */

    .lottery-side {
        order: 2;

        width: 100%;
    }

    .hero-kicker {
        text-align: center;

        font-size: 10px;

        letter-spacing: 2px;
    }

    .lottery-side h1 {
        text-align: center;

        font-size: 31px;

        letter-spacing: -1px;
    }

    .hero-date {
        text-align: center;

        font-size: 12px;

        margin: 8px 0 14px;
    }


    /* LOTTERY GRID */

    .lottery-grid {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }

    .lottery-card {
        min-height: 52px;

        padding: 6px 6px 6px 10px;

        border-radius: 9px;
    }

    .lottery-card span {
        font-size: 11px;

        line-height: 1.15;
    }

    .lottery-card strong {
        min-width: 40px;

        height: 37px;

        border-radius: 7px;

        font-size: 17px;
    }


    /* TODAY */

    .today-section,
    .history-section {
        padding: 55px 0;
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .today-badge {
        align-self: flex-start;
    }


    /* TODAY CARDS */

    .slot-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 9px;
    }

    .slot-card {
        padding: 20px 10px;
    }

    .slot-card strong {
        font-size: 32px;
    }


    /* FILTERS */

    .filters {
        width: 100%;
    }

    .filter-box {
        flex: 1;
    }

    .filter-box select {
        width: 100%;

        min-width: 0;
    }


    /* TABLE */

    .table-wrapper {
        border-radius: 10px;
    }

    .results-table th,
    .results-table td {
        padding: 12px 11px;
    }
}