/* ========================================================================
   aqueceai.pro — Área do cliente (Minha conta / Compra aprovada / Histórico)
   Tokens do painel (Aqueceai Redesign)
   ===================================================================== */
:root {
  /* white mode (padrão) */
  --accent: #b8863b; --accent-hover: #a3722a;
  --accent-soft: rgba(184,134,59,0.12); --accent-glow: rgba(184,134,59,0.16);
  --accent-border: rgba(184,134,59,0.32); --accent-contrast: #1a1408;
  --bg: #faf8f3; --bg-elev: #f5f2ea; --surface-1: #ffffff; --surface-2: #f6f2e9; --surface-3: #eee9dd;
  --border: rgba(40,32,12,0.09); --border-strong: rgba(40,32,12,0.16);
  --text: #201b12; --text-dim: #6a6252; --text-mute: #97907f; --text-faint: #c0b9a9;
  --success: #1f9d63; --success-soft: rgba(31,157,99,0.12);
  --error: #d9455c;
  --nav-bg: rgba(250,248,243,0.78);
  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22,1,0.36,1);
}
:root[data-theme="dark"] {
  --accent: #d8a85a; --accent-hover: #e6b96e;
  --accent-soft: rgba(216,168,90,0.12); --accent-glow: rgba(216,168,90,0.18);
  --accent-border: rgba(216,168,90,0.25); --accent-contrast: #1a1408;
  --bg: #0a0908; --bg-elev: #0f0e0c; --surface-1: #14130f; --surface-2: #1a1814; --surface-3: #221f1a;
  --border: rgba(255,245,220,0.07); --border-strong: rgba(255,245,220,0.12);
  --text: #f4efe3; --text-dim: #a39c8e; --text-mute: #6f6a60; --text-faint: #4a463f;
  --success: #5dd49b; --success-soft: rgba(93,212,155,0.12);
  --error: #ef5a6f;
  --nav-bg: rgba(10,9,8,0.72);
}
* { box-sizing: border-box; }
/* [hidden] do navegador perde pra qualquer `display` de classe (.badge é inline-flex):
   o selo "Mais popular" aparecia em TODO plano. Bug do smoke da /conta, 05/09/2026. */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on, 'cv11' on;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; }
p { margin: 0; }
::selection { background: var(--accent-soft); color: var(--accent); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,245,220,0.08); border-radius: 999px; border: 2px solid var(--bg); }

.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }

@keyframes pulseDot { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade { animation: fadeUp 600ms var(--ease) both; }
.fade.d1 { animation-delay: 80ms; } .fade.d2 { animation-delay: 160ms; }
.fade.d3 { animation-delay: 240ms; } .fade.d4 { animation-delay: 320ms; }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } }

/* ===== botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 14px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
  transition: all 150ms var(--ease);
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: var(--accent-contrast); border-color: transparent;
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 12px; }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}

/* ===== nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px);
  display: flex; align-items: center; gap: 20px; height: 66px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--text); }
.nav-logo:hover { color: var(--text); }
.nav-logo img { width: 28px; height: 28px; }
.nav-logo .pro { color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-right a { font-size: 13.5px; color: var(--text-dim); font-weight: 500; transition: color 140ms; }
.nav-right a:hover { color: var(--text); }
.nav-user {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 14px 0 6px; border-radius: 999px;
  background: var(--surface-1); border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.nav-avatar {
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}

/* ===== layout ===== */
.page { max-width: 1060px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 32px) 90px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 36px); }
.page-head h1 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.035em; margin-top: 8px; }
.page-head .sub { color: var(--text-dim); font-size: 14.5px; margin-top: 6px; max-width: 520px; }

/* ===== cards ===== */
.card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; transition: border-color 200ms;
}
.card-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border);
}
.badge-success { background: var(--success-soft); color: var(--success); border-color: rgba(93,212,155,0.25); }
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; animation: pulseDot 1.8s infinite; }

/* linhas de dado (label + valor) */
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: none; padding-bottom: 0; }
.kv .k { font-size: 13px; color: var(--text-mute); flex-shrink: 0; }
.kv .v { font-size: 14px; font-weight: 600; text-align: right; letter-spacing: -0.01em; }
.kv .v.mono { font-family: var(--font-mono); font-weight: 500; font-size: 13px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: clamp(32px, 5vw, 44px) 0 28px; background: var(--bg-elev); }
.footer-inner { max-width: 1060px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px;
  padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand .nav-logo img { width: 26px; height: 26px; }
.footer-brand p { font-size: 13px; color: var(--text-mute); max-width: 260px; text-wrap: pretty; }
.footer-col h4 {
  margin: 0 0 12px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: var(--text-dim); }
.footer-col a:hover { color: var(--text); }
.footer-legal {
  display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
}
.footer-legal .cnpj { margin-left: auto; }
@media (max-width: 560px) { .footer-legal .cnpj { margin-left: 0; } }
