/* ============================================================================
   redlintu16.com — styles.css
   Plain CSS, no Tailwind, no DaisyUI. Loads in plain HTML via:
     <link rel="stylesheet" href="/feathers/output.css">
   (Your existing build pipeline passes this file through `@tailwindcss/cli`
    untouched — Tailwind v4 is a no-op when there are no @apply / @plugin
    directives in the source. You can drop the CLI later if you want.)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── 1. Design tokens ─────────────────────────────────────── */
:root,
[data-theme="redtheme"] {
  --red: #ef4444;
  /* Fully transparent red. Use this as the fade-to stop in red gradients
     instead of the `transparent` keyword — `transparent` resolves to
     rgba(0,0,0,0) (transparent BLACK), so interpolating to it leaves a
     dark middle/center in Firefox especially. */
  --red-clear: rgb(239 68 68 / 0);
  --red-hover: color-mix(in oklab, var(--red) 86%, #000 14%);
  --red-tint: color-mix(in srgb, var(--red) 6%, transparent);
  --red-soft: color-mix(in srgb, var(--red) 12%, transparent);

  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-2: #f1f5f9;
  --text: #FF0000;
  --text-muted: #475569;
  --text-subtle: #FF746C;
  --hair: #e2e8f0;
  --hair-strong: #cbd5e1;

  --success: #16a34a;
  --success-soft: color-mix(in srgb, #16a34a 14%, transparent);
  --warn: #d97706;
  --warn-soft: color-mix(in srgb, #d97706 14%, transparent);
  --info: #2563eb;
  --info-soft: color-mix(in srgb, #2563eb 14%, transparent);

  --side: 96px;
  --radius: 6px;
  --radius-lg: 12px;

  --font: 'Raleway', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="redtheme-dark"] {
  --red: #f87171;
  --red-hover: color-mix(in oklab, var(--red) 86%, #fff 14%);
  --red-tint: color-mix(in srgb, var(--red) 8%, transparent);
  --red-soft: color-mix(in srgb, var(--red) 14%, transparent);

  --bg: #0a0a0a;
  --bg-soft: #0d0d0d;
  --bg-2: #171717;
  --text: #e5e7eb;
  --text-muted: rgba(255,255,255,0.62);
  --text-subtle: rgba(255,255,255,0.45);
  --hair: rgba(255,255,255,0.08);
  --hair-strong: rgba(255,255,255,0.16);

  --success: #22c55e;
  --warn: #f59e0b;
  --info: #60a5fa;
}

/* ── 2. Reset + base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { min-height: 100vh; display: flex; flex-direction: column; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
hr { border: 0; height: 1px; background: var(--hair); margin: 24px 0; }
::selection { background: var(--red); color: #fff; }
em { font-style: italic; color: var(--red); font-weight: 700; }
strong { font-weight: 700; }
main { flex: 1; }

/* ── 3. Layout helpers ────────────────────────────────────── */
.container { max-width: 1600px; margin: 0 auto; padding: 0 var(--side); }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.hair-top { border-top: 1px solid var(--hair); }
.hair-bottom { border-bottom: 1px solid var(--hair); }
.tabular { font-variant-numeric: tabular-nums; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
  background: var(--red-tint);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--red); }
[data-theme="redtheme-dark"] .eyebrow .dot { box-shadow: 0 0 8px var(--red); }

/* ── 4. Navbar / Header ───────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--side);
  background: color-mix(in srgb, var(--red) 16%, transparent);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
  color: #fff;
}
.navbar a, .navbar button { color: inherit; transition: color .15s; }
.navbar a:hover, .navbar button:hover { color: #FF0000; }
[data-theme="redtheme-dark"] .navbar {
  background: color-mix(in srgb, var(--red) 22%, rgba(0,0,0,0.55));
  border-bottom-color: color-mix(in srgb, var(--red) 38%, transparent);
}
.navbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; color: #fff; transition: color .15s; }
.navbar-brand:hover { color: #FF0000; }
.navbar-brand img { width: 32px; height: 32px; }
.navbar-links { display: flex; gap: 28px; margin-left: 24px; }
.navbar-links a { font-size: 14px; font-weight: 500; color: #fff; transition: color .15s; }
.navbar-links a:hover { color: #FF0000; }
.navbar-links a.is-active { color: #fff; }
.navbar-spacer { flex: 1; }
.navbar-right { display: flex; align-items: center; gap: 8px; position: relative; }

.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s, color .15s;
  position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,0.15); color: #FF0000; }
.icon-btn .cart-pip {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; justify-content: center;
}

.nav-login {
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff;
  transition: background .15s, color .15s;
}
.nav-login:hover { background: rgba(255,255,255,0.15); color: #FF0000; }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 220px; padding: 8px;
  background: var(--bg); border: 1px solid var(--hair);
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px -28px rgba(0,0,0,0.25);
  display: none; z-index: 60;
}
.dropdown.is-open > .dropdown-panel { display: block; }
.dropdown-panel a, .dropdown-panel button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px; border-radius: var(--radius);
  font-size: 13px; text-align: left;
  color: var(--red); background: transparent;
}
.dropdown-panel a:hover, .dropdown-panel button:hover { background: var(--red-tint); color: var(--red); }

/* Mobile nav button only visible at narrow widths */
.nav-mobile { display: none; }

/* ── 5. Footer ────────────────────────────────────────────── */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 32px var(--side);
  border-top: 1px solid var(--hair);
  color: var(--red); font-size: 13px;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-left img { width: 20px; height: 20px; }
.footer-right { display: flex; gap: 10px; align-items: center; }
/* GitHub / Telegram icons match the theme-toggle: red by default,
   pastel red on hover. */
.footer-right a { color: var(--red); transition: color .15s; display: inline-flex; }
.footer-right a:hover { color: color-mix(in srgb, var(--red) 55%, white); }
/* Theme toggle is normally an .icon-btn (36x36 with hover bg) for the navbar.
   In the footer we want it to sit flush with the bare-SVG social icons, so
   strip the box and bump the SVG to 16x16. */
.footer-right #theme-toggle {
  width: auto; height: auto; padding: 0; background: none;
}
.footer-right #theme-toggle:hover { background: none; }
.footer-right #theme-toggle svg { width: 16px; height: 16px; }

/* Theme toggle lives in the footer — override the white `.icon-btn` colour
   (which is meant for the glassy-red navbar) so it's visible against the
   light footer. Red default → pastel red on hover. */
#theme-toggle { color: var(--red); }
#theme-toggle:hover {
  color: color-mix(in srgb, var(--red) 55%, white);
  background: transparent;   /* drop the white tint hover from .icon-btn */
}

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background .15s, transform .15s, border-color .15s, color .15s, box-shadow .15s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:disabled, .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 22%, transparent); }
.btn--ghost:hover { background: var(--red-tint); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
[data-theme="redtheme-dark"] .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.18); }
[data-theme="redtheme-dark"] .btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--hair-strong); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--sm { padding: 9px 14px; font-size: 11px; }
.btn--xs { padding: 6px 10px; font-size: 10.5px; letter-spacing: 0.04em; }
.btn--lg { padding: 15px 26px; font-size: 14px; }
.btn--block { width: 100%; }

/* ── 7. Inputs / forms ────────────────────────────────────── */
.input, .textarea, .select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius);
  font-size: 14px; outline: none;
  background: var(--bg); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--red) 35%, white);
  transition: border-color .15s, box-shadow .15s;
}
[data-theme="redtheme-dark"] .input,
[data-theme="redtheme-dark"] .textarea,
[data-theme="redtheme-dark"] .select { background: rgba(255,255,255,0.04); color: #fff; border-color: rgba(255,255,255,0.14); }
.input:focus, .textarea:focus, .select:focus {
  /* Pure glow on focus — no visible border. Border stays as 1px transparent
     so the box doesn't shift, but you see only the red halo. */
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input--sm { padding: 9px 12px; font-size: 13px; }
.textarea { resize: vertical; min-height: 96px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.field-label a, .field-label .alt { color: var(--red); font-weight: 700; font-size: 11px; }
.field-label .opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row--thirds { grid-template-columns: 1.4fr 1fr 1fr; }
.field-error { color: var(--red); font-size: 11px; }
.field-ok { color: var(--success); font-size: 11px; }

input[type="checkbox"] { accent-color: var(--red); width: 16px; height: 16px; }

/* ── 8. Alerts ─────────────────────────────────────────────── */
.alert { padding: 12px 14px; border-radius: 8px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.alert--ok    { background: var(--success-soft); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 22%, transparent); }
.alert--err   { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); }
.alert--info  { background: var(--red-tint); color: inherit; border: 1px solid var(--hair); }
.alert ul { margin: 0; padding-left: 20px; }
.alert li + li { margin-top: 4px; }

/* ── 9. Cards ──────────────────────────────────────────────── */
.card { background: var(--bg); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; }
[data-theme="redtheme-dark"] .card { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.card-head { padding: 18px 24px; border-bottom: 1px solid var(--hair); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.card-head .sub { font-size: 12px; color: var(--text-muted); }
.card-body { padding: 24px; }

/* ── 10. Pills / Status ────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pill--ok       { background: var(--success-soft); color: var(--success); }
.pill--info     { background: var(--info-soft);    color: var(--info); }
.pill--warn     { background: var(--warn-soft);    color: var(--warn); }
.pill--neutral  { background: var(--bg-2);         color: var(--text-muted); }
.pill--red      { background: var(--red); color: #fff; }
.pill--red-soft { background: var(--red-tint); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 22%, transparent); }

/* ── 11. Hero (used by home + project) ─────────────────────── */
.hero-glow {
  position: relative; overflow: hidden;
}
/* Center pushed BELOW the visible hero (50% 120%) so the gradient's exact
   center point is off-screen. Firefox renders a sub-pixel artifact at the
   center of large radial gradients — visible as a tiny black dot when the
   center sits inside the viewport. Pushing it down hides the artifact while
   keeping the same red glow at the bottom of the hero. */
.hero-glow::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle 720px at 50% 120%, color-mix(in srgb, var(--red) 22%, transparent), var(--red-clear) 70%);
  pointer-events: none;
}
[data-theme="redtheme-dark"] .hero-glow::before {
  background: radial-gradient(circle 720px at 50% 120%, color-mix(in srgb, var(--red) 32%, transparent), var(--red-clear) 70%);
}
.hero-glow > * { position: relative; z-index: 1; }

/* ── 12. Home page ─────────────────────────────────────────── */
.home-hero { padding: 72px var(--side) 80px; text-align: center; }
.home-h1 { font-size: 84px; line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; margin: 22px auto 20px; max-width: 900px; text-wrap: balance; }
.home-h1 .stroke { -webkit-text-stroke: 2px var(--text); color: transparent; font-weight: 900; }
[data-theme="redtheme-dark"] .home-h1 .stroke { -webkit-text-stroke-color: #fff; }
.home-sub { font-size: 18px; line-height: 1.55; color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; text-wrap: pretty; }
.home-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { padding: 80px var(--side); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head h2 { font-size: 38px; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.section-head h2 .acc { color: var(--red); }
.section-head .sub { color: var(--text-muted); font-size: 15px; max-width: 380px; margin: 0; text-align: right; }

.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.proj-card { background: var(--bg); border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
[data-theme="redtheme-dark"] .proj-card { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.proj-card:hover { border-color: color-mix(in srgb, var(--red) 35%, var(--hair)); transform: translateY(-2px); }
.proj-card:hover { box-shadow: 0 16px 40px -20px rgba(15,23,42,0.18); }
[data-theme="redtheme-dark"] .proj-card:hover { box-shadow: 0 24px 60px -28px color-mix(in srgb, var(--red) 55%, transparent); }
.proj-card-screen { aspect-ratio: 16/10; background: var(--bg-soft); border-bottom: 1px solid var(--hair); overflow: hidden; }
.proj-card-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proj-card-body { padding: 24px 26px; }
.proj-card-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--red); text-transform: uppercase; }
.proj-card-body h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 8px; }
.proj-card-body p { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin: 0 0 18px; }
.proj-card-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.proj-card-meta .red-link { font-size: 13px; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.proj-card-meta .muted-link { font-size: 13px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.proj-card-meta .pills { display: flex; gap: 6px; margin-left: auto; }
.proj-card-meta .platform { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--text-muted); font-weight: 500; }

.shop-preview { background: var(--bg-soft); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.shop-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shop-card { background: var(--bg); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; transition: transform .2s, border-color .2s; display: block; color: inherit; }
[data-theme="redtheme-dark"] .shop-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); }
.shop-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--red) 30%, var(--hair)); }
.shop-card .img { aspect-ratio: 1/1; }
.shop-card .img img, .shop-card .img svg { width: 100%; height: 100%; object-fit: cover; }
.shop-card .info { padding: 14px 16px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.shop-card .info h4 { font-size: 14px; font-weight: 600; margin: 0; }
.shop-card .info .price { font-size: 13px; color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }

.news-strip { padding: 80px var(--side); text-align: center; }
.news-strip h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.news-strip p { font-size: 16px; color: var(--text-muted); margin: 0 auto 28px; max-width: 480px; }
.news-strip form { display: grid; grid-template-columns: 1fr auto; max-width: 460px; margin: 0 auto; gap: 8px; }
.news-strip .input { min-width: 0; }
.news-strip .cf-turnstile { grid-column: 1 / -1; display: flex; justify-content: center; }

/* ── 13. Blog ──────────────────────────────────────────────── */
.blog-hero { padding: 56px var(--side) 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.blog-hero h1 { font-size: 64px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 16px 0 0; text-wrap: balance; }
.blog-hero .deck { font-size: 16px; max-width: 480px; margin: 0; line-height: 1.55; text-align: right; color: var(--text-muted); }

.blog-featured-wrap { padding: 24px var(--side) 12px; }
.blog-featured {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--hair);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  background: var(--bg);
  color: inherit;
}
[data-theme="redtheme-dark"] .blog-featured { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.blog-featured:hover { border-color: color-mix(in srgb, var(--red) 35%, var(--hair)); transform: translateY(-2px); }
.blog-featured-cover {
  position: relative; aspect-ratio: 5/4; min-height: 320px;
  background:
    radial-gradient(circle 360px at 28% 70%, color-mix(in srgb, var(--red) 38%, transparent), var(--red-clear) 70%),
    radial-gradient(circle 220px at 78% 28%, color-mix(in srgb, var(--red) 22%, transparent), var(--red-clear) 70%),
    var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--hair);
}
.blog-featured-cover img { width: 36%; opacity: 0.9; filter: drop-shadow(0 4px 24px color-mix(in srgb, var(--red) 40%, transparent)); }
.blog-featured-cover .tag-float { position: absolute; top: 18px; left: 18px; }
.blog-featured-body { padding: 36px 40px; display: flex; flex-direction: column; gap: 16px; }
.blog-featured-body h2 { font-size: 36px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin: 0; text-wrap: balance; }
.blog-featured-body .meta-line { display: flex; gap: 16px; align-items: center; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.blog-featured-body .meta-line .red-cat { color: var(--red); font-weight: 700; }
.blog-featured-body .meta-line .sep { opacity: 0.4; }
.blog-featured-body p { font-size: 15px; line-height: 1.6; margin: 0; max-width: 460px; color: var(--text-muted); }
.blog-featured-body .footer-row { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hair); }
.blog-featured-body .read-link { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }

.blog-filters { display: flex; gap: 8px; padding: 28px var(--side) 0; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
  background: transparent; color: var(--red); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chip:hover { background: color-mix(in srgb, var(--red) 10%, transparent); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.chip.is-active { background: var(--red); color: #fff; border-color: var(--red); }

.blog-grid { padding: 28px var(--side) 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; transition: border-color .2s, transform .2s; color: inherit; }
[data-theme="redtheme-dark"] .blog-card { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.blog-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--red) 35%, var(--hair)); }
.blog-card-cover { aspect-ratio: 16/9; position: relative; border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle 200px at 60% 60%, color-mix(in srgb, var(--red) 26%, transparent), var(--red-clear) 70%), var(--bg-soft); }
.blog-card-cover img { width: 32%; max-width: 88px; opacity: 0.85; filter: drop-shadow(0 2px 12px color-mix(in srgb, var(--red) 35%, transparent)); }
.blog-card-cover .tag-float { position: absolute; top: 14px; left: 14px; font-size: 10px; padding: 4px 10px; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-body h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; margin: 0; text-wrap: balance; }
.blog-card-body .meta-line { display: flex; gap: 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; align-items: center; color: var(--text-muted); }
.blog-card-body .meta-line .sep { opacity: 0.4; }
.blog-card-body p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--text-muted); }
.blog-card-body .read-link { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair); }

/* ── 14. Blog post ─────────────────────────────────────────── */
.post-header { padding: 48px var(--side) 32px; max-width: 920px; margin: 0 auto; }
.post-crumb { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 28px; }
.post-crumb a { color: inherit; opacity: 0.6; }
.post-crumb a:hover { color: var(--red); opacity: 1; }
.post-crumb .sep { opacity: 0.3; }
.post-crumb .current { color: var(--red); }
.post-title { font-size: 60px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 24px; text-wrap: balance; }
.post-deck { font-size: 19px; line-height: 1.55; margin: 0 0 28px; max-width: 720px; color: var(--text-muted); }
.post-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-size: 13px; }
.post-author { display: flex; align-items: center; gap: 10px; }
.post-author-avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.post-author-avatar img { filter: brightness(0) invert(1); width: 20px; height: 20px; }
.post-author .name { font-weight: 600; }
.post-meta .sep { opacity: 0.4; }
.post-meta-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.share-btn { width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid var(--hair); display: inline-flex; align-items: center; justify-content: center; color: inherit; opacity: 0.7; transition: opacity .15s, border-color .15s, color .15s; background: transparent; cursor: pointer; }
.share-btn:hover { opacity: 1; border-color: var(--red); color: var(--red); }

.post-cover { max-width: 1080px; margin: 8px auto 32px; padding: 0 var(--side); }
.post-cover-inner {
  aspect-ratio: 21/9; border-radius: 12px; border: 1px solid var(--hair); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle 380px at 32% 70%, color-mix(in srgb, var(--red) 38%, transparent), var(--red-clear) 70%),
    radial-gradient(circle 240px at 78% 30%, color-mix(in srgb, var(--red) 22%, transparent), var(--red-clear) 70%),
    var(--bg-soft);
}
.post-cover-inner img { width: 16%; max-width: 160px; opacity: 0.9; filter: drop-shadow(0 6px 30px color-mix(in srgb, var(--red) 45%, transparent)); }
.post-cover-caption { max-width: 1080px; margin: 0 auto; padding: 8px var(--side) 0; font-size: 12px; letter-spacing: 0.04em; color: var(--text-muted); }

.prose { max-width: 720px; margin: 24px auto; padding: 16px var(--side) 64px; font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 22px; }
.prose p { margin: 0; }
.prose a { color: var(--red); border-bottom: 1px solid color-mix(in srgb, var(--red) 35%, transparent); }
.prose a:hover { border-bottom-color: var(--red); }
.prose h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin: 48px 0 0; }
.prose h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; margin: 32px 0 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose blockquote {
  margin: 0; padding: 14px 22px;
  border-left: 3px solid var(--red);
  background: var(--red-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; font-size: 18px;
}
[data-theme="redtheme-dark"] .prose blockquote { background: color-mix(in srgb, var(--red) 14%, transparent); }
.prose code { font-family: var(--font-mono); font-size: 14px; padding: 2px 6px; border-radius: 4px; background: var(--bg-2); color: var(--red); }
[data-theme="redtheme-dark"] .prose code { color: #fda4af; }
.prose pre { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; padding: 18px 20px; border-radius: 8px; overflow-x: auto; background: #0a0a0a; color: #f1f5f9; border: 1px solid #0a0a0a; }
.prose pre code { background: transparent; color: inherit; padding: 0; }
.prose pre .k { color: var(--red); }
.prose pre .s { color: #86efac; }
.prose pre .c { color: #64748b; font-style: italic; }
.prose figure {
  margin: 8px 0; border-radius: 8px; border: 1px solid var(--hair); overflow: hidden;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle 220px at 32% 65%, color-mix(in srgb, var(--red) 28%, transparent), var(--red-clear) 70%), var(--bg-soft);
}
.prose figure img { width: 18%; opacity: 0.9; filter: drop-shadow(0 4px 20px color-mix(in srgb, var(--red) 35%, transparent)); }
.prose figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px !important; text-align: center; }

.post-after { max-width: 720px; margin: 0 auto; padding: 0 var(--side) 48px; }
.post-share-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.post-tags { display: flex; gap: 8px; }
.post-related { padding: 48px var(--side) 64px; }
.post-related .inner { max-width: 1280px; margin: 0 auto; }
.post-related h4 { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 0 0 24px; }
.post-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 10px; border: 1px solid var(--hair); transition: border-color .2s, transform .2s; background: var(--bg); color: inherit; }
[data-theme="redtheme-dark"] .related-card { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.related-card:hover { border-color: color-mix(in srgb, var(--red) 35%, var(--hair)); transform: translateY(-2px); }
.related-card .meta-line { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.related-card h5 { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; margin: 0; text-wrap: balance; }

/* ── 15. Project page ──────────────────────────────────────── */
.pp-hero {
  padding: 64px var(--side) 56px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px;
  align-items: center; position: relative; overflow: hidden;
}
.pp-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle 520px at 18% 88%, color-mix(in srgb, var(--red) 18%, transparent), var(--red-clear) 70%);
  pointer-events: none;
}
[data-theme="redtheme-dark"] .pp-hero::before { background: radial-gradient(circle 520px at 18% 88%, color-mix(in srgb, var(--red) 28%, transparent), var(--red-clear) 70%); }
.pp-hero > * { position: relative; z-index: 1; }
.pp-hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.pp-version { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--hair); }
.pp-status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--success); display: inline-block; }
.pp-status { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; opacity: 0.8; }
.pp-title { font-size: 80px; line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 18px; text-wrap: balance; }
.pp-tagline { font-size: 22px; line-height: 1.35; font-weight: 500; margin: 0 0 16px; text-wrap: balance; }
.pp-desc { font-size: 16px; line-height: 1.6; margin: 0 0 32px; max-width: 540px; color: var(--text-muted); }

.pp-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pp-dl {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: var(--radius);
  background: var(--red); color: #fff;
  font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background .15s, transform .15s;
}
.pp-dl:hover { background: var(--red-hover); transform: translateY(-1px); }
.pp-dl .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; gap: 2px; }
.pp-dl .stack .sub { font-size: 9px; opacity: 0.85; letter-spacing: 0.08em; font-weight: 600; }
.pp-dl-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-radius: var(--radius);
  background: transparent; color: inherit;
  font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--hair);
  transition: border-color .15s, color .15s;
}
.pp-dl-secondary:hover { border-color: var(--red); color: var(--red); }

.pp-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.pp-hero-shot {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); margin: 0;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.4), 0 0 0 1px color-mix(in srgb, var(--red) 8%, transparent);
  transform: perspective(1600px) rotateX(2deg) rotateY(-4deg);
  transition: transform .35s;
}
[data-theme="redtheme-dark"] .pp-hero-shot { box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8), 0 0 0 1px color-mix(in srgb, var(--red) 18%, transparent); }
.pp-hero-shot:hover { transform: perspective(1600px) rotateX(0deg) rotateY(0deg); }
.pp-window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-bottom: 1px solid var(--hair); background: var(--bg-soft); }
[data-theme="redtheme-dark"] .pp-window-bar { background: #050505; }
.pp-window-bar .traffic { width: 11px; height: 11px; border-radius: 999px; }
.pp-window-bar .traffic.r { background: #ff5f57; }
.pp-window-bar .traffic.y { background: #febc2e; }
.pp-window-bar .traffic.g { background: #28c840; }
.pp-window-bar .label { margin-left: 16px; font-size: 11px; opacity: 0.55; letter-spacing: 0.04em; }
.pp-hero-shot-img { aspect-ratio: 16/10; background: #0a0a0a; }
.pp-hero-shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--side); margin-bottom: 80px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.pp-stat { padding: 22px 24px; border-right: 1px solid var(--hair); }
.pp-stat:last-child { border-right: 0; }
.pp-stat .v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.pp-stat .l { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

/* Project page screenshot carousel */
.pp-shots { padding: 0 var(--side) 96px; }
.pp-shots-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.pp-shots-head h2 { font-size: 40px; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.pp-pager { display: flex; gap: 8px; align-items: center; }
.pp-arrow { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--hair); display: inline-flex; align-items: center; justify-content: center; color: inherit; cursor: pointer; transition: border-color .15s, color .15s; background: transparent; }
.pp-arrow:hover { border-color: var(--red); color: var(--red); }
.pp-count { font-size: 13px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; padding: 0 10px; color: var(--text-muted); }

.pp-stage { border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); position: relative; background: var(--bg-soft); max-width: 900px; margin: 0 auto; }
.pp-thumbs { max-width: 900px; margin-left: auto; margin-right: auto; }
[data-theme="redtheme-dark"] .pp-stage { background: #050505; }
.pp-stage-img { aspect-ratio: 16/9; overflow: hidden; }
.pp-stage-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pp-caption { padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--hair); font-size: 13px; }
.pp-caption .num { font-weight: 700; color: var(--red); letter-spacing: 0.06em; font-size: 11px; text-transform: uppercase; }
.pp-caption .text { color: var(--text-muted); }
.pp-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 16px; }
.pp-thumb { border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; cursor: pointer; transition: border-color .15s, opacity .15s; opacity: 0.5; background: transparent; padding: 0; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pp-thumb:hover { opacity: 0.85; }
.pp-thumb.is-active { opacity: 1; border-color: var(--red); box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 35%, transparent); }

.pp-features { padding: 80px var(--side); border-top: 1px solid var(--hair); background: var(--bg-soft); }
[data-theme="redtheme-dark"] .pp-features { background: #0d0d0d; }
.pp-features-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.pp-features-head h2 { font-size: 40px; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.pp-features-head p { font-size: 15px; margin: 0; max-width: 360px; text-align: right; color: var(--text-muted); }
.pp-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pp-feat { padding: 24px; border: 1px solid var(--hair); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; background: var(--bg); }
[data-theme="redtheme-dark"] .pp-feat { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.pp-feat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--red) 35%, var(--hair)); }
.pp-feat .num { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--red); }
.pp-feat h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.pp-feat p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--text-muted); }

.pp-install { padding: 80px var(--side); border-top: 1px solid var(--hair); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pp-install h2 { font-size: 36px; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 14px; }
.pp-install p { font-size: 15px; line-height: 1.6; margin: 0 0 18px; max-width: 460px; color: var(--text-muted); }
.pp-install .links { display: flex; gap: 14px; flex-wrap: wrap; }
.pp-install .links a { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.pp-code { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; padding: 22px 24px; border-radius: 8px; border: 1px solid #0a0a0a; overflow-x: auto; background: #0a0a0a; color: #f1f5f9; margin: 0; }
.pp-code .c { color: #64748b; }
.pp-code .k { color: var(--red); }
.pp-code .s { color: #86efac; }

.pp-cta { padding: 96px var(--side); text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--hair); }
.pp-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 520px at 50% 100%, color-mix(in srgb, var(--red) 20%, transparent), var(--red-clear) 70%); pointer-events: none; }
[data-theme="redtheme-dark"] .pp-cta::before { background: radial-gradient(circle 520px at 50% 100%, color-mix(in srgb, var(--red) 32%, transparent), var(--red-clear) 70%); }
.pp-cta > * { position: relative; z-index: 1; }
.pp-cta h2 { font-size: 48px; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px; text-wrap: balance; }
.pp-cta p { font-size: 17px; line-height: 1.5; margin: 0 auto 32px; max-width: 520px; color: var(--text-muted); }
.pp-cta-row-foot { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ── 16. Store index ───────────────────────────────────────── */
.store-hero { padding: 56px var(--side) 24px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.store-hero h1 { font-size: 64px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 16px 0 0; text-wrap: balance; }
.store-hero .deck { font-size: 15px; max-width: 360px; line-height: 1.55; text-align: right; margin: 0; color: var(--text-muted); }

.store-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px var(--side) 0; }
.store-cats { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.store-count { font-size: 12px; letter-spacing: 0.06em; color: var(--text-muted); }
.store-sort { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--hair); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.store-sort:hover { border-color: var(--red); color: var(--red); }

.store-grid { padding: 28px var(--side) 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.store-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; transition: border-color .2s, transform .2s; position: relative; color: inherit; }
[data-theme="redtheme-dark"] .store-card { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.store-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--red) 35%, var(--hair)); }
.store-card.is-soldout { opacity: 0.65; }
.store-card-img { aspect-ratio: 1/1; position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); background: var(--bg-soft); }
.store-card-img img, .store-card-img svg { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.store-card:hover .store-card-img img, .store-card:hover .store-card-img svg { transform: scale(1.04); }
.store-card-badge { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff; }
.store-card-badge--soldout { background: rgba(15,23,42,0.85); }
[data-theme="redtheme-dark"] .store-card-badge--soldout { background: rgba(255,255,255,0.9); color: #0a0a0a; }
.store-quick {
  position: absolute; bottom: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .2s, background .2s;
}
.store-card:hover .store-quick { opacity: 1; transform: translateY(0); }
.store-quick:hover { background: var(--red-hover); }
.store-card-body { padding: 16px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.store-card-body .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.store-card-body .cat { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }
.store-card-body h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card-body .price { font-size: 14px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ── 17. Product detail ────────────────────────────────────── */
.pdp-crumb { padding: 24px var(--side) 0; display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; flex-wrap: wrap; }
.pdp-crumb a { color: inherit; opacity: 0.6; }
.pdp-crumb a:hover { color: var(--red); opacity: 1; }
.pdp-crumb .sep { opacity: 0.3; }
.pdp-crumb .current { color: var(--red); }

.pdp-top { padding: 24px var(--side) 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }

.pdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.pdp-gallery-main { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); position: relative; background: var(--bg-soft); }
.pdp-gallery-main img, .pdp-gallery-main svg { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery-badge { position: absolute; top: 16px; left: 16px; }
.pdp-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pdp-thumb { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; border: 1px solid var(--hair); opacity: 0.6; transition: opacity .15s, border-color .15s; background: transparent; padding: 0; }
.pdp-thumb img, .pdp-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { opacity: 0.9; }
.pdp-thumb.is-active { opacity: 1; border-color: var(--red); box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 35%, transparent); }

.pdp-info { display: flex; flex-direction: column; gap: 18px; }
.pdp-cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.pdp-name { font-size: 48px; line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0; text-wrap: balance; }
.pdp-pricerow { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pdp-price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--red); font-variant-numeric: tabular-nums; }
.pdp-shipping { font-size: 12px; letter-spacing: 0.04em; color: var(--text-muted); }
.pdp-blurb { font-size: 15px; line-height: 1.6; margin: 0; color: var(--text-muted); }

.pdp-fieldset { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.pdp-fieldset .label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.pdp-fieldset .label .pick { font-weight: 500; letter-spacing: 0.04em; color: var(--text-muted); text-transform: none; font-size: 12px; }
.pdp-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-size { min-width: 48px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--hair); background: transparent; font-weight: 600; font-size: 13px; transition: border-color .15s, background .15s, color .15s; cursor: pointer; }
.pdp-size:hover { border-color: var(--red); color: var(--red); }
.pdp-size.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.pdp-colors { display: flex; gap: 10px; }
.pdp-color { width: 36px; height: 36px; border-radius: 999px; cursor: pointer; border: 2px solid var(--hair); padding: 2px; background: transparent; transition: border-color .15s, transform .15s; }
.pdp-color span { display: block; width: 100%; height: 100%; border-radius: 999px; border: 1px solid var(--hair); }
.pdp-color:hover { transform: scale(1.05); }
.pdp-color.is-active { border-color: var(--red); }

.pdp-buyrow { display: flex; gap: 10px; align-items: stretch; margin-top: 6px; flex-wrap: wrap; }
.qty-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.qty-stepper button { width: 44px; height: 44px; background: transparent; color: inherit; transition: background .15s; }
.qty-stepper button:hover { color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }
.qty-stepper .v { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pdp-add { flex: 1; min-width: 200px; padding: 14px 22px; }

.pdp-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--hair); }
.pdp-meta-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.pdp-meta-row .icon { color: var(--red); display: inline-flex; }

.pdp-tabs { padding: 32px var(--side); border-top: 1px solid var(--hair); }
.pdp-tabs-head { display: flex; gap: 32px; border-bottom: 1px solid var(--hair); }
.pdp-tab { padding: 14px 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: inherit; opacity: 0.6; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; cursor: pointer; }
.pdp-tab.is-active { opacity: 1; color: var(--red); border-bottom-color: var(--red); }
.pdp-tab:hover { opacity: 1; }
.pdp-tabs-body { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 32px 0; }
.pdp-tabs-body h4 { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.pdp-tabs-body p, .pdp-tabs-body ul { font-size: 14px; line-height: 1.6; margin: 0 0 12px; color: var(--text-muted); }
.pdp-tabs-body ul { padding-left: 20px; }
.pdp-tabs-body li { margin-bottom: 4px; }

.pdp-related { padding: 64px var(--side); border-top: 1px solid var(--hair); }
.pdp-related h2 { font-size: 24px; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 24px; }
.pdp-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── 18. Cart ──────────────────────────────────────────────── */
.cart-head { padding: 56px var(--side) 24px; }
.cart-head h1 { font-size: 56px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 12px 0 4px; }
.cart-head .count { font-size: 14px; color: var(--text-muted); }
.cart-grid { padding: 16px var(--side) 80px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; }
.cart-line { display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hair); align-items: center; }
.cart-line:first-child { border-top: 1px solid var(--hair); }
.cart-line-img { width: 100px; height: 100px; border-radius: 8px; overflow: hidden; border: 1px solid var(--hair); background: var(--bg-soft); }
.cart-line-img img, .cart-line-img svg { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-info .cat { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }
.cart-line-info h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.cart-line-info .variant { font-size: 12px; color: var(--text-muted); }
.cart-line-info .actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cart-line-info .remove { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); font-weight: 700; padding: 0; }
.cart-line-info .remove:hover { color: var(--red-hover); text-decoration: underline; }
.cart-line-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-variant-numeric: tabular-nums; }
.cart-line-price .total { font-size: 18px; font-weight: 800; }
.cart-line-price .unit { font-size: 11px; color: var(--text-muted); }

.cart-summary { padding: 24px 26px 26px; border: 1px solid var(--hair); border-radius: 12px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-soft); }
[data-theme="redtheme-dark"] .cart-summary { background: #0d0d0d; }
.cart-summary h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
.cart-row { display: flex; justify-content: space-between; font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-row .lbl { color: var(--text-muted); }
.cart-row.discount { color: var(--red); }
.cart-row.free { color: var(--success); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.cart-total .lbl { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.cart-total .val { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--red); }

/* Mini cart (the navbar dropdown) — override the full-page .cart-line/.cart-total
   styles which are sized for the /cart page with 100px thumbs. */
.dropdown-panel .cart-empty {
  font-size: 13px; padding: 14px; color: var(--text-muted); margin: 0;
}
.dropdown-panel .cart-line {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 12px;
  grid-template-columns: none;       /* unset the big grid */
  border: 0;                          /* no per-row borders in the mini */
}
.dropdown-panel .cart-line:first-child { border-top: 0; }
.dropdown-panel .cart-line-img {
  width: 36px; height: 36px; border-radius: 4px; flex-shrink: 0;
  border: 0; background: transparent; overflow: hidden;
}
.dropdown-panel .cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-panel .cart-line-info { flex: 1; min-width: 0; gap: 0; }
.dropdown-panel .cart-line-name {
  font-size: 13px; font-weight: 700; margin: 0;
  color: var(--red);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dropdown-panel .cart-line-sub {
  font-size: 11px; color: var(--red); margin: 0;
  font-variant-numeric: tabular-nums;
}
.dropdown-panel .cart-line-remove {
  width: 24px; height: 24px; border: 0; border-radius: 4px;
  background: transparent; color: var(--red); cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.dropdown-panel .cart-line-remove:hover { background: color-mix(in srgb, var(--red) 12%, transparent); }
.dropdown-panel .cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 12px; margin-top: 6px;
  border-top: 1px solid var(--hair);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}s
.dropdown-panel .cart-total > span:last-child {
  font-size: 14px; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: 0;
  text-transform: none;
}
.dropdown-panel .cart-view-full {
  display: block; text-align: center; font-size: 12px; padding: 8px 0;
  color: var(--text-muted);
}
.dropdown-panel .cart-view-full:hover { color: var(--red); }
.cart-promo { display: flex; gap: 6px; padding-top: 10px; border-top: 1px solid var(--hair); }
.cart-promo .input { padding: 11px 14px; font-size: 13px; }
.cart-promo button { padding: 11px 14px; font-size: 11px; }
.cart-secure { font-size: 11px; display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--text-muted); margin-top: 4px; }
.cart-secure .ico { color: var(--red); }
.pay-icons { display: flex; gap: 8px; justify-content: center; padding-top: 8px; color: var(--text-muted); }
.pay-icons .pay { font-size: 10px; letter-spacing: 0.08em; font-weight: 700; padding: 3px 8px; border: 1px solid var(--hair); border-radius: 4px; }
.continue-link { display: inline-flex; align-items: center; gap: 8px; padding: 20px 0; font-size: 13px; font-weight: 600; color: var(--red); }

/* ── 19. Checkout ─────────────────────────────────────────── */
.co-head { padding: 36px var(--side) 16px; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.co-head h1 { font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 800; margin: 12px 0 0; }
.co-steps { display: flex; gap: 0; align-items: center; flex-wrap: wrap; }
.co-step { display: flex; align-items: center; gap: 8px; }
.co-step .n { width: 24px; height: 24px; border-radius: 999px; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.co-step.pending .n { background: transparent; color: inherit; border: 1px solid var(--hair); }
.co-step .l { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.co-step.pending .l { opacity: 0.5; }
.co-step-line { width: 24px; height: 1px; background: var(--hair); margin: 0 8px; }

.co-grid { padding: 24px var(--side) 80px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.co-section { padding: 28px; border: 1px solid var(--hair); border-radius: 12px; display: flex; flex-direction: column; gap: 16px; background: var(--bg); }
[data-theme="redtheme-dark"] .co-section { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.co-section + .co-section { margin-top: 16px; }
.co-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-section-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.co-section-head .num { font-size: 11px; letter-spacing: 0.1em; font-weight: 800; color: var(--red); }

.co-ship-method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; background: transparent; width: 100%; text-align: left; }
.co-ship-method:hover { border-color: color-mix(in srgb, var(--red) 35%, var(--hair)); }
.co-ship-method.is-active { border-color: var(--red); background: color-mix(in srgb, var(--red) 5%, transparent); }
.co-ship-method .radio { width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--hair); display: inline-flex; align-items: center; justify-content: center; }
.co-ship-method.is-active .radio { border-color: var(--red); }
.co-ship-method.is-active .radio::after { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--red); }
.co-ship-method .info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.co-ship-method .name { font-size: 14px; font-weight: 700; }
.co-ship-method .sub { font-size: 12px; color: var(--text-muted); }
.co-ship-method .price { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

.co-pay-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--red) 8%, transparent), transparent 60%); }
.co-pay-bar .icon { color: var(--red); }
.co-pay-bar .lbl { flex: 1; font-size: 13px; font-weight: 600; }
.co-pay-bar .stripe-mark { font-size: 11px; letter-spacing: 0.06em; font-weight: 700; color: var(--text-muted); }

.co-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.co-rail-section { border: 1px solid var(--hair); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-soft); }
[data-theme="redtheme-dark"] .co-rail-section { background: #0d0d0d; }
.co-rail-section h3 { font-size: 14px; font-weight: 700; margin: 0; display: flex; justify-content: space-between; align-items: baseline; }
.co-rail-section h3 .ct { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.co-mini-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.co-mini-line .img { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; border: 1px solid var(--hair); position: relative; background: var(--bg-soft); }
.co-mini-line .img img, .co-mini-line .img svg { width: 100%; height: 100%; object-fit: cover; }
.co-mini-line .qty { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.co-mini-line .name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-mini-line .name h4 { font-size: 13px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-mini-line .name .var { font-size: 11px; color: var(--text-muted); }
.co-mini-line .sub { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.co-final { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--hair); }
.co-final .lbl { font-size: 12px; letter-spacing: 0.08em; font-weight: 700; text-transform: uppercase; }
.co-final .val { font-size: 24px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.co-fineprint { font-size: 11px; color: var(--text-muted); line-height: 1.5; text-align: center; }
.co-fineprint a { color: var(--red); }

/* ── 20. Order success ────────────────────────────────────── */
.os-main { padding: 48px var(--side) 80px; }
.os-card { max-width: 880px; margin: 0 auto; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: var(--bg); }
[data-theme="redtheme-dark"] .os-card { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.os-hero { padding: 56px 56px 40px; text-align: center; position: relative; overflow: hidden; }
.os-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 360px at 50% 0%, color-mix(in srgb, var(--red) 20%, transparent), var(--red-clear) 70%); pointer-events: none; }
[data-theme="redtheme-dark"] .os-hero::before { background: radial-gradient(circle 360px at 50% 0%, color-mix(in srgb, var(--red) 30%, transparent), var(--red-clear) 70%); }
.os-hero > * { position: relative; z-index: 1; }
.os-bird { width: 96px; height: 96px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; filter: drop-shadow(0 10px 32px color-mix(in srgb, var(--red) 55%, transparent)); }
.os-bird img { width: 100%; height: 100%; }
.os-hero h1 { font-size: 44px; line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 10px; text-wrap: balance; }
.os-hero .id { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }
.os-hero .id .badge { padding: 4px 10px; border-radius: 6px; background: var(--red-tint); color: var(--red); margin-left: 6px; }
.os-hero p { font-size: 15px; color: var(--text-muted); margin: 16px auto 0; max-width: 480px; line-height: 1.6; }
.os-actions { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

.os-timeline { padding: 0 56px 32px; }
.os-timeline-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hair); }
.os-timeline-row .dot { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--hair); display: inline-flex; align-items: center; justify-content: center; }
.os-timeline-row.done .dot { background: var(--red); border-color: var(--red); color: #fff; }
.os-timeline-row.active .dot { border-color: var(--red); color: var(--red); }
.os-timeline-row .body h4 { font-size: 14px; font-weight: 700; margin: 0 0 2px; }
.os-timeline-row .body .sub { font-size: 12px; color: var(--text-muted); }
.os-timeline-row .when { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }

.os-summary { padding: 32px 56px; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.os-summary h3 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--red); margin: 0 0 12px; }
.os-summary p { margin: 0; font-size: 14px; line-height: 1.6; }
.os-lines { padding: 0 56px 16px; }
.os-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hair); align-items: center; }
.os-line .img { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; border: 1px solid var(--hair); background: var(--bg-soft); }
.os-line .img img, .os-line .img svg { width: 100%; height: 100%; object-fit: cover; }
.os-line .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.os-line .info h4 { font-size: 14px; font-weight: 700; margin: 0; }
.os-line .info .var { font-size: 12px; color: var(--text-muted); }
.os-line .total { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.os-line .total .qty { font-size: 11px; color: var(--text-muted); display: block; }
.os-totals { padding: 16px 56px 40px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--hair); }
.os-foot-ctas { display: flex; justify-content: center; gap: 8px; padding: 28px 56px 40px; border-top: 1px solid var(--hair); flex-wrap: wrap; }

/* ── 21. Auth ─────────────────────────────────────────────── */
.auth-main { padding: 56px var(--side); position: relative; overflow: hidden; min-height: 720px; display: flex; align-items: center; justify-content: center; }
.auth-main::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 540px at 50% 0%, color-mix(in srgb, var(--red) 16%, transparent), var(--red-clear) 70%); pointer-events: none; }
[data-theme="redtheme-dark"] .auth-main::before { background: radial-gradient(circle 540px at 50% 0%, color-mix(in srgb, var(--red) 26%, transparent), var(--red-clear) 70%); }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 480px; padding: 36px 36px 32px; border-radius: 14px; border: 1px solid var(--hair); background: var(--bg); box-shadow: 0 24px 60px -32px rgba(15,23,42,0.18); }
.auth-card--narrow { max-width: 420px; }
[data-theme="redtheme-dark"] .auth-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); box-shadow: 0 24px 60px -28px rgba(0,0,0,0.6); }
.auth-mark { width: 56px; height: 56px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--red) 50%, transparent)); }
.auth-mark img { width: 100%; height: 100%; }
.auth-eyebrow { display: flex; justify-content: center; margin-bottom: 12px; }
.auth-title { font-size: 30px; line-height: 1.06; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 10px; text-align: center; text-wrap: balance; }
.auth-body { display: flex; flex-direction: column; gap: 16px; }
.auth-body form { display: flex; flex-direction: column; gap: 14px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.auth-divider span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.auth-oauth { display: flex; gap: 8px; }
.auth-oauth-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--hair); background: transparent; color: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; transition: border-color .15s, color .15s, background .15s; cursor: pointer; }
.auth-oauth-btn:hover { border-color: var(--red); color: var(--red); background: color-mix(in srgb, var(--red) 5%, transparent); }
.auth-oauth-btn svg { color: var(--red); }
.auth-foot { text-align: center; font-size: 13px; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--hair); color: var(--text-muted); }
.auth-foot a { color: var(--red); font-weight: 600; }
.auth-foot a:hover { color: var(--red-hover); }

/* Signup password strength */
.pw-strength { display: flex; gap: 4px; margin-top: 6px; }
.pw-strength span { flex: 1; height: 4px; border-radius: 999px; background: var(--hair); transition: background .15s; }
/* Each bar has its own colour by position — pastel red on the left, bright
   #FF0000 on the right. A bar lights up once the strength reaches its slot. */
.pw-strength.s1 span:nth-child(1),
.pw-strength.s2 span:nth-child(1),
.pw-strength.s3 span:nth-child(1),
.pw-strength.s4 span:nth-child(1) { background: #fca5a5; }
.pw-strength.s2 span:nth-child(2),
.pw-strength.s3 span:nth-child(2),
.pw-strength.s4 span:nth-child(2) { background: #f87171; }
.pw-strength.s3 span:nth-child(3),
.pw-strength.s4 span:nth-child(3) { background: #ef4444; }
.pw-strength.s4 span:nth-child(4) { background: #FF0000; }

/* ── 22. Account ──────────────────────────────────────────── */
.acc-banner { padding: 32px var(--side) 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); position: relative; overflow: hidden; }
.acc-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 400px at 8% 100%, color-mix(in srgb, var(--red) 12%, transparent), var(--red-clear) 70%); pointer-events: none; }
[data-theme="redtheme-dark"] .acc-banner::before { background: radial-gradient(circle 400px at 8% 100%, color-mix(in srgb, var(--red) 22%, transparent), var(--red-clear) 70%); }
.acc-banner > * { position: relative; z-index: 1; }
.acc-avatar { width: 64px; height: 64px; border-radius: 999px; background: var(--red); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--red) 60%, transparent); }
.acc-banner h1 { font-size: 28px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; margin: 8px 0 0; }
.acc-banner .meta { display: flex; gap: 12px; align-items: center; font-size: 12px; letter-spacing: 0.04em; margin-top: 4px; color: var(--text-muted); flex-wrap: wrap; }
.acc-banner .meta .sep { opacity: 0.4; }
.acc-banner .right { margin-left: auto; display: flex; gap: 8px; }

.acc-grid { padding: 32px var(--side) 64px; display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.acc-side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; }
.acc-side .group { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 4px 12px 8px; }
.acc-side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.acc-side a:hover { background: color-mix(in srgb, var(--red) 8%, transparent); color: var(--red); }
.acc-side a.is-active { background: var(--red); color: #fff; }
.acc-side a .ico { display: inline-flex; opacity: 0.75; }
.acc-side a.is-active .ico { opacity: 1; }
.acc-side .help { margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--hair); border-radius: 8px; font-size: 12px; color: var(--text-muted); }
.acc-side .help a { display: inline; padding: 0; color: var(--red); font-weight: 700; }
.acc-side .help a:hover { background: transparent; text-decoration: underline; }

.acc-content { min-width: 0; }
.acc-tabs { display: flex; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--hair); }
.acc-tab { padding: 14px 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: inherit; opacity: 0.55; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; }
.acc-tab.is-active { opacity: 1; color: var(--red); border-bottom-color: var(--red); }
.acc-tab:hover { opacity: 1; }

.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.addr-card { padding: 18px 20px; border: 1px solid var(--hair); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.addr-card header { display: flex; align-items: center; gap: 8px; }
.addr-card h3 { font-size: 15px; font-weight: 700; margin: 0; }
.addr-card address { font-style: normal; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.addr-card .actions { display: flex; gap: 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.addr-card .actions a { color: var(--text-muted); }
.addr-card .actions a.red { color: var(--red); }
.addr-card .actions a:hover { color: var(--red); }
.addr-card .actions .delete { margin-left: auto; }
.addr-new {
  padding: 24px; border: 1px dashed var(--hair); border-radius: 10px; background: transparent; color: var(--red);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 180px;
  text-decoration: none;
}
.addr-new .plus { width: 36px; height: 36px; border-radius: 999px; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.addr-new:hover .plus { background: var(--red-hover); }

.order-row { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 18px; padding: 16px 24px; border-bottom: 1px solid var(--hair); transition: background .15s; }
.order-row:hover { background: color-mix(in srgb, var(--red) 4%, transparent); }
[data-theme="redtheme-dark"] .order-row:hover { background: rgba(255,255,255,0.03); }
.order-row:last-child { border-bottom: 0; }
.order-row .stack-thumbs { display: flex; gap: 6px; }
.order-row .stack-thumbs .t { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; border: 1px solid var(--hair); background: var(--bg-soft); }
.order-row .stack-thumbs .t + .t { margin-left: -14px; }
.order-row .stack-thumbs .t img, .order-row .stack-thumbs .t svg { width: 100%; height: 100%; object-fit: cover; }
.order-row .meta { display: flex; flex-direction: column; gap: 2px; }
.order-row .meta .id { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-row .meta .sub { font-size: 12px; color: var(--text-muted); }
.order-row .total { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--red); }
.order-row .details-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }

/* ── 23. 404 ──────────────────────────────────────────────── */
.nf-main { min-height: 720px; padding: 56px var(--side); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.nf-main::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 560px at 50% 50%, color-mix(in srgb, var(--red) 16%, transparent), var(--red-clear) 70%); pointer-events: none; }
[data-theme="redtheme-dark"] .nf-main::before { background: radial-gradient(circle 560px at 50% 50%, color-mix(in srgb, var(--red) 26%, transparent), var(--red-clear) 70%); }
.nf-card { position: relative; z-index: 1; max-width: 720px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nf-bird { width: 96px; height: 96px; filter: drop-shadow(0 12px 36px color-mix(in srgb, var(--red) 55%, transparent)); transform: rotate(-12deg); animation: nfHover 4s ease-in-out infinite; }
@keyframes nfHover { 0%,100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-8px); } }
.nf-code { font-size: 168px; line-height: 0.85; letter-spacing: -0.06em; font-weight: 900; margin: 8px 0 0; color: var(--red); font-variant-numeric: tabular-nums; }
.nf-h1 { font-size: 38px; line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; margin: 4px 0 6px; text-wrap: balance; }
.nf-sub { font-size: 16px; line-height: 1.6; max-width: 480px; margin: 0; color: var(--text-muted); }
.nf-search { display: flex; gap: 8px; width: 100%; max-width: 460px; margin-top: 10px; }
.nf-quicklinks { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--hair); width: 100%; max-width: 460px; }
.nf-quicklinks .lbl { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); align-self: center; }
.nf-quicklinks a { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--red); }

/* ── 24. Privacy ──────────────────────────────────────────── */
.pv-head { padding: 48px var(--side) 32px; border-bottom: 1px solid var(--hair); position: relative; overflow: hidden; }
.pv-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 460px at 14% 100%, color-mix(in srgb, var(--red) 12%, transparent), var(--red-clear) 70%); pointer-events: none; }
[data-theme="redtheme-dark"] .pv-head::before { background: radial-gradient(circle 460px at 14% 100%, color-mix(in srgb, var(--red) 22%, transparent), var(--red-clear) 70%); }
.pv-head > * { position: relative; z-index: 1; }
.pv-head h1 { font-size: 52px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 14px 0 6px; }
.pv-head .deck { font-size: 15px; line-height: 1.55; max-width: 580px; margin: 6px 0 14px; color: var(--text-muted); }
.pv-head .meta { display: flex; gap: 16px; align-items: center; font-size: 12px; letter-spacing: 0.04em; color: var(--text-muted); flex-wrap: wrap; }
.pv-head .meta .badge { padding: 4px 10px; border-radius: 999px; background: var(--red-tint); color: var(--red); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; border: 1px solid color-mix(in srgb, var(--red) 22%, transparent); }
.pv-head .meta .sep { opacity: 0.4; }

.pv-grid { padding: 40px var(--side) 80px; display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.pv-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.pv-toc h3 { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 0 12px 12px; }
.pv-toc a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--radius); font-size: 13px; color: inherit; opacity: 0.7; transition: background .15s, color .15s, opacity .15s; }
.pv-toc a:hover { background: color-mix(in srgb, var(--red) 8%, transparent); color: var(--red); opacity: 1; }
.pv-toc a.is-active { color: var(--red); opacity: 1; background: var(--red-tint); }
.pv-toc a .num { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; opacity: 0.5; font-variant-numeric: tabular-nums; }
.pv-body { max-width: 740px; font-size: 16px; line-height: 1.7; }
.pv-section { padding-top: 8px; padding-bottom: 28px; scroll-margin-top: 100px; }
.pv-section + .pv-section { border-top: 1px solid var(--hair); padding-top: 28px; }
.pv-section h2 { font-size: 26px; line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 14px; display: flex; align-items: baseline; gap: 14px; }
.pv-section h2 .num { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--red); flex-shrink: 0; padding-top: 4px; }
.pv-section p { margin: 0 0 14px; }
.pv-section a { color: var(--red); border-bottom: 1px solid color-mix(in srgb, var(--red) 35%, transparent); }
.pv-section ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-muted); }
.pv-section li + li { margin-top: 6px; }
.pv-section .callout { padding: 14px 18px; background: var(--red-tint); border: 1px solid color-mix(in srgb, var(--red) 22%, transparent); border-radius: 8px; font-size: 14.5px; line-height: 1.6; margin: 6px 0 18px; }
.pv-section .callout strong { color: var(--red); }
.pv-grid-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 18px; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.pv-grid-table th { text-align: left; padding: 10px 14px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--hair); background: var(--bg-soft); }
.pv-grid-table td { padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.pv-grid-table tr:last-child td { border-bottom: 0; }
.pv-bottom-cta { margin-top: 24px; padding: 22px 24px; border-radius: 10px; border: 1px solid var(--hair); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; background: var(--bg-soft); }
[data-theme="redtheme-dark"] .pv-bottom-cta { background: #0d0d0d; }

/* ── 25. Administration ────────────────────────────────────────────── */
.adm-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.adm-side { border-right: 1px solid var(--hair); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
[data-theme="redtheme-dark"] .adm-side { background: #0a0a0a; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; border-bottom: 1px solid var(--hair); margin-bottom: 10px; }
.adm-brand img { width: 24px; height: 24px; }
.adm-brand .name { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.adm-brand .name small { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 1px; }
.adm-side .group { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 12px 6px; color: var(--text-muted); }
.adm-side a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.adm-side a:hover { background: color-mix(in srgb, var(--red) 8%, transparent); color: var(--red); }
.adm-side a.is-active { background: var(--red); color: #fff; }
.adm-side a .ico { display: inline-flex; opacity: 0.7; }
.adm-side a.is-active .ico { opacity: 1; }
.adm-side .pip { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red-tint); color: var(--red); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.adm-side a.is-active .pip { background: rgba(255,255,255,0.2); color: #fff; }
.adm-side-foot { margin-top: auto; padding: 12px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--hair); font-size: 12px; }
.adm-side-foot .av { width: 30px; height: 30px; border-radius: 999px; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.adm-side-foot .who { display: flex; flex-direction: column; min-width: 0; }
.adm-side-foot .who strong { font-weight: 700; font-size: 12.5px; }
.adm-side-foot .who small { font-size: 10px; color: var(--text-muted); }
.adm-top { display: flex; align-items: center; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--hair); background: var(--bg); }
[data-theme="redtheme-dark"] .adm-top { background: #0a0a0a; }
.adm-crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.adm-crumb a:hover { color: var(--red); }
.adm-crumb .current { color: var(--red); font-weight: 700; }
.adm-top .search { flex: 1; max-width: 420px; margin-left: 24px; position: relative; }
.adm-top .search input { width: 100%; padding: 8px 12px 8px 36px; border-radius: var(--radius); background: transparent; font-size: 13px; outline: none; border: 1px solid var(--hair); }
.adm-top .search input:focus { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent); }
.adm-top .search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); opacity: 0.5; pointer-events: none; }
.adm-top .search .kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--hair); color: var(--text-muted); letter-spacing: 0.04em; }
.adm-top .spacer { flex: 1; }
.adm-main { padding: 32px 28px 64px; min-width: 0; }

.adm-panel { border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; background: var(--bg); }
[data-theme="redtheme-dark"] .adm-panel { background: #0a0a0a; }
.adm-panel-head { padding: 14px 20px; border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-panel-head h3 { font-size: 14px; font-weight: 700; margin: 0; }
.adm-panel-head .sub { font-size: 11px; color: var(--text-muted); }
.adm-panel-body { padding: 18px 20px; }

.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 16px; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--hair); }
.adm-table td { padding: 12px 16px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover td { background: color-mix(in srgb, var(--red) 4%, transparent); }
[data-theme="redtheme-dark"] .adm-table tbody tr:hover td { background: rgba(255,255,255,0.03); }

/* Administration stat cards */
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.adm-stat { padding: 18px; }
.adm-stat .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.adm-stat .v { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 8px; }
.adm-stat .delta { font-size: 11.5px; margin-top: 4px; font-weight: 700; letter-spacing: 0.04em; }
.adm-stat .delta.pos { color: var(--success); }
.adm-stat .delta.neg { color: var(--red); }

.adm-icon-btn { width: 28px; height: 28px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; color: inherit; opacity: 0.65; background: transparent; transition: opacity .15s, color .15s, background .15s; }
.adm-icon-btn:hover { opacity: 1; color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }
.adm-input { width: 100%; padding: 9px 12px; border-radius: var(--radius); font-size: 13px; outline: none; border: 1px solid var(--hair); background: transparent; color: inherit; }
.adm-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent); }

/* ── 26. Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --side: 56px; }
  .home-h1 { font-size: 64px; }
  .projects-grid { grid-template-columns: 1fr; }
  .shop-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero h1 { font-size: 52px; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-cover { border-right: 0; border-bottom: 1px solid var(--hair); min-height: 220px; aspect-ratio: 21/9; }
  .blog-featured-body h2 { font-size: 28px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .pp-hero { grid-template-columns: 1fr; gap: 36px; }
  .pp-title { font-size: 64px; }
  .pp-stats { grid-template-columns: repeat(2, 1fr); }
  .pp-stat:nth-child(2) { border-right: 0; }
  .pp-stat:nth-child(1), .pp-stat:nth-child(2) { border-bottom: 1px solid var(--hair); }
  .pp-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .pp-install { grid-template-columns: 1fr; gap: 32px; }
  .store-grid { grid-template-columns: repeat(3, 1fr); }
  .pdp-top { grid-template-columns: 1fr; gap: 32px; }
  .pdp-tabs-body { grid-template-columns: 1fr; gap: 24px; }
  .pdp-related-grid { grid-template-columns: repeat(3, 1fr); }
  .cart-grid { grid-template-columns: 1fr; gap: 32px; }
  .cart-summary { position: static; }
  .cart-head h1 { font-size: 44px; }
  .co-grid { grid-template-columns: 1fr; gap: 24px; }
  .co-rail { position: static; }
  .co-head h1 { font-size: 36px; }
  .co-steps { display: none; }
  .acc-grid { grid-template-columns: 1fr; gap: 18px; }
  .acc-side { position: static; flex-direction: row; gap: 6px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
  .acc-side .group, .acc-side .help { display: none; }
  .pv-grid { grid-template-columns: 1fr; gap: 32px; }
  .pv-toc { position: static; flex-direction: row; gap: 4px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
  .pv-toc h3 { display: none; }
  .pv-toc a .num { display: none; }
  .adm-layout { grid-template-columns: 1fr; }
  .adm-side { flex-direction: row; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hair); padding: 10px 14px; }
  .adm-brand, .adm-side .group, .adm-side-foot { display: none; }
  .adm-side a { flex-shrink: 0; }
  .adm-top .search { display: none; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --side: 24px; }
  .navbar-links { display: none; }
  .nav-mobile { display: inline-flex; }
  .nav-login { display: none; }
  .home-hero { padding: 56px var(--side); }
  .home-h1 { font-size: 44px; }
  .section { padding: 56px var(--side); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head .sub { text-align: left; }
  .shop-preview-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .blog-hero { padding: 36px var(--side) 20px; grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 40px; }
  .blog-hero .deck { text-align: left; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-header { padding: 32px var(--side) 24px; }
  .post-title { font-size: 32px; }
  .post-deck { font-size: 16px; }
  .pp-hero { padding: 40px var(--side) 32px; }
  .pp-title { font-size: 44px; }
  .pp-tagline { font-size: 18px; }
  .pp-feat-grid { grid-template-columns: 1fr; }
  .pp-thumbs { display: none; }
  .pp-cta h2 { font-size: 32px; }
  .pp-install h2 { font-size: 26px; }
  .store-hero { padding: 36px var(--side) 20px; grid-template-columns: 1fr; }
  .store-hero h1 { font-size: 40px; }
  .store-hero .deck { text-align: left; }
  .store-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .store-card-body { padding: 12px 14px; }
  .store-card-body h3 { font-size: 13px; }
  .store-quick { opacity: 1; transform: translateY(0); width: 32px; height: 32px; }
  .pdp-top { padding: 16px var(--side) 40px; }
  .pdp-name { font-size: 30px; }
  .pdp-buyrow { flex-direction: column; }
  .pdp-add { width: 100%; }
  .pdp-related-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-tabs { padding: 24px var(--side); }
  .pdp-tabs-head { gap: 18px; }
  .cart-head { padding: 36px var(--side) 16px; }
  .cart-head h1 { font-size: 32px; }
  .cart-line { grid-template-columns: 72px 1fr; gap: 14px; }
  .cart-line-price { grid-column: 2; align-items: flex-start; }
  .cart-line-img { width: 72px; height: 72px; }
  .co-head { padding: 32px var(--side) 12px; }
  .co-head h1 { font-size: 28px; }
  .co-section { padding: 20px; }
  .field-row, .field-row--thirds { grid-template-columns: 1fr; }
  .os-main { padding: 24px var(--side) 56px; }
  .os-hero { padding: 36px 24px 28px; }
  .os-hero h1 { font-size: 28px; }
  .os-timeline, .os-summary, .os-lines, .os-totals, .os-foot-ctas { padding-left: 24px; padding-right: 24px; }
  .os-summary { grid-template-columns: 1fr; gap: 18px; }
  .auth-main { padding: 32px var(--side); min-height: 600px; }
  .auth-card { padding: 28px 22px 24px; }
  .auth-title { font-size: 24px; }
  .acc-banner { padding: 24px var(--side) 18px; gap: 12px; }
  .acc-avatar { width: 48px; height: 48px; font-size: 18px; }
  .acc-banner h1 { font-size: 22px; }
  .acc-banner .right { width: 100%; margin-left: 0; }
  .acc-tabs { padding: 0 20px; gap: 14px; overflow-x: auto; }
  .addr-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: auto 1fr; }
  .order-row > :nth-child(3), .order-row > :nth-child(4) { grid-column: 2; }
  .order-row > :nth-child(5) { grid-column: 1 / -1; justify-self: end; }
  .nf-main { min-height: 560px; padding: 32px var(--side); }
  .nf-code { font-size: 112px; }
  .nf-h1 { font-size: 26px; }
  .nf-search { flex-direction: column; }
  .pv-head { padding: 32px var(--side) 24px; }
  .pv-head h1 { font-size: 34px; }
  .pv-section h2 { font-size: 20px; gap: 8px; }
  .pv-body { font-size: 15px; }
  .adm-stats { grid-template-columns: 1fr; }
  .adm-top { padding: 12px 18px; }
  .adm-main { padding: 20px 18px 56px; }
  .adm-top .adm-crumb { display: none; }
}

/* Centered SVG mark for homepage project cards */
.proj-card .proj-card-screen--mark {
  aspect-ratio: 16 / 10;          /* locks the card height so it can't grow tall */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle 240px at 50% 58%, color-mix(in srgb, var(--red) 16%, transparent), var(--red-clear) 70%),
    var(--bg-soft);
}
[data-theme="redtheme-dark"] .proj-card .proj-card-screen--mark {
  background:
    radial-gradient(circle 240px at 50% 58%, color-mix(in srgb, var(--red) 26%, transparent), var(--red-clear) 70%),
    #0d0d0d;
}
.proj-card .proj-card-screen--mark img {
  width: 34% !important;
  height: auto !important;
  max-height: 60% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 28px color-mix(in srgb, var(--red) 32%, transparent));
}

/* ─────────────────────────────────────────────────────────────────────────
   Music (/music listing + /music/:slug release page)
   ───────────────────────────────────────────────────────────────────────── */
.music-grid { padding: 28px var(--side) 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.music-card { display: flex; flex-direction: column; color: inherit; }
.music-cover { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); background: var(--bg-soft); transition: transform .2s, border-color .2s, box-shadow .2s; }
.music-card:hover .music-cover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--red) 40%, var(--hair)); box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--red) 42%, transparent); }
.music-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.music-type { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, #000 55%, transparent); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.music-card-body { padding: 13px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.music-card-body h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0; text-wrap: balance; }
.music-meta { display: flex; gap: 7px; align-items: center; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.music-meta .sep { opacity: 0.4; }

.mp-hero { padding: 48px var(--side) 44px; display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 48px; align-items: start; }
.mp-artwork { margin: 0; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--hair); background: var(--bg-soft); box-shadow: 0 26px 64px -28px color-mix(in srgb, var(--red) 48%, transparent); }
.mp-artwork img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-info { padding-top: 4px; min-width: 0; }
.mp-back { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px; }
.mp-back:hover { color: var(--red); }
.mp-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mp-year { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-subtle); }
.mp-title { font-size: 52px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0; text-wrap: balance; }
.mp-artist { font-size: 18px; font-weight: 600; color: var(--red); margin: 10px 0 0; }
.mp-blurb { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 16px 0 0; max-width: 54ch; }
.mp-listen-head { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 32px 0 14px; }

.mp-services { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-service { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 10px; border: 1px solid var(--hair); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--text); transition: border-color .18s, transform .18s, background .18s; }
.mp-service:hover { transform: translateY(-2px); border-color: var(--brand, var(--red)); background: color-mix(in srgb, var(--brand, var(--red)) 8%, var(--bg)); }
.mp-service-ico { display: inline-flex; width: 20px; height: 20px; color: var(--brand, var(--text)); }
.mp-service-ico svg { width: 100%; height: 100%; }
.mp-service-arrow { opacity: 0; margin-left: 2px; color: var(--text-muted); transition: opacity .18s; }
.mp-service:hover .mp-service-arrow { opacity: 1; }
.mp-service[data-service="spotify"]    { --brand: #1db954; }
.mp-service[data-service="apple"]      { --brand: #fa2d48; }
.mp-service[data-service="soundcloud"] { --brand: #ff5500; }
.mp-service[data-service="youtube"]    { --brand: #ff0033; }
.mp-service[data-service="bandcamp"]   { --brand: #1da0c3; }
.mp-service[data-service="tidal"]      { --brand: #00c2cb; }
.mp-service[data-service="amazon"]     { --brand: #25d1da; }
.mp-service[data-service="deezer"]     { --brand: #a238ff; }

.mp-tracks { padding: 8px var(--side) 84px; }
.mp-tracks-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.mp-tracks-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.mp-tracks-head h2 em { color: var(--red); font-style: italic; }
.mp-tracks-count { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.mp-tracklist { list-style: none; margin: 0; padding: 0; }
.mp-track { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px; padding: 14px 8px; border-bottom: 1px solid var(--hair); border-radius: 8px; transition: background .15s; }
.mp-track:hover { background: var(--red-tint); }
.mp-track-n { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--text-subtle); }
.mp-track-title { font-size: 15px; font-weight: 600; color: var(--text); min-width: 0; }
.mp-track-dur { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-muted); }

@media (max-width: 1100px) {
  .music-grid { grid-template-columns: repeat(3, 1fr); }
  .mp-hero { grid-template-columns: 1fr; gap: 30px; }
  .mp-artwork { max-width: 400px; }
  .mp-title { font-size: 42px; }
}
@media (max-width: 720px) {
  .music-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .mp-title { font-size: 34px; }
  .mp-service { flex: 1 1 auto; justify-content: center; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Discord server-application system (/discord)
   ───────────────────────────────────────────────────────────────────────── */
.dc-wrap { max-width: 920px; margin: 0 auto; padding: 8px var(--side) 90px; }
.dc-muted { color: var(--text-muted); font-size: 13px; }
.dc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dc-back { color: var(--text-muted); font-weight: 700; }
.dc-back:hover { color: var(--red); }
.dc-req-star { color: var(--red); }
.dc-help { display: block; color: var(--text-muted); font-size: 12px; margin: -2px 0 6px; }
.dc-inline-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 4px; }
.dc-inline-check input, .dc-choice input, .dc-q-required input { accent-color: var(--red); }

.dc-login-card { max-width: 460px; margin: 10px auto 0; text-align: center; padding: 40px 28px; border: 1px solid var(--hair); border-radius: 16px; background: var(--bg-soft); }
.dc-login-mark { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 18px; background: #5865F2; color: #fff; margin-bottom: 16px; }
.dc-login-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.dc-login-card p { margin: 0 auto; max-width: 40ch; }
.dc-btn-discord { margin-top: 18px; background: #5865F2; border: 1px solid #5865F2; color: #fff; display: inline-flex; align-items: center; gap: 9px; }
.dc-btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }

.dc-empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--hair-strong); border-radius: 14px; background: var(--bg-soft); }
.dc-empty h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.dc-empty p { color: var(--text-muted); margin: 0 auto 16px; max-width: 44ch; }

.dc-guild-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dc-guild-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--bg); color: inherit; transition: border-color .18s, transform .18s; }
.dc-guild-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--red) 40%, var(--hair)); }
.dc-guild-icon img { border-radius: 14px; display: block; }
.dc-guild-fallback { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--red-tint); color: var(--red); font-weight: 800; font-size: 20px; }
.dc-guild-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dc-guild-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-guild-role { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dc-guild-card .dc-arrow { color: var(--text-subtle); flex: 0 0 auto; }
.dc-guild-card:hover .dc-arrow { color: var(--red); }

.dc-form-list { display: flex; flex-direction: column; gap: 14px; }
.dc-form-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px; border: 1px solid var(--hair); border-radius: 12px; background: var(--bg); }
.dc-form-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.dc-form-desc { color: var(--text-muted); font-size: 13px; margin: 6px 0 10px; }
.dc-form-linkrow { display: flex; gap: 8px; align-items: center; max-width: 460px; }
.dc-copy-input { font-size: 12px; color: var(--text-muted); }
.dc-form-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dc-stat { text-align: right; }
.dc-stat .v { font-size: 22px; font-weight: 800; display: block; line-height: 1; }
.dc-stat .l { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dc-form-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dc-danger { color: var(--red); }
.dc-danger:hover { border-color: var(--red); }

.dc-builder-form { display: flex; flex-direction: column; gap: 18px; }
.dc-panel { border: 1px solid var(--hair); border-radius: 12px; background: var(--bg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.dc-panel-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.dc-questions { display: flex; flex-direction: column; gap: 14px; }
.dc-q { border: 1px solid var(--hair); border-left: 3px solid color-mix(in srgb, var(--red) 60%, var(--hair)); border-radius: 10px; background: var(--bg-soft); padding: 14px; }
.dc-q-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dc-q-type { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.dc-q-tools { display: flex; gap: 5px; }
.dc-q-body { display: flex; flex-direction: column; gap: 6px; }
.dc-q-body .field-label { margin-top: 6px; }
.dc-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.dc-opt-row { display: flex; gap: 8px; align-items: center; }
.dc-opt-x { flex: 0 0 auto; }
.dc-q-required { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 8px; }
.dc-add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.dc-builder-actions { display: flex; justify-content: flex-end; gap: 10px; }

.dc-apply { max-width: 680px; }
.dc-apply-form { display: flex; flex-direction: column; gap: 16px; }
.dc-choices { display: flex; flex-direction: column; gap: 8px; }
.dc-choice { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 9px 12px; border: 1px solid var(--hair); border-radius: 9px; cursor: pointer; transition: border-color .15s, background .15s; }
.dc-choice:hover { border-color: color-mix(in srgb, var(--red) 34%, var(--hair)); background: var(--red-tint); }
.dc-success { text-align: center; padding: 56px 24px; border: 1px solid var(--hair); border-radius: 16px; background: var(--bg-soft); }
.dc-success-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 999px; background: color-mix(in srgb, #16a34a 15%, transparent); color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.dc-success h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.dc-success p { color: var(--text-muted); margin: 0 auto; max-width: 44ch; }

.dc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dc-filters .dc-count { opacity: 0.6; font-variant-numeric: tabular-nums; }
.dc-sub-list { display: flex; flex-direction: column; gap: 10px; }
.dc-sub { border: 1px solid var(--hair); border-radius: 11px; background: var(--bg); overflow: hidden; }
.dc-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.dc-sub-head::-webkit-details-marker { display: none; }
.dc-sub-handle { font-weight: 700; font-size: 15px; }
.dc-sub-meta { display: flex; align-items: center; gap: 10px; }
.dc-sub-body { padding: 4px 16px 16px; border-top: 1px solid var(--hair); }
.dc-answers { margin: 12px 0 16px; display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 6px 18px; }
.dc-answers dt { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.dc-answers dd { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.dc-status-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px dashed var(--hair); }
.dc-status-form .input[name="reviewer_note"] { flex: 1; min-width: 180px; }

@media (max-width: 720px) {
  .dc-guild-grid { grid-template-columns: 1fr; }
  .dc-form-row { grid-template-columns: 1fr; }
  .dc-form-side { align-items: flex-start; }
  .dc-form-actions { justify-content: flex-start; }
  .dc-answers { grid-template-columns: 1fr; gap: 2px 0; }
  .dc-answers dd { margin-bottom: 8px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   File browser (/filebrowser)
   ───────────────────────────────────────────────────────────────────────── */
.fb-wrap { max-width: 1040px; margin: 0 auto; padding: 8px var(--side) 90px; }
.fb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-bottom: 16px; font-size: 14px; }
.fb-crumb { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; color: var(--text-muted); font-weight: 600; }
.fb-crumb:hover { color: var(--red); background: var(--red-tint); }
.fb-crumb:last-of-type { color: var(--text); }
.fb-crumb-home { width: 16px; height: 16px; }
.fb-crumbs .fb-sep { color: var(--text-subtle); }

.fb-panel { border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; background: var(--bg); }
.fb-head { display: grid; grid-template-columns: 1fr auto 104px; gap: 16px; align-items: center; padding: 10px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--hair); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.fb-head-dl { text-align: center; }
.fb-list { display: flex; flex-direction: column; }
.fb-row { display: grid; grid-template-columns: 1fr auto 104px; gap: 16px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--hair); color: inherit; }
.fb-row:last-child { border-bottom: 0; }
.fb-row--folder { cursor: pointer; transition: background .14s; }
.fb-row--folder:hover { background: var(--red-tint); }
.fb-name { display: inline-flex; align-items: center; gap: 11px; min-width: 0; font-size: 14px; font-weight: 600; }
.fb-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-ico { width: 26px; height: 26px; flex: 0 0 auto; color: var(--text-subtle); }
.fb-ico--folder { color: var(--red); }
.fb-ico--archive { color: #d97706; }
.fb-ico--disc { color: #4f46e5; }
.fb-ico--installer { color: var(--red); }
.fb-ico--doc { color: #0891b2; }
.fb-mod { font-size: 12px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fb-dl { display: inline-flex; align-items: center; justify-content: center; justify-self: center; }
.fb-chev { width: 16px; height: 16px; color: var(--text-subtle); }
.fb-row--folder:hover .fb-chev { color: var(--red); }
.fb-dl--btn { width: 34px; height: 34px; border-radius: 8px; color: var(--text-muted); transition: background .15s, color .15s; }
.fb-dl--btn svg { width: 18px; height: 18px; }
.fb-dl--btn:hover { background: var(--red); color: #fff; }
.fb-loading { padding: 40px; text-align: center; color: var(--text-muted); font-size: 14px; }
.fb-empty { padding: 48px 24px; text-align: center; }
.fb-empty h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.fb-empty p { color: var(--text-muted); margin: 0; }

@media (max-width: 720px) {
  .fb-head, .fb-row { grid-template-columns: 1fr auto 96px; gap: 10px; }
  .fb-mod { font-size: 11px; }
}
/* ─────────────────────────────────────────────────────────────────────────
   Forums (/Forums, admin/forums)
   ───────────────────────────────────────────────────────────────────────── */
.forum-hero { padding: 56px var(--side) 20px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.forum-hero h1 { font-size: 56px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 16px 0 0; text-wrap: balance; }
.forum-hero .deck { font-size: 15px; max-width: 440px; margin: 0; line-height: 1.55; text-align: right; color: var(--text-muted); }

.forum-wrap { max-width: 1120px; margin: 0 auto; padding: 8px var(--side) 90px; }
.forum-wrap--narrow { max-width: 760px; }
.forum-empty { padding: 48px 24px; text-align: center; color: var(--text-muted); border: 1px dashed var(--hair); border-radius: 12px; }

.forum-cat { margin: 26px 0 0; }
.forum-cat-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.forum-cat-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; margin: 0; }
.forum-cat-head h2 a { color: inherit; }
.forum-cat-head h2 a:hover { color: var(--red); }
.forum-cat-head .sub { font-size: 13px; color: var(--text-muted); }

.forum-board-list { border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; background: var(--bg); }
.forum-board-none { padding: 24px; font-size: 13px; color: var(--text-muted); }
.forum-board-row { display: grid; grid-template-columns: auto 1fr 150px 200px; gap: 16px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--hair); color: inherit; transition: background .14s; }
.forum-board-row:last-child { border-bottom: 0; }
.forum-board-row:hover { background: var(--red-tint); }
.forum-board-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--red-tint); color: var(--red); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.forum-board-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.forum-board-info .name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.forum-board-info .desc { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-board-stats { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.forum-board-stats strong { color: var(--text); font-weight: 700; }
.forum-board-last { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.forum-board-last .t { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-board-last .when { font-size: 11.5px; color: var(--text-muted); }

.forum-board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 14px 0 18px; flex-wrap: wrap; }
.forum-board-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.forum-board-head p { margin: 0 0 4px; font-size: 14px; }

.forum-topic-list { border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; background: var(--bg); }
.forum-topic-row { display: grid; grid-template-columns: 1fr 130px 150px; gap: 16px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--hair); color: inherit; transition: background .14s; }
.forum-topic-row:last-child { border-bottom: 0; }
.forum-topic-row:hover { background: var(--red-tint); }
.forum-topic-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.forum-topic-main .title { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; overflow: hidden; text-overflow: ellipsis; }
.forum-topic-main .by { font-size: 12px; color: var(--text-muted); }
.forum-topic-nums { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.forum-topic-nums strong { color: var(--text); font-weight: 700; }
.forum-topic-last { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.forum-topic-last .who { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-topic-last .when { font-size: 11.5px; color: var(--text-muted); }

.forum-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0; }

.forum-topic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 14px 0 18px; flex-wrap: wrap; }
.forum-topic-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 6px; text-wrap: balance; }
.forum-topic-pills { display: flex; align-items: center; gap: 8px; }
.forum-mod-tools { display: flex; gap: 6px; flex-wrap: wrap; }

.forum-posts { display: flex; flex-direction: column; gap: 14px; }
.forum-post { display: grid; grid-template-columns: 168px 1fr; border: 1px solid var(--hair); border-radius: 12px; background: var(--bg); overflow: hidden; }
.forum-post-side { padding: 18px 16px; background: var(--bg-soft); border-right: 1px solid var(--hair); display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.forum-avatar { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.forum-avatar--blank { background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
/* hidden attr must win over the display types above (avatar 404 fallback) */
.forum-avatar[hidden], .forum-avatar--blank[hidden] { display: none !important; }
.forum-post-name { font-size: 14px; font-weight: 700; word-break: break-word; }
.forum-post-joined { font-size: 11px; color: var(--text-muted); }
.forum-post-main { padding: 14px 18px 16px; min-width: 0; display: flex; flex-direction: column; }
.forum-post-meta { margin-bottom: 10px; }
.forum-post-meta .when { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.forum-post-meta .when:hover { color: var(--red); }
.forum-post-body { font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.forum-post-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--hair); }
.forum-post-del { font-size: 12px; font-weight: 700; color: var(--text-muted); background: none; border: 0; cursor: pointer; padding: 0; }
.forum-post-del:hover { color: var(--red); }
.forum-edit summary { font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; list-style: none; }
.forum-edit summary::-webkit-details-marker { display: none; }
.forum-edit summary:hover { color: var(--red); }
.forum-edit[open] { flex: 1; }
.forum-edit form { margin-top: 10px; }

.forum-reply { margin-top: 26px; }
.forum-reply h3 { font-size: 17px; font-weight: 800; margin: 0 0 10px; }

@media (max-width: 820px) {
  .forum-hero { grid-template-columns: 1fr; }
  .forum-hero .deck { text-align: left; }
  .forum-hero h1 { font-size: 42px; }
  .forum-board-row { grid-template-columns: auto 1fr; }
  .forum-board-stats, .forum-board-last { display: none; }
  .forum-topic-row { grid-template-columns: 1fr; gap: 6px; }
  .forum-topic-nums { flex-direction: row; gap: 12px; }
  .forum-topic-last { display: none; }
  .forum-post { grid-template-columns: 1fr; }
  .forum-post-side { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--hair); padding: 12px 16px; flex-wrap: wrap; }
  .forum-avatar { width: 34px; height: 34px; }
  .forum-avatar--blank { font-size: 14px; }
}

/* Forum safeguards — active only when forum-guard.js is loaded (non-moderators).
   Selection is disabled on guarded pages (form fields stay usable), the shield
   covers the viewport whenever the page loses focus or PrintScreen fires, and
   printing renders nothing but the shield. */
html.forum-guarded body { user-select: none; -webkit-user-select: none; }
html.forum-guarded textarea, html.forum-guarded input { user-select: text; -webkit-user-select: text; }
/* Completely white screen with the logo only — same in both themes. */
.forum-shield { position: fixed; inset: 0; z-index: 2147483647; background: #fff; display: flex; align-items: center; justify-content: center; }
.forum-shield[hidden] { display: none; }
.forum-shield img { width: min(40vw, 280px); }
@media print {
  html.forum-guarded .navbar, html.forum-guarded .footer { display: none !important; }
  html.forum-guarded main > *:not(.forum-shield) { display: none !important; }
  html.forum-guarded .forum-shield { display: flex !important; position: static; height: 90vh; }
}

/* Rendered BBCode inside forum posts */
.forum-bb-hint { font-size: 11px; color: var(--text-subtle); margin: 6px 0 0; line-height: 1.6; }
.forum-post-body a { color: var(--red); border-bottom: 1px solid color-mix(in srgb, var(--red) 35%, transparent); word-break: break-all; }
.forum-post-body a:hover { border-bottom-color: var(--red); }
.forum-post-body .fbb-center { text-align: center; }
.forum-post-body .fbb-img { max-width: min(100%, 480px); max-height: 480px; border-radius: 8px; margin: 6px 0; }
.forum-post-body .fbb-code { font-family: var(--font-mono); font-size: 13px; line-height: 1.55; background: var(--bg-2); border: 1px solid var(--hair); border-radius: 8px; padding: 12px 14px; margin: 8px 0; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.forum-post-body .fbb-quote { border-left: 3px solid color-mix(in srgb, var(--red) 55%, var(--hair)); background: var(--bg-soft); padding: 8px 14px; margin: 8px 0; border-radius: 0 8px 8px 0; }
.forum-post-body .fbb-quote cite { display: block; font-size: 12px; font-weight: 700; color: var(--red); font-style: normal; margin-bottom: 4px; }
.forum-post-body .fbb-list { padding-left: 22px; margin: 8px 0; white-space: normal; }
.forum-post-body .fbb-list li { margin: 3px 0; }
.forum-post-body .fbb-size-1 { font-size: 11px; }
.forum-post-body .fbb-size-2 { font-size: 12.5px; }
.forum-post-body .fbb-size-3 { font-size: 14px; }
.forum-post-body .fbb-size-4 { font-size: 16.5px; }
.forum-post-body .fbb-size-5 { font-size: 20px; font-weight: 700; }
.forum-post-body .fbb-size-6 { font-size: 24px; font-weight: 700; }
.forum-post-body .fbb-size-7 { font-size: 28px; font-weight: 800; }

/* ─────────────────────────────────────────────────────────────────────────
   Tracking (/Tracking)
   ───────────────────────────────────────────────────────────────────────── */
.trk-wrap { max-width: 820px; margin: 0 auto; padding: 40px var(--side) 90px; }
.trk-head { margin-bottom: 24px; }
.trk-head h1 { font-size: 44px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 14px 0 10px; }
.trk-head h1 em { color: var(--red); font-style: normal; }
.trk-head .deck { font-size: 15px; color: var(--text-muted); margin: 0; max-width: 52ch; }
.trk-current { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trk-current-main { font-size: 15px; }
.trk-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.trk-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--hair); }
.trk-timeline li { position: relative; padding: 0 0 16px 24px; }
.trk-timeline li:last-child { padding-bottom: 0; }
.trk-dot { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 999px; background: var(--bg); border: 2px solid var(--hair-strong); }
.trk-timeline li.is-latest .trk-dot { border-color: var(--red); background: var(--red); }
.trk-ev-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.trk-ev-status { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.trk-ev-date { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.trk-ev-detail { font-size: 14px; line-height: 1.5; margin-top: 2px; }
.trk-finalmile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 14px; background: var(--red-tint); border: 1px solid color-mix(in srgb, var(--red) 22%, transparent); border-radius: 10px; }
.trk-fm-label { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.trk-fm-num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; word-break: break-all; }

/* ── Post editor (/Administration/Posts) ───────────────────────────────────── */
.pe-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .pe-wrap { grid-template-columns: 1fr; } }

.pe-main { min-width: 0; }
.pe-title {
  width: 100%; font-family: var(--font); font-size: 26px; font-weight: 800; letter-spacing: -0.025em;
  padding: 14px 16px; margin-bottom: 12px; color: var(--text);
  background: var(--bg); border: 1px solid var(--hair); border-radius: 10px;
}
.pe-title::placeholder { color: var(--text-muted); font-weight: 600; opacity: 0.65; }
.pe-title:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.pe-editor-shell { border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; background: var(--bg); }

.pe-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding: 7px 9px; border-bottom: 1px solid var(--hair); background: var(--bg-soft);
  position: sticky; top: 0; z-index: 3;
}
.pe-tb {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--text-muted); cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 700; line-height: 1;
}
.pe-tb:hover { background: var(--red-tint); color: var(--red); border-color: var(--hair); }
.pe-tb.is-on { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.pe-sep { width: 1px; height: 20px; margin: 0 5px; background: var(--hair-strong); }

.pe-body {
  min-height: 420px; padding: 22px 24px; font-size: 15px; line-height: 1.75; color: var(--text);
  outline: none; overflow-wrap: break-word;
}
.pe-body:focus { outline: none; }
.pe-body > *:first-child { margin-top: 0; }
.pe-body p { margin: 0 0 1em; }
.pe-body h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 1.4em 0 0.5em; }
.pe-body h3 { font-size: 18px; font-weight: 700; margin: 1.3em 0 0.4em; }
.pe-body ul, .pe-body ol { margin: 0 0 1em; padding-left: 1.5em; }
.pe-body li { margin: 0.25em 0; }
.pe-body blockquote {
  margin: 1.2em 0; padding: 0.5em 0 0.5em 1em;
  border-left: 3px solid var(--red); color: var(--text-muted); font-style: italic;
}
.pe-body pre {
  margin: 1.2em 0; padding: 14px 16px; border-radius: 8px; overflow-x: auto;
  background: var(--bg-2); font-family: var(--font-mono); font-size: 13px; font-variant-ligatures: none;
}
.pe-body code { font-family: var(--font-mono); font-size: 0.92em; font-variant-ligatures: none; }
.pe-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.6em 0; }
.pe-body a { color: var(--red); text-decoration: underline; }
.pe-body hr { border: 0; border-top: 1px solid var(--hair); margin: 1.6em 0; }

.pe-statusbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 14px; border-top: 1px solid var(--hair); background: var(--bg-soft);
  font-size: 11.5px; color: var(--text-muted);
}
.pe-hint { opacity: 0.85; }

.pe-side { display: flex; flex-direction: column; gap: 12px; }
.pe-panel { padding: 14px 16px; }
.pe-panel-h {
  margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.pe-panel .field { margin: 0; }
.pe-help { display: block; margin-top: 5px; font-size: 11.5px; color: var(--text-muted); }
.pe-meta { margin: 0 0 8px; font-size: 12.5px; color: var(--text-muted); }
.pe-meta strong { color: var(--text); }
.pe-actions { display: flex; gap: 8px; margin-top: 12px; }
.pe-actions .btn { flex: 1; justify-content: center; }
.pe-danger { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 12.5px; }
.pe-danger a { color: var(--text-muted); text-decoration: none; }
.pe-danger a:hover { color: var(--red); }
.pe-cover-preview {
  display: block; width: 100%; height: auto; margin-top: 10px;
  border: 1px solid var(--hair); border-radius: 8px; background: var(--bg-2);
}

[data-theme="redtheme-dark"] .pe-title,
[data-theme="redtheme-dark"] .pe-editor-shell { background: #0a0a0a; }
[data-theme="redtheme-dark"] .pe-toolbar,
[data-theme="redtheme-dark"] .pe-statusbar { background: #0f0f0f; }
[data-theme="redtheme-dark"] .pe-body pre { background: #141414; }

/* ── Admin repeaters (links, screenshots, features, downloads) ─────────────── */
.rp-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.rp-row--stack { align-items: flex-start; }
.rp-stack { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.rp-row .input { flex: 1; min-width: 0; }
.rp-num {
  flex: 0 0 auto; width: 20px; text-align: right;
  font-size: 11px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.rp-x {
  flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid var(--hair); border-radius: 6px;
  background: transparent; color: var(--text-muted); cursor: pointer; line-height: 1; font-size: 16px;
}
.rp-x:hover { border-color: var(--red); color: var(--red); background: var(--red-tint); }
.rp-empty { margin: 4px 0 10px; font-size: 12.5px; color: var(--text-muted); }

/* ── Project page: release notes / changelog ───────────────────────────────── */
.pp-log { max-width: 1120px; margin: 0 auto; padding: 56px var(--side) 80px; }
@media (max-width: 900px) { .pp-log { padding: 40px 20px 60px; } }
.pp-log-head { margin-bottom: 26px; }
.pp-log-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 4px; }
.pp-log-head h2 em { font-style: normal; color: var(--red); }
.pp-log-head p { margin: 0; font-size: 13px; color: var(--text-muted); }

.pp-log-item { padding: 22px 0; border-top: 1px solid var(--hair); }
.pp-log-item:first-of-type { border-top: 0; }

.pp-log-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.pp-log-ver { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.pp-log-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff;
}
.pp-log-channel {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 2px 7px; border-radius: 999px; border: 1px solid var(--hair-strong); color: var(--text-muted);
}
.pp-log-date { margin-left: auto; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.pp-log-notes { font-size: 14.5px; line-height: 1.75; }
.pp-log-notes > *:first-child { margin-top: 0; }
.pp-log-notes > *:last-child { margin-bottom: 0; }
.pp-log-notes h3 { font-size: 15px; font-weight: 700; margin: 1.1em 0 .35em; }
.pp-log-notes ul, .pp-log-notes ol { margin: 0 0 .8em; padding-left: 1.4em; }
.pp-log-notes li { margin: .2em 0; }
.pp-log-notes a { color: var(--red); }
.pp-log-notes pre {
  margin: .9em 0; padding: 12px 14px; border-radius: 8px; overflow-x: auto;
  background: var(--bg-2); font-family: var(--font-mono); font-size: 12.5px; font-variant-ligatures: none;
}
.pp-log-empty { color: var(--text-muted); font-style: italic; }

.pp-log-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pp-log-file {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border: 1px solid var(--hair); border-radius: 8px;
  font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--text);
}
.pp-log-file:hover { border-color: var(--red); color: var(--red); background: var(--red-tint); }

[data-theme="redtheme-dark"] .pp-log-notes pre { background: #141414; }

/* ═══════════════════════════════════════════════════════════════════════════
   track.redlintu16.com — uses the main site's tokens above (--red, --hair, …)
   ═══════════════════════════════════════════════════════════════════════════ */

/* An explicit `display` in author CSS BEATS the browser's built-in
   [hidden] { display: none }. Several elements here are flex or grid AND get
   toggled with the hidden attribute (the result panel's message box, the
   recent-lookups row), so without this they stay visible with empty contents —
   which is exactly how an error icon appeared above a perfectly good result. */
[hidden] { display: none !important; }

body { background: var(--bg); color: var(--text); font-family: var(--font); margin: 0; }

.tr-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 24px; border-bottom: 1px solid var(--hair); background: var(--bg);
}
.tr-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; font-size: 15px; }
.tr-brand strong { color: var(--red); }
.tr-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; }
.tr-nav a { color: var(--text-subtle); text-decoration: none; }
.tr-nav a:hover { color: var(--red); }
.tr-who { color: var(--text-subtle); }

.tr-main { max-width: 820px; margin: 0 auto; padding: 44px 20px 72px; }

.tr-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.035em; margin: 10px 0 6px; }
.tr-hero h1 em { font-style: normal; color: var(--red); }
.tr-hero-sub { margin: 0 0 22px; color: var(--text-subtle); font-size: 15px; }

.tr-form { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-field { position: relative; flex: 1 1 280px; min-width: 0; }
.tr-input {
  width: 100%; padding: 13px 38px 13px 15px; font-size: 15px;
  font-family: var(--font-mono); letter-spacing: 0.02em;
  border: 1px solid var(--hair-strong); border-radius: 9px;
  background: var(--bg); color: var(--text);
}
.tr-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.tr-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-subtle); font-size: 17px; cursor: pointer; line-height: 1;
}
.tr-clear:hover { color: var(--red); background: var(--red-tint); }
.tr-carrier {
  padding: 13px 12px; font-size: 14px; border: 1px solid var(--hair-strong);
  border-radius: 9px; background: var(--bg); color: var(--text); flex: 0 0 auto;
}
.tr-go { padding: 13px 24px; font-size: 15px; }
.tr-go:disabled { opacity: .6; cursor: default; }

.tr-recent { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 14px 0 0; font-size: 12px; }
.tr-recent .lbl { color: var(--red); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; font-size: 10.5px; }
.tr-recent-item {
  border: 1px solid var(--text-subtle); border-radius: 999px; background: transparent;
  padding: 4px 11px; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-subtle); cursor: pointer;
  transition: color .12s ease, border-color .12s ease;
}
.tr-recent-item:hover { border-color: var(--red); color: var(--red); }
.tr-recent-clear {
  border: 0; background: transparent; color: var(--text-subtle);
  font-size: 11.5px; cursor: pointer; text-decoration: underline;
  transition: color .12s ease;
}
.tr-recent-clear:hover { color: var(--red); }

/* The result box — hidden until a lookup produces something. */
.tr-panel {
  margin-top: 26px; border: 1px solid var(--hair); border-radius: 12px;
  background: var(--bg); overflow: hidden;
  animation: tr-in .18s ease-out;
}
@keyframes tr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tr-panel { animation: none; } }
.tr-panel[data-state="error"] { border-color: color-mix(in srgb, var(--red) 40%, var(--hair)); }

.tr-panel-msg { display: flex; gap: 11px; padding: 20px 22px; align-items: flex-start; }
.tr-msg-icon { color: var(--red); flex: 0 0 auto; margin-top: 1px; }
.tr-msg-text { margin: 0; font-size: 14.5px; line-height: 1.6; }
.tr-msg-tried { margin: 6px 0 0; font-size: 12px; color: var(--text-subtle); font-family: var(--font-mono); }

.tr-result-head { padding: 22px 22px 18px; border-bottom: 1px solid var(--hair); }
.tr-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--bg-2); color: var(--text-subtle);
}
.tr-pill.is-delivered { background: var(--success-soft); color: var(--success); }
.tr-pill.is-transit   { background: var(--red-soft);     color: var(--red); }
.tr-pill.is-pre       { background: var(--bg-2);         color: var(--text-subtle); }
.tr-pill.is-returned  { background: var(--warn-soft);    color: var(--warn); }
.tr-pill.is-failure   { background: var(--red);          color: #fff; }
.tr-detected {
  margin-left: 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  /* Secondary red throughout — the grey hairline border made it read as a
     disabled chip sitting next to the live status pill. */
  color: var(--text-subtle); border: 1px solid var(--text-subtle);
  border-radius: 999px; padding: 2px 8px;
}
.tr-status { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin: 12px 0 4px; }
.tr-status-detail { margin: 0; font-size: 14.5px; line-height: 1.6; }
.tr-status-where { margin: 6px 0 0; font-size: 12.5px; color: var(--text-subtle); }

.tr-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0; margin: 0; padding: 0; border-bottom: 1px solid var(--hair);
}
.tr-fact { padding: 14px 22px; border-right: 1px solid var(--hair); }
.tr-fact:last-child { border-right: 0; }
.tr-fact dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-subtle); font-weight: 700; margin-bottom: 3px; }
.tr-fact dd { margin: 0; font-size: 14px; }
.tr-mono { font-family: var(--font-mono); font-size: 13px !important; word-break: break-all; }
.tr-copy {
  margin-left: 6px; border: 0; background: transparent; color: var(--text-subtle);
  font-size: 11px; cursor: pointer; text-decoration: underline; font-family: var(--font);
}
.tr-copy:hover { color: var(--red); }

.tr-timeline { padding: 20px 22px 24px; }
.tr-timeline h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); margin: 0 0 14px; font-weight: 700; }
.tr-steps { list-style: none; margin: 0; padding: 0; }
.tr-step { position: relative; padding: 0 0 18px 24px; }
.tr-step:last-child { padding-bottom: 0; }
.tr-step::before {
  content: ''; position: absolute; left: 4.5px; top: 14px; bottom: 0; width: 1px; background: var(--hair);
}
.tr-step:last-child::before { display: none; }
.tr-step-dot {
  position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%;
  /* Outlined, not filled — only the current step gets a solid dot. */
  border: 2px solid var(--text-subtle); background: var(--bg);
}
.tr-step.is-current .tr-step-dot { border-color: var(--red); background: var(--red); }
.tr-step-detail { margin: 0; font-size: 14px; line-height: 1.55; }
.tr-step.is-current .tr-step-detail { font-weight: 600; }
.tr-step-meta { margin: 3px 0 0; font-size: 12px; color: var(--text-subtle); }
.tr-step-loc::before { content: ' · '; }

.tr-login { text-align: center; padding: 60px 0; }
.tr-login h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.tr-login h1 em { font-style: normal; color: var(--red); }
.tr-login-sub { color: var(--text-subtle); margin: 0 0 24px; font-size: 15px; }
.tr-login-alert { max-width: 460px; margin: 0 auto 20px; text-align: left; }
.tr-login-alt { margin-top: 16px; font-size: 13px; color: var(--text-subtle); }
.tr-login-alt a { color: var(--red); }

.tr-empty { text-align: center; padding: 70px 0; }
.tr-code { font-size: 54px; font-weight: 800; margin: 0; color: var(--red); letter-spacing: -0.04em; }
.tr-empty-text { color: var(--text-subtle); margin: 6px 0 20px; }

.tr-foot {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 22px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--text-subtle);
}
.tr-foot a { color: var(--text-subtle); }
.tr-foot a:hover { color: var(--red); }
.tr-foot .sep { opacity: .5; }

@media (max-width: 620px) {
  .tr-hero h1 { font-size: 30px; }
  .tr-carrier, .tr-go { flex: 1 1 100%; }
  .tr-fact { border-right: 0; border-bottom: 1px solid var(--hair); }
}

[data-theme="redtheme-dark"] .tr-input,
[data-theme="redtheme-dark"] .tr-carrier,
[data-theme="redtheme-dark"] .tr-panel { background: #0a0a0a; }
