/* HOW TO — Main Stylesheet
   iPhone-inspired: frosted glass, smooth curves, deep color, spatial depth */

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

:root {
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-light:  #EFF6FF;
  --cyan:        #06B6D4;
  --slate:       #1E293B;
  --slate-light: #334155;
  --muted:       #64748B;
  --border:      rgba(0,0,0,.08);
  --border-s:    rgba(0,0,0,.12);
  --white:       #FFFFFF;
  --off:         #F8FAFC;
  --glass-bg:    rgba(255,255,255,.72);
  --glass-border:rgba(255,255,255,.5);
  --radius-xs:   8px;
  --radius-sm:   12px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-pill: 999px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
  --shadow-glow: 0 0 0 4px rgba(37,99,235,.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--off);
  color: var(--slate);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: rgba(37,99,235,.15); color: var(--blue-dark); }

/* ── CONTAINER ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px; letter-spacing: -.5px;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.logo-text { font-weight: 700; font-size: 17px; color: var(--slate); letter-spacing: -.3px; }

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: all .2s var(--ease);
}
.nav-link:hover { background: rgba(37,99,235,.08); color: var(--blue); }

.nav-actions { display: flex; gap: 8px; margin-left: auto; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--slate); border-radius: 2px; transition: all .3s var(--ease); }

.nav-mobile { display: none; flex-direction: column; padding: 12px 24px 20px; gap: 4px; border-top: 1px solid var(--border); }
.nav-mobile.open { display: flex; }
.nav-mobile-link { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--slate); text-decoration: none; transition: background .2s; }
.nav-mobile-link:hover { background: var(--blue-light); }
.nav-mobile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: all .22s var(--ease);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255,255,255,.15), transparent);
  pointer-events: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white; box-shadow: 0 2px 8px rgba(37,99,235,.3), 0 0 0 0 rgba(37,99,235,.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--slate); }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn-white { background: white; color: var(--blue); font-weight: 700; box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-full { width: 100%; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative; overflow: hidden;
  background: linear-gradient(165deg, #0F172A 0%, #1E293B 40%, #0F2867 100%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5; animation: orb-float 8s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #2563EB 0%, transparent 70%); top: -200px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #06B6D4 0%, transparent 70%); bottom: -100px; left: -100px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #7C3AED 0%, transparent 70%); top: 40%; left: 40%; animation-delay: -6s; }

@keyframes orb-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(.95); }
}

.hero-content { position: relative; z-index: 1; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-pill);
  padding: 6px 16px; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot { width: 7px; height: 7px; background: #34D399; border-radius: 50%; box-shadow: 0 0 8px #34D399; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{box-shadow: 0 0 8px #34D399;} 50%{box-shadow: 0 0 16px #34D399;} }

.hero-title {
  font-size: clamp(48px, 7vw, 88px); font-weight: 800; line-height: 1.05;
  letter-spacing: -2px; color: white; margin-bottom: 20px;
}
.title-gradient {
  background: linear-gradient(135deg, #60A5FA 0%, #06B6D4 50%, #A78BFA 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.6); line-height: 1.65; margin-bottom: 40px; }

/* ── SEARCH HERO ── */
.search-hero { position: relative; max-width: 680px; margin: 0 auto 24px; }
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
  border: 1.5px solid var(--glass-border); border-radius: var(--radius-xl);
  padding: 10px 10px 10px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.1);
  transition: all .25s var(--ease);
}
.search-box:focus-within {
  border-color: var(--blue); box-shadow: 0 20px 60px rgba(0,0,0,.3), var(--shadow-glow);
  transform: translateY(-2px);
}
.search-icon { color: var(--muted); flex-shrink: 0; display: flex; }
.search-input {
  flex: 1; font-family: var(--font); font-size: 16px; font-weight: 400;
  color: var(--slate); background: transparent; border: none; outline: none;
}
.search-input::placeholder { color: #94A3B8; }
.search-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white; border: none; border-radius: var(--radius-lg);
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: all .22s var(--ease);
  box-shadow: 0 4px 12px rgba(37,99,235,.4);
}
.search-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,99,235,.5); }
.search-btn:active { transform: scale(.95); }

.search-suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 100;
  display: none;
}
.search-suggestions.open { display: block; animation: slide-down .2s var(--ease); }
@keyframes slide-down { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.suggestion-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; font-size: 14px; color: var(--slate);
  cursor: pointer; transition: background .15s;
}
.suggestion-item:hover { background: var(--blue-light); color: var(--blue); }
.suggestion-item svg { color: var(--muted); flex-shrink: 0; }

.quick-tags { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.quick-label { font-size: 13px; color: rgba(255,255,255,.5); }
.quick-tag {
  padding: 5px 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.8);
  text-decoration: none; font-size: 13px; font-weight: 500;
  transition: all .2s var(--ease);
}
.quick-tag:hover { background: rgba(255,255,255,.2); color: white; transform: translateY(-1px); }

/* ── STATS ── */
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: rgba(255,255,255,.06); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl);
  padding: 24px 40px; margin-top: 64px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.stat-item { text-align: center; flex: 1; }
.stat-num { display: block; font-size: 32px; font-weight: 800; color: white; letter-spacing: -1px; }
.stat-label { display: block; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.12); margin: 0 24px; }

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section-alt { background: white; }

.section-header {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.section-eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; display: block; width: 100%; }
.section-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -1px; color: var(--slate); }
.section-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none;
  transition: gap .2s var(--ease);
}
.section-link:hover { gap: 10px; }

/* ── QUESTION CARDS ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.q-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; cursor: pointer; text-decoration: none; display: block; color: inherit;
  transition: all .25s var(--ease); position: relative; overflow: hidden;
}
.q-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, var(--blue-light) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.q-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.2); }
.q-card:hover::before { opacity: 1; }
.q-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.q-badge {
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600; background: var(--blue-light); color: var(--blue);
}
.q-card-title { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--slate); margin-bottom: 10px; }
.q-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.q-card-footer { display: flex; align-items: center; gap: 16px; }
.q-stat { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 500; }
.q-stat svg { color: var(--muted); }
.q-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 10px; font-weight: 700; margin-left: auto;
}

/* ── CATEGORIES GRID ── */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}
.cat-card {
  background: var(--off); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center; text-decoration: none; color: inherit;
  transition: all .25s var(--ease); cursor: pointer;
}
.cat-card:hover { background: white; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.2); }
.cat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.cat-name { font-size: 14px; font-weight: 700; color: var(--slate); margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--muted); }

/* ── LIST FEED ── */
.list-feed { display: flex; flex-direction: column; gap: 12px; }
.feed-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; text-decoration: none; color: inherit;
  transition: all .2s var(--ease);
}
.feed-item:hover { border-color: rgba(37,99,235,.25); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.feed-num {
  font-size: 22px; font-weight: 800; color: var(--blue); letter-spacing: -1px;
  min-width: 36px; line-height: 1;
}
.feed-content { flex: 1; }
.feed-title { font-size: 15px; font-weight: 700; color: var(--slate); margin-bottom: 6px; line-height: 1.4; }
.feed-meta { display: flex; gap: 12px; }
.feed-tag { font-size: 12px; color: var(--blue); font-weight: 600; }
.feed-time { font-size: 12px; color: var(--muted); }
.feed-answers { text-align: right; flex-shrink: 0; }
.feed-ans-count { display: block; font-size: 20px; font-weight: 800; color: #10B981; }
.feed-ans-label { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ── CONTRIBUTORS ── */
.contributors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.contributor-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center; transition: all .25s var(--ease); text-decoration: none; display: block; color: inherit;
}
.contributor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.c-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: white;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.c-name { font-size: 15px; font-weight: 700; color: var(--slate); margin-bottom: 3px; }
.c-role { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.c-stats { display: flex; justify-content: center; gap: 20px; }
.c-stat { text-align: center; }
.c-stat-num { display: block; font-size: 18px; font-weight: 800; color: var(--slate); }
.c-stat-lbl { display: block; font-size: 11px; color: var(--muted); }
.c-badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; margin-bottom: 12px; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #1D4ED8 40%, #4F46E5 100%);
  padding: 96px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.cta-orb-1 { width: 400px; height: 400px; background: rgba(6,182,212,.3); top: -100px; right: -100px; }
.cta-orb-2 { width: 300px; height: 300px; background: rgba(124,58,237,.3); bottom: -80px; left: -80px; }
.cta-content { position: relative; z-index: 1; }
.cta-title { font-size: clamp(32px, 4vw, 52px); font-weight: 800; color: white; letter-spacing: -1.5px; margin-bottom: 16px; }
.cta-sub { font-size: 18px; color: rgba(255,255,255,.7); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: var(--slate); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { color: white; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.4); margin: 10px 0 20px; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all .2s;
}
.social-link:hover { background: rgba(255,255,255,.15); color: white; }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer-link { display: block; font-size: 14px; color: rgba(255,255,255,.6); text-decoration: none; padding: 5px 0; transition: color .2s; }
.footer-link:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px; }

/* ── QUESTION PAGE ── */
.page-hero { padding: 120px 0 48px; background: linear-gradient(to bottom, white, var(--off)); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb-sep { color: var(--border); }
.q-header-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: var(--radius-pill); background: var(--blue-light); color: var(--blue); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.q-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--slate); line-height: 1.2; letter-spacing: -1px; margin-bottom: 20px; }
.q-meta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.q-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.q-meta-item svg { color: var(--muted); }
.author-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; }
.author-name { font-size: 13px; font-weight: 600; color: var(--slate); }

.q-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 48px 0 96px; align-items: start; }
.q-main {}
.q-sidebar { position: sticky; top: 84px; }

.q-body { font-size: 16px; line-height: 1.75; color: var(--slate); }
.q-body h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; color: var(--slate); }
.q-body h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.q-body p { margin-bottom: 16px; }
.q-body ul, .q-body ol { margin: 16px 0 16px 24px; }
.q-body li { margin-bottom: 8px; }

.steps-list { margin: 24px 0; }
.step-item { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.step-content { flex: 1; }
.step-title { font-size: 17px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.step-body { font-size: 15px; color: var(--muted); line-height: 1.65; }

.q-actions-bar {
  display: flex; align-items: center; gap: 12px; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 32px 0;
}
.action-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: white; font-size: 14px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .2s var(--ease);
}
.action-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.action-btn.active { background: var(--blue-light); color: var(--blue); border-color: rgba(37,99,235,.3); }

.sidebar-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.sidebar-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 12px; border-radius: var(--radius-pill); background: var(--off); border: 1px solid var(--border); font-size: 13px; color: var(--slate); text-decoration: none; font-weight: 500; transition: all .2s; }
.tag:hover { background: var(--blue-light); color: var(--blue); border-color: rgba(37,99,235,.2); }

.related-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.related-item:last-child { border-bottom: none; }
.related-num { font-size: 13px; font-weight: 800; color: var(--blue); min-width: 20px; }
.related-title { font-size: 13px; color: var(--slate); line-height: 1.4; font-weight: 500; }

/* ── ANSWERS ── */
.answers-section { margin-top: 48px; }
.answers-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.answers-count { font-size: 22px; font-weight: 800; color: var(--slate); }

.answer-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 16px; position: relative;
}
.answer-card.accepted { border-color: #10B981; }
.accepted-badge { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: var(--radius-pill); background: #ECFDF5; color: #065F46; font-size: 12px; font-weight: 700; }
.answer-body { font-size: 15px; line-height: 1.75; color: var(--slate); margin: 16px 0; }
.answer-footer { display: flex; align-items: center; gap: 12px; }
.vote-btn {
  display: flex; align-items: center; gap: 5px; padding: 6px 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .2s;
}
.vote-btn:hover { border-color: var(--blue); color: var(--blue); }
.vote-btn.upvoted { background: var(--blue-light); color: var(--blue); border-color: rgba(37,99,235,.3); }

/* ── BROWSE PAGE ── */
.browse-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 100px 0 80px; }
.browse-sidebar { position: sticky; top: 84px; }
.filter-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.filter-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }
.filter-option {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; color: var(--slate); font-weight: 500;
  transition: all .15s; margin-bottom: 2px;
}
.filter-option:hover { background: var(--off); }
.filter-option.active { background: var(--blue-light); color: var(--blue); }
.filter-option input { accent-color: var(--blue); }

.browse-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.results-count { font-size: 15px; color: var(--muted); font-weight: 500; }
.sort-select {
  padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 14px; font-family: var(--font); color: var(--slate); background: white;
  cursor: pointer; outline: none; transition: border-color .2s;
}
.sort-select:focus { border-color: var(--blue); }

.browse-list { display: flex; flex-direction: column; gap: 12px; }
.browse-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 24px; text-decoration: none; color: inherit;
  display: flex; gap: 20px; transition: all .2s var(--ease);
}
.browse-card:hover { border-color: rgba(37,99,235,.2); box-shadow: var(--shadow-md); transform: translateX(4px); }
.browse-votes { text-align: center; flex-shrink: 0; min-width: 50px; }
.browse-vote-num { display: block; font-size: 22px; font-weight: 800; color: var(--slate); }
.browse-vote-lbl { display: block; font-size: 11px; color: var(--muted); }
.browse-card-body { flex: 1; }
.browse-card-title { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 6px; line-height: 1.4; }
.browse-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.browse-card-footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── FORMS & AUTH ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; background: linear-gradient(165deg, #0F172A, #1E293B); }
.auth-card {
  width: 100%; max-width: 440px;
  background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
  border-radius: var(--radius-xl); padding: 48px 40px;
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
  animation: card-pop .4s var(--spring);
}
@keyframes card-pop { from { opacity:0; transform:scale(.92) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }
.auth-logo { text-align: center; margin-bottom: 8px; }
.auth-title { font-size: 26px; font-weight: 800; color: var(--slate); text-align: center; letter-spacing: -.5px; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 32px; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--muted); font-weight: 500; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); font-family: var(--font); font-size: 15px;
  color: var(--slate); background: var(--off); outline: none;
  transition: all .2s var(--ease);
}
.form-input:focus { border-color: var(--blue); background: white; box-shadow: var(--shadow-glow); }
.form-input::placeholder { color: #94A3B8; }
.form-error { font-size: 12px; color: #EF4444; margin-top: 5px; font-weight: 500; display: none; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-input {
  width: 54px; height: 60px; border-radius: var(--radius-md);
  border: 2px solid var(--border); text-align: center;
  font-size: 24px; font-weight: 700; color: var(--slate);
  background: var(--off); outline: none; font-family: var(--font);
  transition: all .2s;
}
.otp-input:focus { border-color: var(--blue); background: white; box-shadow: var(--shadow-glow); transform: scale(1.05); }

/* ── DASHBOARD ── */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--off); }
.dash-sidebar {
  background: white; border-right: 1px solid var(--border);
  padding: 80px 0 32px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
}
.dash-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px;
  font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: all .15s; margin: 1px 12px; border-radius: var(--radius-sm);
}
.dash-nav-item:hover { background: var(--off); color: var(--slate); }
.dash-nav-item.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.dash-nav-item svg { flex-shrink: 0; }
.dash-nav-section { padding: 16px 20px 6px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }

.dash-main { padding: 88px 40px 48px; }
.dash-welcome { margin-bottom: 40px; }
.dash-welcome h1 { font-size: 28px; font-weight: 800; color: var(--slate); letter-spacing: -.5px; }
.dash-welcome p { color: var(--muted); margin-top: 4px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.dash-stat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; transition: transform .2s;
}
.dash-stat-card:hover { transform: translateY(-2px); }
.dash-stat-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.dash-stat-value { font-size: 32px; font-weight: 800; color: var(--slate); letter-spacing: -1px; }
.dash-stat-delta { font-size: 12px; font-weight: 600; margin-top: 4px; }
.delta-up { color: #10B981; }
.delta-down { color: #EF4444; }

/* ── ADMIN ── */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--off); }
.admin-sidebar {
  background: var(--slate); padding: 80px 0 32px; position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 24px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.5);
  text-decoration: none; transition: all .15s;
}
.admin-nav-item:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); }
.admin-nav-item.active { background: rgba(37,99,235,.3); color: white; }
.admin-nav-section { padding: 16px 24px 6px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.25); text-transform: uppercase; letter-spacing: .8px; }
.admin-main { padding: 88px 40px 48px; }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: var(--slate); color: white; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500;
  animation: toast-in .3s var(--spring);
  min-width: 260px; max-width: 360px;
}
.toast.success { background: #065F46; }
.toast.error { background: #991B1B; }
.toast.info { background: var(--blue-dark); }
@keyframes toast-in { from { opacity:0; transform:translateX(20px) scale(.96); } to { opacity:1; transform:translateX(0) scale(1); } }

/* ── LOADING ── */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: white;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  text-decoration: none; transition: all .2s;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .q-layout { grid-template-columns: 1fr; }
  .q-sidebar { position: static; }
  .browse-layout { grid-template-columns: 1fr; }
  .browse-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 100px 0 60px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { padding: 20px; }
  .dash-stats { grid-template-columns: 1fr; }
  .browse-sidebar { grid-template-columns: 1fr; }
}

/* ── UTILITIES ── */
.text-blue { color: var(--blue); }
.text-muted { color: var(--muted); }
.text-green { color: #10B981; }
.text-red { color: #EF4444; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }