:root {
    --brand: #7EDC9A;
    --brand-dark: #1F7A3A;
    --brand-light: #B8F0CA;
    --brand-50: #E8F9EE;
    --bg: #F7FBF8;
    --bg-card: #FFFFFF;
    --text: #0F172A;
    --text-secondary: #334155;
    --muted: #64748B;
    --border: #E2E8F0;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --success: #10B981;
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
    --transition: 0.2s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: var(--brand-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); opacity: 0.85; }

/* ── Navbar ── */
.navbar-brand { font-weight: 700; font-size: 1.35rem; color: var(--brand-dark) !important; }
.navbar-brand span { color: var(--brand); }
.navbar { background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.navbar .nav-link { color: var(--text-secondary); font-weight: 500; padding: 0.5rem 1rem !important; border-radius: var(--radius-sm); transition: all var(--transition); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand-dark); background: var(--brand-50); }
.navbar .btn-brand { background: var(--brand-dark); color: #fff; border: none; padding: 0.45rem 1.25rem; border-radius: var(--radius-sm); font-weight: 500; }
.navbar .btn-brand:hover { background: #166B30; color: #fff; }

/* ── Buttons ── */
.btn-brand { background: var(--brand-dark); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; transition: all var(--transition); }
.btn-brand:hover { background: #166B30; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-brand-outline { border: 2px solid var(--brand-dark); color: var(--brand-dark); background: transparent; border-radius: var(--radius-sm); font-weight: 500; }
.btn-brand-outline:hover { background: var(--brand-dark); color: #fff; }
.btn-brand-light { background: var(--brand-50); color: var(--brand-dark); border: 1px solid var(--brand-light); border-radius: var(--radius-sm); }
.btn-brand-light:hover { background: var(--brand-light); }

/* ── Cards ── */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow); transition: all var(--transition); overflow: hidden; }
.card:hover { box-shadow: var(--shadow-md); }
.card-header { background: var(--brand-50); border-bottom: 1px solid var(--border); font-weight: 600; }

/* ── Badges ── */
.badge-brand { background: var(--brand-50); color: var(--brand-dark); font-weight: 500; }
.badge-brand-solid { background: var(--brand-dark); color: #fff; }

/* ── Hero Section ── */
.hero { background: linear-gradient(135deg, var(--brand-dark) 0%, #2D9E4F 50%, var(--brand) 100%); color: #fff; padding: 4rem 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%); }
.hero h1 { font-weight: 800; font-size: 2.5rem; }
.hero p { font-size: 1.15rem; opacity: 0.9; }
.hero .btn { padding: 0.75rem 2rem; font-size: 1.05rem; border-radius: var(--radius-sm); }

/* ── Section Headings ── */
.section-title { font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--muted); margin-bottom: 2rem; }

/* ── Course Card ── */
.course-card { transition: all 0.3s ease; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-card .card-img-top { height: 180px; object-fit: cover; background: var(--brand-50); }
.course-card .badge { font-size: 0.75rem; }

/* ── Progress ── */
.progress { height: 0.5rem; border-radius: 1rem; background: var(--border); }
.progress-bar { background: linear-gradient(90deg, var(--brand-dark), var(--brand)); border-radius: 1rem; }

/* ── Footer ── */
.site-footer { background: var(--text); color: #CBD5E1; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.site-footer a { color: var(--brand); }
.site-footer a:hover { color: var(--brand-light); }
.site-footer h6 { color: #fff; font-weight: 600; margin-bottom: 1rem; }

/* ── Forms ── */
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 0.2rem rgba(126, 220, 154, 0.25); }
.form-label { font-weight: 500; color: var(--text-secondary); margin-bottom: 0.35rem; }

/* ── Alerts ── */
.alert { border-radius: var(--radius-sm); border: none; }

/* ── Streak Counter ── */
.streak-counter { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 0.5rem 1.25rem; border-radius: 2rem; font-weight: 700; font-size: 1.1rem; }
.streak-counter i { font-size: 1.3rem; }

/* ── Checklist ── */
.prayer-check { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); transition: background var(--transition); cursor: pointer; }
.prayer-check:hover { background: var(--brand-50); }
.prayer-check input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--brand-dark); }
.prayer-check.checked { background: var(--brand-50); }
.prayer-check.checked label { text-decoration: line-through; color: var(--muted); }

/* ── Countdown ── */
.countdown-display { font-size: 2rem; font-weight: 800; color: var(--brand-dark); font-variant-numeric: tabular-nums; }

/* ── Admin Sidebar ── */
.admin-sidebar { background: var(--text); min-height: 100vh; width: 260px; position: fixed; top: 0; left: 0; z-index: 1040; overflow-y: auto; transition: transform 0.3s ease; }
.admin-sidebar .sidebar-brand { padding: 1.25rem 1.5rem; font-size: 1.25rem; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar .sidebar-brand span { color: var(--brand); }
.admin-sidebar .nav-link { color: #94A3B8; padding: 0.65rem 1.5rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem; transition: all var(--transition); border-left: 3px solid transparent; }
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admin-sidebar .nav-link.active { color: var(--brand); background: rgba(126,220,154,0.08); border-left-color: var(--brand); }
.admin-sidebar .nav-link i { width: 1.25rem; text-align: center; }
.admin-sidebar .sidebar-section { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 1rem 1.5rem 0.5rem; font-weight: 600; }
.admin-content { margin-left: 260px; padding: 1.5rem 2rem; min-height: 100vh; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 0.75rem 2rem; margin: -1.5rem -2rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }

/* ── Stat Cards ── */
.stat-card { border-radius: var(--radius); padding: 1.5rem; border: none; }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; }
.stat-card .stat-label { color: var(--muted); font-size: 0.85rem; }

/* ── WhatsApp Card ── */
.wa-card { border-left: 4px solid #25D366; }
.wa-card .btn-whatsapp { background: #25D366; color: #fff; border: none; border-radius: var(--radius-sm); }
.wa-card .btn-whatsapp:hover { background: #1DA851; color: #fff; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .hero h1 { font-size: 1.75rem; }
}

@media (max-width: 575.98px) {
    .hero { padding: 2.5rem 0; }
    .hero h1 { font-size: 1.5rem; }
    .stat-card .stat-value { font-size: 1.35rem; }
}

/* ── Block Renderer ── */
.block-hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 3rem 2rem; border-radius: var(--radius); margin-bottom: 2rem; }
.block-steps .step-number { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.block-faq .accordion-button:not(.collapsed) { background: var(--brand-50); color: var(--brand-dark); }
.block-cta { background: var(--brand-50); border: 2px solid var(--brand-light); border-radius: var(--radius); padding: 2rem; text-align: center; }

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }

/* ── Print ── */
@media print {
    .navbar, .site-footer, .admin-sidebar, .btn { display: none !important; }
    .admin-content { margin-left: 0 !important; }
}
