/* ============================================================
   STAKO — Sistema de diseño
   Editorial-fintech: negro profundo, blanco hueso,
   acento verde "operativo", oro sutil "premium".
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  /* Tipografía */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* Color tokens — DARK (default) */
  --bg: #0a0b0d;
  --bg-elev: #111317;
  --bg-card: #14171c;
  --bg-card-hover: #181c22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #f4f3ee;
  --fg-muted: rgba(244, 243, 238, 0.62);
  --fg-dim: rgba(244, 243, 238, 0.38);
  --accent: oklch(0.82 0.17 145); /* verde operativo */
  --accent-ink: #061a0d;
  --accent-glow: oklch(0.82 0.17 145 / 0.18);
  --gold: oklch(0.82 0.10 85); /* oro sutil */
  --gold-ink: #1a1505;
  --danger: oklch(0.7 0.18 25);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

[data-theme="light"] {
  --bg: #f6f4ee;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafaf7;
  --border: rgba(10, 11, 13, 0.10);
  --border-strong: rgba(10, 11, 13, 0.20);
  --fg: #0a0b0d;
  --fg-muted: rgba(10, 11, 13, 0.62);
  --fg-dim: rgba(10, 11, 13, 0.40);
  --accent: oklch(0.62 0.17 145);
  --accent-ink: #ffffff;
  --accent-glow: oklch(0.62 0.17 145 / 0.14);
  --gold: oklch(0.58 0.10 75);
  --gold-ink: #ffffff;
  --shadow-card: 0 1px 0 rgba(255,255,255,1) inset, 0 6px 24px rgba(10,11,13,0.06);
}

/* Reset mínimo */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ===== Tipografía ===== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: oklch(from var(--accent) calc(l + 0.04) c h);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: var(--fg);
  background: var(--bg-card);
}
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* Tag / Badge */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: var(--bg-card);
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.tag-live {
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 35%, transparent);
  background: var(--accent-glow);
}
.tag-live .dot {
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.8s ease-out infinite;
}
.tag-soon {
  color: var(--gold);
  border-color: color-mix(in oklch, var(--gold) 35%, transparent);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); }

/* Hairline divider */
.hr {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* Section spacing */
section { padding-block: clamp(72px, 10vw, 140px); }
.section-title {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.025em;
}

/* Form */
.input {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
}
.input::placeholder { color: var(--fg-dim); }

/* Subtle striped placeholder for missing imagery */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-card) 0 8px,
      var(--bg-elev) 8px 16px
    );
  border: 1px dashed var(--border-strong);
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
}

/* Live ticker numbers */
.num-tab { font-variant-numeric: tabular-nums; }

/* Reveal — disabled (always visible) for reliability */
.reveal { opacity: 1; transform: none; }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--fg-dim); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklch, var(--bg) 75%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled {
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.stako-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}
.stako-logo__word {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav__link {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav__link:hover { color: var(--fg); }
.nav__link.is-active { color: var(--fg); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: -23px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--accent);
}
.nav__link.is-soon { cursor: default; }
.nav__soon {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 999px;
}
.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.icon-btn:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.lang-toggle button {
  color: var(--fg-dim);
  transition: color 0.2s ease;
}
.lang-toggle button.is-active { color: var(--fg); }
.lang-toggle button:hover { color: var(--fg); }
.lang-toggle__sep { color: var(--fg-dim); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 12px var(--gutter) 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav__mobile-link {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__mobile-link.is-soon { color: var(--fg-muted); }
.show-sm { display: none; }
@media (max-width: 880px) {
  .nav__links { display: none; }
  .show-sm { display: inline-flex; }
  .hide-sm { display: none; }
  .nav__mobile { display: flex; }
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 80px 28px;
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 56px;
}
.footer__tagline {
  margin: 18px 0 0;
  color: var(--fg-muted);
  max-width: 36ch;
  font-size: 15px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__list a {
  color: var(--fg-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer__list a:hover { color: var(--fg); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-top: 28px;
  font-size: 12px;
}
.footer__risk {
  max-width: 60ch;
  text-align: right;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer__bottom { flex-direction: column; }
  .footer__risk { text-align: left; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(64px, 8vw, 110px) clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero__title {
  font-size: clamp(48px, 7.4vw, 104px);
  margin: 0;
}
.hero__title-em {
  font-style: italic;
  color: var(--accent);
}
.hero__sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 52ch;
  color: var(--fg-muted);
  line-height: 1.55;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero__ticker {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* Hero viz */
.viz {
  position: relative;
  display: grid;
  gap: 18px;
}
.viz__chart {
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.viz__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.viz__price {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.viz__change {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.viz__change.is-up { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 30%, transparent); }
.viz__change.is-down { color: var(--danger); }
.viz__chart-svg {
  width: 100%;
  height: 220px;
  display: block;
}
.viz__chart-legend {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--fg-muted);
}
.viz__chart-legend .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.viz__chart-legend .dot-buy { background: var(--accent); }
.viz__chart-legend .dot-sell { background: var(--gold); }

.viz__telegram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: absolute;
  right: -8px;
  bottom: -28px;
  width: 290px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.4);
  transform: rotate(2deg);
}
[data-theme="light"] .viz__telegram {
  box-shadow: 0 18px 48px rgba(10,11,13,0.12);
}
.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.tg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
}
.tg-name { font-weight: 500; font-size: 14px; }
.tg-status { font-size: 10px; color: var(--accent); letter-spacing: 0.05em; }
.tg-msg__head {
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}
.tg-msg__row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
  color: var(--fg-muted);
}
.tg-msg__row span:last-child { color: var(--fg); }
.tg-msg__time {
  text-align: right;
  font-size: 10px;
  color: var(--fg-dim);
  margin-top: 8px;
}

@media (max-width: 880px) {
  .viz__telegram {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 0;
  }
}

/* Ticker */
.ticker { padding: 18px 0; }
.ticker__track {
  display: flex;
  gap: 48px;
  animation: ticker 60s linear infinite;
  width: max-content;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fg-muted);
}
.ticker__sym { color: var(--fg); }
.ticker__c.is-up { color: var(--accent); }
.ticker__c.is-down { color: var(--danger); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 56ch;
  line-height: 1.5;
}

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.eco__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 1080px) {
  .eco__grid { grid-template-columns: 1fr 1fr; }
  .pillar--big { grid-column: span 2; }
}
@media (max-width: 680px) {
  .eco__grid { grid-template-columns: 1fr; }
  .pillar--big { grid-column: auto; }
}

.pillar {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  min-height: 460px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.pillar:hover { transform: translateY(-3px); }
.pillar--big { min-height: 520px; }

.pillar__art {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  overflow: hidden;
  min-height: 240px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar__body { padding: 26px 28px 28px; }
.pillar__name {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 14px 0 10px;
  font-weight: 400;
}
.pillar--big .pillar__name { font-size: 36px; }
.pillar__desc {
  color: var(--fg-muted);
  font-size: 15px;
  margin: 0 0 22px;
  max-width: 44ch;
}
.pillar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.pillar__cta:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.pillar--soon .pillar__cta {
  color: var(--fg-muted);
}

/* Pillar art variants */
.pa-bot__chat {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.pa-bot__line {
  display: flex;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  gap: 12px;
}
.pa-bot__line--muted { opacity: 0.55; font-size: 10px; }
.pa-bot__line--muted span { color: var(--fg-muted); }

.pillar-art--books {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding-bottom: 0;
  height: 100%;
}
.pa-book {
  width: 78px;
  height: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 4px 8px 8px 4px;
  position: relative;
  overflow: hidden;
  padding: 12px 12px 12px 18px;
  transform-origin: bottom;
}
.pa-book__spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--gold);
}
.pa-book__title {
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.15;
  color: var(--fg-muted);
}
.pa-book--1 { transform: rotate(-4deg) translateY(8px); height: 150px; }
.pa-book--2 { transform: rotate(2deg); height: 170px; z-index: 2; }
.pa-book--3 { transform: rotate(6deg) translateY(4px); height: 145px; }

.pillar-art--blog {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}
.pa-blog__line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
}
.pa-blog__line--short { width: 60%; }
.pa-blog__chart {
  margin-top: 8px;
  height: 40px;
}

/* ============================================================
   BOT SECTION (landing)
   ============================================================ */
.botsec { border-top: 1px solid var(--border); }
.botsec__head { max-width: 760px; margin-bottom: 64px; }
.botsec__head .eyebrow { margin-bottom: 20px; }
.botsec__head .section-sub { margin-top: 20px; }

.botsec__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
@media (max-width: 880px) {
  .botsec__steps { grid-template-columns: 1fr; }
}
.step {
  padding: 30px 28px 32px;
}
.step__n {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.step__t {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step__d { color: var(--fg-muted); font-size: 15px; }

.botsec__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
@media (max-width: 880px) {
  .botsec__features { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 540px) {
  .botsec__features { grid-template-columns: 1fr; }
}
.feat__bullet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 14px;
}
.feat__t {
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.feat__d { color: var(--fg-muted); font-size: 14px; line-height: 1.5; }

.botsec__cta {
  margin-top: 48px;
  display: flex;
  justify-content: flex-start;
}

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist__inner {
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .waitlist__inner { grid-template-columns: 1fr; gap: 32px; }
}
.waitlist__title {
  font-size: clamp(32px, 4vw, 48px);
  margin: 18px 0 12px;
  letter-spacing: -0.02em;
}
.waitlist__row {
  display: flex;
  gap: 10px;
}
.waitlist__row .btn { flex-shrink: 0; }
@media (max-width: 540px) {
  .waitlist__row { flex-direction: column; }
}
.waitlist__meta {
  margin-top: 14px;
  font-size: 11px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.waitlist__success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--accent-glow);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 500;
}
.waitlist__error {
  margin-top: 12px;
  padding: 10px 16px;
  background: color-mix(in oklch, var(--danger) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--danger) 30%, transparent);
  border-radius: 999px;
  color: var(--danger);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: inline-block;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.input:disabled { opacity: 0.7; cursor: not-allowed; }

/* ============================================================
   BOT PAGE
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--fg); }

.bothero {
  padding-block: clamp(40px, 6vw, 80px) clamp(60px, 8vw, 120px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.bothero::before {
  content: "";
  position: absolute;
  inset: 30% auto auto -10%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bothero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) { .bothero__grid { grid-template-columns: 1fr; gap: 40px; } }
.bothero__title {
  font-size: clamp(40px, 5.6vw, 84px);
  margin: 24px 0 0;
  max-width: 18ch;
}
.bothero__sub {
  margin-top: 24px;
  color: var(--fg-muted);
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 50ch;
}
.bothero__stats {
  padding: 28px;
  border-radius: var(--radius-lg);
}
.bothero__stats-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.specs {
  margin: 0;
  display: grid;
  gap: 14px;
}
.spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
}
.spec dt { color: var(--fg-muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.spec dd { margin: 0; font-weight: 500; letter-spacing: -0.005em; }

/* Telegram onboarding */
.telegram-sec { border-bottom: 1px solid var(--border); }
.telegram-sec__layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .telegram-sec__layout { grid-template-columns: 1fr; gap: 40px; }
  .phone { display: flex; justify-content: center; }
}

.phone-frame {
  width: 340px;
  max-width: 100%;
  background: #000;
  border-radius: 42px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 60px rgba(0,0,0,0.45);
  position: relative;
}
[data-theme="light"] .phone-frame { box-shadow: 0 28px 60px rgba(10,11,13,0.18); }
.phone-frame__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone-frame__screen {
  background: #0c0d10;
  border-radius: 32px;
  overflow: hidden;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.tg-app { display: flex; flex-direction: column; height: 100%; color: #f4f3ee; }
.tg-app__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 50px 14px 12px;
  background: #14171c;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tg-app__back { color: #f4f3ee; padding: 4px; }
.tg-app__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: oklch(0.82 0.17 145);
  color: #061a0d;
  display: grid; place-items: center;
  font-weight: 600; font-size: 14px;
}
.tg-app__name { font-weight: 500; font-size: 14px; }
.tg-app__status { font-size: 10px; color: rgba(244,243,238,0.5); letter-spacing: 0.05em; }
.tg-app__feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
}
.tg-app__input {
  padding: 14px 16px;
  background: #14171c;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}

.tgb { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; animation: bubbleIn 0.3s ease; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tgb--system { background: transparent; align-self: center; font-size: 10px; color: rgba(244,243,238,0.4); padding: 4px 10px; }
.tgb--user {
  align-self: flex-end;
  background: oklch(0.82 0.17 145);
  color: #061a0d;
  border-radius: 14px 14px 4px 14px;
  font-family: var(--font-mono);
}
.tgb--bot {
  align-self: flex-start;
  background: #1d2128;
  border-radius: 14px 14px 14px 4px;
  color: #f4f3ee;
}
.tgb__title { font-weight: 500; margin-bottom: 6px; }
.tgb__line { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-size: 11px; }
.tgb__line--muted { opacity: 0.6; }
.tgb__line span:last-child { color: #f4f3ee; }
.tgb__body { color: rgba(244,243,238,0.78); font-size: 12px; }
.tgb__buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tgb__btn {
  padding: 8px 12px;
  background: rgba(244,243,238,0.06);
  border: 1px solid rgba(244,243,238,0.1);
  border-radius: 10px;
  font-size: 11px;
  color: #f4f3ee;
  cursor: pointer;
}
.tgb__time { font-size: 9px; color: rgba(244,243,238,0.35); text-align: right; margin-top: 6px; }

.telegram-sec__notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-self: stretch;
}
@media (max-width: 540px) { .telegram-sec__notes { grid-template-columns: 1fr; } }
.tnote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-lg);
}
.tnote__num { font-size: 11px; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.06em; }
.tnote__t { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; line-height: 1.1; }
.tnote__d { color: var(--fg-muted); font-size: 13.5px; line-height: 1.5; }

/* Pipeline */
.pipeline { border-bottom: 1px solid var(--border); }
.pipeline__rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
  margin-bottom: 56px;
}
.pipeline__rail::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--border-strong);
  z-index: 0;
}
@media (max-width: 880px) {
  .pipeline__rail { grid-template-columns: 1fr; }
  .pipeline__rail::before { display: none; }
}
.prail-step { position: relative; padding-top: 44px; }
.prail-step__dot {
  position: absolute;
  top: 10px; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.prail-step__tag { font-size: 10px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 8px; }
.prail-step__title { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.prail-step__desc { color: var(--fg-muted); font-size: 13.5px; line-height: 1.5; }

.pipeline__ascii {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  overflow-x: auto;
}
.pipeline__ascii pre {
  margin: 0;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  white-space: pre;
}

/* Bot features */
.botfeat { border-bottom: 1px solid var(--border); }
.botfeat__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .botfeat__grid { grid-template-columns: 1fr; gap: 40px; } }
.botfeat__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.botfeat__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--fg);
}
.botfeat__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.botfeat__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 540px) { .botfeat__cards { grid-template-columns: 1fr; } }
.botfeat__cards .feat {
  padding: 26px;
  border-radius: var(--radius-lg);
}

/* FAQ */
.faq__list { display: grid; gap: 10px; max-width: 820px; }
.faq__item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq__item:hover { border-color: var(--border-strong); }
.faq__q {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.faq__icon {
  color: var(--fg-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq__item.is-open .faq__icon { transform: rotate(180deg); color: var(--accent); }
.faq__a {
  grid-column: 1 / -1;
  margin-top: 12px;
  margin-left: 28px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Bot CTA */
.botcta__inner {
  padding: clamp(56px, 8vw, 96px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: var(--bg-elev);
}
.botcta__title {
  font-size: clamp(36px, 5vw, 60px);
  max-width: 22ch;
  margin: 0 auto;
  letter-spacing: -0.02em;
}

/* Utility */
.flex { display: flex; }
.grid { display: grid; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--fg-muted); }
.text-dim { color: var(--fg-dim); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }


/* ============================================================
   AUTH UI: modal, dropdown, profile
   ============================================================ */

/* ---- Auth slot (loading skeleton) ---- */
.auth-slot-skeleton {
  width: 110px; height: 32px;
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  opacity: 0.4;
}

/* ---- Login modal ---- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.18s ease-out;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 440px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), var(--shadow-card);
  animation: slideUp 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0 }
  to   { transform: translateY(0); opacity: 1 }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--fg-muted); font-size: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--bg-elev); color: var(--fg); }

.modal-title { font-size: 28px; line-height: 1.1; margin: 8px 0 6px; }
.modal-sub { font-size: 14px; line-height: 1.5; margin-bottom: 22px; }

.btn-google {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-google:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }
.btn-google:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}
.modal-divider::before, .modal-divider::after {
  content: ""; flex: 1; height: 1px;
  background: var(--border);
}

.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-label { display: flex; flex-direction: column; gap: 6px; }
.modal-label > span {
  font-size: 11px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.modal-label input {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 11px 13px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.modal-label input:focus {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.modal-label input:disabled { opacity: 0.5; }

.modal-err {
  background: color-mix(in oklch, var(--danger) 16%, transparent);
  border: 1px solid color-mix(in oklch, var(--danger) 35%, transparent);
  color: var(--danger);
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 13px;
}
.modal-info {
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
  color: var(--accent);
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 13px;
}

.modal-submit { margin-top: 4px; }

.modal-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}
.link-btn {
  background: transparent; border: 0; padding: 0;
  color: var(--fg-muted); cursor: pointer;
  font-family: var(--font-sans); font-size: 13px;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s;
}
.link-btn:hover { color: var(--accent); }

/* ---- User dropdown ---- */
.user-menu { position: relative; }
.user-menu__trigger {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.user-menu__trigger:hover {
  background: var(--bg-elev);
  border-color: var(--border-strong);
}
.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}
.user-name {
  max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.user-menu__panel {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  padding: 8px;
  z-index: 100;
  animation: slideUp 0.16s ease-out;
}
.user-menu__head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.user-menu__name { font-weight: 500; font-size: 14px; color: var(--fg); }
.user-menu__email { font-size: 12px; margin-top: 2px; }

.user-menu__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-sans); font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.user-menu__item:hover { background: var(--bg-elev); color: var(--accent); }
.user-menu__item--admin { color: var(--accent); }
.user-menu__item--admin:hover { background: color-mix(in oklch, var(--accent) 14%, transparent); }
.user-menu__item--danger { color: var(--fg-muted); }
.user-menu__item--danger:hover { color: var(--danger); background: color-mix(in oklch, var(--danger) 10%, transparent); }
.user-menu__sep {
  height: 1px; background: var(--border);
  margin: 6px 4px;
}

/* ============================================================
   CUENTA (perfil cliente)
   ============================================================ */
.cuenta-main {
  padding-top: 100px;
  padding-bottom: 100px;
  min-height: 70vh;
}
.cuenta-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .cuenta-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* sidebar */
.cuenta-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex; flex-direction: column;
  gap: 20px;
}
@media (max-width: 800px) {
  .cuenta-sidebar { position: static; }
}
.cuenta-side-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.cuenta-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-weight: 700; font-family: var(--font-mono);
  letter-spacing: -0.02em;
}
.cuenta-side-name { font-weight: 500; font-size: 15px; line-height: 1.2; }
.cuenta-side-email { font-size: 11px; margin-top: 3px; }

.cuenta-side-nav {
  display: flex; flex-direction: column; gap: 2px;
}
.cuenta-side-link {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  font-family: var(--font-sans); font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  text-align: left;
}
.cuenta-side-link:hover { background: var(--bg-elev); color: var(--fg); }
.cuenta-side-link.is-active {
  background: var(--bg-elev);
  color: var(--accent);
  font-weight: 500;
}
.cuenta-side-link--admin { color: var(--accent); margin-top: 8px; }
.cuenta-side-link--admin::before {
  content: "—"; color: var(--border-strong); margin-right: 4px;
}

.cuenta-side-logout {
  margin-top: 12px;
  align-self: stretch;
}

/* content */
.cuenta-content { min-width: 0; }
.cuenta-section { display: flex; flex-direction: column; gap: 28px; }
.cuenta-h1 { font-size: 44px; line-height: 1.05; margin-top: 12px; }
.cuenta-h2 {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin: 0 0 18px;
}

.cuenta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.cuenta-form { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }

.cuenta-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 28px;
  font-size: 14px;
  margin: 0;
}
.cuenta-dl dt {
  color: var(--fg-muted);
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.cuenta-dl dd { margin: 0; color: var(--fg); }
.cuenta-dl--inline { font-size: 13px; gap: 8px 22px; }

.badge-admin {
  display: inline-block;
  background: color-mix(in oklch, var(--accent) 18%, transparent);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* no-auth screen */
.cuenta-noauth {
  padding: 80px 0;
  max-width: 640px;
}

/* subs list */
.cuenta-subs { display: flex; flex-direction: column; gap: 18px; }
.sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.sub-card__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 20px;
}
.sub-card__title { font-weight: 500; font-size: 16px; margin-bottom: 6px; }
.sub-card__price {
  font-size: 22px;
  font-family: var(--font-mono);
  font-weight: 600;
}
.sub-card__price > span {
  font-size: 12px; font-weight: 400;
  margin-left: 4px;
}

.sub-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.sub-status--ok   { color: var(--accent); }
.sub-status--warn { color: var(--gold); }
.sub-status--off  { color: var(--fg-muted); }
.sub-status--err  { color: var(--danger); }

.sub-card__code-block {
  background: var(--bg-elev);
  border: 1px dashed color-mix(in oklch, var(--accent) 40%, transparent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 18px;
}
.sub-card__code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sub-card__code .mono {
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.sub-card__actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* books grid */
.cuenta-books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s, background 0.15s;
}
.book-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.book-card__title { font-weight: 500; margin-bottom: 8px; }

.cuenta-empty {
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  text-align: center;
}

/* btn-sm helper */
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* cuenta auth (login/signup integrado en página) */
.cuenta-auth-wrap {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}
.cuenta-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-card);
}
.cuenta-auth-title {
  font-size: 36px;
  line-height: 1.1;
  margin: 8px 0 8px;
}
.cuenta-auth-sub {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}
