/* ══════════════════════════════════════════════════════════════════
   FINDY PRO — Premium Consultation Panel
   Inspired by Genesis/MIND7 style
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

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

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 9999px;
    --shadow: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.2);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --sidebar-width: 250px;
}

/* ─── DARK THEME ──────────────────────────────────────── */
[data-theme="dark"] {
    --bg-primary: #0b0f1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2035;
    --bg-hover: #1f2a42;
    --bg-glass: rgba(17, 24, 39, 0.85);
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #38bdf8;
    --accent-dark: #0ea5e9;
    --accent-hover: #7dd3fc;
    --accent-glow: rgba(56, 189, 248, 0.15);
    --accent-soft: rgba(56, 189, 248, 0.08);
    --gradient-accent: linear-gradient(135deg, #38bdf8, #0ea5e9);
    --gradient-header: linear-gradient(135deg, #0c4a6e, #164e63);
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.1);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.1);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.1);
    --gold: #fbbf24;
    --card-bg: rgba(17, 24, 39, 0.6);
    --sidebar-bg: #0f1629;
    --module-icon-bg: #1e3a5f;
    --input-bg: rgba(26, 32, 53, 0.8);
    --progress-bg: rgba(255,255,255,0.06);
}

/* ─── LIGHT THEME ─────────────────────────────────────── */
[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8fafc;
    --bg-hover: #e2e8f0;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --border: rgba(0,0,0,0.07);
    --border-hover: rgba(0,0,0,0.12);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #0284c7;
    --accent-dark: #0369a1;
    --accent-hover: #0ea5e9;
    --accent-glow: rgba(2, 132, 199, 0.1);
    --accent-soft: rgba(2, 132, 199, 0.05);
    --gradient-accent: linear-gradient(135deg, #0284c7, #0369a1);
    --gradient-header: linear-gradient(135deg, #0c4a6e, #155e75);
    --success: #059669;
    --success-soft: rgba(5, 150, 105, 0.06);
    --warning: #d97706;
    --warning-soft: rgba(217, 119, 6, 0.06);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.06);
    --gold: #b45309;
    --card-bg: #ffffff;
    --sidebar-bg: #0f172a;
    --module-icon-bg: #dbeafe;
    --input-bg: #f8fafc;
    --progress-bg: rgba(0,0,0,0.06);
}

/* ─── BASE ────────────────────────────────────────────── */
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 14px;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ─── LAYOUT ──────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ─── SIDEBAR (always dark) ───────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    transition: transform var(--transition);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 24px 28px;
    animation: fadeIn 0.4s ease;
}

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

/* ─── SIDEBAR CONTENT (always light text) ─────────────── */
.logo {
    font-size: 18px; font-weight: 800;
    color: #38bdf8;
    padding: 4px 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 16px;
    display: flex; align-items: center; flex-wrap: wrap;
}
.logo svg { stroke: #38bdf8; margin-right: 8px; }
.logo span { display: block; width: 100%; font-size: 10px; font-weight: 500; color: #64748b; margin-top: 2px; padding-left: 32px; }

/* Avatar / User area */
.sidebar-user {
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 8px; margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: #fff;
    margin-bottom: 10px; box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}
.sidebar-email { font-size: 11px; color: #94a3b8; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sidebar-plan-badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: var(--radius-full); font-size: 10px; font-weight: 700;
    margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.sidebar-plan-badge.pro { background: rgba(56,189,248,0.15); color: #38bdf8; }
.sidebar-plan-badge.free { background: rgba(100,116,139,0.15); color: #94a3b8; }
.sidebar-expira { font-size: 10px; color: #64748b; margin-top: 4px; }

/* Sidebar widget */
.sidebar-widget {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm); padding: 12px;
    margin: 0 4px 16px;
}
.sidebar-widget-title { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.sidebar-widget-value { font-size: 18px; font-weight: 800; color: #f1f5f9; }
.sidebar-widget-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.sidebar-widget-bar-fill { height: 100%; background: var(--gradient-accent); border-radius: 2px; transition: width var(--transition); }

/* Nav items */
.nav-section { margin-bottom: 16px; }
.nav-section-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #475569; padding: 0 12px; margin-bottom: 4px; font-weight: 700; }

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    color: #94a3b8; font-size: 13px; font-weight: 500;
    transition: all var(--transition); cursor: pointer;
    position: relative;
}
.nav-item::before {
    content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 3px; background: #38bdf8; border-radius: 0 3px 3px 0;
    opacity: 0; transition: opacity var(--transition);
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: #e2e8f0; }
.nav-item.active { background: rgba(56,189,248,0.08); color: #38bdf8; font-weight: 600; }
.nav-item.active::before { opacity: 1; }
.nav-item .icon { width: 20px; display: flex; align-items: center; justify-content: center; }
.nav-item .icon svg { width: 18px; height: 18px; }

.sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.nav-logout { color: #f87171 !important; }
.nav-logout:hover { background: rgba(248,113,113,0.08) !important; }

/* ─── TOPBAR ──────────────────────────────────────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
    display: none; width: 36px; height: 36px; border-radius: var(--radius-xs);
    border: 1px solid var(--border); background: var(--card-bg);
    color: var(--text-secondary); cursor: pointer;
    align-items: center; justify-content: center;
}

.theme-toggle {
    width: 36px; height: 36px; border-radius: var(--radius-xs);
    border: 1px solid var(--border); background: var(--card-bg);
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    transition: all var(--transition);
}
.theme-toggle:hover { background: var(--bg-hover); transform: scale(1.05); }

/* ─── STAT CARDS (horizontal style) ──────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px;
    display: flex; align-items: center; gap: 14px;
    transition: all var(--transition); animation: slideUp 0.4s ease both;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-glow); }
.stat-icon {
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.stat-info {}
.stat-value { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; line-height: 1.2; }
.stat-value.accent { color: var(--accent); }
.stat-value.gold { color: var(--gold); }
.stat-value.success { color: var(--success); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* ─── QUICK TAGS ──────────────────────────────────────── */
.quick-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.quick-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600;
    background: var(--accent-soft); color: var(--accent);
    border: 1px solid var(--accent-glow);
    cursor: pointer; transition: all var(--transition);
}
.quick-tag:hover { background: var(--accent); color: #fff; }

/* ─── MODULE FILTERS ──────────────────────────────────── */
.module-filters {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.module-filter {
    padding: 6px 16px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600; cursor: pointer;
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border); transition: all var(--transition);
}
.module-filter:hover { color: var(--text-primary); border-color: var(--border-hover); }
.module-filter.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── MODULE CARDS (MIND7 style) ──────────────────────── */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 24px; }

.module-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px;
    display: flex; align-items: flex-start; gap: 14px;
    cursor: pointer; transition: all var(--transition);
    text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
    animation: slideUp 0.4s ease both;
}
.module-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px var(--accent-glow); }

.module-card-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--module-icon-bg); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
[data-theme="dark"] .module-card-icon { background: rgba(56,189,248,0.1); }

.module-card-content { flex: 1; min-width: 0; }
.module-card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.module-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-bottom: 10px; }

.module-card-footer { display: flex; align-items: center; justify-content: space-between; }
.module-card-limit { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.module-card-count { font-size: 12px; font-weight: 700; color: var(--accent); }

.module-card-progress { height: 3px; background: var(--progress-bg); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.module-card-progress-fill { height: 100%; background: var(--gradient-accent); border-radius: 2px; }

.module-card-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 2px 8px; border-radius: var(--radius-full);
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.module-card-badge.popular { background: var(--success-soft); color: var(--success); }
.module-card-badge.new { background: var(--accent-soft); color: var(--accent); }
.module-card-badge.premium { background: var(--warning-soft); color: var(--warning); }

/* ─── FEATURED MODULES (top row, larger) ──────────────── */
.modules-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 20px; }
.module-featured {
    background: var(--gradient-header); border-radius: var(--radius);
    padding: 20px; color: #fff; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
    display: flex; align-items: center; gap: 16px;
    position: relative; overflow: hidden;
}
.module-featured:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.module-featured-icon { font-size: 32px; flex-shrink: 0; }
.module-featured-content {}
.module-featured-title { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.module-featured-desc { font-size: 12px; opacity: 0.8; }
.module-featured-badge {
    position: absolute; top: 10px; right: 12px;
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 10px; font-weight: 700; background: rgba(255,255,255,0.2); color: #fff;
}

/* ─── MODULE HEADER (inside consultation page) ────────── */
.module-header {
    background: var(--gradient-header); border-radius: var(--radius);
    padding: 20px 24px; margin-bottom: 20px; color: #fff;
    animation: slideUp 0.3s ease;
}
.module-header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.module-header-title { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.module-header-badge { padding: 3px 10px; border-radius: var(--radius-full); font-size: 10px; font-weight: 700; background: rgba(52,211,153,0.2); color: #34d399; }
.module-header-desc { font-size: 13px; opacity: 0.85; }
.module-header-limit { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12px; opacity: 0.8; }
.module-header-limit-bar { height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.module-header-limit-fill { height: 100%; background: #38bdf8; border-radius: 2px; }

/* ─── CARDS (general) ─────────────────────────────────── */
.card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
    margin-bottom: 16px; transition: all var(--transition);
    animation: slideUp 0.4s ease both;
}
.card:hover { border-color: var(--border-hover); }
.card-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; letter-spacing: -0.2px; }

/* ─── FORMS ───────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.8px; }
.form-input {
    width: 100%; padding: 12px 16px;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--input-bg); color: var(--text-primary);
    font-size: 14px; font-family: var(--font);
    transition: all var(--transition); outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }
.form-input-lg { padding: 16px 20px; font-size: 16px; border-radius: var(--radius); }
select.form-input { cursor: pointer; }

.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 150px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; cursor: pointer; border: none;
    transition: all var(--transition); font-family: var(--font); text-decoration: none;
}
.btn-primary { background: var(--gradient-accent); color: #fff; box-shadow: 0 4px 12px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 5px 12px; font-size: 11px; border-radius: var(--radius-xs); }

/* ─── SEARCH BAR ──────────────────────────────────────── */
.search-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.search-bar .form-input { flex: 1; }
.search-bar .btn { flex-shrink: 0; }

/* ─── RESULTS ─────────────────────────────────────────── */
.result-section { margin-bottom: 16px; animation: slideUp 0.3s ease both; }
.result-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--accent); margin-bottom: 8px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.result-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px; border-radius: var(--radius-xs);
    transition: background var(--transition-fast);
}
.result-row:hover { background: var(--bg-hover); }
.result-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.result-value { font-size: 13px; color: var(--text-primary); font-weight: 600; font-family: var(--mono); }

/* ─── BADGES ──────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; padding: 3px 9px;
    border-radius: var(--radius-full); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-pro { background: var(--accent-soft); color: var(--accent); }
.badge-free { background: var(--bg-tertiary); color: var(--text-muted); }

/* ─── TABLE ───────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 9px 12px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 700; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.table tr:hover td { background: var(--bg-hover); }

/* ─── ALERTS ──────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; font-weight: 500; border: 1px solid; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: rgba(52,211,153,0.15); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(251,191,36,0.15); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(248,113,113,0.15); }
.alert-info { background: var(--accent-soft); color: var(--accent); border-color: rgba(56,189,248,0.15); }

/* ─── PLAN BANNER ─────────────────────────────────────── */
.plan-banner {
    background: var(--gradient-header); border-radius: var(--radius);
    padding: 16px 20px; display: flex; align-items: center;
    justify-content: space-between; margin-top: 20px; color: #fff; flex-wrap: wrap; gap: 12px;
}
.plan-info .label { font-size: 11px; opacity: 0.7; }
.plan-info .value { font-size: 14px; font-weight: 700; }

/* ─── LOGIN ───────────────────────────────────────────── */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-primary); padding: 20px; }
.login-box {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px;
    width: 100%; max-width: 380px; box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s ease;
}
.login-box .logo { text-align: center; border: none; padding-bottom: 8px; justify-content: center; color: #38bdf8; }

/* ─── EMPTY / LOADING ─────────────────────────────────── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 10px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

.loading { display: flex; align-items: center; justify-content: center; padding: 32px; color: var(--text-muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TOAST ───────────────────────────────────────────── */
#toast-container { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 6px; }
.toast { padding: 10px 18px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; color: #fff; animation: toastIn 0.3s ease; box-shadow: var(--shadow); }
.toast-success { background: rgba(52,211,153,0.92); }
.toast-error { background: rgba(248,113,113,0.92); }
.toast-info { background: rgba(56,189,248,0.92); }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); position: fixed; box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 14px; }
    .menu-toggle { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .modules-grid { grid-template-columns: 1fr; }
    .modules-featured { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .search-bar { flex-direction: column; }
    .plan-banner { flex-direction: column; text-align: center; }
}

/* ─── UTILITIES ───────────────────────────────────────── */
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.text-center{text-align:center}.text-muted{color:var(--text-muted)}.text-accent{color:var(--accent)}.text-sm{font-size:12px}
.flex{display:flex}.flex-between{display:flex;justify-content:space-between;align-items:center}.gap-1{gap:8px}.gap-2{gap:16px}
.hidden{display:none}

/* ─── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}
