/* ============================================
   First-Time Buyer Warning Modal (Premium Style)
   ============================================ */

.warning-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(14px) !important;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.warning-modal {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 32px;
    border: 1px solid var(--card-border);
    max-width: 540px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.warning-modal::-webkit-scrollbar {
    display: none;
}

[data-theme="light"] .warning-modal {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Header */
.warning-modal-header {
    padding: 40px 40px 20px 40px;
    text-align: center;
}

.warning-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.warning-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

/* Content */
.warning-modal-content {
    padding: 20px 40px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.warning-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    transition: transform 0.2s;
}

[data-theme="light"] .warning-section {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.warning-section-title {
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.section-icon {
    width: 18px;
    height: 18px;
}

.section-icon.success {
    color: #10B981;
}

.section-icon.error {
    color: #EF4444;
}

.section-icon.info {
    color: var(--primary);
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-list li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    /* Softer text */
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

[data-theme="light"] .warning-list li {
    color: #444;
}

.warning-list li strong {
    color: var(--text-main);
    font-weight: 600;
}

[data-theme="light"] .warning-list li strong {
    color: #000;
}

.warning-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.warning-list.success li::before {
    background: #10B981;
}

.warning-list.error li::before {
    background: #EF4444;
}

/* Custom ticks/crosses replacer with just dots or specific SVG logic from JS? 
   The JS injects SVGs into list items if needed? No, JS just adds text.
   So CSS ::before handles bullets. 
*/

/* Footer */
.warning-footer-note {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: normal;
    background: rgba(197, 165, 128, 0.05);
    /* Slight bronze tint bg */
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(197, 165, 128, 0.1);
}

.warning-modal-footer {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.warning-confirm-btn {
    background: var(--primary);
    color: #000;
    /* Bronze standard is black text on gold */
    border: none;
    padding: 16px 40px;
    border-radius: 20px;
    /* Pillow shape */
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    letter-spacing: 0.5px;
    width: 100%;
}

[data-theme="light"] .warning-confirm-btn {
    color: #fff;
    /* White text on light theme bronze */
}

.warning-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(197, 165, 128, 0.4);
    background: #D4B48F;
    /* Lighter bronze on hover */
}

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

/* Mobile */
@media (max-width: 600px) {
    .warning-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
        background: black;
        /* Full black on mobile for performance/focus? Or keep glass */
        background: var(--bg-body);
    }

    .warning-modal-header {
        padding: 60px 24px 20px;
    }

    .warning-modal-content {
        padding: 0 24px;
    }

    .warning-modal-footer {
        padding: 24px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, var(--bg-body) 80%, transparent);
        z-index: 10;
    }

    .warning-modal-content {
        padding-bottom: 100px;
        /* Space for fixed footer */
    }
}