/* ============================================================
   Confessa — shared design system
   bg #080808 · cards #0f0f0f / border #1a1a1a
   roxo #a855f7 / #7c3aed · verde #22c55e · Inter · radius 14–18
   ============================================================ */

:root {
  --bg: #080808;
  --bg-2: #0b0b0b;
  --card: #0f0f0f;
  --card-2: #131313;
  --line: #1a1a1a;
  --line-2: #232323;

  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --ink-3: #6b6b73;

  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --green: #22c55e;
  --green-deep: #16a34a;

  --grad-purple: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  --glow-purple: 0 0 0 1px rgba(168,85,247,.25), 0 18px 50px -12px rgba(124,58,237,.55);

  --r-sm: 12px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 22px;

  --pad: 20px;
  --maxw: 460px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 50% -8%, rgba(124,58,237,.12), transparent 60%),
    var(--bg);
}

.tabular { font-variant-numeric: tabular-nums; }

/* ---- shell: centered mobile column ---- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad) 48px;
  position: relative;
}

/* ---- brand mark ---- */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand .glyph {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad-purple);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(124,58,237,.7);
  flex: none;
}
.brand .glyph::after {
  content: ""; width: 9px; height: 9px; border-radius: 50% 50% 50% 2px;
  background: #fff;
}
.brand .word {
  font-weight: 700; font-size: 18px; letter-spacing: -0.03em; color: var(--ink);
}
.brand .word b { color: var(--purple); font-weight: 700; }

/* ---- cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}
.card.tight { padding: 14px; }

/* ---- buttons ---- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px;
  color: var(--ink);
  border-radius: var(--r);
  padding: 13px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .14s var(--ease), filter .2s var(--ease), background .2s, border-color .2s;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: var(--grad-purple);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(124,58,237,.7), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }

.btn-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #04190c;
  box-shadow: 0 12px 30px -12px rgba(34,197,94,.6), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-green:hover:not(:disabled) { filter: brightness(1.05); }

.btn-ghost {
  background: var(--card-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover:not(:disabled) { border-color: #34343a; background: #161616; }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 13px; font-size: 13.5px; border-radius: 11px; }

/* ---- inputs ---- */
.field { margin-bottom: 15px; }
.label {
  display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-2); margin-bottom: 7px;
}
.input, .ta, .select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 13px 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder, .ta::placeholder { color: var(--ink-3); }
.input:focus, .ta:focus, .select:focus {
  outline: none; border-color: rgba(168,85,247,.7);
  box-shadow: 0 0 0 4px rgba(168,85,247,.14);
  background: #0c0c0c;
}
.ta { resize: none; line-height: 1.5; }

/* input with a fixed prefix (@ / R$) */
.affix {
  display: flex; align-items: stretch;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.affix:focus-within { border-color: rgba(168,85,247,.7); box-shadow: 0 0 0 4px rgba(168,85,247,.14); }
.affix .pre {
  display: grid; place-items: center; padding: 0 13px;
  color: var(--ink-2); font-weight: 600; font-size: 15px;
  background: #0c0c0c; border-right: 1px solid var(--line-2);
}
.affix input {
  flex: 1; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; padding: 13px 14px;
}
.affix input:focus { outline: none; }

.hint { font-size: 12px; color: var(--ink-3); margin-top: 7px; line-height: 1.45; }

/* eyebrow / section labels */
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}

/* pill / chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-2);
}
.chip.green { color: var(--green); border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.08); }
.chip.purple { color: var(--purple); border-color: rgba(168,85,247,.32); background: rgba(168,85,247,.1); }

.money { color: var(--green); font-variant-numeric: tabular-nums; }

/* avatar placeholder */
.avatar {
  border-radius: 50%; flex: none; object-fit: cover;
  background:
    linear-gradient(135deg, #2a1747, #3b1d63),
    repeating-linear-gradient(45deg, #1a1a1a 0 6px, #161616 6px 12px);
  display: grid; place-items: center;
  font-weight: 700; color: #d7c4f5; letter-spacing: -.02em;
  border: 1px solid var(--line-2);
  overflow: hidden;
}

/* divider */
.hr { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* small helpers */
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }

.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; }

/* focus-visible accessibility */
:focus-visible { outline: 2px solid rgba(168,85,247,.6); outline-offset: 2px; }

/* fade-in */
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

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

/* tiny scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #1d1d1d; border-radius: 9px; border: 2px solid var(--bg); }
