/* ============================================================
   AFTER UTILS · páginas da conta (checkout e painel de controle)
   Mesmo visual da página de entrada (login.html). 17/10/2026.
   ============================================================ */
:root {
  --bg: #000000;
  --surface: #07070a;
  --surface-2: #0d0d12;
  --surface-3: #14141b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #a1a1aa;
  --dim: #71717a;
  --ok: #7adba8;
  --ok-bg: rgba(122, 219, 168, 0.1);
  --warn: #fcd34d;
  --warn-bg: rgba(252, 211, 77, 0.08);
  --err: #ffb3c0;
  --err-bg: rgba(255, 122, 150, 0.08);
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'Consolas', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(255,255,255,.035), transparent 60%);
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }

/* ---------- Topo ---------- */
.app-topo {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.app-marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.app-marca img { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-strong); }
.app-topo-dir { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chip-conta {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  text-decoration: none; font-size: 13px; font-weight: 500; color: #e4e4e7;
}
.chip-conta:hover { border-color: var(--line-strong); }
.chip-conta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }

/* ---------- Avatar ---------- */
.avatar {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #2a2a33, #15151b); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.g { width: 44px; height: 44px; font-size: 17px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface-2);
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: rgba(255,255,255,.28); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-claro { background: #fff; color: #0a0a0a; border-color: #fff; box-shadow: 0 10px 30px rgba(255,255,255,.08); }
.btn-claro:hover { background: #f1f1f1; border-color: #f1f1f1; box-shadow: 0 14px 40px rgba(255,255,255,.14); }
.btn-g { height: 54px; font-size: 15.5px; border-radius: 14px; width: 100%; }
.btn-p { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn-texto { background: transparent; border-color: transparent; color: var(--muted); }
.btn-texto:hover { background: rgba(255,255,255,.05); border-color: transparent; color: #fff; }
.btn-perigo:hover { border-color: rgba(255,122,150,.5); color: var(--err); }

/* ---------- Cartões ---------- */
.cartao {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 26px);
}
.cartao-titulo { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.cartao-sub { color: var(--muted); font-size: 13.5px; }
.rotulo { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.titulo-pagina { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }

/* ---------- Selos ---------- */
.selo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line); color: #d4d4d8; background: rgba(255,255,255,.03);
}
.selo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.selo-ok { color: var(--ok); border-color: rgba(122,219,168,.35); background: var(--ok-bg); }
.selo-aviso { color: var(--warn); border-color: rgba(252,211,77,.3); background: var(--warn-bg); }
.selo-erro { color: var(--err); border-color: rgba(255,122,150,.3); background: var(--err-bg); }

/* ---------- Avisos ---------- */
.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 14px; line-height: 1.55; }
.aviso svg { flex: 0 0 auto; margin-top: 2px; }
.aviso b { display: block; margin-bottom: 2px; }
.aviso-ok { border-color: rgba(122,219,168,.35); background: var(--ok-bg); color: #d1fae5; }
.aviso-ok svg { color: var(--ok); }
.aviso-aviso { border-color: rgba(252,211,77,.3); background: var(--warn-bg); color: #fef3c7; }
.aviso-aviso svg { color: var(--warn); }
.aviso-erro { border-color: rgba(255,122,150,.3); background: var(--err-bg); color: #ffe4e6; }
.aviso-erro svg { color: var(--err); }

/* ---------- Campos ---------- */
.campo {
  height: 44px; width: 100%; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #050507;
  font-size: 14px; outline: none; transition: border-color .2s;
}
.campo:focus { border-color: rgba(255,255,255,.45); }
.campo::placeholder { color: var(--dim); }

/* ---------- Carregando ---------- */
.giro { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: au-girar .7s linear infinite; flex: 0 0 auto; }
.btn-claro .giro { border-color: rgba(0,0,0,.2); border-top-color: #000; }
@keyframes au-girar { to { transform: rotate(360deg); } }
.esqueleto { border-radius: 10px; background: linear-gradient(100deg, #0d0d12 30%, #191921 50%, #0d0d12 70%); background-size: 240% 100%; animation: au-brilho 1.3s linear infinite; }
@keyframes au-brilho { from { background-position: 140% 0; } to { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) { .giro, .esqueleto { animation-duration: 3s; } }

/* ---------- Diversos ---------- */
.linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mudo { color: var(--muted); }
.fraco { color: var(--dim); }
.pequeno { font-size: 12.5px; }
.sep { height: 1px; background: var(--line); border: 0; margin: 16px 0; }
.lista-check { list-style: none; display: grid; gap: 9px; }
.lista-check li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #e4e4e7; }
.lista-check li::before {
  content: ''; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.passos-n { list-style: none; counter-reset: p; display: grid; gap: 12px; }
.passos-n li { counter-increment: p; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #e4e4e7; }
.passos-n li::before {
  content: counter(p); flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: #fff; color: #000;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.passos-n small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; }
kbd { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); }
.toast {
  position: fixed; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 420px; z-index: 60;
  padding: 12px 16px; border-radius: 12px; background: #111116; border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,.6); font-size: 14px; text-align: center;
  transform: translateY(20px); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); pointer-events: none;
}
.toast.show { transform: none; opacity: 1; }
.rodape-app { padding: 28px clamp(16px, 4vw, 40px) 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line); margin-top: 40px; }
.rodape-app a { color: var(--muted); text-decoration: none; }
.rodape-app a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 420px) { .app-marca span { display: none; } }
