/* Shared stylesheet for the Sixtytwo rent layer (landing, reserve, account). */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  /* --t1 sits between --ink and --t2: used for "secondary but legible"
     text (lifecycle row, validator inflight chip). Without it those
     uses fell back to inherited --ink and rendered too heavy. */
  --t1: #3A3A3A;
  --t2: #6B6B6B;
  --t3: #B5B5B5;
  --rule: #ECECEC;
  --rule-2: #DCDCDC;
  --blue: #2350F0;
}

html { min-height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

/* Keep the legal/contact footer at the actual bottom of short pages without
   fixing it over the interface. Long account and reservation pages still
   grow and scroll normally. */
body > main { flex: 1 0 auto; width: 100%; }
body > footer { flex: 0 0 auto; margin-top: auto; }

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

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; border: 0; background: transparent; color: inherit; }
input { font-size: 14px; }

/* Top nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  z-index: 50;
  border-bottom: 1px solid var(--rule);
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
/* Brand mark used in the nav. Loaded via mask-image so we get a true
   monochrome glyph that inherits the parent's color -- one asset, works
   on light + (eventual) dark themes without shipping a second copy.
   16x15 source viewBox; the 20px height + auto width preserves the
   serif glyph's natural proportions. */
.logo-mark {
  display: inline-block;
  width: 22px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url("/rent-static/logo-62.svg") center / contain no-repeat;
  mask: url("/rent-static/logo-62.svg") center / contain no-repeat;
  /* Pull the mark up a hair so it sits on the same optical baseline as
     the wordmark next to it -- the "2" has no descender so it reads
     slightly low otherwise. */
  vertical-align: -3px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-right a { color: var(--t2); transition: color 120ms ease; }
.nav-right a:hover { color: var(--ink); }
.reserve-btn {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 9px 16px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: background 120ms ease;
}
.reserve-btn:hover { background: #2A2A2A; }

/* Mobile hamburger + dropdown (built by nav-mobile.js). Hidden on desktop;
   the max-width:640px block below reveals the burger and hides the inline
   links, so the two never show at once. */
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rule-2);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 120ms ease;
}
.nav-burger:hover { border-color: var(--t3); }
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 120ms ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 12px 24px -16px rgba(0,0,0,0.25);
  animation: mobile-menu-in 160ms ease;
}
.mobile-menu.open { display: flex; }
@keyframes mobile-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu a {
  padding: 15px 24px;
  font-size: 15px;
  color: var(--ink);
  border-top: 1px solid var(--rule);
}
.mobile-menu a:first-child { border-top: none; }
.mobile-menu a:active { background: #F6F6F6; }
.mobile-menu .mobile-menu-cta {
  margin: 12px 20px 16px;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-weight: 500;
  border-top: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 67px);
}
.hero-left {
  /* Asymmetric padding biases the content slightly upward so the H1
     itself reads as visually centered, not the H1+lede+CTA stack
     (justify-content:center centers the whole block, which puts the
     H1 in the upper third of the centered group). */
  padding: 48px 64px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--rule);
}
.hero-right { position: relative; overflow: hidden; }

h1 {
  font-size: clamp(56px, 7.6vw, 124px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin-bottom: 48px;
  max-width: 11ch;
  font-feature-settings: "ss01", "cv11";
}
h1 .pd { color: var(--blue); font-weight: 700; }

.lede {
  font-size: 18px;
  color: var(--t2);
  line-height: 1.55;
  max-width: 36rem;
  margin-bottom: 36px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 120ms ease;
}
.primary-link:hover { gap: 14px; }

canvas { display: block; width: 100%; height: 100%; }

/* Forms */
.form-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 32px;
}
.form-page h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.form-row:last-of-type { border-bottom: 0; }
.form-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t2);
}
.text-input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 5px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 120ms ease;
}
.text-input:focus, textarea:focus { outline: 0; border-color: var(--ink); }
textarea { resize: vertical; min-height: 70px; font-family: 'Geist Mono', monospace; font-size: 12px; }

/* Reserve form: free-form input + quick-pick pills.
   The input is the primary affordance; the pills are shortcuts beneath it.
   `.unit-input-group` wraps the number input alongside its inline unit
   label (GPUs / hours) so the unit visually attaches to the input. */
.input-with-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.unit-input-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
}
.unit-input-group .number-input {
  width: 110px;
  font-family: 'Geist Mono', monospace;
  text-align: right;
  padding-right: 10px;
}
.unit-input-group .number-input::-webkit-outer-spin-button,
.unit-input-group .number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.unit-input-group .number-input { -moz-appearance: textfield; }
.input-unit {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
}
.form-limit {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  line-height: 1.55;
  color: var(--t2);
}
.form-hint {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  line-height: 1.55;
  color: var(--t2);
  background: #FAFAF8;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 12px;
  max-width: 480px;
}

/* Two-option toggle used by the Availability (On-demand / Spot) and SSH-key
   (Generate / Paste) rows on /reserve. Was a fat gray segmented control
   with a raised white "active tab" — the gray bar stretched sideways and
   visually competed with the cleaner pill toggles in the Count and Time
   rows just below. Now matches the same pill aesthetic — two outlined
   capsules side by side, active one fills with ink. Consistent with the
   rest of the form and stops the "two options trapped in a wide bar" feel. */
.ssh-mode-toggle {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 4px;
}
.ssh-mode-btn {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  padding: 5px 14px;
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  transition: all 100ms ease;
  cursor: pointer;
}
.ssh-mode-btn:hover { color: var(--ink); border-color: var(--ink); }
.ssh-mode-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.ssh-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ssh-generate-lede {
  font-size: 13px;
  line-height: 1.55;
  color: var(--t2);
  max-width: 480px;
  margin-bottom: 14px;
}
.ssh-generate-btn { align-self: flex-start; }
.ssh-generated-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: #F1FFF6;
  border: 1px solid #C4E9D2;
  border-radius: 6px;
  color: #0D5B2E;
}
.ssh-generated-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.ssh-generated-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: #0D5B2E;
  color: #F1FFF6;
}
.ssh-generated-row code {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
}
.ssh-generated-fp {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: #1a7a3a;
  letter-spacing: 0.02em;
}
.ssh-regen-btn { align-self: flex-start; margin-top: 4px; }

/* SSH key field: live validation status + collapsible help block.
   Echoes the kind of immediate, specific feedback you'd expect from a
   form that's gating a real GPU rental — not a generic "invalid input".
   The .ok and .err variants borrow the same color tokens as .status-banner
   so the visual language stays consistent. */
.ssh-key-block { display: flex; flex-direction: column; gap: 8px; }
.ssh-key-block textarea {
  min-height: 88px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  line-height: 1.45;
}
.ssh-key-status {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  min-height: 1.4em;
  color: var(--t3);
}
.ssh-key-status.ok { color: #1a7a3a; }
.ssh-key-status.err { color: #b21f1f; }
.ssh-help {
  margin-top: 4px;
}
.ssh-help summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  list-style: none;
}
.ssh-help summary::-webkit-details-marker { display: none; }
.ssh-help summary::before {
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: '';
  flex: 0 0 auto;
  transform: rotate(-45deg);
  transition: transform 120ms ease;
}
.ssh-help[open] summary::before { transform: rotate(45deg); }
.ssh-help summary:hover { color: var(--ink); }
.ssh-help-body {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #FAFAF8;
  color: var(--t2);
  font-size: 13px;
  line-height: 1.6;
}
.ssh-help-body p { margin: 0 0 10px; }
.ssh-help-body p:last-child { margin-bottom: 0; }
.ssh-help-body .code { margin: 8px 0 12px; }
.ssh-help-body code {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  background: #fff;
  padding: 1px 4px;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.ssh-help-warn { color: var(--ink) !important; }

/* Reservation-detail SSH-config collapsible: same uppercase-mono summary
 * idiom as .ssh-help but no surrounding card — it sits inside the
 * "SSH" form-row next to the bare command. */
.ssh-config-summary {
  cursor: pointer;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  list-style: none;
}
.ssh-config-summary::-webkit-details-marker { display: none; }
.ssh-config-summary::before { content: '› '; color: var(--t3); }
.ssh-config-details[open] .ssh-config-summary::before { content: '⌄ '; }
.ssh-config-summary:hover { color: var(--ink); }
.ssh-config-details pre.ssh-cmd {
  /* Keep the multi-line snippet readable but not visually heavier than
   * the single-line ssh command above it. */
  background: #FAFAF8;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
}
.ssh-help-warn b { font-weight: 600; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 5px 11px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--t2);
  background: transparent;
  transition: all 100ms ease;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  gap: 16px;
}
.estimate {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--t2);
}
.estimate b { color: var(--ink); font-weight: 500; font-size: 14px; }
.estimate .auth { color: var(--t3); font-size: 11px; margin-top: 2px; display: block; }

/* Reservation foot: distinct from the generic .estimate (which is also
   used in the dev-login pane to say "GOOGLE_CLIENT_ID is unset" etc.).
   The reservation total is the page's primary numeric, so it gets real
   display-weight typography; the breakdown + pre-auth note step down
   from there. .foot-reserve aligns the cluster of three stacked items
   to the bottom so the "Reserve →" button next to it lines up against
   the visual baseline of the price line. */
.foot-reserve { align-items: flex-end; }
.reserve-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.reserve-gate-note {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--t2);
}
.estimate-reserve { display: flex; flex-direction: column; gap: 4px; }
.estimate-reserve .estimate-total {
  font-family: 'Geist', sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
  font-feature-settings: "ss01", "cv11", "tnum";
}
.estimate-reserve .estimate-detail {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--t2);
  letter-spacing: 0.01em;
}
.estimate-reserve .estimate-auth {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  color: var(--t3);
  line-height: 1.55;
  margin-top: 6px;
  max-width: 36ch;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: background 120ms ease;
}
.btn-primary:hover { background: #2A2A2A; }
.btn-primary:disabled { background: var(--t3); cursor: not-allowed; }

.note {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #FAFAF8;
  font-size: 13px;
  color: var(--t2);
  line-height: 1.55;
}
.note b { color: var(--ink); font-weight: 600; }

.status-banner {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.status-banner.ok    { background: #F1FFF6; border-color: #C4E9D2; color: #0D5B2E; }
.status-banner.err   { background: #FFF5F4; border-color: #F0BFB9; color: #8B1A0F; }
.status-banner.info  { background: #F2F5FF; border-color: #C8D2F7; color: #1A2E7F; }
.status-banner.warn  { background: #FFFBF0; border-color: #EAD9A6; color: #6B4E0D; }

/* Availability verdict in the reserve foot: tighter than a page-level
   status-banner so it sits between the estimate and the Reserve button. */
.status-banner.avail { margin: 0 0 12px; padding: 10px 14px; font-size: 13px; }

.code {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  background: #FAFAF8;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
}

/* Pricing table */
.pricing { padding: 96px 64px; border-top: 1px solid var(--rule); }
.pricing-inner { max-width: 980px; margin: 0 auto; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td {
  padding: 18px 0;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.ptable th {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t3);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-2);
}
.ptable td:first-child, .ptable th:first-child { padding-right: 24px; }
/* Short header variants exist for narrow screens; hidden on desktop. */
.ptable th .th-short { display: none; }
.ptable td.gpu { font-weight: 600; font-size: 15px; }
/* Rows link to the reserve page; signal it on hover/focus and nudge the GPU
   name to hint the click target. */
.ptable tr.prow { cursor: pointer; transition: background 0.12s ease; }
.ptable tr.prow:hover, .ptable tr.prow:focus-visible {
  background: var(--hover, rgba(0, 0, 0, 0.03));
  outline: none;
}
.ptable tr.prow:hover td.gpu { color: var(--blue, #2563eb); }
.ptable td.price {
  font-family: 'Geist Mono', monospace;
  text-align: right;
  color: var(--ink);
}
.ptable td.avail {
  text-align: right;
  color: var(--t2);
  font-size: 13px;
}
.dot-stat {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-stat.ok { background: var(--ink); }
.dot-stat.lim { background: var(--t3); }
/* RunPod comparison column: muted so our own price stays the focus. */
.ptable td.rp-price {
  font-family: 'Geist Mono', monospace;
  text-align: right;
  color: var(--t2);
}
.ptable td.rp-price .rp-na { color: var(--t3); }
/* "X% cheaper" tag under our price; shown only when we actually undercut. */
.ptable td.price .save {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #0F7A3D;
  margin-top: 3px;
}

/* Sign-in elements */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.btn-google:hover { border-color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.btn-google svg { display: block; }

.email-login {
  width: min(100%, 440px);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--t3);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  background: var(--rule);
  flex: 1;
}
.email-login-row {
  display: flex;
  gap: 8px;
}
.email-login-row .text-input {
  min-width: 0;
  flex: 1;
}
.email-login-row .btn-primary {
  white-space: nowrap;
}
.email-login-sent {
  margin-bottom: 10px;
  font-size: 13px;
}
.email-code {
  font-family: 'Geist Mono', monospace;
  letter-spacing: .18em;
}
.email-login-reset {
  margin-top: 10px;
  padding: 0;
  color: var(--t2);
  background: none;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.email-login-status {
  min-height: 18px;
  margin-top: 8px;
  color: #a12b21;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 520px) {
  .email-login-row { flex-direction: column; }
  .email-login-row .btn-primary { width: 100%; }
}

.dev-login-block {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--t2);
  font-size: 13px;
}
.dev-login-block summary {
  cursor: pointer;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
}
.dev-login-block summary:hover { color: var(--ink); }
.dev-login-block .form-row { border-bottom: 0; }

.signed-in-strip {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

#nav-logout {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Reservation list (account page) */
.rsv-list { display: flex; flex-direction: column; gap: 14px; }
.rsv-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.rsv-card:hover { border-color: var(--rule-2); }
.rsv-card.open  { border-color: var(--rule-2); box-shadow: 0 1px 0 var(--rule); }

.rsv-card-head {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}
.rsv-card-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rsv-chevron {
  font-size: 11px;
  color: var(--t2);
  width: 14px;
  text-align: center;
}
.rsv-card-body {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
}
.rsv-card.open .rsv-card-body {
  padding: 4px 22px 22px;
  max-height: none;
  border-top: 1px solid var(--rule);
}

.rsv-card .row1 { font-weight: 600; font-size: 16px; }
.rsv-card .row2 { font-size: 13px; color: var(--t2); margin-top: 4px; }
.rsv-card .status {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--rule-2);
}
.rsv-card .status.ready,
.rsv-card .status.running { background: #F1FFF6; border-color: #C4E9D2; color: #0D5B2E; }
.rsv-card .status.settled  { background: #F2F5FF; border-color: #C8D2F7; color: #1A2E7F; }
/* REJECTED is a transient retry state, NOT a terminal failure. Used to
   share the red ``failed`` styling and scared customers into thinking
   their auto-retrying reservation was dead. Render in a neutral amber
   palette that reads as "we're working on it". */
.rsv-card .status.rejected { background: #FFF8EC; border-color: #F0DDB3; color: #7A5A12; }
.rsv-card .status.failed,
.rsv-card .status.cancelled,
.rsv-card .status.expired  { background: #FFF5F4; border-color: #F0BFB9; color: #8B1A0F; }

/* Lifecycle line inside the reservation detail body */
.lifecycle {
  font-size: 13px;
  color: var(--t1);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.lifecycle-step { white-space: nowrap; }
.lifecycle-label { color: var(--t2); margin-right: 4px; }
.lifecycle-sep { color: var(--rule-2); }
.lifecycle-failure {
  font-size: 13px;
  color: #8B1A0F;
}

/* Footer */
footer {
  padding: 36px 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--t2);
}
footer a { color: var(--ink); }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--t3);
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { border-right: 0; border-bottom: 1px solid var(--rule); padding: 56px 32px 48px; }
  .hero-right { min-height: 480px; }
  .pricing { padding: 64px 32px; }
}
@media (max-width: 640px) {
  nav { padding: 18px 20px; }
  .nav-right { gap: 14px; }
  .nav-right a:not(.reserve-btn) { display: none; }
  .nav-burger { display: inline-flex; }
  .hero-left { padding: 40px 20px 36px; }
  h1 { margin-bottom: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .pricing { padding: 56px 20px; }
  .ptable th:nth-child(2), .ptable td:nth-child(2),
  .ptable th:nth-child(3), .ptable td:nth-child(3) { display: none; }
  /* With VRAM/Interconnect hidden the long headers collide: cells have no
     horizontal padding, so "SIXTYTWO / HR" ran into "RUNPOD / HR" into
     "AVAILABILITY". Space the surviving columns and swap to short labels. */
  .ptable th:not(:first-child), .ptable td:not(:first-child) { padding-left: 14px; }
  .ptable th .th-full { display: none; }
  .ptable th .th-short { display: inline; }
  .ptable th { letter-spacing: 0.12em; }
  footer { flex-direction: column; gap: 10px; align-items: flex-start; padding: 28px 20px; }
}

/* SSH command row on account.html READY view: inline copy button + meta.
   Keeps the `code` block monospace look but adds a one-click copy that
   doesn't make the user scroll-select 80 chars of `ssh user@host -p NNNN`. */
.ssh-cmd-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.ssh-cmd {
  flex: 1;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  padding: 10px 12px;
  background: #FAFAF8;
  color: var(--ink);
  border: 0;
  white-space: nowrap;
  overflow-x: auto;
  line-height: 1.6;
}
.copy-btn {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 14px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-left: 1px solid var(--rule-2);
  transition: background 120ms ease;
}
.copy-btn:hover { background: #2A2A2A; }

/* Hover-revealed copy button overlay for <pre class="code"> install snippets.
 * copy-snippet.js wraps each <pre> in a .snippet-wrap so the button can be
 * positioned absolutely without disturbing the existing code-block layout. */
.snippet-wrap { position: relative; }
.snippet-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease, background 120ms ease;
}
.snippet-wrap:hover .snippet-copy,
.snippet-copy:focus-visible { opacity: 1; }
.snippet-copy:hover { background: #fff; }

.ssh-cmd-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--t3);
  margin-top: 8px;
  line-height: 1.55;
}
/* Validation checks block on account.html detail view */
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.check {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.check.ok { color: #1a7a3a; border-color: rgba(26, 122, 58, 0.35); background: rgba(26, 122, 58, 0.04); }
.check.fail { color: #b21f1f; border-color: rgba(178, 31, 31, 0.35); background: rgba(178, 31, 31, 0.05); }
.checks-meta {
  width: 100%;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--t3);
  margin-top: 6px;
}

/* ---------- Reserve: GPU card grid (RunPod-flavored) ----------
   Replaces the old single-row pill picker. Each card is a button-shaped
   tile grouped under a VRAM tier heading. VRAM is the headline stat,
   $/hr is right-aligned, $/sec sits underneath for the Modal-style
   "you pay for what you use" cue. */
.tier-heading {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  margin: 28px 0 10px;
}
.tier-heading:first-of-type { margin-top: 16px; }
.gpu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 1080px) {
  .gpu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gpu-card {
  position: relative;
  text-align: left;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 120ms, background 120ms, transform 80ms;
}
.gpu-card:hover { border-color: var(--ink); background: #fafafa; }
.gpu-card:active { transform: translateY(1px); }
.gpu-card.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.gpu-card.unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}
.gpu-card.unavailable:hover { background: #fff; border-color: var(--rule); }
.gpu-card .gpu-label {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.gpu-card .gpu-vram {
  font-family: 'Geist Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 6px;
  line-height: 1;
}
.gpu-card .gpu-vram .unit { font-size: 12px; color: var(--t3); margin-left: 2px; letter-spacing: 0.04em; }
.gpu-card.active .gpu-vram .unit { color: rgba(255,255,255,0.55); }
.gpu-card .gpu-interconnect {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t3);
  margin-top: 4px;
}
.gpu-card.active .gpu-interconnect { color: rgba(255,255,255,0.55); }
.gpu-card .gpu-price {
  position: absolute;
  top: 14px;
  right: 16px;
  text-align: right;
}
.gpu-card .gpu-hour {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
}
.gpu-card .gpu-sec {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--t3);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.gpu-card.active .gpu-sec { color: rgba(255,255,255,0.55); }
.gpu-card .gpu-oot {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b21f1f;
  border: 1px solid rgba(178, 31, 31, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
}
/* On phones the 2-up grid makes each card too narrow for the absolutely
 * positioned price to clear the label + VRAM text, so they overlap (the
 * "A100 SXM" / "$0.33/hr" collision). Drop the absolute positioning and
 * reflow the card as a flex column: label, price, VRAM, interconnect.
 * Price stacks $/hr over $/sec (left-aligned) so it never runs out of
 * horizontal room no matter how narrow the card gets. */
@media (max-width: 640px) {
  .gpu-card { display: flex; flex-direction: column; }
  .gpu-card .gpu-label { order: 1; }
  .gpu-card .gpu-price {
    order: 2;
    position: static;
    text-align: left;
    margin-top: 6px;
  }
  .gpu-card .gpu-vram { order: 3; }
  .gpu-card .gpu-interconnect { order: 4; }
  .gpu-card .gpu-oot { order: 5; align-self: flex-start; }
}

/* ---------- Account: live-spend ticker strip ---------- */
.spend-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin: 18px 0 24px;
  overflow: hidden;
}
.spend-cell {
  padding: 14px 18px;
  border-right: 1px solid var(--rule);
}
.spend-cell:last-child { border-right: 0; }
.spend-cell .spend-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
}
.spend-cell .spend-value {
  font-family: 'Geist Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.spend-cell .spend-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--t3);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.spend-cell .live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1a7a3a;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% {opacity:1} 50% {opacity:0.4} }

/* ---------- Reserve: original form language, corrected spacing ---------- */
.form-page.reserve-wide { max-width: 960px; }
.reserve-wide .signed-out { padding: 4px 0 24px; }
.reserve-cli-tip {
  margin: -10px 0 22px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.reserve-cli-tip summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}
.reserve-cli-tip summary::-webkit-details-marker { display: none; }
.reserve-cli-tip summary::before {
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  content: '';
  flex: 0 0 auto;
  transform: rotate(-45deg);
  transition: transform 120ms ease;
}
.reserve-cli-tip[open] summary::before { transform: rotate(45deg); }
.reserve-cli-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
}
.reserve-cli-copy code {
  padding: 4px 6px;
  background: var(--rule);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
}
.reserve-cli-copy a {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reserve-gpu-row,
.reserve-ssh-row { grid-template-columns: 120px 1fr; align-items: start; }
.reserve-gpu-row .form-label { padding-top: 8px; }
.reserve-ssh-row .form-label { padding-top: 10px; }
@media (max-width: 640px) {
  .form-page.reserve-wide { padding-inline: 20px; }
  .reserve-gpu-row,
  .reserve-ssh-row { grid-template-columns: 1fr; gap: 9px; }
  .reserve-gpu-row .form-label,
  .reserve-ssh-row .form-label { padding-top: 0; }
}

/* ---------- CLI tokens block (account page) ---------- */
.cli-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.cli-h {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cli-lede {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.6;
  margin: 10px 0;
  max-width: 640px;
}
.cli-lede code {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  background: #FAFAF8;
  padding: 1px 5px;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.cli-tokens-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0 14px;
  flex-wrap: wrap;
}
.cli-token-fresh { margin: 16px 0; }
.cli-tokens-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}
.cli-tokens-table th, .cli-tokens-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}
.cli-tokens-table th {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  font-weight: 400;
}
.cli-tokens-table td.mono {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--t2);
}
.cli-tokens-table tr:last-child td { border-bottom: 0; }
.cli-empty {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--rule);
  border-radius: 6px;
  color: var(--t3);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
}

/* ---------- Account settings ----------
   Compact state rows keep set-once controls discoverable without making them
   compete with day-to-day rental activity. Billing stays on Credits. */
.account-settings {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.account-settings > .cli-h { margin-bottom: 18px; }
.account-setting {
  border-top: 1px solid var(--rule);
}
.account-setting:last-of-type { border-bottom: 1px solid var(--rule); }
.account-setting-link > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  color: var(--ink);
  text-decoration: none;
}
.account-setting-link > a:hover .account-setting-name { color: var(--blue); }
.account-setting-link > a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.account-setting > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 10px;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  list-style: none;
  cursor: pointer;
}
.account-setting > summary::-webkit-details-marker { display: none; }
.account-setting > summary::after {
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--t3);
  border-bottom: 1px solid var(--t3);
  content: '';
  transform: rotate(45deg) translateY(-2px);
  transition: transform 120ms ease;
}
.account-setting[open] > summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}
.account-setting > summary:hover .account-setting-name { color: var(--blue); }
.account-setting-name {
  font-size: 15px;
  font-weight: 600;
  transition: color 100ms ease;
}
.account-setting-state {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.03em;
}
.account-setting-state.is-on { color: #0F7A3D; }
.account-setting-body {
  padding: 0 28px 24px 160px;
}
.account-setting-body > p {
  margin: 0 0 16px;
  color: var(--t2);
  font-size: 14px;
  line-height: 1.55;
}
.account-setting-feedback {
  min-height: 0;
  margin: -3px 0 14px;
  color: var(--t2);
  font-size: 13px;
  line-height: 1.5;
}
.account-setting-feedback:empty { display: none; }
.account-setting-feedback a {
  color: var(--blue);
  text-underline-offset: 2px;
}
.account-setting-error { color: #b21f1f; }
.account-setting-saved {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--t3);
  margin-bottom: 10px;
}
.autorefill-controls,
.tailscale-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.setting-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  cursor: pointer;
}
.setting-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.setting-switch-track {
  position: relative;
  width: 32px;
  height: 18px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: #fff;
  transition: background 120ms ease, border-color 120ms ease;
}
.setting-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--t3);
  content: '';
  transition: transform 120ms ease, background 120ms ease;
}
.setting-switch input:checked + .setting-switch-track {
  background: var(--ink);
  border-color: var(--ink);
}
.setting-switch input:checked + .setting-switch-track::after {
  background: #fff;
  transform: translateX(14px);
}
.setting-switch input:focus-visible + .setting-switch-track {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.setting-switch input:disabled + .setting-switch-track,
.setting-switch input:disabled ~ span {
  opacity: .45;
  cursor: not-allowed;
}
.autorefill-amount {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--t2);
  font-size: 14px;
}
.autorefill-money {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  border: 1px solid var(--rule-2);
  border-radius: 5px;
  font-family: 'Geist Mono', monospace;
  color: var(--t3);
}
.autorefill-money:focus-within { border-color: var(--ink); }
.autorefill-money input {
  width: 54px;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  -moz-appearance: textfield;
}
.autorefill-money input::-webkit-outer-spin-button,
.autorefill-money input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.autorefill-money input:disabled { color: var(--t3); }
.credits-autorefill {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.credits-autorefill-name {
  margin-right: 3px;
  font-size: 18px;
  font-weight: 600;
}
.credits-autorefill .account-setting-feedback { margin: 12px 0 0; }
.tailscale-controls .text-input { flex: 1 1 240px; min-width: 0; max-width: 340px; }
.setting-help { margin-top: 14px; }
.setting-help > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t3);
}
.setting-help > summary::-webkit-details-marker { display: none; }
.setting-help > summary::before { content: '+'; }
.setting-help[open] > summary::before { content: '−'; }
.setting-help > p {
  max-width: 580px;
  margin: 10px 0 0;
  color: var(--t2);
  font-size: 13px;
  line-height: 1.55;
}
.setting-help code {
  padding: 1px 4px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #FAFAF8;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
}
.setting-activation { margin: 4px 0 16px; }
.rentals-section {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.rentals-section > .cli-h { margin-bottom: 16px; }
.account-history-toggle {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--t3);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.account-history-toggle::after { content: ' ↓'; }
.account-history-toggle[aria-expanded="true"]::after { content: ' ↑'; }
.account-history-toggle:hover { color: var(--ink); }

@media (max-width: 640px) {
  .account-setting-link > a { align-items: start; gap: 10px; }
  .account-setting-link .account-setting-state { max-width: 180px; text-align: right; }
  .account-setting > summary { gap: 10px; }
  .account-setting-body { padding: 0 0 22px; }
  .autorefill-controls,
  .tailscale-controls { align-items: stretch; flex-direction: column; }
  .setting-switch { min-height: 44px; }
  .autorefill-amount { justify-content: space-between; width: 100%; }
  .autorefill-controls .btn-primary,
  .tailscale-controls .btn-primary { width: 100%; }
  .tailscale-controls .text-input { flex-basis: auto; width: 100%; max-width: none; }
  .tailscale-controls .pill { align-self: flex-start; }
}

/* ---------- Nav credits chip + quick-topup popover (index.html) ----------
   Sits inline in the nav between Pricing and Account. Visible only when
   the visitor is signed in (no permanent "$0.00" advertising to fresh
   visitors). Clicking opens a popover anchored to the chip with quick
   amount buttons that hand off to Stripe Checkout. */
.credits-chip-wrap {
  position: relative;
  display: inline-block;
}
.credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: all 100ms ease;
}
.credits-chip:hover { border-color: var(--ink); }
.credits-chip[aria-expanded="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.credits-chip .credits-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
}
.credits-chip[aria-expanded="true"] .credits-label { color: rgba(255,255,255,0.5); }
.credits-chip .credits-value {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
}
.credits-chip .credits-plus {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.credits-chip[aria-expanded="true"] .credits-plus { background: var(--bg); color: var(--ink); }

.credits-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  padding: 14px 16px 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.04);
  display: none;
  z-index: 60;
}
.credits-popover.open { display: block; }
.credits-popover-h {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 12px;
}
.credits-popover-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.credits-popover-row + .credits-popover-row { margin-top: 10px; }
.credits-amt {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 100ms ease;
}
.credits-amt:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.credits-popover-custom {
  padding: 4px 4px 4px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
}
.credits-popover-custom .credits-custom-prefix {
  color: var(--t3);
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
}
.credits-popover-custom input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 4px 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
/* Hide native number-input spinners */
.credits-popover-custom input::-webkit-outer-spin-button,
.credits-popover-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.credits-popover-custom input { -moz-appearance: textfield; }
.credits-popover-custom .credits-custom-go {
  flex: 0 0 auto;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--bg);
}
.credits-popover-custom .credits-custom-go:hover { background: #2A2A2A; }
.credits-popover-foot {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  line-height: 1.5;
  color: var(--t3);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  /* On narrow screens drop the chip's label to save space */
  .credits-chip .credits-label { display: none; }
  .credits-popover { right: 8px; min-width: 240px; }
}

/* ---------- Credits page ---------- */
.topup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.topup-pill {
  padding: 8px 16px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  transition: all 100ms ease;
}
.topup-pill:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.topup-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-family: 'Geist Mono', monospace;
}
.topup-custom-prefix { color: var(--t3); font-size: 13px; }
.topup-custom input {
  width: 80px;
  border: 0;
  outline: 0;
  font: inherit;
  background: transparent;
  padding: 4px 0;
}
.topup-custom .topup-pill { margin-left: 4px; padding: 6px 14px; }

.tx-list { border-top: 1px solid var(--rule); }
.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.tx-meta { display: flex; flex-direction: column; gap: 2px; }
.tx-kind {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
}
.tx-when {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.02em;
}
.tx-receipt {
  color: var(--blue);
  text-decoration: none;
}
.tx-receipt:hover { text-decoration: underline; }
.tx-amount {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  font-weight: 500;
}
.tx-amount.tx-pos { color: #1a7a3a; }
.tx-amount.tx-neg { color: var(--ink); }
