@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Cormorant+Garamond:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

/* ================================================================
   NPL1 — CLEAN MASTER STYLES
   Reference design values integrated into existing structure
   ================================================================ */

:root {
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);

    --brand-gold: #b37318;
    --brand-red: #d93838;

    --col-a: #dc2626;
    --col-b: #059669;
    --col-c: #2563eb;
    --col-time: #d97706;

    --dark: #0f172a;
    --muted: #6b7280;
    --border: #e5e7eb;
}

/* ================================================================
   GLOBAL
   ================================================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding-bottom: 40px;
    background: #ffffff;
    color: #0f172a;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

button {
    cursor: pointer;
    font: inherit;
}

/* ================================================================
   PAGE / CONTAINER
   ================================================================ */

.ss-page {
    min-height: 100vh;
    background: #ffffff;
    padding: 40px 16px 80px;
}

.ss-container {
    width: 100%;
    max-width: 960px !important;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ================================================================
   MAIN CARD
   ================================================================ */

.glass-card,
.ss-card {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.2);
}

/* ================================================================
   MAIN BANNER ONLY — RED / YELLOW / GREEN ANIMATED GRADIENT
   OTHER .glass-card BOXES ARE NOT AFFECTED
   ================================================================ */

/* ================================================================
   MAIN BANNER — SOFT RED / WHITE / GREEN ANIMATED BACKGROUND
   ONLY MAIN BANNER
   ================================================================ */

/* =========================================================
   NPL1 MAIN BANNER — FIXED SOFT RED / WHITE / GREEN
   (NO ANIMATION - SAME AS DESIGN)
   ========================================================= */

.ss-container > .glass-card:first-child {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    /* Soft luxury background */
    background:
        radial-gradient(circle at 18% 20%,
            rgba(255, 120, 120, 0.28) 0%,
            rgba(255, 170, 170, 0.18) 22%,
            transparent 45%
        ),

        radial-gradient(circle at 82% 28%,
            rgba(70, 215, 170, 0.26) 0%,
            rgba(120, 240, 200, 0.16) 25%,
            transparent 48%
        ),

        radial-gradient(circle at 50% 100%,
            rgba(120, 150, 255, 0.10) 0%,
            transparent 40%
        ),

        linear-gradient(
            90deg,
            #fdf7f7 0%,
            #ffffff 45%,
            #f8fffb 100%
        );

    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.7);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.7),
        0 15px 35px rgba(0,0,0,.05);

    animation: none !important;
    background-size: cover;
    background-position: center;
}


/* =========================
   MOBILE ONLY
   ========================= */
@media (max-width: 576px) {

    .ss-container > .glass-card:first-child {
        padding: 30px 12px 20px !important;
        border-radius: 22px;
        margin-bottom: 16px !important;
    }

    .ss-container > .glass-card:first-child .animated-npl1-title {
        font-size: 32px;
        margin-bottom: 4px !important;
    }

    .ss-container > .glass-card:first-child .mb-3 {
        margin-bottom: 10px !important;
    }

    .ss-container > .glass-card:first-child #liveTimestamp {
        font-size: 12px !important;
        line-height: 1.4;
        margin-bottom: 14px !important;
    }

    .ss-container > .glass-card:first-child .nav-tab-btn,
    .ss-container > .glass-card:first-child #datePicker {
        font-size: 12px;
        padding: 8px 12px;
    }

    .ss-container > .glass-card:first-child #datePicker {
        width: auto !important;
        min-width: 130px;
    }
}

/* ================================================================
   MARQUEE / TICKER
   ================================================================ */

.hero-wrap,
.ticker-wrap {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 8px;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 999px;

    background: linear-gradient(
        90deg,
        #dc2626,
        #d97706,
        #eab308,
        #059669,
        #2563eb,
        #7c3aed,
        #dc2626
    );

    background-size: 200% 100%;
    box-shadow: 0 12px 30px -14px rgba(220, 38, 38, 0.35);
    animation: marquee-hue 12s linear infinite;
}

.hero-wrap::before,
.hero-wrap::after,
.ticker-wrap::before,
.ticker-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 80px;
    pointer-events: none;
}

.hero-wrap::before,
.ticker-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #fff, transparent);
}

.hero-wrap::after,
.ticker-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, #fff, transparent);
}

.hero-marquee-track,
.ticker-content,
.ticker {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: marquee-scroll 42s linear infinite;
}

.hero-marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 22px;
    color: #fff;

    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes marquee-hue {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 200% 50%;
    }
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ticker-wrap:hover .ticker-content,
.ticker-wrap:hover .ticker,
.hero-wrap:hover .hero-marquee-track {
    animation-play-state: paused;
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 20px 12px;
    text-align: center;
    border-radius: 24px;
}

.hero-inner {
    position: relative;
    z-index: 3;
}

.hero-blob {
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
}

.hero-blob.b1 {
    width: 240px;
    height: 240px;
    top: -50px;
    left: 4%;
    background: #dc2626;
    animation: float-y 9s ease-in-out infinite;
}

.hero-blob.b2 {
    width: 260px;
    height: 260px;
    top: 20px;
    right: 6%;
    background: #059669;
    animation: float-y 11s ease-in-out infinite reverse;
}

.hero-blob.b3 {
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: 40%;
    background: #2563eb;
    animation: float-y 13s ease-in-out infinite;
}

.hero-blob.b4 {
    width: 190px;
    height: 190px;
    top: 45%;
    right: 30%;
    background: #d97706;
    opacity: 0.35;
    animation: float-y 15s ease-in-out infinite reverse;
}

@keyframes float-y {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(14px, -20px);
    }
}

.hero-star {
    position: absolute;
    z-index: 1;
    font-size: 14px;
    opacity: 0.75;
    animation: twinkle 3s ease-in-out infinite;
}

.hero-star.s1 {
    top: 12%;
    left: 10%;
    color: #d97706;
}

.hero-star.s2 {
    top: 18%;
    right: 14%;
    color: #7c3aed;
    animation-delay: 0.6s;
}

.hero-star.s3 {
    bottom: 22%;
    left: 22%;
    color: #059669;
    font-size: 16px;
    animation-delay: 1.2s;
}

.hero-star.s4 {
    right: 14%;
    bottom: 14%;
    color: #dc2626;
    font-size: 16px;
    animation-delay: 1.8s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.25;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ================================================================
   TITLES
   ================================================================ */

.ss-title,
.animated-npl1-title,
.brand-title {
    margin: 0 !important;

    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: 10px;

    text-align: center;
    text-transform: uppercase;

    background: linear-gradient(
        135deg,
        #dc2626 0%,
        #d97706 25%,
        #eab308 45%,
        #059669 65%,
        #2563eb 82%,
        #7c3aed 100%
    );

    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: title-shift 8s ease-in-out infinite;

    filter: drop-shadow(
        0 6px 24px rgba(220, 38, 38, 0.15)
    );
}

@keyframes title-shift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.ss-title-underline {
    width: 140px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;

    background: linear-gradient(
        90deg,
        #dc2626,
        #059669,
        #2563eb
    );
}

/* ================================================================
   TAGS / BADGES
   ================================================================ */

.badge-pill-custom,
.ss-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 12px;
    padding: 4px 12px;

    color: #d97706;

    background: linear-gradient(
        90deg,
        rgba(217, 119, 6, 0.1),
        rgba(220, 38, 38, 0.1)
    );

    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 999px;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ================================================================
   ONLINE COUNTER
   ================================================================ */

.ss-online-row {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.online-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 14px 6px 10px;

    color: #4b5563;
    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 1.2px;

    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.1);
}

.online-dot {
    width: 8px;
    height: 8px;

    background: #10b981;
    border-radius: 999px;

    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);

    animation: pulse-online 1.8s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.online-count {
    color: #0f172a;
    font-weight: 800;
}

.online-label {
    color: #6b7280;
    font-size: 0.7rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* ================================================================
   SUBTITLE / CONTROLS
   ================================================================ */

.ss-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 18px;

    color: #4b5563;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.ss-divider {
    color: #d1d5db;
}

.ss-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.ss-date-picker {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 6px 12px;

    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.ss-date-input {
    min-width: 150px;
    padding: 4px 0;

    border: none !important;
    background: transparent !important;

    box-shadow: none;

    font-family: 'IBM Plex Mono', monospace;
}

.ss-btn-ghost-sm {
    padding: 4px 8px;

    color: #4b5563;
    background: none;
    border: 0;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ss-admin-link,
.ss-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 16px;

    border-radius: 999px;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;

    text-decoration: none;
    text-transform: uppercase;

    transition: all 200ms ease;
}

.ss-admin-link {
    color: #fff;
    background: #0f172a;
}

.ss-admin-link:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.ss-nav-link {
    color: #0f172a;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.ss-nav-link:hover {
    background: linear-gradient(
        90deg,
        rgba(217, 119, 6, 0.08),
        rgba(220, 38, 38, 0.08)
    );

    border-color: rgba(217, 119, 6, 0.4);
    transform: translateY(-1px);
}

.nav-tab-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.nav-tab-btn.active {
    color: #ffffff !important;
    background-color: #0f172a !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

/* ================================================================
   LATEST DRAW CARD
   ================================================================ */

.ss-latest-card,
.latest-draw-container {
    position: relative;

    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;

    width: 100%;
    margin-bottom: 24px;
    padding: 20px 24px;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.15);
}

.ss-latest-card::before,
.latest-draw-container::before {
    content: '';

    position: absolute;
    inset: 0;

    padding: 1.5px;

    border-radius: 18px;

    background: conic-gradient(
        from 0deg,
        #dc2626,
        #059669,
        #2563eb,
        #dc2626
    );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    animation: rotate-hue 8s linear infinite;

    opacity: 0.7;
    pointer-events: none;
}

@keyframes rotate-hue {
    to {
        filter: hue-rotate(360deg);
    }
}

.ss-latest-side,
.latest-draw-info {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding-right: 12px;

    border-right: 1px dashed #e5e7eb;
}

.ss-latest-label,
.latest-draw-title {
    display: inline-flex;
    gap: 6px;

    color: #0f172a;

    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;

    text-transform: uppercase;
}

.ss-latest-time,
.latest-draw-time {
    color: #0f172a !important;

    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.ss-latest-nums {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

/* ================================================================
   VALUE CARDS
   ================================================================ */

.val-card,
.ss-latest-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 80px;
    min-width: 80px;
    height: 72px;

    padding: 10px 20px;

    background: #fafafa;

    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
}

.val-label,
.ss-latest-num-label {
    margin-bottom: 2px;

    font-family: 'Cinzel', serif !important;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;

    opacity: 0.75;
}

.val-number,
.ss-latest-num-value {
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1;
}

.val-card-a,
.ss-latest-num.col-a {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.25);
}

.val-card-a .val-label,
.val-card-a .val-number {
    color: #dc2626;
}

.val-card-b,
.ss-latest-num.col-b {
    color: #059669;
    background: rgba(5, 150, 105, 0.06);
    border-color: rgba(5, 150, 105, 0.25);
}

.val-card-b .val-label,
.val-card-b .val-number {
    color: #059669;
}

.val-card-c,
.ss-latest-num.col-c {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.25);
}

.val-card-c .val-label,
.val-card-c .val-number {
    color: #2563eb;
}

/* ================================================================
   DATA TABLE WRAPPER
   ================================================================ */

.ss-table-wrap,
.scrollable-table-container {
    width: 100%;
    max-height: 72vh;

    overflow-x: hidden;
    overflow-y: auto;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.2);
}

/* Scrollbar */

.ss-table-wrap::-webkit-scrollbar,
.scrollable-table-container::-webkit-scrollbar {
    width: 7px;
}

.ss-table-wrap::-webkit-scrollbar-track,
.scrollable-table-container::-webkit-scrollbar-track {
    background: transparent;
}

.ss-table-wrap::-webkit-scrollbar-thumb,
.scrollable-table-container::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 999px;
}

.ss-table-wrap,
.scrollable-table-container {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af transparent;
}

/* ================================================================
   TABLE
   ================================================================ */

.ss-table,
.table-custom {
    width: 100%;

    border-collapse: collapse;

    table-layout: auto;

    background: #fff;

    font-variant-numeric: tabular-nums;
}

/* ================================================================
   TABLE HEADER
   ================================================================ */

.ss-table thead th,
.table-custom th {
    position: sticky;
    top: 0;
    z-index: 5;

    height: auto;
    padding: 18px 12px;

    color: #0f172a;
    background: #f9fafb;

    border: 0;
    border-bottom: 2px solid #e5e7eb;

    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 6px;
    line-height: 1;

    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
}

.ss-table thead th.ss-col-time-h {
    color: #d97706;
    letter-spacing: 3px;
}

.ss-table thead th.col-a-h {
    color: #dc2626;
}

.ss-table thead th.col-b-h {
    color: #059669;
}

.ss-table thead th.col-c-h {
    color: #2563eb;
}

.ss-table thead th.ss-col-action-h {
    color: #6b7280;
    letter-spacing: 3px;
}

/* ================================================================
   TABLE ROWS
   ================================================================ */

.ss-table tbody tr {
    height: auto;
}

.ss-table tbody tr:hover td {
    background: #fafafa;
}

/* ================================================================
   TABLE CELLS
   ================================================================ */

.ss-table tbody td,
.table-custom td {
    height: auto;

    padding: 14px 12px;

    color: #0f172a;
    background: #fff;

    border: 0;
    border-bottom: 1px solid #f3f4f6;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;

    text-align: center;
    vertical-align: middle;

    transition: background-color 200ms ease;
}

/* ================================================================
   TIME COLUMN
   ================================================================ */

.ss-col-time {
    width: 28%;

    color: #d97706;

    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 1rem !important;
    font-weight: 700 !important;

    letter-spacing: 1px;
    white-space: nowrap;
}

/* ================================================================
   NUMBER COLUMNS
   ================================================================ */

.ss-num {
    width: 20%;

    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.ss-num.col-a {
    color: #dc2626;
}

.ss-num.col-b {
    color: #059669;
}

.ss-num.col-c {
    color: #2563eb;
}

/* ================================================================
   PENDING
   ================================================================ */

.row-pending .ss-num {
    color: #d1d5db !important;
    font-weight: 500 !important;
}

.row-pending .ss-col-time {
    color: #e5b881 !important;
}

/* ================================================================
   LATEST ROW
   ================================================================ */

.row-latest td {
    background: linear-gradient(
        90deg,
        rgba(220, 38, 38, 0.06),
        rgba(5, 150, 105, 0.06),
        rgba(37, 99, 235, 0.06)
    ) !important;
}

.row-latest .ss-col-time {
    color: #0f172a;
    font-weight: 700;
}

/* ================================================================
   EMPTY / FOOTER
   ================================================================ */

.ss-empty {
    padding: 36px 16px;

    color: #6b7280;

    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;

    text-align: center;
}

.ss-footer {
    margin-top: 24px;

    color: #9ca3af;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;

    text-align: center;
}

/* ================================================================
   SUPER DRAW
   ================================================================ */

.sd-card {
    position: relative;

    width: 100%;

    padding: 56px 32px 48px;

    overflow: hidden;

    text-align: center;

    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(
            90deg,
            #dc2626,
            #eab308,
            #059669,
            #dc2626
        ) border-box;

    border: 3px solid transparent;
    border-radius: 20px;

    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.2);
}

.sd-card::before {
    content: '';

    position: absolute;
    inset: 0;

    padding: 2px;

    border-radius: 20px;

    background: conic-gradient(
        from 90deg,
        #d97706,
        #dc2626,
        #7c3aed,
        #2563eb,
        #059669,
        #d97706
    );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    animation: rotate-hue 10s linear infinite;

    opacity: 0.75;
    pointer-events: none;
}

.sd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 20px;
    padding: 6px 14px;

    color: #fef3c7;
    background: #0f172a;

    border-radius: 999px;

    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.sd-label {
    margin-bottom: 8px;

    color: #6b7280;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 3px;

    text-transform: uppercase;
}

.sd-number,
.number-huge,
.super-number-counter {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(6rem, 20vw, 12rem);
    line-height: 1;
    letter-spacing: 4px;

    background: linear-gradient(
        135deg,
        #d97706 0%,
        #dc2626 45%,
        #7c3aed 100%
    );

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    filter: drop-shadow(
        0 8px 20px rgba(220, 38, 38, 0.15)
    );
}

.sd-number.locked {
    background: none !important;
    color: #e5e7eb !important;
    -webkit-text-fill-color: #e5e7eb !important;
    filter: none;
    animation: sd-pulse 2.2s ease-in-out infinite;
}

@keyframes sd-pulse {
    0%, 100% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.7;
    }
}

.sd-locked-hint {
    margin-top: 14px;

    color: #6b7280;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

.sd-date-info {
    margin-top: 20px;

    color: #9ca3af;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ================================================================
   LOGIN
   ================================================================ */

.ss-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.ss-login-card {
    position: relative;

    width: 100%;
    max-width: 420px;

    padding: 40px 32px 32px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.15);
}

.ss-back-link {
    position: absolute;
    top: 16px;
    left: 16px;

    display: inline-flex;
    gap: 4px;

    color: #6b7280;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;

    text-decoration: none;
}

.ss-back-link:hover {
    color: #0f172a;
}

.ss-login-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin: 0 auto 16px;

    color: #fef3c7;
    background: #0f172a;

    border-radius: 14px;

    font-size: 22px;
}

.ss-login-title {
    margin: 0 0 4px;

    color: #0f172a;

    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;

    text-align: center;
    text-transform: uppercase;
}

.ss-login-sub {
    margin: 0 0 24px;

    color: #6b7280;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;

    text-align: center;
}

.ss-error-banner {
    margin-bottom: 12px;
    padding: 8px 12px;

    color: #991b1b;
    background: #fee2e2;

    border: 1px solid #fecaca;
    border-radius: 8px;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
}

.ss-login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ss-login-form > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ss-login-form label {
    color: #4b5563;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.ss-input {
    width: 100%;
    padding: 10px 12px;

    color: #0f172a;
    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
}

.ss-input:focus {
    outline: 2px solid #0f172a;
    outline-offset: -1px;
}

.ss-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 10px 18px;

    color: #fff;
    background: #0f172a;

    border: 0;
    border-radius: 10px;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.ss-btn-primary:hover {
    background: #1e293b;
}

.ss-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================================================
   ADMIN
   ================================================================ */

.ss-admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 24px;
    padding-bottom: 20px;

    border-bottom: 1px solid #e5e7eb;
}

.ss-admin-title {
    margin: 0;

    color: #0f172a;

    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 4px;

    text-transform: uppercase;
}

.ss-admin-sub {
    margin: 6px 0 0;

    color: #6b7280;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.ss-admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ss-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 12px;

    color: #4b5563;
    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;

    text-decoration: none;
}

.ss-btn-ghost:hover {
    background: #f9fafb;
}

.ss-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
    padding: 10px 14px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.ss-admin-picker-label {
    color: #4b5563;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.ss-admin-input {
    width: 68px;

    padding: 6px;

    color: #0f172a;
    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;

    text-align: center;
}

.ss-admin-input.col-a-input {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.25);
}

.ss-admin-input.col-b-input {
    color: #059669;
    border-color: rgba(5, 150, 105, 0.25);
}

.ss-admin-input.col-c-input {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.25);
}

.ss-admin-table tbody td {
    padding: 10px 12px;
    font-size: 1rem;
}

/* ================================================================
   SUPER EDITOR
   ================================================================ */

.ss-super-editor {
    margin-bottom: 20px;
    padding: 16px 20px;

    background: linear-gradient(
        135deg,
        rgba(217, 119, 6, 0.06),
        rgba(220, 38, 38, 0.04) 50%,
        rgba(37, 99, 235, 0.04)
    );

    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 14px;
}

.ss-super-editor-head {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 12px;

    color: #d97706;
}

.ss-super-editor-title {
    color: #0f172a;

    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;

    text-transform: uppercase;
}

.ss-super-editor-date {
    margin-left: auto;

    color: #6b7280;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.ss-super-editor-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ss-super-input {
    width: 90px;

    padding: 8px;

    color: #d97706;
    background: #fff;

    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 8px;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;

    text-align: center;
}

.ss-super-hint {
    color: #6b7280;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ================================================================
   TOAST
   ================================================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;

    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    max-width: 320px;

    padding: 12px 18px;

    color: #fff;

    border-radius: 10px;

    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;

    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);

    animation: toast-in 0.3s ease;
}

.toast.success {
    background: #059669;
}

.toast.error {
    background: #dc2626;
}

@keyframes toast-in {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ================================================================
   UTILITIES
   ================================================================ */

.font-mono {
    font-family: 'IBM Plex Mono', monospace !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

.d-none {
    display: none !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.position-relative {
    position: relative !important;
}

.text-center {
    text-align: center !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.text-muted,
.text-secondary {
    color: #6b7280 !important;
}

.text-success {
    color: #198754 !important;
}

.fs-6 {
    font-size: 1rem !important;
}

.small {
    font-size: 0.875rem !important;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;

    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;

    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.bg-dark {
    background-color: #212529 !important;
}

.border {
    border: 1px solid #dee2e6 !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.shadow-sm {
    box-shadow:
        0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.btn {
    display: inline-block;

    padding: 0.375rem 0.75rem;

    border: 1px solid transparent;
    border-radius: 0.375rem;

    background: transparent;

    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;

    user-select: none;
}

.btn-light {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.form-control {
    display: block;

    width: 100%;

    padding: 0.375rem 0.75rem;

    color: #212529;
    background-color: #fff;
    background-clip: padding-box;

    border: 1px solid #ced4da;
    border-radius: 0.375rem;

    outline: 0;

    font: inherit;
    line-height: 1.5;
}

.form-control:focus {
    border-color: #86b7fe;

    outline: 0;

    box-shadow:
        0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.spinner-grow {
    display: inline-block;

    width: 2rem;
    height: 2rem;

    vertical-align: -0.125em;

    background-color: currentColor;

    border-radius: 50%;

    opacity: 0;

    animation: spinner-grow 0.75s linear infinite;
}

.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}

@keyframes spinner-grow {
    0% {
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: none;
    }
}

.tracking-wide {
    letter-spacing: 0.05em !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin: 2rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-4 {
    padding-ttop: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 720px) {

    .ss-latest-card,
    .latest-draw-container {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .ss-latest-side,
    .latest-draw-info {
        align-items: center;

        width: 100%;

        padding: 0 0 12px !important;

        text-align: center !important;

        border-right: none !important;
        border-bottom: 1px dashed #e5e7eb;
    }

    .ss-latest-nums {
        justify-content: center;
    }
}

@media (max-width: 640px) {

    .ss-page {
        padding: 24px 8px 48px;
    }

    .ss-container {
        max-width: 100% !important;
        padding-left: 8px;
        padding-right: 8px;
    }

    .ss-title,
    .animated-npl1-title,
    .brand-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .ss-table thead th,
    .table-custom th {
        padding: 14px 6px;
        letter-spacing: 3px;
        font-size: 0.75rem;
    }

    .ss-table tbody td,
    .table-custom td {
        padding: 12px 6px;
        font-size: 1.2rem;
    }

    .ss-col-time {
        font-size: 0.85rem !important;
    }

    .ss-num {
        font-size: 1.2rem !important;
    }

    .ss-sub {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .ss-latest-num,
    .val-card {
        min-width: 68px;
        width: 68px;
        height: 68px;
        padding: 8px 14px;
    }

    .ss-latest-num-value,
    .val-number {
        font-size: 1.6rem !important;
    }

    .super-number-counter {
        font-size: 80px;
    }
}

@media (max-width: 576px) {

    .animated-npl1-title {
        font-size: 38px;
    }

    .super-number-counter {
        font-size: 80px;
    }

    .latest-draw-info {
        border-right: none;
        padding-right: 0;
        text-align: center;
    }
}

@media (min-width: 768px) {

    .p-md-5 {
        padding: 3rem !important;
    }

    .gap-sm-3 {
        gap: 1rem !important;
    }
}

.badge.bg-dark.text-uppercase {
    color: #fff !important;
}

.badge.bg-dark {
    color: #fff !important;
}

/* ================================================================
   REFERENCE COLOR OVERRIDES — LEFT / RIGHT HERO BLOBS ONLY
   Keeps the existing layout and animation unchanged.
   ================================================================ */

.hero-blob.b1 {
    background: #f3b6bb;
    opacity: 0.50;
}

.hero-blob.b2 {
    background: #9fd9cf;
    opacity: 0.50;
}

/* ================================================================
   SUPER DRAW — RED / YELLOW / GREEN ANIMATED BORDER ONLY
   ================================================================ */

#superDrawView {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background: #ffffff;

    border: 3px solid transparent;
    border-radius: 14px;

    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(
            90deg,
            #dc2626 0%,
            #ff3b30 18%,
            #ffd000 38%,
            #fff200 50%,
            #7cff00 68%,
            #00b85a 82%,
            #dc2626 100%
        );

    background-origin: border-box;
    background-clip: padding-box, border-box;

    background-size:
        100% 100%,
        300% 100%;

    animation: super-draw-border 7s linear infinite;
}

@keyframes super-draw-border {
    0% {
        background-position: 0 0, 0% 50%;
    }

    50% {
        background-position: 0 0, 100% 50%;
    }

    100% {
        background-position: 0 0, 0% 50%;
    }
}



@media (max-width: 576px) {
    #latestDrawCard {
        justify-content: center !important;
    }

    #latestDrawCard .latest-draw-info {
        width: 100%;
        text-align: center;
    }

    #latestDrawCard > div:last-child {
        width: 100%;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {

    /* Main glass card */
    .glass-card {
        padding: 9px 0px 20px !important
        margin-bottom: 16px !important;
    }

    /* NPL1 title */
    .glass-card .animated-npl1-title {
        font-size: 32px;
        margin-bottom: 4px !important;
    }

    /* Badge spacing */
    .glass-card .mb-3 {
        margin-bottom: 10px !important;
    }

    /* Live timestamp */
    .glass-card #liveTimestamp {
        font-size: 12px !important;
        line-height: 1.4;
        margin-bottom: 14px !important;
    }

    /* Buttons + date */
    .glass-card .nav-tab-btn,
    .glass-card #datePicker {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Center buttons */
    .glass-card > div:last-child {
        gap: 8px !important;
    }

    /* Date picker */
    .glass-card #datePicker {
        width: auto !important;
        min-width: 130px;
    }
}

/* Normal table rows */
.table-custom tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Mouse hover */
.table-custom tbody tr:hover {
    background-color: #F9FAFB !important;
}

/* Hover par text colors thode strong */
.table-custom tbody tr:hover td {
    background-color: transparent !important;
}