/* nDetail — tema inspirado na tabela de preços: carbono, vermelho e branco */
:root {
  --ink: #f6f6f7;
  --ink-2: #c4c4cb;
  --muted: #84848e;
  --paper: #09090b;
  --card: #121215;
  --card-2: #1a1a1f;
  --card-3: #222228;
  --line: #26262d;
  --line-2: #34343c;
  --red: #e5141b;
  --red-2: #ff2b31;
  --red-dark: #a50d12;
  --red-soft: rgba(229, 20, 27, .14);
  --danger: #ff5a5f;
  --ok: #3ddc84;
  --radius: 16px;
  --display: "Saira", "Archivo", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* aliases usados pelo app.js */
  --water: var(--red);
  --foam: var(--red-soft);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--paper); }
body {
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
/* faixas de luz vermelha diagonais (como no folheto) + textura */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 8%, rgba(229,20,27,.55) 8.15%, transparent 8.6%),
    linear-gradient(118deg, transparent 0 92%, rgba(229,20,27,.45) 92.1%, transparent 92.5%),
    radial-gradient(70% 50% at 100% 0%, rgba(229,20,27,.16), transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(229,20,27,.10), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    var(--paper);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--red); color: #fff; }
.ico { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }

.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100vh; color: var(--muted); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.boot img { width: 64px; animation: crawl 1.4s ease-in-out infinite; filter: drop-shadow(0 8px 20px rgba(229,20,27,.5)); }
@keyframes crawl { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.auth-card {
  width: 100%; max-width: 410px; position: relative;
  background: linear-gradient(180deg, rgba(26,26,31,.92), rgba(14,14,17,.96));
  border: 1px solid var(--line-2); border-radius: 22px; padding: 30px 26px 26px;
  box-shadow: 0 40px 90px -30px rgba(229,20,27,.45), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(8px); animation: rise .5s var(--ease) both;
}
.auth-card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.auth-card .logo-big {
  display: block; width: min(250px, 78%); margin: 0 auto 8px;
  filter: drop-shadow(0 10px 30px rgba(229,20,27,.35));
}
.auth-card .kicker {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  color: var(--muted); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; margin-bottom: 22px;
}
.auth-card .kicker::before, .auth-card .kicker::after { content: ""; height: 1px; width: 34px; background: var(--red); }
.auth-card h2 {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 30px; line-height: 1; margin: 0 0 8px; letter-spacing: -.01em;
}
.auth-card p.lead { color: var(--ink-2); margin: 0 0 22px; font-size: 14px; line-height: 1.55; }

/* ---------- topo ---------- */
.app-head { position: sticky; top: 0; z-index: 20; }
.topbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(9,9,11,.82); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--red) 0 30%, transparent 75%);
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0; }
.brand img { height: 38px; width: auto; display: block; filter: drop-shadow(0 4px 12px rgba(229,20,27,.25)); }
.brand small {
  display: none; color: var(--muted); font-weight: 600; font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; border-left: 1px solid var(--line-2); padding-left: 12px; line-height: 1.3;
}
@media (min-width: 560px) { .brand small { display: block; } }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.who .pill {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink);
  padding: 5px 12px 5px 5px; border-radius: 99px; font-weight: 700; transition: border-color .2s;
}
.who .pill:hover { border-color: var(--red); }
.who .avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red-2), var(--red-dark)); color: #fff; font-weight: 900; font-size: 13px;
}
.who .role {
  background: var(--red-soft); color: var(--red-2); font-weight: 800; font-size: 9px; padding: 3px 6px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .1em;
}

.tabs {
  position: relative;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 0 10px; background: rgba(12,12,15,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 14px 14px 13px; font-weight: 700; font-size: 14px; color: var(--muted); transition: color .2s;
}
.tabs button:hover { color: var(--ink); }
.tabs button::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease);
}
.tabs button.active { color: #fff; }
.tabs button.active::after { transform: scaleX(1); }

main { max-width: 1040px; margin: 0 auto; padding: 22px 16px 120px; animation: rise .4s var(--ease) both; }

.section-title {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 7vw, 44px); line-height: .95; letter-spacing: -.015em; margin: 4px 0 20px;
}
.section-title span { color: var(--red); display: inline; }

/* ---------- cartões ---------- */
.card {
  position: relative; background: linear-gradient(180deg, var(--card), #0f0f12);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
  animation: rise .45s var(--ease) both;
}
.grid-2 > div > .card:nth-child(2) { animation-delay: .05s; }
.grid-2 > div > .card:nth-child(3) { animation-delay: .1s; }
.grid-2 > div > .card:nth-child(4) { animation-delay: .15s; }
.card h3 {
  margin: 0 0 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 700;
}
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; } }

/* faixa vermelha inclinada (igual aos títulos do folheto) */
.label-red {
  display: inline-flex; align-items: center; gap: 8px; position: relative;
  background: linear-gradient(90deg, var(--red-dark), var(--red) 30%, var(--red-2));
  color: #fff; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: 15px; letter-spacing: .01em; line-height: 1;
  padding: 8px 22px 8px 14px; margin: 0 0 14px -4px;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 6px 18px -6px rgba(229,20,27,.6);
}

/* ---------- formulários ---------- */
label.field { display: block; margin-bottom: 14px; }
label.field > span {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .12em;
}
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--card-2); outline: none; font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, select:hover { border-color: #44444d; }
input:focus, select:focus, textarea:focus { border-color: var(--red); background: #1d1d22; box-shadow: 0 0 0 4px var(--red-soft); }
input::placeholder { color: #55555e; }
input[type=date] { color-scheme: dark; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: var(--card-2); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 800; cursor: pointer; font-size: 14px;
  background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(229,20,27,.9), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .12s var(--ease), filter .2s, box-shadow .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.4); }
.btn.block { width: 100%; }
.btn.big {
  padding: 17px; font-size: 17px; font-family: var(--display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
}
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--red); color: #fff; filter: none; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid #4a2023; box-shadow: none; }
.btn.danger:hover { background: rgba(255,90,95,.08); filter: none; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.error { color: var(--danger); font-size: 13.5px; margin: 8px 0 0; min-height: 1em; }

/* ---------- tipo de veículo ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.cats button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1px solid var(--line-2); background: var(--card-2); border-radius: 14px; cursor: pointer;
  padding: 14px 6px 12px; color: var(--ink-2);
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: 12.5px; line-height: 1.1; text-align: center; overflow: hidden;
  transition: border-color .2s, color .2s, transform .15s var(--ease), background .2s;
}
.cats button:hover { border-color: #4a4a52; color: #fff; }
.cats button:active { transform: scale(.97); }
.cats button .ic { display: block; height: 30px; color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.cats button .ic svg { height: 30px; width: auto; }
.cats button.on {
  border-color: var(--red); color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, rgba(229,20,27,.32), rgba(229,20,27,.06) 70%), var(--card-2);
  box-shadow: 0 0 0 1px var(--red) inset, 0 12px 26px -16px rgba(229,20,27,.9);
}
.cats button.on .ic { color: var(--red-2); transform: translateX(3px); }

/* ---------- serviços (linhas como a tabela do folheto) ---------- */
.svc-grid { display: flex; flex-direction: column; gap: 8px; }
.svc {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 15px 16px 15px 48px;
  transition: border-color .2s, background .2s, transform .12s var(--ease);
}
.svc::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 6px; border: 1.5px solid #4a4a53; transition: all .2s var(--ease);
}
.svc:hover { border-color: #4a4a52; }
.svc:active { transform: scale(.995); }
.svc .n { flex: 1; font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.svc .p { font-family: var(--display); font-weight: 800; font-size: 19px; color: #fff; white-space: nowrap; letter-spacing: -.01em; }
.svc.on { border-color: var(--red); background: linear-gradient(90deg, rgba(229,20,27,.18), rgba(229,20,27,.04)); }
.svc.on::before {
  background: var(--red) 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
  border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft);
}
.svc.on .p { color: var(--red-2); }
.empty {
  color: var(--muted); text-align: center; padding: 30px 14px; font-size: 14px; line-height: 1.5;
  border: 1px dashed var(--line-2); border-radius: 12px;
}
.card > .empty:only-child, #list > .empty, #sum > .empty { border: 0; }

/* ---------- extras / pagamento ---------- */
.extras .extra { display: flex; gap: 8px; margin-bottom: 8px; animation: rise .25s var(--ease) both; }
.extras .extra input:first-child { flex: 2; }
.extras .extra input:nth-child(2) { flex: 1; }
.pay { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 4px; }
@media (max-width: 420px) { .pay { grid-template-columns: repeat(3, 1fr); } }
.pay button {
  border: 1px solid var(--line-2); background: var(--card-2); border-radius: 10px; padding: 11px 4px;
  font-weight: 700; cursor: pointer; font-size: 13px; color: var(--ink-2); transition: all .2s;
}
.pay button:hover { color: #fff; border-color: #4a4a52; }
.pay button.on { background: #fff; color: #0b0b0d; border-color: #fff; }

/* chave liga/desliga */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch .label-red { margin-bottom: 0; }
.switch input {
  appearance: none; width: 50px; height: 28px; border-radius: 99px; padding: 0; flex: none; cursor: pointer;
  background: var(--card-3); border: 1px solid var(--line-2); position: relative; transition: background .25s;
}
.switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #8b8b94; transition: transform .25s var(--ease), background .25s;
}
.switch input:checked { background: var(--red); border-color: var(--red); }
.switch input:checked::after { transform: translateX(22px); background: #fff; }
.switch input:focus { box-shadow: 0 0 0 4px var(--red-soft); }

.pickup-box { margin-top: 16px; animation: rise .3s var(--ease) both; }
.pickup-res {
  background: var(--card-2); border: 1px solid var(--line-2); border-left: 3px solid var(--red);
  border-radius: 12px; padding: 14px; margin-top: 12px; font-size: 14px; line-height: 1.45;
}
.pickup-res .addr { display: flex; gap: 8px; color: var(--ink-2); }
.pickup-res .addr .ico { color: var(--red-2); margin-top: 2px; }
.pickup-res .fee { font-family: var(--display); font-weight: 800; color: #fff; font-size: 24px; line-height: 1.1; }
.pickup-res a { color: var(--red-2); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pickup-res a:hover { text-decoration: underline; }
.pickup-res.loading {
  color: var(--muted);
  background: linear-gradient(90deg, var(--card-2) 0%, var(--card-3) 50%, var(--card-2) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.hint { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.5; }
.hint b { color: #fff; }

/* ---------- recibo ---------- */
.receipt {
  position: sticky; top: 118px; overflow: hidden;
  background: linear-gradient(165deg, #1a0c0d 0%, #0e0e11 45%);
  border: 1px solid #3a1a1c; padding: 20px;
  box-shadow: 0 30px 60px -30px rgba(229,20,27,.55);
}
.receipt::before {
  content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,20,27,.35), transparent 70%); pointer-events: none;
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-2) 60%, transparent);
}
.receipt h3 { color: var(--muted); position: relative; }
.receipt .line {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06); color: var(--ink-2); position: relative;
}
.receipt .line span:last-child { font-family: var(--mono); white-space: nowrap; color: #fff; }
.receipt .total { display: flex; justify-content: space-between; align-items: flex-end; margin: 18px 0 6px; position: relative; }
.receipt .total b { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); padding-bottom: 8px; }
.receipt .total strong {
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 44px; line-height: 1;
  color: #fff; letter-spacing: -.02em;
}
.receipt .comm { font-size: 13px; color: var(--muted); margin-bottom: 18px; position: relative; }
.receipt .comm span { font-family: var(--mono); color: var(--ok); }
.receipt .btn { position: relative; }

/* ---------- números / resumo ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.stat {
  background: linear-gradient(180deg, var(--card), #0f0f12); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; animation: rise .45s var(--ease) both;
}
.stat:nth-child(2) { animation-delay: .04s; } .stat:nth-child(3) { animation-delay: .08s; } .stat:nth-child(4) { animation-delay: .12s; } .stat:nth-child(5) { animation-delay: .16s; }
.stat .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 26px; margin-top: 8px; letter-spacing: -.01em; }
.stat.hl {
  grid-column: 1 / -1; position: relative; overflow: hidden; border: 0;
  background: linear-gradient(120deg, var(--red-dark), var(--red) 55%, var(--red-2));
  box-shadow: 0 20px 40px -24px rgba(229,20,27,.9);
}
@media (min-width: 720px) { .stat.hl { grid-column: auto; } }
.stat.hl::after {
  content: ""; position: absolute; right: -20px; top: 0; bottom: 0; width: 90px;
  background: repeating-linear-gradient(118deg, rgba(255,255,255,.14) 0 3px, transparent 3px 14px);
}
.stat.hl .k { color: rgba(255,255,255,.8); }
.stat.hl .v { font-style: italic; font-size: 32px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters .quick { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.filters .quick .btn { flex: 1; min-width: 70px; }
.filters label.field { margin: 0; flex: 1; min-width: 140px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line-2); font-weight: 700; }
td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ---------- registros ---------- */
.wash { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wash:last-child { border-bottom: 0; }
.wash .time {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); min-width: 54px; line-height: 1.4;
  padding-left: 10px; border-left: 2px solid var(--red);
}
.wash .info { flex: 1; min-width: 0; }
.wash .info b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.wash .info b .ico { color: var(--red-2); width: 20px; height: 20px; }
.wash .info small { color: var(--muted); display: block; margin-top: 4px; line-height: 1.4; }
.wash .amt { text-align: right; font-family: var(--display); font-weight: 800; font-size: 17px; }
.wash .amt small { display: block; color: var(--ok); font-family: var(--mono); font-weight: 500; font-size: 12px; }
.tag {
  display: inline-block; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 5px;
  background: var(--card-3); color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; vertical-align: 1px;
}
.tag.off { background: rgba(255,90,95,.12); color: var(--danger); }
.tag.admin { background: var(--red); color: #fff; }
.tag.red { background: var(--red-soft); color: var(--red-2); }

.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow b { display: block; font-size: 15px; margin-bottom: 3px; }
.list-item .grow small { color: var(--muted); }
.list-item .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 900;
  background: var(--card-3); color: var(--ink-2); border: 1px solid var(--line-2);
}
.list-item .avatar.admin { background: linear-gradient(135deg, var(--red-2), var(--red-dark)); color: #fff; border: 0; }
.list-item .price { font-family: var(--display); font-weight: 800; font-size: 18px; }
.group-title {
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; color: #fff;
  font-size: 14px; letter-spacing: .02em; margin: 18px 0 2px; display: flex; align-items: center; gap: 8px;
}
.group-title:first-child { margin-top: 4px; }
.group-title .ico { color: var(--red-2); width: 22px; height: 22px; }

/* ---------- modal & avisos ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center;
  background: rgba(5,5,7,.72); backdrop-filter: blur(6px); animation: fade .2s both;
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 600px) { .modal-bg { place-items: center; padding: 20px; } }
.modal {
  width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; position: relative;
  background: linear-gradient(180deg, #17171b, var(--card)); border: 1px solid var(--line-2);
  border-radius: 22px 22px 0 0; padding: 24px 22px calc(22px + env(safe-area-inset-bottom));
  animation: sheet .3s var(--ease) both;
}
.modal::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: linear-gradient(90deg, var(--red), transparent); }
@media (min-width: 600px) { .modal { border-radius: 22px; padding-bottom: 22px; } }
.modal h2 { margin: 0 0 18px; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; }
.modal h3 { font-size: 11px !important; letter-spacing: .16em !important; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }

#toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 100; max-width: 90vw;
  transform: translate(-50%, 140px); transition: transform .35s var(--ease);
  display: flex; align-items: center; gap: 10px;
  background: #f6f6f7; color: #0b0b0d; padding: 13px 18px; border-radius: 14px; font-weight: 700; font-size: 14px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); border-left: 4px solid var(--ok);
}
#toast.show { transform: translate(-50%, 0); }
#toast.err { border-left-color: var(--red); }

.footer-note { text-align: center; color: var(--muted); font-style: italic; font-size: 12px; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- login: senha e manter conectado ---------- */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: var(--card-3); color: var(--ink-2); border-radius: 8px;
  padding: 7px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.pw-eye:hover { color: #fff; }
.check.remember {
  align-items: flex-start; padding: 12px 14px; margin: 4px 0 16px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line-2); transition: border-color .2s;
}
.check.remember:has(input:checked) { border-color: rgba(229,20,27,.55); background: linear-gradient(90deg, rgba(229,20,27,.12), var(--card-2)); }
.check.remember input { margin-top: 1px; }
.check.remember small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }

/* ---------- rota ida e volta ---------- */
.legs { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin-top: 12px; }
.legs > div { background: var(--card-3); border-radius: 10px; padding: 8px 10px; }
.legs small { display: block; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.legs b { font-family: var(--display); font-size: 17px; }
.warn { color: #ffb020; font-size: 13px; margin: 8px 0 0; line-height: 1.4; }
.maps-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--card-3); color: var(--ink-2); }

/* ---------- divisão e gastos ---------- */
.split .line, .receipt .line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--ink-2); }
.split .line span:last-child { font-family: var(--mono); color: #fff; white-space: nowrap; }
.split .line.strong { color: #fff; font-weight: 800; }
.split .line.strong span:last-child { color: var(--ok); }
.split .line.neg span:last-child { color: #ff8a8e; }
.per-person {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 8px;
  padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, var(--red-dark), var(--red) 60%, var(--red-2));
}
.per-person small { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: rgba(255,255,255,.85); }
.per-person strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 34px; line-height: 1; }
.balance { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 14px; }
.balance small { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 700; }
.balance strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 34px; color: var(--ok); }
.balance.neg strong { color: var(--danger); }
.cats.two { grid-template-columns: 1fr 1fr; }
.cats.two button { flex-direction: column; gap: 6px; padding: 14px 10px; font-size: 13px; }
.cats.two button .ico { width: 26px; height: 26px; color: var(--muted); }
.cats.two button.on .ico { color: #fff; }
.cats.two button small { display: block; font-family: "Archivo", sans-serif; font-style: normal; text-transform: none; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.cats.two button.on small { color: rgba(255,255,255,.8); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.chip {
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink-2); border-radius: 99px;
  padding: 6px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--red); color: #fff; }
.btn.block.small { width: 100%; }

/* ---------- meu perfil ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: 1.05; }
.profile-head small { color: var(--muted); }
.profile-head .grow { flex: 1; min-width: 0; }
.avatar.big {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 900; font-size: 22px;
  background: var(--card-3); border: 1px solid var(--line-2); color: #fff;
}
.avatar.big.admin, .avatar.big { background: linear-gradient(135deg, var(--red-2), var(--red-dark)); border: 0; }
.pay-card {
  position: relative; overflow: hidden; border: 0;
  background: linear-gradient(130deg, var(--red-dark), var(--red) 55%, var(--red-2));
  box-shadow: 0 24px 50px -28px rgba(229,20,27,.9);
}
.pay-card::after {
  content: ""; position: absolute; right: -30px; top: 0; bottom: 0; width: 120px; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(255,255,255,.13) 0 3px, transparent 3px 15px);
}
.pay-card > small { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: rgba(255,255,255,.85); }
.pay-card > strong { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 48px; line-height: 1.05; margin: 6px 0 8px; }
.pay-card > p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.85); max-width: 90%; position: relative; z-index: 1; }
.pay-card .legs > div { background: rgba(0,0,0,.25); }
.pay-card .legs small { color: rgba(255,255,255,.75); }
.month-row {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 12px 6px; border-radius: 0; transition: background .15s;
}
.month-row:last-child { border-bottom: 0; }
.month-row:hover { background: var(--card-2); }
.month-row.on { background: var(--red-soft); border-radius: 10px; border-bottom-color: transparent; }
.month-row b { display: block; font-size: 14.5px; }
.month-row small { color: var(--muted); font-size: 12px; }

/* ---------- foto de perfil ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.photo-btn { position: relative; cursor: pointer; padding: 0; width: 72px; height: 72px; font-size: 26px; color: #fff; }
.photo-btn .cam {
  position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #0b0b0d; box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.photo-btn .cam .ico { width: 15px; height: 15px; }
.photo-btn { overflow: visible; }
.photo-btn img { position: absolute; inset: 0; }
.photo-actions { display: flex; gap: 14px; margin-top: 6px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red-2); font-weight: 700; font-size: 13px; cursor: pointer; }
.link-btn.muted { color: var(--muted); }
.link-btn:hover { text-decoration: underline; }

/* ---------- pagamento Pix ---------- */
.pay.two { grid-template-columns: 1fr 1fr; }
.pay.two button { padding: 14px 6px; font-size: 15px; }
.pix-amount { display: flex; justify-content: space-between; align-items: baseline; margin: -4px 0 14px; }
.pix-amount small { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 700; }
.pix-amount strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 32px; }
.pix-qr { background: #fff; border-radius: 16px; padding: 12px; width: min(260px, 80%); margin: 0 auto 12px; box-shadow: 0 0 0 3px var(--red); }
.pix-qr svg { display: block; width: 100%; height: auto; }
.pix-copy { display: flex; gap: 8px; }
.pix-copy input { font-family: var(--mono); font-size: 12px; }
.pix-keys { display: grid; gap: 8px; }
.pix-keys > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.pix-keys small { grid-column: 1; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.pix-keys b { grid-column: 1; font-size: 15px; word-break: break-all; }
.pix-keys b.mono { font-family: var(--mono); font-size: 12px; }
.pix-keys .link-btn { grid-column: 2; grid-row: 1 / 3; }

/* ---------- Pix 5 minutos ---------- */
.pix-timer { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.pix-timer span { font-family: var(--mono); font-weight: 700; font-size: 20px; min-width: 58px; }
.pix-timer .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--card-3); overflow: hidden; }
.pix-timer .bar i { display: block; height: 100%; background: var(--ok); transform-origin: left; transition: transform 1s linear, background .3s; }
.pix-timer.low span { color: #ffb020; }
.pix-timer.low .bar i { background: #ffb020; }
.pix-status { text-align: center; color: var(--ink-2); font-size: 14px; margin: 0 0 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pix-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #ffb020; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.pix-paid, .pix-expired { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 10px; text-align: center; animation: rise .35s var(--ease) both; }
.pix-paid .ok-circle {
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 30%, #5cf09d, #1fa45a); box-shadow: 0 0 0 10px rgba(61,220,132,.15), 0 20px 40px -12px rgba(61,220,132,.6);
}
.pix-paid .ok-circle .ico { width: 46px; height: 46px; stroke-width: 2.6; }
.pix-paid strong, .pix-expired strong { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 26px; margin-top: 8px; }
.pix-paid span, .pix-expired span { color: var(--muted); }
.pix-expired strong { color: #ffb020; }
#pxActions .btn.block { width: 100%; }

/* Selo "Powered by Netlify": fundo transparente (mix-blend screen some com o fundo escuro do site)
   e ícone recolorido do verde-água para o vermelho do site; fica mais visível ao passar o mouse/tocar.
   O selo é um iframe de outro domínio, então só dá para estilizar o elemento por fora (filtros). */
#nl-badge-frame,
#nl-hud-frame {
  mix-blend-mode: screen !important;
  filter: hue-rotate(180deg) saturate(1.6) !important;
  background: transparent !important;
  color-scheme: normal;
  opacity: 0.55 !important;
  transition: opacity 0.2s ease !important;
}
#nl-badge-frame:hover,
#nl-badge-frame:focus-within,
#nl-hud-frame:hover,
#nl-hud-frame:focus-within {
  opacity: 1 !important;
}

/* ---------- aba Online ---------- */
.push-row { display: flex; gap: 12px; align-items: flex-start; }
.push-row .grow { flex: 1; min-width: 0; }
.push-row .grow b { display: block; margin-bottom: 4px; }
.push-row .grow small { color: var(--muted); }
.push-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card-3); color: var(--muted); flex: none; }
.push-ico.on { background: var(--red-soft); color: var(--red-2); }
.push-card .actions { display: flex; gap: 8px; }
.tag.ok { background: rgba(61,220,132,.14); color: var(--ok); }
.avatar.presence { position: relative; overflow: visible; }
.avatar.presence img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }
.avatar.presence::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #55555e; border: 2px solid var(--card); }
.avatar.presence.is-on::after { background: var(--ok); }
.online-txt { color: var(--ok); font-weight: 700; }
.bell { color: var(--muted); }
.bell .ico { width: 18px; height: 18px; }

/* =========================================================
   Identidade viúva-negra: teias, aranha e detalhes do logo
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
/* teias nos cantos da tela */
body::after, #app::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: min(300px, 62vw); aspect-ratio: 1; background: url(/web.svg) 0 0 / contain no-repeat; opacity: .07;
}
body::after { top: 0; right: 0; transform: scaleX(-1); }
#app::before { bottom: 0; left: 0; transform: scaleY(-1); opacity: .05; }

/* aranha pendurada no fio (login) */
.hang { position: absolute; top: 0; right: 30px; width: 34px; display: flex; flex-direction: column; align-items: center; pointer-events: none; transform-origin: 50% 0; animation: sway 4.5s ease-in-out infinite; }
.hang i { display: block; width: 1px; height: 52px; background: linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.45)); }
.hang img { width: 34px; margin-top: -4px; filter: drop-shadow(0 6px 14px rgba(229,20,27,.55)); }
@keyframes sway { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.auth-card { overflow: visible; }

/* títulos com aranha descendo pelo fio */
.section-title { position: relative; padding-right: 46px; overflow-wrap: break-word; }
.section-title::after {
  content: ""; display: block; width: 72px; height: 3px; margin-top: 12px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-2) 50%, transparent);
}
.section-title::before {
  content: ""; position: absolute; right: 4px; top: -26px; width: 30px; height: 66px; pointer-events: none;
  background: url(/spider.svg) 50% 100% / 28px auto no-repeat, linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.35)) 50% 0 / 1px 40px no-repeat;
  transform-origin: 50% 0; animation: sway 5s ease-in-out infinite; filter: drop-shadow(0 6px 12px rgba(229,20,27,.45));
}

/* ampulheta vermelha (marca da viúva-negra) nos subtítulos */
.card h3 { display: flex; align-items: center; gap: 8px; }
.card h3::before {
  content: ""; width: 8px; height: 11px; flex: none; background: var(--red);
  clip-path: polygon(0 0, 100% 0, 58% 50%, 100% 100%, 0 100%, 42% 50%);
}

/* cartões: brilho fino no topo */
.card::before {
  content: ""; position: absolute; left: 18px; right: 50%; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(229,20,27,.7), transparent);
}
.receipt::before {
  left: auto; right: -34px; top: -34px; width: 190px; height: 190px; border-radius: 0; opacity: .22; transform: rotate(22deg);
  background: url(/spider.svg) center / 72% auto no-repeat, radial-gradient(circle, rgba(229,20,27,.6), transparent 68%);
}
.stat.hl::before, .pay-card::before, .per-person::before {
  content: ""; position: absolute; left: auto; right: 0; top: 0; width: 120px; height: 120px; pointer-events: none;
  background: url(/web.svg) 0 0 / contain no-repeat; transform: scaleX(-1); opacity: .22;
}
.per-person { position: relative; overflow: hidden; }
.stat { position: relative; overflow: hidden; }
.stat .v { position: relative; z-index: 1; overflow-wrap: anywhere; }

/* estado vazio com a aranha */
.empty::before {
  content: ""; display: block; width: 38px; height: 40px; margin: 0 auto 10px; opacity: .45;
  background: url(/spider.svg) center / contain no-repeat; filter: grayscale(.2);
}

/* rodapé */
main { padding-bottom: 28px; }
.app-foot {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 16px calc(84px + env(safe-area-inset-bottom)); color: #5d5d66;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
}
.app-foot img { width: 22px; opacity: .8; }

/* abas: some suave nas bordas e rolagem lisa */
.tabs { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }

/* textos longos não estouram as caixas */
.wash .info b, .wash .info small, .list-item .grow b, .list-item .grow small, .push-row .grow b, td { overflow-wrap: anywhere; }
.wash .info b { align-items: flex-start; }
.wash .info b .ico { margin-top: 1px; }
.btn.small { min-height: 38px; }
.label-red { max-width: 100%; }

/* evita o zoom automático do iPhone ao tocar nos campos */
input, select, textarea { font-size: 16px; }

/* =========================================================
   Celular
   ========================================================= */
@media (max-width: 600px) {
  main { padding: 16px 12px 24px; }
  .topbar { padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
  .brand img { height: 32px; }
  .who .pill { padding: 4px 10px 4px 4px; font-size: 13px; max-width: 52vw; }
  .who .pill { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs { padding: 0 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 22px), transparent); }
  .tabs button { padding: 13px 12px 12px; font-size: 13.5px; }
  .tabs button::after { left: 8px; right: 8px; }

  .section-title { font-size: 28px; margin: 6px 0 16px; padding-right: 40px; }
  .section-title::before { top: -20px; transform-origin: 50% 0; width: 26px; height: 56px; background-size: 24px auto, 1px 34px; }

  .card { padding: 15px 14px; border-radius: 14px; margin-bottom: 12px; }
  .grid-2 { gap: 0; }
  .label-red { font-size: 13.5px; padding: 7px 18px 7px 12px; margin-bottom: 12px; }
  .switch .label-red { white-space: normal; line-height: 1.15; }
  label.field { margin-bottom: 12px; }
  label.field > span { font-size: 10.5px; letter-spacing: .1em; }
  input, select, textarea { padding: 12px 12px; border-radius: 11px; }
  .row { flex-wrap: wrap; gap: 8px; }
  .row > * { flex-basis: 120px; }
  .hint { font-size: 13px; }

  .cats { gap: 6px; margin-bottom: 16px; }
  .cats button { padding: 12px 4px 10px; font-size: 11.5px; border-radius: 12px; }
  .cats button .ic, .cats button .ic svg { height: 26px; }
  .svc { gap: 10px; padding: 13px 12px 13px 42px; border-radius: 11px; }
  .svc::before { left: 12px; width: 19px; height: 19px; margin-top: -9.5px; }
  .svc .n { font-size: 14.5px; }
  .svc .p { font-size: 16.5px; }
  .extras .extra { flex-wrap: wrap; }
  .extras .extra input:first-child { flex: 1 1 100%; }
  .pay button { padding: 12px 4px; font-size: 13px; }
  .pay.two button { padding: 13px 6px; font-size: 15px; }

  .receipt { position: relative; top: auto; padding: 18px 16px; }
  .receipt .line { font-size: 13.5px; }
  .receipt .total strong { font-size: 36px; }
  .btn.big { padding: 15px; font-size: 16px; }

  .stats { gap: 8px; margin-bottom: 12px; }
  .stat { padding: 13px 12px; border-radius: 14px; }
  .stat .k { font-size: 9.5px; letter-spacing: .1em; }
  .stat .v { font-size: 20px; margin-top: 6px; }
  .stat.hl .v { font-size: 28px; }
  .per-person { padding: 12px 14px; }
  .per-person strong, .balance strong { font-size: 27px; }
  .pay-card > strong { font-size: 38px; }
  .pix-amount strong { font-size: 27px; }
  .list-item { gap: 10px; padding: 12px 0; }
  .list-item .avatar { width: 34px; height: 34px; }
  .list-item .price { font-size: 16px; }
  .list-item .grow b { font-size: 14.5px; }

  .filters { gap: 8px; }
  .filters .quick .btn { min-width: 0; padding: 8px 6px; }
  .filters label.field { flex: 1 1 calc(50% - 4px); min-width: 0; }

  table { font-size: 13px; }
  th { padding: 8px 4px; font-size: 9.5px; }
  td { padding: 10px 4px; }

  .wash { gap: 10px; flex-wrap: wrap; padding: 12px 0; }
  .wash .time { min-width: 46px; font-size: 12px; padding-left: 8px; }
  .wash .info b { font-size: 14px; }
  .wash .info small { font-size: 12.5px; }
  .wash .amt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-left: 56px; font-size: 16px; }
  .wash .amt small { display: inline; }
  .wash .amt .btn { margin-top: 0 !important; }

  .modal { padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 88vh; }
  .modal h2 { font-size: 21px; margin-bottom: 14px; padding-right: 10px; }
  .modal .actions { flex-wrap: wrap; }
  .modal .actions .btn { flex: 1 1 auto; }
  .push-card .actions { flex-wrap: wrap; }

  .auth { padding: 22px 14px; }
  .auth-card { padding: 26px 18px 20px; border-radius: 20px; }
  .auth-card h2 { font-size: 26px; }
  .hang { right: 18px; }
  .hang i { height: 40px; }

  #toast { width: max-content; max-width: calc(100vw - 24px); font-size: 13.5px; padding: 12px 14px; }
  .profile-head h2 { font-size: 21px; overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .section-title { font-size: 25px; }
  .cats button { font-size: 10.5px; }
  .stat .v { font-size: 18px; }
  .tabs button { padding: 12px 10px 11px; font-size: 13px; }
}
