/* =============================================
   MOHIT UNIVERSITY — Global Design System
   Premium Dark Glassmorphism UI
   ============================================= */

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

/* ── CSS Variables ── */
:root {
  --bg-dark:       #0a0e1a;
  --bg-card:       rgba(255,255,255,0.05);
  --bg-card-hover: rgba(255,255,255,0.09);
  --border:        rgba(255,255,255,0.1);
  --accent:        #6c63ff;
  --accent2:       #f72585;
  --accent3:       #43e97b;
  --sidebar-w:     260px;
  --text:          #e8eaf6;
  --text-muted:    #8892b0;
  --shadow:        0 8px 32px rgba(0,0,0,0.5);
  --radius:        14px;
  --radius-sm:     8px;
  --transition:    all 0.3s cubic-bezier(.4,0,.2,1);
  --glass:         blur(16px) saturate(180%);
  --anim-entry:    entryScale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px var(--accent); }
  50% { box-shadow: 0 0 20px var(--accent); }
  100% { box-shadow: 0 0 5px var(--accent); }
}

.animate-entry { animation: var(--anim-entry); }
.glow-pulse { animation: pulseGlow 2s infinite; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  height: auto;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
input, textarea { user-select: auto; -webkit-user-select: auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(var(--accent), var(--accent2)); 
  border-radius: 10px;
  border: 2px solid #0a0e1a;
}

/* ── Custom Glow Cursor ── */
#cursor-glow {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
  position: fixed; pointer-events: none;
  z-index: 9999; transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 10000; transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--accent);
}

/* ── Animated Background Gradient ── */
.bg-animated {
  background: linear-gradient(135deg, #0a0e1a 0%, #141430 35%, #0d1b2a 70%, #0a0e1a 100%);
  position: relative;
  overflow: visible !important; /* Force overflow visible */
}
.bg-animated::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(247,37,133,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(67,233,123,0.06) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes bgPulse {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}

/* ── Glass Card ── */
.glass {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.glass:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}
.btn-success {
  background: linear-gradient(135deg, var(--accent3), #22c55e);
  color: #111;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--bg-card-hover); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Form Elements ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.2);
  background: rgba(108,99,255,0.08);
}
.form-control::placeholder { color: rgba(255,255,255,0.3); }
.form-control option { background: #1a1a2e; color: var(--text); }

/* ── Landing Auth Card ── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 480px;
  padding: 40px 36px;
}
@media (max-width: 480px) {
  .auth-card { padding: 30px 20px; }
  .auth-logo .logo-icon { font-size: 40px; }
  .auth-logo h1 { font-size: 1.25rem; }
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-icon { font-size: 52px; }
.auth-logo h1 { font-size: 22px; font-weight: 800; margin-top: 8px; }
.auth-logo p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ── Dashboard Layout ── */
.dashboard {
  display: flex;
  min-height: 100vh;
  background: var(--bg-dark);
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: relative; /* NO LONGER FIXED */
  z-index: 100;
  flex-shrink: 0;
}
.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-brand .brand-icon { font-size: 28px; }
.sidebar-brand h2 { font-size: 16px; font-weight: 700; line-height: 1.2; }
.sidebar-brand span { font-size: 11px; color: var(--accent); font-weight: 500; }
.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.nav-section { padding: 6px 20px 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  border-left: 3px solid transparent;
  margin: 1px 0;
}
.nav-item:hover { background: var(--bg-card); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(108,99,255,0.15), transparent);
  color: var(--text);
  border-left-color: var(--accent);
}
.nav-item .nav-icon { font-size: 18px; width: 22px; text-align: center; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sidebar-user .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
}
.sidebar-user .user-info .u-name { font-size: 13px; font-weight: 600; }
.sidebar-user .user-info .u-role { font-size: 11px; color: var(--text-muted); }

/* ── Main Content ── */
.main-content {
  flex: 1;
  padding: 32px;
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
}
.tab-content {
  display: none;
  min-height: 100%; /* Ensure it takes full space */
  padding-bottom: 100px; /* Extra space at bottom to reach buttons */
}
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 800; }
.page-header p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ── Tab Content ── */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Stat Cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  padding: 24px 20px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 0 0 0 80px;
  background: rgba(255,255,255,0.04);
}
.stat-card .stat-icon { font-size: 32px; margin-bottom: 12px; }
.stat-card .stat-value { font-size: 32px; font-weight: 800; line-height: 1; }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.stat-card .stat-change { font-size: 11px; margin-top: 8px; }
.stat-card .stat-change.up { color: var(--accent3); }
.stat-card .stat-change.down { color: var(--accent2); }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: rgba(255,255,255,0.05);
  padding: 14px 16px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); text-align: left;
}
tbody tr {
  border-top: 1px solid var(--border);
  transition: var(--transition);
}
tbody tr:hover { background: var(--bg-card-hover); }
tbody td { padding: 13px 16px; font-size: 14px; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
}
.badge-purple { background: rgba(108,99,255,0.2); color: #a78bfa; }
.badge-green  { background: rgba(67,233,123,0.15); color: #4ade80; }
.badge-red    { background: rgba(239,68,68,0.15);  color: #f87171; }
.badge-blue   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-yellow { background: rgba(234,179,8,0.15);  color: #facc15; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  padding: 32px;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h2 { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  animation: slideIn 0.3s ease;
  min-width: 260px;
}
.toast-success { background: rgba(67,233,123,0.15); border-color: rgba(67,233,123,0.3); }
.toast-error   { background: rgba(239,68,68,0.15);  border-color: rgba(239,68,68,0.3); }
.toast-info    { background: rgba(108,99,255,0.15); border-color: rgba(108,99,255,0.3); }
@keyframes slideIn { from { transform: translateX(100px); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* ── Chat UI ── */
.chat-container { display: flex; height: calc(100vh - 180px); gap: 20px; }
.chat-list {
  width: 260px; min-width: 260px;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
}
.chat-list-header { padding: 16px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--border); }
.chat-room-item {
  padding: 14px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}
.chat-room-item:hover, .chat-room-item.active { background: var(--bg-card-hover); }
.chat-room-item .room-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.chat-room-item .room-name { font-size: 14px; font-weight: 600; }
.chat-room-item .room-preview { font-size: 12px; color: var(--text-muted); }

.chat-window { flex: 1; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.message { display: flex; gap: 10px; }
.message.own { flex-direction: row-reverse; }
.msg-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.msg-bubble {
  max-width: 70%; padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  font-size: 14px; line-height: 1.5;
  background: var(--bg-card);
}
.message.own .msg-bubble { border-radius: 16px 16px 4px 16px; background: rgba(108,99,255,0.25); }
.msg-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.msg-actions { display: none; gap: 4px; margin-top: 4px; }
.msg-bubble:hover + .msg-actions, .msg-actions:hover { display: flex; }

.chat-input-row { padding: 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-input { flex: 1; }

/* ── Viva UI ── */
.viva-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.video-box {
  border-radius: var(--radius);
  overflow: hidden; position: relative;
  background: #000; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.video-box video { width: 100%; max-height: 320px; object-fit: cover; }
.viva-overlay {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.expression-tag {
  padding: 4px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  background: rgba(108,99,255,0.7);
  backdrop-filter: blur(6px);
}
.viva-panel { display: flex; flex-direction: column; gap: 16px; }
.transcript-box {
  flex: 1; padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  min-height: 140px; font-size: 14px;
  color: var(--text-muted); line-height: 1.6;
}
.score-meter { display: flex; flex-direction: column; gap: 10px; }
.meter-row { display: flex; flex-direction: column; gap: 4px; }
.meter-label { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; }
.meter-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.6s ease; }

/* ── AI Chatbot Premium UI ── */
.chatbot-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.chatbot-header {
  padding: 16px 20px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.chatbot-header .status-dot {
  width: 10px; height: 10px;
  background: #43e97b;
  border-radius: 50%;
  box-shadow: 0 0 10px #43e97b;
}
.chatbot-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-image: radial-gradient(rgba(108,99,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.bot-msg, .user-msg {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: slideIn 0.3s ease;
}
.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.bot-avatar { background: linear-gradient(135deg, var(--accent), #8b5cf6); }
.user-avatar { background: linear-gradient(135deg, var(--accent2), #ec4899); }

.bubble {
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.bot-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
  color: var(--text);
}
.user-bubble {
  background: var(--accent);
  color: #fff;
  border-top-right-radius: 4px;
}
.chatbot-input-row {
  padding: 16px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border);
  display: flex; gap: 12px;
}
.typing {
  display: flex; gap: 4px; padding: 10px;
}
.typing span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ── Score Result Card ── */
.result-card { padding: 28px; text-align: center; }
.result-grade {
  font-size: 72px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.result-score { font-size: 18px; color: var(--text-muted); margin-top: 8px; }

/* ── Progress Ring ── */
.progress-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .ring-text {
  position: absolute;
  font-size: 20px; font-weight: 800;
}

/* ── Responsive ── */
@media(max-width: 900px) {
  .sidebar { 
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%); 
    transition: var(--transition);
    background: rgba(10,14,26,0.98);
    width: 280px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 50px rgba(0,0,0,0.8); }
  
  .sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: 95; display: none; opacity: 0; transition: var(--transition);
  }
  .sidebar-overlay.active { display: block; opacity: 1; }

  .main-content { margin-left: 0; padding: 16px; padding-top: 80px; padding-bottom: 90px; }
  .viva-container { grid-template-columns: 1fr; }
  .chat-container { flex-direction: column; height: auto; }
  .chat-list { width: 100%; min-width: unset; height: 180px; }
  .chat-window { height: 400px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Show Bottom Nav on Mobile */
  .bottom-nav { display: flex !important; }
}

@media(max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 20px; }
  .btn { padding: 12px 20px; font-size: 14px; border-radius: 12px; } /* Bigger touch targets */
  .form-control { padding: 14px; font-size: 16px; } /* Prevent auto-zoom on iOS */
}

/* ── Bottom Navigation Bar (App-like) ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 70px; background: rgba(10,14,26,0.95);
  backdrop-filter: blur(20px); border-top: 1px solid var(--border);
  display: none; align-items: center; justify-content: space-around;
  z-index: 500; padding: 0 10px;
}
.b-nav-item {
  display: flex; flex-direction: column; align-items: center;
  color: var(--text-muted); text-decoration: none; font-size: 10px; font-weight: 600;
  gap: 4px; transition: var(--transition);
}
.b-nav-item .icon { font-size: 20px; }
.b-nav-item.active { color: var(--accent); }
.b-nav-item.active .icon { transform: translateY(-2px); }

/* ── Haptic/Ripple Simulation ── */
.btn:active { transform: scale(0.96); opacity: 0.8; }

/* ── Landing Page Responsive ── */
@media(max-width:900px){
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .roles-grid, .flow-steps { grid-template-columns: 1fr; flex-direction:column; }
  .founder-inner { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
  .founder-socials { justify-content: center; }
  .stats-bar { gap: 30px; flex-wrap: wrap; padding: 30px 20px; }
  .navbar .nav-links { display: none; }
  .navbar .nav-actions { display: none; }
  .flow-step:not(:last-child)::after { display: none; }
  .section { padding: 60px 20px; }
  .navbar { padding: 12px 20px; }
}
@media(max-width:600px){
  .hero-visual { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 15px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px;
  background: rgba(10,14,26,0.98); backdrop-filter: blur(20px);
  z-index: 1000; transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px 30px; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 24px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-size: 1.25rem; font-weight: 700; color: var(--text); text-decoration: none; }
.mobile-nav .close-nav { align-self: flex-end; font-size: 2rem; cursor: pointer; color: var(--text-muted); }

/* ── Mobile Header ── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(10,14,26,0.8);
  backdrop-filter: blur(10px);
  z-index: 90;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

@media(max-width: 900px) {
  .mobile-header { display: flex; }
}

.menu-toggle {
  background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer;
}

/* ── Attendance Scanning Effect ── */
.scanning-line {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent3);
  box-shadow: 0 0 15px var(--accent3);
  animation: scan 2s linear infinite;
  z-index: 10;
  display: none;
}
@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

.scanner-overlay {
  position: absolute; inset: 0;
  background: rgba(67,233,123,0.05);
  border: 2px solid var(--accent3);
  pointer-events: none;
  display: none;
  z-index: 5;
}

/* ── Thinking / AI Loading ── */
.ai-thinking {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent);
}
.ai-thinking .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  animation: aiPulse 1s infinite alternate;
}
.ai-thinking .dot:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiPulse { from { opacity: 0.3; transform: scale(0.8); } to { opacity: 1; transform: scale(1.1); } }

/* ── Quiz & Leaderboard ── */
.quiz-card { padding: 24px; margin-bottom: 20px; border: 2px solid var(--accent); position: relative; }
.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.quiz-question { margin-bottom: 16px; padding: 16px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); }
.opt-label { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; transition: var(--transition); }
.opt-label:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.opt-label input { accent-color: var(--accent); }

.leaderboard-card { padding: 24px; }
.lb-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.lb-rank { width: 30px; font-weight: 800; font-size: 18px; text-align: center; }
.lb-rank-1 { color: #ffd700; } /* Gold */
.lb-rank-2 { color: #c0c0c0; } /* Silver */
.lb-rank-3 { color: #cd7f32; } /* Bronze */
.lb-name { flex: 1; font-weight: 600; }
.lb-score { font-weight: 800; color: var(--accent3); }

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.mb-16 { margin-bottom: 16px; }

/* ── Community & Revolution ── */
.revolution-feed { margin-top: 40px; padding: 20px; }
.rev-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: rgba(255,255,255,0.02); border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--border); animation: slideIn 0.4s ease; }
.rev-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.rev-info { flex: 1; }
.rev-name { font-weight: 700; font-size: 15px; }
.rev-role { font-size: 12px; color: var(--accent3); font-weight: 600; text-transform: uppercase; }
.rev-time { font-size: 11px; color: var(--text-muted); }

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

/* ── Infinite Scroll Revert ── */
body, html, .dashboard, .main-content {
  overflow: visible !important;
  height: auto !important;
}