/* ==========================================================
   Umbrai — editorial design system
   ----------------------------------------------------------
   Principles:
     · Restraint. Gold is used once per screen, as a mark.
     · Hairlines instead of borders. No shadows. No gradients.
     · Playfair Display for display, Inter for UI.
     · Generous negative space. Let the content breathe.
   ========================================================== */

:root {
  --bg:           #0c0c0c;
  --surface:      #111111;
  --surface-2:    #151515;
  --input:        #0e0e0e;

  --line:         rgba(255, 255, 255, 0.06);
  --line-hi:      rgba(255, 255, 255, 0.12);

  --ink:          #ededed;
  --ink-2:        #8a8a8a;
  --ink-3:        #5a5a5a;
  --ink-4:        #3a3a3a;

  --gold:         #c9a96e;
  --gold-hi:      #d8bb7f;
  --gold-soft:    rgba(201, 169, 110, 0.08);
  --gold-ink:     #1a1407;

  --rose:         #d97a6c;
  --rose-soft:    rgba(217, 122, 108, 0.08);

  --radius:       4px;

  --ease:         cubic-bezier(.2, .7, .2, 1);
  --t-fast:       120ms;
  --t-med:        220ms;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
a:hover { border-bottom-color: var(--line-hi); }

::selection { background: var(--gold); color: var(--gold-ink); }

/* ---------- Typography primitives ---------- */
.display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 12px;
}

/* =============================================================
   Language switch (EN · TR)
   ============================================================= */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--ink-3);
  padding: 4px 8px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.lang-switch .sep {
  color: var(--ink-4);
  user-select: none;
}

/* =============================================================
   AUTH PAGES (login, signup) — split-screen editorial
   ============================================================= */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: 100vh;
}

/* ---------- Left: form pane ---------- */
.auth-pane {
  display: flex;
  flex-direction: column;
  padding: 40px 56px 40px;
  position: relative;
}

.auth-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: auto;
  padding-bottom: 64px;
}
.auth-topline .wordmark {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.auth-topline .wordmark .rule {
  display: inline-block;
  width: 16px; height: 1px;
  background: var(--gold);
  opacity: 0.85;
  transform: translateY(-5px);
}
.auth-topline .wordmark .sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.auth-topline .edition {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  margin: auto 0;
  padding: 0;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}
.auth-eyebrow .num {
  color: var(--ink-3);
  font-feature-settings: "tnum";
}
.auth-eyebrow .dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.auth-lede {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 36px;
  max-width: 36ch;
}

.auth-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 56px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.auth-bottomline a { color: var(--ink-2); }
.auth-bottomline a:hover { color: var(--ink); border-bottom-color: var(--line-hi); }

.auth-foot {
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.auth-foot a { color: var(--ink-2); }

/* ---------- Right: brand panel ---------- */
.auth-visual {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(1200px circle at 80% 10%, rgba(201, 169, 110, 0.18), transparent 55%),
    radial-gradient(900px circle at 20% 90%, rgba(217, 122, 108, 0.10), transparent 55%),
    linear-gradient(135deg, #0f0e0c 0%, #0a0a0a 50%, #0c0b09 100%);
}
.auth-visual::before {
  /* subtle silk-like horizontal bands */
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      110deg,
      rgba(201, 169, 110, 0.018) 0px,
      rgba(201, 169, 110, 0.018) 1px,
      transparent 1px,
      transparent 3px
    );
  pointer-events: none;
  mix-blend-mode: screen;
}
.auth-visual::after {
  /* very soft grain */
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
  pointer-events: none;
}

.av-inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 56px;
}
.av-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0;
}
.av-top .corner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.av-top .corner .bullet {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: 0.75;
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.6);
}

.av-headline {
  margin: auto 0;
  max-width: 16ch;
}
.av-headline .kicker {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 500;
}
.av-headline h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--ink);
}
.av-headline h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.av-headline p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  max-width: 40ch;
}

.av-pillars {
  margin: 56px 0 0;
  display: grid;
  gap: 22px;
  max-width: 440px;
}
.av-pillar {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.av-pillar:last-child { border-bottom: 1px solid var(--line); }
.av-pillar .n {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--gold);
  font-feature-settings: "tnum";
  letter-spacing: 0;
  line-height: 1;
  padding-top: 2px;
}
.av-pillar .t {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
}
.av-pillar .d {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

.av-foot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.av-foot .quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  max-width: 38ch;
}

/* ---------- Responsive: collapse to single column ---------- */
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-pane { padding: 32px 28px; min-height: 100vh; }
  .auth-topline { padding-bottom: 48px; }
  .auth-bottomline { padding-top: 40px; }
}
@media (max-width: 480px) {
  .auth-pane { padding: 24px 20px; }
  .auth-title { font-size: 26px; }
}

/* ---------- Form fields ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: none;
  border-bottom: 1px solid var(--line-hi);
  padding: 8px 0 10px;
  font-size: 15px;
  font-family: inherit;
  border-radius: 0;
  transition: border-color var(--t-med) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field input::placeholder { color: var(--ink-4); }
.field input[readonly] { color: var(--ink-2); }
.field .hint {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  transition: background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
  width: 100%;
}
.btn-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.btn-outline {
  color: var(--ink);
  border-color: var(--line-hi);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost {
  color: var(--ink-2);
  border-color: transparent;
  letter-spacing: 0.18em;
}
.btn-ghost:hover { color: var(--ink); }

.btn-danger {
  color: var(--rose);
  border-color: rgba(217, 122, 108, 0.25);
}
.btn-danger:hover {
  border-color: var(--rose);
  background: var(--rose-soft);
}

.btn-sm {
  height: 30px;
  padding: 0 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
}

/* ---------- Messages ---------- */
.msg {
  padding: 11px 0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  border-top: 1px solid;
  border-bottom: 1px solid;
}
.msg.err {
  color: var(--rose);
  border-color: rgba(217, 122, 108, 0.25);
}
.msg.ok {
  color: #7bc98e;
  border-color: rgba(123, 201, 142, 0.25);
}

/* =============================================================
   ADMIN  —  editorial dashboard
   ============================================================= */
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  z-index: 30;
}
.topbar .brand-lock {
  display: flex; align-items: baseline; gap: 14px;
}
.topbar .brand-lock .name {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.topbar .brand-lock .divider {
  width: 14px; height: 1px; background: var(--gold); opacity: 0.8;
}
.topbar .brand-lock .section {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.topbar .spacer { flex: 1; }

.who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding-right: 18px;
  border-right: 1px solid var(--line);
  margin-right: 6px;
}
.who .who-name { color: var(--ink); }
.who .who-role {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Shell ---------- */
.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 40px 120px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.admin-head h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 36px;
  margin: 0;
  letter-spacing: -0.01em;
}
.admin-head .sub {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 10px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 36px;
  margin: 0 0 44px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  position: relative;
  background: transparent;
  border: none;
  color: var(--ink-2);
  padding: 0 0 18px;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--ink); }
.tabs button.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--gold);
}

/* ---------- Panels (no chrome — pure content) ---------- */
.panel {
  margin-bottom: 72px;
}
.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 22px;
  margin: 0;
  letter-spacing: 0;
}
.panel-head .lead {
  font-size: 12.5px;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 6px 0 0;
  letter-spacing: 0.01em;
}
.panel-head .side {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-2);
}

/* ---------- Tables (editorial) ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table th {
  text-align: left;
  color: var(--ink-3);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table td .sub {
  display: block;
  color: var(--ink-3);
  font-size: 11.5px;
  margin-top: 3px;
}
.table td.numeric, .table th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.table td.actions { text-align: right; white-space: nowrap; }
.table td.actions .btn { margin-left: 8px; }

/* subtle role & status inline text (not pills) */
.tag {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tag.gold { color: var(--gold); }
.tag.mute { color: var(--ink-3); }
.tag.good { color: #7bc98e; }
.tag.dim  { color: var(--ink-3); }

/* bare select used inline in tables */
select.bare {
  background: transparent;
  color: var(--ink);
  border: none;
  border-bottom: 1px dotted var(--line-hi);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 2px 18px 2px 0;
  cursor: pointer;
  border-radius: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(-45deg, transparent 50%, var(--ink-3) 50%);
  background-position: calc(100% - 6px) 50%, calc(100% - 2px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
select.bare:focus { outline: none; border-bottom-color: var(--gold); }

/* ---------- Invite composer ---------- */
.invite-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 0;
}

.invite-link {
  margin-top: 26px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
  color: var(--gold);
  letter-spacing: 0;
}

/* Inline inputs inside tables (pricing editor) */
.bare-input {
  background: transparent;
  color: var(--ink);
  border: none;
  border-bottom: 1px dotted var(--line-hi);
  padding: 4px 0;
  font: inherit;
  font-size: 12.5px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s;
}
.bare-input:focus { border-bottom-color: var(--gold); }
.bare-input.num { font-variant-numeric: tabular-nums; }

/* Revenue stat grid */
.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.rev-stat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rev-stat:nth-child(3n) { border-right: none; }
.rev-stat .rev-label {
  font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 10px;
}
.rev-stat .rev-value {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 28px; letter-spacing: -0.01em;
}
@media (max-width: 780px) {
  .rev-grid { grid-template-columns: 1fr 1fr; }
  .rev-stat:nth-child(3n) { border-right: 1px solid var(--line); }
  .rev-stat:nth-child(2n) { border-right: none; }
}

/* ---------- Empty states ---------- */
.empty {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =============================================================
   STUDIO top-bar  (thin, quiet)
   ============================================================= */
#gs-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 28px;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}
body.has-gs-topbar { padding-top: 52px; }

#gs-topbar .gs-mark {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: 'Playfair Display', serif; font-weight: 300;
  font-size: 15px; color: var(--ink); letter-spacing: 0.02em;
}
#gs-topbar .gs-mark .gs-rule {
  width: 10px; height: 1px; background: var(--gold); opacity: 0.75;
}
#gs-topbar .gs-mark .gs-section {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--ink-2);
}
#gs-topbar .spacer { flex: 1; }
#gs-topbar .who {
  border-right: none; padding-right: 0; margin-right: 0;
}
#gs-topbar .link-btn {
  background: transparent;
  color: var(--ink-2);
  border: none;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
#gs-topbar .link-btn:hover {
  color: var(--ink);
  border-bottom-color: var(--line-hi);
}
#gs-topbar .link-btn.primary { color: var(--gold); }
#gs-topbar .link-btn.primary:hover { border-bottom-color: var(--gold); }

/* =============================================================
   MARKETING SURFACE
   Homepage, pricing, contact, legal pages. Elite editorial design.
   ============================================================= */

/* Marketing nav (top, subtle, sticky) */
.mkt-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 40px;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.mkt-nav.scrolled { border-bottom-color: var(--line); background: rgba(12, 12, 12, 0.88); }
.mkt-nav .wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mkt-nav .wordmark .glyph {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.mkt-nav .wordmark .rule {
  display: inline-block;
  width: 14px; height: 1px;
  background: var(--gold);
  opacity: 0.85;
}
.mkt-nav .wordmark .sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.mkt-nav .nav-spacer { flex: 1; }
.mkt-nav a.nav-link {
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  transition: color 0.15s;
}
.mkt-nav a.nav-link:hover { color: var(--ink); border: none; }
.mkt-nav .btn {
  height: 36px;
  padding: 0 18px;
  font-size: 10px;
}
@media (max-width: 720px) {
  .mkt-nav { padding: 14px 20px; gap: 12px; }
  .mkt-nav a.nav-link { font-size: 10px; letter-spacing: 0.2em; }
  .mkt-nav a.nav-link.hide-sm { display: none; }
}

/* Page body base for marketing pages */
body.mkt-body { padding-top: 78px; }

/* Section containers */
.mkt-section {
  padding: 120px 40px;
  position: relative;
}
.mkt-section.tight { padding: 80px 40px; }
.mkt-section.fold {  padding: 0 40px; min-height: 100vh; display: flex; align-items: center; }
.mkt-container { max-width: 1180px; margin: 0 auto; }
.mkt-narrow    { max-width: 760px;  margin: 0 auto; }
@media (max-width: 720px) {
  .mkt-section { padding: 72px 22px; }
  .mkt-section.fold { padding: 100px 22px 60px; }
}

/* Eyebrows, kickers, tiny headers */
.mkt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 500;
}
.mkt-eyebrow .no { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mkt-eyebrow .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); opacity: 0.7;
}
.mkt-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
}

/* Display type (hero, section headlines) */
.mkt-display {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0;
  font-size: clamp(48px, 9vw, 124px);
}
.mkt-display em { font-style: italic; color: var(--gold); font-weight: 300; }

.mkt-h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 56px);
}
.mkt-h2 em { font-style: italic; color: var(--gold); font-weight: 300; }

.mkt-h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}

/* Editorial body copy */
.mkt-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 24px 0 40px;
  font-weight: 300;
  letter-spacing: 0.005em;
}
.mkt-body-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 300;
  letter-spacing: 0.005em;
}

/* CTA row */
.mkt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.mkt-cta-row .btn {
  height: 48px;
  padding: 0 26px;
  font-size: 11px;
  letter-spacing: 0.24em;
}

/* Hairline divider with tiny label */
.mkt-rule {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 64px 0;
}
.mkt-rule .label {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 14px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Three-up feature grid */
.mkt-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mkt-cols-3 .col {
  padding: 48px 40px;
  border-right: 1px solid var(--line);
}
.mkt-cols-3 .col:last-child { border-right: none; }
.mkt-cols-3 .col .roman {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.mkt-cols-3 .col h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.mkt-cols-3 .col p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  font-weight: 300;
}
@media (max-width: 860px) {
  .mkt-cols-3 { grid-template-columns: 1fr; }
  .mkt-cols-3 .col { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 22px; }
  .mkt-cols-3 .col:last-child { border-bottom: none; }
}

/* Numbers row */
.mkt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mkt-stats .stat {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
}
.mkt-stats .stat:last-child { border-right: none; }
.mkt-stats .stat .num {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.mkt-stats .stat .num em { font-style: italic; color: var(--gold); font-weight: 300; }
.mkt-stats .stat .lbl {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
@media (max-width: 860px) {
  .mkt-stats { grid-template-columns: 1fr 1fr; }
  .mkt-stats .stat:nth-child(2n) { border-right: none; }
  .mkt-stats .stat { border-bottom: 1px solid var(--line); padding: 28px 22px; }
  .mkt-stats .stat .num { font-size: 40px; }
}

/* Pricing plan cards (public) */
.mkt-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.mkt-plan {
  border: 1px solid var(--line);
  padding: 36px 30px 30px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, background 0.2s;
}
.mkt-plan:hover { border-color: var(--line-hi); }
.mkt-plan.featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(201,169,110,0.03), transparent); }
.mkt-plan .eyebrow-mini {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
  min-height: 14px;
}
.mkt-plan .name {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.mkt-plan .price {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 14px 0 6px;
  font-variant-numeric: tabular-nums;
}
.mkt-plan .price .mo { font-size: 14px; color: var(--ink-2); margin-left: 6px; font-family: 'Inter', sans-serif; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
.mkt-plan .credits {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 4px 0 28px;
  letter-spacing: 0.02em;
}
.mkt-plan ul {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.mkt-plan li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
}
.mkt-plan li:last-child { border-bottom: none; }
.mkt-plan .cta { margin-top: auto; }
@media (max-width: 860px) { .mkt-plans { grid-template-columns: 1fr; } }

/* Pull-quote */
.mkt-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-align: center;
  max-width: 28ch;
  margin: 0 auto;
}
.mkt-quote::before, .mkt-quote::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin: 32px auto;
  opacity: 0.7;
}

/* Footer */
.mkt-footer {
  border-top: 1px solid var(--line);
  padding: 60px 40px 40px;
  background: var(--surface);
}
.mkt-footer .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
}
.mkt-footer .brand-col .wordmark { font-family: 'Playfair Display', serif; font-weight: 300; font-size: 24px; letter-spacing: 0.02em; display: block; margin-bottom: 12px; }
.mkt-footer .brand-col .tag { font-size: 13px; color: var(--ink-3); max-width: 34ch; line-height: 1.5; font-weight: 300; }
.mkt-footer h4 {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.mkt-footer ul { margin: 0; padding: 0; list-style: none; }
.mkt-footer ul li { margin-bottom: 10px; }
.mkt-footer ul a { color: var(--ink-2); font-size: 13px; border: none; }
.mkt-footer ul a:hover { color: var(--ink); border: none; }
.mkt-footer .bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 860px) {
  .mkt-footer .row { grid-template-columns: 1fr 1fr; }
  .mkt-footer .brand-col { grid-column: 1 / -1; }
}

/* Scroll-reveal utility */
.mkt-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.mkt-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Legal pages (long-form text) */
.legal-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 40px;
}
.legal-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 48px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.legal-wrap .sub { color: var(--ink-3); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 48px; }
.legal-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 40px 0 12px;
}
.legal-wrap p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 14px;
  font-weight: 300;
}
.legal-wrap ul { padding-left: 20px; font-size: 14px; color: var(--ink-2); line-height: 1.75; font-weight: 300; }
.legal-wrap ul li { margin-bottom: 8px; }

/* =============================================================
   Modal dialog (used by the admin gift-credits flow)
   ============================================================= */
.gs-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: gs-modal-fade 0.15s ease;
}
.gs-modal.open { display: flex; }
@keyframes gs-modal-fade { from { opacity: 0; } to { opacity: 1; } }

.gs-modal-panel {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
}
.gs-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.gs-modal-head .sub {
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 8px;
}
.gs-modal-subtitle {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0;
}
.gs-modal-subtitle strong {
  color: var(--gold);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.gs-modal-close {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}
.gs-modal-close:hover { color: var(--ink); }

.gs-modal-body {
  padding: 24px 28px 10px;
  overflow-y: auto;
}
.gs-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--line);
}

.gs-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.gs-quick-row .btn { padding: 0 16px; }

#gift-negate.active {
  background: var(--rose-soft);
  border-color: var(--rose);
  color: var(--rose);
}

@media (max-width: 560px) {
  .gs-modal-head, .gs-modal-body, .gs-modal-foot { padding-left: 20px; padding-right: 20px; }
  .gs-modal-head { padding-top: 22px; }
}

/* Credit cost badge on model cards — tells users what each model costs */
.model-credits {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  background: rgba(201, 169, 110, 0.09);
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 10px;
  color: var(--gold, #c9a96e);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

/* Credit pill in the studio top-bar */
.gs-credit-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line-hi);
  border-radius: 20px;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(201,169,110,0.04);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.gs-credit-pill:hover {
  background: rgba(201,169,110,0.10);
  border-color: var(--gold);
}
.gs-credit-pill .gs-credit-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201,169,110,0.5);
}
.gs-credit-pill .gs-credit-label {
  color: var(--ink-2);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
}
.gs-credit-pill.gs-credit-low { border-color: var(--rose); }
.gs-credit-pill.gs-credit-low .gs-credit-dot { background: var(--rose); box-shadow: 0 0 8px rgba(217,122,108,0.5); }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 780px) {
  .admin-shell { padding: 40px 20px 80px; }
  .topbar { padding: 18px 20px; gap: 12px; }
  .admin-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .admin-head h1 { font-size: 28px; }
  .tabs { gap: 22px; overflow-x: auto; white-space: nowrap; }
  .invite-row { grid-template-columns: 1fr; gap: 20px; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .table th, .table td { padding-right: 10px; font-size: 12.5px; }
  .table td.actions .btn { margin-left: 4px; }
}
