/* =========================================
   1. CORE VARIABLES (Matches Previous Pages)
========================================= */
:root {
    --bg-color: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #10b981; /* Green for Money/Refund */
    --secondary: #3b82f6;
    --danger: #ef4444;
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --card-hover: rgba(30, 41, 59, 0.9);
    --blob-1: #10b981;
    --blob-2: #3b82f6;
}

body.light-mode {
    --bg-color: #f0f9ff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --primary: #059669;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --card-hover: rgba(255, 255, 255, 0.95);
    --blob-1: #a7f3d0;
    --blob-2: #bfdbfe;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* =========================================
   2. HEADER & LAYOUT
========================================= */
.refund-header {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
}

.header-glass { position: relative; z-index: 2; }
.page-title {
    font-size: 3rem; font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.page-subtitle { font-size: 1.1rem; color: var(--text-muted); }
.update-date { margin-top: 15px; font-size: 0.9rem; color: var(--primary); opacity: 0.8; }

/* Blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 1; opacity: 0.4; animation: float 10s infinite alternate; }
.blob-1 { top: -20%; left: -10%; width: 350px; height: 350px; background: var(--blob-1); }
.blob-2 { bottom: 10%; right: -5%; width: 300px; height: 300px; background: var(--blob-2); animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 50px); } }

/* Grid & Cards */
.main-wrapper { position: relative; z-index: 5; padding-bottom: 80px; }
.layout-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 30px;
    transition: 0.4s;
}
.glass-card:hover { transform: translateY(-5px); background: var(--card-hover); border-color: var(--primary); }

/* Sidebar */
.sidebar-nav { position: sticky; top: 100px; padding: 25px; }
.nav-title { font-size: 1.1rem; margin-bottom: 20px; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; }
.nav-link {
    display: flex; align-items: center; padding: 10px 15px; color: var(--text-muted);
    text-decoration: none; border-radius: 10px; margin-bottom: 5px; transition: 0.3s; font-size: 0.95rem;
}
.nav-link i { margin-right: 12px; width: 20px; text-align: center; }
.nav-link:hover, .nav-link.active { background: linear-gradient(90deg, var(--primary), var(--secondary)); color: white; }

/* =========================================
   3. CONTENT STYLING
========================================= */
.section-heading { display: flex; align-items: center; font-size: 1.5rem; margin-bottom: 25px; color: var(--text-main); }
.icon-box {
    width: 45px; height: 45px; background: rgba(16, 185, 129, 0.1); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-right: 15px; color: var(--primary); font-size: 1.1rem;
}
p, li { line-height: 1.7; color: var(--text-muted); margin-bottom: 15px; }

/* Guarantee Badge */
.guarantee-badge { 
    display: flex; gap: 20px; background: rgba(16, 185, 129, 0.1); padding: 25px; 
    border-radius: 15px; border: 1px solid rgba(16, 185, 129, 0.3); align-items: center;
}
.g-icon { font-size: 3rem; color: var(--primary); }
.g-text h3 { margin-bottom: 5px; color: var(--primary); font-size: 1.2rem; }
.g-text p { margin-bottom: 0; font-size: 0.95rem; }

/* Comparison Grid */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.comp-item { padding: 20px; border-radius: 15px; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); }
.comp-item.refundable { border-color: var(--primary); background: rgba(16, 185, 129, 0.05); }
.comp-item.non-refundable { border-color: var(--danger); background: rgba(239, 68, 68, 0.05); }

.c-header { font-weight: 700; margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.refundable .c-header { color: var(--primary); }
.non-refundable .c-header { color: var(--danger); }

.comp-item ul { list-style: none; padding: 0; }
.comp-item li { font-size: 0.9rem; margin-bottom: 8px; padding-left: 20px; position: relative; }
.comp-item li::before { content: "•"; position: absolute; left: 0; font-size: 1.2rem; line-height: 1; }
.refundable li::before { color: var(--primary); }
.non-refundable li::before { color: var(--danger); }

/* Process Steps */
.process-steps { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.step { flex: 1; background: rgba(255,255,255,0.03); padding: 20px; border-radius: 15px; text-align: center; border: 1px solid var(--glass-border); min-width: 200px; }
.step-num { width: 35px; height: 35px; background: var(--secondary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-weight: bold; }

/* Timeline Box */
.timeline-box { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.t-item { flex: 1; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--glass-border); }
.t-item i { font-size: 1.5rem; color: var(--secondary); margin-bottom: 10px; }
.t-item strong { color: var(--text-main); display: block; margin-bottom: 5px; }
.t-item span { color: var(--primary); font-weight: 600; }

/* Alert Box */
.alert-box { padding: 15px 20px; border-radius: 10px; margin-top: 20px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.alert-box.info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: #3b82f6; }

/* Fancy List */
.fancy-list { list-style: none; padding: 0; }
.fancy-list li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.fancy-list li::before { content: "✔"; color: var(--primary); position: absolute; left: 0; }

/* Check List (Red Cross) */
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 8px 0; border-bottom: 1px dashed var(--glass-border); color: var(--danger); }
.check-list li:last-child { border: none; }

/* CTA Box */
.cta-box { text-align: center; background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1)); }
.cta-btn { display: inline-block; background: var(--secondary); color: white; padding: 12px 30px; border-radius: 50px; text-decoration: none; margin-top: 15px; transition: 0.3s; }
.cta-btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4); }

/* Theme Toggle */
.theme-switch-wrapper { position: fixed; top: 100px; right: 20px; z-index: 1000; }
.glass-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-main); width: 45px; height: 45px; border-radius: 50%; cursor: pointer; backdrop-filter: blur(10px); transition: 0.3s; display: flex; align-items: center; justify-content: center; box-shadow: var(--glass-shadow); font-size: 1.2rem; }
.glass-btn:hover { transform: rotate(45deg); background: var(--primary); color: white; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.animate-pop { animation: popIn 0.8s; }
.animate-slide-up { animation: slideUp 0.8s ease forwards; opacity: 0; transform: translateY(20px); }
.delay-1 { animation-delay: 0.2s; }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideUp { 100% { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 991px) {
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar-nav { position: relative; top: 0; margin-bottom: 30px; }
    .comparison-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 2.5rem; }
    .theme-switch-wrapper { top: 20px; }
}