/* ============================
   EDULOOP — style.css
   ============================ */

:root {
  --blue: #2563EB;
  --blue-dark: #1d4ed8;
  --blue-light: #EFF6FF;
  --blue-mid: #DBEAFE;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --green: #10B981;
  --green-light: #D1FAE5;
  --red: #EF4444;
  --red-light: #FEE2E2;
  --purple: #8B5CF6;
  --purple-light: #EDE9FE;
  --ink: #0F172A;
  --ink-mid: #334155;
  --ink-faint: #64748B;
  --border: #E2E8F0;
  --border-mid: #CBD5E1;
  --surface: #FFFFFF;
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6; min-height: 100vh; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; }

.hidden { display: none !important; }
.muted-sm { color: var(--ink-faint); font-size: 13px; margin-top: 8px; }
.mt16 { margin-top: 16px; }

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
  background: var(--blue); color: white; border: none;
  padding: 10px 22px; border-radius: 10px;
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.full { width: 100%; }

.btn-ghost {
  background: transparent; color: var(--ink-mid);
  border: 1.5px solid var(--border-mid); padding: 10px 22px;
  border-radius: 10px; font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }

.btn-icon {
  background: transparent; border: none; cursor: pointer;
  padding: 5px 10px; border-radius: 8px; color: var(--ink-faint);
  font-size: 13px; transition: background 0.15s, color 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'DM Sans', sans-serif;
}
.btn-icon:hover { background: var(--bg-alt); color: var(--blue); }

/* ============================
   ONBOARDING
   ============================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; animation: fadeIn 0.3s ease;
}
.onboard-card {
  background: white; border-radius: var(--radius-lg);
  padding: 40px; width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg); animation: slideUp 0.4s ease;
}
/* Wider card for the module selection step */
.onboard-card-wide { max-width: 620px; }

/* ============================
   MODULE SELECTION — ONBOARDING STEP 3
   ============================ */
.module-search-wrap {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 9px 14px; margin-bottom: 10px;
  background: var(--bg-alt);
  transition: border-color 0.2s;
}
.module-search-wrap:focus-within { border-color: var(--blue); background: white; }
.module-search-icon { color: var(--ink-faint); font-size: 14px; }
.module-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--ink);
}
.module-search-input::placeholder { color: var(--ink-faint); }

.module-type-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mod-filter-btn {
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--ink-mid); transition: all 0.15s;
  font-family: 'Sora', sans-serif;
}
.mod-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.mod-filter-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

.module-checklist-wrap {
  max-height: 320px; overflow-y: auto;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--bg-alt);
}
.module-checklist { display: flex; flex-direction: column; }

.module-group-header {
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-faint); padding: 10px 14px 5px;
  border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 1;
}

.module-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  font-size: 14px; color: var(--ink);
}
.module-check-item:last-child { border-bottom: none; }
.module-check-item:hover { background: var(--blue-light); }
.module-check-item input[type="checkbox"] { accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.module-check-name { flex: 1; line-height: 1.4; }

/* Module type pills */
.mod-type-pill {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px; text-transform: capitalize;
  font-family: 'Sora', sans-serif; flex-shrink: 0; white-space: nowrap;
}
.mod-type-compulsory { background: var(--blue-mid); color: var(--blue-dark); }
.mod-type-elective { background: var(--accent-light); color: #92400E; }
.mod-type-project { background: var(--purple-light); color: var(--purple); }

.module-selection-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; flex-wrap: wrap; gap: 10px;
}
.selected-count {
  font-size: 13px; font-weight: 600; color: var(--blue);
  font-family: 'Sora', sans-serif;
}

/* ============================
   MANAGE MODULES MODAL
   ============================ */
.modal-box-wide { max-width: 580px; }

/* ============================
   PROFILE DRAWER — MODULES SECTION
   ============================ */
.drawer-modules-section {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.drawer-modules-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--bg-alt);
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.manage-modules-btn {
  background: var(--blue-light); border: 1px solid rgba(37,99,235,0.2);
  color: var(--blue); border-radius: 7px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s;
  font-family: 'Sora', sans-serif;
}
.manage-modules-btn:hover { background: var(--blue); color: white; }
.drawer-modules-list {
  padding: 8px; display: flex; flex-direction: column; gap: 5px;
  max-height: 220px; overflow-y: auto;
}
.drawer-module-item {
  display: flex; align-items: flex-start; gap: 7px;
  padding: 6px 8px; border-radius: 7px;
  background: var(--bg-alt); border: 1px solid var(--border);
  font-size: 12px;
}
.drawer-module-name { color: var(--ink-mid); line-height: 1.4; }

/* No modules message (module rooms + voice board) */
.no-modules-msg {
  text-align: center; padding: 60px 20px;
}
.no-modules-msg .empty-icon { font-size: 48px; margin-bottom: 16px; }
.no-modules-msg h3 { font-family: 'Sora', sans-serif; font-size: 18px; color: var(--ink-mid); margin-bottom: 6px; }
.no-modules-msg p { color: var(--ink-faint); font-size: 14px; }
.onboard-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.onboard-logo-img {
  height: 38px;
  mix-blend-mode: multiply; /* blends logo on white card — removes black bg */
}
.onboard-logo-text { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800; color: var(--blue); }

.onboard-step { display: none; }
.onboard-step.active { display: block; animation: fadeSlide 0.3s ease; }
.onboard-step h2 { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step-subtitle { color: var(--ink-faint); font-size: 14px; margin-bottom: 28px; line-height: 1.5; }

.field-group { margin-bottom: 20px; }
.field-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-mid); margin-bottom: 8px; font-family: 'Sora', sans-serif; }
.field-group input, .field-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--ink);
  background: var(--surface); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-group input:focus, .field-group select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.pill-select { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: 30px; padding: 7px 18px; font-size: 13px;
  font-weight: 500; cursor: pointer; transition: all 0.15s; color: var(--ink-mid);
}
.pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.pill.selected { background: var(--blue); color: white; border-color: var(--blue); }

.lock-warning {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--accent-light); border: 1px solid rgba(245,158,11,0.35);
  border-radius: 10px; padding: 10px 14px;
  font-size: 12px; color: #92400E; margin-bottom: 20px; line-height: 1.5;
}

.step-btns { display: flex; gap: 12px; margin-top: 4px; }
.step-btns .btn-ghost { flex: 1; }
.step-btns .btn-primary { flex: 2; }

.onboard-progress { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.prog-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-mid); transition: all 0.3s; }
.prog-dot.active { background: var(--blue); width: 24px; border-radius: 4px; }

/* ============================
   HEADER
   ============================ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
}
.header-inner {
  max-width: 1200px; margin: auto;
  display: flex; align-items: center; gap: 16px; height: 100%;
}
.header-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.header-logo-img {
  height: 32px;
  mix-blend-mode: multiply;
}
.header-logo span { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: var(--blue); }

.header-context {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 5px 14px; background: var(--blue-light);
  border-radius: 30px; max-width: 400px;
}
.ctx-chip {
  font-size: 12px; font-weight: 700; background: var(--blue); color: white;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
  font-family: 'Sora', sans-serif;
}
.ctx-divider { color: var(--blue); opacity: 0.4; }
.ctx-course { font-size: 13px; font-weight: 500; color: var(--blue-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Notification Bell */
.notif-btn {
  position: relative; background: var(--bg-alt);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 7px 12px; font-size: 18px; cursor: pointer;
  transition: background 0.15s;
  display: flex; align-items: center;
}
.notif-btn:hover { background: var(--border); }
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700; font-family: 'Sora', sans-serif;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid white;
}

.avatar-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3); transition: transform 0.2s;
}
.avatar-btn:hover { transform: scale(1.08); }
.avatar-initials { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: white; }

/* ============================
   NOTIFICATION PANEL
   ============================ */
.notif-overlay {
  position: fixed; inset: 0; z-index: 199;
}
.notif-panel {
  position: fixed; top: 72px; right: 20px;
  width: 340px; max-height: 480px;
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  z-index: 200; overflow: hidden;
  display: flex; flex-direction: column;
  animation: slideUp 0.25s ease;
}
.notif-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.notif-panel-header h4 { font-size: 15px; font-family: 'Sora', sans-serif; }
.close-notif {
  background: none; border: none; cursor: pointer; font-size: 14px;
  color: var(--ink-faint); padding: 4px 8px; border-radius: 6px;
  transition: background 0.15s;
}
.close-notif:hover { background: var(--border); }

#notifList { overflow-y: auto; flex: 1; }
.notif-empty { padding: 24px 18px; color: var(--ink-faint); font-size: 13px; text-align: center; }

.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.notif-item:hover { background: var(--bg-alt); }
.notif-item.unread { background: var(--blue-light); }
.notif-item.unread:hover { background: #dbeafe; }

.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-top: 5px;
}
.notif-dot.read { background: var(--border-mid); }

.notif-content { flex: 1; min-width: 0; }
.notif-msg { font-size: 13px; color: var(--ink); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--ink-faint); margin-top: 3px; }
.notif-arrow { color: var(--ink-faint); font-size: 13px; flex-shrink: 0; margin-top: 2px; }

/* ============================
   TOAST
   ============================ */
#toastArea {
  position: fixed; top: 76px; right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--ink); color: white;
  padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  box-shadow: var(--shadow-md);
}
.toast.success { background: var(--green); }
.toast.info { background: var(--blue); }

/* ============================
   PROFILE DRAWER
   ============================ */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 200; }
.profile-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 320px; background: white; z-index: 201;
  padding: 24px; box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  overflow-y: auto; animation: slideRight 0.3s ease;
  display: flex; flex-direction: column; gap: 18px;
}
.drawer-header { display: flex; justify-content: space-between; align-items: center; }
.drawer-header h3 { font-size: 18px; font-family: 'Sora', sans-serif; }
.close-drawer {
  background: var(--bg-alt); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px; font-size: 14px;
  color: var(--ink-mid); display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.close-drawer:hover { background: var(--border); }

.drawer-avatar-row { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-alt); border-radius: var(--radius); }
.big-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: white; flex-shrink: 0;
}
.drawer-name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; }
.drawer-meta { color: var(--ink-faint); font-size: 13px; margin-top: 2px; }

.drawer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-box { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; }
.stat-box span { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; color: var(--blue); display: block; }
.stat-box small { font-size: 11px; color: var(--ink-faint); }

/* Locked Profile Card */
.drawer-locked-card {
  background: var(--bg-alt); border-radius: var(--radius);
  border: 1.5px solid var(--border); padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.locked-row { display: flex; align-items: flex-start; gap: 10px; }
.locked-row span { font-size: 16px; margin-top: 1px; }
.locked-label { font-size: 11px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; font-family: 'Sora', sans-serif; }
.locked-val { font-size: 14px; font-weight: 500; color: var(--ink); margin-top: 2px; }
.locked-note { font-size: 12px; color: var(--ink-faint); padding-top: 8px; border-top: 1px solid var(--border); line-height: 1.5; }

/* ============================
   LAYOUT
   ============================ */
.main-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.view { display: none; }
.view.active { display: block; }

.feed-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px; align-items: start;
}

/* ============================
   SIDE PANELS
   ============================ */
.side-panel {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); position: sticky; top: 80px;
}
.room-badge { display: flex; gap: 12px; align-items: flex-start; }
.room-icon { font-size: 24px; line-height: 1; margin-top: 2px; }
.room-label { font-size: 11px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.room-uni { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600; color: var(--ink); }
.room-course { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.side-divider { height: 1px; background: var(--border); margin: 14px 0; }

.room-rules h4, .trending-section h4 {
  font-size: 11px; font-weight: 700; font-family: 'Sora', sans-serif;
  color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px;
}
.room-rules ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.room-rules li { font-size: 12px; color: var(--ink-mid); padding-left: 14px; position: relative; }
.room-rules li::before { content: "•"; position: absolute; left: 0; color: var(--blue); }

.trending-item {
  padding: 6px 0; font-size: 12px; color: var(--ink-mid);
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: color 0.15s; line-height: 1.4;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { color: var(--blue); }
.trending-item-demand { font-size: 11px; color: var(--accent); font-weight: 600; margin-right: 4px; }


/* ============================
   FEED COLUMN
   ============================ */
.feed-column { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 11px 16px; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.search-icon { color: var(--ink-faint); font-size: 16px; }
.search-bar input { flex: 1; border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--ink); background: transparent; }
.search-bar input::placeholder { color: var(--ink-faint); }

/* Ask Box */
.ask-box {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}
.ask-box:focus-within { border-color: var(--blue); }
.ask-box-header { display: flex; gap: 12px; align-items: flex-start; }
.ask-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0;
}
.ask-box-header textarea {
  flex: 1; border: none; outline: none;
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--ink);
  resize: none; min-height: 60px; background: transparent; line-height: 1.6;
}
.ask-box-header textarea::placeholder { color: var(--ink-faint); }
.ask-box-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}
.anon-toggle { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-mid); cursor: pointer; }
.anon-toggle input { cursor: pointer; accent-color: var(--blue); }
.ask-actions { display: flex; align-items: center; gap: 10px; }
.char-count { font-size: 12px; color: var(--ink-faint); }
.char-count.warn { color: var(--red); }

/* Similar Questions */
.ai-suggestions {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid); border-radius: var(--radius); padding: 14px;
}
.ai-header { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-mid); margin-bottom: 10px; }
.similar-badge {
  background: var(--blue); color: white; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px; font-family: 'Sora', sans-serif;
}
.ai-suggestion-item {
  background: white; border-radius: 8px; padding: 10px 12px;
  margin-bottom: 6px; cursor: pointer; font-size: 13px; color: var(--ink-mid);
  transition: background 0.15s, color 0.15s; border: 1px solid var(--border);
}
.ai-suggestion-item:hover { background: var(--blue-mid); color: var(--blue-dark); }
.ai-suggestion-item:last-child { margin-bottom: 0; }

/* Trending Topic Chips */
.trending-topics-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 2px; }
.topic-chip {
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  color: var(--blue-dark); border-radius: 20px;
  padding: 3px 10px; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; font-family: 'Sora', sans-serif;
}
.topic-chip:hover { background: var(--blue); color: white; border-color: var(--blue); }
.topic-chip.active { background: var(--blue); color: white; border-color: var(--blue); }

/* Sort Bar */
.sort-bar { display: flex; align-items: center; gap: 6px; }
.sort-label { font-size: 12px; color: var(--ink-faint); margin-right: 4px; }
.sort-btn {
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 5px 12px; font-size: 12px;
  font-weight: 500; cursor: pointer; color: var(--ink-mid); transition: all 0.15s;
}
.sort-btn.active { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.sort-btn:hover:not(.active) { background: var(--bg-alt); }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-family: 'Sora', sans-serif; font-size: 18px; color: var(--ink-mid); margin-bottom: 6px; }
.empty-state p { color: var(--ink-faint); font-size: 14px; }

/* ============================
   QUESTION CARDS
   ============================ */
.q-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  animation: fadeSlide 0.3s ease;
}
.q-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.q-card.highlight { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.q-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.q-meta { display: flex; align-items: center; gap: 8px; }
.q-meta-text { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.q-author-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
}
.q-author-avatar.anon { background: var(--bg-alt); color: var(--ink-faint); }
.q-author-name { font-size: 13px; font-weight: 600; color: var(--ink-mid); }
.q-year-badge { font-size: 11px; padding: 2px 7px; border-radius: 20px; background: var(--blue-mid); color: var(--blue-dark); font-weight: 600; }
.q-time { font-size: 11px; color: var(--ink-faint); }

.q-badges { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.badge-trending { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--accent-light); color: #B45309; animation: pulse 2s infinite; font-family: 'Sora', sans-serif; }
.badge-answered { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--blue-light); color: var(--blue); }
.badge-unanswered { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--bg-alt); color: var(--ink-faint); border: 1px solid var(--border); }
.badge-resolved { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--green-light); color: #065F46; font-family: 'Sora', sans-serif; }

.q-text { font-size: 16px; font-weight: 600; color: var(--ink); font-family: 'Sora', sans-serif; line-height: 1.5; margin-bottom: 14px; }
.edited-badge { font-size: 11px; font-weight: 400; color: var(--ink-faint); font-family: 'DM Sans', sans-serif; }

.q-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.q-stats { display: flex; gap: 12px; }
.q-stat { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-faint); }
.q-actions { display: flex; gap: 6px; }
.q-action-btn {
  background: transparent; border: 1.5px solid var(--border); cursor: pointer;
  padding: 5px 11px; border-radius: 8px; font-size: 13px; color: var(--ink-faint);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'DM Sans', sans-serif;
}
.q-action-btn:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--border-mid); }
.boost-btn { background: var(--accent-light); border-color: rgba(245,158,11,0.3); color: #92400E; }
.boost-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.boost-btn.used { opacity: 0.5; cursor: not-allowed; }
.q-action-btn.primary-action { background: var(--blue-light); color: var(--blue); border-color: rgba(37,99,235,0.3); font-weight: 600; }
.q-action-btn.primary-action:hover { background: var(--blue); color: white; }

/* ============================
   ROOM VIEW
   ============================ */
.room-layout { max-width: 760px; margin: 0 auto; }
.room-main { display: flex; flex-direction: column; gap: 20px; }

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 8px 16px; font-size: 14px;
  font-weight: 500; cursor: pointer; color: var(--ink-mid);
  transition: all 0.15s; font-family: 'DM Sans', sans-serif;
}
.back-btn:hover { background: var(--bg-alt); color: var(--ink); }

.question-detail-card {
  background: var(--surface); border: 2px solid var(--blue-mid);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-md);
}
.qd-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.qd-text {
  font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--ink); line-height: 1.45; margin-bottom: 18px;
}
.qd-footer {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap;
}

/* (answered-prompt and ai-answer-section removed) */

/* No answers yet */
.no-answers-msg {
  text-align: center; padding: 28px; color: var(--ink-faint);
  font-size: 14px; font-style: italic;
  background: var(--bg-alt); border-radius: var(--radius);
  border: 1.5px dashed var(--border-mid); margin-bottom: 4px;
}

/* ============================
   ANSWERS
   ============================ */
.answers-header {
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--ink); padding-bottom: 12px; border-bottom: 2px solid var(--border);
  margin-bottom: 4px;
}

/* ============================
   PINNED ANSWER
   ============================ */
.pinned-answer {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.2), var(--shadow-sm) !important;
}
.pin-banner {
  background: var(--accent-light);
  border-radius: 8px 8px 0 0;
  padding: 7px 14px;
  font-size: 12px; font-weight: 700;
  color: #92400E;
  margin: -18px -18px 14px -18px;
  border-bottom: 1px solid rgba(245,158,11,0.25);
  font-family: 'Sora', sans-serif;
}

/* ============================
   REPORTED BANNER
   ============================ */
.reported-banner {
  background: var(--red-light);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px; color: var(--red); font-weight: 600;
  margin-bottom: 10px;
}

/* Badge for pinned in feed */
.badge-pinned {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: var(--accent-light); color: #B45309;
  font-family: 'Sora', sans-serif;
}

/* ============================
   DUPLICATE WARNING BANNER
   ============================ */
.dup-warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid rgba(245,158,11,0.4);
  border-radius: var(--radius);
  padding: 16px 18px;
  animation: fadeSlide 0.3s ease;
  margin-bottom: 4px;
}
.dup-warning-header {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}
.dup-icon { font-size: 22px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.dup-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: #92400E; }
.dup-sub { font-size: 12px; color: #B45309; margin-top: 3px; }
.dup-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--ink-faint); padding: 2px 6px;
  border-radius: 6px; transition: background 0.15s; flex-shrink: 0;
}
.dup-close:hover { background: rgba(0,0,0,0.06); }
.dup-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.dup-item {
  background: white; border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px; padding: 10px 13px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.dup-item:hover { background: #fef9ee; border-color: var(--accent); }
.dup-item-text { font-size: 13px; font-weight: 500; color: var(--ink); }
.dup-item-meta { font-size: 11px; color: var(--ink-faint); margin-top: 3px; }
.dup-actions { display: flex; align-items: center; gap: 12px; }
.dup-hint { font-size: 12px; color: var(--ink-faint); font-style: italic; }

/* ============================
   SIMILARITY SUGGESTIONS (enhanced)
   ============================ */
.similar-section-label {
  font-size: 12px; font-weight: 600; color: var(--ink-mid);
  font-family: 'Sora', sans-serif; margin-bottom: 6px;
}
.suggestion-text { font-size: 13px; color: var(--ink); }
.suggestion-meta { font-size: 11px; color: var(--green); font-weight: 600; margin-top: 3px; }
.answered-suggestion { border-left: 3px solid var(--green) !important; }
.answer-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
  animation: fadeSlide 0.3s ease; margin-bottom: 12px;
  transition: border-color 0.5s;
}
.answer-card.highlight { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }

.answer-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.answer-text { font-size: 15px; color: var(--ink); line-height: 1.7; margin-bottom: 14px; }
.answer-actions { display: flex; gap: 6px; align-items: center; }

.upvote-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 5px 12px; font-size: 13px;
  cursor: pointer; transition: all 0.15s; color: var(--ink-mid);
  font-family: 'DM Sans', sans-serif;
}
.upvote-btn:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.upvote-btn.voted { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }

.reply-thread {
  margin-top: 14px; margin-left: 18px;
  border-left: 2px solid var(--blue-mid); padding-left: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.reply-card { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 11px 13px; animation: fadeSlide 0.3s ease; }
.reply-to { font-size: 11px; color: var(--ink-faint); font-style: italic; margin-bottom: 4px; }
.reply-text { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }

.reply-input-wrap { display: flex; gap: 8px; margin-top: 12px; }
.reply-input-wrap input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.reply-input-wrap input:focus { border-color: var(--blue); }
.reply-submit-btn {
  background: var(--blue-light); border: 1.5px solid var(--blue);
  color: var(--blue); border-radius: 8px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s;
  font-family: 'Sora', sans-serif;
}
.reply-submit-btn:hover { background: var(--blue); color: white; }

/* Answer Box */
.answer-box {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.answer-box:focus-within { border-color: var(--blue); }
.answer-box-title { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.answer-box-inner { display: flex; gap: 12px; align-items: flex-start; }
.answer-box-inner textarea {
  flex: 1; border: 1.5px solid var(--border); border-radius: 10px; outline: none;
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--ink);
  resize: vertical; min-height: 90px; padding: 12px;
  background: var(--bg-alt); line-height: 1.6; transition: border-color 0.2s;
}
.answer-box-inner textarea:focus { border-color: var(--blue); background: white; }
.answer-box-inner textarea::placeholder { color: var(--ink-faint); }
.answer-box-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(20px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes livePulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.4);opacity:.7;} }

/* ============================
   NAV TABS
   ============================ */
.app-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 90;
}
.app-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; padding: 0 20px; gap: 2px;
}
.nav-tab {
  background: none; border: none; cursor: pointer;
  padding: 14px 18px;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-tab:hover { color: var(--ink); }
.nav-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ============================
   MODULE ROOMS
   ============================ */
.modules-layout { max-width: 860px; margin: 0 auto; }
.modules-page-header { margin-bottom: 24px; }
.modules-page-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.modules-page-header p { color: var(--ink-faint); font-size: 14px; }

.module-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.module-tab-btn {
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: 30px; padding: 8px 18px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--ink-mid); transition: all 0.15s;
  font-family: 'Sora', sans-serif;
}
.module-tab-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.module-tab-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

.module-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); animation: fadeSlide 0.3s ease;
}
.module-card-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.module-card-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.module-card-name { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: var(--ink); }
.module-card-count { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.module-card-header .btn-primary { margin-left: auto; flex-shrink: 0; }

.module-preview { display: flex; flex-direction: column; gap: 8px; }
.module-preview-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-alt); border-radius: 8px;
  padding: 10px 14px; cursor: pointer; transition: background 0.15s;
  gap: 12px;
}
.module-preview-item:hover { background: var(--blue-light); }
.module-preview-text { font-size: 13px; color: var(--ink-mid); flex: 1; }
.module-preview-replies { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }

.module-room-header { margin-bottom: 16px; }
.module-room-title { display: flex; align-items: center; gap: 14px; }
.module-room-title h3 { font-size: 20px; font-weight: 700; }

.module-room-title { margin-bottom: 4px; }

.module-badge-inline {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light); color: var(--blue-dark);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 600;
  margin: 10px 0 14px;
}

/* ============================
   STUDY SESSION
   ============================ */
.study-layout { max-width: 960px; margin: 0 auto; }

.study-hero {
  text-align: center; padding: 60px 20px;
}
.study-hero-icon { font-size: 56px; margin-bottom: 16px; }
.study-hero h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.study-hero-sub { color: var(--ink-faint); font-size: 15px; max-width: 480px; margin: 0 auto 24px; line-height: 1.6; }
.study-status-bar {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-alt); border-radius: 30px;
  padding: 8px 18px; font-size: 13px; color: var(--ink-mid);
}

.study-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-mid); display: inline-block;
  flex-shrink: 0;
}
.study-dot.active {
  background: var(--green);
  animation: livePulse 1.5s infinite;
}

/* Session active UI */
.study-session-wrap { animation: fadeSlide 0.3s ease; }
.study-session-topbar {
  display: flex; align-items: center; gap: 16px;
  background: var(--ink); color: white;
  border-radius: var(--radius); padding: 14px 20px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.study-live-indicator { display: flex; align-items: center; gap: 8px; }
.study-live-label {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; color: var(--green);
}
.study-session-meta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.study-timer {
  font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700;
  color: white; letter-spacing: 0.05em;
}
.study-participants { font-size: 13px; color: rgba(255,255,255,0.6); }
.study-end-btn { border-color: rgba(255,255,255,0.3) !important; color: white !important; font-size: 13px !important; padding: 7px 14px !important; }
.study-end-btn:hover { background: rgba(255,255,255,0.12) !important; }

.study-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.study-col-label {
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.study-q-col, .study-notes-col {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 420px;
}
.study-ask-row { display: flex; flex-direction: column; gap: 6px; }
.study-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s; color: var(--ink);
}
.study-input:focus { border-color: var(--blue); }

.study-feed { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.study-empty { color: var(--ink-faint); font-size: 13px; font-style: italic; text-align: center; padding: 24px 0; }

.study-q-item {
  background: var(--bg-alt); border-radius: 10px;
  padding: 12px; animation: fadeSlide 0.25s ease;
}
.study-q-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.study-q-author { font-size: 12px; font-weight: 600; color: var(--ink-mid); }
.study-q-text { font-size: 14px; color: var(--ink); line-height: 1.5; margin-bottom: 8px; }
.study-q-reply-wrap { display: flex; flex-direction: column; gap: 6px; }
.study-reply-input {
  width: 100%; border: 1px solid var(--border); border-radius: 7px;
  padding: 6px 10px; font-size: 13px; font-family: 'DM Sans', sans-serif;
  outline: none; background: white; transition: border-color 0.15s;
}
.study-reply-input:focus { border-color: var(--blue); }
.study-reply { font-size: 12px; color: var(--ink-mid); background: white; padding: 5px 8px; border-radius: 6px; }
.study-reply-author { font-weight: 600; color: var(--blue); }

.study-notes {
  flex: 1; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px; font-family: 'DM Sans', sans-serif; font-size: 14px;
  resize: none; outline: none; min-height: 300px; line-height: 1.7;
  color: var(--ink); transition: border-color 0.2s;
}
.study-notes:focus { border-color: var(--blue); }

/* ============================
   KEY CONTACTS VIEW
   ============================ */
.contacts-layout { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }

.contacts-header { margin-bottom: 4px; }
.contacts-header h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.contacts-subhead { color: var(--ink-faint); font-size: 14px; line-height: 1.6; }

.contacts-section { display: flex; flex-direction: column; gap: 12px; }
.contacts-section-label {
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-faint); padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.contacts-list { display: flex; flex-direction: column; gap: 12px; }

/* Individual contact card */
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm); animation: fadeSlide 0.3s ease;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }

.contact-card-icon {
  font-size: 30px; line-height: 1; flex-shrink: 0; margin-top: 2px;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
}
.contact-card-body { flex: 1; min-width: 0; }
.contact-card-name {
  font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--ink); margin-bottom: 3px;
}
.contact-card-role { font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }
.contact-card-email,
.contact-card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--blue); font-weight: 500;
  text-decoration: none; margin-bottom: 8px;
  padding: 4px 10px; background: var(--blue-light);
  border-radius: 6px; transition: background 0.15s;
  margin-right: 6px;
}
.contact-card-email:hover,
.contact-card-link:hover { background: var(--blue-mid); }
.contact-card-note {
  font-size: 13px; color: var(--ink-mid); line-height: 1.55;
  padding-top: 6px; border-top: 1px solid var(--border); margin-top: 4px;
}

/* Useful links grid */
.contacts-links-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.contact-link-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.contact-link-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.contact-link-icon {
  font-size: 24px; flex-shrink: 0; width: 40px; height: 40px;
  background: var(--blue-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-link-title {
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--ink); margin-bottom: 2px;
}
.contact-link-sub { font-size: 12px; color: var(--ink-faint); line-height: 1.4; }

@media (max-width: 600px) {
  .contacts-links-grid { grid-template-columns: 1fr; }
  .contact-card { flex-direction: column; gap: 12px; }
}

/* ============================
   MODALS (Report + Reveal)
   ============================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-box {
  background: white; border-radius: var(--radius-lg);
  width: 100%; max-width: 440px; padding: 28px;
  box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.close-modal {
  background: var(--bg-alt); border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; font-size: 14px;
  color: var(--ink-mid); display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.close-modal:hover { background: var(--border); }
.modal-desc { font-size: 14px; color: var(--ink-mid); margin-bottom: 14px; line-height: 1.5; }
.report-options { display: flex; flex-direction: column; gap: 10px; }
.report-option {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink); cursor: pointer;
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; transition: border-color 0.15s, background 0.15s;
}
.report-option:hover { border-color: var(--blue); background: var(--blue-light); }
.report-option input { accent-color: var(--blue); cursor: pointer; }
.modal-textarea {
  width: 100%; margin-top: 14px; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  resize: vertical; min-height: 70px; outline: none;
  transition: border-color 0.2s; color: var(--ink);
}
.modal-textarea:focus { border-color: var(--blue); }
.modal-input {
  width: 100%; margin-top: 14px; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s; color: var(--ink);
}
.modal-input:focus { border-color: var(--blue); }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}
.reveal-result { margin-bottom: 10px; font-size: 13px; font-weight: 600; }

/* ============================
   NOTIFICATION ACTIONS BAR
   ============================ */
.notif-actions-bar {
  display: flex; gap: 8px; padding: 10px 18px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.notif-action-btn {
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 5px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--ink-mid); transition: all 0.15s;
  font-family: 'Sora', sans-serif;
}
.notif-action-btn:hover { background: white; color: var(--ink); }
.notif-action-btn.danger { color: var(--red); border-color: rgba(239,68,68,0.3); }
.notif-action-btn.danger:hover { background: var(--red-light); }

/* ============================
   STUDY SESSION — SESSION NAMING
   ============================ */
.study-name-wrap {
  margin: 24px auto 0;
  max-width: 420px; text-align: left;
}
.study-name-label {
  display: block; font-size: 13px; font-weight: 600;
  font-family: 'Sora', sans-serif; color: var(--ink-mid); margin-bottom: 8px;
}
.study-name-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 11px 16px; font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--ink); outline: none; transition: border-color 0.2s;
}
.study-name-input:focus { border-color: var(--blue); }
.study-session-name-display {
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600;
  color: white; margin-left: 6px; opacity: 0.9;
}

/* ============================
   STUDY SESSION — SEND-STYLE NOTES
   ============================ */
.study-note-input-row { display: flex; flex-direction: column; gap: 6px; }
.study-note-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-family: 'DM Sans', sans-serif; font-size: 14px;
  resize: none; outline: none; transition: border-color 0.2s; color: var(--ink);
  line-height: 1.5;
}
.study-note-input:focus { border-color: var(--blue); }
.study-notes-feed {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px; margin-top: 6px;
  min-height: 80px; max-height: 280px;
}
.study-note-entry {
  background: var(--bg-alt); border-radius: 8px; padding: 9px 12px;
  animation: fadeSlide 0.2s ease; border: 1px solid var(--border);
}
.study-note-author {
  font-size: 11px; font-weight: 700; color: var(--blue);
  display: block; margin-bottom: 3px;
}
.study-note-text { font-size: 13px; color: var(--ink); line-height: 1.5; }

/* ============================
   REPLY ANONYMOUS TOGGLE
   ============================ */
.reply-anon-toggle {
  font-size: 12px; color: var(--ink-faint);
  margin: 5px 0 2px; display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.reply-anon-toggle input { accent-color: var(--blue); cursor: pointer; }

/* ============================
   QUESTION REPORT BUTTON ON CARDS
   ============================ */
.report-q-btn {
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 5px 8px; font-size: 12px;
  cursor: pointer; color: var(--ink-faint); transition: all 0.15s;
}
.report-q-btn:hover { background: var(--red-light); color: var(--red); border-color: rgba(239,68,68,0.3); }

/* ============================
   DASHBOARD
   ============================ */
.dash-layout {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px;
}

/* Welcome banner */
.dash-welcome {
  background: linear-gradient(135deg, var(--blue), #7c3aed);
  border-radius: var(--radius); padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow-md);
}
.dash-greeting {
  font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800;
  color: white; margin-bottom: 4px;
}
.dash-sub { font-size: 14px; color: rgba(255,255,255,0.75); }
.dash-logo-mark { font-size: 48px; opacity: 0.4; }

/* Generic dash card */
.dash-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.dash-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.dash-card-header h3 {
  font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: var(--ink);
}
.dash-card-sub { font-size: 12px; color: var(--ink-faint); }

/* Top row: profile + stats */
.dash-top-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 20px;
}

/* Profile card */
.dash-profile-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px; padding: 28px 20px;
}
.dash-profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.dash-profile-name {
  font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: var(--ink);
}
.dash-profile-line { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.dash-course-tag {
  display: inline-block; background: var(--blue-light); color: var(--blue-dark);
  border-radius: 20px; padding: 4px 14px; font-size: 12px; font-weight: 600;
  margin-top: 4px; font-family: 'Sora', sans-serif;
}

/* Stats grid */
.dash-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.dash-stat-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 12px;
  text-align: center; transition: box-shadow 0.2s, transform 0.2s;
}
.dash-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dash-stat-icon { font-size: 22px; margin-bottom: 6px; }
.dash-stat-val {
  font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800;
  color: var(--blue); line-height: 1;
}
.dash-stat-label { font-size: 11px; color: var(--ink-faint); margin-top: 4px; }

/* Modules on dashboard */
.dash-modules-card .dash-modules-list { display: flex; flex-direction: column; gap: 14px; }
.dash-mod-group { display: flex; flex-direction: column; gap: 6px; }
.dash-mod-group-label {
  font-size: 11px; font-weight: 700; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.05em; font-family: 'Sora', sans-serif;
  margin-bottom: 2px;
}
.dash-mod-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--bg-alt);
  border-radius: 8px; border: 1px solid var(--border);
  font-size: 13px; color: var(--ink-mid);
}

/* Favourites */
.dash-empty {
  text-align: center; padding: 32px 16px;
  color: var(--ink-faint); font-size: 14px;
}
.dash-empty span { font-size: 32px; display: block; margin-bottom: 8px; opacity: 0.4; }
.dash-favourites-list { display: flex; flex-direction: column; gap: 10px; }
.dash-fav-card {
  background: linear-gradient(135deg, var(--accent-light), #fffbf0);
  border: 1.5px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-sm); padding: 14px 16px;
  cursor: pointer; transition: box-shadow 0.15s, transform 0.15s;
}
.dash-fav-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dash-fav-context {
  font-size: 11px; font-weight: 700; color: #92400E;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px;
  font-family: 'Sora', sans-serif;
}
.dash-fav-text { font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.4; margin-bottom: 6px; }
.dash-fav-meta { font-size: 12px; color: var(--ink-faint); }

/* Recent questions */
.dash-recent-list { display: flex; flex-direction: column; gap: 8px; }
.dash-recent-item {
  padding: 10px 14px; background: var(--bg-alt);
  border-radius: 8px; border: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.dash-recent-item:hover { background: var(--blue-light); border-color: var(--blue); }
.dash-recent-text { font-size: 13px; color: var(--ink); font-weight: 500; margin-bottom: 3px; }
.dash-recent-meta { font-size: 11px; color: var(--ink-faint); }

/* ============================
   FAVOURITE STAR BUTTON
   ============================ */
.fav-btn {
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 5px 10px; font-size: 13px;
  cursor: pointer; color: var(--ink-faint);
  transition: all 0.15s; white-space: nowrap;
}
.fav-btn:hover { background: var(--accent-light); border-color: var(--accent); color: #92400E; }
.fav-btn.fav-active {
  background: var(--accent-light); border-color: var(--accent);
  color: #92400E; font-weight: 600;
}

/* Dashboard responsive */
@media (max-width: 768px) {
  .dash-top-row { grid-template-columns: 1fr; }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-welcome { padding: 20px; }
  .dash-greeting { font-size: 20px; }
  .dash-logo-mark { display: none; }
}
.module-check-locked {
  background: var(--blue-light) !important;
  cursor: default;
}
.module-check-locked:hover { background: var(--blue-light) !important; }
.module-check-locked input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }
.module-lock-icon { font-size: 12px; margin-left: 4px; flex-shrink: 0; }

/* Dimmed when limit reached */
.module-check-dimmed {
  opacity: 0.4;
  cursor: not-allowed;
}
.module-check-dimmed:hover { background: var(--bg-alt) !important; }

/* Group hint text */
.module-group-hint {
  font-size: 10px; font-weight: 400; color: var(--blue);
  text-transform: none; letter-spacing: 0;
}

/* Edit modal anon toggle */
.edit-anon-wrap {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--accent-light);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 10px;
}
.edit-anon-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: #92400E;
  cursor: pointer;
}
.edit-anon-toggle input { accent-color: var(--accent); cursor: pointer; }
.edit-anon-note {
  font-size: 12px; color: #B45309;
  margin-top: 6px; margin-left: 22px; line-height: 1.4;
}
.delete-q-btn {
  background: transparent; border: 1.5px solid rgba(239,68,68,0.25);
  border-radius: 8px; padding: 5px 8px; font-size: 12px;
  cursor: pointer; color: var(--red); opacity: 0.7;
  transition: all 0.15s;
}
.delete-q-btn:hover { background: var(--red-light); opacity: 1; border-color: var(--red); }

/* Delete button on answer cards */
.delete-ans-btn {
  background: transparent; border: none;
  cursor: pointer; padding: 4px 8px; border-radius: 6px;
  font-size: 12px; color: var(--red); opacity: 0.6;
  transition: all 0.15s; font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 3px;
}
.delete-ans-btn:hover { background: var(--red-light); opacity: 1; }

/* ============================
   STUDY SESSION — CREATE FORM
   ============================ */
.study-create-form {
  max-width: 460px; margin: 24px auto 0;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.study-form-field { display: flex; flex-direction: column; gap: 6px; }
.required-star { color: var(--red); font-weight: 700; }

/* ============================
   STUDY SESSION — LOBBY
   ============================ */
.study-lobby { animation: fadeSlide 0.3s ease; }
.lobby-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.lobby-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.lobby-subhead { color: var(--ink-faint); font-size: 14px; }
.lobby-list { display: flex; flex-direction: column; gap: 12px; }

.study-lobby-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); animation: fadeSlide 0.3s ease;
  flex-wrap: wrap; transition: border-color 0.2s, box-shadow 0.2s;
}
.study-lobby-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.lobby-card-left { flex: 1; min-width: 0; }
.lobby-session-name {
  font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--ink); margin-bottom: 6px;
}
.lobby-session-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 4px;
}
.lobby-timer, .lobby-members, .lobby-host {
  font-size: 12px; color: var(--ink-faint);
}
.lobby-host { font-style: italic; }
.lobby-join-btn { flex-shrink: 0; }

/* ============================
   STUDY SESSION — EDITABLE ITEMS
   ============================ */
.study-edit-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 8px; font-size: 11px;
  color: var(--ink-faint); cursor: pointer; transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 3px; margin-top: 4px;
}
.study-edit-btn:hover { background: var(--bg-alt); color: var(--blue); border-color: var(--blue); }

.study-reply-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px; flex-wrap: wrap;
}
.study-reply-row .study-reply-input { flex: 1; min-width: 120px; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .feed-layout { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .feed-layout { grid-template-columns: 1fr; }
  .left-panel { display: none; }
  .header-context { display: none; }
  .main-wrap { padding: 14px 12px; }
  .notif-panel { right: 10px; left: 10px; width: auto; }
  .study-body { grid-template-columns: 1fr; }
  .app-nav-inner { gap: 0; padding: 0 8px; }
  .nav-tab { padding: 12px 10px; font-size: 12px; }
  .modules-layout, .study-layout, .contacts-layout { padding: 0 4px; }
  .study-create-form { padding: 16px; }
  .lobby-header { flex-direction: column; }
}

/* ===== Onboarding choice cards (university / faculty / school) ===== */
.choice-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; max-height: 340px; overflow-y: auto; }
.choice-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; background: white; border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; color: inherit;
  transition: border-color .15s, background .15s;
}
.choice-card > span { font-size: 22px; }
.choice-card strong { display: block; font-family: 'Sora', sans-serif; font-size: 14px; }
.choice-card small { display: block; font-size: 12px; opacity: .65; margin-top: 2px; }
.choice-card:hover, .choice-card.selected { border-color: var(--blue); background: var(--blue-light); }
.module-check-item input[type="radio"] { margin-right: 10px; accent-color: var(--blue); }

/* ===== Full-screen onboarding ===== */
#onboardingModal { position: fixed; inset: 0; z-index: 999; display: grid; grid-template-columns: minmax(360px, 42%) 1fr; background: #fff; animation: fadeIn .3s ease; }
.ob-brand { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--blue-dark) 0%, var(--blue) 100%); color: #fff; display: flex; padding: 56px; }
.ob-brand::before, .ob-brand::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.ob-brand::before { width: 420px; height: 420px; right: -140px; top: -120px; }
.ob-brand::after { width: 300px; height: 300px; left: -100px; bottom: -90px; }
.ob-brand-inner { position: relative; z-index: 1; margin: auto 0; max-width: 460px; }
.ob-logo { display: flex; align-items: center; gap: 12px; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; margin-bottom: 36px; }
.ob-logo-badge { width: 52px; height: 52px; background: #fff; border-radius: 14px; display: grid; place-items: center; }
.ob-logo-badge img { width: 38px; height: 38px; object-fit: contain; mix-blend-mode: multiply; }
.ob-brand h1 { font-family: 'Sora', sans-serif; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; font-weight: 700; margin-bottom: 18px; }
.ob-intro { font-size: 16px; line-height: 1.6; opacity: .92; margin-bottom: 24px; }
.ob-points { list-style: none; display: grid; gap: 10px; margin-bottom: 32px; font-size: 15px; }
.ob-points li { background: rgba(255,255,255,.12); border-radius: 10px; padding: 10px 14px; }
.ob-byline { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.ob-byline span { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 13px; opacity: .8; }
.ob-pane { overflow-y: auto; display: flex; padding: 48px 40px; background: linear-gradient(180deg, #fff, #F8FAFF); }
.ob-inner { width: 100%; max-width: 500px; margin: auto; }
.onboard-step h2 { font-size: 28px; line-height: 1.25; margin-bottom: 10px; }
.step-subtitle { margin-bottom: 28px; }
.step-count { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.field-group { margin-bottom: 26px; }
.uni-chip { display: flex; align-items: center; gap: 12px; background: var(--blue-light); border: 1.5px solid var(--blue); color: var(--blue-dark); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.uni-chip b { flex: 1; font-weight: 600; } .uni-chip em { font-style: normal; font-weight: 700; color: var(--blue); }
.ob-hint { display: block; margin-top: 8px; color: var(--ink-faint); font-size: 12px; }
.field-group input, .field-group select { padding: 14px 16px; }
.pill { padding: 11px 20px; font-size: 14px; }
.onboard-step .btn-primary.full { padding: 15px; font-size: 16px; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.onboard-step .module-search-wrap { padding: 13px 16px; margin-bottom: 12px; }
.onboard-step .module-checklist-wrap { max-height: calc(100dvh - 400px); min-height: 220px; margin-bottom: 16px; background: #fff; }
.course-row { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 13px 16px; background: transparent; border: none; border-bottom: 1px solid var(--border); cursor: pointer; font-family: 'DM Sans', sans-serif; color: var(--ink); transition: background .15s, transform .15s; }
.course-name { font-size: 15px; font-weight: 600; } .course-school { font-size: 12px; color: var(--ink-faint); }
.course-row:hover { background: var(--blue-light); }
.course-row.selected { background: var(--blue); } .course-row.selected span { color: #fff; }
.course-other .course-name { color: var(--blue); }
.btn-text { display: block; margin: 12px auto 0; background: none; border: none; color: var(--ink-faint); font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-text:hover { color: var(--blue); }
.onboard-progress { margin-top: 24px; }
@media (max-width: 820px) {
  #onboardingModal { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .ob-brand { padding: 22px 20px; } .ob-brand-inner { margin: 0; }
  .ob-logo { margin-bottom: 14px; } .ob-brand h1 { font-size: 21px; margin-bottom: 8px; }
  .ob-intro, .ob-points { display: none; } .ob-byline { font-size: 13px; }
  .ob-pane { padding: 24px 20px 32px; overflow: visible; }
  .onboard-step h2 { font-size: 23px; }
  .onboard-step .module-checklist-wrap { max-height: 50dvh; }
}

.selected-course { background: var(--blue-light); color: var(--ink-faint); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 12px; }
.selected-course.has-course { color: var(--blue-dark); }

/* ============================
   Q&A FEED v2 — compact list
   ============================ */
.room-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.room-stats > div { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 8px 10px; text-align: center; }
.room-stats b { display: block; font-family: 'Sora', sans-serif; font-size: 18px; color: var(--ink); line-height: 1.2; }
.room-stats span { font-size: 11px; color: var(--ink-faint); }
.ask-box:not(:focus-within):not(.has-text) .ask-box-footer { display: none; }
.ask-box:not(:focus-within):not(.has-text) textarea { min-height: 24px; height: 24px; }
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--surface); border: 1.5px solid var(--border); border-radius: 20px; padding: 5px 13px; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--ink-mid); font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.chip:hover:not(.active) { background: var(--bg-alt); }
.chip.active { background: var(--blue-light); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.sort-select { background: var(--surface); border: 1.5px solid var(--border); border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--ink-mid); font-family: 'DM Sans', sans-serif; cursor: pointer; }
.feed-count { font-size: 12px; color: var(--ink-faint); margin-top: -6px; }
.q-list { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.q-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; animation: fadeSlide 0.3s ease; }
.q-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.q-row:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.q-row:only-child { border-radius: var(--radius); }
.q-row:hover, .q-row:focus-visible { background: var(--blue-light); outline: none; }
.q-row.highlight { background: var(--blue-light); box-shadow: inset 3px 0 0 var(--blue); }
.q-reply-box { text-align: center; border-radius: var(--radius-sm); padding: 6px 4px; background: var(--bg-alt); color: var(--ink-faint); border: 1px solid var(--border); }
.q-reply-box b { display: block; font-family: 'Sora', sans-serif; font-size: 16px; line-height: 1.2; }
.q-reply-box span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.q-reply-box.answered { background: var(--blue-light); color: var(--blue); border-color: var(--blue-mid); }
.q-reply-box.solved { background: var(--green-light); color: #065F46; border-color: rgba(16,185,129,0.4); }
.q-row-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.q-row-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.q-author-avatar.mini { width: 20px; height: 20px; font-size: 9px; }
.q-row-meta .q-author-name { font-size: 12px; }
.q-row-side { display: flex; align-items: center; gap: 4px; }
.q-icon-btn { background: transparent; border: 1.5px solid transparent; border-radius: 8px; padding: 4px 8px; font-size: 13px; color: var(--ink-faint); cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.q-icon-btn:hover { background: var(--bg-alt); color: var(--ink); }
.q-icon-btn.boost-btn { color: #92400E; background: transparent; border-color: transparent; }
.q-icon-btn.boost-btn:hover { background: var(--accent-light); }
.q-menu-wrap { position: relative; }
.q-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 130px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 4px; }
.q-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-mid); cursor: pointer; font-family: 'DM Sans', sans-serif; }
.q-menu button:hover { background: var(--bg-alt); color: var(--ink); }
.show-more { align-self: center; }
@media (max-width: 600px) {
  .q-row { grid-template-columns: 44px minmax(0, 1fr); padding: 12px; }
  .q-row-side { grid-column: 2; justify-content: flex-end; }
}

.form-error { color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; margin: 0 0 12px; }
.form-error.hidden { display: none; }

/* Admin */
.btn-danger { background: #DC2626; color: #fff; border: none; border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-danger:hover:not(:disabled) { background: #B91C1C; }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* toasts must show above the full-screen sign-up screen */
#toastArea { z-index: 5000 !important; }

/* ---- sign-in polish ---- */
.btn-outline-lg { display: block; width: 100%; margin-top: 12px; padding: 13px 16px; background: #fff; border: 2px solid var(--blue); color: var(--blue); border-radius: 12px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; transition: all .15s; }
.btn-outline-lg b { font-weight: 700; }
.btn-outline-lg:hover { background: var(--blue-light); }
.btn-outline-lg.hidden { display: none; }
.welcome-back { font-family: 'Sora', sans-serif; font-size: 32px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-ok { color: #065F46; background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; margin: 0 0 12px; }
.form-ok.hidden { display: none; }
.reply-actions { display: flex; gap: 6px; margin-top: 6px; }

/* ---- loading splash + password eye ---- */
#bootSplash { position: fixed; inset: 0; z-index: 3000; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
#bootSplash img { width: 96px; height: 96px; object-fit: contain; animation: fadeIn .4s ease; }
#bootSplash .spinner { width: 28px; height: 28px; border: 3px solid var(--blue-light); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px !important; width: 100%; }
.pw-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--ink-faint, #8492A6); cursor: pointer; padding: 6px; display: flex; border-radius: 8px; }
.pw-eye:hover { color: var(--blue); }

/* ---- answered questions sink; askers get a nudge ---- */
.q-divider { padding: 8px 16px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green, #059669); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.q-row.is-solved .q-row-title { color: var(--ink-mid); font-weight: 500; }
.badge-nudge { background: #FEF3C7; color: #92400E; border-radius: 12px; padding: 2px 9px; font-size: 11px; font-weight: 600; }
.pin-nudge { margin-top: 12px; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; }

#bootMsg { margin: 0; font-size: 13px; color: var(--ink-faint, #8492A6); min-height: 18px; }

.badge-reported { background: #FEE2E2; color: #B91C1C; border-radius: 12px; padding: 2px 9px; font-size: 11px; font-weight: 600; }

/* ---- help & feedback ---- */
.help-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #EAF3FD, #fff); border: 1.5px solid var(--blue-mid, #BBD6F5); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; }
.help-card div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.help-card span { color: var(--ink-faint); font-size: 13px; }
.help-link { display: block; margin-top: 14px; text-align: center; color: var(--blue); font-weight: 600; font-size: 14px; text-decoration: none; }
.help-link:hover { text-decoration: underline; }
.help-link.hidden { display: none; }

/* ---- help chat widget ---- */
#helpFab { position: fixed; right: 18px; bottom: 18px; z-index: 450; height: 52px; min-width: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; background: linear-gradient(135deg, #2F7DD8, #1E4FA8); color: #fff; border: none; border-radius: 26px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(47,125,216,.45); transition: transform .2s, box-shadow .2s, padding .25s; }
#helpFab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(47,125,216,.5); }
#helpFab .hf-ico { font-size: 20px; line-height: 1; }
#helpFab .hf-label { max-width: 160px; overflow: hidden; white-space: nowrap; transition: max-width .25s, opacity .2s; }
#helpFab.open { padding: 0; width: 52px; }
#helpFab.open .hf-label { max-width: 0; opacity: 0; }
#helpPanel { position: fixed; right: 18px; bottom: 82px; z-index: 449; width: 372px; height: min(540px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(22,33,58,.28), 0 2px 8px rgba(22,33,58,.1); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(18px) scale(.95); transform-origin: bottom right; transition: opacity .22s ease, transform .26s cubic-bezier(.2,.9,.3,1.15), visibility .22s; }
#helpPanel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.hp-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #2F7DD8, #1E4FA8); color: #fff; }
.hp-head img { width: 38px; height: 38px; background: #fff; border-radius: 11px; padding: 4px; object-fit: contain; }
.hp-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.hp-head small { opacity: .85; font-size: 12px; }
.hp-x { background: rgba(255,255,255,.18); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.hp-x:hover { background: rgba(255,255,255,.3); }
.hp-tabs { display: flex; gap: 6px; padding: 10px 12px 0; }
.hp-tab { flex: 1; background: #F1F5F9; border: none; border-radius: 10px; padding: 8px; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink-mid); cursor: pointer; transition: all .15s; }
.hp-tab.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.hp-body { flex: 1; overflow-y: auto; padding: 14px 14px 6px; scroll-behavior: smooth; }
.hp-thread { display: flex; flex-direction: column; gap: 8px; }
.hp-b { max-width: 86%; padding: 9px 13px; font-size: 14px; line-height: 1.45; word-break: break-word; animation: hpIn .25s ease; }
.hp-b.bot { align-self: flex-start; background: #F1F5F9; color: var(--ink); border-radius: 16px 16px 16px 4px; }
.hp-b.me { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; }
.hp-b.err { background: #FEE2E2; color: #B91C1C; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; animation: hpIn .3s ease; }
.hp-chips button { background: #fff; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 18px; padding: 6px 12px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; }
.hp-chips button:hover { background: var(--blue); color: #fff; }
.hp-typing { display: flex; gap: 4px; padding: 12px 14px; }
.hp-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; animation: hpDot 1s infinite; }
.hp-typing i:nth-child(2) { animation-delay: .15s; } .hp-typing i:nth-child(3) { animation-delay: .3s; }
.hp-foot { padding: 8px 12px 12px; border-top: 1px solid var(--border); }
.hp-anon { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-mid); margin: 0 0 8px 2px; cursor: pointer; }
.hp-anon.hidden { display: none; }
.hp-compose { display: flex; align-items: flex-end; gap: 8px; background: #F1F5F9; border-radius: 22px; padding: 6px 6px 6px 14px; }
.hp-compose textarea { flex: 1; border: none; background: transparent; resize: none; outline: none; font-family: inherit; font-size: 14px; line-height: 1.4; padding: 6px 0; max-height: 110px; color: var(--ink); }
.hp-compose button { width: 34px; height: 34px; flex-shrink: 0; border: none; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; font-size: 14px; transition: transform .15s, opacity .15s; }
.hp-compose button:hover { transform: scale(1.08); } .hp-compose button:disabled { opacity: .5; }
@keyframes hpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hpDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 520px) { #helpPanel { right: 10px; left: 10px; width: auto; bottom: 76px; } #helpFab .hf-label { display: none; } #helpFab { padding: 0; width: 52px; } }

.hp-b.team { background: #EAF3FD; border: 1px solid #BBD6F5; }
.hp-b.team::before { content: 'EduLoop'; display: block; font-size: 11px; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.hp-compose textarea:disabled { cursor: not-allowed; }
#helpFab.has-unread::after { content: ''; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; background: #EF4444; border: 2px solid #fff; border-radius: 50%; animation: hpDot 1.2s infinite; }

.hp-tab { font-size: 12.5px; padding: 8px 4px; position: relative; }
.hp-tab.has-unread::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: #EF4444; vertical-align: middle; }
.hp-foot.hidden { display: none; }
.hp-re { font-size: 11.5px; color: var(--ink-faint); border-left: 3px solid #BBD6F5; padding-left: 8px; margin: 2px 0 6px; }
.hp-time { font-size: 11px; color: var(--ink-faint); margin-top: 6px; }
.hp-ann { align-self: stretch; background: linear-gradient(135deg, #EAF3FD, #fff); border: 1px solid #BBD6F5; border-radius: 16px; padding: 12px 14px; animation: hpIn .25s ease; }
.hp-ann .k { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.hp-ann h4 { margin: 0 0 4px; font-family: 'Sora', sans-serif; font-size: 15px; }
.hp-ann p { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.hp-link { display: inline-block; margin: 8px 8px 0 0; background: var(--blue); color: #fff; border: none; border-radius: 16px; padding: 6px 14px; font-family: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.hp-link:hover { background: #1E4FA8; }

/* ---- sign-up notes ---- */
.ob-warn { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin: 0 0 16px; }
.ob-summary { background: var(--blue-light); border: 1px solid var(--blue-mid, #BBD6F5); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ob-summary span { font-size: 12px; color: var(--ink-faint); }
.ob-note { font-size: 13px; color: var(--ink-faint); margin: -6px 0 14px; }
/* ---- dashboard announcements ---- */
.dash-ann { background: linear-gradient(135deg, #EAF3FD, #fff); border: 1.5px solid var(--blue-mid, #BBD6F5); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.dash-ann.hidden { display: none; }
.dash-ann-head { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--blue); margin-bottom: 10px; }
.dash-ann-item { padding: 10px 0; border-top: 1px solid rgba(47,125,216,.15); }
.dash-ann-item:first-of-type { border-top: none; padding-top: 0; }
.dash-ann-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dash-ann-new { background: #EF4444; color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 10px; font-weight: 700; }
.dash-ann-item p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-mid); white-space: pre-wrap; word-break: break-word; }
.dash-ann-link { display: inline-block; margin-top: 6px; color: var(--blue); font-weight: 600; font-size: 13px; text-decoration: none; }
.dash-ann-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 6px; }
/* ---- about page ---- */
.about-wrap { max-width: 820px; margin: 0 auto; padding: 8px 0 40px; }
.about-hero { text-align: center; padding: 28px 20px 10px; }
.about-mark { width: 84px; height: 84px; object-fit: contain; margin-bottom: 8px; }
.about-hero h1 { font-family: 'Sora', sans-serif; font-size: 32px; margin: 0 0 12px; }
.about-hero p { font-size: 17px; line-height: 1.65; color: var(--ink-mid); max-width: 640px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.about-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.about-card span { font-size: 26px; } .about-card b { display: block; font-family: 'Sora', sans-serif; margin: 6px 0 4px; }
.about-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-mid); }
.about-wrap h2 { font-family: 'Sora', sans-serif; font-size: 22px; margin: 30px 0 14px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.video-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-thumb, .video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: none; }
.video-thumb { background: #16213A center/cover no-repeat; position: relative; cursor: pointer; padding: 0; }
.video-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(47,125,216,.92); color: #fff; font-size: 24px; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .15s; }
.video-thumb:hover .video-play { transform: scale(1.1); }
.video-cap { padding: 12px 16px; font-weight: 600; font-size: 14px; }
.founder-card { display: flex; gap: 26px; align-items: flex-start; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.founder-photo { flex-shrink: 0; width: 132px; height: 132px; border-radius: 50%; background: linear-gradient(135deg, #2F7DD8, #1E4FA8); color: #fff; font-family: 'Sora', sans-serif; font-size: 40px; font-weight: 700; display: grid; place-items: center; overflow: hidden; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-text p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; color: var(--ink-mid); }
.founder-sign { margin-top: 18px; display: flex; flex-direction: column; }
.founder-sign b { font-family: 'Sora', sans-serif; font-size: 17px; }
.founder-sign span { font-size: 13px; color: var(--ink-faint); }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } .founder-card { flex-direction: column; align-items: center; text-align: left; } }
/* ---- welcome pop-up ---- */
.welcome-overlay { position: fixed; inset: 0; z-index: 2800; background: rgba(22,33,58,.55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .25s ease; transition: opacity .25s; }
.welcome-overlay.out { opacity: 0; }
.welcome-card { width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 32px 28px 24px; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,.3); animation: hpIn .35s ease; }
.welcome-card img { width: 76px; height: 76px; object-fit: contain; }
.welcome-card h2 { font-family: 'Sora', sans-serif; font-size: 24px; margin: 10px 0 8px; }
.welcome-card p { font-size: 15px; line-height: 1.6; color: var(--ink-mid); margin: 0 0 20px; }

.ob-privacy { display: inline-block; margin-top: 14px; color: #fff; opacity: .85; font-size: 13px; text-decoration: underline; }
.ob-privacy:hover { opacity: 1; }
.about-legal { text-align: center; margin-top: 34px; font-size: 14px; }
.about-legal a { color: var(--blue); font-weight: 600; }
.ob-hint a { color: var(--blue); }

.delete-link { display: block; margin: 0 20px 18px; background: none; border: none; color: var(--ink-faint); font-family: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.delete-link:hover { color: #B91C1C; }
.founder-sign em { font-style: normal; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px; color: var(--blue); margin-bottom: 6px; }
.about-social { text-align: center; }
.about-social.hidden { display: none; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; background: #0A66C2; color: #fff; text-decoration: none; font-weight: 600; border-radius: 12px; padding: 12px 22px; }
.social-btn b { background: #fff; color: #0A66C2; border-radius: 4px; padding: 0 5px; font-size: 14px; }
.social-btn:hover { background: #084d93; }

.room-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.room-stats b { font-size: 16px; } .room-stats span { font-size: 10.5px; }
.dash-community { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-community.hidden { display: none; }
.dash-community > div { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px 20px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px; }
.dash-community b { font-family: 'Sora', sans-serif; font-size: 24px; color: var(--blue); }
.dash-community span { font-size: 14px; color: var(--ink-mid); }
.dash-community .seed { background: linear-gradient(135deg, #ECFDF5, #fff); border-color: #A7F3D0; }

.room-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
.room-stats b { font-size: 18px; } .room-stats span { font-size: 11px; }

/* ===== Phones ===== */
html { -webkit-text-size-adjust: 100%; }
.room-info-btn { display: none; }
.app-nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.app-nav-inner::-webkit-scrollbar { display: none; }
.nav-tab { flex-shrink: 0; }
.main-wrap { overflow-x: clip; }
.founder-photo.has-img { background-size: cover; background-position: center 20%; background-repeat: no-repeat; }
.video-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.founder-text, .about-wrap { min-width: 0; }
@media (max-width: 820px) {
  #onboardingModal { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .ob-brand { display: block; padding: 24px 22px 58px; }
  .ob-brand-inner { max-width: none; margin: 0; }
  .ob-logo { margin-bottom: 14px; }
  .ob-brand h1 { font-size: 24px; margin-bottom: 8px; }
  .ob-intro { display: block; font-size: 14.5px; line-height: 1.55; margin-bottom: 12px; }
  .ob-points { display: none; }
  .ob-pane { display: block; position: relative; margin-top: -32px; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -8px 24px rgba(22,33,58,.14); padding: 28px 20px 44px; overflow: visible; }
  .ob-inner { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
  header { padding: 0 14px; }
  .main-wrap, .view, .feed-layout > * { min-width: 0; }
  .nav-tab { padding: 13px 14px; }
  .hide-sm { display: none; }
  .left-panel { display: none; position: static; }
  .left-panel.open { display: block; margin-bottom: 14px; }
  .room-info-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px; background: var(--blue-light); border: 1.5px solid var(--blue-mid, #BBD6F5); color: var(--blue); border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; }
  .about-hero h1 { font-size: 26px; } .about-hero p { font-size: 15.5px; }
  .founder-card { padding: 20px; }
  .founder-photo { width: 120px; height: 120px; align-self: center; }
}
