/* ============================================================
   QUINET COMMUNITY — style.css
   ============================================================ */

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

:root {
  --bg:          #0d0f14;
  --bg2:         #13161e;
  --bg3:         #1c2030;
  --border:      #252a3a;
  --accent:      #00d4ff;
  --accent2:     #7c5cfc;
  --danger:      #ff4d6d;
  --success:     #00e5a0;
  --warning:     #ffb627;
  --text:        #e8eaf0;
  --text-muted:  #6b7391;
  --text-dim:    #3d4460;
  --card-shadow: 0 4px 24px rgba(0,0,0,.45);
  --radius:      14px;
  --radius-sm:   8px;
  --nav-h:       64px;
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ══ NAVBAR ══════════════════════════════════════════════════ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav-back-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,212,255,.06);
}

.drawer-back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--border) !important;
  color: var(--accent) !important;
  font-weight: 600 !important;
  background: rgba(0,212,255,.04) !important;
}

.nav-logo span.dim { color: var(--text-muted); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-link.active { color: var(--accent); }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.nav-ask-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--font-head);
  transition: all var(--transition);
}
.nav-ask-btn:hover { background: #22e5ff; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

.nav-drawer {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  z-index: 99;
}
.nav-drawer.open { display: flex; }
.drawer-link {
  padding: 14px 24px;
  font-size: .9rem;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: var(--transition);
  display: block;
}
.drawer-link:hover, .drawer-link.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg3);
}
.drawer-logout { width: 100%; text-align: left; }

/* ══ PAGE LAYOUT ════════════════════════════════════════════ */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

/* ══ CARDS ══════════════════════════════════════════════════ */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* ══ QUESTION CARD ══════════════════════════════════════════ */
.question-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition), transform var(--transition);
  animation: fadeUp .3s ease both;
  display: block;
}
.question-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.question-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.question-category {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0,212,255,.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.question-card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  transition: color var(--transition);
}
.question-card:hover .question-card-title { color: var(--accent); }

.question-card-excerpt {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.question-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.question-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.question-author {
  font-size: .78rem;
  color: var(--text-muted);
}

.question-time {
  font-size: .75rem;
  color: var(--text-dim);
}

.question-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--text-muted);
}

.stat-item svg { flex-shrink: 0; }

.bookmark-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color var(--transition), background var(--transition);
}
.bookmark-btn:hover { background: var(--bg3); color: var(--accent); }
.bookmark-btn.saved { color: var(--accent); }

/* ══ VOTE BUTTONS ═══════════════════════════════════════════ */
.vote-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.vote-btn:hover { background: var(--bg3); color: var(--text); }
.vote-btn.upvoted { color: var(--success); }
.vote-btn.downvoted { color: var(--danger); }

/* ══ CATEGORY FILTER ════════════════════════════════════════ */
.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cat-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.cat-btn:hover { color: var(--accent); border-color: var(--accent); }
.cat-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ══ ANSWER ITEM ════════════════════════════════════════════ */
.answer-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp .25s ease both;
}
.answer-item:last-child { border-bottom: none; }
.answer-item.best-answer {
  background: rgba(0,229,160,.04);
  border: 1px solid rgba(0,229,160,.2);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 8px;
}

.answer-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.answer-content { flex: 1; min-width: 0; }

.answer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.answer-username {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}
.answer-username:hover { color: var(--accent); }

.answer-time { font-size: .75rem; color: var(--text-dim); }

.best-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(0,229,160,.15);
  color: var(--success);
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 700;
}

.answer-body {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.answer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.answer-action-btn {
  font-size: .78rem;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.answer-action-btn:hover { color: var(--accent); background: var(--bg3); }
.answer-action-btn.danger:hover { color: var(--danger); }
.answer-action-btn.best-btn { color: var(--success); }

/* ══ QUESTION DETAIL ════════════════════════════════════════ */
.question-detail-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.question-detail-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.question-detail-body {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 24px;
}

.question-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* ══ ANSWER FORM ════════════════════════════════════════════ */
.answer-form-section { margin-top: 32px; }

.answer-form-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.answer-form {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.answer-form-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.answer-form-right { flex: 1; }

.answer-form textarea {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color var(--transition);
}
.answer-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,.1); }

.answer-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.char-count { font-size: .75rem; color: var(--text-dim); }

/* ══ FORMS ══════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,.12); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-select { appearance: none; cursor: pointer; }

.form-hint { font-size: .78rem; color: var(--text-dim); margin-top: 5px; }
.form-error { font-size: .82rem; color: var(--danger); margin-top: 6px; display: none; }
.form-error.show { display: block; }

/* ══ BUTTONS ════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #22e5ff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,212,255,.3); }
.btn-secondary { background: var(--bg3); border: 1.5px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: rgba(255,77,109,.15); border: 1.5px solid var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ══ AUTH PAGES ═════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(0,212,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(124,92,252,.08) 0%, transparent 60%),
    var(--bg);
}

.auth-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--card-shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 28px;
  justify-content: center;
}

.auth-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { font-size: .875rem; color: var(--text-muted); margin-bottom: 24px; }

.auth-tabs {
  display: flex;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  gap: 2px;
}
.auth-tab {
  flex: 1; padding: 9px;
  font-size: .82rem; font-weight: 600;
  font-family: var(--font-head);
  color: var(--text-muted);
  border-radius: 6px; text-align: center;
  transition: all var(--transition);
}
.auth-tab.active { background: var(--accent); color: #000; }
.auth-tab:hover:not(.active) { color: var(--text); }

.auth-alert {
  background: rgba(255,77,109,.1);
  border: 1px solid rgba(255,77,109,.3);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: .85rem;
  margin-bottom: 16px; display: none;
}
.auth-alert.show { display: block; }

.auth-success {
  background: rgba(0,229,160,.1);
  border: 1px solid rgba(0,229,160,.3);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: .85rem;
  margin-bottom: 16px; display: none;
}
.auth-success.show { display: block; }

.auth-switch { font-size: .85rem; color: var(--text-muted); text-align: center; margin-top: 20px; }
.auth-switch a { color: var(--accent); font-weight: 600; }

.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 42px; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim); font-size: .75rem; font-weight: 600;
  transition: color var(--transition);
}
.toggle-pw:hover { color: var(--accent); }

/* ══ EMPTY STATE ════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.empty-state svg { margin: 0 auto 16px; opacity: .4; }
.empty-state h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { font-size: .875rem; }

/* ══ TOAST ══════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateX(20px);
  transition: all .3s ease;
  max-width: 300px;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { border-color: var(--success); color: var(--success); }
.toast-error   { border-color: var(--danger);  color: var(--danger); }
.toast-info    { border-color: var(--accent);  color: var(--accent); }

/* ══ SKELETON ═══════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card { height: 160px; border-radius: var(--radius); margin-bottom: 16px; }

/* ══ SPINNER ════════════════════════════════════════════════ */
.spinner {
  width: 20px; height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

/* ══ PROFILE ════════════════════════════════════════════════ */
.profile-hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.profile-username { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; }
.profile-bio { font-size: .875rem; color: var(--text-muted); margin-top: 4px; }
.profile-stats { display: flex; gap: 20px; margin-top: 12px; }
.profile-stat { font-size: .8rem; color: var(--text-muted); }
.profile-stat strong { font-size: 1rem; color: var(--text); font-family: var(--font-head); display: block; }

/* ══ ANIMATIONS ═════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ NOTIFICATIONS ══════════════════════════════════════════ */
.nav-notif-wrap {
  position: relative;
}

.nav-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.nav-bell-btn:hover { color: var(--text); background: var(--bg3); }
.nav-bell-btn.has-unread { color: var(--accent); }

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 300;
  overflow: hidden;
  animation: fadeUp .15s ease;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.notif-header-title {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
}
.notif-mark-all {
  font-size: .75rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
.notif-mark-all:hover { opacity: .7; }

.notif-list {
  max-height: 380px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .13s;
  text-decoration: none;
  color: inherit;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg3); }
.notif-item.unread { background: rgba(0,212,255,.04); }
.notif-item.unread:hover { background: rgba(0,212,255,.08); }

.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-dot.read { background: transparent; }

.notif-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.notif-body { flex: 1; min-width: 0; }
.notif-text {
  font-size: .82rem;
  line-height: 1.45;
  color: var(--text);
}
.notif-text strong { font-weight: 700; }
.notif-text em { font-style: normal; color: var(--text-muted); }
.notif-time {
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: 3px;
}

.notif-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
  font-size: .85rem;
}

/* ══ RESPONSIVE ═════════════════════════════════════════════ */
@media (max-width: 768px) {
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-back-btn { font-size: .7rem; padding: 4px 8px; }
  .question-detail-title { font-size: 1.3rem; }
  .profile-hero { flex-direction: column; text-align: center; }
  .profile-stats { justify-content: center; }
  .auth-box { padding: 28px 20px; }
  #toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { max-width: 100%; }
  .answer-form { flex-direction: column; }
  .answer-form-avatar { display: none; }
  .category-filter { gap: 6px; }
  .cat-btn { font-size: .75rem; padding: 5px 10px; }
}

@media (max-width: 480px) {
  .question-card-top { flex-direction: column; gap: 8px; }
  .question-detail-title { font-size: 1.2rem; }
  .question-detail-meta { gap: 10px; }
  .notif-dropdown { right: -60px; width: 300px; }
}