.site-body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: #f0f0f0; /* Màu nền mặc định cho toàn trang (tùy chọn) */
}

.tg-video-area {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    background: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* hoặc fixed nếu muốn parallax */
}

/* Thêm overlay màu nếu muốn giữ hiệu ứng mờ */
.tg-video-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(102, 126, 234, 0.7); */
    z-index: 1;
}

.tg-video-area > * {
    position: relative;
    z-index: 2;
}

/* ===== HEADER TEXT STYLES ===== */
.tg-video-content {
    position: relative;
    z-index: 2;
}

.tg-section-title .sub-title {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    animation: fadeInDown 0.8s ease;
}

.tg-section-title .title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.info-one, .info-two {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease;
}

/* ===== INPUT & BUTTON STYLES ===== */
.input-group-custom {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 550px;
    margin: 0 auto 20px;
    animation: fadeInUp 1.2s ease;
}

.input-group-custom input {
    flex: 1;
}

#codeInput, #phoneInput {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 15px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 150px;
}

#codeInput:focus, #phoneInput:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

#codeInput::placeholder, #phoneInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn.btn-primary.spin-btn {
    text-align: center;
    padding: 12px 25px;
    min-width: 140px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn.btn-primary.spin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(245, 87, 108, 0.6);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.btn.btn-primary.spin-btn:active {
    transform: translateY(-1px);
}

.btn.btn-primary.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== WHEEL STYLES ===== */
.tg-video-area .main-wheel {
    position: relative;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 0;
    width: 500px;
    height: 500px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 0 15px rgba(255, 255, 255, 0.1),
        0 0 0 30px rgba(255, 255, 255, 0.05);
}

.tg-video-area .icon-arrow {
    width: 80px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.tg-video-area .wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
    transition: transform 7s cubic-bezier(0.075, 0.82, 0.165, 1);
    will-change: transform;
    list-style: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.tg-video-area li {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    transform-origin: 0% 100%;
    overflow: hidden;
}

/* Segment content container */
.segment-content {
    position: absolute;
    left: -100%;
    top: 0;
    height: 200%;
    width: 200%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20%;
}

/* Prize image on wheel */
.prize-image-wheel {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-top: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.tg-video-area .text-item {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding: 0 5px;
    line-height: 1.2;
    max-width: 90%;
    word-wrap: break-word;
    white-space: normal; /* Cho phép xuống dòng */
}

/* ===== PRIZES SECTION ===== */
/* .prizes-section {
    background: rgba(102, 126, 234, 0.85);
    padding: 60px 20px;
    position: relative;
} */

.prizes-section {
    position: relative;
    padding: 60px 20px;
    overflow: hidden; /* để lớp blur không tràn ra ngoài */
}

.prizes-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/pattern_tet.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(3px);        /* mức độ blur */
    opacity: 0.7;             /* mức độ mờ */
    z-index: 1;
    transform: scale(1.1);    /* để tránh lộ viền do blur */
}

.prizes-section > * {
    position: relative;
    z-index: 2; /* để text nằm trên overlay */
}



.prizes-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.prize-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.prize-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.prize-card.out-of-stock {
    opacity: 0.6;
    filter: grayscale(50%);
}

.prize-image-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
}

.prize-display-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.prize-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-quantity {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
}

.loading, .no-prizes {
    grid-column: 1 / -1;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    padding: 40px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
    position: relative;
}

.spinner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 100px;
    height: 100px;
    border-top-color: rgba(255, 255, 255, 0.6);
    animation-duration: 2s;
}

.spinner-ring:nth-child(3) {
    width: 120px;
    height: 120px;
    border-top-color: rgba(255, 255, 255, 0.3);
    animation-duration: 2.5s;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading-text {
    margin-top: 140px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .prizes-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .tg-section-title .title {
        font-size: 2rem;
    }
    
    .tg-video-area .main-wheel {
        width: 400px;
        height: 400px;
    }
    
    .prize-image-wheel {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .input-group-custom {
        flex-direction: column;
        gap: 10px;
        max-width: 90%;
    }
    
    #codeInput, #phoneInput, .btn.btn-primary.spin-btn {
        width: 100%;
    }
    
    .prizes-grid {
        grid-template-columns: 1fr;
    }
    
    .prizes-title {
        font-size: 1.8rem;
    }
    
    .tg-video-area .main-wheel {
        width: 350px;
        height: 350px;
    }
    
    .tg-section-title .title {
        font-size: 1.8rem;
    }
    
    .prize-image-wheel {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 414px) {
    .tg-video-area .main-wheel {
        width: 320px;
        height: 320px;
    }
    
    .tg-video-area .icon-arrow {
        width: 60px;
        top: -15px;
    }
    
    .prize-image-wheel {
        width: 50px;
        height: 50px;
    }
}

/* Dim out-of-stock segments */
.out-of-stock-segment {
    opacity: 0.5;
    filter: grayscale(60%);
}

.out-of-stock-segment .text-item {
    text-decoration: line-through;
    opacity: 0.7;
}

