/* =============================================
   AM I COOKED? — STYLES
   ============================================= */

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

:root {
  --bg: #0d0d0f;
  --surface: #16161a;
  --surface2: #1e1e24;
  --border: #2a2a30;
  --text: #f0ede8;
  --muted: #9b9690;
  --dim: #6b6862;
  --accent: #ff5733;
  --accent-hover: #e84d2b;
  --green: #4ade80;
  --green-bg: #0d1f12;
  --green-border: #2d6b3a;
  --yellow: #fbbf24;
  --yellow-bg: #1f1700;
  --yellow-border: #6b4f00;
  --red: #f87171;
  --red-bg: #1f0d0d;
  --red-border: #6b2020;
  --nav-h: 56px;
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface2: #f0f0f5;
  --border: #e1e1e8;
  --text: #1a1a1f;
  --muted: #737380;
  --dim: #a0a0ab;
  --green-bg: #dcfce7;
  --green-border: #bbf7d0;
  --yellow-bg: #fef3c7;
  --yellow-border: #fde68a;
  --red-bg: #fee2e2;
  --red-border: #fecaca;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: background 0.2s, color 0.2s;
}

/* ── NAV BAR ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: rgba(13,13,15,0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
[data-theme="light"] .site-nav { background: rgba(245,245,247,0.88); }

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text);
  border: none;
  background: none;
  padding: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav-link {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-theme-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
  padding: 6px;
  border-radius: 8px;
}
.nav-theme-btn:hover { color: var(--text); background: var(--surface); }

.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  font-size: 1.2rem;
}
.nav-hamburger:hover { color: var(--text); background: var(--surface); }

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 2px;
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; text-align: left; padding: 0.65rem 0.9rem; }
  .nav-hamburger { display: block; }
}

/* ── PAGE ROUTING ── */
.page { display: none; }
.page.active { display: block; animation: fadeInUp 0.2s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO ── */
.hero {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2rem;
  padding: 1.75rem 1rem 1rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,87,51,0.12) 0%, transparent 70%);
  border-radius: 20px;
}
.hero-logo { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.hero-logo span { color: var(--accent); }
.hero-tagline {
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

/* ── AD SLOTS ── */
.ad-slot {
  max-width: 860px;
  margin: 0 auto 1.25rem;
  text-align: center;
  overflow: hidden;
}
.ad-slot ins { display: block; }

/* ── TABS ── */
.tabs {
  display: flex;
  max-width: 520px;
  margin: 0 auto 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.tab {
  flex: 1;
  padding: 0.6rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab.active { background: var(--accent); color: #fff; }
.tab:not(.active):hover { color: var(--text); }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 520px;
  margin: 0 auto 1rem;
}
.card-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-family: 'DM Mono', monospace;
  margin-bottom: 1.25rem;
}

/* ── FORMS ── */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: 'DM Mono', monospace;
}
.field input, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input::placeholder { color: #3a3a40; }
[data-theme="light"] .field input::placeholder { color: #a0a0ab; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.invalid { border-color: var(--red) !important; animation: shake 0.3s ease-in-out; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

.district-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.district-chip {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--border);
}
.district-chip:hover { color: var(--text); border-color: var(--dim); }

/* ── BUTTONS ── */
.btn-primary {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,87,51,0.35);
}
.btn-primary:active { transform: scale(0.98) translateY(0); box-shadow: none; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--dim); color: var(--text); }

.btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.76rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-sm-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-sm-ghost:hover { color: var(--text); border-color: var(--dim); }

/* ── SV LOGIN NOTICES ── */
.sv-notice {
  background: #0d1525;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: #7ab3e0;
  line-height: 1.6;
}
.sv-notice strong { color: #a8d4f5; }

.sv-saved {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--green);
  display: none;
  justify-content: space-between;
  align-items: center;
}
.sv-error {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--red);
  display: none;
}
.loading-bar {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 1rem;
  display: none;
}
.loading-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  animation: loadpulse 1.5s ease-in-out infinite;
}
@keyframes loadpulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.save-login-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.save-login-row input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; }

/* ── GRADES PAGE TOPBAR ── */
.grades-topbar {
  max-width: 520px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.grades-topbar-user { flex: 1; font-family: 'DM Mono', monospace; font-size: 0.8rem; color: var(--muted); }
.grades-topbar-user strong { color: var(--text); }

/* ── CLASS CARDS ── */
.section-label {
  max-width: 520px;
  margin: 0 auto 0.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.classes-grid { display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin: 0 auto 1rem; }

.class-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.class-card:hover { border-color: #3a3a44; }
.class-header { padding: 1rem 1.25rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.class-header-left { flex: 1; min-width: 0; }
.class-name { font-size: 0.92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.class-meta { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.class-grade-badge { font-family: 'DM Mono', monospace; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.class-expand-icon { color: var(--dim); font-size: 0.75rem; transition: transform 0.2s; flex-shrink: 0; }
.class-card.expanded .class-expand-icon { transform: rotate(180deg); }
.class-body { display: none; border-top: 1px solid var(--border); }
.class-card.expanded .class-body { display: block; }

/* ── INNER TABS ── */
.inner-tabs { display: flex; border-bottom: 1px solid var(--border); }
.inner-tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--dim);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.inner-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.inner-tab:hover:not(.active) { color: var(--muted); }
.inner-panel { display: none; padding: 1.25rem; }
.inner-panel.active { display: block; }

/* ── CHART ── */
.chart-wrap { position: relative; height: 150px; }
.chart-empty { text-align: center; font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--dim); padding: 2.5rem 0; }

/* ── ASSIGNMENT LIST ── */
.assignment-list {
  display: flex;
  flex-direction: column;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.assignment-list::-webkit-scrollbar { width: 4px; }
.assignment-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.asgn-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.asgn-row:last-child { border-bottom: none; }
.asgn-left { min-width: 0; }
.asgn-name { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asgn-date { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--dim); margin-top: 1px; }
.asgn-type { font-family: 'DM Mono', monospace; font-size: 0.67rem; color: var(--dim); background: var(--surface2); padding: 2px 6px; border-radius: 4px; white-space: nowrap; align-self: center; }
.asgn-score-col { text-align: right; }
.asgn-score { font-family: 'DM Mono', monospace; font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.asgn-pct { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--dim); }
.asgn-score.good { color: var(--green); }
.asgn-score.ok   { color: var(--yellow); }
.asgn-score.bad  { color: var(--red); }
.asgn-empty { text-align: center; font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--dim); padding: 1.5rem 0; }

/* ── INLINE EDIT ── */
.inline-edit-score {
  width: 44px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: inherit;
  text-align: right;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 2px 4px;
  margin-right: 2px;
}
.inline-edit-score:focus { outline: none; border-color: var(--accent); }
.inline-edit-score::-webkit-inner-spin-button,
.inline-edit-score::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── CATEGORY PICKER ── */
.cat-section { margin-bottom: 1rem; }
.cat-title { font-family: 'DM Mono', monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 0.5rem; }
.cat-grid { display: flex; flex-direction: column; gap: 4px; }
.cat-row { display: flex; align-items: center; gap: 8px; padding: 0.3rem 0; }
.cat-row label { font-family: 'DM Mono', monospace; font-size: 0.82rem; color: var(--muted); flex: 1; cursor: pointer; }
.cat-row .cat-weight { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--dim); min-width: 36px; text-align: right; }
.cat-row input[type=radio] { accent-color: var(--accent); width: 14px; height: 14px; flex-shrink: 0; cursor: pointer; }

/* ── FINAL INPUTS ── */
.final-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 1rem; }
.mini-field label { display: block; font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; }
.mini-field input, .mini-field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}
.mini-field input:focus, .mini-field select:focus { border-color: var(--accent); }

/* ── VERDICT PILL ── */
.verdict-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  margin-top: 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
}
.verdict-pill.green  { background: var(--green-bg);  border: 1px solid var(--green-border);  color: var(--green); }
.verdict-pill.yellow { background: var(--yellow-bg); border: 1px solid var(--yellow-border); color: var(--yellow); }
.verdict-pill.red    { background: var(--red-bg);    border: 1px solid var(--red-border);    color: var(--red); }

/* ── VERDICT (manual) ── */
.verdict-wrap { max-width: 520px; margin: 1.25rem auto 0; display: none; }
.verdict-box {
  border-radius: 16px;
  padding: 2rem 1.75rem;
  border: 1px solid;
  text-align: center;
  margin-bottom: 1rem;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.verdict-box.green  { background: var(--green-bg);  border-color: var(--green-border); }
.verdict-box.yellow { background: var(--yellow-bg); border-color: var(--yellow-border); }
.verdict-box.red    { background: var(--red-bg);    border-color: var(--red-border); }
.verdict-dot   { font-size: 2.5rem; margin-bottom: 0.5rem; line-height: 1; }
.verdict-label { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.3rem; }
.green  .verdict-label { color: var(--green); }
.yellow .verdict-label { color: var(--yellow); }
.red    .verdict-label { color: var(--red); }
.verdict-sub { font-family: 'DM Mono', monospace; font-size: 0.82rem; color: var(--muted); }

/* ── STATS CARD ── */
.stats-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; max-width: 520px; margin: 0 auto; }
.stats-zone { padding: 1.25rem 1.5rem; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-family: 'DM Mono', monospace; font-size: 0.85rem; }
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--muted); }
.stat-val { color: var(--text); font-weight: 500; }
.stat-val.big { font-size: 1.3rem; font-weight: 700; color: var(--yellow); }

/* ── SHARE CARD ── */
.share-card-wrap { max-width: 520px; margin: 1rem auto 0; display: none; }
.share-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem 1.75rem; font-family: 'DM Mono', monospace; }
.sc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.sc-eyebrow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 4px; }
.sc-verdict { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; }
.sc-url { font-size: 0.68rem; color: var(--dim); }
.sc-bar { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 0.75rem; }
.sc-bar-fill { height: 100%; border-radius: 99px; }
.sc-detail { font-size: 0.78rem; color: var(--muted); line-height: 1.7; }
.sc-cta { margin-top: 0.75rem; font-size: 0.7rem; color: var(--dim); text-align: center; }

/* ── MISC ── */
.error-msg { max-width: 520px; margin: 0.5rem auto 0; font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--red); text-align: center; display: none; }
.divider { max-width: 520px; margin: 0 auto 1rem; border: none; border-top: 1px solid var(--border); }

/* ── SEO / EDITORIAL CONTENT ── */
.seo-content {
  max-width: 800px;
  margin: 3rem auto 1rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}
.seo-content h2 { font-family: 'Syne', sans-serif; font-size: 1.5rem; color: var(--text); margin-bottom: 1rem; margin-top: 2rem; letter-spacing: -0.02em; }
.seo-content h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; color: var(--text); margin-bottom: 0.75rem; margin-top: 1.5rem; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content p { margin-bottom: 1.25rem; }
.seo-content ul, .seo-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.seo-content li { margin-bottom: 0.5rem; }
.seo-content a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); transition: all 0.2s; }
.seo-content a:hover { color: var(--accent-hover); border-bottom-style: solid; }
.seo-content strong { color: var(--text); }
.seo-content .table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.seo-content table { width: 100%; border-collapse: collapse; min-width: 400px; }
.seo-content th, .seo-content td { padding: 0.75rem; border: 1px solid var(--border); text-align: left; }
.seo-content th { background: var(--surface2); color: var(--text); font-weight: bold; }
.seo-content code { background: #000; padding: 2px 6px; border-radius: 4px; font-family: 'DM Mono', monospace; font-size: 0.85em; color: var(--accent); }

/* ── STUDY TIPS PAGE ── */
.tips-grid { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; margin: 0 auto; }
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.tip-card:hover { border-color: #3a3a44; }
.tip-number { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.tip-title { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 800; margin-bottom: 0.9rem; color: var(--text); }
.tip-body { font-family: 'DM Mono', monospace; font-size: 0.88rem; color: var(--muted); line-height: 1.8; }
.tip-body p { margin-bottom: 0.85rem; }
.tip-body p:last-child { margin-bottom: 0; }
.tips-page-header { max-width: 800px; margin: 0 auto 2rem; }
.tips-page-title { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.tips-page-sub { font-family: 'DM Mono', monospace; font-size: 0.85rem; color: var(--muted); }

/* ── ABOUT PAGE ── */
.about-wrap { max-width: 680px; margin: 0 auto; }
.about-hero { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem 2rem; margin-bottom: 1rem; }
.about-title { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.about-title span { color: var(--accent); }
.about-sub { font-family: 'DM Mono', monospace; font-size: 0.82rem; color: var(--dim); margin-bottom: 1.75rem; }
.about-body { font-family: 'DM Mono', monospace; font-size: 0.9rem; color: var(--muted); line-height: 1.85; }
.about-body p { margin-bottom: 1.25rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--text); }
.about-body a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.about-fact { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; text-align: center; }
.about-fact-num { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.about-fact-label { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--dim); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  color: var(--text);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: var(--green-border); color: var(--green); }

/* ── FOOTER ── */
.site-footer {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--dim);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 0.75rem; }
.site-footer a { color: var(--dim); text-decoration: none; margin: 0 8px; transition: color 0.2s; cursor: pointer; }
.site-footer a:hover { color: var(--text); }
.site-footer .copyright { margin-top: 0.75rem; font-size: 0.65rem; opacity: 0.5; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: popin 0.2s ease-out;
}
.modal-header { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--text); }
.modal-body { font-family: 'DM Mono', monospace; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
@keyframes popin {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
