/* ==========================================================================
   Tá No Bolso — tema base
   Paleta tirada direto da logo: azul #1A9FD4 sobre fundo navy quase preto.
   Mobile-first; o desktop só centraliza a coluna.
   ========================================================================== */

/* A fonte NÃO é importada aqui de propósito. Um @import dentro do CSS é
   descoberto só depois que o CSS baixa, e segura a primeira pintura da tela —
   o app parecia travado enquanto a fonte não chegava. Cada página carrega a
   Inter por <link> não-bloqueante e o texto aparece na hora com a fonte do
   sistema, trocando sozinho quando a Inter chega. */

:root {
  --brand: #1a9fd4;
  --brand-300: #5cbde8;
  --brand-400: #38aede;
  --brand-600: #1587b8;
  --brand-700: #0f6f99;
  --brand-soft: rgba(26, 159, 212, 0.12);
  --brand-line: rgba(26, 159, 212, 0.28);
  --brand-glow: rgba(26, 159, 212, 0.35);

  --bg: #060b13;
  --bg-2: #08101b;
  --elev: #0b1420;
  --card: #0e1927;
  --card-2: #12203312;
  --line: rgba(255, 255, 255, 0.08);

  --text: #e9f3fa;
  --muted: #8fa5b9;
  --dim: #64798d;

  --green: #22c55e;
  --green-2: #16a34a;
  --red: #f0454b;
  --red-2: #d92b31;
  --gold: #f5b301;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --nav-h: 74px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  /* grade discreta + brilho azul no topo, a assinatura visual do app */
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(26, 159, 212, 0.16) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 46px 46px, 46px 46px;
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-300); text-decoration: none; }
button { font-family: inherit; }

/* Todo ícone nasce com um tamanho sensato. Sem isto, um SVG sem width/height
   herda o tamanho do container e engole a tela. As regras de componente mais
   abaixo (botão, avatar, direção...) continuam mandando por especificidade. */
svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  padding-top: 18px;
  padding-bottom: calc(var(--nav-h) + 28px);
  animation: fade 0.28s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.hidden { display: none !important; }

/* ------------------------------------------------------------------ header */

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 0 12px;
  background: linear-gradient(180deg, rgba(6, 11, 19, 0.96) 60%, rgba(6, 11, 19, 0));
  backdrop-filter: blur(8px);
}

.app-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-logo { height: 34px; width: auto; }
.app-logo.lg { height: 58px; }

/* ------------------------------------------------------------------- texto */

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: 26px; font-weight: 900; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 800; }
p { margin: 0; line-height: 1.55; }

.title-xl { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.center { text-align: center; }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.upper { text-transform: uppercase; letter-spacing: 0.08em; }
.brand-text { color: var(--brand); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.page-title svg { width: 26px; height: 26px; color: var(--brand); }

/* ------------------------------------------------------------------- cards */

.card {
  background: linear-gradient(180deg, var(--card) 0%, var(--elev) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.card + .card { margin-top: 14px; }

.card.brand {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 1px rgba(26, 159, 212, 0.06), 0 18px 40px -24px var(--brand-glow);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.card-head svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.card-head h3 { font-size: 15px; }

/* ----------------------------------------------------------------- botões */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
  text-align: center;
}
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow: 0 10px 30px -12px var(--brand-glow);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-success { background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%); }
.btn-danger { background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%); }
.btn-gold { background: linear-gradient(135deg, #ffc93c 0%, #f08c00 100%); color: #201400; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--brand-line);
  color: var(--brand-300);
}
.btn-ghost:hover { background: var(--brand-soft); }

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

.btn-sm { padding: 10px 14px; font-size: 12px; border-radius: 11px; width: auto; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { width: 100%; }

/* ---------------------------------------------------------------- formulário */

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input, select.input, textarea.input {
  width: 100%;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--dim); }
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 159, 212, 0.16);
}
textarea.input { resize: vertical; min-height: 84px; }
select.input { appearance: none; background-image: none; }

.form-error {
  background: rgba(240, 69, 75, 0.12);
  border: 1px solid rgba(240, 69, 75, 0.3);
  color: #ffb4b7;
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 13px;
  margin-bottom: 14px;
}
.form-ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #a7f3c4;
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* ------------------------------------------------------------------- chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px -8px var(--brand-glow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge svg { width: 12px; height: 12px; }
.badge-vip { background: linear-gradient(135deg, #ffc93c, #f08c00); color: #201400; }
.badge-free { background: rgba(255, 255, 255, 0.1); color: var(--muted); }
.badge-live { background: rgba(34, 197, 94, 0.16); color: #6ee7a0; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-wait { background: rgba(245, 179, 1, 0.14); color: #ffd166; border: 1px solid rgba(245, 179, 1, 0.3); }
.badge-green { background: rgba(34, 197, 94, 0.16); color: #6ee7a0; }
.badge-red { background: rgba(240, 69, 75, 0.16); color: #ff9ba0; }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* ----------------------------------------------------------------- timeline */

.steps { position: relative; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 21px; top: 46px; bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-line), rgba(255, 255, 255, 0.04));
}
.step:last-child::before { display: none; }

.step-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-300);
  font-weight: 900;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.step-icon svg { width: 20px; height: 20px; }

/* Cada passo tem a sua cor, como no app de referência: azul da marca, verde do
   depósito, amarelo do contato, roxo da liberação. Ajuda a ler a jornada. */
.step-icon.s2 { background: rgba(34, 197, 94, 0.13); border-color: rgba(34, 197, 94, 0.38); color: #6ee7a0; }
.step-icon.s3 { background: rgba(245, 179, 1, 0.13); border-color: rgba(245, 179, 1, 0.38); color: #ffd166; }
.step-icon.s4 { background: rgba(167, 139, 250, 0.13); border-color: rgba(167, 139, 250, 0.38); color: #c4b5fd; }

.step-body { flex: 1; min-width: 0; padding-top: 2px; }
.step-n { font-size: 11px; font-weight: 900; color: var(--brand); letter-spacing: 0.12em; }
.step-n.s2 { color: #4ade80; }
.step-n.s3 { color: var(--gold); }
.step-n.s4 { color: #a78bfa; }
.step-title { font-size: 15px; font-weight: 800; margin: 3px 0 5px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.step .btn { margin-top: 11px; }

/* --------------------------------------------------------------- gate VIP */

.emoji { font-size: 17px; line-height: 1; flex: none; }

.avatar.vip-crown {
  background: linear-gradient(135deg, #ffc93c, #f08c00);
  box-shadow: 0 0 40px -6px rgba(245, 179, 1, 0.6);
}
.avatar.vip-crown svg { color: #241600; }

.vip-hint {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(26, 159, 212, 0.07);
  border: 1px solid var(--brand-line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.vip-pending {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 13px;
  background: rgba(245, 179, 1, 0.08);
  border: 1px solid rgba(245, 179, 1, 0.32);
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffd98a;
}
.vip-pending svg { color: var(--gold); margin-top: 2px; }

.vip-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
}
.vip-back:hover { color: var(--muted); }

/* --------------------------------------------------------------- grid stats */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.stat { text-align: center; }
.stat .v { font-size: 26px; font-weight: 900; line-height: 1; }
.stat .k { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; margin-top: 6px; }
.stat.green .v { color: var(--green); }
.stat.red .v { color: var(--red); }
.stat.brand .v { color: var(--brand); }

.benefit {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.benefit svg { width: 20px; height: 20px; color: var(--brand); margin-bottom: 10px; }
.benefit .t { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.benefit .d { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* -------------------------------------------------------------------- tabs */

.tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 5px;
}
.tab {
  flex: 1;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab.active { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------- painel sinal */

.signal-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #6ee7a0;
}
.signal-banner.idle {
  background: linear-gradient(135deg, rgba(26, 159, 212, 0.14), rgba(26, 159, 212, 0.04));
  border-color: var(--brand-line);
  color: var(--brand-300);
}

.asset-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.asset-card .k { font-size: 10px; font-weight: 800; color: var(--brand); letter-spacing: 0.14em; }
.asset-card .v { font-size: 24px; font-weight: 900; margin-top: 4px; }

.direction {
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.direction svg { width: 40px; height: 40px; }
.direction.call {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 20px 45px -22px rgba(34, 197, 94, 0.85);
}
.direction.put {
  background: linear-gradient(135deg, #f0454b, #b91c1c);
  box-shadow: 0 20px 45px -22px rgba(240, 69, 75, 0.85);
}

.meta-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
}
.meta-box .k {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.meta-box .k svg { width: 13px; height: 13px; color: var(--brand); }
.meta-box .v { font-size: 16px; font-weight: 800; margin-top: 5px; }

.ticker {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px; font-weight: 800; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.ticker svg { width: 15px; height: 15px; color: var(--brand); }

.hist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.hist-row:last-child { border-bottom: 0; }
.hist-row .a { font-weight: 800; flex: none; }
.hist-row .d { font-weight: 800; font-size: 12px; flex: 1; }
.hist-row .d.call { color: var(--green); }
.hist-row .d.put { color: var(--red); }
.hist-row .t { color: var(--dim); font-size: 12px; flex: none; }

/* --------------------------------------------------------------- countdown */

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-cell { text-align: center; }
.cd-cell .n { font-size: 28px; font-weight: 900; color: var(--brand); line-height: 1; }
.cd-cell .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; margin-top: 6px; }

.rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rank-row:last-child { border-bottom: 0; }
.rank-pos {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px; font-weight: 900; color: var(--muted);
}
/* Medalha vem da posição real, não da ordem no DOM — o card tem cabeçalho antes
   das linhas, e nth-child contava ele junto. */
.rank-pos.medal-1 { background: linear-gradient(135deg, #ffc93c, #f08c00); color: #201400; }
.rank-pos.medal-2 { background: linear-gradient(135deg, #d6dde5, #9aa8b6); color: #14202b; }
.rank-pos.medal-3 { background: linear-gradient(135deg, #e0a878, #b8703c); color: #2a1405; }
.rank-name { flex: 1; font-weight: 700; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { font-weight: 800; font-size: 13px; color: var(--brand); }

/* ------------------------------------------------------------------ perfil */

.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  display: grid; place-items: center;
  margin: 0 auto;
  box-shadow: 0 0 40px -8px var(--brand-glow);
}
.avatar svg { width: 44px; height: 44px; color: #041018; }

.plan-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 13px;
  padding: 14px;
}
.plan-box svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.plan-box.vip { background: rgba(245, 179, 1, 0.1); border-color: rgba(245, 179, 1, 0.32); }
.plan-box.vip svg { color: var(--gold); }
.plan-box .t { font-size: 15px; font-weight: 800; }
.plan-box .d { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* -------------------------------------------------------------- bottom nav */

.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(8, 16, 27, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition: transform 0.25s ease;
}
.bottom-nav.hide { transform: translateY(110%); }

.nav-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  padding: 8px 12px;
}

.nav-item {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 9px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
}
.nav-item svg { width: 21px; height: 21px; }
.nav-item.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff;
  box-shadow: 0 8px 22px -10px var(--brand-glow);
}
.nav-item .nav-badge {
  position: absolute;
  top: 3px; right: 50%;
  transform: translateX(27px);
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
/* Sobre o item ativo (gradiente azul) o badge translúcido some. O VIP dourado
   aguenta o contraste; o FREE precisa de um fundo sólido. */
.nav-item.active .nav-badge.badge-free {
  background: rgba(3, 12, 21, 0.6);
  color: #dceaf5;
}

.nav-toggle {
  position: fixed;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) - 2px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 39;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(8, 16, 27, 0.96);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 11px 11px 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: bottom 0.25s ease;
}
.nav-toggle svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.nav-toggle.collapsed { bottom: env(safe-area-inset-bottom, 0px); }
.nav-toggle.collapsed svg { transform: rotate(180deg); }

/* ------------------------------------------------------------------ loader */

.loader {
  width: 30px; height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 40px auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 37%, rgba(255,255,255,.04) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 10px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--dim); margin: 0 auto 12px; }

/* ------------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 22px);
  transform: translate(-50%, 20px);
  z-index: 90;
  max-width: 460px;
  width: calc(100% - 32px);
  padding: 13px 16px;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  background: var(--card);
  border: 1px solid var(--brand-line);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(240, 69, 75, 0.45); color: #ffb4b7; }
.toast.ok { border-color: rgba(34, 197, 94, 0.45); color: #a7f3c4; }

/* ----------------------------------------------------------------- desktop */

@media (min-width: 720px) {
  .wrap { max-width: 560px; }
  .nav-inner { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
