:root {
  --black: #060807;
  --surface-dark: #0b0f0c;
  --surface-dark-2: #11160f;
  --brand: #044d15;
  --brand-mid: #11722c;
  --brand-bright: #2bbf63;
  --paper: #f4f7f3;
  --white: #ffffff;
  --ink: #0b120d;
  --ink-soft: #4c5950;
  --mist: #c9d6cc;
  --mist-dim: #8aa092;
  --error: #d6453c;
  --radius: 22px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }
html, body {
    /* Первый цвет — ползунок (бегунок), второй — фон дорожки */
  scrollbar-color: #004d26 #000000; 
  
  /* Можно также задать толщину: auto или thin */
  scrollbar-width: thin; 
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--mist);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--font-display); margin: 0; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid #1a201b;
  background: var(--black);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark { width: 38px; height: 38px; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--white);
}

.brand-credit {
  font-size: 12px;
  color: var(--mist-dim);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.brand-credit:hover {
  color: var(--brand-bright);
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 84px;
  background:
    radial-gradient(120% 140% at 50% -20%, #0e1a11 0%, var(--black) 60%);
}

.hero-ghost {
  position: absolute;
  right: -40px;
  top: -10px;
  width: 320px;
  height: 320px;
  fill: none;
  stroke: var(--brand-mid);
  stroke-width: 1.2;
  opacity: 0.35;
  pointer-events: none;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--brand-bright);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 18px auto 6px;
  max-width: 480px;
  font-size: 17px;
  color: var(--mist);
}

.hero-note {
  margin: 0;
  font-size: 14px;
  color: var(--mist-dim);
}

/* ---------- Tool card ---------- */

.tool {
  padding: 0 24px 80px;
}

.tool-card {
  max-width: 640px;
  margin: -56px auto 0;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--ink);
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 25px 60px -20px rgba(0, 0, 0, 0.75);
}

.tabs {
  display: flex;
  gap: 6px;
  background: #e6ebe3;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.tab.is-active {
  background: var(--brand);
  color: var(--white);
}

.panel { display: none; }
.panel.is-active { display: block; }

/* Dropzone */

.dropzone {
  border: 1.5px dashed #b9c6b3;
  border-radius: var(--radius-sm);
  padding: 36px 20px;
  text-align: center;
  background: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-drag {
  border-color: var(--brand);
  background: #eef4ec;
}

.dropzone-icon {
  width: 30px;
  height: 28px;
  fill: var(--brand);
  margin-bottom: 10px;
}

.dropzone-text {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.dropzone-caption {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid #dde5d8;
}

.file-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.file-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.file-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* Mic panel */

.mic-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 4px;
}

.record-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.record-btn:hover { background: var(--brand-mid); }

.record-btn.is-recording {
  background: var(--error);
  box-shadow: 0 0 0 8px rgba(214, 69, 60, 0.15);
}

.record-icon { width: 24px; height: 24px; fill: var(--white); }
.icon-stop { fill: var(--white); }

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin: 18px 0 6px;
}

.waveform span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleY(1);
  transition: background 0.2s ease;
}

.waveform.is-active span {
  background: var(--brand-bright);
  animation: wave 0.9s ease-in-out infinite;
}

.waveform.is-active span:nth-child(1) { animation-delay: 0s; }
.waveform.is-active span:nth-child(2) { animation-delay: 0.1s; }
.waveform.is-active span:nth-child(3) { animation-delay: 0.2s; }
.waveform.is-active span:nth-child(4) { animation-delay: 0.3s; }
.waveform.is-active span:nth-child(5) { animation-delay: 0.2s; }
.waveform.is-active span:nth-child(6) { animation-delay: 0.1s; }
.waveform.is-active span:nth-child(7) { animation-delay: 0s; }

@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 26px; }
}

.mic-status {
  margin: 4px 0 2px;
  font-size: 14px;
  color: var(--ink);
}

.mic-timer {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--brand);
  margin: 0 0 8px;
}

.mic-playback {
  width: 100%;
  margin-top: 14px;
}

/* Shared bits */

.link-btn {
  border: none;
  background: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 2px;
}

.link-btn:hover { color: var(--brand-mid); text-decoration: underline; }

.field-error {
  margin: 12px 2px 0;
  font-size: 13px;
  color: var(--error);
}

.submit-btn {
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  margin-top: 22px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover:not(:disabled) { background: var(--brand-mid); }

.submit-btn:disabled {
  background: #c4cec0;
  color: #80897d;
  cursor: not-allowed;
}

.banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.banner-error {
  background: #fbe9e7;
  color: #8c2a23;
  border: 1px solid #f0c4bf;
}
.result {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #dde5d8;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.result-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.result-actions { display: flex; gap: 14px; }

.result-text {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #dde5d8;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  font-family: var(--font-body);
}

/* ── Result preview ── */
.result-preview {
  background: var(--white);
  border: 1px solid #dde5d8;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 16px;
  word-break: break-word;
}

.result-preview-text {
  font-family: var(--font-body);
}

.result-ellipsis {
  color: var(--mist-dim);
  margin-left: 2px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ── Download row ── */
.result-download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.result-download-label {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.result-format-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fmt-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1.5px solid #cdd7c9;
  background: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
}

.fmt-btn input[type="radio"] {
  display: none;
}

.fmt-btn:has(input:checked) {
  border-color: var(--brand-mid);
  background: #e8f5ed;
  color: var(--brand);
}

.fmt-btn:hover:not(:has(input:checked)) {
  border-color: var(--mist-dim);
  color: var(--ink);
}

/* ── Режим распознавания: Качество / Скорость ── */
.mode-picker {
  margin: 18px 0 10px;
}

.mode-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 99px;
  background: #eef2ec;
  border: 1px solid #dde5d8;
}

.mode-btn {
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mode-btn input[type="radio"] {
  display: none;
}

.mode-btn:has(input:checked) {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 1px 3px rgba(11, 18, 13, 0.12);
}

.mode-btn:hover:not(:has(input:checked)) {
  color: var(--ink);
}

.mode-caption {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 99px;
  border: none;
  background: var(--brand-mid);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  margin-left: auto;
}

.download-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.download-btn:hover { background: var(--brand-bright); color: var(--ink); }

.result-copy-btn {
  font-size: 13px;
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--mist-dim);
}

.footer-link {
  color: var(--mist-dim);
  text-decoration: underline;
  text-decoration-color: rgba(201, 214, 204, 0.35);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--brand-bright);
  text-decoration-color: currentColor;
}

@media (max-width: 560px) {
  .hero { padding: 56px 18px 72px; }
  .tool-card { padding: 22px; margin-top: -48px; }
  .file-name { max-width: 200px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .waveform.is-active span { animation: none; height: 18px; }
}

/* ── Loading banner ── */
.loading-banner {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}

.loading-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.loading-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
}

.loading-timer {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-light);
  letter-spacing: 0.03em;
  min-width: 2.8ch;
  text-align: right;
}

.loading-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-mid), var(--brand-light));
  animation: loading-pulse 1.8s ease-in-out infinite;
}

@keyframes loading-pulse {
  0%   { width: 5%;  opacity: 1; }
  50%  { width: 75%; opacity: 0.85; }
  100% { width: 5%;  opacity: 1; }
}

/* ---------- Header right / account / quota ---------- */

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quota-chip {
  border: 1px solid #1f2920;
  background: var(--surface-dark-2);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 99px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.quota-chip:hover { border-color: var(--brand-bright); color: var(--white); }

.account-area { position: relative; }

.account-btn,
.account-trigger {
  border: 1px solid var(--brand-mid);
  background: transparent;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 99px;
  transition: background 0.15s ease;
}

.account-btn:hover,
.account-trigger:hover { background: var(--brand); }

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface-dark-2);
  border: 1px solid #1f2920;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

.account-dropdown-email {
  font-size: 12px;
  color: var(--mist-dim);
  padding: 4px 8px 8px;
  border-bottom: 1px solid #1a201b;
  margin-bottom: 4px;
  word-break: break-all;
}

.account-dropdown-item {
  background: transparent;
  border: none;
  color: var(--mist);
  text-align: left;
  font-size: 13px;
  padding: 8px 8px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-dropdown-item:hover {
  background: var(--brand);
  color: var(--white);
}

a.account-dropdown-item {
  text-decoration: none;
}

/* ---------- Modals ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,8,7,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal {
  position: relative;
  background: var(--surface-dark-2);
  border: 1px solid #1f2920;
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.modal-wide { max-width: 620px; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--mist-dim);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
}

.modal-close:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.modal-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 22px;
  margin: 0 0 10px;
}

.modal-sub {
  color: var(--mist-dim);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 22px;
}

.modal-footnote {
  color: var(--mist-dim);
  font-size: 12px;
  margin: 18px 0 0;
}

/* Auth buttons */

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #2a322b;
  background: var(--surface-dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.auth-btn:hover { border-color: var(--brand-bright); background: var(--surface-dark-2); }

.auth-btn-mark {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-btn-tatarid { text-decoration: none; }

/* Plans */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid #2a322b;
  background: var(--surface-dark);
  border-radius: var(--radius-sm);
  padding: 22px 14px;
}

.plan-card-highlight {
  border-color: var(--brand-bright);
  background: linear-gradient(180deg, rgba(43,191,99,0.12), rgba(43,191,99,0.02));
}

.plan-badge {
  position: absolute;
  top: -10px;
  background: var(--brand-bright);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
}

.plan-name { color: var(--mist); font-size: 13px; }

.plan-price {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 24px;
  font-weight: 600;
}

.plan-btn {
  width: 100%;
  border: 1px solid var(--brand-mid);
  background: transparent;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.plan-btn:hover { background: var(--brand); }

.plan-btn-primary {
  background: var(--brand-bright);
  border-color: var(--brand-bright);
  color: var(--black);
  font-weight: 600;
}

.plan-btn-primary:hover { background: var(--brand-mid); color: var(--white); }

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface-dark-2);
  border: 1px solid var(--brand-bright);
  color: var(--white);
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 99px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 90vw;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Donate ---------- */

.donate-btn {
  border: 1px solid var(--brand-mid);
  background: transparent;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 99px;
  transition: background 0.15s ease;
}

.donate-btn:hover { background: var(--brand); }

.donate-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 560px) {
  .donate-services { grid-template-columns: 1fr; }
}

.donate-service-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #2a322b;
  background: var(--surface-dark);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.donate-service-btn:hover { border-color: var(--brand-bright); background: var(--surface-dark-2); }

.donate-service-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.donate-service-sub { color: var(--mist-dim); font-size: 12px; }

.donate-crypto-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.donate-crypto-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #2a322b;
  background: var(--surface-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.donate-crypto-qr-btn {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: none;
  padding: 0;
  border-radius: 8px;
  background: var(--white);
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.donate-crypto-qr-btn:hover { transform: scale(1.05); }

.donate-crypto-qr {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
}

.donate-crypto-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.donate-crypto-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.donate-crypto-address {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
  word-break: break-all;
}

.donate-crypto-copy {
  border: 1px solid #2a322b;
  background: transparent;
  color: var(--mist);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.donate-crypto-copy:hover { border-color: var(--brand-bright); color: var(--white); }

/* ---------- TatarID page ---------- */

.tatarid-main {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.tatarid-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface-dark-2);
  border: 1px solid #1f2920;
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.tatarid-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: block;
}

.tatarid-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 24px;
  margin: 0 0 8px;
}

.tatarid-sub {
  color: var(--mist-dim);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.tatarid-tabs { margin-bottom: 20px; }

.tatarid-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.tatarid-label {
  font-size: 12px;
  color: var(--mist-dim);
  margin-top: 10px;
}

.tatarid-input {
  background: var(--surface-dark);
  border: 1px solid #2a322b;
  color: var(--white);
  font-size: 14px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: border-color 0.15s ease;
}

.tatarid-input:focus { border-color: var(--brand-bright); outline: none; }

.tatarid-submit { margin-top: 18px; }

.tatarid-footnote {
  color: var(--mist-dim);
  font-size: 12px;
  margin: 22px 0 0;
}

/* ---------- QR lightbox ---------- */

.qr-lightbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 340px;
}

.qr-lightbox-img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.qr-lightbox-address {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
  word-break: break-all;
  text-align: center;
}

/* ---------- TatarID — confirm email screen ---------- */

.tatarid-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
}

.tatarid-confirm-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

.tatarid-confirm-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 19px;
  margin: 0;
}

.tatarid-confirm-text {
  color: var(--mist);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.tatarid-confirm-text strong { color: var(--brand-bright); }

.tatarid-confirm-hint {
  color: var(--mist-dim);
  font-size: 12px;
  margin: 6px 0 0;
}

/* ── Result time badge ── */
.result-time {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--brand-bright);
  background: rgba(43, 191, 99, 0.1);
  border: 1px solid rgba(43, 191, 99, 0.2);
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
}
