/* ============================================================
   Astra Origins — Cosmos Domain · Static Bootstrap port
   Pure CSS · no React · animations are @keyframes only.
   ============================================================ */

:root {
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;

  --bg:         oklch(0.97 0.004 240);
  --surface:    #ffffff;
  --surface-2:  oklch(0.955 0.004 240);
  --surface-3:  oklch(0.93 0.005 240);
  --ink:        oklch(0.18 0.012 250);
  --ink-2:      oklch(0.42 0.008 250);
  --ink-3:      oklch(0.62 0.006 250);
  --line:       oklch(0.91 0.005 250);
  --line-2:     oklch(0.86 0.006 250);
  --accent:     oklch(0.55 0.18 250);
  --accent-soft: color-mix(in oklch, var(--accent) 10%, white);
  --accent-line: color-mix(in oklch, var(--accent) 30%, white);

  /* Make Bootstrap components (modals, form controls, buttons) inherit the
     design font instead of Bootstrap's default system stack. */
  --bs-body-font-family: var(--font);
  --bs-btn-font-family: var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01','cv11';
  overflow: hidden;
}
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
a { text-decoration: none; color: inherit; }
input { font: inherit; color: inherit; }
kbd {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 5px; border-radius: 4px;
  background: var(--surface-3); color: var(--ink-2);
  border: 1px solid var(--line);
}

/* Focus rings */
*:focus { outline: none; }
button:focus-visible, [role="option"]:focus-visible, [role="tab"]:focus-visible,
[role="menuitem"]:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}

/* ── SHELL ──────────────────────────────────────────────── */
.t-shell {
  width: 100%; height: 100vh;
  display: grid;
  grid-template-rows: 48px 1fr; /* footer dock hidden — no reserved row */
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

/* ── HEADER ─────────────────────────────────────────────── */
.t-header {
  display: grid;
  /* Wider left column so the primary nav links get more room and the
     centered search sits a bit further right. */
  grid-template-columns: 1.55fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  background: linear-gradient(180deg, oklch(0.16 0.04 270) 0%, oklch(0.13 0.025 250) 100%);
  color: oklch(0.92 0.005 240);
  gap: 14px;
  border-bottom: 1px solid oklch(0.25 0.012 250);
  position: relative;
  /* No overflow:hidden here — it would clip the header dropdowns (e.g. the
     language switcher) that open below the bar. The animated background is
     clipped on .t-header-cosmos instead. z-index keeps those dropdowns above
     the main grid row that follows in the shell. */
  z-index: 100;
}
.t-header-cosmos { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.t-header-nursery {
  position: absolute; right: 6%; top: 50%;
  width: 320px; height: 200px; transform: translateY(-50%);
  background:
    radial-gradient(ellipse at 30% 40%, oklch(0.55 0.22 320 / 0.55), transparent 55%),
    radial-gradient(ellipse at 60% 60%, oklch(0.5 0.2 250 / 0.5), transparent 60%),
    radial-gradient(ellipse at 50% 50%, oklch(0.6 0.18 30 / 0.3), transparent 65%);
  filter: blur(22px);
  animation: nursery-pulse 9s ease-in-out infinite alternate;
}
@keyframes nursery-pulse {
  0% { transform: translateY(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateY(-50%) scale(1.08); opacity: 1; }
}
.t-header-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 6% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 14% 65%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 22%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 42% 55%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 68% 70%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 25%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 86% 55%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 40%, white 50%, transparent 51%);
  opacity: 0.5;
}
.t-header > *:not(.t-header-cosmos) { position: relative; z-index: 1; }

.t-h-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.t-logo {
  display: flex; align-items: center; gap: 9px;
  padding: 3px 5px; border-radius: 6px;
  color: inherit; text-align: left;
}
.t-logo:hover { background: oklch(0.22 0.012 250); }
.t-logo > .bi { font-size: 18px; }
.t-logo-text { line-height: 1.05; }
.t-logo-name { font-weight: 800; font-size: 12px; letter-spacing: 0.06em; color: oklch(0.95 0.005 240); }
.t-logo-sub { font-size: 9px; letter-spacing: 0.16em; font-weight: 700; color: oklch(0.55 0.02 250); margin-top: 2px; }

.t-topnav {
  display: flex; gap: 2px;
  padding-left: 12px;
  border-left: 1px solid oklch(0.25 0.012 250);
  height: 32px; align-items: center;
}
.t-tn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: oklch(0.72 0.005 240);
}
.t-tn.disabled { pointer-events: none; opacity: 0.5; cursor: not-allowed; }

.t-search {
  display: flex; align-items: center; gap: 8px;
  background: oklch(0.96 0.005 240 / 0.4);
  padding: 3px 12px; /* 0.75× the previous height (was 6px vertical) */
  border-radius: 6px;
  border: 1px solid oklch(0.95 0.005 240 / 0.45);
  color: oklch(0.97 0.005 240);
  min-width: 280px; max-width: 420px;
  justify-self: center; width: 100%;
  backdrop-filter: blur(12px);
}
.t-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font-size: 12px; color: oklch(0.99 0.005 240);
}
.t-search input::placeholder { color: oklch(0.85 0.02 250 / 0.85); }
.t-search kbd {
  background: oklch(0.95 0.005 240 / 0.3);
  border-color: oklch(0.95 0.005 240 / 0.45);
  color: oklch(0.95 0.005 240);
  font-size: 9px;
}

.t-h-r { display: flex; align-items: center; gap: 8px; justify-self: end; }

/* Guest login button — sits inline in the header icon row, aligned to the
   32px messages/notifications icon boxes (same height + radius). */
.t-invite-h-btn {
  height: 32px; padding: 0 13px; border-radius: 7px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; text-decoration: none;
}
.t-invite-h-btn:hover { background: oklch(from var(--accent) calc(l - 0.05) c h); }
.t-invite-h-btn .bi { font-size: 11px; }

.t-h-icon {
  position: relative;
  width: 32px; height: 32px; border-radius: 7px;
  display: grid; place-items: center;
  background: oklch(0.18 0.04 250 / 0.55);
  border: 1px solid oklch(from var(--accent) l c h / 0.35);
  color: oklch(0.95 0.005 240);
  backdrop-filter: blur(6px);
  transition: background 0.15s, transform 0.15s;
}
.t-h-icon:hover { background: oklch(from var(--accent) l c h / 0.5); transform: translateY(-1px); }
.t-h-icon-ct {
  position: absolute; top: -5px; right: -5px;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 8px;
  background: oklch(0.65 0.22 30);
  color: white; font-size: 8px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid oklch(0.13 0.025 250);
}
.t-h-icon-ct[hidden] { display: none; }
.t-h-icon-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.7 0.22 30);
  box-shadow: 0 0 6px oklch(0.7 0.22 30 / 0.9);
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 4px oklch(0.7 0.22 30 / 0.5); }
  50%      { box-shadow: 0 0 10px oklch(0.7 0.22 30 / 0.95); }
}

.t-mode {
  display: inline-flex; padding: 2px; border-radius: 999px;
  background: oklch(0.13 0.01 250); border: 1px solid oklch(0.25 0.012 250);
}
.t-mode button {
  padding: 4px 11px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  color: oklch(0.72 0.01 250);
}
.t-mode button.is-on { background: oklch(0.95 0.005 240); color: oklch(0.15 0.012 250); }

/* ── Language switcher (header) ─────────────────────────── */
.t-lang { position: relative; }
.t-lang > summary { list-style: none; cursor: pointer; outline: none; }
.t-lang > summary::-webkit-details-marker { display: none; }
.t-lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 999px;
  background: oklch(0.13 0.01 250); border: 1px solid oklch(0.25 0.012 250);
  color: oklch(0.82 0.01 250); transition: border-color 0.15s, background 0.15s;
}
.t-lang-btn:hover { border-color: oklch(0.42 0.02 250); background: oklch(0.16 0.012 250); }
.t-lang > summary:focus-visible .t-lang-btn { border-color: oklch(0.6 0.12 250); }
.t-lang-flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; display: block; box-shadow: 0 0 0 1px oklch(1 0 0 / 0.1); }
.t-lang-code { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; }
.t-lang-caret { font-size: 10px; color: oklch(0.6 0.01 250); transition: transform 0.18s; }
.t-lang[open] .t-lang-caret { transform: rotate(180deg); }
.t-lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  min-width: 172px; padding: 6px;
  background: oklch(0.15 0.012 250); border: 1px solid oklch(0.28 0.012 250);
  border-radius: 12px; box-shadow: 0 18px 40px oklch(0 0 0 / 0.45);
  animation: t-lang-pop 0.14s ease;
}
@keyframes t-lang-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.t-lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: oklch(0.85 0.01 250); text-decoration: none;
}
.t-lang-item:hover { background: oklch(0.21 0.014 250); color: #fff; }
.t-lang-item.is-on { color: #fff; }
.t-lang-name { flex: 1; }
.t-lang-check { color: oklch(0.72 0.13 250); font-size: 14px; }

/* ── 3-PANE GRID ────────────────────────────────────────── */
.t-grid {
  display: grid;
  grid-template-columns: 290px 310px 1fr;
  overflow: hidden;
}
.t-left, .t-mid, .t-right {
  display: flex; flex-direction: column;
  min-height: 0; min-width: 0;
  border-right: 1px solid var(--line);
}
.t-right { border-right: none; background: var(--surface); }
.t-left { background: var(--surface); }
.t-mid {
  background:
    radial-gradient(ellipse at 25% 85%, oklch(0.32 0.16 250 / 0.45), transparent 55%),
    radial-gradient(ellipse at 80% 15%, oklch(0.38 0.2 290 / 0.4), transparent 50%),
    oklch(0.11 0.025 250);
  position: relative;
  overflow: hidden;
  color: oklch(0.95 0.005 240);
}
.t-scroll { overflow: auto; padding: 14px; flex: 1; }
.t-mid .t-mh-scroll { overflow: auto; padding: 10px; flex: 1; }

/* Section header in left rail */
.t-sh {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 14px 0 8px;
  font-size: 9px; font-weight: 800; color: var(--ink-2); letter-spacing: 0.16em;
}
.t-sh:first-child { margin-top: 0; }
.t-sh .dim { color: var(--ink-3); font-weight: 600; letter-spacing: 0.1em; }

/* ── AD slot ────────────────────────────────────────────── */
.t-ad {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  position: relative; overflow: hidden;
}
.t-ad::before {
  content: "AD"; position: absolute; top: 6px; right: 8px;
  font-family: var(--mono); font-size: 8px; font-weight: 800;
  color: var(--ink-3); letter-spacing: 0.14em;
  padding: 2px 5px; border-radius: 3px;
  background: var(--surface-3);
}
.t-ad-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; color: var(--ink-3); letter-spacing: 0.16em; font-weight: 800; }
.t-ad-dot { width: 6px; height: 6px; border-radius: 50%; }
.t-ad-title { font-size: 14px; font-weight: 700; margin: 6px 0 3px; }
.t-ad-sub { font-size: 10px; color: var(--ink-2); letter-spacing: 0.06em; margin-bottom: 10px; }
.t-ad-cta {
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 4px;
}
.t-ad-cta:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

/* Sponsored ad — dynamic Home Sidebar advertisement (image/video, clickable). */
.t-ad-card { display: block; text-decoration: none; color: inherit; }
.t-ad-card.is-link { cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.t-ad-card.is-link:hover { border-color: var(--accent-line); box-shadow: 0 8px 22px oklch(0 0 0 / 0.09); transform: translateY(-1px); }
.t-ad-card.is-link:hover .t-ad-cta { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.t-ad-card:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }

.t-ad-media {
  position: relative; margin: -12px -14px 12px; line-height: 0;
  background: var(--surface-3); overflow: hidden;
}
.t-ad-media img, .t-ad-media video {
  width: 100%; aspect-ratio: 16 / 6.75; object-fit: cover; display: block; /* 0.75× the 16:9 height */
}
.t-ad-media-badge {
  position: absolute; left: 8px; bottom: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: #fff;
  background: oklch(0 0 0 / 0.55); backdrop-filter: blur(4px);
}
.t-ad-card .t-ad-title { line-height: 1.3; }

/* Sponsored ad carousel (auto-advancing 3-ad slider + dots). */
.t-ad-carousel { position: relative; }
.t-ad-viewport { overflow: hidden; border-radius: 6px; }
.t-ad-track {
  display: flex; align-items: stretch;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.t-ad-slide { flex: 0 0 100%; min-width: 100%; }
.t-ad-slide > .t-ad-card, .t-ad-slide > .t-ad { height: 100%; }
.t-ad-dots { display: flex; justify-content: center; gap: 6px; padding: 9px 0 2px; }
.t-ad-dot-btn {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--line-2); transition: background 0.2s ease, width 0.2s ease;
}
.t-ad-dot-btn:hover { background: var(--ink-3); }
.t-ad-dot-btn.is-on { width: 16px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .t-ad-track { transition: none; } }

/* Small "Create Ad" pill in the Sponsored header (aligns right in .t-sh). */
.t-ad-new {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 999px; cursor: pointer;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
  font-size: 8px; font-weight: 800; letter-spacing: 0.1em;
  text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.t-ad-new i { font-size: 9px; }
.t-ad-new:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* Empty state — no ads yet: invite the viewer to create one. */
.t-ad-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 18px 14px 16px;
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: 6px;
}
.t-ad-empty-mark {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 15px;
}
.t-ad-empty-head { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: -0.005em; }
.t-ad-empty-sub { font-size: 9.5px; line-height: 1.5; color: var(--ink-3); margin: 0; }
.t-ad-empty-btn {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  padding: 6px 12px; border-radius: 6px; cursor: pointer; border: 0;
  background: var(--ink); color: white;
  font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-decoration: none;
  transition: background 0.15s;
}
.t-ad-empty-btn i { font-size: 10px; }
.t-ad-empty-btn:hover { background: var(--accent); }

/* ── Prologue card ──────────────────────────────────────── */
.t-prologue {
  position: relative;
  background: oklch(0.1 0.02 250);
  border: 1px solid oklch(0.2 0.02 250);
  border-radius: 4px;
  overflow: hidden;
  color: oklch(0.97 0.005 240);
  height: 220px;
}
.t-pl-cosmos { position: absolute; inset: 0; pointer-events: none; }
.t-pl-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 25% 60%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 22%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 65% 75%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 30%, white 50%, transparent 51%);
  opacity: 0.65;
  animation: starfield-twinkle 4s ease-in-out infinite alternate;
}
@keyframes starfield-twinkle {
  0% { opacity: 0.55; }
  100% { opacity: 0.85; }
}
.t-pl-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 75%, oklch(from var(--accent) calc(l + 0.05) c h / 0.35), transparent 60%),
    radial-gradient(ellipse at 20% 30%, oklch(0.55 0.22 290 / 0.25), transparent 50%);
  mix-blend-mode: screen;
}
.t-rocket {
  position: absolute; bottom: -10px; right: 12px;
  z-index: 1;
  font-size: 28px;
  color: oklch(0.92 0.005 240);
  animation: rocket-launch 7s ease-in-out infinite;
}
@keyframes rocket-launch {
  0%   { transform: translateY(40px) rotate(-4deg); opacity: 0; }
  10%  { opacity: 1; }
  60%  { transform: translateY(-130px) rotate(-2deg); opacity: 1; }
  80%  { transform: translateY(-160px) rotate(0deg); opacity: 0; }
  100% { transform: translateY(40px) rotate(-4deg); opacity: 0; }
}
.t-pl-body { position: relative; z-index: 2; padding: 12px; }
.t-pl-eyebrow { font-size: 9px; color: oklch(0.7 0.04 250); letter-spacing: 0.18em; font-weight: 800; }
.t-pl-headline {
  font-size: 14px; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em;
  margin: 8px 0 6px; color: oklch(0.99 0.005 240); padding-right: 70px;
}
.t-pl-sub { font-size: 10px; color: oklch(0.75 0.01 250); margin: 0 70px 0 0; line-height: 1.5; }

/* Fixed prologue variant (no carousel) — compact, ~half height, with a
   "Full Introduction" CTA whose arrow gently nudges. */
.t-prologue-fixed { height: auto; }
.t-prologue-fixed .t-pl-body { padding: 8px 12px 9px; }
.t-prologue-fixed .t-pl-eyebrow { font-size: 8.5px; }
.t-prologue-fixed .t-pl-headline { font-size: 12.5px; margin: 4px 0 3px; padding-right: 52px; }
.t-prologue-fixed .t-pl-sub {
  margin: 0 48px 0 0; font-size: 9.5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t-pl-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 7px 12px; border-radius: 6px;
  background: oklch(0.99 0.005 240); color: oklch(0.16 0.02 250);
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.t-pl-cta:hover { background: var(--accent); color: white; }
.t-prologue-fixed .t-pl-cta { margin-top: 8px; padding: 6px 11px; }
.t-pl-cta-arrow { animation: pl-cta-nudge 1.5s ease-in-out infinite; }
.t-pl-cta:hover .t-pl-cta-arrow { animation: none; transform: translateX(3px); transition: transform 0.15s; }
@keyframes pl-cta-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.t-pl-foot {
  position: absolute; bottom: 10px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 10px;
  padding-top: 10px; border-top: 1px solid oklch(0.2 0.02 250);
}
.t-pl-dots { display: flex; gap: 4px; }
.t-pl-dot {
  width: 16px; height: 2px; border-radius: 1px;
  background: oklch(0.3 0.02 250);
  transition: background 0.3s, width 0.3s;
}
.t-pl-dot.is-on { background: white; width: 24px; }
.t-pl-dot.dark { background: oklch(0.85 0.005 240); }
.t-pl-dot.dark.is-on { background: var(--accent); }
.t-pl-counter { font-size: 9px; color: oklch(0.6 0.02 250); letter-spacing: 0.12em; margin-left: auto; }

/* ── Featured card ──────────────────────────────────────── */
.t-feat {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden; user-select: none;
}
.t-feat-arrow {
  position: absolute; top: 30px; z-index: 3;
  width: 24px; height: 24px; border-radius: 4px;
  background: oklch(0 0 0 / 0.55);
  backdrop-filter: blur(4px); color: white;
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.15s;
}
.t-feat-arrow.l { left: 6px; }
.t-feat-arrow.r { right: 6px; }
.t-feat:hover .t-feat-arrow { opacity: 1; }
.t-feat-image {
  position: relative; height: 82px; overflow: hidden; /* 0.75× the previous 110px */
  background: linear-gradient(135deg, oklch(0.22 0.08 250), oklch(0.12 0.04 240));
}
.t-feat-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 14% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 70%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 25%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 85% 60%, white 50%, transparent 51%);
  opacity: 0.85;
}
.t-feat-cd { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 4px; }
.t-cd { background: oklch(0 0 0 / 0.55); backdrop-filter: blur(4px); color: white; padding: 5px 7px; border-radius: 3px; text-align: center; min-width: 36px; }
.t-cd .n { font-size: 14px; font-weight: 700; line-height: 1; }
.t-cd .l { font-size: 8px; opacity: 0.8; letter-spacing: 0.12em; margin-top: 1px; }
.t-feat-tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 8px; color: white; background: oklch(0 0 0 / 0.6);
  padding: 3px 7px; border-radius: 3px; letter-spacing: 0.14em; font-weight: 700;
}
.t-feat-body { padding: 10px 12px; }
.t-feat-title { font-size: 13px; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-feat-sub { font-size: 9px; color: var(--ink-3); letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Stacked: pagination dots on top, a compact "SHOW MORE" button centered below. */
.t-feat-foot { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.t-feat-btn {
  background: var(--ink); color: white;
  padding: 4px 10px; border-radius: 4px;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.1em;
  display: inline-flex; align-items: center; gap: 3px;
}
.t-feat-btn i { font-size: 9px; }

/* Data-driven featured carousel (left rail) */
.t-feat-viewport { overflow: hidden; }
.t-feat-track { display: flex; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
/* min-width:0 stops a long (nowrap) subtitle from inflating the flex item past
   100%, which would leave a sliver of the previous slide after each -100% step. */
.t-feat-slide { flex: 0 0 100%; min-width: 0; display: block; color: inherit; text-decoration: none; }
.t-feat-slide:hover .t-feat-title { color: var(--accent); }
.t-feat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-feat > .t-feat-foot { margin-top: 0; padding: 8px 12px 10px; }
.t-feat-btn:hover { background: var(--accent); }

/* ── APOD widget ────────────────────────────────────────── */
.t-apod {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
}
.t-apod-image { position: relative; height: 100px; background: radial-gradient(circle at 30% 50%, oklch(0.2 0.05 280), oklch(0.07 0.02 270)); overflow: hidden; }
.t-apod-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 60%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 40%, white 50%, transparent 51%);
}
.t-apod-neb {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, oklch(0.55 0.22 290 / 0.6), transparent 50%),
    radial-gradient(ellipse at 70% 30%, oklch(0.55 0.18 200 / 0.5), transparent 50%);
  mix-blend-mode: screen;
}
.t-apod-tag { position: absolute; bottom: 6px; left: 8px; font-size: 8px; color: white; background: oklch(0 0 0 / 0.5); padding: 2px 6px; border-radius: 3px; letter-spacing: 0.1em; }
.t-apod-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; padding: 9px 12px;
  background: var(--surface); border-top: 1px solid var(--line);
  color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
}
.t-apod-btn:hover { background: var(--surface-2); }

/* ── MID pane (cosmic with stars/galaxy/supernovae) ─────── */
.t-mid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 18% 14%, white 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 32% 26%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 48% 38%, white 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 64% 52%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 24% 62%, white 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 80% 72%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 12%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 70%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 42%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 80%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 18%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 60%, white 50%, transparent 51%);
  opacity: 0.6;
  animation: starfield-twinkle 5s ease-in-out infinite alternate;
}
.t-mid::after {
  content: ""; position: absolute;
  width: 260px; height: 260px; bottom: -140px; right: -80px;
  border-radius: 50%;
  background: conic-gradient(from 30deg at 50% 50%,
    oklch(0.6 0.2 250 / 0.55) 0deg,
    oklch(0.55 0.22 300 / 0.4) 70deg,
    oklch(0.5 0.18 200 / 0.3) 150deg,
    transparent 230deg,
    oklch(0.6 0.18 250 / 0.4) 320deg,
    oklch(0.6 0.2 250 / 0.55) 360deg);
  filter: blur(14px);
  animation: spin-galaxy 100s linear infinite;
  pointer-events: none;
}
@keyframes spin-galaxy { to { transform: rotate(360deg); } }
.t-mid > *:not(.t-mh-scroll) { position: relative; z-index: 1; }
.t-mid .t-mh-scroll { position: relative; z-index: 1; }

.t-mid-head {
  padding: 14px 14px 12px;
  background: oklch(0.1 0.01 250 / 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid oklch(0.22 0.04 250);
  position: relative; overflow: hidden;
}
.t-mid-head::after {
  content: ""; position: absolute;
  width: 70px; height: 70px;
  top: -20px; right: -20px; border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%,
    oklch(0.6 0.18 250 / 0.4) 0deg,
    oklch(0.55 0.22 290 / 0.3) 90deg,
    oklch(0.5 0.2 280 / 0.2) 180deg,
    transparent 270deg,
    oklch(0.6 0.18 250 / 0.4) 360deg);
  filter: blur(6px); pointer-events: none;
  animation: spin-galaxy 60s linear infinite;
}
.t-mid-head::before {
  content: ""; position: absolute;
  width: 280px; height: 200px; top: -40px; left: -100px;
  background:
    radial-gradient(ellipse at 40% 50%, oklch(0.6 0.26 320 / 0.6), transparent 55%),
    radial-gradient(ellipse at 60% 60%, oklch(0.55 0.2 250 / 0.45), transparent 60%);
  filter: blur(28px); pointer-events: none;
}
.t-mid-eyebrow { font-size: 9px; color: oklch(0.55 0.02 250); letter-spacing: 0.18em; font-weight: 800; }
.t-mid-title { font-size: 16px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: oklch(0.99 0.005 240); margin: 4px 0 6px; }
.t-mid-count { font-size: 9px; color: oklch(0.55 0.02 250); letter-spacing: 0.14em; font-weight: 700; }

.t-mh { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; position: relative; }
.t-mh::after {
  content: ""; position: absolute;
  top: 8%; right: -10px; width: 80px; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, oklch(0.95 0.08 70) 60%, oklch(0.99 0.18 30) 100%);
  border-radius: 1px; transform-origin: right center;
  opacity: 0; animation: shooting-star 7s ease-out infinite;
  pointer-events: none;
}
.t-mh::before {
  content: ""; position: absolute;
  top: 22%; right: -60px; width: 120px; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, oklch(0.7 0.05 50 / 0.3) 30%, oklch(0.85 0.12 60 / 0.7) 65%,
    oklch(0.98 0.18 30) 95%, oklch(1 0 0) 100%);
  border-radius: 1px; transform-origin: right center;
  opacity: 0; animation: comet-cross 13s ease-out infinite;
  animation-delay: 2s; pointer-events: none;
  filter: drop-shadow(0 0 4px oklch(0.95 0.18 30 / 0.6));
}
@keyframes shooting-star {
  0%   { transform: translate(0, 0) rotate(-25deg); opacity: 0; }
  5%   { opacity: 1; }
  20%  { transform: translate(-340px, 160px) rotate(-25deg); opacity: 0; }
  100% { transform: translate(-340px, 160px) rotate(-25deg); opacity: 0; }
}
@keyframes comet-cross {
  0%   { transform: translate(0, 0) rotate(-22deg); opacity: 0; }
  8%   { opacity: 1; }
  35%  { transform: translate(-400px, 200px) rotate(-22deg); opacity: 0.95; }
  45%  { transform: translate(-450px, 230px) rotate(-22deg); opacity: 0; }
  100% { transform: translate(-450px, 230px) rotate(-22deg); opacity: 0; }
}

.t-mh-item {
  background: oklch(0.16 0.025 250 / 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid oklch(0.24 0.04 250 / 0.65);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.t-mh-item.is-active {
  background: oklch(from var(--accent) 0.22 c h / 0.5);
  border-color: var(--accent);
  box-shadow: 0 0 20px oklch(from var(--accent) l c h / 0.25);
}
.t-mh-item.is-disabled { opacity: 0.55; }
.t-mh-item.is-disabled .t-mh-row { cursor: not-allowed; }
.t-mh-row {
  position: relative;
  display: grid;
  grid-template-columns: 4px 24px 26px 1fr auto 14px;
  align-items: center; gap: 8px;
  padding: 9px 10px;
  width: 100%;
  text-align: left;
  color: oklch(0.95 0.005 240);
}
.t-mh-item:not(.is-disabled) .t-mh-row:hover { background: oklch(0.22 0.03 250 / 0.5); }
.t-mh-bar { width: 3px; height: 22px; border-radius: 2px; background: var(--accent); opacity: 0; }
.t-mh-item.is-active .t-mh-bar { opacity: 1; }
.t-mh-num { font-size: 10px; font-weight: 800; color: oklch(0.55 0.02 250); letter-spacing: 0.06em; }
.t-mh-swatch {
  width: 26px; height: 26px; border-radius: 4px;
  display: grid; place-items: center; color: white;
  font-size: 13px;
}
.t-mh-text { min-width: 0; }
.t-mh-label { font-size: 12px; font-weight: 700; line-height: 1.2; display: block; }
.t-mh-sub { font-size: 9px; color: oklch(0.6 0.02 250); margin-top: 2px; letter-spacing: 0.06em; display: block; }
.t-mh-badge {
  font-size: 8px; color: oklch(0.85 0.005 240);
  padding: 2px 6px; border-radius: 3px;
  background: oklch(0.25 0.012 250);
  letter-spacing: 0.1em; font-weight: 700;
}
.t-mh-item.is-active .t-mh-badge { background: var(--accent); color: white; }
.t-mh-chev { color: oklch(0.55 0.02 250); display: inline-flex; font-size: 11px; }

/* Supernova on items 1 & 7 */
.t-mh-item:first-child::before {
  content: ""; position: absolute;
  width: 180px; height: 180px; top: -60px; left: -80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, white 0%, oklch(0.9 0.22 30 / 0.8) 8%,
                    oklch(0.7 0.22 30 / 0.4) 20%, transparent 50%);
  filter: blur(2px); opacity: 0; pointer-events: none;
  animation: supernova 17s ease-in-out infinite;
  animation-delay: 8s;
  z-index: 0;
}
.t-mh-item:first-child::after {
  content: ""; position: absolute;
  width: 360px; height: 360px; top: -150px; left: -180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      oklch(0.95 0.18 30 / 0.5) 0%,
      oklch(0.7 0.22 30 / 0.18) 20%, transparent 55%);
  filter: blur(8px); opacity: 0; pointer-events: none;
  animation: supernova-glow 17s ease-in-out infinite;
  animation-delay: 8s; z-index: 0;
}
.t-mh-item:first-child .t-mh-row { position: relative; z-index: 1; }
.t-mh-item:nth-child(7)::before {
  content: ""; position: absolute;
  width: 130px; height: 130px; bottom: -40px; right: -50px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, white 0%, oklch(0.85 0.22 200 / 0.8) 8%,
                    oklch(0.6 0.22 250 / 0.4) 22%, transparent 50%);
  filter: blur(2px); opacity: 0; pointer-events: none;
  animation: supernova 23s ease-in-out infinite; animation-delay: 14s;
}
.t-mh-item:nth-child(7)::after {
  content: ""; position: absolute;
  width: 260px; height: 260px; bottom: -110px; right: -110px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      oklch(0.85 0.18 200 / 0.5) 0%,
      oklch(0.55 0.22 250 / 0.18) 20%, transparent 55%);
  filter: blur(8px); opacity: 0; pointer-events: none;
  animation: supernova-glow 23s ease-in-out infinite; animation-delay: 14s;
}
@keyframes supernova {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  35%      { opacity: 0; }
  50%      { opacity: 0.9; transform: scale(1); }
  72%      { opacity: 0; transform: scale(1.8); }
}
@keyframes supernova-glow {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  42%      { opacity: 0.8; transform: scale(0.8); }
  65%      { opacity: 0.25; transform: scale(1.5); }
  75%      { opacity: 0; transform: scale(2); }
}

/* ── RIGHT pane ─────────────────────────────────────────── */
.t-right-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  background: oklch(0.96 0.004 240);
  border-bottom: 1px solid var(--line);
}
.t-crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.1em; font-weight: 700;
}
.t-cr-home {
  width: 24px; height: 24px; border-radius: 4px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2);
}
.t-cr-home:hover { background: var(--surface-2); }
.t-cr-sep { color: var(--ink-3); }
.t-cr-cur { color: var(--ink); font-weight: 800; letter-spacing: 0.1em; font-size: 10px; }

/* ── Profile menu ───────────────────────────────────────── */
.t-prof { position: relative; }
/* Compact round avatar button, sits in the top header beside the language menu.
   Sized to match the header icons (32px) so it stays fully inside the bar. */
.t-prof { display: inline-flex; align-items: center; }
.t-prof-trigger {
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent;
  cursor: pointer; position: relative;
  transition: transform 0.15s ease;
}
.t-prof-trigger:hover { transform: translateY(-1px); }
.t-prof-trigger:focus-visible { outline: none; }

/* Small rotating accent ring around the avatar (stays within the 34px button). */
.t-prof-trigger::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, transparent 0deg, oklch(from var(--accent) l c h / 0.9) 90deg, transparent 200deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: prof-ring-spin 3.6s linear infinite;
  pointer-events: none;
}
@keyframes prof-ring-spin { to { transform: rotate(360deg); } }

.t-prof-pip {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.5 0.16 275), oklch(0.32 0.1 260));
  color: white;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  position: relative;
  box-shadow: 0 0 0 1px oklch(from var(--accent) l c h / 0.3);
  transition: box-shadow 0.18s ease;
}
/* Online status dot */
.t-prof-pip::after {
  content: ""; position: absolute;
  bottom: 0; right: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.7 0.18 145);
  border: 1.5px solid var(--surface);
}
/* Hover + open ("close effect") states — the ring intensifies while the menu is open. */
.t-prof-trigger:hover::before,
.t-prof-trigger:focus-visible::before { animation-duration: 1.6s; }
.t-prof-trigger:hover .t-prof-pip,
.t-prof-trigger:focus-visible .t-prof-pip {
  box-shadow: 0 0 0 1.5px oklch(from var(--accent) l c h / 0.55);
}
.t-prof-trigger[aria-expanded="true"]::before {
  background: conic-gradient(from 0deg, oklch(from var(--accent) l c h / 0.5), var(--accent), oklch(from var(--accent) l c h / 0.5));
  animation-duration: 1.2s;
}
.t-prof-trigger[aria-expanded="true"] .t-prof-pip {
  box-shadow: 0 0 0 1.5px var(--accent);
}

.t-prof-pop {
  position: absolute; top: 100%; right: 0; margin-top: 4px;
  width: 270px;
  background: var(--surface);
  color: var(--ink); /* menu lives in the dark header now — force the light-theme ink */
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.18);
  z-index: 50; overflow: hidden;
}
.t-prof-pop[hidden] { display: none; }
.t-pp-head { position: relative; text-align: center; padding-bottom: 12px; }
.t-pp-cover { height: 56px; background: linear-gradient(135deg, oklch(0.18 0.06 270), oklch(0.1 0.04 250)); }
.t-pp-pip {
  position: relative; margin: -22px auto 0;
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--ink); color: white;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  border: 3px solid var(--surface);
}
.t-pp-name { font-size: 12px; font-weight: 800; margin-top: 8px; letter-spacing: 0.06em; color: var(--ink); }
.t-pp-handle { font-size: 9px; color: var(--ink-2); font-weight: 700; margin-top: 2px; letter-spacing: 0.08em; }
.t-pp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 10px 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.t-pp-stats > div, .t-pp-stats > a { text-align: center; }
.t-pp-stats > a { text-decoration: none; color: inherit; cursor: pointer; border-radius: 8px; padding: 2px 0; }
.t-pp-stats > a:hover { background: var(--surface-2); }
.t-pp-stats > a:hover .n { color: var(--accent); }
.t-pp-stats .n { font-size: 14px; font-weight: 800; color: var(--ink); }
.t-pp-stats .l { font-size: 8px; color: var(--ink-2); letter-spacing: 0.1em; margin-top: 1px; }
.t-pp-list { list-style: none; padding: 4px; margin: 0; }
.t-pp-list .sep { height: 1px; background: var(--line); margin: 4px 6px; }
.t-pp-list button,
.t-pp-list a {
  display: grid; grid-template-columns: 16px 1fr auto;
  gap: 10px; align-items: center;
  width: 100%; padding: 7px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 800; color: var(--ink-2);
  text-align: left; letter-spacing: 0.08em;
  background: transparent; border: 0;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}
.t-pp-list button:hover,
.t-pp-list a:hover,
.t-pp-list button:focus-visible,
.t-pp-list a:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
}
.t-pp-list .ct {
  font-size: 9px; color: var(--accent); font-weight: 800;
  padding: 1px 6px; border-radius: 3px; background: var(--accent-soft);
}

/* ── Right pane content (Overview) ──────────────────────── */
.t-right .t-scroll { padding: 22px 26px 26px; background: var(--surface); }

.t-detail-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.t-detail-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9px; color: var(--ink-2);
  letter-spacing: 0.16em; font-weight: 800;
}
.t-detail-title {
  font-size: 26px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.15;
  margin: 12px 0 12px; text-wrap: pretty;
}
.t-detail-desc { font-size: 13px; color: var(--ink-2); line-height: 1.55; max-width: 66ch; margin: 0; }

/* Section banner */
.t-section-banner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 22px;
  color: oklch(0.99 0.005 240);
  border: 1px solid oklch(0.22 0.04 250);
}
.t-section-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 8% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 65%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 25%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 50% 55%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 70%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 35%, white 50%, transparent 51%);
  opacity: 0.55; pointer-events: none;
  animation: starfield-twinkle 5s ease-in-out infinite alternate;
}
.t-section-banner > * { position: relative; z-index: 2; }
.t-sb-eye { font-size: 9px; font-weight: 800; letter-spacing: 0.2em; color: oklch(0.8 0.04 250); margin-bottom: 6px; }
.t-sb-title { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 6px; text-wrap: pretty; max-width: 70%; }
.t-sb-sub { font-size: 12px; color: oklch(0.85 0.02 250); line-height: 1.55; max-width: 70%; margin: 0; }

.t-sb-domain {
  background:
    radial-gradient(ellipse at 80% 50%, oklch(from var(--accent) calc(l + 0.05) c h / 0.45), transparent 60%),
    radial-gradient(ellipse at 20% 80%, oklch(0.55 0.22 290 / 0.4), transparent 55%),
    linear-gradient(135deg, oklch(0.15 0.06 270), oklch(0.07 0.02 240));
}
.t-sb-domain::after {
  content: ""; position: absolute;
  right: 4%; top: 50%; transform: translateY(-50%);
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, oklch(0.65 0.18 250), oklch(0.18 0.06 250) 70%);
  box-shadow: inset -10px -14px 24px oklch(0 0 0 / 0.5), 0 0 40px oklch(from var(--accent) l c h / 0.4);
  z-index: 1;
}

/* Inline Prologue banner inside overview */
.t-ov-prologue {
  position: relative;
  border-radius: 4px; overflow: hidden;
  margin-bottom: 22px;
  background:
    radial-gradient(ellipse at 15% 90%, oklch(0.38 0.18 250 / 0.6), transparent 60%),
    radial-gradient(ellipse at 85% 20%, oklch(0.42 0.22 290 / 0.5), transparent 55%),
    linear-gradient(135deg, oklch(0.13 0.04 270), oklch(0.06 0.02 240));
  border: 1px solid oklch(0.22 0.03 250);
  color: oklch(0.99 0.005 240);
}
.t-ovp-cosmos { position: absolute; inset: 0; pointer-events: none; }
.t-ovp-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 5% 30%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 18% 60%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 22%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 50% 75%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 65% 30%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 65%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 92% 25%, white 50%, transparent 51%);
  opacity: 0.85;
  animation: starfield-twinkle 4s ease-in-out infinite alternate;
}
.t-ovp-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 80%, oklch(from var(--accent) calc(l + 0.1) c h / 0.4), transparent 55%);
  mix-blend-mode: screen;
}
.t-ovp-rocket {
  position: absolute; bottom: -14px; right: 24px;
  font-size: 50px;
  color: oklch(0.92 0.005 240);
  animation: rocket-launch 7s ease-in-out infinite;
  z-index: 1;
}
.t-ovp-body { position: relative; z-index: 2; padding: 18px 22px; }
.t-ovp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 9px; color: oklch(0.78 0.04 250);
  letter-spacing: 0.18em; font-weight: 800;
}
.t-ovp-mark {
  width: 20px; height: 20px; border-radius: 4px;
  background: oklch(0.22 0.04 250); color: oklch(0.95 0.005 240);
  display: grid; place-items: center;
  border: 1px solid oklch(0.32 0.04 250);
}
.t-ovp-badge {
  font-size: 8px; padding: 3px 8px; border-radius: 3px;
  background: oklch(from var(--accent) l c h / 0.4);
  color: white;
  border: 1px solid oklch(from var(--accent) l c h / 0.6);
  letter-spacing: 0.12em; font-weight: 800;
}
.t-ovp-headline {
  font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
  margin: 8px 0 6px; color: oklch(0.99 0.005 240);
  max-width: 62ch; text-wrap: pretty; padding-right: 90px;
}
.t-ovp-sub { font-size: 12px; color: oklch(0.78 0.01 250); margin: 0 90px 0 0; line-height: 1.55; }
.t-ovp-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid oklch(0.22 0.03 250);
}
.t-ovp-dots { display: flex; gap: 5px; }
.t-ovp-counter { font-size: 9px; color: oklch(0.65 0.02 250); letter-spacing: 0.14em; font-weight: 700; }
.t-ovp-eye {
  font-size: 8px; color: oklch(0.6 0.04 250);
  letter-spacing: 0.18em; font-weight: 800;
  margin-left: auto; text-align: right; max-width: 50%;
}

/* Overview sitemap grid */
.t-ov-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 22px;
}
.t-ov-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
}
.t-ov-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.t-ov-card-icon {
  width: 26px; height: 26px; border-radius: 4px;
  display: grid; place-items: center; color: white;
  font-size: 13px;
}
.t-ov-card-title { font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: -0.005em; }
.t-ov-card-meta { font-size: 8px; color: var(--ink-3); letter-spacing: 0.12em; margin-top: 2px; font-weight: 700; }

.t-ov-card-list { list-style: none; padding: 0; margin: 0; }
.t-ov-card-list li { border-bottom: 1px solid var(--line); }
.t-ov-card-list li:last-child { border-bottom: none; }
.t-ov-card-list button {
  display: grid; grid-template-columns: 10px 1fr auto 12px;
  align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px;
  text-align: left;
  font-size: 11px;
}
.t-ov-card-list button:hover { background: var(--surface-2); }
.t-ov-it-dash { width: 6px; height: 1px; background: var(--ink-3); }
.t-ov-it-label { font-weight: 700; }
.t-ov-it-meta { font-size: 8px; color: var(--ink-3); letter-spacing: 0.08em; }

/* ── DOCK ───────────────────────────────────────────────── */
.t-dock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  background: oklch(0.07 0.01 250);
  color: oklch(0.95 0.005 240);
  border-top: 1px solid oklch(0.13 0.012 250);
}
.t-dock-l { display: flex; gap: 4px; }
.t-dock-r { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.t-dk {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: oklch(0.12 0.01 250); color: oklch(0.85 0.005 240);
  font-size: 14px;
}
.t-dk.small { width: 28px; height: 28px; font-size: 12px; }
.t-dk:hover { background: oklch(0.17 0.012 250); }
.t-dock-c { font-size: 9px; color: oklch(0.65 0.005 240); letter-spacing: 0.12em; font-weight: 700; }
.t-dock-c strong { color: white; font-weight: 800; }

/* ── Invitation Hub (moved from header to the footer dock middle) ── */
.t-invite-dock { display: flex; align-items: center; gap: 14px; letter-spacing: normal; }
.t-invite-dock-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(0.82 0.02 250); white-space: nowrap;
}
.t-invite-dock-label .bi { color: var(--accent); font-size: 13px; }
.t-invite-dock-btns { display: flex; align-items: center; gap: 7px; }

.t-invite-pop { position: relative; }
.t-invite-pop > summary { list-style: none; cursor: pointer; outline: none; }
.t-invite-pop > summary::-webkit-details-marker { display: none; }
.t-invite-plat-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em;
  color: oklch(0.92 0.005 240);
  background: oklch(0.13 0.012 250); border: 1px solid oklch(0.24 0.012 250);
  padding: 7px 13px; border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.t-invite-plat-btn:hover { background: oklch(0.17 0.014 250); border-color: oklch(from var(--accent) l c h / 0.6); color: #fff; }
.t-invite-plat-btn > .bi:first-child { color: var(--accent); font-size: 12px; }
.t-invite-caret { font-size: 8px; color: oklch(0.6 0.01 250); transition: transform 0.18s; }
.t-invite-pop[open] .t-invite-plat-btn { border-color: oklch(from var(--accent) l c h / 0.7); color: #fff; background: oklch(0.17 0.014 250); }
.t-invite-pop[open] .t-invite-caret { transform: rotate(180deg); }

.t-invite-menu {
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  min-width: 196px; padding: 6px; z-index: 300; letter-spacing: normal;
  background: oklch(0.15 0.012 250); border: 1px solid oklch(0.28 0.012 250);
  border-radius: 12px; box-shadow: 0 -16px 40px oklch(0 0 0 / 0.5);
  animation: t-invite-pop-in 0.14s ease;
}
@keyframes t-invite-pop-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.t-invite-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border-radius: 8px; border: 0; background: none;
  font-family: var(--font); font-size: 12.5px; font-weight: 600; letter-spacing: normal;
  color: oklch(0.85 0.01 250); text-decoration: none; text-align: left; cursor: pointer;
}
.t-invite-menu-item:hover { background: oklch(0.21 0.014 250); color: #fff; }
.t-invite-menu-item .bi { font-size: 13px; }
.t-invite-menu-item.is-copied { color: oklch(0.75 0.16 150); }
.t-invite-menu-item.is-copied .bi { color: oklch(0.75 0.16 150); }

/* ── Invitation Hub relocated into the mid-menu head (compact, side-by-side) ──
   The three platform buttons sit in a single row. The mid-head clips overflow
   (for its glow), so each share menu opens UPWARD as a full-width popover
   anchored to the button row — staying inside the head, so it never clips. */
.t-mid-invite {
  position: relative; z-index: 2;
  margin-top: 11px; padding-top: 11px;
  border-top: 1px solid oklch(0.22 0.04 250);
}
.t-mid-invite-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(0.72 0.02 250); margin-bottom: 8px;
}
.t-mid-invite-label .bi { color: var(--accent); font-size: 11px; }

/* side-by-side row of equal buttons */
.t-mid-invite-btns { position: relative; display: flex; gap: 5px; }
.t-mid-invite-pop { position: static; flex: 1 1 0; min-width: 0; }
.t-mid-invite-btn {
  width: 100%; justify-content: center; text-align: center; white-space: nowrap;
  font-size: 9px; letter-spacing: 0.03em; padding: 5px 6px; border-radius: 6px; gap: 4px;
}
.t-mid-invite-btn > .bi:first-child { font-size: 11px; }
.t-mid-invite-btn .t-invite-caret { display: none; } /* no room in the compact row */

/* full-width share menu, opens upward above the row (inside the head → no clip) */
.t-mid-invite-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); top: auto; transform: none;
  min-width: 0; width: auto; margin: 0; padding: 5px; z-index: 5;
  box-shadow: 0 -14px 34px oklch(0 0 0 / 0.5); border-radius: 10px;
}
.t-mid-invite-menu .t-invite-menu-item { font-size: 11px; padding: 7px 9px; }
.t-mid-invite-menu .t-invite-menu-item .bi { font-size: 12px; }
.t-vol {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: oklch(0.12 0.01 250);
  font-size: 9px; color: oklch(0.85 0.005 240);
}
.t-vol-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.t-vol-bars i { width: 2px; background: oklch(0.85 0.005 240); }

/* ── RESPONSIVE — Tablet & Mobile ───────────────────────── */
@media (max-width: 1100px) {
  .t-grid { grid-template-columns: 250px 1fr; }
  .t-left { display: none; }
  .t-topnav { display: none; }
  .t-search { min-width: 220px; max-width: 320px; }
  .t-invite-header { display: none; }
}
@media (max-width: 768px) {
  .t-shell { grid-template-rows: 48px 1fr; } /* footer dock hidden */
  .t-header { grid-template-columns: 1fr auto; padding: 0 12px; gap: 8px; }
  .t-search { display: none; }
  .t-topnav { display: none; }
  .t-mode { display: none; }
  .t-logo-sub { display: none; }
  .t-grid { grid-template-columns: 1fr; overflow: auto; }
  .t-left, .t-mid { display: none; }
  .t-right .t-scroll { padding: 14px 14px 16px; }
  .t-detail-title { font-size: 20px; line-height: 1.2; }
  .t-detail-desc { font-size: 12px; }
  .t-ov-grid { grid-template-columns: 1fr; }
  .t-ovp-headline { font-size: 15px; padding-right: 0; max-width: 100%; }
  .t-ovp-sub { font-size: 11px; margin-right: 0; max-width: 100%; }
  .t-ovp-rocket { display: none; }
  .t-ovp-eye { display: none; }
  .t-sb-title { font-size: 17px; max-width: 100%; }
  .t-sb-sub { font-size: 11px; max-width: 100%; }
  .t-sb-domain::after { display: none; }
  .t-dock { padding: 0 10px; }
  .t-dock-c, .t-vol { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══════════════ HEADER ENHANCEMENTS ═══════════════ */

/* Real logo image */
.t-logo-img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 0 oklch(0.7 0.18 250 / 0));
  transition: filter 280ms ease, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.t-logo { transition: background 220ms ease, box-shadow 280ms ease; }
.t-logo:hover {
  background: oklch(0.22 0.012 250);
  box-shadow: 0 0 0 1px oklch(0.55 0.18 250 / 0.35), 0 0 24px oklch(0.55 0.18 250 / 0.18);
}
.t-logo:hover .t-logo-img {
  filter: drop-shadow(0 0 8px oklch(0.7 0.18 250 / 0.55));
  transform: translateY(-1px) scale(1.04);
}
.t-logo:hover .t-logo-name { color: oklch(0.98 0.005 240); }
.t-logo:hover .t-logo-sub  { color: oklch(0.72 0.06 250); }

/* Top-nav link: glow + slide underline + icon micro-motion */
.t-tn {
  position: relative;
  overflow: hidden;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease, letter-spacing 220ms ease;
}
.t-tn > .bi {
  font-size: 13px;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms ease, filter 280ms ease;
}
.t-tn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, oklch(0.28 0.06 250 / 0.0), oklch(0.42 0.14 250 / 0.55), oklch(0.28 0.06 305 / 0.0));
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}
.t-tn::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, oklch(0.7 0.18 250 / 0), oklch(0.75 0.18 250 / 0.9), oklch(0.7 0.18 305 / 0));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.t-tn:hover,
.t-tn:focus-visible {
  color: oklch(0.98 0.005 240);
  text-shadow: 0 0 10px oklch(0.7 0.18 250 / 0.45);
  letter-spacing: 0.055em;
  outline: none;
}
.t-tn:hover::before,
.t-tn:focus-visible::before { opacity: 1; }
.t-tn:hover::after,
.t-tn:focus-visible::after { transform: scaleX(1); }
.t-tn:hover > .bi,
.t-tn:focus-visible > .bi {
  transform: translateY(-1px) scale(1.12);
  color: oklch(0.85 0.16 250);
  filter: drop-shadow(0 0 6px oklch(0.7 0.2 250 / 0.6));
}
.t-tn:active { transform: translateY(0.5px); }

/* ═══════════════ CUSTOM SCROLLBARS ═══════════════ */

/* Force always-visible scrollbar tracks on the three main scroll areas */
.t-scroll,
.t-mid .t-mh-scroll {
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Firefox */
.t-scroll,
.t-mid .t-mh-scroll {
  scrollbar-width: thin;
  scrollbar-color: oklch(0.82 0 0 / 0.95) oklch(0.3 0 0 / 0.6);
}

/* WebKit: Chrome, Edge, Safari */
.t-scroll::-webkit-scrollbar,
.t-mid .t-mh-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.t-scroll::-webkit-scrollbar-track,
.t-mid .t-mh-scroll::-webkit-scrollbar-track {
  background: oklch(0.3 0 0 / 0.6);
  border-radius: 6px;
  border: 1px solid oklch(0.4 0 0 / 0.65);
}
.t-scroll::-webkit-scrollbar-thumb,
.t-mid .t-mh-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, oklch(0.85 0 0 / 1), oklch(0.72 0 0 / 0.95));
  border-radius: 6px;
  border: 1px solid oklch(0.78 0 0 / 0.55);
  box-shadow: inset 0 0 4px oklch(0.95 0 0 / 0.35);
  transition: background 200ms ease, box-shadow 200ms ease;
}
.t-scroll::-webkit-scrollbar-thumb:hover,
.t-mid .t-mh-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, oklch(0.93 0 0 / 1), oklch(0.82 0 0 / 1));
  box-shadow: inset 0 0 6px oklch(1 0 0 / 0.45), 0 0 10px oklch(0.9 0 0 / 0.45);
}
.t-scroll::-webkit-scrollbar-thumb:active,
.t-mid .t-mh-scroll::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, oklch(0.97 0 0 / 1), oklch(0.88 0 0 / 1));
}
.t-scroll::-webkit-scrollbar-corner,
.t-mid .t-mh-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

/* ═══════════════ VERTICAL ROCKET FLIGHT ═══════════════ */
/* Overrides the original rocket-launch — slow, smooth, bottom→top travel
   echoing the .t-mid spin-galaxy feel. */

@keyframes rocket-fly-up {
  0%   { bottom: -70px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { bottom: calc(100% + 60px); opacity: 0; }
}

.t-rocket {
  top: auto; left: auto;
  right: 14px;
  bottom: -70px;
  transform: none;
  filter: drop-shadow(0 8px 10px oklch(0.85 0.18 30 / 0.55));
  animation: rocket-fly-up 13s linear infinite;
}

.t-ovp-rocket {
  top: auto; left: auto;
  right: 32px;
  bottom: -90px;
  transform: none;
  filter: drop-shadow(0 12px 16px oklch(0.85 0.18 30 / 0.55));
  animation: rocket-fly-up 17s linear infinite;
}

/* ═══════════════ COSMIC ORB (replaces the Bootstrap rocket icon) ═══════════════ */
/* Glowing core + rotating conic-gradient halo + comet trail
   Halo uses the same spin-galaxy keyframes as .t-mid::after */

/* Hide the underlying BS icon */
.t-rocket > .bi,
.t-ovp-rocket > .bi { display: none; }

/* The orb is the parent element itself */
.t-rocket,
.t-ovp-rocket {
  isolation: isolate;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      oklch(0.99 0.04 250 / 1) 0%,
      oklch(0.85 0.18 250 / 0.95) 28%,
      oklch(0.65 0.24 305 / 0.55) 60%,
      transparent 78%);
  filter:
    drop-shadow(0 0 14px oklch(0.78 0.22 250 / 0.75))
    drop-shadow(0 0 28px oklch(0.6 0.25 305 / 0.45));
}

.t-rocket    { width: 24px; height: 24px; font-size: 0; }
.t-ovp-rocket { width: 42px; height: 42px; font-size: 0; }

/* Comet trail beneath the orb */
.t-rocket::before,
.t-ovp-rocket::before {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 55%;
  background: linear-gradient(180deg,
    oklch(0.95 0.18 250 / 0.85) 0%,
    oklch(0.72 0.22 305 / 0.55) 40%,
    oklch(0.55 0.2 250 / 0.22) 72%,
    transparent 100%);
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  filter: blur(3px);
  pointer-events: none;
}
.t-rocket::before    { height: 55px; }
.t-ovp-rocket::before { height: 95px; }

/* Rotating conic-gradient halo around the orb (mirrors .t-mid spin-galaxy) */
.t-rocket::after,
.t-ovp-rocket::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    oklch(0.85 0.22 250 / 0.55) 0deg,
    oklch(0.7 0.25 305 / 0.45) 90deg,
    transparent 170deg,
    oklch(0.72 0.22 200 / 0.4) 250deg,
    oklch(0.85 0.22 250 / 0.55) 360deg);
  filter: blur(5px);
  pointer-events: none;
  z-index: -1;
  animation: spin-galaxy 5s linear infinite;
}
.t-ovp-rocket::after {
  inset: -14px;
  animation: spin-galaxy 7s linear infinite;
}

/* ═══════════════ PROFILE — image-in-pip + guest CTA ═══════════════ */

/* When a real profile image is present, fill the pip */
.t-prof-pip img,
.t-pp-pip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Guest CTA — stacked LOGIN button + subtitle, replaces the t-prof when logged out */
.t-prof-guest {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: oklch(0.95 0.005 240);
  background: oklch(0.16 0.012 250 / 0.6);
  border: 1px solid oklch(0.3 0.06 250 / 0.5);
  transition: border-color 220ms ease, box-shadow 220ms ease, color 220ms ease, transform 220ms ease;
}
/* Gradient overlay fades in on hover — avoids the solid→gradient interpolation glitch */
.t-prof-guest::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, oklch(0.24 0.1 250 / 0.85), oklch(0.18 0.08 305 / 0.85));
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
  z-index: 0;
}
.t-prof-guest > * {
  position: relative;
  z-index: 1;
}
.t-prof-guest:hover::before,
.t-prof-guest:focus-visible::before {
  opacity: 1;
}
.t-prof-guest:hover,
.t-prof-guest:focus-visible {
  border-color: oklch(0.6 0.2 250 / 0.7);
  box-shadow: 0 0 20px oklch(0.55 0.2 250 / 0.4);
  color: oklch(0.99 0.005 240);
  transform: translateY(-1px);
  outline: none;
}
.t-prof-guest-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em;
  color: oklch(0.98 0.005 240);
}
.t-prof-guest-btn > .bi {
  font-size: 12px;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.t-prof-guest:hover .t-prof-guest-btn > .bi,
.t-prof-guest:focus-visible .t-prof-guest-btn > .bi {
  transform: translateX(4px);
}
.t-prof-guest-sub {
  font-size: 9px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: oklch(0.72 0.04 250);
  text-transform: none;
}

/* ═══════════════ PANE-SWAP LOADER ═══════════════ */
/* Cosmic loader shown in the centre of .t-right during AJAX swaps */

.t-right { position: relative; }

.t-pane-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  /* Sits above any positioned pane content (e.g. the organisation
     profile's cover/profile camera buttons and tabs) so the spinner
     covers everything cleanly during a pane swap. */
  z-index: 100;
  animation: t-pane-loader-fade 200ms ease-out;
}
.t-pane-loader[aria-hidden="true"] { display: none; }

.t-pane-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.t-pane-loader-orb {
  position: relative;
  width: 64px;
  height: 64px;
}

/* Outer ring — fast spin, blue→purple gradient */
.t-pane-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: oklch(0.55 0.2 250);
  border-right-color: oklch(0.5 0.22 305 / 0.65);
  animation: t-pane-loader-spin 0.95s linear infinite;
  box-shadow: 0 0 18px oklch(0.55 0.2 250 / 0.25);
}

/* Inner ring — counter-rotating */
.t-pane-loader-ring-2 {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: oklch(0.6 0.18 200 / 0.75);
  border-left-color: oklch(0.55 0.2 305 / 0.5);
  animation: t-pane-loader-spin 1.5s linear infinite reverse;
}

/* Glowing core */
.t-pane-loader-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      oklch(0.95 0.05 250) 0%,
      oklch(0.78 0.2 250 / 0.85) 35%,
      oklch(0.55 0.22 305 / 0.45) 70%,
      transparent 95%);
  box-shadow:
    0 0 14px oklch(0.55 0.22 250 / 0.55),
    0 0 28px oklch(0.5 0.2 305 / 0.35);
  animation: t-pane-loader-pulse 1.1s ease-in-out infinite alternate;
}

.t-pane-loader-text {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.t-pane-loader-text::after {
  content: "";
  display: inline-block;
  width: 1ch;
  animation: t-pane-loader-dots 1.4s steps(4, end) infinite;
}

@keyframes t-pane-loader-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes t-pane-loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes t-pane-loader-pulse {
  from { transform: scale(0.82); opacity: 0.78; }
  to   { transform: scale(1.08); opacity: 1; }
}
@keyframes t-pane-loader-dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

@media (prefers-reduced-motion: reduce) {
  .t-pane-loader-ring,
  .t-pane-loader-ring-2,
  .t-pane-loader-core,
  .t-pane-loader-text::after { animation: none; }
}

/* ═══════════════ FIRST-VISIT COSMIC SPLASH ═══════════════ */
/* Full-viewport intro shown for ~2s on the first page load of a session.
   Returning visitors get `html.no-splash` set BEFORE this stylesheet
   renders, so they never see a flash of it. */

html.no-splash .astra-splash { display: none !important; }

.astra-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: oklch(0.97 0.005 240);
  background:
    radial-gradient(ellipse at 28% 28%, oklch(0.22 0.12 280 / 0.65), transparent 60%),
    radial-gradient(ellipse at 78% 72%, oklch(0.2 0.14 305 / 0.55), transparent 65%),
    radial-gradient(ellipse at 50% 50%, oklch(0.12 0.08 250 / 0.4), transparent 70%),
    linear-gradient(135deg, oklch(0.08 0.04 260) 0%, oklch(0.04 0.02 240) 55%, oklch(0.03 0.01 250) 100%);
  opacity: 1;
  transition: opacity 500ms ease-out, visibility 500ms;
}
.astra-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Twinkling starfield */
.astra-splash-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 7%  12%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 18% 32%, white 50%, transparent 51%),
    radial-gradient(2px 2px   at 32% 18%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 56%, white 50%, transparent 51%),
    radial-gradient(1px 1px   at 58% 28%, white 50%, transparent 51%),
    radial-gradient(2px 2px   at 70% 78%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 12%, white 50%, transparent 51%),
    radial-gradient(1px 1px   at 92% 50%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 12% 75%, white 50%, transparent 51%),
    radial-gradient(1px 1px   at 26% 86%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 48% 88%, white 50%, transparent 51%),
    radial-gradient(1px 1px   at 64% 64%, white 50%, transparent 51%),
    radial-gradient(2px 2px   at 88% 84%, white 50%, transparent 51%);
  opacity: 0.7;
  animation: splash-twinkle 2s ease-in-out infinite alternate;
}

/* Slowly rotating nebula glow behind the orb */
.astra-splash-nebula {
  position: absolute;
  width: 130%; height: 130%;
  left: -15%; top: -15%;
  background:
    conic-gradient(from 45deg at 50% 50%,
      oklch(0.5 0.2 250 / 0.45) 0deg,
      oklch(0.5 0.22 305 / 0.5) 80deg,
      transparent 170deg,
      oklch(0.55 0.18 200 / 0.4) 250deg,
      oklch(0.5 0.2 250 / 0.45) 360deg);
  filter: blur(60px);
  opacity: 0.55;
  animation: splash-rotate 14s linear infinite;
}

.astra-splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: splash-rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Orb: rotating rings + glowing core + centered icon */
.astra-splash-orb {
  width: 130px;
  height: 130px;
  position: relative;
  margin: 0 auto 22px;
}
.astra-splash-orb-core {
  position: absolute; inset: 25%;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      oklch(0.98 0.04 250) 0%,
      oklch(0.82 0.2 250 / 0.95) 28%,
      oklch(0.58 0.24 305 / 0.55) 60%,
      transparent 95%);
  box-shadow:
    0 0 28px oklch(0.55 0.22 250 / 0.65),
    0 0 60px oklch(0.5 0.22 305 / 0.45);
  animation: splash-pulse 1.5s ease-in-out infinite alternate;
}
.astra-splash-orb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: oklch(0.7 0.2 250);
  border-right-color: oklch(0.6 0.22 305 / 0.6);
  animation: splash-spin 1.3s linear infinite;
}
.astra-splash-orb-ring-2 {
  position: absolute; inset: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: oklch(0.62 0.2 200 / 0.7);
  border-left-color: oklch(0.55 0.22 305 / 0.5);
  animation: splash-spin 2.1s linear infinite reverse;
}
.astra-splash-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: oklch(0.98 0.04 250);
  filter: drop-shadow(0 0 8px oklch(0.7 0.2 250 / 0.8));
  z-index: 2;
}

.astra-splash-text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: oklch(0.97 0.005 240);
  margin-bottom: 6px;
  text-shadow: 0 0 18px oklch(0.55 0.2 250 / 0.45);
}
.astra-splash-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.36em;
  color: oklch(0.65 0.06 250);
}
.astra-splash-sub::after {
  content: "";
  display: inline-block;
  width: 1.5ch;
  text-align: left;
  animation: splash-dots 1.4s steps(4, end) infinite;
}

@keyframes splash-spin     { to { transform: rotate(360deg); } }
@keyframes splash-rotate   { to { transform: rotate(360deg); } }
@keyframes splash-pulse {
  from { transform: scale(0.88); opacity: 0.82; }
  to   { transform: scale(1.1);  opacity: 1; }
}
@keyframes splash-twinkle {
  from { opacity: 0.45; }
  to   { opacity: 0.85; }
}
@keyframes splash-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splash-dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

@media (max-width: 480px) {
  .astra-splash-orb { width: 100px; height: 100px; }
  .astra-splash-icon { font-size: 22px; }
  .astra-splash-text { font-size: 12px; letter-spacing: 0.28em; }
  .astra-splash-sub  { font-size: 8px; letter-spacing: 0.3em; }
}

@media (prefers-reduced-motion: reduce) {
  .astra-splash-stars,
  .astra-splash-nebula,
  .astra-splash-orb-core,
  .astra-splash-orb-ring,
  .astra-splash-orb-ring-2,
  .astra-splash-content,
  .astra-splash-sub::after { animation: none !important; }
}
