@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --secondary: #7c3aed;
  --accent: #f43f5e;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --bg: #f8f7ff;
  --bg2: #f1f0fa;
  --surface: #ffffff;
  --surface2: #ede9fe;
  --border: #e5e3f0;
  --text: #1e1b4b;
  --text-muted: #6b7280;
  --sidebar-w: 260px;
  --shadow-sm: 0 1px 3px rgba(79,70,229,.08);
  --shadow: 0 4px 16px rgba(79,70,229,.12);
  --shadow-lg: 0 12px 32px rgba(79,70,229,.18);
  --shadow-xl: 0 24px 56px rgba(79,70,229,.22);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all .22s cubic-bezier(.4,0,.2,1);
  --grad-main: linear-gradient(135deg,#3730a3 0%,#4f46e5 50%,#7c3aed 100%);
  --grad-accent: linear-gradient(135deg,#f43f5e,#fb7185);
  --grad-success: linear-gradient(135deg,#059669,#10b981);
  --grad-warning: linear-gradient(135deg,#d97706,#f59e0b);
  --grad-info: linear-gradient(135deg,#0891b2,#06b6d4);
}

[data-theme="dark"] {
  --bg: #0f0e1a;
  --bg2: #1a1830;
  --surface: #1e1c35;
  --surface2: #2a2748;
  --border: #312e5a;
  --text: #f0effe;
  --text-muted: #9d98c8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
  --shadow-xl: 0 24px 56px rgba(0,0,0,.6);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Outfit',sans-serif; background:var(--bg); color:var(--text); line-height:1.6; min-height:100vh; overflow-x:hidden; transition:background .3s,color .3s; }
a { text-decoration:none; color:inherit; }

/* LOADER */
#loader { position:fixed;inset:0;z-index:9999;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;transition:opacity .5s ease; }
#loader.hidden { opacity:0;pointer-events:none; }
#loader img { width: min(80vw, 450px); height: auto; animation: pulse 2s infinite; object-fit: contain; }
.loader-logo { font-size:52px;color:var(--primary);animation:pulse 1.5s infinite; }
.loader-text { color:var(--text);font-size:22px;font-weight:800;letter-spacing:1px; }
.spinner { width:44px;height:44px;border:4px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes pulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.1)} }

/* PAGES */
.page { display:none; }
.page.active { display:block; }

/* HERO */
.hero { min-height:100vh;background:linear-gradient(rgba(15, 14, 26, 0.75), rgba(15, 14, 26, 0.75)), url('bg.png') center/cover no-repeat;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:40px 20px; }
.hero-bg { position:absolute;inset:0;overflow:hidden; }
.hero-orb { position:absolute;border-radius:50%;filter:blur(100px);opacity:.2; }
.hero-orb-1 { width:700px;height:700px;background:#818cf8;top:-200px;right:-200px; }
.hero-orb-2 { width:500px;height:500px;background:#f43f5e;bottom:-150px;left:-100px; }
.hero-orb-3 { width:300px;height:300px;background:#fbbf24;top:60%;left:50%;transform:translate(-50%,-50%); }
.hero-grid { position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:60px 60px; }
.hero-content { position:relative;z-index:2;max-width:1000px;text-align:center;color:white;animation:fadeUp .8s ease; }
.hero-badge { display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:10px 24px;font-size:13px;font-weight:700;margin-bottom:32px;letter-spacing:.5px; }
.hero-badge .dot { width:8px;height:8px;border-radius:50%;background:#4ade80;animation:pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1}50%{opacity:.3} }
.hero h1 { font-size:clamp(2.4rem,5.5vw,4.2rem);font-weight:900;line-height:1.08;margin-bottom:22px;letter-spacing:-1px; }
.hero h1 .accent { background:linear-gradient(135deg,#fbbf24,#fb923c);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text; }
.hero p { font-size:clamp(15px,2vw,19px);opacity:.85;margin-bottom:56px;max-width:600px;margin-left:auto;margin-right:auto; }
.role-cards { display:flex;gap:28px;justify-content:center;flex-wrap:wrap; }
.role-card { background:rgba(255,255,255,.1);backdrop-filter:blur(28px);border:1px solid rgba(255,255,255,.18);border-radius:var(--radius-lg);padding:48px 38px;width:min(320px,90vw);cursor:pointer;transition:var(--transition);text-align:center; }
.role-card:hover { transform:translateY(-14px);background:rgba(255,255,255,.18);box-shadow:0 32px 64px rgba(0,0,0,.3); }
.role-card-icon { width:88px;height:88px;border-radius:50%;background:rgba(255,255,255,.18);border:2px solid rgba(255,255,255,.3);display:flex;align-items:center;justify-content:center;font-size:36px;margin:0 auto 24px; }
.role-card h3 { font-size:24px;font-weight:800;margin-bottom:12px; }
.role-card p { font-size:14px;opacity:.82;margin-bottom:28px;line-height:1.6; }

/* BUTTONS */
.btn { display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border-radius:var(--radius-sm);font-weight:700;font-size:14px;cursor:pointer;border:none;outline:none;transition:var(--transition);font-family:'Outfit',sans-serif;letter-spacing:.2px; }
.btn-primary { background:var(--grad-main);color:white;box-shadow:0 4px 16px rgba(79,70,229,.35); }
.btn-primary:hover { transform:translateY(-2px);box-shadow:0 8px 28px rgba(79,70,229,.5); }
.btn-outline { background:transparent;color:white;border:2px solid rgba(255,255,255,.45); }
.btn-outline:hover { background:rgba(255,255,255,.16); }
.btn-light { background:var(--surface);color:var(--text);box-shadow:var(--shadow); }
.btn-light:hover { background:var(--surface2);transform:translateY(-2px); }
.btn-danger { background:var(--danger);color:white; }
.btn-success { background:var(--grad-success);color:white; }
.btn-warning { background:var(--grad-warning);color:white; }
.btn-sm { padding:8px 16px;font-size:13px; }
.btn-block { width:100%; }
.btn-icon { width:38px;height:38px;padding:0;border-radius:var(--radius-sm); }

/* AUTH */
.auth-bg-shapes { position:absolute; inset:0; overflow:hidden; z-index:0; }
.auth-bg-shape { position:absolute; border-radius:50%; filter:blur(120px); opacity:0.4; animation:floatBlob 20s infinite alternate; }
.auth-bg-shape-1 { width:600px; height:600px; background:#4f46e5; top:-10%; left:-10%; animation-delay:0s; }
.auth-bg-shape-2 { width:500px; height:500px; background:#fb7185; bottom:-10%; right:-5%; animation-delay:-5s; }
.auth-bg-shape-3 { width:400px; height:400px; background:#fbbf24; top:30%; left:40%; animation-delay:-10s; opacity:0.3; }

@keyframes floatBlob {
  0% { transform:translate(0,0) scale(1); }
  50% { transform:translate(50px,-50px) scale(1.1); }
  100% { transform:translate(-30px,40px) scale(0.9); }
}

.auth-page { min-height:100vh; background:var(--bg); display:flex; align-items:center; justify-content:center; padding:40px 20px; position:relative; overflow:hidden; }

.auth-card { background:var(--surface); border-radius:var(--radius-lg); box-shadow:var(--shadow-xl); width:min(500px,95vw); padding:clamp(28px,5vw,52px); position:relative; overflow:hidden; animation:fadeUp .6s ease; }
.auth-card::before { content:''; position:absolute; top:0; left:0; right:0; height:5px; background:var(--grad-main); }

.auth-card.premium { display:flex; flex-direction:row; width:min(1000px, 100%); background:rgba(255,255,255,0.7); backdrop-filter:blur(24px); border:1px solid rgba(255,255,255,0.4); border-radius:32px; box-shadow:0 32px 64px rgba(79,70,229,0.15); padding:0; z-index:1; }
.auth-card.premium::before { display:none; }
[data-theme="dark"] .auth-card.premium { background:rgba(30,28,53,0.7); border-color:rgba(255,255,255,0.05); }

.auth-card-left { flex:1; background:var(--grad-main); position:relative; overflow:hidden; padding:60px 40px; display:flex; flex-direction:column; justify-content:center; color:white; }
.auth-card-left::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size:40px 40px; opacity:0.6; }
.auth-left-content { position:relative; z-index:1; animation:fadeUp 0.8s ease; }
.auth-left-content h2 { font-size:clamp(32px, 4vw, 42px); font-weight:900; line-height:1.1; margin-bottom:20px; letter-spacing:-1px; }
.auth-left-content p { font-size:16px; opacity:0.85; line-height:1.6; max-width:90%; }
.auth-left-glass { background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); border-radius:24px; padding:24px; margin-top:40px; backdrop-filter:blur(16px); }

.auth-card-right { flex:1.2; padding:clamp(30px, 5vw, 60px); display:flex; flex-direction:column; justify-content:center; background:var(--surface); border-radius:0 32px 32px 0; }

.form-group.with-icon { position:relative; }
.form-group.with-icon .input-icon-left { position:absolute; left:16px; top:36px; color:var(--text-muted); font-size:16px; transition:var(--transition); z-index: 2; pointer-events: none;}
.form-group.with-icon .input-icon-right { position:absolute; right:16px; top:36px; color:var(--text-muted); font-size:16px; cursor:pointer; transition:var(--transition); z-index: 2;}
.form-group.with-icon .input-icon-right:hover { color:var(--primary); }
.form-group.with-icon .form-control { padding-left:44px; position:relative; z-index: 1;}
.form-group.with-icon .form-control.has-right { padding-right:44px; }
.form-group.with-icon .form-control:focus ~ .input-icon-left { color:var(--primary); }

.auth-logo { display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:28px; }
.auth-logo i { font-size:28px;color:var(--primary); }
.auth-logo span { font-size:24px;font-weight:900;color:var(--text);letter-spacing:-0.5px; }
.auth-title { font-size:26px;font-weight:900;text-align:center;margin-bottom:6px;letter-spacing:-0.5px; }
.auth-sub { color:var(--text-muted);text-align:center;font-size:14px;margin-bottom:28px; }
.form-group { margin-bottom:18px; }
.form-label { display:block;font-weight:700;font-size:12px;margin-bottom:7px;color:var(--text);text-transform:uppercase;letter-spacing:.8px; }
.form-control { width:100%;padding:13px 16px;border:2px solid var(--border);border-radius:var(--radius-sm);font-size:14px;font-family:'Outfit',sans-serif;transition:var(--transition);background:var(--bg);color:var(--text); }
.form-control:focus { border-color:var(--primary);box-shadow:0 0 0 4px rgba(79,70,229,.12);outline:none;background:var(--surface); }
select.form-control { appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px;padding-right:44px; }
textarea.form-control { resize:vertical;min-height:88px; }
.auth-footer { text-align:center;margin-top:20px;font-size:14px;color:var(--text-muted); }
.auth-footer a { color:var(--primary);font-weight:700;cursor:pointer; }
.auth-tabs { display:flex;gap:0;margin-bottom:28px;background:var(--bg2);border-radius:var(--radius-sm);padding:4px; }
.auth-tab { flex:1;padding:11px;text-align:center;font-weight:700;font-size:14px;cursor:pointer;transition:var(--transition);color:var(--text-muted);border-radius:8px; }
.auth-tab.active { background:var(--surface);color:var(--primary);box-shadow:var(--shadow-sm); }

@media (max-width: 900px) {
  .auth-card.premium { flex-direction:column; border-radius:24px; padding:0; }
  .auth-card-left { display:none; }
  .auth-card-right { padding:clamp(24px, 5vw, 40px); border-radius:24px; }
}

/* DASHBOARD LAYOUT */
.dashboard-layout { display:flex;min-height:100vh; }
.sidebar { width:var(--sidebar-w);background:var(--grad-main);position:fixed;top:0;left:0;bottom:0;z-index:200;overflow-y:auto;transition:transform .3s ease;display:flex;flex-direction:column; }
.sidebar-brand { padding:24px 20px;border-bottom:1px solid rgba(255,255,255,.1);display:flex;align-items:center;gap:12px; }
.sidebar-brand i { font-size:26px;color:white; }
.sidebar-brand span { font-size:22px;font-weight:900;color:white;letter-spacing:-0.5px; }
.sidebar-user { padding:20px;border-bottom:1px solid rgba(255,255,255,.1); }
.sidebar-avatar { width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;color:white;margin-bottom:10px;border:2px solid rgba(255,255,255,.3);overflow:hidden; }
.sidebar-avatar img { width:100%;height:100%;object-fit:cover; }
.sidebar-user-name { color:white;font-weight:800;font-size:15px; }
.sidebar-user-role { color:rgba(255,255,255,.6);font-size:12px; }
.sidebar-nav { padding:12px 0;flex:1; }
.nav-section { padding:14px 20px 6px;color:rgba(255,255,255,.3);font-size:10px;font-weight:800;letter-spacing:2.5px;text-transform:uppercase; }
.nav-item { display:flex;align-items:center;gap:14px;padding:13px 20px;color:rgba(255,255,255,.72);font-weight:600;font-size:14px;cursor:pointer;transition:var(--transition);border-left:3px solid transparent;margin:2px 0; }
.nav-item:hover { background:rgba(255,255,255,.1);color:white; }
.nav-item.active { background:rgba(255,255,255,.16);color:white;border-left-color:#fbbf24; }
.nav-item i { width:20px;text-align:center;font-size:15px; }
.main-content { margin-left:var(--sidebar-w);flex:1;min-width:0;display:flex;flex-direction:column; }
.topbar { background:var(--surface);border-bottom:1px solid var(--border);padding:0 28px;height:68px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:100;box-shadow:var(--shadow-sm); }
.topbar-left { display:flex;align-items:center;gap:16px; }
.menu-btn { display:none;width:40px;height:40px;border-radius:var(--radius-sm);background:var(--bg2);border:none;align-items:center;justify-content:center;cursor:pointer;font-size:17px;color:var(--text-muted); }
.page-heading { font-size:18px;font-weight:800;color:var(--text);letter-spacing:-0.3px; }
.topbar-right { display:flex;align-items:center;gap:12px; }
.topbar-avatar { width:40px;height:40px;border-radius:50%;background:var(--grad-main);display:flex;align-items:center;justify-content:center;color:white;font-weight:800;font-size:14px;cursor:pointer;overflow:hidden; }
.topbar-avatar img { width:100%;height:100%;object-fit:cover; }
.content-area { padding:24px;flex:1;background:var(--bg); }

/* DARK MODE TOGGLE */
.theme-toggle { width:40px;height:40px;border-radius:var(--radius-sm);background:var(--bg2);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;color:var(--text-muted);transition:var(--transition); }
.theme-toggle:hover { background:var(--surface2);color:var(--primary); }

/* CARDS */
.card { background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-sm);border:1px solid var(--border);overflow:hidden; }
.card-header { padding:18px 22px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap; }
.card-title { font-size:16px;font-weight:800;color:var(--text);letter-spacing:-0.3px; }
.card-body { padding:22px; }

/* STATS */
.stats-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:20px; }
.stat-card { background:var(--surface);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm);border:1px solid var(--border);display:flex;align-items:flex-start;gap:14px;transition:var(--transition);position:relative;overflow:hidden; }
.stat-card::after { content:'';position:absolute;top:0;left:0;right:0;height:3px; }
.stat-card.blue::after { background:linear-gradient(90deg,#4f46e5,#818cf8); }
.stat-card.purple::after { background:linear-gradient(90deg,#7c3aed,#c084fc); }
.stat-card.green::after { background:linear-gradient(90deg,#059669,#34d399); }
.stat-card.orange::after { background:linear-gradient(90deg,#d97706,#fbbf24); }
.stat-card.red::after { background:linear-gradient(90deg,#dc2626,#f87171); }
.stat-card.cyan::after { background:linear-gradient(90deg,#0891b2,#22d3ee); }
.stat-card:hover { transform:translateY(-4px);box-shadow:var(--shadow-lg); }
.stat-icon { width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;color:white;flex-shrink:0; }
.stat-icon.blue { background:linear-gradient(135deg,#4f46e5,#818cf8); }
.stat-icon.purple { background:linear-gradient(135deg,#7c3aed,#a78bfa); }
.stat-icon.green { background:linear-gradient(135deg,#059669,#34d399); }
.stat-icon.orange { background:linear-gradient(135deg,#d97706,#fbbf24); }
.stat-icon.red { background:linear-gradient(135deg,#dc2626,#f87171); }
.stat-icon.cyan { background:linear-gradient(135deg,#0891b2,#22d3ee); }
.stat-info { flex:1;min-width:0; }
.stat-value { font-size:28px;font-weight:900;color:var(--text);line-height:1.1;letter-spacing:-1px; }
.stat-label { color:var(--text-muted);font-size:12px;margin-top:4px;font-weight:600; }

/* CHARTS */
.charts-row { display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:16px;margin-bottom:20px; }
.chart-card { background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-sm);border:1px solid var(--border);padding:20px; }
.chart-title { font-size:14px;font-weight:800;margin-bottom:16px;color:var(--text);letter-spacing:-0.2px; }

/* TABLES */
.table-wrap { overflow-x:auto; }
table { width:100%;border-collapse:collapse;font-size:13.5px; }
th { padding:12px 14px;text-align:left;background:var(--bg2);font-weight:800;font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.8px;border-bottom:2px solid var(--border);white-space:nowrap; }
td { padding:12px 14px;border-bottom:1px solid var(--border);color:var(--text); }
tr:hover td { background:var(--bg); }
tr:last-child td { border-bottom:none; }

/* BADGES */
.badge { display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700; }
.badge-success { background:#d1fae5;color:#065f46; }
.badge-warning { background:#fef3c7;color:#92400e; }
.badge-danger { background:#fee2e2;color:#991b1b; }
.badge-info { background:#cffafe;color:#164e63; }
.badge-purple { background:#ede9fe;color:#5b21b6; }
.badge-primary { background:#e0e7ff;color:#3730a3; }
[data-theme="dark"] .badge-success { background:rgba(16,185,129,.2);color:#34d399; }
[data-theme="dark"] .badge-warning { background:rgba(245,158,11,.2);color:#fbbf24; }
[data-theme="dark"] .badge-danger { background:rgba(239,68,68,.2);color:#f87171; }
[data-theme="dark"] .badge-info { background:rgba(6,182,212,.2);color:#22d3ee; }
[data-theme="dark"] .badge-primary { background:rgba(79,70,229,.2);color:#818cf8; }
[data-theme="dark"] .badge-purple { background:rgba(124,58,237,.2);color:#c084fc; }

/* ACTION BUTTONS */
.actions { display:flex;gap:4px;flex-wrap:nowrap; }
.act-btn { width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;font-size:12px;color:white;transition:var(--transition); }
.act-btn:hover { transform:scale(1.12); }
.act-view { background:var(--primary); }
.act-edit { background:var(--success); }
.act-del { background:var(--danger); }

/* CONTACT BUTTONS */
.contact-btns { display:flex;gap:4px;align-items:center;flex-wrap:nowrap; }
.contact-btn { width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;font-size:12px;color:white;transition:var(--transition);text-decoration:none; }
.contact-btn:hover { transform:scale(1.12); }
.btn-call { background:linear-gradient(135deg,#0891b2,#06b6d4); }
.btn-wa { background:linear-gradient(135deg,#16a34a,#22c55e); }
.btn-mail { background:linear-gradient(135deg,#dc2626,#ef4444); }
.btn-share { background:linear-gradient(135deg,#7c3aed,#a78bfa); }

/* TOAST */
#toast-area { position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:10px;max-width:340px; }
.toast { background:var(--surface);border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow-xl);display:flex;align-items:flex-start;gap:12px;border-left:4px solid;animation:slideIn .3s ease;font-size:14px;border:1px solid var(--border);border-left-width:4px; }
.toast.success { border-left-color:var(--success); }
.toast.error { border-left-color:var(--danger); }
.toast.warning { border-left-color:var(--warning); }
.toast.info { border-left-color:var(--primary); }
.toast-icon { font-size:17px;flex-shrink:0;margin-top:1px; }
.toast.success .toast-icon { color:var(--success); }
.toast.error .toast-icon { color:var(--danger); }
.toast.warning .toast-icon { color:var(--warning); }
.toast.info .toast-icon { color:var(--primary); }
.toast-body .toast-title { font-weight:800;color:var(--text);margin-bottom:2px;font-size:13px; }
.toast-body .toast-msg { color:var(--text-muted);font-size:12px; }
@keyframes slideIn { from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:translateX(0)} }
@keyframes slideOut { from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(40px)} }

/* MODALS */
.overlay-base { position:fixed;inset:0;z-index:8000;background:rgba(15,14,26,.75);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:20px;animation:fadeIn .3s ease; }
.overlay-base.hidden { display:none; }

/* QUOTE MODAL */
.quote-card { background:var(--surface);border-radius:var(--radius-lg);max-width:520px;width:100%;padding:52px 44px;text-align:center;box-shadow:var(--shadow-xl);position:relative;animation:scaleUp .4s cubic-bezier(.34,1.56,.64,1); }
.quote-icon-wrap { width:80px;height:80px;border-radius:50%;background:var(--grad-main);display:flex;align-items:center;justify-content:center;margin:0 auto 24px;font-size:32px;color:white; }
.quote-text { font-size:clamp(16px,2.5vw,20px);font-weight:500;line-height:1.6;color:var(--text);margin-bottom:16px;font-style:italic; }
.quote-author { color:var(--text-muted);font-size:14px;font-weight:700;margin-bottom:30px; }
@keyframes scaleUp { from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1} }
@keyframes fadeIn { from{opacity:0}to{opacity:1} }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)} }

/* PREP GRID */
.prep-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px; }
.prep-card { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:32px 24px;text-align:center;cursor:pointer;transition:var(--transition);box-shadow:var(--shadow-sm); }
.prep-card:hover { transform:translateY(-8px);box-shadow:var(--shadow-lg);border-color:var(--primary); }
.prep-card-icon { width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;font-size:28px;color:white; }
.prep-card h3 { font-size:17px;font-weight:800;margin-bottom:8px; }
.prep-card p { font-size:13px;color:var(--text-muted);margin-bottom:18px;line-height:1.5; }

/* AI ASSISTANT */
.ai-fab { position:fixed;bottom:26px;right:26px;z-index:500;width:60px;height:60px;border-radius:50%;background:var(--grad-main);display:flex;align-items:center;justify-content:center;font-size:24px;color:white;box-shadow:0 8px 28px rgba(79,70,229,.5);cursor:pointer;transition:var(--transition);border:none; }
.ai-fab:hover { transform:scale(1.1); }
.ai-panel { position:fixed;bottom:100px;right:26px;z-index:499;width:min(360px,calc(100vw-52px));background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-xl);border:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden;max-height:520px;transition:var(--transition); }
.ai-panel.hidden { opacity:0;pointer-events:none;transform:translateY(20px) scale(.95); }
.ai-panel-header { background:var(--grad-main);padding:16px 18px;display:flex;align-items:center;gap:12px;color:white; }
.ai-panel-header i { font-size:19px; }
.ai-panel-header h4 { font-size:14px;font-weight:800;flex:1; }
.ai-panel-header button { background:none;border:none;color:rgba(255,255,255,.7);cursor:pointer;font-size:17px; }
.ai-messages { flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:11px;min-height:220px; }
.ai-msg { display:flex;gap:8px;align-items:flex-start; }
.ai-msg.user { flex-direction:row-reverse; }
.ai-msg-avatar { width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0; }
.ai-msg-avatar.bot { background:var(--grad-main);color:white; }
.ai-msg-avatar.user { background:var(--bg2);color:var(--text); }
.ai-msg-bubble { max-width:82%;padding:10px 13px;border-radius:14px;font-size:13px;line-height:1.55; }
.ai-msg.bot .ai-msg-bubble { background:var(--bg2);color:var(--text);border-bottom-left-radius:4px; }
.ai-msg.user .ai-msg-bubble { background:var(--grad-main);color:white;border-bottom-right-radius:4px; }
.ai-input-row { padding:12px;border-top:1px solid var(--border);display:flex;gap:8px; }
.ai-input { flex:1;padding:10px 13px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:13px;font-family:'Outfit',sans-serif;transition:var(--transition);background:var(--bg);color:var(--text); }
.ai-input:focus { outline:none;border-color:var(--primary); }
.ai-send { width:40px;height:40px;border-radius:var(--radius-sm);background:var(--primary);color:white;border:none;cursor:pointer;font-size:15px;display:flex;align-items:center;justify-content:center;transition:var(--transition); }
.ai-send:hover { background:var(--primary-dark); }
.typing-indicator { display:flex;gap:4px;padding:6px 0; }
.typing-dot { width:7px;height:7px;border-radius:50%;background:var(--text-muted);animation:typingDot 1.4s infinite; }
.typing-dot:nth-child(2) { animation-delay:.2s; }
.typing-dot:nth-child(3) { animation-delay:.4s; }
@keyframes typingDot { 0%,100%{transform:translateY(0);opacity:.4}50%{transform:translateY(-6px);opacity:1} }

/* PROFILE */
.profile-header { background:var(--grad-main);border-radius:var(--radius);padding:40px;color:white;margin-bottom:20px;display:flex;align-items:center;gap:24px;flex-wrap:wrap; }
.profile-avatar-large { width:96px;height:96px;border-radius:50%;background:rgba(255,255,255,.22);border:3px solid rgba(255,255,255,.45);display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:800;color:white;flex-shrink:0;overflow:hidden;cursor:pointer; }
.profile-avatar-large img { width:100%;height:100%;object-fit:cover; }
.profile-info h2 { font-size:24px;font-weight:900;margin-bottom:4px;letter-spacing:-0.5px; }
.profile-info p { opacity:.82;font-size:14px; }
.profile-tags { display:flex;flex-wrap:wrap;gap:7px;margin-top:10px; }
.profile-tag { background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:3px 12px;font-size:12px;font-weight:600; }

/* ANALYTICS KPI */
.analytics-kpi { display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:20px; }
.kpi-card { background:var(--surface);border-radius:var(--radius);padding:24px;border:1px solid var(--border);box-shadow:var(--shadow-sm);text-align:center;transition:var(--transition); }
.kpi-card:hover { transform:translateY(-3px);box-shadow:var(--shadow); }
.kpi-val { font-size:38px;font-weight:900;background:var(--grad-main);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:-2px; }
.kpi-label { color:var(--text-muted);font-size:12px;font-weight:700;margin-top:4px;text-transform:uppercase;letter-spacing:.5px; }

/* PROGRESS */
.progress-wrap { margin-bottom:14px; }
.progress-label { display:flex;justify-content:space-between;font-size:13px;font-weight:700;margin-bottom:6px; }
.progress-bar { background:var(--bg2);border-radius:999px;height:8px;overflow:hidden; }
.progress-fill { height:100%;border-radius:999px;transition:width .8s ease; }

/* SEARCH & FILTER BAR */
.filter-bar { display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:16px; }
.filter-bar .form-control { margin:0;max-width:200px; }
.search-input { flex:1;min-width:200px;padding:10px 14px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:14px;font-family:'Outfit',sans-serif;background:var(--bg);color:var(--text); }
.search-input:focus { outline:none;border-color:var(--primary); }

/* SHARE MODAL */
.share-modal-card { background:var(--surface);border-radius:var(--radius-lg);max-width:580px;width:100%;max-height:88vh;overflow-y:auto;box-shadow:var(--shadow-xl);animation:scaleUp .4s cubic-bezier(.34,1.56,.64,1);border:1px solid var(--border); }
.share-modal-header { background:var(--grad-main);padding:26px 30px;color:white;border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.share-modal-header h3 { font-size:19px;font-weight:800; }
.share-modal-header p { opacity:.78;font-size:13px;margin-top:4px; }
.share-modal-body { padding:24px 30px; }
.share-option-row { display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:22px; }
.share-option-btn { display:flex;align-items:center;gap:12px;padding:15px 16px;border-radius:var(--radius);border:1.5px solid var(--border);background:var(--surface);cursor:pointer;transition:var(--transition);font-family:'Outfit',sans-serif;font-weight:700;font-size:13px;color:var(--text); }
.share-option-btn:hover { border-color:var(--primary);background:var(--bg);transform:translateY(-2px); }
.share-option-btn .sicon { width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;color:white;flex-shrink:0; }
.share-preview { background:var(--bg);border-radius:var(--radius);padding:18px;font-size:12px;line-height:1.7;color:var(--text);margin-bottom:18px;border:1px solid var(--border);white-space:pre-wrap;max-height:180px;overflow-y:auto;font-family:'JetBrains Mono',monospace; }

/* LEADERBOARD */
.lb-rank-1 { background:linear-gradient(135deg,rgba(251,191,36,.1),rgba(251,191,36,.05));border-color:rgba(251,191,36,.3) !important; }
.lb-rank-2 { background:linear-gradient(135deg,rgba(156,163,175,.1),rgba(156,163,175,.05));border-color:rgba(156,163,175,.3) !important; }
.lb-rank-3 { background:linear-gradient(135deg,rgba(180,83,9,.1),rgba(180,83,9,.05));border-color:rgba(180,83,9,.2) !important; }

/* GROUPED TABLE */
.dept-group-header { background:var(--grad-main);color:white;padding:10px 16px;font-weight:800;font-size:13px;letter-spacing:.3px; }

/* PHOTO UPLOAD */
.photo-upload-overlay { position:absolute;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:0;transition:var(--transition);cursor:pointer; }
.profile-avatar-large:hover .photo-upload-overlay { opacity:1; }
.avatar-wrap { position:relative;display:inline-block; }

/* MISC */
.section-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;flex-wrap:wrap;gap:10px; }
.section-title { font-size:19px;font-weight:900;color:var(--text);letter-spacing:-0.3px; }
.form-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px; }
.form-actions { display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:22px; }
.sidebar-overlay { display:none;position:fixed;inset:0;z-index:190;background:rgba(0,0,0,.6); }
.sidebar-overlay.active { display:block; }
.two-col { display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px; }
.hidden { display:none !important; }
.text-muted { color:var(--text-muted); }
.gap-col { display:flex;flex-direction:column;gap:20px; }

/* PDF MODAL */
.pdf-modal-card { background:var(--surface);border-radius:var(--radius-lg);max-width:500px;width:100%;box-shadow:var(--shadow-xl);animation:scaleUp .4s cubic-bezier(.34,1.56,.64,1);border:1px solid var(--border); }
.pdf-modal-header { background:var(--grad-main);padding:26px 30px;color:white;border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.pdf-modal-body { padding:24px 30px; }

@media (max-width:1024px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); }
  .main-content { margin-left:0; }
  .menu-btn { display:flex; }
}
@media (max-width:768px) {
  .content-area { padding:14px; }
  .topbar { padding:0 14px; }
  .charts-row { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .profile-header { padding:24px; }
  .prep-grid { grid-template-columns:repeat(2,1fr); }
  .ai-panel { right:10px;width:calc(100vw-20px); }
  .ai-fab { right:14px;bottom:14px; }
  .share-option-row { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  .stats-grid { grid-template-columns:1fr; }
  .prep-grid { grid-template-columns:1fr; }
  #toast-area { left:10px;right:10px;max-width:100%; }
}
/* NAV BADGE */
.nav-badge { background:#f43f5e;color:white;font-size:10px;font-weight:800;padding:2px 7px;border-radius:999px;margin-left:auto; }
/* COMMUNITY */
.community-layout { display:grid;grid-template-columns:1fr 300px;gap:18px;align-items:start; }
@media(max-width:960px){.community-layout{grid-template-columns:1fr}}
.post-card { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:var(--transition);overflow:hidden;margin-bottom:14px; }
.post-card:hover { box-shadow:var(--shadow); }
.post-header { display:flex;align-items:flex-start;gap:12px;padding:16px 16px 10px; }
.post-avatar { width:40px;height:40px;border-radius:50%;background:var(--grad-main);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;color:white;flex-shrink:0;overflow:hidden; }
.post-avatar img { width:100%;height:100%;object-fit:cover; }
.post-meta { flex:1;min-width:0; }
.post-author { font-weight:800;font-size:14px;color:var(--text); }
.post-info { font-size:12px;color:var(--text-muted);margin-top:1px; }
.post-tag { display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;font-size:10px;font-weight:800;margin-left:6px; }
.post-body { padding:0 16px 12px; }
.post-title { font-size:15px;font-weight:800;color:var(--text);margin-bottom:6px;line-height:1.4;cursor:pointer; }
.post-title:hover { color:var(--primary); }
.post-content { font-size:13px;color:var(--text-muted);line-height:1.6;margin-bottom:8px; }
.post-code { background:var(--bg2);border-radius:8px;padding:10px 12px;font-family:'JetBrains Mono',monospace;font-size:12px;color:var(--text);margin-bottom:10px;overflow-x:auto;border-left:3px solid var(--primary);white-space:pre-wrap; }
.post-footer { display:flex;align-items:center;gap:4px;padding:8px 16px;border-top:1px solid var(--border);background:var(--bg);flex-wrap:wrap; }
.post-action-btn { display:flex;align-items:center;gap:5px;padding:5px 11px;border-radius:8px;border:none;background:none;cursor:pointer;font-size:12px;font-weight:700;color:var(--text-muted);font-family:'Outfit',sans-serif;transition:var(--transition); }
.post-action-btn:hover { background:var(--surface2);color:var(--primary); }
.post-action-btn.liked { color:var(--danger); }
.solved-stamp { display:inline-flex;align-items:center;gap:5px;background:rgba(16,185,129,.12);color:var(--success);border-radius:999px;padding:3px 11px;font-size:11px;font-weight:800;border:1px solid rgba(16,185,129,.25);margin-left:auto; }
.reply-section { padding:12px 16px;border-top:1px solid var(--border);background:var(--bg);display:none; }
.reply-section.open { display:block; }
.reply-card { display:flex;gap:10px;margin-bottom:10px; }
.reply-avatar { width:30px;height:30px;border-radius:50%;background:var(--surface2);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:var(--text-muted);flex-shrink:0;overflow:hidden; }
.reply-avatar img { width:100%;height:100%;object-fit:cover; }
.reply-bubble { background:var(--surface);border-radius:0 10px 10px 10px;padding:9px 12px;flex:1;border:1px solid var(--border); }
.reply-bubble .reply-author { font-weight:800;font-size:12px;color:var(--primary);margin-bottom:3px;display:flex;align-items:center;gap:6px; }
.reply-bubble .reply-text { font-size:13px;color:var(--text);line-height:1.5; }
.reply-bubble .reply-time { font-size:10px;color:var(--text-muted);margin-top:3px; }
.reply-input-row { display:flex;gap:8px;align-items:flex-end;margin-top:10px; }
.reply-input { flex:1;padding:9px 12px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:13px;font-family:'Outfit',sans-serif;background:var(--surface);color:var(--text);resize:none;min-height:38px;max-height:90px; }
.reply-input:focus { outline:none;border-color:var(--primary); }
.new-post-card { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:18px;box-shadow:var(--shadow-sm);margin-bottom:16px; }
.new-post-title-input { width:100%;padding:11px 13px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:15px;font-family:'Outfit',sans-serif;font-weight:700;background:var(--bg);color:var(--text);margin-bottom:9px; }
.new-post-title-input:focus { outline:none;border-color:var(--primary); }
.new-post-body-input { width:100%;padding:11px 13px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:13px;font-family:'Outfit',sans-serif;background:var(--bg);color:var(--text);resize:vertical;min-height:80px; }
.new-post-body-input:focus { outline:none;border-color:var(--primary); }
.tag-selector { display:flex;gap:7px;flex-wrap:wrap;margin:9px 0; }
.tag-opt { padding:5px 13px;border-radius:999px;font-size:12px;font-weight:700;cursor:pointer;border:1.5px solid var(--border);background:var(--bg);color:var(--text-muted);transition:var(--transition); }
.tag-opt.selected { border-color:var(--primary);background:var(--primary);color:white; }
.community-sidebar-card { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:16px;box-shadow:var(--shadow-sm);margin-bottom:14px; }
.community-sidebar-title { font-size:11px;font-weight:800;color:var(--text-muted);margin-bottom:12px;display:flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:1px; }
.trending-item { display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid var(--border); }
.trending-item:last-child { border-bottom:none;padding-bottom:0; }
.trending-num { width:22px;height:22px;border-radius:6px;background:var(--grad-main);color:white;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px; }
.trending-text { flex:1;font-size:13px;font-weight:600;color:var(--text);line-height:1.4; }
.filter-tabs { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px; }
.filter-tab-btn { padding:7px 14px;border-radius:999px;font-size:12px;font-weight:700;cursor:pointer;border:1.5px solid var(--border);background:var(--surface);color:var(--text-muted);transition:var(--transition);font-family:'Outfit',sans-serif; }
.filter-tab-btn.active { background:var(--primary);color:white;border-color:var(--primary); }
.empty-community { text-align:center;padding:44px 20px;color:var(--text-muted); }
.empty-community i { font-size:44px;margin-bottom:12px;opacity:.25;display:block; }
.top-helper-item { display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border); }
.top-helper-item:last-child { border-bottom:none; }
.top-helper-avatar { width:32px;height:32px;border-radius:50%;background:var(--grad-main);color:white;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;overflow:hidden;flex-shrink:0; }
.top-helper-avatar img { width:100%;height:100%;object-fit:cover; }
.post-search { width:100%;padding:10px 13px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:13px;font-family:'Outfit',sans-serif;background:var(--bg);color:var(--text);margin-bottom:12px; }
.post-search:focus { outline:none;border-color:var(--primary); }
.mark-solved-btn { display:flex;align-items:center;gap:5px;padding:5px 11px;border-radius:8px;border:1.5px solid var(--success);background:none;cursor:pointer;font-size:12px;font-weight:700;color:var(--success);font-family:'Outfit',sans-serif;transition:var(--transition);margin-left:auto; }
.mark-solved-btn:hover { background:rgba(16,185,129,.1); }

/* ========== LIVE CHAT ========== */
.chat-page-layout { display:grid;grid-template-columns:260px 1fr;gap:0;height:calc(100vh - 140px);background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow);overflow:hidden;position:relative;background-image:radial-gradient(circle at 100% 100%, rgba(79,70,229,0.04) 0%, transparent 50%), radial-gradient(circle at 0% 0%, rgba(244,63,94,0.04) 0%, transparent 50%); }
.chat-rooms-overlay { display:none;position:absolute;inset:0;background:rgba(0,0,0,0.4);z-index:90;backdrop-filter:blur(2px);opacity:0;transition:opacity 0.3s ease; }
.chat-rooms-overlay.active { display:block;opacity:1; }
.chat-mobile-menu-btn { display:none;background:none;border:none;font-size:18px;color:var(--text);cursor:pointer;padding:8px;border-radius:8px;transition:var(--transition);margin-right:4px; }
.chat-mobile-menu-btn:hover { background:var(--bg2); }
@media(max-width:768px){ 
  .chat-page-layout { grid-template-columns:1fr;height:calc(100vh - 160px); } 
  .chat-rooms-panel { position:absolute;z-index:100;left:0;top:0;height:100%;width:260px;transform:translateX(-100%);transition:transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--shadow-xl);background:var(--surface);border-radius:0; } 
  .chat-rooms-panel.mobile-open { transform:translateX(0); } 
  .chat-mobile-menu-btn { display:flex;align-items:center;justify-content:center; }
}
.chat-rooms-panel { display:flex;flex-direction:column;background:rgba(255,255,255,0.02);backdrop-filter:blur(10px);border-right:1px solid var(--border);overflow:hidden; }
.chat-rooms-header { padding:18px 16px;border-bottom:1px solid var(--border);font-size:13px;font-weight:800;color:var(--text);display:flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:.6px; }
.chat-rooms-list { flex:1;overflow-y:auto;padding:12px 10px; }
.chat-room-item { display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;cursor:pointer;transition:var(--transition);margin-bottom:6px;border:1px solid transparent; }
.chat-room-item:hover { background:var(--surface2);border-color:var(--border);transform:translateY(-1px); }
.chat-room-item.active { background:var(--primary);color:white;box-shadow:0 4px 12px rgba(79,70,229,0.25);border-color:transparent;transform:translateY(-1px); }
.chat-room-item.active .room-icon, .chat-room-item.active .room-name, .chat-room-item.active .room-desc { color:white!important; }
.room-icon { width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0; }
.room-name { font-size:13px;font-weight:700;color:var(--text); }
.room-desc { font-size:11px;color:var(--text-muted);margin-top:1px; }
.room-unread { background:#f43f5e;color:white;font-size:10px;font-weight:800;padding:2px 6px;border-radius:999px;margin-left:auto;flex-shrink:0; }
.chat-main { display:flex;flex-direction:column;overflow:hidden;position:relative; }
.chat-header { padding:14px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;background:rgba(255,255,255,0.7);backdrop-filter:blur(10px);z-index:10; }
[data-theme="dark"] .chat-header { background:rgba(30,28,53,0.7); }
.chat-header-icon { width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;box-shadow:0 2px 6px rgba(0,0,0,0.1); }
.chat-header-name { font-size:15px;font-weight:800;color:var(--text); }
.chat-header-meta { font-size:12px;color:var(--text-muted);margin-top:1px;display:flex;align-items:center;gap:4px; }
.online-dot { width:8px;height:8px;background:#10b981;border-radius:50%;display:inline-block;animation:pulse 2s infinite; }
.messages-area { flex:1;overflow-y:auto;padding:20px 24px;display:flex;flex-direction:column;gap:16px;background:transparent; }
.msg-row { display:flex;gap:10px;align-items:flex-end;max-width:80%;animation:slideInMsg 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes slideInMsg { from { opacity:0; transform:translateY(12px) scale(0.96); } to { opacity:1; transform:translateY(0) scale(1); } }
.msg-row.mine { align-self:flex-end;flex-direction:row-reverse; }
.msg-row.theirs { align-self:flex-start; }
.msg-bubble-avatar { width:32px;height:32px;border-radius:50%;background:var(--grad-main);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:white;flex-shrink:0;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,0.1); }
.msg-bubble-avatar img { width:100%;height:100%;object-fit:cover; }
.msg-bubble-wrap { display:flex;flex-direction:column;gap:4px; }
.msg-bubble-name { font-size:11px;font-weight:700;color:var(--text-muted);padding:0 6px;display:flex;align-items:center;gap:4px; }
.msg-row.mine .msg-bubble-name { justify-content:flex-end; }
.msg-bubble { padding:11px 16px;border-radius:20px;font-size:13.5px;line-height:1.55;word-break:break-word;max-width:100%;transform-origin:bottom left; }
.msg-row.mine .msg-bubble { background:linear-gradient(135deg, var(--primary), var(--primary-light));color:white;border-radius:20px 20px 4px 20px;box-shadow:0 4px 14px rgba(79,70,229,0.25);transform-origin:bottom right; }
.msg-row.theirs .msg-bubble { background:var(--surface);color:var(--text);border:1.5px solid var(--border);border-radius:20px 20px 20px 4px;box-shadow:0 2px 8px rgba(0,0,0,0.03); }
.msg-bubble.admin-msg { background:linear-gradient(135deg,#7c3aed,#c084fc);color:white;box-shadow:0 4px 14px rgba(124,58,237,0.25);border:none; }
.msg-time { font-size:10px;color:var(--text-muted);padding:0 6px;font-weight:600; }
.msg-row.mine .msg-time { text-align:right; }
.chat-date-divider { text-align:center;font-size:11px;color:var(--text-muted);font-weight:800;padding:8px 0;display:flex;align-items:center;gap:10px;text-transform:uppercase;letter-spacing:1px;opacity:0.7; }
.chat-date-divider::before,.chat-date-divider::after { content:'';flex:1;height:1px;background:var(--border); }
.chat-input-area { padding:14px 18px;border-top:1px solid var(--border);background:rgba(255,255,255,0.7);backdrop-filter:blur(10px);display:flex;align-items:flex-end;gap:12px;z-index:10; }
[data-theme="dark"] .chat-input-area { background:rgba(30,28,53,0.7); }
.chat-input-box { flex:1;padding:12px 18px;border:1.5px solid var(--border);border-radius:24px;font-size:14px;font-family:'Outfit',sans-serif;background:var(--bg);color:var(--text);resize:none;min-height:46px;max-height:140px;line-height:1.5;box-shadow:inset 0 2px 4px rgba(0,0,0,0.02);transition:var(--transition); }
.chat-input-box:focus { outline:none;border-color:var(--primary);box-shadow:0 0 0 4px rgba(79,70,229,0.1);background:var(--surface); }
.chat-send-btn { width:46px;height:46px;border-radius:50%;background:var(--grad-main);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:white;font-size:17px;flex-shrink:0;transition:var(--transition);box-shadow:0 4px 12px rgba(79,70,229,0.3); }
.chat-send-btn:hover { transform:scale(1.08) translateY(-2px);box-shadow:0 6px 16px rgba(79,70,229,0.4); }
.chat-typing { font-size:12px;color:var(--text-muted);padding:2px 24px 8px;font-style:italic;font-weight:600;min-height:22px; }
.chat-emoji-bar { display:flex;gap:6px;padding:0 16px 8px;flex-wrap:wrap; }
.emoji-btn { background:none;border:none;font-size:18px;cursor:pointer;padding:2px 4px;border-radius:6px;transition:var(--transition); }
.emoji-btn:hover { background:var(--surface2);transform:scale(1.2); }
.online-users-bar { padding:8px 16px;border-bottom:1px solid var(--border);display:flex;gap:6px;align-items:center;overflow-x:auto;background:var(--surface);min-height:52px; }
.online-user-chip { display:flex;align-items:center;gap:6px;padding:4px 10px;background:var(--bg);border-radius:999px;border:1px solid var(--border);white-space:nowrap;font-size:12px;font-weight:600; }
.online-user-chip .chip-avatar { width:22px;height:22px;border-radius:50%;background:var(--grad-main);display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:800;color:white;overflow:hidden;flex-shrink:0; }
.online-user-chip .chip-avatar img { width:100%;height:100%;object-fit:cover; }
.no-room-selected { flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--text-muted); }
.no-room-selected i { font-size:52px;opacity:.2; }


/* ===== GOALS ===== */
.goal-card { background:rgba(255,255,255,0.05); backdrop-filter:blur(8px); border-radius:var(--radius-lg); border:1px solid rgba(255,255,255,0.3); padding:24px; box-shadow:0 8px 32px rgba(79,70,229,0.1); margin-bottom:18px; transition:var(--transition); position:relative; overflow:hidden;}
.goal-card:hover { transform:translateY(-5px); box-shadow:0 14px 48px rgba(79,70,229,0.18); border-color:var(--primary-light); }
.goal-card::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,0.6) 0%,transparent 100%); z-index:0; pointer-events:none; }
[data-theme="dark"] .goal-card { background:rgba(0,0,0,0.2); border-color:var(--border); }
[data-theme="dark"] .goal-card::before { background:linear-gradient(135deg,rgba(255,255,255,0.02) 0%,transparent 100%); }
.goal-card > * { position:relative; z-index:1; }
.goal-progress-bar { height:12px; background:var(--bg2); border-radius:999px; overflow:hidden; margin:14px 0 6px; box-shadow:inset 0 2px 4px rgba(0,0,0,0.05); }
.goal-progress-fill { height:100%; border-radius:999px; transition:width 1s cubic-bezier(.34,1.56,.64,1); background:var(--grad-main); box-shadow:0 2px 8px rgba(79,70,229,0.4); }
.goal-status-badge { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:999px; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.5px; box-shadow:0 2px 8px rgba(0,0,0,0.05); }

/* ===== ANNOUNCEMENTS ===== */
.announce-card { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow-sm);overflow:hidden;margin-bottom:14px; }
.announce-banner { padding:4px 14px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.8px; }
.announce-body { padding:16px 18px; }
.announce-title { font-size:15px;font-weight:800;margin-bottom:6px; }
.announce-meta { font-size:12px;color:var(--text-muted);display:flex;gap:12px;flex-wrap:wrap; }
.announce-content { font-size:13px;color:var(--text-muted);margin-top:8px;line-height:1.6; }
.priority-high { background:#fee2e2;color:#991b1b; }
.priority-medium { background:#fef3c7;color:#92400e; }
.priority-low { background:#d1fae5;color:#065f46; }

/* ===== MOCK TEST ===== */
.quiz-card { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:22px;box-shadow:var(--shadow-sm); }
.quiz-option { display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:var(--radius-sm);border:2px solid var(--border);cursor:pointer;margin-bottom:9px;transition:var(--transition);background:var(--bg); }
.quiz-option:hover { border-color:var(--primary);background:rgba(79,70,229,.05); }
.quiz-option.selected { border-color:var(--primary);background:rgba(79,70,229,.1); }
.quiz-option.correct { border-color:var(--success);background:rgba(16,185,129,.1); }
.quiz-option.wrong { border-color:var(--danger);background:rgba(244,63,94,.1); }
.quiz-timer { font-size:28px;font-weight:900;color:var(--primary);font-family:'JetBrains Mono',monospace; }
.quiz-timer.danger { color:var(--danger);animation:pulse 1s infinite; }
.test-card { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:20px;box-shadow:var(--shadow-sm);margin-bottom:14px;cursor:pointer;transition:var(--transition); }
.test-card:hover { box-shadow:var(--shadow);transform:translateY(-2px); }

/* ===== ACTIVITY FEED ===== */
.activity-item { display:flex;gap:13px;padding:12px 0;border-bottom:1px solid var(--border); }
.activity-item:last-child { border-bottom:none; }
.activity-icon { width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0; }
.activity-text { flex:1;font-size:13px;color:var(--text);line-height:1.5; }
.activity-time { font-size:11px;color:var(--text-muted);white-space:nowrap;margin-top:2px; }

/* ===== DM / PRIVATE MSG ===== */
.dm-layout { display:grid;grid-template-columns:260px 1fr;height:calc(100vh - 130px);background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);overflow:hidden; }
@media(max-width:700px){.dm-layout{grid-template-columns:1fr}}
.dm-list { border-right:1px solid var(--border);overflow-y:auto;background:var(--bg); }
.dm-list-header { padding:14px 16px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--text-muted);border-bottom:1px solid var(--border); }
.dm-item { display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;transition:var(--transition);border-bottom:1px solid var(--border); }
.dm-item:hover,.dm-item.active { background:var(--surface2); }
.dm-item.active { border-left:3px solid var(--primary); }
.dm-avatar { width:38px;height:38px;border-radius:50%;background:var(--grad-main);color:white;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;flex-shrink:0;overflow:hidden; }
.dm-avatar img { width:100%;height:100%;object-fit:cover; }

/* ===== AI INTERVIEWER PREMIUM UI ===== */
.interviewer-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.interviewer-header-text h2 { font-size: 28px; font-weight: 900; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.5px; }
.interviewer-header-text p { color: var(--text-muted); font-size: 14px; font-weight: 500; margin-top: 4px; }

.interviewer-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media(max-width:1024px) { .interviewer-layout { grid-template-columns: 1fr; } }

/* The Stage */
.iv-stage { display: flex; flex-direction: column; gap: 16px; }

.iv-current-q-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.iv-current-q-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--grad-main); }
.iv-q-label { font-size: 12px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.iv-q-text { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.4; }

.video-box-container { position: relative; border-radius: 20px; padding: 4px; background: linear-gradient(135deg, rgba(79,70,229,0.1), transparent); box-shadow: var(--shadow-sm); transition: var(--transition); }
.video-box-container:hover { box-shadow: var(--shadow); }
.video-box { background: #0f0e1a; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-placeholder { text-align: center; color: rgba(255,255,255,0.6); display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.video-placeholder i { font-size: 64px; display: block; margin-bottom: 16px; opacity: 0.8; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
.video-placeholder .vp-text { font-size: 16px; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.5px; }

.iv-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; background: var(--surface); padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.iv-btn { border: none; border-radius: 12px; padding: 0 20px; height: 48px; font-size: 14px; font-weight: 700; font-family: 'Outfit', sans-serif; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); border: 1px solid transparent; }
.iv-btn-cam { background: rgba(79,70,229,0.1); color: var(--primary); }
.iv-btn-cam:hover { background: rgba(79,70,229,0.2); transform: translateY(-2px); border-color: rgba(79,70,229,0.3); }
.iv-btn-stop { background: rgba(239,68,68,0.1); color: var(--danger); }
.iv-btn-stop:hover { background: rgba(239,68,68,0.2); transform: translateY(-2px); border-color: rgba(239,68,68,0.3); }

.record-btn { width: 72px; height: 72px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 28px; transition: var(--transition); flex-shrink: 0; box-shadow: 0 8px 24px rgba(79,70,229,0.3); z-index: 10; position: relative; color: white; margin: 0 10px; }
.record-btn::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: var(--transition); }
.record-btn.idle { background: var(--grad-main); }
.record-btn.idle:hover { transform: scale(1.05); box-shadow: 0 14px 32px rgba(79,70,229,0.4); }
.record-btn.recording { background: var(--danger); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); animation: pulseRecordUI 1.5s infinite; }
@keyframes pulseRecordUI { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); } 70% { box-shadow: 0 0 0 24px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

.iv-hint-box { background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(251,191,36,0.05)); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius-lg); padding: 16px 20px; font-size: 13.5px; color: #b45309; line-height: 1.5; display: flex; gap: 12px; align-items: flex-start; }
[data-theme="dark"] .iv-hint-box { color: #fbbf24; }
.iv-hint-box i { font-size: 18px; margin-top: 2px; }

/* Right Column: Chat & Tracker */
.iv-side { display: flex; flex-direction: column; gap: 16px; height: 100%; }

.iv-tracker { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: -8px; }
.iv-tracker::-webkit-scrollbar { height: 4px; }
.iv-tracker-dot { width: 40px; height: 6px; border-radius: 999px; background: var(--border); flex-shrink: 0; cursor: pointer; transition: var(--transition); }
.iv-tracker-dot.active { background: var(--primary); box-shadow: 0 2px 8px rgba(79,70,229,0.4); transform: scaleY(1.5); }
.iv-tracker-dot.done { background: var(--success); }

.interviewer-chat { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); display: flex; flex-direction: column; height: 600px; box-shadow: var(--shadow-sm); overflow: hidden; position: relative; }
.interviewer-chat-header { background: var(--surface); padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; z-index: 10; }
.interviewer-chat-header-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }
.pulse-live { width: 8px; height: 8px; background: var(--danger); border-radius: 50%; display: inline-block; animation: pulseLive 2s infinite; }
@keyframes pulseLive { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.2)} }

.interviewer-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: var(--bg); position: relative; }
.iv-msg { padding: 14px 18px; border-radius: 16px; font-size: 14px; line-height: 1.6; max-width: 88%; animation: slideInMsg 0.3s ease; position: relative; }
.iv-msg.system { background: rgba(0,0,0,0.05); color: var(--text-muted); text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; align-self: center; border-radius: 999px; padding: 6px 16px; margin: 8px 0; max-width: 100%; box-shadow: none; }
[data-theme="dark"] .iv-msg.system { background: rgba(255,255,255,0.05); }
.iv-msg.ai { background: var(--surface); border: 1px solid var(--border); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.iv-msg.user { background: var(--grad-main); color: white; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 4px 16px rgba(79,70,229,0.2); }

.iv-msg-avatar { position: absolute; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; bottom: -10px; box-shadow: var(--shadow-sm); z-index: 2; }
.iv-msg.ai .iv-msg-avatar { left: -10px; background: var(--surface); border: 1px solid var(--border); color: var(--primary); }
.iv-msg.user .iv-msg-avatar { right: -10px; background: var(--grad-main); color: white; border: 2px solid var(--surface); }

.interviewer-input-area { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 12px; z-index: 10; }
.iv-status-text { position: absolute; bottom: 85px; left: 50%; transform: translateX(-50%); background: var(--surface); padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: var(--shadow); border: 1px solid var(--border); opacity: 0; pointer-events: none; transition: var(--transition); z-index: 20; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.iv-status-text.show { opacity: 1; transform: translateX(-50%) translateY(-10px); }

#iv-text-input { flex: 1; padding: 14px 20px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 14px; font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); transition: var(--transition); }
#iv-text-input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px rgba(79,70,229,0.1); }

.speaking-indicator { display:flex;gap:4px;align-items:flex-end;height:20px;padding:0 4px; }
.speaking-bar { width:4px;background:var(--primary);border-radius:999px;animation:speakBounce 0.8s ease-in-out infinite; }
.speaking-bar:nth-child(2){animation-delay:.15s}
.speaking-bar:nth-child(3){animation-delay:.3s}
.speaking-bar:nth-child(4){animation-delay:.15s}
@keyframes speakBounce { 0%,100%{height:4px}50%{height:16px} }


/* ========== STREAK & CALENDAR ========== */
.streak-banner { background:linear-gradient(135deg,#f97316,#fb923c);border-radius:var(--radius);padding:18px 22px;color:white;display:flex;align-items:center;gap:16px;flex-wrap:wrap; }
.streak-fire { font-size:48px;line-height:1;flex-shrink:0;filter:drop-shadow(0 2px 8px rgba(0,0,0,.2)); }
.streak-info { flex:1 }
.streak-count { font-size:38px;font-weight:900;letter-spacing:-1px;line-height:1 }
.streak-label { font-size:13px;opacity:.9;font-weight:700;margin-top:2px }
.streak-best { font-size:12px;opacity:.75;margin-top:3px }
.streak-stats { display:flex;gap:12px;margin-left:auto }
.streak-stat-box { background:rgba(255,255,255,.18);border-radius:10px;padding:10px 16px;text-align:center }
.streak-stat-box .val { font-size:22px;font-weight:900 }
.streak-stat-box .lbl { font-size:10px;opacity:.8;font-weight:700;text-transform:uppercase;letter-spacing:.5px }

/* Month Calendar */
.month-calendar { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:14px;box-shadow:var(--shadow-sm); max-width: 320px; margin:0 auto; }
.calendar-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:14px }
.calendar-title { font-size:15px;font-weight:800;color:var(--text) }
.cal-nav-btn { width:30px;height:30px;border-radius:8px;border:1.5px solid var(--border);background:var(--surface);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:13px;transition:var(--transition) }
.cal-nav-btn:hover { background:var(--primary);color:white;border-color:var(--primary) }
.calendar-grid { display:grid;grid-template-columns:repeat(7,1fr);gap:2px }
.cal-day-label { text-align:center;font-size:10px;font-weight:800;color:var(--text-muted);padding:4px 0;text-transform:uppercase }
.cal-day { aspect-ratio:1;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;cursor:default;transition:var(--transition);position:relative }
.cal-day.empty { background:transparent }
.cal-day.active { background:linear-gradient(135deg,#10b981,#34d399);color:white;box-shadow:0 2px 8px rgba(16,185,129,.35) }
.cal-day.active::after { content:'';position:absolute;bottom:3px;left:50%;transform:translateX(-50%);width:4px;height:4px;background:rgba(255,255,255,.7);border-radius:50% }
.cal-day.today { border:2px solid var(--primary) }
.cal-day.today.active { border-color:white }
.cal-day.inactive { background:var(--bg2);color:var(--text-muted) }
.cal-day.future { background:transparent;color:var(--text-muted);opacity:.3 }
.cal-legend { display:flex;gap:14px;margin-top:10px;font-size:12px;color:var(--text-muted);font-weight:600 }
.cal-legend span { display:flex;align-items:center;gap:5px }
.cal-dot { width:12px;height:12px;border-radius:3px;flex-shrink:0 }
/* TARGET TIMELINE */
.target-timeline { position:relative; padding:20px 0; }
.target-timeline::before { content:''; position:absolute; left:31px; top:0; bottom:0; width:2px; background:var(--border); border-radius:1px; }
.target-card { position:relative; margin-left:70px; margin-bottom:40px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; transition:var(--transition); animation: fadeUp .5s ease backwards; }
.target-card:hover { transform: translateX(10px); border-color: var(--primary); box-shadow: var(--shadow); }
.target-card.current { border: 2px solid var(--primary); background: linear-gradient(to right, var(--surface), rgba(79, 70, 229, 0.05)); }
.target-card.current::before { content:'CURRENT'; position:absolute; top:-12px; right:20px; background:var(--primary); color:white; font-size:10px; font-weight:900; padding:4px 12px; border-radius:999px; letter-spacing:1px; }
.target-dot { position:absolute; left:-48px; top:24px; width:18px; height:18px; border-radius:50%; background:var(--border); border:4px solid var(--surface); z-index:2; transition:var(--transition); }
.target-card.current .target-dot { background:var(--primary); transform:scale(1.3); box-shadow:0 0 0 4px rgba(79, 70, 229, 0.2); }
.target-year { font-size:12px; font-weight:800; color:var(--primary); text-transform:uppercase; letter-spacing:1px; margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.target-title { font-size:18px; font-weight:900; margin-bottom:16px; color:var(--text); }
.chat-input-area { padding:14px 18px;border-top:1px solid var(--border);background:rgba(255,255,255,0.7);backdrop-filter:blur(10px);display:flex;align-items:flex-end;gap:12px;z-index:10; }
[data-theme="dark"] .chat-input-area { background:rgba(30,28,53,0.7); }
.chat-input-box { flex:1;padding:12px 18px;border:1.5px solid var(--border);border-radius:24px;font-size:14px;font-family:'Outfit',sans-serif;background:var(--bg);color:var(--text);resize:none;min-height:46px;max-height:140px;line-height:1.5;box-shadow:inset 0 2px 4px rgba(0,0,0,0.02);transition:var(--transition); }
.chat-input-box:focus { outline:none;border-color:var(--primary);box-shadow:0 0 0 4px rgba(79,70,229,0.1);background:var(--surface); }
.chat-send-btn { width:46px;height:46px;border-radius:50%;background:var(--grad-main);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:white;font-size:17px;flex-shrink:0;transition:var(--transition);box-shadow:0 4px 12px rgba(79,70,229,0.3); }
.chat-send-btn:hover { transform:scale(1.08) translateY(-2px);box-shadow:0 6px 16px rgba(79,70,229,0.4); }
.chat-typing { font-size:12px;color:var(--text-muted);padding:2px 24px 8px;font-style:italic;font-weight:600;min-height:22px; }
.chat-emoji-bar { display:flex;gap:6px;padding:0 16px 8px;flex-wrap:wrap; }
.emoji-btn { background:none;border:none;font-size:18px;cursor:pointer;padding:2px 4px;border-radius:6px;transition:var(--transition); }
.emoji-btn:hover { background:var(--surface2);transform:scale(1.2); }
.online-users-bar { padding:8px 16px;border-bottom:1px solid var(--border);display:flex;gap:6px;align-items:center;overflow-x:auto;background:var(--surface);min-height:52px; }
.online-user-chip { display:flex;align-items:center;gap:6px;padding:4px 10px;background:var(--bg);border-radius:999px;border:1px solid var(--border);white-space:nowrap;font-size:12px;font-weight:600; }
.online-user-chip .chip-avatar { width:22px;height:22px;border-radius:50%;background:var(--grad-main);display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:800;color:white;overflow:hidden;flex-shrink:0; }
.online-user-chip .chip-avatar img { width:100%;height:100%;object-fit:cover; }
.no-room-selected { flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--text-muted); }
.no-room-selected i { font-size:52px;opacity:.2; }


/* ===== GOALS ===== */
.goal-card { background:rgba(255,255,255,0.05); backdrop-filter:blur(8px); border-radius:var(--radius-lg); border:1px solid rgba(255,255,255,0.3); padding:24px; box-shadow:0 8px 32px rgba(79,70,229,0.1); margin-bottom:18px; transition:var(--transition); position:relative; overflow:hidden;}
.goal-card:hover { transform:translateY(-5px); box-shadow:0 14px 48px rgba(79,70,229,0.18); border-color:var(--primary-light); }
.goal-card::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,0.6) 0%,transparent 100%); z-index:0; pointer-events:none; }
[data-theme="dark"] .goal-card { background:rgba(0,0,0,0.2); border-color:var(--border); }
[data-theme="dark"] .goal-card::before { background:linear-gradient(135deg,rgba(255,255,255,0.02) 0%,transparent 100%); }
.goal-card > * { position:relative; z-index:1; }
.goal-progress-bar { height:12px; background:var(--bg2); border-radius:999px; overflow:hidden; margin:14px 0 6px; box-shadow:inset 0 2px 4px rgba(0,0,0,0.05); }
.goal-progress-fill { height:100%; border-radius:999px; transition:width 1s cubic-bezier(.34,1.56,.64,1); background:var(--grad-main); box-shadow:0 2px 8px rgba(79,70,229,0.4); }
.goal-status-badge { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:999px; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.5px; box-shadow:0 2px 8px rgba(0,0,0,0.05); }

/* ===== ANNOUNCEMENTS ===== */
.announce-card { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow-sm);overflow:hidden;margin-bottom:14px; }
.announce-banner { padding:4px 14px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.8px; }
.announce-body { padding:16px 18px; }
.announce-title { font-size:15px;font-weight:800;margin-bottom:6px; }
.announce-meta { font-size:12px;color:var(--text-muted);display:flex;gap:12px;flex-wrap:wrap; }
.announce-content { font-size:13px;color:var(--text-muted);margin-top:8px;line-height:1.6; }
.priority-high { background:#fee2e2;color:#991b1b; }
.priority-medium { background:#fef3c7;color:#92400e; }
.priority-low { background:#d1fae5;color:#065f46; }

/* ===== MOCK TEST ===== */
.quiz-card { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:22px;box-shadow:var(--shadow-sm); }
.quiz-option { display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:var(--radius-sm);border:2px solid var(--border);cursor:pointer;margin-bottom:9px;transition:var(--transition);background:var(--bg); }
.quiz-option:hover { border-color:var(--primary);background:rgba(79,70,229,.05); }
.quiz-option.selected { border-color:var(--primary);background:rgba(79,70,229,.1); }
.quiz-option.correct { border-color:var(--success);background:rgba(16,185,129,.1); }
.quiz-option.wrong { border-color:var(--danger);background:rgba(244,63,94,.1); }
.quiz-timer { font-size:28px;font-weight:900;color:var(--primary);font-family:'JetBrains Mono',monospace; }
.quiz-timer.danger { color:var(--danger);animation:pulse 1s infinite; }
.test-card { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:20px;box-shadow:var(--shadow-sm);margin-bottom:14px;cursor:pointer;transition:var(--transition); }
.test-card:hover { box-shadow:var(--shadow);transform:translateY(-2px); }

/* ===== ACTIVITY FEED ===== */
.activity-item { display:flex;gap:13px;padding:12px 0;border-bottom:1px solid var(--border); }
.activity-item:last-child { border-bottom:none; }
.activity-icon { width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0; }
.activity-text { flex:1;font-size:13px;color:var(--text);line-height:1.5; }
.activity-time { font-size:11px;color:var(--text-muted);white-space:nowrap;margin-top:2px; }

/* ===== DM / PRIVATE MSG ===== */
.dm-layout { display:grid;grid-template-columns:260px 1fr;height:calc(100vh - 130px);background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);overflow:hidden; }
@media(max-width:700px){.dm-layout{grid-template-columns:1fr}}
.dm-list { border-right:1px solid var(--border);overflow-y:auto;background:var(--bg); }
.dm-list-header { padding:14px 16px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--text-muted);border-bottom:1px solid var(--border); }
.dm-item { display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;transition:var(--transition);border-bottom:1px solid var(--border); }
.dm-item:hover,.dm-item.active { background:var(--surface2); }
.dm-item.active { border-left:3px solid var(--primary); }
.dm-avatar { width:38px;height:38px;border-radius:50%;background:var(--grad-main);color:white;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;flex-shrink:0;overflow:hidden; }
.dm-avatar img { width:100%;height:100%;object-fit:cover; }

/* ===== AI INTERVIEWER PREMIUM UI ===== */
.interviewer-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.interviewer-header-text h2 { font-size: 28px; font-weight: 900; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.5px; }
.interviewer-header-text p { color: var(--text-muted); font-size: 14px; font-weight: 500; margin-top: 4px; }

.interviewer-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media(max-width:1024px) { .interviewer-layout { grid-template-columns: 1fr; } }

/* The Stage */
.iv-stage { display: flex; flex-direction: column; gap: 16px; }

.iv-current-q-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.iv-current-q-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--grad-main); }
.iv-q-label { font-size: 12px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.iv-q-text { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.4; }

.video-box-container { position: relative; border-radius: 20px; padding: 4px; background: linear-gradient(135deg, rgba(79,70,229,0.1), transparent); box-shadow: var(--shadow-sm); transition: var(--transition); }
.video-box-container:hover { box-shadow: var(--shadow); }
.video-box { background: #0f0e1a; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-placeholder { text-align: center; color: rgba(255,255,255,0.6); display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.video-placeholder i { font-size: 64px; display: block; margin-bottom: 16px; opacity: 0.8; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
.video-placeholder .vp-text { font-size: 16px; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.5px; }

.iv-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; background: var(--surface); padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.iv-btn { border: none; border-radius: 12px; padding: 0 20px; height: 48px; font-size: 14px; font-weight: 700; font-family: 'Outfit', sans-serif; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); border: 1px solid transparent; }
.iv-btn-cam { background: rgba(79,70,229,0.1); color: var(--primary); }
.iv-btn-cam:hover { background: rgba(79,70,229,0.2); transform: translateY(-2px); border-color: rgba(79,70,229,0.3); }
.iv-btn-stop { background: rgba(239,68,68,0.1); color: var(--danger); }
.iv-btn-stop:hover { background: rgba(239,68,68,0.2); transform: translateY(-2px); border-color: rgba(239,68,68,0.3); }

.record-btn { width: 72px; height: 72px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 28px; transition: var(--transition); flex-shrink: 0; box-shadow: 0 8px 24px rgba(79,70,229,0.3); z-index: 10; position: relative; color: white; margin: 0 10px; }
.record-btn::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: var(--transition); }
.record-btn.idle { background: var(--grad-main); }
.record-btn.idle:hover { transform: scale(1.05); box-shadow: 0 14px 32px rgba(79,70,229,0.4); }
.record-btn.recording { background: var(--danger); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); animation: pulseRecordUI 1.5s infinite; }
@keyframes pulseRecordUI { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); } 70% { box-shadow: 0 0 0 24px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

.iv-hint-box { background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(251,191,36,0.05)); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius-lg); padding: 16px 20px; font-size: 13.5px; color: #b45309; line-height: 1.5; display: flex; gap: 12px; align-items: flex-start; }
[data-theme="dark"] .iv-hint-box { color: #fbbf24; }
.iv-hint-box i { font-size: 18px; margin-top: 2px; }

/* Right Column: Chat & Tracker */
.iv-side { display: flex; flex-direction: column; gap: 16px; height: 100%; }

.iv-tracker { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: -8px; }
.iv-tracker::-webkit-scrollbar { height: 4px; }
.iv-tracker-dot { width: 40px; height: 6px; border-radius: 999px; background: var(--border); flex-shrink: 0; cursor: pointer; transition: var(--transition); }
.iv-tracker-dot.active { background: var(--primary); box-shadow: 0 2px 8px rgba(79,70,229,0.4); transform: scaleY(1.5); }
.iv-tracker-dot.done { background: var(--success); }

.interviewer-chat { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); display: flex; flex-direction: column; height: 600px; box-shadow: var(--shadow-sm); overflow: hidden; position: relative; }
.interviewer-chat-header { background: var(--surface); padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; z-index: 10; }
.interviewer-chat-header-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }
.pulse-live { width: 8px; height: 8px; background: var(--danger); border-radius: 50%; display: inline-block; animation: pulseLive 2s infinite; }
@keyframes pulseLive { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.2)} }

.interviewer-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: var(--bg); position: relative; }
.iv-msg { padding: 14px 18px; border-radius: 16px; font-size: 14px; line-height: 1.6; max-width: 88%; animation: slideInMsg 0.3s ease; position: relative; }
.iv-msg.system { background: rgba(0,0,0,0.05); color: var(--text-muted); text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; align-self: center; border-radius: 999px; padding: 6px 16px; margin: 8px 0; max-width: 100%; box-shadow: none; }
[data-theme="dark"] .iv-msg.system { background: rgba(255,255,255,0.05); }
.iv-msg.ai { background: var(--surface); border: 1px solid var(--border); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.iv-msg.user { background: var(--grad-main); color: white; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 4px 16px rgba(79,70,229,0.2); }

.iv-msg-avatar { position: absolute; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; bottom: -10px; box-shadow: var(--shadow-sm); z-index: 2; }
.iv-msg.ai .iv-msg-avatar { left: -10px; background: var(--surface); border: 1px solid var(--border); color: var(--primary); }
.iv-msg.user .iv-msg-avatar { right: -10px; background: var(--grad-main); color: white; border: 2px solid var(--surface); }

.interviewer-input-area { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 12px; z-index: 10; }
.iv-status-text { position: absolute; bottom: 85px; left: 50%; transform: translateX(-50%); background: var(--surface); padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: var(--shadow); border: 1px solid var(--border); opacity: 0; pointer-events: none; transition: var(--transition); z-index: 20; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.iv-status-text.show { opacity: 1; transform: translateX(-50%) translateY(-10px); }

#iv-text-input { flex: 1; padding: 14px 20px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 14px; font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); transition: var(--transition); }
#iv-text-input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px rgba(79,70,229,0.1); }

.speaking-indicator { display:flex;gap:4px;align-items:flex-end;height:20px;padding:0 4px; }
.speaking-bar { width:4px;background:var(--primary);border-radius:999px;animation:speakBounce 0.8s ease-in-out infinite; }
.speaking-bar:nth-child(2){animation-delay:.15s}
.speaking-bar:nth-child(3){animation-delay:.3s}
.speaking-bar:nth-child(4){animation-delay:.15s}
@keyframes speakBounce { 0%,100%{height:4px}50%{height:16px} }


/* ========== STREAK & CALENDAR ========== */
.streak-banner { background:linear-gradient(135deg,#f97316,#fb923c);border-radius:var(--radius);padding:18px 22px;color:white;display:flex;align-items:center;gap:16px;flex-wrap:wrap; }
.streak-fire { font-size:48px;line-height:1;flex-shrink:0;filter:drop-shadow(0 2px 8px rgba(0,0,0,.2)); }
.streak-info { flex:1 }
.streak-count { font-size:38px;font-weight:900;letter-spacing:-1px;line-height:1 }
.streak-label { font-size:13px;opacity:.9;font-weight:700;margin-top:2px }
.streak-best { font-size:12px;opacity:.75;margin-top:3px }
.streak-stats { display:flex;gap:12px;margin-left:auto }
.streak-stat-box { background:rgba(255,255,255,.18);border-radius:10px;padding:10px 16px;text-align:center }
.streak-stat-box .val { font-size:22px;font-weight:900 }
.streak-stat-box .lbl { font-size:10px;opacity:.8;font-weight:700;text-transform:uppercase;letter-spacing:.5px }

/* Month Calendar */
.month-calendar { background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:14px;box-shadow:var(--shadow-sm); max-width: 320px; margin:0 auto; }
.calendar-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:14px }
.calendar-title { font-size:15px;font-weight:800;color:var(--text) }
.cal-nav-btn { width:30px;height:30px;border-radius:8px;border:1.5px solid var(--border);background:var(--surface);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:13px;transition:var(--transition) }
.cal-nav-btn:hover { background:var(--primary);color:white;border-color:var(--primary) }
.calendar-grid { display:grid;grid-template-columns:repeat(7,1fr);gap:2px }
.cal-day-label { text-align:center;font-size:10px;font-weight:800;color:var(--text-muted);padding:4px 0;text-transform:uppercase }
.cal-day { aspect-ratio:1;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;cursor:default;transition:var(--transition);position:relative }
.cal-day.empty { background:transparent }
.cal-day.active { background:linear-gradient(135deg,#10b981,#34d399);color:white;box-shadow:0 2px 8px rgba(16,185,129,.35) }
.cal-day.active::after { content:'';position:absolute;bottom:3px;left:50%;transform:translateX(-50%);width:4px;height:4px;background:rgba(255,255,255,.7);border-radius:50% }
.cal-day.today { border:2px solid var(--primary) }
.cal-day.today.active { border-color:white }
.cal-day.inactive { background:var(--bg2);color:var(--text-muted) }
.cal-day.future { background:transparent;color:var(--text-muted);opacity:.3 }
.cal-legend { display:flex;gap:14px;margin-top:10px;font-size:12px;color:var(--text-muted);font-weight:600 }
.cal-legend span { display:flex;align-items:center;gap:5px }
.cal-dot { width:12px;height:12px;border-radius:3px;flex-shrink:0 }
/* TARGET TIMELINE */
.target-timeline { position:relative; padding:20px 0; }
.target-timeline::before { content:''; position:absolute; left:31px; top:0; bottom:0; width:2px; background:var(--border); border-radius:1px; }
.target-card { position:relative; margin-left:70px; margin-bottom:40px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; transition:var(--transition); animation: fadeUp .5s ease backwards; }
.target-card:hover { transform: translateX(10px); border-color: var(--primary); box-shadow: var(--shadow); }
.target-card.current { border: 2px solid var(--primary); background: linear-gradient(to right, var(--surface), rgba(79, 70, 229, 0.05)); }
.target-card.current::before { content:'CURRENT'; position:absolute; top:-12px; right:20px; background:var(--primary); color:white; font-size:10px; font-weight:900; padding:4px 12px; border-radius:999px; letter-spacing:1px; }
.target-dot { position:absolute; left:-48px; top:24px; width:18px; height:18px; border-radius:50%; background:var(--border); border:4px solid var(--surface); z-index:2; transition:var(--transition); }
.target-card.current .target-dot { background:var(--primary); transform:scale(1.3); box-shadow:0 0 0 4px rgba(79, 70, 229, 0.2); }
.target-year { font-size:12px; font-weight:800; color:var(--primary); text-transform:uppercase; letter-spacing:1px; margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.target-title { font-size:18px; font-weight:900; margin-bottom:16px; color:var(--text); }
.target-list { list-style:none; display:grid; gap:12px; }
.target-list li { display:flex; gap:12px; font-size:14px; color:var(--text-muted); align-items:flex-start; }
.target-list li i { color:var(--primary); font-size:14px; margin-top:4px; flex-shrink:0; }
.target-list li strong { color:var(--text); font-weight:700; }

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

/* CHEAT WARNING OVERLAY */
.cheat-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); z-index:10000; display:flex; align-items:center; justify-content:center; padding:20px; text-align:center; color:white; backdrop-filter:blur(8px); }
.cheat-overlay-content { max-width:450px; background:var(--surface); padding:40px; border-radius:24px; border:1px solid var(--border); box-shadow:var(--shadow-2xl); }
.cheat-overlay-icon { font-size:60px; color:var(--danger); margin-bottom:20px; animation: pulse 2s infinite; }
.cheat-overlay-title { font-size:22px; font-weight:900; margin-bottom:12px; color:var(--text); }
.cheat-overlay-msg { color:var(--text-muted); margin-bottom:24px; line-height:1.6; }
.cheat-btn { background:var(--primary); color:white; border:none; padding:12px 30px; border-radius:12px; font-weight:700; cursor:pointer; transition:var(--transition); font-size:16px; }
.cheat-btn:hover { background:var(--primary-dark); transform:translateY(-2px); box-shadow:var(--shadow-lg); }

/* TEST BUILDER UI */
.test-builder-container { display:grid; grid-template-columns:300px 1fr; gap:30px; height:calc(100vh - 120px); overflow:hidden; margin-top:10px; }
@media(max-width:900px){ .test-builder-container { grid-template-columns:1fr; overflow:auto; height:auto; } }
.test-builder-sidebar { position:sticky; top:0; background:var(--bg); }
.test-builder-main { overflow-y:auto; padding-right:10px; }
.test-builder-main::-webkit-scrollbar { width:6px; }
.test-builder-main::-webkit-scrollbar-thumb { background:var(--border); border-radius:10px; }
.question-build-card { transition:var(--transition); border:1.5px solid var(--border); margin-bottom:10px; }
.question-build-card:focus-within { border-color:var(--primary); box-shadow:var(--shadow); }
.badge-primary { background:var(--primary); color:white; padding:4px 8px; border-radius:6px; font-size:11px; font-weight:800; }
