@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@300;400&display=swap');

/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  --bg:          #f5f4f0;
  --bg2:         #eceae4;
  --surface:     #ffffff;
  --surface2:    #f0ede7;
  --border:      #e2ddd6;
  --border2:     #d4cfc7;
  --text:        #181613;
  --text2:       #4a4540;
  --muted:       #9a9188;
  --accent:      #3d6b52;
  --accent-lt:   #eef5f1;
  --accent-mid:  #c2ddd0;
  --red:         #b94040;
  --red-lt:      #fdf0f0;
  --yellow:      #b87c1a;
  --yellow-lt:   #fdf5e6;
  --blue:        #2563a8;
  --blue-lt:     #eff4fd;
  --purple:      #6d44a8;
  --purple-lt:   #f3effd;
  --orange:      #c2601a;
  --orange-lt:   #fdf3eb;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Geist', system-ui, sans-serif;
  --font-mono:    'Geist Mono', monospace;

  --r-sm:   8px;
  --r:      12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow:    0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 36px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.13);

  --ease: cubic-bezier(.4,0,.2,1);
  --t: 0.2s;
}

[data-theme="dark"] {
  --bg:          #111210;
  --bg2:         #181a17;
  --surface:     #1e201c;
  --surface2:    #252722;
  --border:      #2e3129;
  --border2:     #383c32;
  --text:        #edeae3;
  --text2:       #b5b0a6;
  --muted:       #6e6b62;
  --accent:      #5aad7e;
  --accent-lt:   #172a20;
  --accent-mid:  #1e3d2c;
  --red:         #d96060;
  --red-lt:      #2a1515;
  --yellow:      #d4962a;
  --yellow-lt:   #2a2010;
  --blue:        #4a90d9;
  --blue-lt:     #0f1e30;
  --purple:      #9d72d9;
  --purple-lt:   #1a1228;
  --orange:      #d9843a;
  --orange-lt:   #2a1a08;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.25);
  --shadow:    0 2px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 36px rgba(0,0,0,0.45);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.60);
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: var(--r-full); }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mono { font-family: var(--font-mono); font-weight: 400; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container { width:100%; max-width:1120px; margin:0 auto; padding:0 24px; }
.container-sm { width:100%; max-width:480px; margin:0 auto; padding:0 24px; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:10px 20px; border-radius:var(--r-full);
  font-size:0.875rem; font-weight:500; line-height:1;
  cursor:pointer; border:1px solid transparent;
  transition:all var(--t) var(--ease); white-space:nowrap; letter-spacing:0.01em;
}
.btn:disabled { opacity:0.45; cursor:not-allowed; pointer-events:none; }
.btn-sm { padding:7px 14px; font-size:0.8rem; }
.btn-lg { padding:13px 28px; font-size:0.95rem; }
.btn-full { width:100%; }
.btn-primary { background:var(--text); color:var(--bg); border-color:var(--text); }
.btn-primary:hover { opacity:0.82; }
.btn-accent { background:var(--accent); color:#fff; border-color:var(--accent); }
.btn-accent:hover { opacity:0.88; transform:translateY(-1px); box-shadow:0 4px 14px rgba(61,107,82,0.3); }
.btn-outline { background:transparent; color:var(--text2); border-color:var(--border2); }
.btn-outline:hover { background:var(--surface2); color:var(--text); border-color:var(--border2); }
.btn-ghost { background:transparent; color:var(--muted); border-color:transparent; }
.btn-ghost:hover { background:var(--surface2); color:var(--text); }
.btn-google { background:var(--surface); color:var(--text); border-color:var(--border2); box-shadow:var(--shadow-sm); }
.btn-google:hover { background:var(--surface2); box-shadow:var(--shadow); }
.btn-google svg { width:17px; height:17px; flex-shrink:0; }
.btn-blue { background:var(--blue); color:#fff; border-color:var(--blue); }
.btn-blue:hover { opacity:0.88; transform:translateY(-1px); }

/* ═══════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════ */
.field { display:flex; flex-direction:column; gap:5px; }
.label {
  font-size:0.78rem; font-weight:500; color:var(--text2);
  letter-spacing:0.03em; text-transform:uppercase;
}
.input {
  width:100%; padding:11px 14px;
  background:var(--surface); border:1px solid var(--border2);
  border-radius:var(--r); color:var(--text); font-size:0.9rem;
  transition:border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
  outline:none;
}
.input:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-lt); }
.input::placeholder { color:var(--muted); }
.input.error { border-color:var(--red); box-shadow:0 0 0 3px var(--red-lt); }
.input.success { border-color:var(--accent); }
textarea.input { resize:vertical; min-height:88px; line-height:1.55; }
.hint { font-size:0.76rem; color:var(--muted); font-weight:300; }
.err-msg { font-size:0.76rem; color:var(--red); }
.ok-msg { font-size:0.76rem; color:var(--accent); }
.char-counter { font-family:var(--font-mono); font-size:0.72rem; color:var(--muted); text-align:right; }
.input-prefix-wrap { position:relative; }
.input-prefix {
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  color:var(--muted); font-family:var(--font-mono); font-size:0.88rem; pointer-events:none; z-index:1;
}
.input-prefix-wrap .input { padding-left:24px; font-family:var(--font-mono); font-size:0.88rem; }
.input-suffix {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  font-size:0.8rem; font-family:var(--font-mono); pointer-events:none;
}
.input-suffix.ok { color:var(--accent); }
.input-suffix.err { color:var(--red); }
.input-suffix.checking { color:var(--muted); }

/* Textarea wrap */
.textarea-wrap { position:relative; }
.textarea-wrap .char-counter { position:absolute; bottom:10px; right:12px; }
.textarea-wrap textarea { padding-bottom:26px; }

/* ═══════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════ */
.divider {
  display:flex; align-items:center; gap:12px;
  color:var(--muted); font-size:0.76rem; letter-spacing:0.04em; text-transform:uppercase;
}
.divider::before, .divider::after { content:''; flex:1; height:1px; background:var(--border); }

/* ═══════════════════════════════════════════
   CARD
═══════════════════════════════════════════ */
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:36px; box-shadow:var(--shadow); }
.card-sm { padding:24px; border-radius:var(--r-lg); }

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:100; height:60px;
  display:flex; align-items:center; justify-content:space-between; padding:0 32px;
  background:var(--bg); border-bottom:1px solid var(--border);
  transition:background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.nav-logo { font-family:var(--font-display); font-size:1.35rem; color:var(--text); letter-spacing:-0.01em; }
.nav-logo span { color:var(--accent); }
.nav-right { display:flex; align-items:center; gap:10px; }

/* ═══════════════════════════════════════════
   THEME TOGGLE
═══════════════════════════════════════════ */
.theme-btn {
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--border2); background:var(--surface);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:0.9rem; transition:all var(--t) var(--ease); flex-shrink:0;
}
.theme-btn:hover { background:var(--surface2); color:var(--text); }

/* ═══════════════════════════════════════════
   AVATAR UPLOAD
═══════════════════════════════════════════ */
.avatar-ring {
  width:90px; height:90px; border-radius:50%;
  border:2px dashed var(--border2); overflow:hidden; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  background:var(--surface2); transition:border-color var(--t) var(--ease), background var(--t) var(--ease); flex-shrink:0;
}
.avatar-ring:hover { border-color:var(--accent); background:var(--accent-lt); }
.avatar-ring img { width:100%; height:100%; object-fit:cover; }
.avatar-ring .avatar-init { font-family:var(--font-display); font-size:2.2rem; color:var(--accent); line-height:1; }
.avatar-ring .avatar-icon { font-size:1.4rem; color:var(--muted); }

/* ═══════════════════════════════════════════
   STEP DOTS
═══════════════════════════════════════════ */
.steps { display:flex; gap:5px; margin-bottom:28px; }
.step-bar { flex:1; height:3px; border-radius:var(--r-full); background:var(--border); transition:background 0.35s var(--ease); }
.step-bar.active { background:var(--accent); }

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
#toasts {
  position:fixed; bottom:20px; right:20px; z-index:9999;
  display:flex; flex-direction:column; gap:8px; pointer-events:none;
}
.toast {
  display:flex; align-items:center; gap:10px; padding:12px 16px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg); font-size:0.84rem; color:var(--text);
  max-width:300px; pointer-events:all; animation:toastIn 0.28s var(--ease) forwards;
}
.toast-icon { font-size:0.9rem; flex-shrink:0; }
.toast.success { border-left:3px solid var(--accent); }
.toast.error   { border-left:3px solid var(--red); }
.toast.info    { border-left:3px solid var(--muted); }
.toast.out     { animation:toastOut 0.22s var(--ease) forwards; }
@keyframes toastIn  { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
@keyframes toastOut { from{opacity:1;transform:none} to{opacity:0;transform:translateY(4px)} }

/* ═══════════════════════════════════════════
   BADGE / TAG
═══════════════════════════════════════════ */
.badge {
  display:inline-flex; align-items:center; padding:2px 9px; border-radius:var(--r-full);
  font-size:0.72rem; font-weight:500; letter-spacing:0.02em;
}
.badge-accent { background:var(--accent-lt); color:var(--accent); }
.badge-muted  { background:var(--surface2); color:var(--muted); border:1px solid var(--border); }
.badge-blue   { background:var(--blue-lt); color:var(--blue); }
.badge-yellow { background:var(--yellow-lt); color:var(--yellow); }
.badge-purple { background:var(--purple-lt); color:var(--purple); }
.badge-orange { background:var(--orange-lt); color:var(--orange); }
.badge-red    { background:var(--red-lt); color:var(--red); }

/* ═══════════════════════════════════════════
   PLAN BADGE
═══════════════════════════════════════════ */
.plan-badge-free     { background:var(--surface2); color:var(--muted); border:1px solid var(--border); font-size:0.68rem; padding:2px 7px; border-radius:var(--r-full); font-weight:600; letter-spacing:0.04em; text-transform:uppercase; display:inline-flex; align-items:center; gap:3px; }
.plan-badge-pro      { background:var(--blue-lt); color:var(--blue); font-size:0.68rem; padding:2px 7px; border-radius:var(--r-full); font-weight:600; letter-spacing:0.04em; text-transform:uppercase; display:inline-flex; align-items:center; gap:3px; border:1px solid rgba(37,99,168,0.2); }
.plan-badge-founder  { background:linear-gradient(135deg,#92400e,#d97706,#fbbf24,#d97706,#92400e); background-size:200% auto; animation:gold-shine 3s linear infinite; color:#fff; font-size:0.68rem; padding:2px 8px; border-radius:var(--r-full); font-weight:700; letter-spacing:0.05em; text-transform:uppercase; display:inline-flex; align-items:center; gap:3px; box-shadow:0 0 10px rgba(251,191,36,0.3); }
.plan-badge-founder svg { width:8px; height:8px; }
@keyframes gold-shine { 0%{background-position:0%} 100%{background-position:200%} }

/* ═══════════════════════════════════════════
   STATUS BADGE (project status)
═══════════════════════════════════════════ */
.status-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 9px; border-radius:var(--r-full);
  font-size:0.72rem; font-weight:600; letter-spacing:0.03em;
}
.status-badge::before { content:''; width:5px; height:5px; border-radius:50%; flex-shrink:0; }
.status-badge.idea       { background:var(--purple-lt); color:var(--purple); }
.status-badge.idea::before { background:var(--purple); }
.status-badge.planning   { background:var(--blue-lt); color:var(--blue); }
.status-badge.planning::before { background:var(--blue); }
.status-badge.building   { background:var(--yellow-lt); color:var(--yellow); animation:pulse-dot 2s infinite; }
.status-badge.building::before { background:var(--yellow); }
.status-badge.launched   { background:var(--accent-lt); color:var(--accent); }
.status-badge.launched::before { background:var(--accent); }
.status-badge.paused     { background:var(--surface2); color:var(--muted); }
.status-badge.paused::before { background:var(--muted); }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ═══════════════════════════════════════════
   UPVOTE BUTTON
═══════════════════════════════════════════ */
.upvote-btn {
  display:inline-flex; align-items:center; gap:5px;
  padding:5px 10px; border-radius:var(--r-full);
  border:1px solid var(--border); background:var(--surface2);
  cursor:pointer; font-size:0.78rem; font-weight:500; color:var(--text2);
  transition:all var(--t); font-family:var(--font-mono);
}
.upvote-btn:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-lt); }
.upvote-btn.voted { border-color:var(--accent); color:var(--accent); background:var(--accent-lt); }
.upvote-btn svg { width:12px; height:12px; transition:transform 0.2s; }
.upvote-btn:hover svg { transform:translateY(-2px); }
.upvote-btn.voted svg { fill:var(--accent); }

/* ═══════════════════════════════════════════
   ROADMAP
═══════════════════════════════════════════ */
.roadmap-steps { display:flex; gap:6px; flex-wrap:wrap; }
.roadmap-step {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:var(--r-full);
  font-size:0.72rem; font-weight:500; border:1px solid var(--border);
  background:var(--surface2); color:var(--muted);
  transition:all var(--t);
}
.roadmap-step.done { background:var(--accent-lt); border-color:var(--accent-mid); color:var(--accent); }
.roadmap-step.active { background:var(--yellow-lt); border-color:rgba(184,124,26,0.3); color:var(--yellow); }
.roadmap-step svg { width:10px; height:10px; flex-shrink:0; }

/* ═══════════════════════════════════════════
   ANALYTICS MINI CARD
═══════════════════════════════════════════ */
.analytics-row { display:flex; gap:8px; flex-wrap:wrap; }
.analytics-pill {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:var(--r-full);
  background:var(--surface2); border:1px solid var(--border);
  font-size:0.72rem; font-family:var(--font-mono); color:var(--muted);
}
.analytics-pill svg { width:10px; height:10px; color:var(--accent); }
.analytics-pill strong { color:var(--text); }

/* ═══════════════════════════════════════════
   EMBED CODE BOX
═══════════════════════════════════════════ */
.embed-code-box {
  background:var(--surface2); border:1px solid var(--border2);
  border-radius:var(--r); padding:12px 14px;
  font-family:var(--font-mono); font-size:0.75rem; color:var(--text2);
  white-space:pre-wrap; word-break:break-all; line-height:1.6;
  position:relative; overflow:hidden;
}
.embed-preview-card {
  border:2px solid var(--border); border-radius:var(--r-lg);
  overflow:hidden; background:var(--surface); max-width:380px;
  box-shadow:var(--shadow);
}
.embed-card-head { height:3px; width:100%; }
.embed-card-body { padding:14px 16px; }
.embed-card-powered {
  display:flex; align-items:center; gap:6px;
  padding:8px 12px; border-top:1px solid var(--border);
  font-size:0.68rem; color:var(--muted); background:var(--surface2);
}
.embed-card-powered a { color:var(--accent); font-weight:500; }

/* ═══════════════════════════════════════════
   LEADERBOARD
═══════════════════════════════════════════ */
.leaderboard-item {
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; border-radius:var(--r);
  background:var(--surface); border:1px solid var(--border);
  margin-bottom:6px; transition:all var(--t);
}
.leaderboard-item:hover { box-shadow:var(--shadow-sm); border-color:var(--accent-mid); }
.lb-rank {
  width:28px; height:28px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:0.78rem; font-weight:600;
  background:var(--surface2); color:var(--muted); border:1px solid var(--border);
}
.lb-rank.gold   { background:linear-gradient(135deg,#fef3c7,#fbbf24); color:#92400e; border-color:#fbbf24; }
.lb-rank.silver { background:linear-gradient(135deg,#f3f4f6,#9ca3af); color:#374151; border-color:#9ca3af; }
.lb-rank.bronze { background:linear-gradient(135deg,#fef3c7,#d97706); color:#92400e; border-color:#d97706; }
.lb-name { flex:1; font-size:0.875rem; font-weight:500; min-width:0; }
.lb-score { font-family:var(--font-mono); font-size:0.78rem; color:var(--accent); font-weight:600; }

/* ═══════════════════════════════════════════
   POTD (Project of the Day)
═══════════════════════════════════════════ */
.potd-card {
  background:linear-gradient(135deg, var(--accent-lt), var(--surface));
  border:2px solid var(--accent-mid); border-radius:var(--r-xl);
  padding:24px; position:relative; overflow:hidden;
}
.potd-card::before {
  content:''; position:absolute; top:-40px; right:-40px;
  width:120px; height:120px; border-radius:50%;
  background:var(--accent-lt); opacity:0.5; pointer-events:none;
}
.potd-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--accent); color:#fff; font-size:0.7rem;
  font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  padding:4px 12px; border-radius:var(--r-full);
  margin-bottom:14px; box-shadow:0 2px 8px rgba(61,107,82,0.3);
}
.potd-badge svg { width:11px; height:11px; }

/* ═══════════════════════════════════════════
   SHARE POSTER
═══════════════════════════════════════════ */
.poster-preview {
  background:linear-gradient(135deg,var(--text) 0%,#2c3e30 100%);
  border-radius:var(--r-lg); padding:32px; color:#fff;
  position:relative; overflow:hidden; min-height:200px;
}
.poster-preview::before {
  content:''; position:absolute; top:-30px; right:-30px;
  width:160px; height:160px; border-radius:50%;
  background:rgba(90,173,126,0.15); pointer-events:none;
}
.poster-preview::after {
  content:''; position:absolute; bottom:-20px; left:-20px;
  width:100px; height:100px; border-radius:50%;
  background:rgba(255,255,255,0.04); pointer-events:none;
}
.poster-brand { font-family:var(--font-display); font-size:0.85rem; color:rgba(255,255,255,0.5); margin-bottom:20px; display:flex; align-items:center; gap:5px; }
.poster-brand span { color:var(--accent); }
.poster-title { font-family:var(--font-display); font-size:1.4rem; color:#fff; margin-bottom:8px; line-height:1.2; position:relative; z-index:1; }
.poster-desc { font-size:0.8rem; color:rgba(255,255,255,0.65); font-weight:300; line-height:1.6; margin-bottom:16px; position:relative; z-index:1; }
.poster-url { font-family:var(--font-mono); font-size:0.72rem; color:rgba(90,173,126,0.9); position:relative; z-index:1; }

/* ═══════════════════════════════════════════
   LOADING SPINNER
═══════════════════════════════════════════ */
.spinner {
  width:20px; height:20px; border:2px solid var(--border2);
  border-top-color:var(--accent); border-radius:50%;
  animation:spin 0.65s linear infinite; flex-shrink:0;
}
.spinner-lg { width:32px; height:32px; border-width:2.5px; }
@keyframes spin { to{transform:rotate(360deg)} }
.fullscreen-loader {
  position:fixed; inset:0;
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:14px;
  background:var(--bg); z-index:9998;
}
.loader-label { font-size:0.82rem; color:var(--muted); font-weight:300; letter-spacing:0.03em; }

/* ═══════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════ */
.hidden   { display:none !important; }
.sr-only  { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.flex     { display:flex; }
.flex-col { display:flex; flex-direction:column; }
.flex-1   { flex:1; }
.items-center { align-items:center; }
.justify-between { justify-content:space-between; }
.gap-2 { gap:8px; }
.gap-3 { gap:12px; }
.gap-4 { gap:16px; }
.gap-5 { gap:20px; }
.w-full { width:100%; }
.text-muted { color:var(--muted); }
.text-accent { color:var(--accent); }
.text-sm { font-size:0.84rem; }
.text-xs { font-size:0.74rem; }
.font-300 { font-weight:300; }
.mt-1 { margin-top:4px; }
.mt-2 { margin-top:8px; }
.mt-3 { margin-top:12px; }
.mt-4 { margin-top:16px; }
.mt-6 { margin-top:24px; }
.mt-8 { margin-top:32px; }
.link { color:var(--accent); font-weight:500; cursor:pointer; transition:opacity var(--t); }
.link:hover { opacity:0.75; }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
.fade-up {
  opacity:0; transform:translateY(14px);
  animation:fadeUp 0.45s var(--ease) forwards;
}
@keyframes fadeUp { to{opacity:1;transform:none} }
.d1 { animation-delay:0.05s; }
.d2 { animation-delay:0.12s; }
.d3 { animation-delay:0.19s; }
.d4 { animation-delay:0.26s; }
.d5 { animation-delay:0.33s; }

/* ═══════════════════════════════════════════
   BACK BUTTON (universal)
═══════════════════════════════════════════ */
.back-link-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 13px; border-radius:var(--r-full);
  border:1px solid var(--border); background:var(--surface2);
  font-size:0.8rem; font-weight:500; color:var(--text2);
  cursor:pointer; transition:all var(--t); text-decoration:none;
}
.back-link-btn:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-lt); }
.back-link-btn svg { width:13px; height:13px; }

/* ═══════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════ */
.section-hdr {
  display:flex; align-items:center; gap:10px; margin-bottom:16px;
}
.section-hdr-title {
  font-family:var(--font-display); font-size:1.1rem; letter-spacing:-0.02em; flex:1;
}
.section-divider {
  font-size:0.7rem; font-weight:600; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--muted); margin-bottom:14px;
  display:flex; align-items:center; gap:8px;
}
.section-divider::after { content:''; flex:1; height:1px; background:var(--border); }

/* ═══════════════════════════════════════════
   RESPONSIVE HELPERS
═══════════════════════════════════════════ */
@media (max-width:640px) {
  .nav { padding:0 18px; }
  .card { padding:26px 20px; }
  .container, .container-sm { padding:0 16px; }
  .hide-mobile { display:none !important; }
}
@media (min-width:641px) {
  .show-mobile-only { display:none !important; }
}