/* ============================================
   Dialog Overlay & Container
   ============================================ */

.bonus-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.bonus-dialog-overlay.active {
    display: flex;
}

.bonus-dialog {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.4s ease-out;
    border: 2px solid #FFD700;
}

/* ============================================
   Dialog Header
   ============================================ */

.bonus-dialog-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 25px;
    text-align: center;
    position: relative;
    border-radius: 18px 18px 0 0;
}

.bonus-dialog-header::before {
    content: '🎁';
    font-size: 50px;
    display: block;
    animation: bounce 1s ease-in-out infinite;
}

.bonus-dialog-header h2 {
    margin: 10px 0 5px 0;
    color: #1a1a2e;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.bonus-dialog-header p {
    margin: 0;
    color: #1a1a2e;
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   Dialog Body
   ============================================ */

.bonus-dialog-body {
    padding: 30px;
    color: #fff;
}

/* ============================================
   Bonus Information Section
   ============================================ */

.bonus-info-section {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.bonus-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bonus-info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.bonus-info-label {
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
}

.bonus-info-value {
    color: #FFD700;
    font-size: 16px;
    font-weight: bold;
}

.bonus-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Terms & Conditions
   ============================================ */

.bonus-terms {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
}

.bonus-terms h4 {
    color: #FFD700;
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.bonus-terms ul {
    margin: 0;
    padding-left: 20px;
}

.bonus-terms li {
    margin-bottom: 5px;
}

.bonus-terms li:last-child {
    margin-bottom: 0;
}

/* ============================================
   Action Buttons
   ============================================ */

.bonus-dialog-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.bonus-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bonus-btn-accept {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

.bonus-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.5);
}

.bonus-btn-reject {
    background: linear-gradient(135deg, #d63031 0%, #e17055 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(214, 48, 49, 0.4);
}

.bonus-btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 48, 49, 0.5);
}

.bonus-btn:active {
    transform: translateY(0);
}

.bonus-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   No Bonus Message
   ============================================ */

.no-bonus-message {
    text-align: center;
    padding: 30px;
    color: #ccc;
}

.no-bonus-message h3 {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 20px;
}

.no-bonus-message p {
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================
   Loading Spinner
   ============================================ */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 600px) {
    .bonus-dialog {
        width: 95%;
        max-width: none;
    }

    .bonus-dialog-header h2 {
        font-size: 24px;
    }

    .bonus-dialog-body {
        padding: 20px;
    }

    .bonus-btn {
        padding: 12px;
        font-size: 14px;
    }

    .bonus-dialog-actions {
        flex-direction: column;
    }

    .bonus-btn {
        width: 100%;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.bonus-dialog:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

.bonus-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bonus-dialog {
        border-width: 3px;
    }

    .bonus-info-label,
    .bonus-terms {
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bonus-dialog-overlay,
    .bonus-dialog,
    .bonus-dialog-header::before,
    .bonus-btn {
        animation: none;
        transition: none;
    }
}
