@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('../fonts/BEVIETNAMPRO-LIGHT.TTF') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('../fonts/BEVIETNAMPRO-REGULAR.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('../fonts/BEVIETNAMPRO-SEMIBOLD.TTF') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Trajan Pro 3';
    src: url('../fonts/TRAJANPRO3SEMIBOLD.OTF') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Reset / Clear CSS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 16px — base rem unit, scaled down on small screens via @media in responsive.css */
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Be Vietnam Pro', 'Trajan Pro 3', sans-serif;
    line-height: 1.5;
    color: #fff;
    /* min-height: 100vh; Thay height: 100% bằng min-height: 100vh để body co giãn theo chiều dài nội dung */
    background-color: #0a1c37; /* Fallback màu nền tối khớp với ảnh nền tránh nhấp nháy trắng */
    background-image: url('../images/background-mb-3.webp');
    /* background-size: cover;
    background-position: center top; /* Đặt tâm ảnh ở trên cùng để khớp với bố cục */
    background-repeat: no-repeat;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #fff;
}

.wrapper {
    width: 100%;
    /* min-height: 100vh; */
    padding: 2rem 1rem; /* 40px */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bg-overlay {
    background-image: url('../images/background-overlay.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    /*min-height: calc(100vh - 5rem); /* Dùng min-height để tự co giãn bọc hết form con khi tràn */
    border-radius: 2rem;
    position: relative;
    /* display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center; */
}

.banner {
    padding: 1rem 2rem;
}

.content {
    display: flex;
    align-items: last baseline;
    /* margin-top: 1rem; */
    padding: 0 .5rem;
}

.model-box img {
    width: 11rem;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 2rem); /* Keep a small spacing on very narrow screens */
    margin: 1rem auto; /* Căn giữa và giữ khoảng cách bên ngoài */
    padding: 1.5rem 1rem; /* Giữ khoảng cách lề bên trong như ảnh */
    background-image: url('../images/background-form-mobile.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.35); /* Viền trắng mảnh nhẹ như trong ảnh */
    border-radius: 1.5rem; /* Bo góc mượt mà */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.1);
}

.form h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.input-group {
    width: 100%;
    margin-bottom: .5rem;
}

.input-group input {
    width: 100%;
    padding: .5rem 1.25rem;
    border-radius: 0.25rem;
    border: 2px solid #fff;
    background-color: #fcf1e8; /* Cream/peach background like the image */
    color: #333;
    font-size: 1.5rem; /* Large font size like the image — 1.75rem >= 16px even at min html scale (13px → 22.75px), iOS won't auto-zoom */
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
}

.input-group input::placeholder {
    color: #a0958e; /* Gray placeholder text color */
}

.input-group input:focus {
    outline: none;
    border-color: #bc1f1f;
    background-color: #fff;
}

.checkbox-group {
    width: 100%;
    margin-bottom: 1.2rem;
    text-align: left;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.4;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.15rem;
    min-width: 1.2rem;
    min-height: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #bc1f1f;
    cursor: pointer;
}

.form-note {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    text-align: left;
    width: 100%;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.form-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-submit {
    background-color: #bc1f1f; /* DOJI Red */
    color: #fff;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0.5rem;
    padding: 0.8rem 3rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
    background-color: #92171b;
    transform: translateY(-1px);
}

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

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

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

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

.agree-policy {
    margin-top: 1rem;
}

.ruby-img {
    position: absolute;
    bottom: -5rem;
    right: -2rem;
    width: 16rem;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.banner-desktop {
    display: none;
}

.form-desktop {
    display: none;
}

/* View Gifts Link */
.view-gifts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    cursor: pointer;
    margin-top: 1.25rem;
    line-height: 1;
    text-decoration: underline;
    font-size: 1rem;
}

.view-gifts:hover {
    opacity: 0.85;
}

.view-gifts .icon-gift {
    width: 20px;
    height: auto;
    /* height: 1.25rem; */
    stroke: #fff;
    display: block;
}

.view-gifts .text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Wheel Styles */
.wheel-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}


/* ── Spin Wheel (spin-wheel library) ── */
.spin-wheel-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 63vw;
    height: 63vw;
}

#spin-wheel-container {
    width: 63vw;
    height: 63vw;
    cursor: pointer;
}

/* Control image: căn chính giữa, không xoay */
.wheel-control-center {
    position: absolute;
    top: 47%;
    left: 50.2%;
    transform: translate(-50%, -50%);
    width: 20%;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════
   POPUP: Xem Quà Đã Nhận
   ══════════════════════════════════════════════════ */

/* Overlay — phủ toàn màn hình, click để đóng */
.gifts-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.72);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* Transition mở */
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gifts-overlay.is-open {
    display: flex;
    opacity: 1;
}

/* Card popup — dùng background-popup.png */
.gifts-card {
    position: relative;
    width: 100%;
    /* max-width: 480px; */
    max-width: 80%;
    background-image: url('../images/background-popup.webp');
    background-size: 100% 100%;  /* ép ảnh khớp đúng card, không cắt viền */
    background-repeat: no-repeat;
    /*background-color: #0b1d45;   /* navy fallback khớp màu ảnh */
    border-radius: 1.5rem;
    padding: 2rem;
    /* box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); */
    color: #fff;
    /* Slide-up khi mở */
    transform: translateY(20px);
    transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.gifts-overlay.is-open .gifts-card {
    transform: translateY(0);
}

/* Nút đóng X */
.gifts-close {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.gifts-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Tiêu đề */
.gifts-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.06em;
    /* margin-bottom: 1.25rem; */
    color: #fde68a; /* vàng nhạt */
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Counter "X/8 phẩm chất độc bản" */
.gifts-counter {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

/* ── Loading spinner ── */
.gifts-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.gifts-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fde68a;
    border-radius: 50%;
    animation: gifts-spin 0.75s linear infinite;
}

@keyframes gifts-spin {
    to { transform: rotate(360deg); }
}

/* ── Error message ── */
.gifts-error-msg {
    text-align: center;
    color: #fca5a5;
    font-size: 1.2rem;
    padding: 2rem 0;
    display: none;
}

.gifts-error-msg.is-visible {
    display: block;
}

/* ── Content (ẩn mặc định, hiện sau khi load) ── */
.gifts-content {
    display: none;
}

.gifts-content.is-visible {
    display: block;
}

/* ── Grid 8 phẩm chất ── */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.quality-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.6rem 0.3rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    transition: transform 0.15s ease;
    min-height: 5.5rem;
}

/* Phẩm chất ĐÃ có — highlight */
.quality-item.is-collected {
    background: rgba(253, 230, 138, 0.18);
    border-color: rgba(253, 230, 138, 0.5);
    box-shadow: 0 0 10px rgba(253, 230, 138, 0.15);
}

.quality-item.is-collected:hover {
    transform: translateY(-2px);
}

/* Phẩm chất CHƯA có — làm mờ */
.quality-item.is-locked {
    opacity: 0.35;
    filter: grayscale(60%);
}


/* Tên phẩm chất */
.quality-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    display: block;
}

/* Badge số lần trùng "x3" */
.quality-count {
    font-size: 1rem;
    font-weight: 700;
    color: #fde68a;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    display: block;
}

/* ── Khu vực đổi quà ── */
.gifts-exchange {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.exchange-label {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Wrapper flex chia đôi 2 nút exchange */
.exchange-btns {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
}

/* Nút đổi quà — DISABLED (WIP) */
.btn-exchange {
    flex: 1;
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: not-allowed;
    letter-spacing: 0.03em;
}

.btn-exchange--gold {
    border-color: rgba(253, 230, 138, 0.2);
    color: rgba(253, 230, 138, 0.4);
}

/* Note WIP */
.exchange-wip-note {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    text-align: center;
}

.text-decoration-underline {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   Quà Tích Lũy — #gifts-rewards (thay thế #gifts-exchange)
   ═══════════════════════════════════════════════════════════ */
.gifts-rewards {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rewards-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
}

.rewards-cards {
    display: flex;
    gap: 1.2rem;
}

.reward-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.2rem 0.8rem;
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

/* Đã nhận — gold glow */
.reward-card.is-claimed {
    border-color: #fde68a;
    background: rgba(253, 230, 138, 0.12);
    box-shadow: 0 0 16px rgba(253, 230, 138, 0.25), inset 0 0 8px rgba(253, 230, 138, 0.08);
}

/* Chưa nhận — mờ */
.reward-card.is-locked {
    opacity: 0.38;
    filter: grayscale(55%);
}

.reward-icon {
    font-size: 2.6rem;
    line-height: 1;
}

.reward-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    text-align: center;
}

.reward-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   Spin Result Modal — #spin-result-overlay
   ═══════════════════════════════════════════════════════════ */
.spin-result-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.spin-result-overlay.is-open {
    opacity: 1;
}

/* Card — background ảnh theo orientation */
.spin-result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.4rem 2rem 2rem;
    border-radius: 1.6rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    transform: translateY(24px);
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);

    /* Fallback nếu không có ảnh */
    background-color: #1a0a2e;
    border: 1px solid rgba(253, 230, 138, 0.3);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.spin-result-overlay.is-open .spin-result-card {
    transform: translateY(0);
}

/* Dùng ảnh ngang cho mọi orientation */
.spin-result-card {
    background-image: url('../images/background-popup.webp');
    width: min(80vw, 30rem); /* portrait mobile: ~300px; tablet+: cap at 30rem */
    height: auto;
}

/* Landscape: viewport rộng hơn → card có thể rộng hơn */
@media (orientation: landscape) {
    .spin-result-card {
        width: min(55vw, 36rem);
    }
}

.spin-result-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.03em;
    text-align: center;
}

.spin-result-quality {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.spin-result-name {
    font-size: 1.4rem; /* = .form h3 (mobile) */
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fde68a;
    text-align: center;
    text-shadow: 0 0 20px rgba(253, 230, 138, 0.4);
}

/* Gift notice — chỉ hiện khi đạt mốc */
.spin-result-gift-notice {
    display: none;
    background: rgba(253, 230, 138, 0.1);
    border: 1px solid rgba(253, 230, 138, 0.3);
    border-radius: 0.8rem;
    padding: 1rem 1.4rem;
    max-width: 28rem;
}

.spin-result-gift-notice.is-visible {
    display: block;
}

.spin-result-gift-notice p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: center;
}

/* Nút Tiếp tục — ghost/outline */
.spin-result-btn {
    padding: 0.7rem 2.4rem;
    border-radius: 5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    color: #ffffff;
    font-size: 1.4rem; /* = .btn-submit (mobile) */
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    margin-top: 0.2rem;
}

.spin-result-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    transform: scale(1.04);
}

.spin-result-btn:active {
    transform: scale(0.97);
}

/* Ẩn logo Google reCAPTCHA (Invisible) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* ══════════════════════════════════════════
   Voucher Display Modal
   ══════════════════════════════════════════ */
.voucher-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.voucher-overlay.is-open {
    opacity: 1;
}

.voucher-card {
    position: relative;
    background: url('../images/background-popup.png') no-repeat center center;
    background-size: 100% 100%;
    border: none;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(253, 230, 138, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: min(95vw, 50rem);
}

.voucher-overlay.is-open .voucher-card {
    transform: scale(1) translateY(0);
}

.voucher-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.voucher-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.voucher-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fde68a;
    text-shadow: 0 0 20px rgba(253, 230, 138, 0.4);
    text-align: center;
    margin: 0;
    margin-bottom: 0.5rem;
}

.voucher-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
}

.voucher-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.6;
}

.voucher-qualities-inline {
    color: #fde68a;
    font-style: italic;
    font-weight: 500;
    display: block;
    margin-top: 0.2rem;
}

.voucher-gift-label {
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}

.voucher-gift-box {
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 5rem;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.voucher-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.voucher-list-item:last-child {
    border-bottom: none;
}
.voucher-list-table {
    width: 100%;
    border-collapse: collapse;
}
.voucher-list-table th, .voucher-list-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    vertical-align: middle;
}
.voucher-list-table th {
    font-weight: 700;
    color: #fde68a;
    font-size: 1rem;
    text-transform: uppercase;
}
.voucher-list-table tbody tr:last-child td {
    border-bottom: none;
}
.voucher-list-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fde68a;
    margin: 0;
}
.voucher-list-item-code {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    user-select: all;
    margin: 0;
}
.voucher-list-item-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.voucher-code-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.1em;
    user-select: all;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.voucher-gift-name-bottom {
    font-size: 1.4rem;
    color: #fde68a;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.voucher-note {
    font-size: 1rem;
    color: #fff;
    text-align: center;
    margin-top: 0.5rem;
}

.voucher-conditions {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0;
    text-align: center;
    line-height: 1.5;
    width: 100%;
}

.voucher-conditions p {
    margin: 0.2rem 0;
}

.voucher-conditions.hidden {
    display: none;
}

.voucher-note {
    font-size: 1rem;
    color: #fff;
    text-align: center;
    margin-top: 0.5rem;
}

.voucher-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
}

.voucher-btn {
    min-width: 16rem;
    padding: 1rem 1.5rem;
    border-radius: 5rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voucher-btn-primary {
    background: #C8A96B;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(202, 138, 4, 0.3);
}

.voucher-btn-capture {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    box-shadow: none;
}

.voucher-btn-primary:hover {
    transform: translateY(-2px);
    background: #b47a03;
}

.voucher-btn-capture:hover {
    background: rgba(255, 255, 255, 0.15);
}

.voucher-btn:active {
    transform: translateY(0);
    opacity: 0.9;
}

@media (max-width: 640px) {
    .voucher-card {
        padding: 2.5rem 1.5rem 2rem;
        gap: 1rem;
        width: 92vw;
    }

    .voucher-title {
        font-size: 1.8rem;
    }

    .voucher-desc {
        font-size: 1rem;
    }

    .voucher-gift-box {
        padding: 0.8rem 1.5rem;
    }

    .voucher-code-large {
        font-size: 1.6rem;
    }

    .voucher-gift-name-bottom {
        font-size: 1.2rem;
    }

    .voucher-actions {
        flex-direction: row;
        gap: 1rem;
    }

    .voucher-btn {
        flex: 1;
        min-width: 0;
        padding: 0.8rem 0.5rem;
        font-size: 1.1rem;
    }
}

.spin-result-remaining {
    /* font-size: 1.4rem; */
    color: #a0aec0;
    text-align: center;
    font-weight: 500;
}

.gifts-spins-remaining {
    font-size: 1.3rem;
    color: #a0aec0;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ══════════════════════════════════════════
   Custom Alert Modal Styling
   ══════════════════════════════════════════ */
.alert-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.alert-overlay.is-open {
    display: flex;
    opacity: 1;
}

.alert-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 2rem 2rem;
    border-radius: 1.6rem;
    background-image: url('../images/background-popup.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-color: #1a0a2e;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    width: min(85vw, 32rem);
    height: auto;
    transform: translateY(24px);
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.alert-overlay.is-open .alert-card {
    transform: translateY(0);
}

.alert-content {
    font-size: 1.4rem;
    color: #ffffff;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
}

.alert-btn {
    padding: 0.8rem 3rem;
    border-radius: 5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.alert-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    transform: scale(1.04);
}

.alert-btn:active {
    transform: scale(0.97);
}

