/* Hotspot Social — identidade valentinedev: violet #7B3FF2, blue #2F6BFF, pink #F0479B */

@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/BricolageGrotesque.woff") format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/static/fonts/Geist.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/GeistMono.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --surface: #F7F5FF; --card: #FFFFFF; --ink: #140F2E; --muted: #5B5675; --line: #E3DFF2; --night: #140F2E; --night-2: #231C45;
  --violet: #7B3FF2; --blue: #2F6BFF; --pink: #F0479B; --ok: #0F8A5F; --ok-bg: #E4F6EE; --err: #C2253F; --err-bg: #FDE8EC; --warn: #8A5A00; --warn-bg: #FFF3D6;
  --brand: #7B3FF2;
  --grad: linear-gradient(90deg, #7B3FF2, #2F6BFF 55%, #F0479B);
  --r-sm: 8px; --r-md: 14px; --r-lg: 24px;
  --display: "Bricolage Grotesque", system-ui, sans-serif; --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.5 var(--sans); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; font-weight: 800; } h2 { font-size: 1.25rem; font-weight: 700; } h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; } a { color: var(--violet); } small, .muted { color: var(--muted); } small { font-size: .85rem; }
code, .mono { font-family: var(--mono); }
img { max-width: 100%; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--violet); color: #fff; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: translateY(1px); }
.btn.brand { background: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: var(--err); } .btn.small { padding: 7px 14px; font-size: .85rem; } .btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=color], select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--violet) 45%, transparent); outline-offset: 1px; border-color: var(--violet); }
input[type=color] { padding: 3px; height: 44px; }
.field { margin-bottom: 16px; } .hint { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; margin-bottom: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.check b { display: block; } .check span { color: var(--muted); font-size: .88rem; }

/* ---------- cartões, tabelas, avisos ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin-bottom: 20px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.stat .n { font: 800 1.7rem var(--display); letter-spacing: -.02em; } .stat .l { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; } tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--line); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.err { background: var(--err-bg); color: var(--err); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #B9B4D0; margin-right: 6px; } .dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: .94rem; }
.alert.ok { background: var(--ok-bg); color: #0b5b3f; } .alert.err { background: var(--err-bg); color: #8f1a2e; } .alert.warn { background: var(--warn-bg); color: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .actions form { margin: 0; }
.top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; } .top h1 { margin: 0; }
pre.code { background: var(--night); color: #E9E4FF; padding: 16px; border-radius: var(--r-md); overflow: auto; max-height: 340px; font: 12.5px/1.5 var(--mono); white-space: pre; margin: 0 0 12px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: s; padding: 4px 0 4px 38px; position: relative; margin-bottom: 8px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 .85rem var(--display); display: grid; place-items: center; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; } .tabs a { padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); background: var(--card); border: 1px solid var(--line); font-size: .9rem; } .tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }

/* ---------- estrutura do painel ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--night); color: #D9D3F2; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .logo { display: block; margin: 2px 6px 6px; } .side .logo img { height: 28px; width: auto; }
.logo-sub { display: block; margin-top: 9px; font: 500 .66rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #A7A4D8; }
.side .who { font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8F89B2; margin: 0 8px 16px; }
.side a.nav { display: block; padding: 10px 12px; border-radius: 10px; color: #D9D3F2; text-decoration: none; font-weight: 500; }
.side a.nav:hover { background: var(--night-2); } .side a.nav.on { background: var(--night-2); color: #fff; box-shadow: inset 3px 0 0 var(--pink); }
.side form { margin-top: auto; } .side .btn { width: 100%; }
.main { padding: 32px clamp(16px, 4vw, 44px) 24px; min-width: 0; display: flex; flex-direction: column; }
.main > .content { flex: 1; width: 100%; max-width: 1040px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; gap: 6px; }
  .side .who, .side .logo-sub { display: none; } .side .logo { margin-right: auto; } .side a.nav { padding: 7px 11px; font-size: .88rem; } .side form { margin: 0; width: auto; } .side .btn { padding: 7px 14px; }
}

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 420px at 80% -10%, rgba(123,63,242,.18), transparent 60%), radial-gradient(700px 380px at 0% 110%, rgba(240,71,155,.14), transparent 60%), var(--surface); }
.auth .box { width: 100%; max-width: 400px; } .auth .logo { display: block; margin: 0 auto 22px; height: 34px; }
.auth .logo-wrap { margin-bottom: 22px; text-align: center; } .auth .logo-wrap .logo { margin-bottom: 0; } .auth .logo-sub { margin-top: 10px; color: var(--muted); }
.auth .card { padding: 28px; box-shadow: 0 18px 50px -22px rgba(20,15,46,.35); }

/* ---------- crédito valentinedev ---------- */
.credit { text-align: center; padding: 22px 12px 8px; color: var(--muted); font-size: .82rem; }
.credit a { text-decoration: none; color: inherit; }
.credit b { font-family: var(--mono); font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- portal do cliente final ---------- */
body.area-portal { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 14%, #fff) 0, var(--surface) 280px); min-height: 100vh; }
.pt { max-width: 460px; margin: 0 auto; padding: 26px 16px 8px; }
.pt-head { text-align: center; margin-bottom: 22px; } .pt-head img { max-height: 64px; max-width: 70%; margin-bottom: 10px; }
.pt-head h1 { font-size: 1.7rem; margin-bottom: 6px; } .pt-head p { color: var(--muted); margin: 0; }
.pt .btn.brand, .pt .btn { background: var(--brand); } .pt .btn.ghost { background: transparent; }
.plan { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--line); border-radius: var(--r-md); background: #fff; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.plan:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.plan input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; } .plan .nm { flex: 1; } .plan .nm b { display: block; font-family: var(--display); font-size: 1.08rem; } .plan .nm span { color: var(--muted); font-size: .85rem; }
.plan .pr { font: 800 1.2rem var(--display); white-space: nowrap; }
.methods { display: grid; gap: 10px; margin-top: 14px; } .methods.two { grid-template-columns: 1fr 1fr; }
.sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 22px 0 14px; } .sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.voucher-in { text-align: center; font: 600 1.3rem var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.pay { text-align: center; } .pay .amount { font: 800 2rem var(--display); margin-bottom: 4px; }
.pay img.qr { width: 230px; height: 230px; image-rendering: pixelated; background: #fff; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--line); margin: 10px auto; display: block; }
.copybox { word-break: break-all; font: 12px/1.4 var(--mono); background: #fff; border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 10px; margin: 10px 0; max-height: 96px; overflow: auto; text-align: left; }
.spinner { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; margin: 14px auto; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.creds { background: #fff; border: 1.5px dashed var(--brand); border-radius: var(--r-md); padding: 14px; margin: 14px 0; } .creds div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; } .creds b { font-family: var(--mono); letter-spacing: .06em; }
.wa { display: block; text-align: center; margin-top: 18px; font-size: .9rem; }
.hidden { display: none !important; }

/* ---------- impressão de vouchers ---------- */
body.area-print { background: #fff; padding: 14px; } .print-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vcard { border: 1.5px dashed #888; border-radius: 8px; padding: 10px 12px; text-align: center; break-inside: avoid; }
.vcard .t { font: 700 .8rem var(--display); color: var(--muted); } .vcard .c { font: 700 1.25rem var(--mono); letter-spacing: .12em; margin: 4px 0; } .vcard .i { font-size: .72rem; color: #555; } .vcard .u { font: 600 .7rem var(--mono); color: #333; margin-top: 4px; }
@media print { .print-bar, .credit { display: none !important; } body.area-print { padding: 0; } .vgrid { gap: 6px; } }
@media (max-width: 520px) { .methods.two { grid-template-columns: 1fr; } .vgrid { grid-template-columns: repeat(2, 1fr); } }
