/*
  baathakaani design system — MULTI-SCRIPT MONUMENT
  Not editorial-cream. Not cream/serif/terracotta.
  Dark navy + warm gold + geometric sans. The wordmark IS the design.
*/

:root {
  /* Ink */
  --bg:        #14213d;
  --bg-alt:    #1a2b52;
  --bg-deep:   #0f1a30;
  --panel:     #1d2c4c;
  --border:    #2a3a5c;
  --border-sh: #37476a;

  /* Voice */
  --fg:        #f2eee4;
  --fg-2:      #d9d4c6;
  --fg-mute:   #8e9bb0;
  --fg-faint:  #5b6883;

  /* Warmth */
  --gold:      #fca311;
  --gold-2:    #e5910b;
  --gold-deep: #a86b06;
  --gold-tint: rgba(252, 163, 17, 0.10);

  /* Signals */
  --like:      #ff6b8b;
  --repost:    #4fd6a8;
  --trust-hi:  #4fd6a8;
  --trust-mid: #8e9bb0;
  --trust-lo:  #fca311;
  --warn:      #fca311;
  --danger:    #ff6767;

  /* Shadow (kept minimal — brutalist-adjacent) */
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Nirmala UI", "Noto Sans", "Noto Sans Devanagari", "Noto Sans Telugu", "Noto Sans Tamil", "Noto Sans Arabic", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "kern";
  letter-spacing: -0.005em;
}

/* Type utilities */
.mono { font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.script-te { font-family: "Noto Sans Telugu", "Noto Serif Telugu", "Nirmala UI", sans-serif; }
.script-hi { font-family: "Noto Sans Devanagari", "Noto Serif Devanagari", "Nirmala UI", sans-serif; }
.script-ta { font-family: "Noto Sans Tamil", "Nirmala UI", sans-serif; }
.script-ar { font-family: "Noto Sans Arabic", "Noto Naskh Arabic", sans-serif; direction: rtl; }
.script-zh { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

a { color: var(--fg); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--gold); }
button { font-family: inherit; }
::selection { background: var(--gold); color: var(--bg); }

/* ─── Layout ─── */
.app {
  display: grid;
  grid-template-columns: 260px minmax(0, 700px) 300px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .app aside.left, .app aside.right { display: none; }
}

/* ─── Left rail ─── */
aside.left {
  position: sticky; top: 0; height: 100vh;
  padding: 32px 24px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
}

.brand a { display: block; margin-bottom: 6px; }
.brand-mark {
  display: inline-flex; align-items: baseline; gap: 12px;
}
.brand-dot {
  display: inline-block; width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.55; }
}
.wordmark {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}
.tagline {
  color: var(--fg-mute);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 14px 0 26px 22px;
  font-weight: 500;
}

nav { display: flex; flex-direction: column; gap: 2px; }
nav a {
  padding: 11px 14px;
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-left: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
nav a:hover {
  color: var(--fg);
  background: rgba(252, 163, 17, 0.04);
}
nav a.on {
  color: var(--gold);
  border-left-color: var(--gold);
  background: var(--gold-tint);
}

.footer { margin-top: auto; padding-top: 24px; color: var(--fg-mute); font-size: 12px; }
.built-by {
  border-top: 1px solid var(--border);
  padding: 16px 4px 0;
  font-size: 12px;
  color: var(--fg-mute);
}
.built-by .signature {
  color: var(--gold); font-weight: 700;
  letter-spacing: 0.02em;
}

/* ─── Center column ─── */
main.center {
  min-height: 100vh;
  border-right: 1px solid var(--border);
}

.page-head {
  padding: 22px 32px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(20, 33, 61, 0.85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.page-head h1 {
  font-size: 22px; margin: 0;
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--fg);
}
.page-head .kicker {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin-bottom: 6px;
}

/* ─── Hero (anon landing) ─── */
.hero {
  padding: 72px 32px 56px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 20% 0%, rgba(252, 163, 17, 0.08), transparent 60%);
}
.hero .hero-kicker {
  font-size: 11.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin-bottom: 32px;
}

/* The wordmark IS the design — 4 scripts stacked, monumental */
.script-stack {
  display: block;
  margin: 0 0 40px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.script-stack > div {
  font-size: 62px;
  color: var(--fg);
  transition: color 300ms ease, transform 300ms ease;
  padding: 4px 0;
  cursor: default;
}
.script-stack > div:nth-child(1) { font-family: "Noto Serif Telugu", "Noto Sans Telugu", "Nirmala UI", sans-serif; color: var(--gold); }
.script-stack > div:nth-child(2) { font-family: "Noto Serif Devanagari", "Noto Sans Devanagari", "Nirmala UI", sans-serif; color: var(--fg); }
.script-stack > div:nth-child(3) { font-family: "Noto Sans Tamil", "Nirmala UI", sans-serif; color: var(--fg-2); }
.script-stack > div:nth-child(4) { font-family: "Noto Naskh Arabic", "Noto Sans Arabic", sans-serif; direction: rtl; color: var(--fg-mute); }
.script-stack > div:hover {
  color: var(--gold);
  transform: translateX(6px);
}

.hero-lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 540px;
  font-weight: 400;
  margin: 0 0 8px;
}
.hero-lede em {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}
.hero-sub {
  font-size: 14.5px;
  color: var(--fg-mute);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero-cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--bg-deep);
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: background 120ms ease, transform 120ms ease, box-shadow 240ms ease;
  box-shadow: 0 6px 20px rgba(252, 163, 17, 0.24);
}
.hero-cta:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
  color: var(--bg-deep);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(252, 163, 17, 0.36);
}
.hero-cta-alt {
  display: inline-block;
  padding: 14px 24px;
  color: var(--fg-2);
  margin-left: 10px;
  font-size: 15px;
  font-weight: 500;
}
.hero-cta-alt:hover { color: var(--gold); text-decoration: none; }

/* Principles row below hero */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 40px 32px;
  border-bottom: 1px solid var(--border);
}
.principle .p-mark {
  font-size: 20px;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -0.05em;
}
.principle h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.principle p {
  margin: 0;
  color: var(--fg-mute);
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* ─── Right rail ─── */
aside.right { padding: 32px 24px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}
.card .kicker {
  font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin-bottom: 8px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.card p { margin: 6px 0; color: var(--fg-2); font-size: 13px; line-height: 1.55; }
.card a { color: var(--gold); font-weight: 500; }

/* ─── Composer ─── */
.composer {
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--border);
}
.composer textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 19px;
  line-height: 1.5;
  resize: vertical;
  min-height: 96px;
  outline: none;
  letter-spacing: -0.01em;
}
.composer textarea::placeholder { color: var(--fg-faint); }
.composer-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.hint {
  color: var(--fg-mute);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ─── Buttons ─── */
button.primary,
.composer button[type="submit"],
.auth-card button,
.follow-btn {
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: background 120ms ease, transform 60ms ease;
}
button.primary:hover,
.composer button[type="submit"]:hover,
.auth-card button:hover,
.follow-btn:hover {
  background: var(--gold-2);
}
button.primary:active,
.composer button[type="submit"]:active { transform: translateY(1px); }

.follow-btn { padding: 8px 20px; }
.follow-btn.on {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-sh);
}
.follow-btn.on:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

/* ─── Feed + posts ─── */
.feed { display: flex; flex-direction: column; }

.post {
  padding: 22px 32px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 120ms ease;
  position: relative;
}
.post:hover { background: rgba(252, 163, 17, 0.02); }

.ptop {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.avatar {
  display: inline-flex; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--bg-deep);
  color: var(--gold);
  border: 1px solid var(--border-sh);
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.avatar-lg {
  width: 84px; height: 84px; border-radius: 14px;
  font-size: 30px;
  background: var(--bg-deep); color: var(--gold);
  border: 1px solid var(--border-sh);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}

.meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 14px;
  min-height: 20px;
}
.dname {
  font-weight: 700;
  color: var(--fg);
  font-size: 15px;
  letter-spacing: -0.01em;
}
.dname:hover { color: var(--gold); text-decoration: none; }
.handle { color: var(--fg-mute); font-size: 13px; }
.dot { color: var(--fg-faint); font-weight: 700; }
.time {
  color: var(--fg-mute);
  font-size: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -0.02em;
}
.edited { color: var(--fg-faint); font-size: 11px; font-style: italic; }

/* Trust pip — small dot */
.trust {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px;
  color: var(--fg-mute);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.trust::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--trust-mid);
}
.trust.trust-high::before { background: var(--trust-hi); box-shadow: 0 0 6px var(--trust-hi); }
.trust.trust-mid::before  { background: var(--trust-mid); }
.trust.trust-low::before  { background: var(--trust-lo); }
.trust.trust-high { color: var(--trust-hi); }

/* Language chip — small monospace tag */
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-tint);
  border: 1px solid rgba(252, 163, 17, 0.20);
  border-radius: 4px;
  font-weight: 700;
}
.lang-chip::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}

.pbody {
  padding: 10px 0 14px 0;
  margin-left: 58px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  word-wrap: break-word;
  white-space: pre-wrap;
  letter-spacing: -0.005em;
}

.pactions {
  margin-left: 58px;
  display: flex; gap: 2px;
  flex-wrap: wrap;
}
.pactions button {
  background: none; border: none;
  color: var(--fg-mute);
  cursor: pointer;
  font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 100ms ease, color 100ms ease;
  font-weight: 500;
}
.pactions button:hover { background: var(--panel); color: var(--fg); }
.pactions button.on[data-action="like"]     { color: var(--like); }
.pactions button.on[data-action="repost"]   { color: var(--repost); }
.pactions button.on[data-action="bookmark"] { color: var(--gold); }
.pactions button[data-action="translate"]   { color: var(--gold); font-weight: 600; }
.pactions button[data-action="translate"]:hover { background: var(--gold-tint); }

.translated {
  margin: 12px 0 4px 58px;
  padding: 14px 18px;
  background: var(--gold-tint);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.55;
}

/* Moderation banners */
.mod-banner {
  padding: 8px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 12.5px;
  border: 1px solid;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.mod-banner.limited { background: rgba(252, 163, 17, 0.06); border-color: rgba(252, 163, 17, 0.25); color: var(--warn); }
.mod-banner.hidden  { background: var(--bg-alt); border-color: var(--border); color: var(--fg-mute); }
.mod-banner.blocked { background: rgba(255, 103, 103, 0.06); border-color: rgba(255, 103, 103, 0.25); color: var(--danger); }
.mod-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Empty state ─── */
.empty {
  padding: 72px 32px;
  text-align: center;
  color: var(--fg-mute);
}
.empty .mark {
  font-family: "Noto Serif Telugu", sans-serif;
  font-size: 72px;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 26px;
  font-weight: 800;
}
.empty h2 {
  color: var(--fg);
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.empty p { margin: 6px 0; font-size: 14.5px; color: var(--fg-mute); }
.empty a { color: var(--gold); font-weight: 600; }

/* ─── Auth pages ─── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } }

.auth-left {
  padding: 60px 56px;
  background: var(--bg-deep);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-left .script-stack > div { font-size: 44px; }
.auth-left .hero-lede { font-size: 17px; }
@media (max-width: 900px) { .auth-left { display: none; } }

.auth-card {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 44px;
  align-self: center;
  justify-self: center;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.auth-card .subtitle {
  color: var(--fg-mute);
  font-size: 14px;
  margin-bottom: 28px;
}
.auth-card label {
  display: block;
  margin-bottom: 18px;
  font-size: 11px;
  color: var(--fg-mute);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth-card input, .auth-card select {
  display: block; width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  text-transform: none;
  letter-spacing: -0.005em;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.auth-card input:focus, .auth-card select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.16);
}
.auth-card button { width: 100%; margin-top: 10px; padding: 13px; font-size: 15px; }
.auth-card .alt {
  color: var(--fg-mute); font-size: 13.5px; margin-top: 22px;
  text-align: center;
}
.auth-card a { color: var(--gold); font-weight: 600; }
.err {
  background: rgba(255, 103, 103, 0.08);
  border: 1px solid rgba(255, 103, 103, 0.30);
  color: var(--danger);
  padding: 10px 14px; border-radius: 4px;
  margin-bottom: 16px; font-size: 13px;
}

/* ─── SSO buttons on auth pages ─── */
.sso-stack {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 26px;
}
.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: border-color 120ms ease, background 120ms ease, transform 60ms ease;
  cursor: pointer;
}
.sso-btn:hover {
  border-color: var(--gold);
  background: var(--bg-alt);
  text-decoration: none;
  color: var(--fg);
}
.sso-btn:active { transform: translateY(1px); }
.sso-apple { color: var(--fg); }
.sso-google { color: var(--fg); }
.sso-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0 4px;
  color: var(--fg-mute);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.sso-divider::before, .sso-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

/* ─── Profile ─── */
.profile-head {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 15% 0%, rgba(252, 163, 17, 0.08), transparent 55%);
}
.pfline {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 20px; align-items: start;
}
.dname-lg {
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--fg);
}
.handle-lg { color: var(--fg-mute); margin-top: 2px; font-size: 14px; }
.bio { margin: 14px 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.counts {
  color: var(--fg-mute);
  font-size: 13px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.counts b { color: var(--fg); font-weight: 700; font-size: 14px; }

/* ─── PWA install banner ─── */
.install-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center; gap: 12px;
  padding: 12px 14px 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border-sh);
  border-radius: 12px;
  color: var(--fg);
  z-index: 998;
  width: min(400px, calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: install-in 260ms ease;
}
@keyframes install-in {
  from { transform: translate(-50%, 12px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}
.install-icon {
  width: 40px; height: 40px;
  background: var(--bg-deep);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-sh);
}
.install-icon span {
  width: 16px; height: 16px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.install-body { min-width: 0; }
.install-title { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.install-sub { color: var(--fg-mute); font-size: 12px; }
.install-yes {
  background: var(--gold); color: var(--bg-deep);
  border: none; border-radius: 6px;
  padding: 8px 16px; font-weight: 700; font-size: 13px;
  cursor: pointer;
}
.install-no {
  background: transparent; color: var(--fg-mute);
  border: none; font-size: 18px; cursor: pointer;
  padding: 4px 8px; line-height: 1;
}
.install-no:hover { color: var(--fg); }

/* ─── Toast ─── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--bg-deep);
  padding: 12px 22px; border-radius: 6px;
  z-index: 999; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 40px rgba(252, 163, 17, 0.3);
  animation: toast-in 220ms ease;
  letter-spacing: -0.005em;
}
@keyframes toast-in {
  from { transform: translate(-50%, 10px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}

/* ─── @mentions + #hashtags linkified in body ─── */
.pbody a.mention, .pbody a.tag {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.pbody a.mention:hover, .pbody a.tag:hover { text-decoration: underline; }

/* ─── Media grid inside post ─── */
.media-grid {
  margin: 8px 0 12px 58px;
  display: grid;
  gap: 4px;
  border-radius: 12px;
  overflow: hidden;
}
.media-grid.media-count-1 { grid-template-columns: 1fr; }
.media-grid.media-count-2 { grid-template-columns: 1fr 1fr; }
.media-grid.media-count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.media-grid.media-count-3 .media-item:first-child { grid-row: 1 / span 2; }
.media-grid.media-count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.media-grid .media-item { display: block; overflow: hidden; background: var(--bg-deep); }
.media-grid img { display: block; width: 100%; height: 100%; max-height: 340px; object-fit: cover; }

/* ─── Composer media picker ─── */
.composer-tools {
  display: flex; align-items: center; gap: 16px;
  color: var(--fg-mute); font-size: 12.5px;
}
.media-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--gold);
  font-weight: 600;
  transition: background 100ms ease;
}
.media-btn:hover { background: var(--gold-tint); }
.char-count { font-family: "JetBrains Mono", ui-monospace, monospace; }
.media-preview { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.media-thumb {
  position: relative; width: 80px; height: 80px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.media-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-thumb button {
  position: absolute; top: 3px; right: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.7); color: white;
  border: none; cursor: pointer; font-size: 12px;
}

/* ─── Nav badge (unread count) ─── */
nav a { position: relative; }
.nav-badge {
  display: inline-block;
  background: var(--gold); color: var(--bg-deep);
  font-size: 10.5px; font-weight: 800;
  padding: 1px 7px; border-radius: 999px;
  margin-left: 8px; vertical-align: middle;
  min-width: 20px; text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* ─── Search mini in right rail ─── */
.search-mini { margin-bottom: 16px; }
.search-mini input[type="search"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg); font-family: inherit; font-size: 13.5px;
}
.search-mini input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }

/* ─── Search page ─── */
.search-page { padding: 24px 32px; }
.search-form-big { display: flex; gap: 10px; margin: 16px 0 24px; }
.search-form-big input {
  flex: 1; padding: 14px 18px;
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: 8px; color: var(--fg); font-size: 16px;
  font-family: inherit;
}
.search-form-big input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.search-form-big button {
  padding: 14px 28px; background: var(--gold); color: var(--bg-deep);
  border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
}
.search-section { margin-bottom: 32px; }
.search-section h2 {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin: 0 0 12px;
}
.tag-cloud { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-sh);
  border-radius: 999px;
  color: var(--fg); font-size: 13.5px; font-weight: 600;
}
.tag-pill:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.tag-pill span {
  color: var(--fg-mute); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px;
}

/* ─── Trending in right rail ─── */
.trend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.trend-list li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.trend-list a { color: var(--fg); font-weight: 600; }
.trend-list a:hover { color: var(--gold); text-decoration: none; }
.trend-count {
  color: var(--fg-mute); font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
}

/* ─── Follow suggestions ─── */
.suggestions { padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.sugg-row {
  display: grid; grid-template-columns: 46px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 32px;
  border-top: 1px solid var(--border);
}
.sugg-row:first-child { border-top: none; }
.sugg-row .sugg-meta { min-width: 0; }
.sugg-row .bio {
  color: var(--fg-mute); font-size: 13px; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ─── Notifications ─── */
.notif-list { display: flex; flex-direction: column; }
.notif-row {
  display: grid; grid-template-columns: 44px 1fr;
  gap: 14px; padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  transition: background 120ms ease;
}
.notif-row:hover { background: rgba(252, 163, 17, 0.03); text-decoration: none; }
.notif-row.unread {
  background: rgba(252, 163, 17, 0.06);
  border-left: 3px solid var(--gold);
}
.notif-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--panel); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  border: 1px solid var(--border-sh);
}
.notif-icon[data-kind="like"] { color: var(--like); }
.notif-icon[data-kind="repost"] { color: var(--repost); }
.notif-icon[data-kind="follow"] { color: var(--gold); }
.notif-icon[data-kind="mention"] { color: var(--gold); }
.notif-line { font-size: 14px; }
.notif-line .verb { color: var(--fg-mute); }
.notif-line .time {
  color: var(--fg-mute); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px;
  margin-left: 6px;
}
.notif-snippet {
  color: var(--fg-2); font-size: 13.5px;
  margin-top: 6px;
  border-left: 2px solid var(--border-sh);
  padding-left: 12px;
}

/* ─── Admin dashboard ─── */
.admin-page { padding: 24px 32px; }
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px; margin-bottom: 32px;
}
.admin-stats > div {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.admin-stats b {
  display: block; font-size: 24px; font-weight: 800; color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -0.03em;
}
.admin-stats span { display: block; font-size: 11.5px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }
.admin-stats .warn b { color: var(--gold); }
.admin-page h2 {
  margin: 32px 0 14px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.mod-row {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
}
.mod-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.mod-meta .dname { font-weight: 700; }
.mod-meta .handle { color: var(--fg-mute); }
.mod-meta .time { color: var(--fg-mute); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; margin-left: auto; }
.mod-badge {
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  background: var(--gold-tint); color: var(--gold);
  border: 1px solid rgba(252, 163, 17, 0.25);
}
.mod-badge.flag { background: rgba(255, 103, 103, 0.08); color: var(--danger); border-color: rgba(255, 103, 103, 0.25); }
.mod-badge.hidden { background: var(--bg-alt); color: var(--fg-mute); border-color: var(--border); }
.mod-badge.blocked { background: rgba(255, 103, 103, 0.08); color: var(--danger); }
.mod-reasons { color: var(--fg-mute); font-size: 12px; }
.mod-content {
  padding: 12px; background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: 6px; margin-bottom: 10px; font-size: 14px; line-height: 1.5;
  color: var(--fg-2);
  max-height: 200px; overflow-y: auto;
}
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mod-actions button {
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--border-sh);
  padding: 6px 14px; border-radius: 6px;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
}
.mod-actions button:hover { border-color: var(--gold); color: var(--gold); }
.mod-actions button.danger:hover { border-color: var(--danger); color: var(--danger); }

.admin-user-row {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 12px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 8px; font-size: 13.5px;
}
.admin-user-row button {
  margin-left: auto; background: var(--bg); color: var(--fg);
  border: 1px solid var(--border-sh); padding: 5px 12px; border-radius: 6px;
  font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.admin-user-row button:hover { border-color: var(--danger); color: var(--danger); }

.mod-events { display: flex; flex-direction: column; gap: 4px; }
.mod-event {
  display: flex; gap: 12px; align-items: center;
  padding: 8px 12px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; font-size: 12.5px;
}
.mod-event span:first-child ~ span { color: var(--fg-mute); }
.mod-event .time { margin-left: auto; }

/* ─── Mobile bottom nav ─── */
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .mobile-nav {
    display: grid;
    position: fixed; bottom: 0; left: 0; right: 0;
    grid-template-columns: repeat(5, 1fr);
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    z-index: 90;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 4px;
    color: var(--fg-mute); text-decoration: none;
    font-size: 10.5px;
  }
  .mobile-nav a span { font-size: 20px; line-height: 1; }
  .mobile-nav a em { font-style: normal; letter-spacing: 0.02em; }
  .mobile-nav a.on { color: var(--gold); }
  main.center { padding-bottom: 76px; }
}

/* ─── Verified badge (Premium) ─── */
.verified {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 16px; height: 16px;
  background: var(--gold);
  color: var(--bg-deep);
  border-radius: 50%;
  font-size: 10px; font-weight: 900;
  margin-left: 6px;
  vertical-align: 1px;
  box-shadow: 0 0 8px rgba(252, 163, 17, 0.4);
}

/* ─── URL linkified in body ─── */
.pbody a.url {
  color: var(--gold);
  font-weight: 500;
  word-break: break-all;
}

/* ─── Post edit/delete buttons on own posts ─── */
.pactions button.danger { color: var(--danger); }
.pactions button.danger:hover { background: rgba(255, 103, 103, 0.08); color: var(--danger); }

/* ─── Settings hub ─── */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 20px 28px 40px;
}
.settings-card {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.settings-card .kicker {
  font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin-bottom: 8px;
}
.settings-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.settings-card p { color: var(--fg-2); font-size: 13.5px; line-height: 1.55; margin: 6px 0; }
.settings-card a { color: var(--gold); font-weight: 500; }
.settings-card.danger { border-color: rgba(255, 103, 103, 0.3); }
.settings-card.danger .kicker { color: var(--danger); }

/* ─── Legal / help pages ─── */
.long-form {
  padding: 32px 40px 60px;
  max-width: 720px;
  font-size: 15.5px; line-height: 1.7;
}
.long-form h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 800; }
.long-form h2 {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  margin: 40px 0 10px;
}
.long-form h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 700; }
.long-form p, .long-form li { color: var(--fg-2); }
.long-form ul { padding-left: 22px; }
.long-form li { margin: 6px 0; }
.long-form .updated { color: var(--fg-mute); font-size: 12.5px; margin: 0 0 32px; font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.05em; }

/* ─── Cookie consent ─── */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  max-width: 480px; margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border-sh);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--fg-2);
  font-size: 13px; line-height: 1.5;
  z-index: 997;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: cookie-in 260ms ease;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 8px; margin-top: 12px; }
.cookie-actions button {
  padding: 8px 16px; border-radius: 6px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border-sh); background: var(--bg); color: var(--fg);
}
.cookie-actions button.primary { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

/* ─── Follower/Following list rows ─── */
.userlist { padding: 12px 0; }
.userlist .sugg-row { border-bottom: 1px solid var(--border); }

/* ─── Feed algo picker ─── */
.feed-picker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 32px; border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.feed-picker-label { color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; font-size: 11px; margin-right: 6px; }
.fp-opt {
  padding: 5px 12px; border-radius: 6px;
  color: var(--fg-mute); border: 1px solid var(--border);
  text-decoration: none;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.fp-opt:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.fp-opt.on { background: var(--gold-tint); color: var(--gold); border-color: rgba(252,163,17,0.35); }

/* ─── Video in feed + composer ─── */
.media-video { margin: 8px 0 12px 58px; border-radius: 12px; overflow: hidden; background: #000; max-width: 560px; }
.media-video video { display: block; width: 100%; height: auto; max-height: 480px; }
.media-thumb.vid video { width: 100%; height: 100%; object-fit: cover; }

/* ─── DM: conversation list + chat ─── */
.conv-list { display: flex; flex-direction: column; }
.conv-row {
  display: grid; grid-template-columns: 46px 1fr auto;
  gap: 14px; align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  color: var(--fg); text-decoration: none;
  transition: background 100ms ease;
}
.conv-row:hover { background: rgba(252, 163, 17, 0.03); text-decoration: none; }
.conv-row.has-unread { background: rgba(252, 163, 17, 0.06); }
.conv-meta { min-width: 0; }
.conv-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.conv-preview { color: var(--fg-mute); font-size: 13.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-badge {
  background: var(--gold); color: var(--bg-deep);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  min-width: 22px; text-align: center;
}

.chat-head { display: flex; align-items: center; }
.chat-partner { display: flex; align-items: center; gap: 12px; }
.chat-partner .avatar { width: 40px; height: 40px; font-size: 13px; }
.chat-partner .dname { font-weight: 700; font-size: 15px; }
.chat-partner .handle { color: var(--fg-mute); font-size: 12.5px; }

.chat-stream {
  min-height: 60vh; max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding: 20px 32px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.msg { max-width: 78%; display: flex; flex-direction: column; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
  padding: 10px 14px; border-radius: 16px; font-size: 14.5px;
  line-height: 1.45; word-wrap: break-word; white-space: pre-wrap;
}
.msg.me .msg-bubble { background: var(--gold); color: var(--bg-deep); border-bottom-right-radius: 4px; }
.msg.them .msg-bubble { background: var(--panel); color: var(--fg); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-time {
  font-size: 11px; color: var(--fg-faint);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  margin-top: 3px;
}
.chat-input {
  padding: 14px 32px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.chat-input form { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea {
  flex: 1;
  min-height: 40px; max-height: 120px;
  padding: 10px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--fg);
  font-family: inherit; font-size: 14.5px;
  resize: none; outline: none;
}
.chat-input textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.chat-input button {
  background: var(--gold); color: var(--bg-deep);
  border: none; border-radius: 20px;
  padding: 10px 22px; font-weight: 700; cursor: pointer;
}

/* ─── Profile edit ─── */
.profile-edit { padding: 20px 32px; max-width: 520px; }
.profile-edit label {
  display: block; margin-bottom: 18px;
  font-size: 11px; color: var(--fg-mute);
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.profile-edit input, .profile-edit textarea, .profile-edit select {
  display: block; width: 100%; margin-top: 8px;
  padding: 11px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--fg);
  font-family: inherit; font-size: 15px; text-transform: none; letter-spacing: -0.005em;
}
.profile-edit input:focus, .profile-edit textarea:focus, .profile-edit select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint);
}
.profile-edit textarea { resize: vertical; min-height: 80px; }
.profile-edit button {
  background: var(--gold); color: var(--bg-deep);
  border: none; border-radius: 6px;
  padding: 12px 26px; font-weight: 700; font-size: 14px;
  cursor: pointer;
}
.okmsg {
  background: rgba(79, 214, 168, 0.1);
  border: 1px solid rgba(79, 214, 168, 0.3);
  color: var(--repost);
  padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px;
}

/* ─── Onboarding wizard ─── */
.onboard-wrap { padding: 32px 32px 40px; max-width: 700px; }
.onboard-hero { padding: 20px 0 32px; border-bottom: 1px solid var(--border); }
.onboard-hero h1 { font-size: 32px; margin: 8px 0; font-weight: 800; letter-spacing: -0.02em; }
.onboard-form { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
.onboard-step { padding: 20px 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.step-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px; color: var(--gold);
  font-weight: 800; margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.onboard-step h2 { margin: 4px 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.onboard-step p { color: var(--fg-mute); font-size: 14px; margin: 0 0 14px; }
.onboard-lang {
  display: block; width: 100%;
  padding: 12px 14px;
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: 6px; color: var(--fg);
  font-family: inherit; font-size: 15px;
}
.sug-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 640px) { .sug-grid { grid-template-columns: 1fr; } }
.sug-check { display: block; cursor: pointer; }
.sug-check input { position: absolute; opacity: 0; }
.sug-card {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px;
  padding: 12px; background: var(--bg-deep);
  border: 2px solid var(--border);
  border-radius: 10px; align-items: center;
  transition: border-color 120ms ease;
}
.sug-check input:checked + .sug-card {
  border-color: var(--gold);
  background: var(--gold-tint);
}
.sug-info .dname { font-weight: 700; font-size: 14.5px; }
.sug-info .handle { color: var(--fg-mute); font-size: 12px; }
.sug-info .bio { color: var(--fg-mute); font-size: 12.5px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onboard-actions { text-align: right; }

/* ─── Pricing ─── */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; padding: 32px;
}
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  padding: 32px 28px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; flex-direction: column;
}
.pricing-card.premium {
  background: linear-gradient(180deg, rgba(252,163,17,0.06), var(--panel));
  border-color: rgba(252,163,17,0.4);
  box-shadow: 0 20px 60px rgba(252, 163, 17, 0.1);
}
.pricing-tag {
  display: inline-block; padding: 4px 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--fg-mute);
  border: 1px solid var(--border); border-radius: 999px;
  align-self: flex-start;
}
.pricing-tag.gold { color: var(--gold); border-color: rgba(252,163,17,0.4); background: var(--gold-tint); }
.pricing-price {
  font-size: 42px; font-weight: 800; letter-spacing: -0.03em;
  margin: 18px 0 6px;
}
.pricing-price span { font-size: 15px; font-weight: 500; color: var(--fg-mute); }
.pricing-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.pricing-card li { padding: 8px 0; font-size: 14.5px; border-bottom: 1px solid var(--rule-soft, var(--border)); }
.pricing-card li:last-child { border-bottom: none; }
.pricing-card .hero-cta { margin-top: auto; text-align: center; }

/* ─── Ads ─── */
.ad-slot {
  display: block;
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(252, 163, 17, 0.02);
  color: var(--fg);
  text-decoration: none;
}
.ad-slot:hover { background: rgba(252, 163, 17, 0.05); text-decoration: none; }
.ad-tag {
  font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 6px; font-weight: 700;
}
.ad-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.ad-body { color: var(--fg-2); font-size: 14px; margin-bottom: 8px; }
.ad-cta { color: var(--gold); font-weight: 600; font-size: 13px; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .composer, .post, .page-head, .hero { padding-left: 20px; padding-right: 20px; }
  .pbody, .pactions, .translated { margin-left: 54px; }
  .script-stack > div { font-size: 42px; }
  .hero { padding-top: 48px; padding-bottom: 36px; }
  .hero-lede { font-size: 17px; }
}
