/* CLANKER COCK — shared design system
   Tokens → base → components → page layouts. Player geometry lives in player/player.css. */

:root {
  --bg: #070708;
  --bg-2: #0c0c10;
  --panel: #121216;
  --panel-2: #1a1a21;
  --panel-3: #22222b;
  --ink: #f4f4f6;
  --ink-2: #c8c8d2;
  --muted: #9a9aa8;
  --muted-2: #6c6c7a;
  --yellow: #ffbf3a;
  --yellow-2: #ffd36e;
  --yellow-ink: #1a1200;
  --blue: #5ec4ff;
  --cyan: #5afafe;
  --red: #ff8b8b;
  --green: #b6f0a8;
  --line: #2a2a33;
  --line-2: #3a3a46;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow-1: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-2: 0 24px 64px rgba(0, 0, 0, .55);
  --ring: 0 0 0 3px rgba(255, 191, 58, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(1200px 520px at 15% -10%, rgba(255, 191, 58, .09), transparent 55%),
    radial-gradient(900px 420px at 95% 0%, rgba(94, 196, 255, .09), transparent 50%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--yellow-2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 12px; }
::selection { background: rgba(255, 191, 58, .35); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-s); }
.hidden { display: none !important; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000000;
  background: var(--yellow);
  color: var(--yellow-ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.kicker {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0 0 20px; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.55; }

/* ---------- buttons ---------- */
button, .btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--ink);
  background: var(--panel-2);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), filter .18s var(--ease), box-shadow .18s var(--ease);
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn-yes, .btn-primary, .acct-btn-solid {
  background: var(--yellow);
  color: var(--yellow-ink);
  border-color: var(--yellow);
  box-shadow: 0 6px 18px rgba(255, 191, 58, .22);
}
.btn-yes:hover, .btn-primary:hover, .acct-btn-solid:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-yes:active, .btn-primary:active, .acct-btn-solid:active { transform: translateY(0); filter: brightness(.97); }
.btn-no, .btn-ghost, .acct-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-no:hover, .btn-ghost:hover, .acct-btn-ghost:hover { border-color: var(--yellow); color: var(--yellow-2); background: rgba(255, 191, 58, .06); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(255, 139, 139, .35); }
.btn-danger:hover { background: rgba(255, 139, 139, .1); border-color: var(--red); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
button:disabled, .btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none !important; filter: none !important; }
.btn-yes:disabled { opacity: .35; }

.acct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-btn-solid { box-shadow: none; }
.acct-avatar {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow-ink);
  color: var(--yellow);
  font-size: 10px;
  flex-shrink: 0;
}

/* ---------- header ---------- */
header, .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 8, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(42, 42, 51, .8);
}
.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img {
  display: block;
  height: 40px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55));
  transition: transform .2s var(--ease);
}
.brand:hover img { transform: scale(1.03); }
.site-nav { display: none; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.site-nav a.is-active { color: var(--yellow); }
.meta {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
#acct-actions, .acct-actions { display: flex; align-items: center; gap: 6px; }
.header-18 {
  display: inline-block;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .04em;
  padding: 3px 6px;
  border-radius: 5px;
  line-height: 1;
}
@media (min-width: 700px) {
  .site-header__inner { padding: 12px 20px; gap: 16px; min-height: 68px; }
  .brand img { height: 52px; }
  .site-nav { display: flex; }
  .acct-btn { padding: 10px 16px; font-size: 12px; max-width: 220px; }
  .header-18 { font-size: 11px; padding: 3px 7px; }
}

/* ---------- age gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(5, 5, 7, .92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
}
.gate.hidden { display: none; }
.gate-card {
  position: relative;
  width: min(500px, 100%);
  background: linear-gradient(180deg, #16161c, var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  padding: 30px 28px 26px;
  text-align: center;
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(255, 191, 58, .08), 0 0 80px rgba(255, 191, 58, .08);
  animation: gate-in .4s var(--ease) both;
}
.gate-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 191, 58, .6), rgba(94, 196, 255, .25) 50%, rgba(255, 191, 58, .1));
  -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;
  pointer-events: none;
}
@keyframes gate-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.gate-card .logo { display: block; margin: 0 auto 14px; height: 72px; width: auto; }
.gate-card h2 { margin: 6px 0 8px; font-size: 24px; }
.gate-card p { color: var(--muted); line-height: 1.5; margin: 0 0 4px; }
.gate-badge {
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  padding: 4px 9px;
  border-radius: 999px;
}
.gate-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.gate-actions button { width: 100%; padding: 14px 18px; font-size: 15px; white-space: nowrap; }
.gate-links { margin-top: 16px; font-size: 12px; color: var(--muted-2); }
.gate-links a { color: var(--muted); text-decoration: none; margin: 0 6px; }
.gate-links a:hover { color: var(--yellow-2); }
@media (min-width: 480px) {
  .gate-actions { flex-direction: row; justify-content: center; }
  .gate-actions button { width: auto; }
}

/* ---------- hero (base; motion in hero.css) ---------- */
.hero-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}
.hero-caption .tag-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 7, 8, .6);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-caption .tag-live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}
.hero-caption strong { font-size: 14px; font-weight: 700; color: #fff; }
@media (min-width: 700px) {
  .hero-caption { left: 22px; bottom: 20px; }
  .hero-caption strong { font-size: 16px; }
}

/* ---------- gallery toolbar ---------- */
.gallery { padding-top: 14px; }
.toolbar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6px var(--gutter) 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.toolbar input[type="search"] {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 40px 12px 42px;
  font: inherit;
  font-size: 15px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.toolbar input[type="search"]::placeholder { color: var(--muted-2); }
.toolbar input[type="search"]:focus { border-color: var(--yellow); box-shadow: var(--ring); outline: none; }
.toolbar input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.search-clear:hover { background: var(--panel-2); color: var(--ink); }
.search-clear svg { width: 14px; height: 14px; }
.filter-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tags {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tags::-webkit-scrollbar { display: none; }
.tag {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.tag:hover { color: var(--ink); border-color: var(--line-2); }
.tag.active, .tag[aria-pressed="true"] { color: var(--yellow-ink); background: var(--yellow); border-color: var(--yellow); }
.count { color: var(--muted-2); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .toolbar { grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); align-items: center; padding: 8px 20px 26px; }
}

/* ---------- gallery grid + cards ---------- */
.grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0 20px 56px; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
}

/* Card = the frame around the player. A gradient ring lights up while playing. */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  animation: card-in .45s var(--ease) both;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--yellow), rgba(94, 196, 255, .9) 55%, var(--yellow));
  -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;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); transform: translateY(-2px); }
.card.is-playing { border-color: transparent; box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 191, 58, .15), 0 0 48px rgba(255, 191, 58, .18); }
.card.is-playing::before { opacity: 1; }
.card.is-playing .card-body h3 { color: var(--yellow-2); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-body { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.card-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}
.series {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(94, 196, 255, .09);
  border: 1px solid rgba(94, 196, 255, .18);
  border-radius: 999px;
  padding: 3px 9px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.pill:hover { background: rgba(94, 196, 255, .18); }
.empty {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  padding: 56px 20px;
  background: var(--panel);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-l);
}
.empty strong { display: block; color: var(--ink); margin-bottom: 6px; font-size: 16px; }
.empty button { margin-top: 14px; }

/* ---------- footer ---------- */
footer, .site-foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
}
.site-foot a { color: var(--blue); text-decoration: none; }
.site-foot a:hover { color: var(--yellow-2); text-decoration: underline; }
.site-foot p { margin: 0 0 10px; }
.foot-grid { display: grid; gap: 22px; }
.foot-brand img { height: 36px; width: auto; display: block; margin-bottom: 10px; opacity: .9; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; padding: 0; }
.legal-nav a { color: var(--ink-2); font-weight: 600; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
  footer, .site-foot { padding: 34px 20px 56px; }
}

/* ---------- forms ---------- */
.field, label.field {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 6px;
}
.field-hint { display: block; font-weight: 400; color: var(--muted-2); font-size: 12px; margin-top: 2px; }
.input, input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea, select {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: var(--ring);
  background: var(--panel-3);
}
textarea { min-height: 130px; resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a9aa8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
select option { background: var(--panel-2); color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s var(--ease);
}
.agree:hover { border-color: var(--line-2); }
.agree input { margin: 3px 0 0; flex-shrink: 0; accent-color: var(--yellow); width: 16px; height: 16px; }
.agree a { color: var(--blue); }
.msg { min-height: 1.3em; margin: 12px 0 0; font-size: 13.5px; color: var(--yellow); }
.msg-ok { color: var(--green); }
.msg-err { color: var(--red); }
.msg-busy { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.msg-busy::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 191, 58, .25);
  border-top-color: var(--yellow);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.file-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 110px;
  margin: 0 0 14px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--panel-2);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.file-drop:hover, .file-drop.is-over { border-color: var(--yellow); background: var(--panel-3); }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop strong { color: var(--ink); }
.file-drop img { max-height: 160px; width: auto; border-radius: 8px; }
.file-drop.has-file { padding: 10px; }

/* ---------- auth shell ---------- */
.auth-body { min-height: 100vh; }
.auth-shell, .auth-page {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: start center;
  padding: 36px var(--gutter) 56px;
}
.auth-logo img, .auth-mark { display: block; height: 64px; width: auto; margin: 0 auto 20px; }
.auth-card, .auth-box {
  width: min(430px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 24px 22px;
  box-shadow: var(--shadow-1);
}
.auth-card h1, .auth-box h1 { margin: 0 0 8px; font-size: 26px; }
.auth-card .kicker, .auth-box .kicker { text-align: left; }
.auth-lead { color: var(--muted); margin: 0 0 20px; line-height: 1.45; }
.auth-form { display: grid; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-msg { min-height: 1.3em; color: var(--yellow); font-size: 13px; margin-top: 10px; }
.auth-switch, .switch { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.auth-switch a, .switch a { color: var(--blue); font-weight: 600; }
.auth-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.auth-foot a { color: var(--muted); }

/* ---------- dashboard ---------- */
.dash { max-width: 880px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.dash-head { margin-bottom: 22px; }
.dash-head h1 { margin: 0 0 6px; }
.dash-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .dash-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 22px 20px;
  box-shadow: var(--shadow-1);
}
.panel h2 { font-size: 16px; margin: 0 0 14px; }
.dash-meta { display: grid; gap: 10px; margin: 0 0 18px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .dash-meta { grid-template-columns: 1fr 1fr; } }
.dash-meta div {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}
.dash-meta dt { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.dash-meta dd { margin: 4px 0 0; font-size: 13.5px; word-break: break-all; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.quick-links { display: grid; gap: 10px; }
.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.quick-link:hover { border-color: var(--yellow); color: var(--ink); transform: translateX(2px); }
.quick-link .ql-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 191, 58, .12);
  color: var(--yellow);
}
.quick-link .ql-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quick-link strong { display: block; font-size: 14px; }
.quick-link span { display: block; font-size: 12px; color: var(--muted); }

/* ---------- generate ---------- */
.gen { max-width: 1080px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.gen-head { margin-bottom: 22px; }
.gen-head h1 { margin: 0 0 6px; }
.gen-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .gen-grid { grid-template-columns: 1fr 1fr; align-items: start; } .gen-out { position: sticky; top: 84px; } }
.counter { text-align: right; font-size: 11.5px; color: var(--muted-2); margin: -10px 0 12px; font-variant-numeric: tabular-nums; }
.quote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}
.quote:empty { display: none; }
.quote strong { color: var(--ink); }
.gen-out video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 12px;
  margin-top: 14px;
  border: 1px solid var(--line);
}
.gen-out video:not([src]) { display: none; }
.out-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 200px;
  padding: 24px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13.5px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
}
.out-empty svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- legal / prose ---------- */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.legal-wrap h1 { font-size: clamp(26px, 4vw, 34px); margin: 8px 0 8px; }
.legal-wrap h2 { font-size: 18px; margin: 30px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-wrap p, .legal-wrap li { color: var(--ink-2); line-height: 1.65; font-size: 15px; }
.legal-wrap ul { padding-left: 20px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap .legal-nav { margin-top: 32px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.back:hover { color: var(--yellow-2); }
.effective { color: var(--muted-2); font-size: 13px; margin-bottom: 18px; }

/* ---------- status pages (404, confirmed) ---------- */
.status-page { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px var(--gutter) 64px; text-align: center; }
.status-card { width: min(460px, 100%); }
.status-card .logo { display: block; height: 64px; width: auto; margin: 0 auto 18px; }
.status-card h1 { margin: 0 0 10px; }
.status-card p { color: var(--muted); }
.status-card .actions { justify-content: center; }
.status-code { font-size: 64px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--yellow); margin-bottom: 6px; }

/* ---------- request form ---------- */
.request { max-width: 820px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.request-head { margin-bottom: 18px; }
.request-frame { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.request-frame iframe { display: block; width: 100%; min-height: 539px; border: 0; }

/* ---------- legacy hooks kept for compatibility ---------- */
.gate-card-wide { width: min(560px, 100%); text-align: left; }
.gate-kicker { text-align: center; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: var(--yellow); }
.gate-lead { color: var(--muted); line-height: 1.45; font-size: 14px; }
.gate-fine { text-align: center; color: var(--muted); font-size: 12px; }
.top-account { position: sticky; top: 0; z-index: 40; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.top-account-inner { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-account-brand { color: var(--yellow); text-decoration: none; font-weight: 800; letter-spacing: .08em; font-size: 13px; }
#account-nav { display: flex; align-items: center; gap: 8px; }
.acct-menu { position: relative; }
.acct-drop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  display: grid; gap: 4px; box-shadow: var(--shadow-1);
}
.acct-drop[hidden] { display: none !important; }
.acct-drop a, .acct-drop button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--ink);
  text-decoration: none; font-size: 14px; font-weight: 700; padding: 10px 12px; border-radius: 8px; cursor: pointer;
}
.acct-drop a:hover, .acct-drop button:hover { background: var(--panel-2); }
#acct-signout { color: var(--red); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
