﻿/* ==========================================
   1. GIAO DIỆN HÒA CHUNG HEADER & BODY
   ========================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #ff3d00;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 160px), url('/images/bg-astemo-label.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #1a1d20;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================
   2. HEADER TRONG SUỐT & SLOGAN PNG XUYÊN THẤU
   ========================================== */
.main-header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 234, 0, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1030;
    overflow: visible !important;
}

.slogan-absolute-box {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1090;
    background: transparent !important;
}

.slogan-hero-img {
    display: block;
    width: auto;
    max-width: 800px;
    height: auto;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

@media (max-width: 768px) {
    .slogan-hero-img {
        width: calc(100% - 50px);
        max-width: 100%;
        height: auto;
    }
}

.navbar-toggler,
.navbar-collapse {
    z-index: 9999;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff !important;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
}

    .navbar-nav .nav-link:hover {
        color: #ffea00 !important;
        transform: translateY(-2px) scale(1.05);
    }

/* ==========================================
   3. HERO SECTION & PHÔNG TIÊU ĐỀ
   ========================================== */
.hero-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.main-title {
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 10px #ff1744, 0 0 20px #ff9100, 0 0 30px #ffea00, 0 4px 10px rgba(0, 0, 0, 0.7);
}

.text-glow {
    color: #ffea00;
    text-shadow: 0 0 15px #ffea00, 0 0 30px #ff3d00;
}

.custom-alert {
    background: rgba(255, 255, 255, 0.96);
    border: 3px solid #ff9100;
    color: #111827;
    box-shadow: 0 0 20px rgba(255, 145, 0, 0.5);
}

/* ==========================================
   * HIỆU ỨNG MÃ QUAY THƯỞNG CHÁY LÊN (KHÔNG BORDER, KHÔNG BG)
   ========================================== */
.fiery-code-display {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.fiery-code-text {
    color: #ffea00;
    text-shadow: 0 0 10px #ff4500, 0 0 20px #ff0000, 0 0 30px #ffea00, 0 0 40px #ff8c00;
    animation: fieryTextBurn 1.5s infinite alternate ease-in-out;
}

@keyframes fieryTextBurn {
    0% {
        text-shadow: 0 0 8px #ff4500, 0 0 15px #ff0000, 0 0 25px #ffea00;
        transform: scale(1);
    }

    100% {
        text-shadow: 0 0 18px #ffea00, 0 0 30px #ff4500, 0 0 42px #ff0000, 0 0 55px #ff8c00;
        transform: scale(1.04);
    }
}

/* ==========================================
   4. VÒNG QUAY CANVAS & KIM QUAY
   ========================================== */
.wheel-stage {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border-radius: 50%;
    z-index: 2;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
}

.wheel-pointer-vip {
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    width: 52px;
    height: 44px;
    z-index: 30;
}

    .wheel-pointer-vip::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(135deg, #ffffff 0%, #ffea00 100%);
        clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
    }

    .wheel-pointer-vip::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
        filter: drop-shadow(0px 5px 6px rgba(0, 0, 0, 0.4));
    }

/* ==========================================
   5. GLASS CARD & NÚT BẤM & INPUT CHÁY RỰC LỬA
   ========================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 3px solid #ffea00;
    box-shadow: 0 15px 35px rgba(213, 0, 0, 0.35), inset 0 0 15px rgba(255, 234, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

    .glass-card:hover {
        border-color: #ff1744;
    }

.product-display-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-display-card img {
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        max-width: 100%;
    }

.custom-input {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid #ff4500 !important;
    color: #111827 !important;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(255, 69, 0, 0.7), 0 0 20px rgba(255, 140, 0, 0.5), inset 0 0 8px rgba(255, 220, 0, 0.4);
    animation: fieryInputGlow 1.8s infinite alternate ease-in-out;
    transition: all 0.3s ease;
}

    .custom-input:focus {
        border-color: #ffea00 !important;
        background: #ffffff !important;
        box-shadow: 0 0 20px rgba(255, 234, 0, 0.9), 0 0 35px rgba(255, 69, 0, 0.9), inset 0 0 12px rgba(255, 140, 0, 0.8) !important;
        outline: none;
    }

@keyframes fieryInputGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 69, 0, 0.6), 0 0 18px rgba(255, 140, 0, 0.4), inset 0 0 6px rgba(255, 220, 0, 0.3);
        border-color: #ff4500;
    }

    50% {
        box-shadow: 0 0 18px rgba(255, 140, 0, 0.85), 0 0 28px rgba(255, 69, 0, 0.7), inset 0 0 10px rgba(255, 234, 0, 0.6);
        border-color: #ff9100;
    }

    100% {
        box-shadow: 0 0 14px rgba(255, 69, 0, 0.7), 0 0 22px rgba(255, 140, 0, 0.5), inset 0 0 8px rgba(255, 220, 0, 0.4);
        border-color: #ff4500;
    }
}

.custom-chk:checked {
    background-color: #ff1744;
    border-color: #ffea00;
}

.btn-spin-vip {
    background: linear-gradient(135deg, #ffea00 0%, #ff9100 40%, #ff1744 100%);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    border: 3px solid #ffffff;
    border-radius: 50px;
    padding: 16px 20px;
    font-weight: 900;
    letter-spacing: 1.5px;
    animation: flamePulse 1.8s infinite alternate;
    transition: all 0.3s ease;
}

@keyframes flamePulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 234, 0, 0.8), 0 0 30px rgba(255, 23, 68, 0.6);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 25px rgba(255, 234, 0, 1), 0 0 50px rgba(255, 23, 68, 0.9);
        transform: scale(1.03);
    }
}

.btn-spin-vip:hover {
    transform: translateY(-3px) scale(1.05);
    color: #ffffff;
}

/* ==========================================
   6. THỂ LỆ & DANH SÁCH TRÚNG THƯỞNG
   ========================================== */
.rules-section, .results-section {
    background: rgba(255, 248, 225, 0.92);
    backdrop-filter: blur(10px);
    border-top: 3px solid #ffea00;
    border-bottom: 3px solid #ffea00;
}

.rule-card {
    background: #ffffff;
    border: 2px solid #ffb300;
    box-shadow: 0 8px 25px rgba(213, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

    .rule-card:hover {
        transform: translateY(-6px);
        border-color: #ff1744;
    }

    .rule-card .text-danger {
        font-size: 20px !important;
        margin-left: 5px;
    }

    .badge-prize-gold {
        background: linear-gradient(135deg, #ffea00 0%, #ff9100 50%, #ff1744 100%);
        color: #ffffff;
        font-weight: 800;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
        box-shadow: 0 3px 10px rgba(255, 145, 0, 0.5);
    }

/* ==========================================
   7. MODAL THÔNG BÁO
   ========================================== */
.glass-modal {
    background: rgba(255, 255, 255, 0.98);
    border: 4px solid #ffea00;
    box-shadow: 0 0 60px rgba(255, 23, 68, 0.6);
    border-radius: 24px;
}

.trophy-icon {
    font-size: 85px;
    animation: fireBounce 0.8s infinite alternate ease-in-out;
}

@keyframes fireBounce {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-18px) scale(1.1);
    }
}

@media (max-width: 576px) {
    .wheel-pointer-vip {
        width: 40px;
        height: 34px;
        right: -8px;
    }
}

/* ==========================================
   8. BANNER TRANG CHỦ
   ========================================== */
.banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-banner-img {
    max-width: 750px;
    width: 80%;
    height: auto;
    display: block;
    border-radius: 12px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

    .main-banner-img:hover {
        transform: scale(1.01);
    }

.banner-container + .text-start {
    margin-top: -20px;
}

/* ==========================================
   9. HIỆU ỨNG LỬA CHÁY VÒNG QUAY
   ========================================== */
.wheel-fire-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 8px;
}

    .wheel-fire-container::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 48% 52% 42% 58% / 55% 45% 55% 45%;
        background: linear-gradient(0deg, rgba(255, 69, 0, 0.95), rgba(255, 140, 0, 0.85), rgba(255, 220, 0, 0.9));
        filter: blur(6px);
        z-index: -1;
        mix-blend-mode: screen;
        animation: flameCoreMorph 1.1s ease-in-out infinite alternate;
    }

@keyframes flameCoreMorph {
    0% {
        transform: scale(1) translateY(1px) rotate(-1deg);
        border-radius: 48% 52% 42% 58% / 55% 45% 55% 45%;
        filter: blur(5px) brightness(1);
    }

    50% {
        transform: scale(1.015) translateY(-2px) rotate(1deg);
        border-radius: 55% 45% 48% 52% / 48% 52% 42% 58%;
        filter: blur(7px) brightness(1.2);
    }

    100% {
        transform: scale(1.01) translateY(-1px) rotate(-1deg);
        border-radius: 45% 55% 55% 45% / 52% 48% 58% 42%;
        filter: blur(6px) brightness(1.1);
    }
}

input:disabled,
button:disabled,
.form-check-input:disabled {
    pointer-events: none;
}
