/* LinguaAI mobile-first app UI */
:root {
  color-scheme: dark;
  --bg: #07090e;
  --bg-soft: #0a0d14;
  --surface: #10151f;
  --surface-2: #151c29;
  --surface-3: #1b2433;
  --line: #263246;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f6f8fb;
  --text-2: #a8b4c6;
  --muted: #66758c;
  --accent: #2f80ff;
  --accent-2: #2fe0b4;
  --accent-soft: rgba(47, 128, 255, 0.14);
  --success-soft: rgba(47, 224, 180, 0.12);
  --danger: #ff5f68;
  --danger-soft: rgba(255, 95, 104, 0.13);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --r: 8px;
}

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

html {
  background: var(--bg);
}

body {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(47, 128, 255, 0.09), transparent 260px),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.app {
  width: 100%;
  max-width: 460px;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}

.screen,
.landing-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hidden {
  display: none !important;
}

.state {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Shared chrome */
.topbar,
.site-nav,
.auth-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-topbar {
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 30;
  padding: 6px 0;
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(18px);
}

.topbar-brand,
.brand-lockup,
.wordmark {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.topbar-brand {
  flex: 1;
}

.topbar-brand > div:last-child,
.auth-header .wordmark {
  min-width: 0;
}

.topbar-brand strong,
.brand-lockup span:last-child {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
}

.topbar-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-brand-icon,
.wordmark-icon,
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 128, 255, 0.34);
  border-radius: var(--r);
  background: linear-gradient(135deg, #173b78, #10151f);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-btn,
.icon-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}

.back-btn svg,
.icon-btn svg,
.end-call svg {
  width: 19px;
  height: 19px;
}

.back-btn svg path,
.end-call svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.credit-chip,
.room-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 128, 255, 0.28);
  border-radius: var(--r);
  background: var(--accent-soft);
  color: #b9d4ff;
  padding: 0 12px;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.room-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
}

/* Buttons and panels */
.btn-primary,
.btn-ghost,
.btn-danger {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r);
  padding: 0 16px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #55a4ff);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 128, 255, 0.25);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-danger {
  width: 100%;
  border: 1px solid rgba(255, 95, 104, 0.34);
  background: var(--danger-soft);
  color: #ff9aa1;
}

.btn-primary:disabled,
.btn-ghost:disabled,
.btn-danger:disabled,
.lang-btn:disabled,
.start-button:disabled,
.pkg-card:disabled {
  opacity: 0.52;
  cursor: default;
}

.section,
.start-panel,
.activity-panel,
.wallet-hero,
.package-list,
.qr-block,
.lang-pair-card,
.mic-card,
.transcript-card,
.auth-card,
.prose,
.admin-stats,
.gate-panel,
.price-strip {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(16, 21, 31, 0.88);
  box-shadow: var(--shadow);
}

.section,
.start-panel,
.activity-panel,
.package-list,
.qr-block,
.auth-card,
.prose {
  padding: 16px;
}

.section-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Landing */
body.landing-body {
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 128, 255, 0.20), transparent 330px),
    var(--bg);
}

body.landing-body .app {
  max-width: 460px;
}

.site-nav {
  justify-content: space-between;
}

.nav-login {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 13px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.gate {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gate-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gate-copy h1 {
  max-width: 8ch;
  color: var(--text);
  font-size: 2.48rem;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.gate-copy p {
  max-width: 310px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.98rem;
}

.phone-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, #141b28, #0d121b);
  padding: 12px;
}

.preview-top,
.preview-action,
.preview-live,
.preview-captions {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.preview-top,
.preview-action,
.preview-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-top span,
.preview-live span:last-child,
.preview-captions p {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-top strong,
.preview-action strong,
.preview-captions strong {
  color: var(--text);
  font-size: 0.95rem;
}

.preview-action span {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 900;
}

.preview-captions {
  display: grid;
  gap: 6px;
}

.gate-actions {
  display: grid;
  gap: 9px;
}

.price-strip {
  display: grid;
  gap: 1px;
  overflow: hidden;
  padding: 0;
}

.price-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.035);
}

.price-row span {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 700;
}

.price-row strong {
  color: var(--accent-2);
  font-size: 1.15rem;
  font-weight: 900;
}

.landing-footer,
.footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.landing-footer div,
.footer-links {
  display: flex;
  gap: 12px;
}

.landing-footer a,
.footer-links a,
.error-box a,
.info-box a,
.auth-switch a,
.field-link,
.prose a {
  color: #9ec4ff;
  text-decoration: none;
  font-weight: 800;
}

/* Dashboard */
.start-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.start-copy h1 {
  margin-top: 7px;
  color: var(--text);
  font-size: 1.72rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.start-button {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(47, 128, 255, 0.32);
  border-radius: var(--r);
  background: linear-gradient(135deg, #1d65d8, #2f80ff);
  color: #fff;
  padding: 0 16px;
  text-align: left;
  cursor: pointer;
}

.start-button strong {
  display: block;
  font-size: 1.22rem;
  font-weight: 900;
}

.start-button small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
}

.start-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.45rem;
  font-weight: 900;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lang-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lang-btn {
  min-width: 0;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
}

.lang-flag {
  font-size: 1.35rem;
  line-height: 1;
}

.lang-name {
  max-width: 100%;
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-row a,
.quick-row button {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 12px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.quick-row span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-row strong {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 900;
}

.activity-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ledger-list {
  display: flex;
  flex-direction: column;
}

.ledger-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-2);
  font-size: 0.86rem;
}

.ledger-row:first-child {
  border-top: 0;
}

.ledger-amount {
  color: var(--text);
  font-weight: 900;
  white-space: nowrap;
}

.ledger-pos {
  color: var(--accent-2);
}

.ledger-neg {
  color: #ff9aa1;
}

.bottom-nav {
  position: sticky;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(13, 18, 27, 0.9);
  padding: 5px;
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 900;
}

.bottom-nav a.active {
  background: var(--accent-soft);
  color: #cfe2ff;
}

/* Wallet */
.wallet-hero {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(47, 128, 255, 0.26), transparent 62%),
    var(--surface);
}

.wallet-hero span {
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-hero strong {
  color: var(--text);
  font-size: 3rem;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

.wallet-hero small {
  color: var(--text-2);
  font-size: 1rem;
}

.package-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.package-list form {
  margin: 0;
}

.pkg-card {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
}

.pkg-card span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pkg-card span:last-child {
  align-items: flex-end;
}

.pkg-card strong {
  font-size: 1rem;
  font-weight: 900;
}

.pkg-card small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Room */
.join-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qr-block {
  align-items: center;
  gap: 14px;
}

.qr-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qr-title strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
}

.qr-title span,
.qr-expire {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.qr-frame {
  width: min(248px, 78vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: #fff;
  padding: 14px;
}

.qr-frame canvas,
.qr-frame img {
  width: 100% !important;
  height: 100% !important;
}

.share-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.share-url-input,
.join-input,
.field-input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.share-url-input {
  color: var(--muted);
  font-size: 0.78rem;
}

.share-btns {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.share-btns:has(.share-native:not(.hidden)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.share-btn {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.share-btn-icon,
.share-btn-icon svg {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.share-native svg path,
.share-sms svg path,
.share-email svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-pill,
.live-quality {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(47, 224, 180, 0.22);
  border-radius: 999px;
  background: var(--success-soft);
  color: #b7fbe9;
  padding: 0 13px;
  font-size: 0.76rem;
  font-weight: 900;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(47, 224, 180, 0.12);
}

.spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}

.spinner.lg {
  width: 38px;
  height: 38px;
  border-width: 3px;
}

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

.connecting-box,
.ended-box {
  min-height: 52svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.connecting-box p,
.ended-box p {
  color: var(--text-2);
  font-weight: 800;
}

.lang-pair-card {
  min-height: 98px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.lang-side {
  min-width: 0;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.035);
}

.lang-side.mine {
  background: var(--accent-soft);
}

.lang-side-flag {
  font-size: 1.9rem;
  line-height: 1;
}

.lang-side-name {
  max-width: 100%;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-side-role {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.pair-divider {
  color: var(--accent-2);
  font-size: 1.1rem;
  font-weight: 900;
}

.mic-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 46%, rgba(47, 128, 255, 0.22), transparent 120px),
    rgba(16, 21, 31, 0.88);
}

.mic-ring-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-ring {
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(47, 128, 255, 0.72);
  border-radius: 999px;
  opacity: 0;
  animation: ring-pulse 2.3s ease-out infinite;
}

.mic-ring:nth-child(2) {
  animation-delay: 0.72s;
}

.mic-ring:nth-child(3) {
  animation-delay: 1.44s;
}

@keyframes ring-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

.mic-icon-bg {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 128, 255, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.28), rgba(47, 224, 180, 0.13));
  color: var(--text);
}

.mic-icon-bg svg {
  width: 28px;
  height: 28px;
}

.mic-icon-bg svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mic-label {
  max-width: 280px;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.transcript-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.transcript-row {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
}

.transcript-row + .transcript-row {
  border-top: 1px solid var(--line-soft);
}

.transcript-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.transcript-row p {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.end-call {
  min-height: 54px;
}

/* Auth and forms */
.auth-header {
  justify-content: center;
}

.auth-card {
  gap: 16px;
}

.auth-title {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 900;
}

.auth-switch {
  color: var(--text-2);
  font-size: 0.84rem;
  text-align: center;
}

/* Messages */
.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.flash,
.error-box,
.info-box {
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 0.84rem;
  font-weight: 700;
}

.flash-success,
.info-box {
  border: 1px solid rgba(47, 224, 180, 0.22);
  background: var(--success-soft);
  color: #b7fbe9;
}

.flash-error,
.error-box {
  border: 1px solid rgba(255, 95, 104, 0.28);
  background: var(--danger-soft);
  color: #ffb1b6;
}

/* Prose, legal, support */
.prose {
  color: var(--text-2);
}

.prose-title {
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 900;
}

.prose-meta {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 4px;
}

.prose h3 {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  margin: 20px 0 6px;
  text-transform: uppercase;
}

.prose p,
.faq-a {
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.65;
}

.support-cta {
  width: 100%;
  margin: 14px 0;
}

.faq-item {
  border-top: 1px solid var(--line-soft);
  padding: 12px 0;
}

.faq-q {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  margin-bottom: 4px;
}

/* Admin */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.stat-card {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(16, 21, 31, 0.88);
  padding: 10px;
}

.stat-value {
  color: var(--accent-2);
  font-size: 1.25rem;
  font-weight: 900;
}

.stat-label {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-link-btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 12px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 900;
}

.user-row,
.info-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
}

.user-row:first-of-type,
.info-row:first-of-type {
  border-top: 0;
}

.user-row-link {
  color: inherit;
  text-decoration: none;
}

.user-email {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
}

.user-meta,
.info-row span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.info-row strong {
  color: var(--text);
}

.badge-admin {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: #b9d4ff;
  padding: 0 6px;
  font-size: 0.65rem;
  font-weight: 900;
}

@media (min-width: 720px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(47, 128, 255, 0.14), transparent 420px),
      #05070b;
  }

  .app {
    padding-top: 22px;
  }
}

@media (max-width: 380px) {
  .app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .lang-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gate-copy h1 {
    font-size: 2.18rem;
  }

  .wallet-hero strong {
    font-size: 2.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
