/* ========================================
   DRAGON WHEEL THEME - TERMS MODAL STYLING
   ======================================== */

/* ===== SWAL2 TERMS MODAL CUSTOM STYLING ===== */
.swal2-modal.terms-modal {
    background: linear-gradient(145deg, #2C1810 0%, #1C1C1C 50%, #0D0D0D 100%) !important;
    border: 3px solid #FFD700 !important;
    border-radius: 15px !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.7),
        inset 0 2px 5px rgba(255, 215, 0, 0.2),
        0 0 40px rgba(255, 165, 0, 0.4) !important;
    position: relative;
    overflow: hidden;
}

/* Dragon decorative border for terms modal */
.swal2-modal.terms-modal:before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #FFD700, #FF6B35, #8B0000, #FFD700);
    z-index: -1;
    border-radius: 15px;
    animation: termsBorderGlow 3s ease-in-out infinite;
}

@keyframes termsBorderGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ===== TERMS MODAL HEADER ===== */
.terms-modal .swal2-title {
    font-family: 'Lilita One', cursive !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #FFD700 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #B22222 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.terms-modal .swal2-title:before {
    content: '';
    font-size: 20px;
    margin-right: 10px;
}

.terms-modal .swal2-title:after {
    content: '';
    font-size: 20px;
    margin-left: 10px;
}

/* ===== TERMS CONTENT STYLING ===== */
.terms-modal .swal2-html-container {
    color: #FFE4B5 !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
}

/* Terms border styling */
.terms-border {
    border: 2px solid #FFD700;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.6) 0%, rgba(28, 28, 28, 0.8) 100%);
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.terms-border:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 15px;
    background: linear-gradient(135deg, #2C1810 0%, #1C1C1C 100%);
    padding: 0 10px;
    font-size: 16px;
}

/* Terms title styling */
.terms-title {
    font-family: 'Lilita One', cursive;
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Terms list styling */
.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: terms-counter;
}

.terms-list li {
    counter-increment: terms-counter;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid #FFD700;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.terms-list li:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.terms-list li:before {
    content: counter(terms-counter);
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: #FFD700;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.terms-list li span {
    margin-left: 15px;
    display: block;
}

/* ===== PRIZES TABLE STYLING ===== */
.prizes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #FFD700;
}

.prizes-table-header {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #B22222 100%);
    color: #FFD700;
    padding: 15px;
    font-family: 'Lilita One', cursive;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.prizes-table-header:before {
    content: '';
    margin-right: 10px;
    font-size: 20px;
}

.prizes-table-header:after {
    content: '';
    margin-left: 10px;
    font-size: 20px;
}

.prizes-table tr {
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.prizes-table tr:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.prizes-table td {
    padding: 12px 15px;
    text-align: center;
    color: #FFE4B5;
    font-weight: 500;
    position: relative;
}

.prizes-table td:before {
    content: '';
    margin-right: 8px;
    font-size: 14px;
}

/* ===== PRIZES LEVEL TABLE (3 COLUMNS) ===== */
.prizes-header {
    text-align: center;
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFD700;
}

.prizes-level-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #FFD700;
}

.prizes-level-table thead th {
    padding: 15px 10px;
    font-family: 'Lilita One', cursive;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.prizes-level-table tbody tr {
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.prizes-level-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

.prizes-level-table tbody td {
    padding: 12px 10px;
    text-align: center;
    color: #FFFFFF;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 14px;
}

.prizes-level-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.2);
}

.prizes-level-table tbody td:first-child {
    color: #C0C0C0;
}

.prizes-level-table tbody td:nth-child(2) {
    color: #FFD700;
}

.prizes-level-table tbody td:last-child {
    color: #E5E4E2;
}

/* ===== TERMS CONFIRM BUTTON ===== */
.terms-modal .swal2-confirm {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 50%, #FFD700 100%) !important;
    border: 2px solid #8B0000 !important;
    color: #000 !important;
    font-family: 'Lilita One', cursive !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5) !important;
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.terms-modal .swal2-confirm:hover {
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 50%, #FFFF00 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.4) !important;
}

.terms-modal .swal2-confirm:active {
    transform: translateY(0) !important;
}

/* ===== TERMS CLOSE BUTTON ===== */
.terms-modal .swal2-close {
    color: #FFD700 !important;
    font-size: 30px !important;
    font-weight: bold !important;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%) !important;
    border: 2px solid #FFD700 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 1 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.terms-modal .swal2-close:hover {
    background: linear-gradient(135deg, #DC143C 0%, #FF0000 100%) !important;
    transform: scale(1.1) rotate(90deg) !important;
    color: #FFFF00 !important;
}

/* ===== SCROLLBAR FOR TERMS CONTENT ===== */
.terms-modal .swal2-html-container::-webkit-scrollbar {
    width: 8px;
}

.terms-modal .swal2-html-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.terms-modal .swal2-html-container::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #FFD700, #B8860B);
    border-radius: 4px;
}

.terms-modal .swal2-html-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #FFA500, #DAA520);
}

/* ===== RESPONSIVE DESIGN FOR TERMS ===== */
@media (max-width: 768px) {
    .terms-modal .swal2-title {
        font-size: 20px !important;
        padding: 10px 15px !important;
    }
    
    .terms-modal .swal2-html-container {
        font-size: 13px !important;
        max-height: 50vh !important;
    }
    
    .terms-title {
        font-size: 16px;
    }
    
    .prizes-table-header {
        font-size: 16px;
        padding: 12px;
    }
    
    .prizes-table td {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .terms-modal .swal2-title {
        font-size: 18px !important;
        padding: 8px 12px !important;
    }
    
    .terms-modal .swal2-html-container {
        font-size: 12px !important;
        max-height: 40vh !important;
    }
    
    .terms-modal .swal2-confirm {
        font-size: 16px !important;
        padding: 10px 25px !important;
    }
}