/* kTripz Custom Alert System - Total Responsive High-Fidelity Design */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");

.kt-alert-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
    z-index: 999999; display: flex; align-items: flex-end; justify-content: center; 
    padding: 0; opacity: 0; visibility: hidden; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .kt-alert-overlay { align-items: center; padding: 24px; }
}

.kt-alert-overlay.active { opacity: 1; visibility: visible; }

.kt-alert-modal { 
    background: #ffffff; width: 100%; max-width: 480px; border-radius: 32px 32px 0 0; 
    padding: 32px 24px 48px; text-align: center; 
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1); 
    transform: translateY(100%); 
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); 
    font-family: "Outfit", sans-serif; 
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .kt-alert-modal { 
        border-radius: 32px; 
        padding: 48px 32px; 
        transform: scale(0.9) translateY(30px); 
        box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    }
}

.kt-alert-overlay.active .kt-alert-modal { transform: translateY(0); }
@media (min-width: 768px) {
    .kt-alert-overlay.active .kt-alert-modal { transform: scale(1) translateY(0); }
}

/* Drag Handle for Mobile */
.kt-alert-modal::before {
    content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 5px; background: #e2e8f0; border-radius: 10px;
}
@media (min-width: 768px) { .kt-alert-modal::before { display: none; } }

@keyframes kt-pop-in {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes kt-pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.kt-alert-icon { 
    width: 72px; height: 72px; margin: 0 auto 24px; 
    border-radius: 24px; display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2;
}

.kt-alert-success .kt-alert-icon { 
    background: #F59E0B; color: #ffffff;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    animation: kt-pop-in 0.5s both, kt-pulse-glow 2s infinite;
}

.kt-alert-error .kt-alert-icon { 
    background: #EF4444; color: #ffffff;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
    animation: kt-pop-in 0.5s both;
}

.kt-alert-warning .kt-alert-icon { 
    background: #F59E0B; color: #ffffff;
    animation: kt-pop-in 0.5s both;
}

.kt-alert-message { 
    font-size: 18px; font-weight: 700; color: #0F172A; 
    line-height: 1.4; margin-bottom: 32px;
    letter-spacing: -0.3px;
}

.kt-alert-actions { display: flex; gap: 12px; width: 100%; }
.kt-alert-btn { 
    flex: 1; padding: 18px; border-radius: 20px; 
    border: none; font-size: 15px; font-weight: 800; 
    cursor: pointer; transition: all 0.3s ease; 
    background: #0F172A; color: #ffffff;
    letter-spacing: 0.5px; text-transform: uppercase;
}

.kt-alert-btn:hover { background: #1e293b; transform: translateY(-2px); }
.kt-alert-btn:active { transform: scale(0.96); }

.kt-alert-btn.secondary { 
    background: #f1f5f9; color: #64748B; border: 1.5px solid #e2e8f0; 
}
.kt-alert-btn.secondary:hover { background: #e2e8f0; color: #0F172A; }

.kt-alert-warning .kt-alert-btn:not(.secondary) { 
    background: #F59E0B; box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}
.kt-alert-warning .kt-alert-btn:not(.secondary):hover { background: #d97706; }
