/* Base Styles & CSS Variables */
:root {
    --bg-color: #1a0f12;
    --text-main: #fff1f2;
    --text-muted: #fecdd3;
    --primary: #f43f5e;
    --primary-hover: #e11d48;
    --secondary: #fb923c;
    --glass-bg: rgba(40, 15, 20, 0.7);
    --glass-border: rgba(244, 63, 94, 0.15);
    --mpesa-green: #25D366; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; animation: float 10s infinite alternate; }
.shape-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -150px; right: -100px; animation: float 12s infinite alternate-reverse; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* App Dashboard Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(26, 15, 18, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
}
.sidebar .logo span {
    color: var(--secondary);
}

.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-link {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.nav-link:hover {
    background: rgba(244, 63, 94, 0.1);
    color: var(--primary);
}
.nav-link.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
}

.btn-outline {
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    transition: 0.3s;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary); }

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px; /* offset for sidebar */
    padding: 50px;
    max-width: 1000px;
}

.hero { margin-bottom: 40px; }
.hero h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 10px; }
.text-gradient { background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-muted); font-size: 1.1rem; }

/* Generator Card */
.generator-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-main); font-weight: 500; font-size: 0.9rem; }
.form-hint { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.form-hint strong { color: var(--secondary); }

.standard-selector { display: flex; gap: 10px; margin-top: 5px; }
.std-btn { flex: 1; padding: 12px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--glass-border); color: var(--text-muted); border-radius: 8px; cursor: pointer; transition: all 0.3s; font-weight: 600; }
.std-btn.active { background: rgba(244, 63, 94, 0.2); border-color: var(--primary); color: var(--text-main); }

input, select, textarea { width: 100%; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--glass-border); color: white; padding: 12px 15px; border-radius: 8px; font-family: inherit; font-size: 1rem; transition: all 0.3s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.3); }

/* Ensure dropdown option items are always readable regardless of OS theme */
select option {
    background: #2a1520;
    color: #fff1f2;
    font-size: 0.95rem;
    padding: 8px 12px;
}
select option:checked,
select option:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background: var(--primary);
    color: #ffffff;
}

/* Session Plan dropdowns — stronger contrast */
#spSessionSelect,
#spWeekSelect {
    background: #1e0d13;
    border: 2px solid rgba(244, 63, 94, 0.5);
    color: #fff1f2;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 40px 14px 16px; /* Extra right padding for custom arrow */
    border-radius: 12px;
    cursor: pointer;
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f43f5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

#spSessionSelect:focus,
#spWeekSelect:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.25);
    background-color: #250f18;
    outline: none;
}

.selection-box label {
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}


.btn-primary { width: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); color: white; border: none; padding: 15px; font-size: 1.1rem; font-weight: 700; border-radius: 8px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; display: flex; justify-content: center; align-items: center; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px var(--secondary); }

/* Loader */
.loader { 
    width: 24px; 
    height: 24px; 
    border: 3px solid rgba(255,255,255,0.2); 
    border-radius: 50%; 
    border-top-color: var(--secondary); 
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite; 
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modals */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(10, 5, 7, 0.9); 
    backdrop-filter: blur(12px); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { 
    background: linear-gradient(145deg, #2a1116, #1a0f12); 
    border: 1px solid var(--glass-border); 
    border-radius: 24px; 
    width: 95%; 
    max-width: 800px; 
    padding: 40px; 
    position: relative; 
    transform: scale(0.9) translateY(30px); 
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    max-height: 90vh; 
    overflow-y: auto; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.close-modal:hover { color: white; }
.modal-title { margin-bottom: 20px; font-size: 1.5rem; color: var(--text-main); }
.preview-container { background: rgba(0,0,0,0.3); border-radius: 10px; padding: 20px; margin-bottom: 20px; position: relative; }

.watermarked-preview::after { content: "PREVIEW ONLY"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-size: 3rem; color: rgba(255,255,255,0.05); pointer-events: none; white-space: nowrap; }

.checkout-area { background: rgba(251, 146, 60, 0.1); border: 1px solid var(--secondary); border-radius: 12px; padding: 20px; text-align: center; }
.checkout-area h3 { margin-bottom: 10px; }
.checkout-area p { color: var(--text-muted); margin-bottom: 15px; font-size: 0.9rem;}
.btn-mpesa { background: var(--mpesa-green); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; width: 100%; transition: background 0.3s; }
.btn-mpesa:hover { background: #1da851; }

/* Mobile Header */
.mobile-header { display: none; background: rgba(26, 15, 18, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); padding: 15px 20px; position: fixed; top: 0; left: 0; width: 100%; z-index: 999; justify-content: space-between; align-items: center; }
.mobile-header .logo { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.mobile-header .logo span { color: var(--secondary); }
.mobile-header .btn-outline { padding: 5px 10px; font-size: 0.8rem; }

@media (max-width: 768px) {
    .mobile-header { display: flex; }
    .app-layout { flex-direction: column; }
    .sidebar { flex-direction: row; width: 100%; height: 75px; position: fixed; bottom: 0; left: 0; top: auto; border-right: none; border-top: 1px solid var(--glass-border); padding: 5px; background: rgba(26, 15, 18, 0.98); z-index: 1000; }
    .sidebar .logo, .nav-header, .sidebar-footer { display: none; }
    .nav-menu { display: flex; flex-direction: row; width: 100%; justify-content: space-around; gap: 5px; }
    .nav-menu li { flex: 1; display: flex; }
    .nav-link { padding: 8px 2px; margin: 0; text-align: center; font-size: 0.75rem; flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; line-height: 1.2; }
    .nav-link.disabled { display: none; }
    .main-content { margin-left: 0; padding: 80px 15px 100px 15px; } /* top offset for header, bottom for nav */
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .hero { margin-bottom: 25px; text-align: center; }
    .hero h1 { font-size: 1.8rem; }
    .generator-card { padding: 25px; }
    .std-btn { font-size: 0.85rem; padding: 10px; }
}

/* Fullscreen AI Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 5, 7, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    background: linear-gradient(145deg, rgba(40,15,20,0.9), rgba(26,15,18,0.95));
    border: 1px solid var(--primary);
    border-radius: 24px;
    padding: 50px 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(244,63,94,0.2);
    text-align: center;
    position: relative;
    max-width: 450px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.robot-container {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.robot-head {
    width: 100px;
    height: 100px;
    background: #2a1116;
    border: 3px solid var(--primary);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
    animation: float-bot 3s ease-in-out infinite;
    z-index: 2;
}

.eyes {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 30px;
    padding: 0 15px;
}

.eye {
    width: 15px;
    height: 15px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
    animation: blink 4s infinite;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.mouth {
    width: 40px;
    height: 4px;
    background: var(--primary);
    margin: 25px auto 0;
    border-radius: 2px;
    animation: talk 0.5s infinite;
}

@keyframes talk {
    0%, 100% { height: 4px; transform: scaleX(1); }
    50% { height: 12px; transform: scaleX(1.1); border-radius: 50%; }
}

.speech-bubble {
    position: absolute;
    top: -60px;
    right: -220px;
    background: white;
    color: #1a0f12;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: bubble-float 4s ease-in-out infinite;
    border: 2px solid var(--primary);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 20px;
    border-width: 15px 15px 0 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

@keyframes bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes float-bot {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

#loadingStatusText {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse-text 2s infinite alternate;
}

@keyframes pulse-text {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.loading-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .speech-bubble {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 15px;
        width: 100%;
    }
    .speech-bubble::after {
        top: -15px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        border-width: 0 15px 15px 15px;
        border-color: transparent transparent white transparent;
    }
}

/* Session Plan UI Enhancements */
.sp-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.02);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.step-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(244, 63, 94, 0.4);
}

.step-content h3 { margin-bottom: 5px; font-size: 1.2rem; }
.step-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }

.lp-upload {
    background: rgba(0,0,0,0.2);
    border: 2px dashed rgba(244, 63, 94, 0.3);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.lp-upload:hover { border-color: var(--secondary); background: rgba(244, 63, 94, 0.05); }
.lp-upload input { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; top: 0; left: 0; }

.upload-ui { display: flex; align-items: center; gap: 15px; }
.upload-icon { font-size: 2rem; }
.upload-text span { display: block; font-weight: 600; color: white; }
.upload-text small { color: var(--text-muted); }

.mode-selector { display: flex; gap: 10px; }
.mode-btn { flex: 1; padding: 10px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: var(--text-muted); border-radius: 8px; cursor: pointer; font-size: 0.9rem; font-weight: 600; }
.mode-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.sess-preview-card {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid var(--secondary);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}
.preview-tag { position: absolute; top: -10px; right: 15px; background: var(--secondary); color: white; font-size: 0.7rem; font-weight: 800; padding: 2px 10px; border-radius: 20px; text-transform: uppercase; }
.sess-preview-card h4 { color: white; margin-bottom: 2px; }
.sess-preview-card p { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

.guide-text {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
}
.guide-text strong { color: var(--secondary); display: inline-block; margin-bottom: 2px; }

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Guide View Styles */
.guide-container {
    max-width: 900px;
}
.guide-step {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out;
}
.guide-step h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
}
.guide-step h2 .step-num {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(244, 63, 94, 0.3);
}
.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.guide-text-content p {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 15px;
}
.guide-text-content ul {
    list-style: none;
}
.guide-text-content li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.guide-text-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}
.guide-visual {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.guide-visual:hover {
    transform: scale(1.02);
}
.guide-visual img {
    width: 100%;
    height: auto;
    display: block;
}
.guide-visual-full {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-top: 20px;
    transition: transform 0.3s ease;
}
.guide-visual-full:hover {
    transform: scale(1.01);
}
.guide-visual-full img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 768px) {
    .guide-content {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Guide View Styles */
.intro-card {
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 20px;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.t-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    border-radius: 12px;
    border-left: 3px solid var(--secondary);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.t-step span {
    background: var(--secondary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.t-step strong {
    color: var(--text-main);
}

.standards-comparison th {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.standards-comparison td {
    color: var(--text-muted);
}

.standards-comparison tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}


/* FAQ Component Styles */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 20px 25px; transition: all 0.3s ease; }
.faq-item:hover { border-color: var(--secondary); background: rgba(40, 15, 20, 0.9); transform: translateY(-2px); }
.faq-question { color: var(--text-main); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; }
.faq-question::before { content: 'Q.'; color: var(--secondary); margin-right: 10px; font-size: 1.2rem; }
.faq-answer { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; padding-left: 30px; border-left: 2px solid rgba(251, 146, 60, 0.3); margin-left: 8px; }
.faq-answer strong { color: #fff; }

/* Custom Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* must sit on top of everything, including previewModal */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.confirm-modal-card {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.95), rgba(15, 15, 18, 0.95));
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 16px;
    padding: 35px 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(244, 63, 94, 0.05);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal-overlay.active .confirm-modal-card {
    transform: scale(1) translateY(0);
}

.confirm-modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(244, 63, 94, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 1px solid rgba(244, 63, 94, 0.3);
    animation: pulseGlow 2s infinite;
}

.confirm-modal-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.confirm-modal-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.confirm-modal-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn-cancel, .confirm-btn-danger {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.confirm-btn-danger {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    flex: 1;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.25);
}

.confirm-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), #be123c);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 63, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
    }
}
