/* Banco Bass — identidade própria: tinta profunda, violeta elétrico e ciano. */
:root {
  --bg: #f5f6fb; --bg-2: #eceef7; --surface: #ffffff; --surface-2: #f8f9fd;
  --text: #0d1124; --muted: #5a6180; --line: #e1e4f0;
  --brand: #5b3df5; --brand-2: #00b8d9; --brand-ink: #ffffff; --brand-soft: #ece8ff;
  --ok: #0f8a5f; --warn: #a15c00; --danger: #c4243b;
  --grad: linear-gradient(135deg, #5b3df5 0%, #3a2bd1 45%, #0090c9 100%);
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13,17,36,.05), 0 8px 24px -12px rgba(13,17,36,.18);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs: 16px;
}
:root[data-theme="dark"] {
  --bg: #070a17; --bg-2: #0c1124; --surface: #111733; --surface-2: #161d3d;
  --text: #eef0ff; --muted: #9aa2c7; --line: #232b52;
  --brand: #8b74ff; --brand-2: #2ee6ff; --brand-ink: #0a0720; --brand-soft: #1e1a48;
  --ok: #3ddc97; --warn: #ffb547; --danger: #ff6b81;
  --grad: linear-gradient(135deg, #6b4dff 0%, #3c2bd6 50%, #00a3d9 100%);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -16px rgba(0,0,0,.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070a17; --bg-2: #0c1124; --surface: #111733; --surface-2: #161d3d;
    --text: #eef0ff; --muted: #9aa2c7; --line: #232b52;
    --brand: #8b74ff; --brand-2: #2ee6ff; --brand-ink: #0a0720; --brand-soft: #1e1a48;
    --ok: #3ddc97; --warn: #ffb547; --danger: #ff6b81;
    --grad: linear-gradient(135deg, #6b4dff 0%, #3c2bd6 50%, #00a3d9 100%);
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -16px rgba(0,0,0,.6);
  }
}
:root[data-size="lg"] { --fs: 18px; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: var(--fs)/1.5 "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.side a.nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 550; min-height: 44px; }
.side a.nav:hover { background: var(--surface-2); color: var(--text); }
.side a.nav.on { background: var(--brand-soft); color: var(--text); }
.side a.nav svg { width: 22px; height: 22px; flex: none; }
.side .spacer { flex: 1; }
.content { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.topbar .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; position: relative; }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); border: 2px solid var(--surface); }
main { max-width: 1040px; margin: 0 auto; padding: 8px 24px 96px; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: 12px 16px; }
  main { padding: 4px 16px 104px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); text-decoration: none; padding: 6px 0; min-height: 48px; border-radius: 12px; }
  .tabbar a.on { color: var(--brand); }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a.pix { color: var(--brand-ink); }
  .tabbar a.pix span.ic { width: 46px; height: 46px; margin-top: -20px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px -8px var(--brand); }
}

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 19px; color: var(--text); text-decoration: none; padding: 4px 8px 18px; }
.logo svg { width: 32px; height: 32px; }

/* ---------- blocks ---------- */
h1 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 4px; } h2 { font-size: 18px; margin: 0 0 12px; letter-spacing: -.01em; } h3 { font-size: 16px; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--muted); } .small { font-size: 13.5px; } .mono { font-family: var(--mono); }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .row > * { flex: 1 1 150px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* hero / saldo */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 22px; color: #fff; background: var(--grad); box-shadow: 0 24px 48px -24px #3a2bd1; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(120deg, transparent 30%, #000 100%); pointer-events: none; }
.hero .wave { position: absolute; right: -10px; bottom: -6px; width: 260px; opacity: .35; }
.hero .lbl { opacity: .85; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hero .amount { font-size: 38px; font-weight: 750; letter-spacing: -.02em; font-family: var(--mono); margin: 4px 0 2px; }
.hero .meta { font-size: 13px; opacity: .85; font-family: var(--mono); }
.hero button.eye { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.hero .chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12.5px; }

/* atalhos */
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 600; padding: 14px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-height: 96px; }
.quick a:hover { border-color: var(--brand); }
.quick .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.quick svg { width: 22px; height: 22px; }

/* formulários */
label { display: block; font-size: 13.5px; color: var(--muted); margin: 12px 0 6px; font-weight: 550; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--danger); }
.big-input { font-size: 30px; font-family: var(--mono); font-weight: 700; text-align: center; letter-spacing: -.01em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 14px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.grad { background: var(--grad); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }
.check { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--text); font-size: 15px; }
.check input { width: 22px; min-height: 22px; height: 22px; accent-color: var(--brand); }

.seg { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; background: var(--bg-2); border-radius: 14px; margin-bottom: 16px; }
.seg button { flex: 1 1 auto; min-height: 40px; padding: 8px 14px; border-radius: 11px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* listas */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li.click { cursor: pointer; }
.list .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--muted); }
.list .ico svg { width: 18px; height: 18px; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amt { font-family: var(--mono); font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.in { color: var(--ok); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.pill.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.code { font-family: var(--mono); font-size: 13px; word-break: break-all; background: var(--surface-2); border: 1px dashed var(--line); padding: 12px; border-radius: 12px; }
.banner { padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); margin-bottom: 16px; font-size: 14.5px; }
.banner.warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14.5px; max-width: calc(100% - 32px); z-index: 50; box-shadow: var(--shadow); }
.toast.err { background: var(--danger); color: #fff; }

/* cartão */
.cc { position: relative; overflow: hidden; aspect-ratio: 1.586; max-width: 360px; border-radius: 20px; padding: 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #2ee6ff55 0%, transparent 45%), linear-gradient(135deg, #18124a, #0b0a24 70%); display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); border: 1px solid #ffffff1f; }
.cc .chipc { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #d9c27a, #a1883c); }
.cc.blocked { filter: grayscale(1) opacity(.6); }
.cc .num { font-size: 19px; letter-spacing: .1em; }

/* login */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .art { background: var(--grad); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 28px 28px; }
.auth .art > * { position: relative; }
.auth .art h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; max-width: 12ch; }
.auth .form { display: grid; place-items: center; padding: 32px 20px; }
.auth .form > div { width: min(440px, 100%); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .art { padding: 28px 20px; min-height: 180px; } .auth .art h2 { font-size: 28px; } }

dialog { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); padding: 22px; width: min(440px, calc(100% - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5,6,20,.6); backdrop-filter: blur(4px); }
.pinpad { display: flex; gap: 10px; justify-content: center; margin: 14px 0; }
.pinpad input { width: 52px; min-height: 58px; text-align: center; font-size: 24px; font-family: var(--mono); padding: 0; }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.receipt { font-family: var(--mono); }
.receipt dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.receipt dt { color: var(--muted); } .receipt dd { margin: 0; text-align: right; word-break: break-all; }
.hidden { display: none !important; }
.skeleton { height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--bg-2), var(--surface-2), var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
@media print { .side, .tabbar, .topbar, .noprint { display: none !important; } .shell { display: block; } .card { box-shadow: none; } }

/* páginas auxiliares (integrações, desenvolvedores) */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.top .logo { padding: 0; }
header.top .logo i { width: 28px; height: 28px; border-radius: 9px; background: var(--grad); display: inline-block; }
nav.links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
nav.links a { text-decoration: none; color: var(--muted); font-weight: 550; }
nav.links a:hover { color: var(--text); }
.balance { font-size: 30px; font-weight: 750; letter-spacing: -.02em; font-family: var(--mono); }

/* venda garantida e meus dados */
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.btn.sm { min-height: 38px; padding: 6px 12px; flex: 0 0 auto; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: 13.5px; } .dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
