/* DayXGuitar — base styles (placeholder pass; real visual pass is stage D1) */

:root {
  --bg: #101014;
  --surface: #1a1a21;
  --text: #f2f2f0;
  --muted: #9a9aa3;
  --accent: #ffb347; /* placeholder amber until brand pass */
}

/* Unclassed content links: brand amber, visited included — never browser
   purple. Scoped to a:not([class]) so the wordmark, nav, cards and every
   styled component keep their own colours (the global rule repainted the
   logo amber — reverted 2026-08-31). */
a:not([class]) { color: var(--accent); }
a:not([class]):visited { color: var(--accent); }
a:not([class]):hover { filter: brightness(1.12); }



* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.site-header {
  padding: 1rem 1.5rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-x { color: var(--accent); }

main { flex: 1; display: flex; flex-direction: column; }

.site-footer {
  padding: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* --- C2: journey views (strip + grid) -------------------------------- */

.framing {
  text-align: center;
  padding: 2.5rem 1.5rem 1rem;
}

.framing .day-count {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin: 0;
}

.framing .day-count span { font-size: 1.6rem; }

.framing h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.5rem auto 0.75rem;
  max-width: 46rem;
}

.framing .sub {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto;
}

/* view toggle */

.viewbar {
  display: flex;
  justify-content: center;
  padding: 0.5rem 1.5rem 1rem;
}

.view-toggle {
  display: inline-flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
}

.view-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}

.view-toggle button[aria-selected="true"] {
  background: var(--accent);
  color: #181206;
}

/* shared card look */

.day-card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  flex: 0 0 auto;
}

.day-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.day-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2rem;
}

/* --- strip mode: the scrub timeline --- */

.strip-readout {
  display: none;
  text-align: center;
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.strip-readout em {
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.mode-strip .strip-readout { display: block; }

.mode-strip .timeline {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  /* Edge padding must be 50vw minus HALF A CARD so the first/last day can
     truly centre. Card width = min(52vh, 460px) * 9/16, half = min(14.625vh,
     129.4px) — hardcoding 130px broke centring in short viewports. */
  /* Vertical padding must absorb the active card's 1.14 scale-up (7% of
     card height each way, ~32px max) plus its outline, or the strip's
     scroll box clips the ring's rounded corners top and bottom. */
  padding: calc(min(3.7vh, 33px) + 4px)
           max(1.5rem, calc(50vw - min(14.625vh, 129.4px)))
           calc(min(3.7vh, 33px) + 4px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.mode-strip .timeline::-webkit-scrollbar { display: none; }
.mode-strip .timeline.dragging { cursor: grabbing; }
.mode-strip .timeline.dragging .day-card { pointer-events: none; }

.mode-strip .day-card {
  height: min(52vh, 460px);
  transition: transform 0.12s ease;
}

.mode-strip .day-card:hover { transform: scale(1.02); }

/* scrubber bar */

.scrubber {
  display: none;
  align-items: flex-end;
  gap: 0.9rem;
  max-width: 760px;
  margin: 1rem auto 2.25rem;
  padding: 0.85rem 1.4rem 0.95rem;
  width: calc(100% - 3rem);
  /* glass dock: translucent, blurred, floating above the page */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mode-strip .scrubber { display: flex; }

/* Each end is a little column: the day number centred ABOVE its stopper
   bar (Niall's call — side-by-side alignment looked odd). The bottom
   padding lines the bar up with the track's vertical centre. */
.scrub-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  align-self: flex-end;
  padding-bottom: 5px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}

.scrub-end::after {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--muted);
}

#scrub {
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  outline-offset: 4px;
}

#scrub::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
}

#scrub::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
}

/* --- grid mode: the C1 wall --- */

.mode-grid .strip-readout,
.mode-grid .scrubber { display: none; }

.mode-grid .timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
  padding: 1rem 1.5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.mode-grid .day-card { transition: transform 0.12s ease; }
.mode-grid .day-card:hover { transform: scale(1.04); z-index: 1; }

/* --- C3: dwell-to-load day overlay ----------------------------------- */

.day-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(4px);
}

.day-overlay[hidden] { display: none; }

.day-overlay-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: min(900px, 100%);
  max-height: 100%;
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.day-overlay-media iframe {
  border: 0;
  border-radius: 10px;
  display: block;
}

/* Shorts and Lives are vertical; long-form is 16:9 */
.day-overlay-media iframe.kind-short,
.day-overlay-media iframe.kind-live {
  width: min(42vh, 320px);
  aspect-ratio: 9 / 16;
  height: auto;
}

.day-overlay-media iframe.kind-long {
  width: min(70vw, 560px);
  aspect-ratio: 16 / 9;
  height: auto;
}

.day-overlay-info { min-width: 0; max-width: 20rem; }

.day-overlay-day {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  margin: 0;
}

.day-overlay-date { color: var(--muted); margin: 0.1rem 0 0.6rem; font-size: 0.9rem; }

.day-overlay-title { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.day-overlay-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1;
}

.day-overlay-close:hover { color: var(--text); }

@media (max-width: 640px) {
  .day-overlay { padding: 0.75rem; }
  .day-overlay-card { flex-direction: column; gap: 0.75rem; text-align: center; overflow-y: auto; }
  .day-overlay-info { max-width: none; }
}

body.overlay-open { overflow: hidden; } /* page doesn't scroll behind the modal */

/* While the modal is open the scrubber moves into the overlay (JS reparents
   it) and sits directly under the box, so you can keep travelling without
   dismissing — the modal just follows. */
.day-overlay .scrubber {
  display: flex;
  margin: 1rem 0 0;
  width: min(760px, 100%);
}

/* autoplay toggle (viewbar) */

.viewbar { gap: 0.75rem; }

.autoplay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}

.autoplay-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.autoplay-toggle[aria-pressed="true"] { color: var(--text); }
.autoplay-toggle[aria-pressed="true"] .autoplay-dot { background: var(--accent); }

/* --- D0b: day details page ------------------------------------------- */

.day-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  width: 100%;
}

.day-page-cols {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* left: the video, large */

.day-page-player {
  position: relative;
  flex: 0 0 min(400px, 42vw);
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.day-page-player img { width: 100%; height: 100%; object-fit: cover; display: block; }

.day-page-player iframe { width: 100%; height: 100%; border: 0; display: block; }

.day-page-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.7);
  color: var(--accent);
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.day-page-play:hover { transform: scale(1.08); }

/* right: the details column */

.day-page-details { flex: 1; min-width: 0; }

.day-page-day {
  color: var(--accent);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  margin: 0;
}

.day-page-head h1 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.3rem 0 0;
  overflow-wrap: anywhere;
}

.day-meta {
  margin: 1.25rem 0;
  border-top: 1px solid var(--surface);
}

.day-meta-row {
  display: flex;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--surface);
}

.day-meta-row dt {
  flex: 0 0 7rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

.day-meta-row dd { margin: 0; font-weight: 600; }

/* tag pills */

.day-tags h2,
.day-page-milestones h2 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 0.4rem;
}

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }

.pill {
  --pill: var(--accent);
  background: color-mix(in srgb, var(--pill) 22%, transparent);
  color: var(--pill);
  border: 1px solid color-mix(in srgb, var(--pill) 55%, transparent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

.day-page-summary { color: var(--text); margin-top: 1.25rem; }

.day-page-milestones ul { padding-left: 1.2rem; margin: 0.25rem 0 0; }

.day-page-links { display: flex; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }

.day-page-links a { color: var(--accent); }

.day-page-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface);
}

.day-page-nav a { color: var(--text); text-decoration: none; font-weight: 600; }

.day-page-nav a:hover { color: var(--accent); }

.day-page-nav .nav-home { color: var(--muted); }

@media (max-width: 760px) {
  .day-page-cols { flex-direction: column; }
  .day-page-player { flex: none; width: min(340px, 85vw); margin: 0 auto; }
  .day-page-details { width: 100%; }
}

/* --- C5: about page + site nav/footer links --------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover { color: var(--text); }

.about {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  width: 100%;
}

.about h1 { font-size: 1.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

.about h2 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2rem;
}

.about p { color: var(--text); }

.about a { color: var(--accent); }

.about-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.about-socials svg { width: 28px; height: 28px; display: block; }

.about-socials a { color: var(--muted); }

.about-socials a:hover { color: var(--accent); }

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.1rem;
  margin: 0.5rem 0 0;
}

.footer-socials svg { width: 18px; height: 18px; display: block; }

.footer-socials a { color: var(--muted); }

.footer-socials a:hover { color: var(--accent); }

.footer-about { font-size: 0.85rem; }

/* month markers above the scrubber */

.scrub-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.scrub-mid #scrub { width: 100%; }

.scrub-months { display: flex; }

.scrub-month {
  flex-basis: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #c9c9d2;
  border-left: 1px solid rgba(154, 154, 163, 0.35);
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
}

.scrub-month:first-child { border-left: 0; }

.scrub-month.active { color: var(--accent); }

/* popout under the scrubber thumb while dragging */

.scrub-mid { position: relative; }

/* End stoppers now live inside the end labels — see .scrub-end below. */

.scrub-tip {
  position: absolute;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 70; /* above the modal, since the scrubber rides under it */
}

.scrub-tip::before { /* little arrow pointing up at the thumb */
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--surface);
  border-top: 0;
}

/* restored: blocks accidentally dropped in the D0b CSS rewrite */

/* the centred day stands slightly proud of its neighbours */
.mode-strip .day-card { transition: transform 0.18s ease; }
.mode-strip .day-card.active {
  transform: scale(1.14);
  z-index: 1;
  outline: 2px solid var(--accent); /* small orange border marks the active day */
  outline-offset: -1px; /* hugs the rounded corners instead of boxing them */
}
.mode-strip .day-card.active:hover { transform: scale(1.16); }
/* Breathing room WITHOUT layout shift: the old margin approach moved real
   layout under the scroll maths, so centredIndex() measured a neighbour
   after every programmatic centring (wrong modal day, readout off by one).
   Transforms shift pixels, not geometry: everything before the active card
   slides left, everything after slides right. */
.mode-strip .day-card:has(~ .day-card.active) { transform: translateX(-18px); }
.mode-strip .day-card.active ~ * { transform: translateX(18px); }

/* modal: link to the day's real page */
.day-overlay-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: #181206;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

.day-overlay-link:hover { filter: brightness(1.1); }

/* restored: next-day placeholder styles (also lost in the D0b CSS slice) */

/* the next day's placeholder — the journey continues */
.day-next {
  flex: 0 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  border: 2px dashed rgba(154, 154, 163, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--muted);
}

.mode-strip .day-next { height: min(52vh, 460px); }

.day-next-num { font-weight: 800; font-size: 1.6rem; opacity: 0.7; }

.day-next-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-version {
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.6;
  align-self: center;
}

/* --- Zoomable timeline: zoom controls + month/year bands --------------- */

.zoom-ctl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
}

.zoom-ctl button {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.zoom-ctl button:hover:not(:disabled) { background: rgba(255, 179, 71, 0.2); }
.zoom-ctl button:disabled { color: var(--muted); opacity: 0.4; cursor: default; }

.zoom-level {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 4.5rem;
  text-align: center;
}

/* level visibility: one card set at a time (strip mode only) */

.band-card { display: none; }

.mode-strip.zoom-month .day-card,
.mode-strip.zoom-month .day-next,
.mode-strip.zoom-year .day-card,
.mode-strip.zoom-year .day-next { display: none; }

.mode-strip.zoom-month .month-card { display: block; }
.mode-strip.zoom-year .year-card { display: block; }

/* zoomed out: readout, scrubber and month rail belong to day level */
.mode-strip.zoom-month .strip-readout,
.mode-strip.zoom-month .scrubber,
.mode-strip.zoom-year .strip-readout,
.mode-strip.zoom-year .scrubber { display: none; }

/* grid never zooms (spec: no grid changes) */
.mode-grid .band-card { display: none; }

/* band card look: same family as day cards */

.band-card {
  position: relative;
  flex: 0 0 auto;
  height: min(52vh, 460px);
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.band-card:hover { transform: scale(1.02); }

.band-card .band-simple { width: 100%; height: 100%; object-fit: cover; display: block; }

.band-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(8, 8, 10, 0.85));
  text-align: left;
  pointer-events: none;
}

.band-label strong {
  display: block;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.band-label em {
  font-style: normal;
  color: #fff;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* --- next/prev step buttons: live inside the scrubber dock ------------ */

.step-btn {
  flex: 0 0 auto;
  align-self: flex-end;
  width: 34px;
  height: 34px;
  margin-bottom: -3px; /* optically centre on the track row */
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 0 3px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.08s ease;
  user-select: none;
  touch-action: manipulation;
}

.step-btn:hover { background: rgba(255, 179, 71, 0.3); }
.step-btn:active { transform: scale(0.92); }

/* countdown line on the placeholder — only present when the drop is today */
.day-next-countdown {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; /* digits don't jitter as seconds tick */
}

.day-next-countdown:empty { display: none; } /* no layout shift when absent */

/* --- F2/F6: account pages + studio shell ------------------------------ */

.site-nav { display: flex; gap: 1.1rem; }

.account, .studio {
  max-width: 420px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

.account h1, .studio h1 { font-size: 1.6rem; margin: 0 0 1.25rem; }

.account-form p { margin: 0 0 0.9rem; }

.account-form label { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.3rem; }

.account-form input[type="email"],
.account-form input[type="password"],
.account-form input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.account-form .helptext, .account-form .errorlist { font-size: 0.8rem; color: var(--muted); }
.account-form .errorlist, .form-errors { color: #f87171; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #181206;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font: inherit;
  cursor: pointer;
}

.btn-primary:disabled { opacity: 0.4; cursor: default; }

.account-links { margin-top: 1rem; font-size: 0.9rem; }
.account-links a { color: var(--accent); }

.studio { max-width: 560px; }

.studio-kicker {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin: 0;
}

.studio-sub { color: var(--muted); }

.studio-status { list-style: none; padding: 0; margin: 1.5rem 0; }

.studio-status li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--surface);
}

.studio-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.studio-status em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 0.85rem; }

/* --- F3: member profile ------------------------------------------------ */

.profile { max-width: 520px; margin: 0 auto; padding: 3rem 1.5rem; width: 100%; }
.profile h1 { font-size: 1.6rem; margin: 0.5rem 0; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; }
.profile-bio { color: var(--muted); }

/* --- What's new ---------------------------------------------------------- */
.whats-new { max-width: 640px; margin: 0 auto; padding: 3rem 1.5rem; width: 100%; }
.whats-new h1 { font-size: 1.6rem; margin: 0.25rem 0 0.25rem; }
.release { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--surface); }
.release h2 { font-size: 1.1rem; margin: 0; }
.release-version { color: var(--accent); font-weight: 700; }
.release ul { padding-left: 1.2rem; }
.release li { margin: 0.35rem 0; }
/* --- G1: day discussion + reactions ------------------------------------ */

.discussion { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--surface); }
.discussion h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.muted { color: var(--muted); }
.reactions { display: flex; gap: 0.5rem; }
.reactions form { margin: 0; }
.pill.reaction { cursor: pointer; font: inherit; font-weight: 700; font-size: 0.9rem; }
.pill.reaction.mine { --pill: var(--accent); }
.pill.reaction b { font-weight: 800; margin-left: 0.2rem; }
.comments { list-style: none; padding: 0; margin: 1rem 0; }
.comment { padding: 0.8rem 0; border-bottom: 1px solid var(--surface); }
.comment-head { display: flex; gap: 0.6rem; flex-wrap: wrap; font-size: 0.85rem; }
.comment-head a { color: var(--accent); font-weight: 700; text-decoration: none; }
.comment-body { margin: 0.35rem 0; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 0.9rem; }
.comment-actions form { margin: 0; }
.linkish { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.8rem; cursor: pointer; padding: 0; }
.linkish.danger { color: #f87171; }
.comment-form textarea {
  width: 100%; padding: 0.7rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14);
  background: var(--surface); color: var(--text); font: inherit; margin-bottom: 0.6rem; resize: vertical;
}
.flash { padding: 0.5rem 0.8rem; border-radius: 8px; background: var(--surface); }
.flash.error { color: #f87171; }
.flash.success { color: #4ade80; }
.card-social {
  position: absolute; right: 6px; bottom: 6px; font-size: 0.7rem; font-weight: 700;
  background: rgba(8,8,10,0.65); color: #fff; padding: 2px 6px; border-radius: 999px;
}
.day-overlay-social { font-size: 0.85rem; margin: 0.4rem 0 0; }

/* --- G2: forum ------------------------------------------------------------ */
.forum { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem; width: 100%; }
.forum h1 { font-size: 1.6rem; margin: 0.25rem 0; }
.forum .studio-kicker a { color: var(--accent); text-decoration: none; }
.cat-list, .thread-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.cat, .thread-row { display: grid; gap: 0.15rem; padding: 0.9rem 0; border-bottom: 1px solid var(--surface); }
.cat a, .thread-row a { color: var(--text); text-decoration: none; }
.cat a:hover strong, .thread-row a:hover strong { color: var(--accent); }
.cat.locked { opacity: 0.7; }
.thread-row.pinned { background: rgba(255, 179, 71, 0.06); }
.text-input {
  width: 100%; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.14);
  background: var(--surface); color: var(--text); font: inherit; margin-bottom: 0.6rem;
}

/* --- G3: moderation ---------------------------------------------------- */
.mod-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.mod-actions .text-input { flex: 1 1 200px; margin: 0; }
.mod-actions .pill { cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 700; }
.mod-actions .pill.danger { --pill: #f87171; }

.day-overlay-social { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.8rem; }
.day-overlay-social .reaction:disabled { cursor: default; opacity: 0.85; }

/* --- G4: directory + profile extras -------------------------------------- */
.profile-stats { font-size: 0.9rem; }
.profile-h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-top: 1.5rem; }
.dir-search { margin: 1rem 0; }

/* --- email capture band ---------------------------------------------------- */
.capture { max-width: 560px; margin: 1rem auto 2.5rem; padding: 1.5rem; text-align: center; border-radius: 16px; background: var(--surface); }
.capture h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.capture-form { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.capture-form .text-input { flex: 1; margin: 0; }
.capture-thanks { color: var(--accent); font-weight: 700; margin: 0; }
@media (max-width: 520px) { .capture-form { flex-direction: column; } }
/* --- G5: notifications ---------------------------------------------------- */
.nav-bell { text-decoration: none; position: relative; }
.nav-bell b { position: absolute; top: -6px; right: -10px; background: var(--accent); color: #181206; font-size: 0.65rem; border-radius: 999px; padding: 0 5px; }
.comment.unread { background: rgba(255, 179, 71, 0.06); }
.comment.unread a, .comment a { color: var(--text); text-decoration: none; }

/* --- G6: community landing ------------------------------------------------ */
.landing { max-width: 960px; }
.landing-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; margin-top: 1.5rem; }
.landing .profile-h2 a { color: var(--accent); text-decoration: none; }
.cat-list.compact .cat { padding: 0.45rem 0; grid-template-columns: 1fr auto; display: grid; }
.landing-members { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.landing-members .pill { text-decoration: none; }
@media (max-width: 760px) { .landing-grid { grid-template-columns: 1fr; } }

/* --- H1: live schedule + banner ------------------------------------------- */
.live-banner { display: block; text-align: center; background: #b91c1c; color: #fff; font-weight: 700; padding: 0.5rem 1rem; text-decoration: none; }
.live-card { padding: 1.25rem; border-radius: 14px; background: var(--surface); margin: 1rem 0; }
.live-card h2 { margin: 0.4rem 0; }
.live-pill { --pill: #f87171; }
.live-room { margin-top: 1.5rem; padding: 1.5rem; border-radius: 14px; background: var(--surface); }

/* --- H2: the hangout room (mockup A, stage first) -------------------------- */
.room-page { max-width: 1280px; margin: 0 auto; padding: 1.5rem; width: 100%; }
.room-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.room-title h1 { font-size: 1.4rem; margin: 0; }
.room { display: flex; gap: 20px; margin-top: 1rem; min-height: 560px; }
.room-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stage-host { position: relative; min-height: 330px; border-radius: 14px; background: linear-gradient(160deg, #23232c, #15151b); outline: 2px solid var(--accent); outline-offset: -2px; overflow: hidden; }
.stage-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stage-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 110px; }
.stage-tile { position: relative; min-height: 110px; border-radius: 12px; background: linear-gradient(160deg, #23232c, #15151b); overflow: hidden; }
.stage-host .stage-tile { position: absolute; inset: 0; border-radius: 0; }
.stage-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(8,8,10,0.85)); display: flex; justify-content: space-between; font-size: 13px; }
.room-dock { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(14px); flex-wrap: wrap; }
.room-privacy { margin-left: auto; font-size: 12px; }
.room-chat { width: 300px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface); }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.chat-row { display: flex; gap: 8px; }
.chat-who { color: var(--accent); font-weight: 700; }
.chat-form { display: flex; gap: 6px; }
.chat-form .text-input { margin: 0; }
@media (max-width: 860px) { .room { flex-direction: column; } .room-chat { width: auto; } }

/* --- H3: requests / stage panels (host) ----------------------------------- */
.room-requests { width: 280px; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface); }
.req-list { display: flex; flex-direction: column; gap: 8px; }
.req-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.05); }
.req-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.req-info strong { font-size: 13px; }
.req-info em { font-style: normal; font-size: 12px; }
.req-row .btn-primary { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
@media (max-width: 1100px) { .room-requests { width: auto; } }

/* --- H5: Broadcast Studio ------------------------------------------------ */
.studio { max-width: 760px; }
.studio-live { max-width: 1400px; }
.studio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.25rem 0; }
.studio-card { padding: 16px; border-radius: 16px; background: var(--surface); }
.studio-status .dot.ok { background: #4ade80; }
.studio-status .dot.unknown { background: #9a9aa3; }
.dest-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.dest-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.05); margin: 0; }
.dest-row strong { flex: 1; font-size: 13px; }
.toggle { width: 34px; height: 20px; border-radius: 999px; border: 0; background: #3a3a44; position: relative; cursor: pointer; padding: 0; }
.toggle span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); transition: left 0.12s ease; }
.toggle.on { background: var(--accent); }
.toggle.on span { left: 16px; }
.golive-dock { display: flex; align-items: center; gap: 16px; padding: 28px; border-radius: 20px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(14px); margin: 1.25rem 0; }
.golive { border: 0; border-radius: 999px; background: #f87171; color: var(--bg); font: inherit; font-weight: 900; font-size: 1.25rem; letter-spacing: 0.06em; padding: 18px 34px; cursor: pointer; }
.golive:hover { filter: brightness(1.08); }
.studio-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.studio-counts { display: flex; flex-direction: column; text-align: right; font-size: 0.9rem; }
.studio-cols { display: grid; grid-template-columns: 260px 1fr 300px; gap: 20px; margin-top: 1rem; }
.studio-col { display: flex; flex-direction: column; gap: 16px; }
.studio-preview { min-height: 360px; border-radius: 14px; background: linear-gradient(160deg, #23232c, #15151b); display: flex; align-items: center; justify-content: center; }
.danger-pill { --pill: #f87171; cursor: pointer; font: inherit; font-weight: 800; }
.studio-note { margin-top: 1rem; font-size: 0.85rem; }
@media (max-width: 1100px) { .studio-cols { grid-template-columns: 1fr; } .studio-grid { grid-template-columns: 1fr; } }

/* --- H6: members chat ------------------------------------------------------ */
.chat-standalone { width: auto; min-height: 480px; max-height: 70vh; }
.chat-standalone .chat-log { min-height: 360px; }
.chat-row time { margin-left: auto; font-size: 0.75rem; }
.chat-status { font-size: 0.8rem; margin: 0; }

/* --- Pricing page (Phase I2) --- */
.pricing { max-width: 560px; margin: 0 auto; padding: 32px 16px 64px; text-align: center; }
.price-card { border: 1px solid #2a2a31; border-radius: 16px; padding: 28px 24px; margin: 24px 0; background: #17171c; }
.price-card-founding { border-color: var(--accent, #ffb347); box-shadow: 0 0 24px rgba(255, 179, 71, .12); }
.price-badge { display: inline-block; font-size: .72rem; letter-spacing: .12em; font-weight: 700; color: #101014; background: var(--accent, #ffb347); border-radius: 999px; padding: 4px 12px; }
.price-count { margin: 12px 0 4px; color: var(--muted); }
.price-count b { color: var(--accent, #ffb347); font-size: 1.15em; }
.price-amount { font-size: 3rem; font-weight: 800; margin: 8px 0; }
.price-per { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-promise { color: var(--muted); font-size: .92rem; }
.price-benefits { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.price-benefits li { padding: 6px 0 6px 28px; position: relative; }
.price-benefits li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent, #ffb347); font-weight: 700; }
.price-thanks { color: var(--accent, #ffb347); font-weight: 600; }
.pricing-faq { text-align: left; margin-top: 40px; }
.pricing-faq h2 { font-size: 1.1rem; }
.pricing-faq p { color: var(--muted); }
.pricing-faq b { color: inherit; }

/* Pricing: two tiers (Member / Band Member) */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; text-align: center; }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } }
.pricing { max-width: 760px; }
.price-grid .price-card { margin: 24px 0 0; }
.price-card-free { opacity: .92; }
.price-tier { display: inline-block; font-size: .72rem; letter-spacing: .12em; font-weight: 700; color: var(--muted); border: 1px solid #2a2a31; border-radius: 999px; padding: 4px 12px; }
.btn-ghost { display: inline-block; border: 1px solid #2a2a31; color: inherit; border-radius: 999px; padding: 10px 20px; text-decoration: none; }
.btn-ghost:hover { border-color: var(--accent, #ffb347); }

/* Submit feedback: pressed feel + busy spinner (site-wide) */
button:active, input[type="submit"]:active, .btn-primary:active, .btn-ghost:active { transform: scale(.96); }
button, input[type="submit"], .btn-primary, .btn-ghost { transition: transform .08s ease, opacity .15s ease; }
.btn-busy { opacity: .55; pointer-events: none; }
.btn-busy::after {
  content: ""; display: inline-block; vertical-align: -2px; margin-left: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: dxg-spin .7s linear infinite;
}
@keyframes dxg-spin { to { transform: rotate(360deg); } }

/* Billing visibility */
.profile-ends { color: var(--accent, #ffb347); background: rgba(255,179,71,.08); border: 1px solid rgba(255,179,71,.3); border-radius: 12px; padding: 10px 14px; font-size: .92rem; }
.profile-billing .pill { margin-right: 8px; text-decoration: none; }
.billing-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.billing-table th, .billing-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #2a2a31; }
.billing-table th { color: var(--muted); font-size: .8rem; letter-spacing: .05em; }
.billing-table a { color: var(--accent, #ffb347); }

/* Stripe attribution (brand blurple wordmark styling) */
.powered-by-stripe { font-size: .78rem; letter-spacing: .02em; }
.powered-by-stripe b { color: #635bff; font-weight: 800; letter-spacing: -.02em; }

/* --- Member shell: left sidebar "SIDE A" (K3) + mobile glass dock --- */
.member-shell { display: flex; min-height: calc(100vh - 120px); }
.member-rail { width: 224px; flex-shrink: 0; border-right: 1px solid #2a2a31; background: #121217;
  display: flex; flex-direction: column; padding: 18px 12px 14px; gap: 2px; }
.rail-me { border: 1px solid #2a2a31; border-radius: 12px; padding: 12px; background: #17171c; margin-bottom: 14px; }
.rail-hello { font-size: .76rem; color: var(--muted); margin-bottom: 8px; }
.rail-id { display: flex; gap: 10px; align-items: center; }
.rail-id b { font-size: .92rem; }
.rail-id small { font-size: .64rem; color: var(--accent); letter-spacing: .05em; }
.rail-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #e0763a); display: grid; place-items: center;
  font-weight: 800; color: #101014; }
.member-rail nav { display: flex; flex-direction: column; gap: 2px; }
.member-rail nav a { display: flex; align-items: center; gap: 10px; color: var(--muted);
  text-decoration: none; font-size: .92rem; padding: 9px 10px; border-radius: 9px; }
.member-rail nav a:hover { color: var(--text, #f5f5f7); }
.member-rail nav a.on { background: #1d1d24; color: var(--text, #f5f5f7);
  border-left: 3px solid var(--accent); padding-left: 7px; }
.ri { width: 18px; text-align: center; }
.rail-cnt { margin-left: auto; background: var(--accent); color: #101014; font-size: .66rem;
  font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.rail-grow { flex: 1; }
.rail-foot { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid #2a2a31; padding-top: 8px; }
.rail-foot a { color: var(--muted); text-decoration: none; font-size: .84rem; padding: 7px 10px; border-radius: 9px; }
.rail-foot a:hover { color: var(--text, #f5f5f7); }
.member-main { flex: 1; min-width: 0; padding: 8px 8px 40px; }
/* public bar additions */
.join-pill { background: var(--accent); color: #101014 !important; font-weight: 800;
  border-radius: 999px; padding: 8px 18px; box-shadow: 0 4px 18px rgba(255,179,71,.25); }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #e0763a); color: #101014 !important; font-weight: 800; }
@media (max-width: 760px) {
  .member-shell { flex-direction: column; min-height: 0; }
  .member-rail { width: 100%; flex-direction: row; align-items: center; overflow-x: auto;
    position: sticky; top: 0; z-index: 30; border-right: 0; border-bottom: 1px solid #2a2a31;
    background: rgba(18,18,23,.88); backdrop-filter: blur(8px); padding: 8px 10px; }
  .rail-me { display: none; }
  .member-rail nav { flex-direction: row; }
  .member-rail nav a { font-size: .8rem; padding: 7px 9px; }
  .member-rail nav a.on { border-left: 0; border-bottom: 2px solid var(--accent); border-radius: 9px 9px 0 0; padding-left: 9px; }
  .rail-foot { flex-direction: row; border-top: 0; padding-top: 0; }
}

/* Tier pills in the member rail */
.tier-pill { display: inline-block; margin-top: 3px; font-size: .64rem; font-weight: 700;
  letter-spacing: .04em; border-radius: 999px; padding: 2px 9px;
  border: 1px solid #2a2a31; color: var(--muted); }
.tier-pill.tier-band { border-color: var(--accent); color: var(--accent); }
.tier-pill.tier-founder { background: var(--accent); border-color: var(--accent); color: #101014; }

/* Buttons rendered as links: never underline, keep button colors */
a.btn-primary, a.btn-ghost, a.pill { text-decoration: none; }
a.btn-primary { color: #101014; }

/* Subtle upgrade link for free members (member rail) */
.rail-upgrade { display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding: 7px 10px; border: 1px solid rgba(255,179,71,.45); border-radius: 9px;
  color: var(--accent); text-decoration: none; font-size: .8rem; font-weight: 600; }
.rail-upgrade:hover { background: rgba(255,179,71,.08); border-color: var(--accent); }
.rail-upgrade span { opacity: .7; }

/* Member-area top bar: brand only (nav lives in the rail) */
.member-top { justify-content: flex-start; border-bottom: 1px solid #2a2a31; }

/* --- Ghost preview cards (L3): the next 3 days, blurred into mystery --- */
.ghost-day { position: relative; overflow: hidden; }
.ghost-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(var(--ghost-blur, 16px)) saturate(.5) brightness(.55);
  transform: scale(1.15); /* hide blur edge bleed */
  transition: filter .6s ease; }
.ghost-scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,16,.3), rgba(12,12,16,.7)); }
.ghost-day .day-next-num, .ghost-day .day-next-label, .ghost-day .day-next-countdown
  { position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.ghost-when { color: #c9c9d1; }

/* Ghost cards: gentle lock + unlock note (only when membership is public) */
.ghost-lock { position: absolute; top: 8px; right: 8px; z-index: 1; font-size: .85rem;
  background: rgba(12,12,16,.55); border-radius: 999px; padding: 4px 7px; cursor: pointer; }
.ghost-unlock-note { position: relative; z-index: 1; display: block; margin-top: 6px;
  font-size: .62rem; color: #c9c9d1; text-shadow: 0 2px 10px rgba(0,0,0,.85); cursor: pointer; }
.ghost-unlock-note b { color: var(--accent); font-weight: 700; }

/* L2: early-access ghost cards for Band Members */
.ghost-early { cursor: pointer; }
.ghost-early .ghost-thumb { filter: blur(2px) saturate(.9) brightness(.8); }
.ghost-early:hover .ghost-thumb, .ghost-early:focus-visible .ghost-thumb { filter: none; }
.ghost-early-badge { position: absolute; top: 8px; right: 8px; z-index: 1;
  background: var(--accent); color: #101014; font-size: .62rem; font-weight: 800;
  letter-spacing: .06em; border-radius: 999px; padding: 3px 8px; }
