@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --gold: #C47A3F;
  --gold-light: #E7C9A3;
  --gold-dim: rgba(196, 122, 63, 0.10);
  --gold-glow: rgba(196, 122, 63, 0.20);

  --depth: #22302B;
  --depth-light: #2A3A33;
  --depth-mid: #35473F;

  --cream: #F6F1E8;
  --cream-alt: #EFE8D9;
  --surface: #FDFBF7;
  --surface-hover: #F7F3EA;

  --text: #22302B;
  --text-secondary: #5F6B64;
  --text-muted: #8A9189;
  --text-gold: #C47A3F;

  --primary: #2F5D4E;
  --primary-dark: #26493E;
  --primary-dim: rgba(47, 93, 78, 0.08);
  --accent: #C47A3F;
  --accent-dark: #A9622F;
  --accent-dim: rgba(196, 122, 63, 0.12);

  --border: #E4DCCB;
  --border-light: rgba(196, 122, 63, 0.15);

  --shadow-sm: 0 1px 3px rgba(34, 48, 43, 0.04), 0 1px 2px rgba(34, 48, 43, 0.02);
  --shadow-md: 0 4px 20px rgba(34, 48, 43, 0.06), 0 2px 6px rgba(34, 48, 43, 0.04);
  --shadow-lg: 0 8px 40px rgba(34, 48, 43, 0.08), 0 4px 12px rgba(34, 48, 43, 0.04);
  --shadow-xl: 0 16px 60px rgba(34, 48, 43, 0.10), 0 8px 20px rgba(34, 48, 43, 0.05);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 28px;
  --r-full: 999px;

  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: radial-gradient(900px 520px at 50% -120px, #EFE7D2 0%, rgba(239, 231, 210, 0) 70%), var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.2rem; }

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.container--wide { max-width: 800px; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.header__in {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lora', serif;
}

.logo__mark {
  width: 30px;
  height: 30px;
  color: var(--primary);
  flex: none;
}

.logo__mark .ecg { stroke: var(--accent); }

.logo span { color: var(--primary); }

.header__badge {
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid var(--gold-dim);
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__nav a {
  font-size: .78rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--r-full);
  transition: all .2s;
}
.header__nav a:hover {
  color: var(--text);
  background: var(--cream-alt);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

.card h1 {
  text-align: center;
  margin-bottom: 6px;
}
.card h1 span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card > p {
  text-align: center;
  color: var(--text-secondary);
  font-size: .88rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.fg { margin-bottom: 20px; position: relative; }
.fg:last-of-type { margin-bottom: 28px; }
.fg label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.fg input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: all .25s;
}
.fg input:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--gold-dim);
}
.fg input::placeholder { color: var(--text-muted); }

.fg input[data-invalid] {
  border-color: #C46A6A;
  background: #FFF8F8;
}
.fg input[data-invalid]:focus {
  box-shadow: 0 0 0 4px rgba(196, 106, 106, 0.12);
}

.fg__hint {
  display: block;
  font-size: .7rem;
  color: #C46A6A;
  margin-top: 5px;
  min-height: 1em;
  line-height: 1.3;
}

.pw-wrap {
  position: relative;
}

.pw-wrap input {
  padding-right: 48px;
}

.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-toggle:hover { color: var(--text-secondary); background: var(--cream-alt); }
.pw-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.fg-rm {
  margin-bottom: 24px;
}

.rm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--text-secondary);
  user-select: none;
  transition: color .2s;
}

.rm:hover { color: var(--text); }

.rm input { position: absolute; opacity: 0; pointer-events: none; }

.rm__check {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}

.rm__check::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .15s;
  margin-top: -1px;
}

.rm input:checked + .rm__check {
  background: var(--text);
  border-color: var(--text);
}

.rm input:checked + .rm__check::after { transform: rotate(-45deg) scale(1); }

.rm input:focus-visible + .rm__check {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--r-full);
  font-size: .88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.22,1,.36,1);
  text-decoration: none;
  width: 100%;
  letter-spacing: .01em;
}

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

.btn--loading .btn__text { display: none; }
.btn--loading .btn__spinner { display: inline-block; }
.btn--loading { pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.btn--primary {
  background: var(--text);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--depth);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 48, 43, 0.15);
}

.btn--primary:disabled {
  background: #BAC0B9;
  cursor: not-allowed;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196, 122, 63, 0.25);
}

.btn--gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 122, 63, 0.30);
}

.btn--ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 0;
  width: auto;
  font-size: .82rem;
}
.btn--ghost:hover { color: var(--text); }

.btn--sm {
  padding: 10px 20px;
  font-size: .78rem;
  width: auto;
}

.auth {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.seed-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.seed-box__title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.seed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.seed-word {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 8px;
  font-family: 'Inter', monospace;
}

.seed-warn {
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--gold-dim);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  line-height: 1.5;
}

.seed-acts {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.skel {
  padding: 20px 0;
}

.skel__line {
  height: 18px;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--border) 0%, var(--cream-alt) 50%, var(--border) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.5s ease infinite;
  margin-bottom: 12px;
}

.skel__line--lg { height: 32px; }
.skel__line--sm { height: 14px; }

.skel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.skel__block {
  height: 100px;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--border) 0%, var(--cream-alt) 50%, var(--border) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.5s ease infinite;
}

@keyframes skel-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.plans-hero {
  text-align: center;
  padding: 48px 20px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.plans-hero h1 {
  margin-bottom: 10px;
}

.plans-hero h1 span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plans-hero p {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.7;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 20px;
  text-align: center;
  transition: all .35s cubic-bezier(.22,1,.36,1);
  cursor: pointer;
  position: relative;
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.plan.selected {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold-dim);
  transform: translateY(-3px);
}

.plan__pop {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(196, 122, 63, 0.25);
}

.plan__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.plan__icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.plan__name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.plan__time {
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: .03em;
}

.plan__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.plan__note {
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.plan__desc {
  font-size: .75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.plan__rate {
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 3px 12px;
  background: var(--cream);
  border-radius: var(--r-full);
  display: inline-block;
}

.payment-area {
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 20px 56px;
  text-align: center;
}

.payment-area .btn { max-width: 360px; margin: 0 auto; }

.loading {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}

#payment-form { min-height: 60px; display: flex; justify-content: center; margin-bottom: 12px; }

.dash {
  flex: 1;
  padding: 40px 0;
}

.dash h1 { margin-bottom: 4px; }
.dash__sub {
  color: var(--text-secondary);
  font-size: .85rem;
  margin-bottom: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 12px;
  text-align: center;
  transition: all .25s;
}

.stat:hover { box-shadow: var(--shadow-md); }

.stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.stat__icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.stat__num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  letter-spacing: -0.01em;
}

.stat__label {
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.start-wrap {
  text-align: center;
  margin: 24px 0;
}

.start-wrap .btn { max-width: 300px; margin: 0 auto; padding: 16px 32px; font-size: .95rem; }

.hist { margin-top: 36px; }

.hist h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.pay-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
}

.pay-item:last-child { border-bottom: none; }
.pay-item__amt { font-weight: 600; }
.pay-item__ok { color: var(--gold); font-weight: 600; }

.msg-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 6px;
  font-size: .82rem;
}

.msg-item__meta {
  font-size: .68rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.msg-item__text {
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vox {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--depth);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.vox::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 122, 63, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.vox__top {
  position: relative; z-index: 2;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.vox__back {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-size: .78rem;
  transition: color .2s;
}
.vox__back:hover { color: rgba(255,255,255,.7); }

.vox-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
}

.vox-timer__num {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: center;
}

.vox-timer__bar {
  width: 80px;
  height: 3px;
  background: rgba(255,255,255,.10);
  border-radius: 3px;
  overflow: hidden;
}

.vox-timer__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--accent-dark) 100%);
  border-radius: 3px;
  transition: width .5s;
}

.vox__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative; z-index: 2;
}

.vox-wave {
  width: 160px;
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.vox-wave__ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: .15;
  animation: ring 3s ease infinite;
}
.vox-wave__ring:nth-child(1) { animation-delay: 0s; }
.vox-wave__ring:nth-child(2) { animation-delay: 1s; }
.vox-wave__ring:nth-child(3) { animation-delay: 2s; }

@keyframes ring {
  0% { transform: scale(1); opacity: .15; }
  50% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.vox-wave__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 60px rgba(196, 122, 63, 0.15);
}

.vox-wave__avatar svg {
  width: 46px;
  height: 46px;
  color: #fff;
}

.vox-viz {
  width: 200px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 12px;
}

.vox-viz__bar {
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
  height: 12px;
  opacity: .3;
  transition: all .15s;
}

.vox-viz__bar.active {
  opacity: .9;
  animation: bar 0.7s ease infinite alternate;
}

@keyframes bar {
  0% { height: 6px; }
  100% { height: 28px; }
}

.vox-viz__bar:nth-child(1) { animation-delay: 0s; }
.vox-viz__bar:nth-child(2) { animation-delay: .08s; }
.vox-viz__bar:nth-child(3) { animation-delay: .16s; }
.vox-viz__bar:nth-child(4) { animation-delay: .24s; }
.vox-viz__bar:nth-child(5) { animation-delay: .32s; }
.vox-viz__bar:nth-child(6) { animation-delay: .40s; }
.vox-viz__bar:nth-child(7) { animation-delay: .48s; }
.vox-viz__bar:nth-child(8) { animation-delay: .56s; }
.vox-viz__bar:nth-child(9) { animation-delay: .64s; }
.vox-viz__bar:nth-child(10) { animation-delay: .72s; }

.vox-status {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
  font-weight: 400;
}

.vox-status.listening::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #95D5B2;
  border-radius: 50%;
  margin-left: 8px;
  animation: dot 1.5s infinite;
}

@keyframes dot { 0%,100%{opacity:1} 50%{opacity:.3} }

.vox-ctrls {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.vox-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all .25s;
  backdrop-filter: blur(8px);
}

.vox-btn:hover { transform: scale(1.1); }

.vox-btn--mute {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
}

.vox-btn--end {
  background: rgba(196, 122, 63, 0.12);
  border: 1px solid rgba(196, 122, 63, 0.20);
  color: var(--gold);
}

.vox-btn--end:hover { background: rgba(196, 122, 63, 0.25); }

.vox-transcript {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  max-height: calc(100vh - 280px);
  width: 100%;
  max-width: 520px;
}

.vox-msg {
  margin-bottom: 14px;
  animation: up .35s ease;
}

.vox-msg__label {
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 3px;
}

.vox-msg__label.user { color: var(--text-muted); }

.vox-msg__text {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  font-size: .82rem;
  line-height: 1.5;
  display: none;
}

.alert.err {
  display: block;
  background: rgba(196, 122, 63, 0.08);
  border: 1px solid rgba(196, 122, 63, 0.18);
  color: #9C6130;
}

.alert.ok {
  display: block;
  background: rgba(47, 93, 78, 0.08);
  border: 1px solid rgba(47, 93, 78, 0.18);
  color: #2F5D4E;
}

.links {
  text-align: center;
  margin-top: 24px;
}

.links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .82rem;
  transition: color .2s;
}

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

.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: .72rem;
  color: var(--text-muted);
}

.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--text); }

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  animation: success-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}

.success-icon svg {
  width: 72px;
  height: 72px;
  color: var(--primary);
}

.success-icon svg .ecg { stroke: var(--accent); }

@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-balance {
  margin-top: 16px;
  margin-bottom: 28px;
}

.success-balance__hint {
  color: var(--text-secondary);
  font-size: .88rem;
}

.success-balance__label {
  color: var(--text-secondary);
  font-size: .82rem;
  margin-bottom: 4px;
}

.success-balance__num {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.captcha-box {
  display: flex;
  justify-content: center;
}

.captcha-box .h-captcha {
  transform-origin: center;
}

.info {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}
.info a { color: var(--gold); text-decoration: none; }

@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim { animation: up .45s ease both; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(34, 48, 43, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in .2s ease;
}

.modal-box {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: up .3s ease;
}

.modal-box__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.modal-box__icon svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.modal-box h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.modal-box p {
  font-size: .82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-acts {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-acts .btn { width: auto; min-width: 100px; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hidden { display: none !important; }

@media (max-width: 700px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 380px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .seed-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .card { border-radius: var(--r-lg); padding: 28px 20px; }
  .plan { padding: 24px 16px; }
  .auth { padding: 24px 0; }
  .vox-wave { width: 130px; height: 130px; }
  .vox-wave__avatar { width: 80px; height: 80px; }
  .vox-wave__avatar svg { width: 38px; height: 38px; }
  .vox-transcript { max-height: calc(100vh - 240px); }
  .vox-timer__bar { width: 50px; }
  .header__nav a:not(.btn--ghost) { display: none; }
  .header__in { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
