/* =========================================
   1. GLOBAL LAYOUT & STRUCTURE
   ========================================= */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer {
    flex-shrink: 0;
    padding: 15px;
    text-align: center;
    font-size: 11px;
    color: white;
}

.logo-img {
    height: 50px;
    width: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
}

/* =========================================
   2. HEADER BUTTONS (PRIZE & HELP)
   ========================================= */
.prize-list-btn,
.help-btn,
.rules-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 30px;
}

.prize-list-btn:hover,
.help-btn:hover,
.rules-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   3. INPUTS & CONTROLS
   ========================================= */
.input-group {
    display: flex;
    margin-bottom: 10px;
}

input[type="text"] {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    color: white;
    outline: none;
    font-size: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

#voucherCode {
    flex-grow: 1;
    border-radius: 50px 0 0 50px;
    border-right: none;
    padding-left: 20px;
}

#voucherCode:disabled {
    background-color: rgba(0, 0, 0, 0.3);
}

#checkBtn {
    border: none;
    background: var(--check-btn-bg);
    color: white;
    padding: 0 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

#checkBtn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

input.modal-inp {
    background: #f9f9f9;
    color: #333;
    border: 1px solid #ccc;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    text-align: left;
}

input.modal-inp::placeholder {
    color: #999;
}

.modal-inp::placeholder {
    color: #888;
    opacity: 1;
}

/* =========================================
   4. MODAL SYSTEM (GENERAL)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal.active {
    display: flex;
}

.modal-box {
    background: var(--modal-bg-color);
    width: 85%;
    max-width: 320px;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 3px solid var(--modal-border-color);
    animation: pop 0.4s;
    color: #333;
}

@keyframes pop {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

/* =========================================
   5. WIN MODAL ELEMENTS
   ========================================= */
.win-icon {
    font-size: 40px;
    margin-bottom: 5px;
    line-height: 1;
}

.win-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.win-subtitle {
    color: #555;
    font-size: 12px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.win-display {
    background: var(--modal-display-bg);
    color: var(--modal-display-text);
    padding: 12px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: bold;
    border: 2px dashed var(--modal-border-color);
    font-size: 1.1rem;
}

.btn-claim {
    background: var(--modal-btn-bg);
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    color: var(--modal-btn-text);
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}

.win-close-btn {
    margin-top: 15px;
    font-size: 11px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.win-close-btn:hover {
    color: #666;
}

/* =========================================
   6. PRIZE LIST MODAL OVERLAY
   ========================================= */
.prize-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.prize-modal-overlay.show {
    display: flex;
}

.prize-modal-content {
    background: white;
    color: #333;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    animation: pop 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prize-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

.close-prize-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #ff0000;
    cursor: pointer;
    line-height: 1;
}

.prize-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 20px;
    text-align: left;
}

.prize-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.prize-list li::before {
    content: '🎁';
    margin-right: 10px;
}

.prize-list li.empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 20px 0;
    border: none;
}

/* =========================================
   7. UTILITIES
   ========================================= */
.swal2-container {
    z-index: 99999 !important;
}

.info {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
    font-weight: 600;
    text-shadow: 0 1px 2px black;
        text-align: center;

}