@import url(../css/color.css);
@import url(../css/default.css);
@import url(../css/component.css);
@import url(../css/responsive.css);

/* Official Premium Styles */
:root {
    /* Brand Colors */
    --navy-dark: #020420;
    /* Deepest Void Navy */
    --navy-card: rgba(15, 23, 42, 0.65);
    /* Glassy Navy */
    --official-white: #F1FAEE;
    --official-red: #fdc920;
    /* Vibrant Red */
    --official-blue: #1D3557;
    /* Official Blue */

    /* Elegance Palette */
    --platinum: #eaeaea;
    --platinum-shadow: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Lighting */
    --god-ray: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);

    /* Fonts */
    --font-bebas: 'Bebas Neue', cursive;
    --font-inter: 'Inter', sans-serif;
}

body {
    background-color: var(--navy-dark);
    /* Multi-layered background: Noise + Vignette + Deep Gradient */
    background-image: radial-gradient(circle at 50% 0%, rgb(90 81 0 / 30%) 0%, transparent 60%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 10px), linear-gradient(180deg, #1c1600 0%, #2a250f 100%);
    color: var(--platinum);
    font-family: var(--font-inter);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography Utilities */
.font-bebas {
    font-family: var(--font-bebas);
    letter-spacing: 2px;
    /* Cinematic spacing */
}

.font-inter {
    font-family: var(--font-inter);
}

.text-official-red {
    color: var(--official-red) !important;
}

.text-official-blue {
    color: var(--official-blue) !important;
}

.text-silver {
    color: var(--silver-dim) !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.text-shadow-lg {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.official-nav {
    background: rgba(2, 4, 32, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-link {
    color: #fff !important;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--official-red) !important;
}

.btn-premium-red {
    background: linear-gradient(135deg, #ff5f6d 0%, #d6333e 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: transform 0.2s;
}

.btn-premium-red:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* Grand Stage Hero */
.grand-stage {
    min-height: 65vh;
    padding-top: 50px;
    position: relative;
    /* Clean backdrop to let body texture shine */
    background: url('../images/bg.png') no-repeat center center/cover !important;
}

.spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgb(98 86 0 / 60%), #282200);
    pointer-events: none;
}

.hero-card {
    background: var(--navy-card);
    backdrop-filter: blur(20px);
    /* Deep Glass */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px var(--glass-highlight);
    /* Platinum Edge */
    border-radius: 12px;
    max-width: 100%;
    /* Fluid for new layout */
}

/* Countdown */
.timer-unit {
    text-align: center;
    min-width: 80px;
}

.timer-unit .value {
    font-size: 4rem;
    line-height: 1;
    color: #fff;
    display: block;
}

.timer-unit .label {
    font-size: 0.75rem;
    color: var(--silver-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.timer-sep {
    font-size: 3rem;
    color: var(--official-red);
    line-height: 1;
    margin: 0 10px;
    opacity: 0.8;
}

/* Premium Cards */
.bg-navy-darker {
    background-color: #0b1120;
}

.premium-card {
    background-color: var(--navy-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.border-top-red {
    border-top: 4px solid var(--official-red);
}

.border-top-blue {
    border-top: 4px solid var(--official-blue);
}

.border-top-white {
    border-top: 4px solid var(--official-white);
}

.premium-border {
    background-color: var(--navy-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

/* 3D Realistic Balls */
.ball-container {
    gap: 10px;
}

.ball-container-small {
    gap: 5px;
}

.ball-3d .prize-digit,
.ball-3d-small .prize-digit {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-inter);
    font-weight: 700;
    color: #333;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset -2px -5px 10px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.6), inset 0 0 4px rgba(0, 0, 0, 0.795);
}

/* Large Balls */
.ball-3d .prize-digit {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 5px;
}

/* Small Balls */
.ball-3d-small .prize-digit {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin: 2px;
}

/* Ball Colors (Plastic Texture) */
.ball-3d.red .prize-digit,
.ball-3d-small.red .prize-digit {
    background: radial-gradient(circle at 30% 30%, #ff2133, #990c18);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ball-3d.blue .prize-digit,
.ball-3d-small.blue .prize-digit {
    background: radial-gradient(circle at 30% 30%, #094bff, #01268b);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ball-3d.white .prize-digit,
.ball-3d-small.white .prize-digit {
    background: radial-gradient(circle at 30% 30%, #ffffff, #89898a);
    color: #111;
}

/* Table */
.official-table {
    background: transparent;
}

.official-table th {
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.official-table td {
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.05);
}

.official-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Other */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
}

.opacity-50 {
    opacity: 0.5;
}

footer {
    background: #020420;
}

.display-4 {
    border: 0;
}


.balls-stage-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    padding: 20px 0;
    /* Mirror Reflection */
    -webkit-box-reflect: below 10px linear-gradient(transparent, rgba(0, 0, 0, 0.2));
}

.sphere-ball {
    margin-inline: 15px;
}
.sphere-ball .prize-digit {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffffff;

    /* Premium Red Sphere Gradient (High Gloss) */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(230, 0, 0, 0.8) 10%, rgba(150, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 95%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);

    animation: pulseGlow 4s infinite alternate;
}

.sphere-ball .prize-digit::before {
    /* Specular highlight */
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 25%;
    height: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(2px);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    }

    100% {
        box-shadow: 0 15px 35px rgba(230, 0, 0, 0.5);
    }
}

.sec-prizes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 1000px;
}

.prize-panel {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    text-align: center;
}

.panel-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 20px;
}

.sec-balls-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.small-sphere {
    margin-inline: 10px;
}
.small-sphere .prize-digit {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #131313;
    text-shadow: 0 1px 2px #000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    /* Blue Metallic */
    background: radial-gradient(circle at 30% 30%, #ffddaa 0%, #cc8500 40%, #332300 95%);
}

.small-sphere .prize-digit::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 25%;
    height: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    filter: blur(1px);
}

.history-flow {
    max-width: 1200px;
    width: 100%;
}

.flow-header {
    border-left: 4px solid #fdc920;
    padding-left: 20px;
    margin-bottom: 40px;
}

.flow-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 900;
    /* Silver Foil Effect */
    background: linear-gradient(to bottom, #e6e6e6 22%, #777045 24%, #e6e6e6 26%, #e6e6e6 27%, #ffffff 40%, #9e9e9e 78%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 0 #000);
}

.history-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hist-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.hist-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}

.hist-date {
    font-size: 0.75rem;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
}

.hist-balls {
    display: flex;
    gap: 15px;
}

.micro-sphere .prize-digit {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    /* Red High Gloss */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(230, 0, 0, 0.8) 10%, rgba(150, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 95%);
}

.grand-footer {
    background: #160f00;
    /* Dark Green Background */
    border-top: 4px solid #b8860b;
    padding: 40px 0;
    margin-top: auto;
    color: #ddd;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-brand img {
    height: 50px;
}

.footer-seal {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 8px 15px;
    border-radius: 6px;
    text-transform: uppercase;
    background: transparent;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.pay-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 2px;
}

.footer-payments i {
    font-size: 2rem;
    color: #dabc7c;
    transition: 0.3s;
}

.footer-payments i:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.1);
}

.footer-legal {
    font-size: 0.9rem;
    text-align: right;
    font-weight: 500;
    color: #dabc7c;
    line-height: 1.6;
}

@media (max-width: 993px) {
    .display-1 {
        font-size: 4rem;
    }

    .ball-3d-small .prize-digit {
        width: 25px;
        height: 25px;
        font-size: 1rem;
        margin: 2px;
    }

    .sphere-ball {
        margin-inline: 5px;
    }
    .sphere-ball .prize-digit {
        width: 55px;
        height: 55px;
        font-size: 2.2rem;
    }

    .sec-prizes-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 30px;
    }

    .small-sphere .prize-digit {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }

    .prize-panel {
        padding: 20px 10px;
    }

    .history-grid-modern {
        grid-template-columns: 1fr;
    }
}
