/* =========================================================
   QADRAS  ·  verde & branco  ·  design premium
   ========================================================= */
:root {
  --green: #1b7a3e;        /* verde autoral (não o default do Tailwind) */
  --green-600: #15662f;
  --green-700: #0e4f25;
  --green-900: #08231a;
  --mint: #e9f3ea;         /* mint quente, não neon */
  --mint-2: #cfe7d2;
  --lime: #c8f560;         /* acento raro */
  --ink: #0e2a1a;          /* texto em verde-tinta, não cinza */
  --ink-2: #3a4a40;
  --muted: #6a746b;
  --line: #e7e3d9;         /* hairline quente */
  --bg: #f6f5ef;           /* off-white bone (sem cinza frio) */
  --white: #ffffff;
  --amber: #e8902a;
  --shadow-sm: 0 1px 2px rgba(14,42,26,.05);
  --shadow: 0 6px 20px rgba(14,42,26,.07);
  --shadow-lg: 0 16px 40px rgba(14,42,26,.14);
  --r: 14px;               /* um raio só, menos "bolha" */
  --r-lg: 18px;
  --display: 'Archivo', system-ui, sans-serif;          /* esportiva, larga */
  --ui: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--ui);
  /* no celular a Archivo fica em largura NORMAL (sem esticar) — telas estreitas */
  font-stretch: 100%;
  background:
    radial-gradient(1100px 560px at 50% -10%, #fbfaf3 0%, var(--bg) 62%);
  color: var(--ink);
  letter-spacing: -0.01em;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
img { display: block; max-width: 100%; }

/* Tipografia de marca: display nos títulos e números */
h1, h2, h3, .brand, .price, .kpi .val, .day .n, .bb-total,
.summary .total, .success h2, .empty h3, .rb-num, .ticket .code {
  font-family: var(--display);
  letter-spacing: -.02em;
}

/* Motivo de marca: linhas de quadra no hero verde */
.topbar { overflow: hidden; }
.topbar::before {
  content: ""; position: absolute; right: -46px; top: -28px;
  width: 250px; height: 250px; z-index: 0; pointer-events: none; opacity: .12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Crect x='8' y='8' width='184' height='184' rx='8'/%3E%3Cline x1='8' y1='100' x2='192' y2='100'/%3E%3Ccircle cx='100' cy='100' r='36'/%3E%3Ccircle cx='100' cy='100' r='4' fill='%23fff' stroke='none'/%3E%3C/svg%3E") no-repeat center / contain;
}
.topbar > * { position: relative; z-index: 1; }

/* icones */
.ic {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}
.ic.fill { fill: currentColor; stroke: none; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 24px; height: 24px; }

/* ---------- moldura do celular ---------- */
.app-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
}
.phone {
  position: relative;
  width: 412px;
  height: 880px;
  max-height: calc(100vh - 48px);
  background: var(--white);
  border-radius: 46px;
  box-shadow: var(--shadow-lg), 0 0 0 10px #0c1410, 0 0 0 12px #1c241f;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-bottom: 24px;
}
.screen::-webkit-scrollbar { display: none; }

.container { padding: 20px; }

/* ---------- topo verde ---------- */
.topbar {
  background: linear-gradient(165deg, var(--green) 0%, var(--green-600) 55%, var(--green-700) 100%);
  color: #fff;
  padding: 54px 20px 22px;
  position: relative;
}
.topbar::after { /* status bar fake */
  content: "9:41";
  position: absolute; top: 16px; left: 24px;
  font-size: 13px; font-weight: 700; opacity: .9;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,255,255,.16);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.logo-mark .ic { width: 18px; height: 18px; }

.greet { margin-top: 18px; font-size: 14px; opacity: .92; font-weight: 500; }
.topbar h1 { font-size: 27px; line-height: 1.18; font-weight: 800; margin-top: 3px; letter-spacing: -.03em; }

/* barra topo simples (telas internas) */
.navbar {
  display: flex; align-items: center; gap: 12px;
  padding: 50px 18px 16px;
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar .title { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.navbar .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--white); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.navbar .spacer { margin-left: auto; }

/* ---------- busca ---------- */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink);
  border-radius: var(--r); padding: 14px 15px;
  margin-top: 18px;
  box-shadow: var(--shadow);
}
.searchbar .ic { color: var(--green); }
.searchbar input { border: none; outline: none; font-size: 15px; width: 100%; background: transparent; font-weight: 500; }
.searchbar input::placeholder { color: #9aa6a0; }

.field { margin-top: 14px; }
.field > label {
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  display: block; margin-bottom: 7px; letter-spacing: -.01em;
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.field select, .field input[type=text] {
  width: 100%; padding: 14px 15px; font-size: 15px; font-weight: 500;
  border: 1.5px solid var(--line); border-radius: 13px;
  background: #fff; color: var(--ink); outline: none;
  appearance: none; -webkit-appearance: none;
}
.field select:focus, .field input:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--mint); }

/* ---------- botoes ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; text-align: center;
  background: var(--green);
  color: #fff; font-weight: 700; font-size: 15.5px;
  padding: 15px; border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); background: var(--green-600); }
.btn.outline { background: #fff; color: var(--green-700); box-shadow: none; border: 1.5px solid var(--line); }
.btn.block { margin-top: 12px; }

/* ---------- secoes ---------- */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 26px 0 14px;
}
.sec-head h2 { font-size: 17.5px; font-weight: 800; letter-spacing: -.02em; }
.sec-head a { font-size: 13px; font-weight: 700; color: var(--green); }

/* chips de esporte */
.chips { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  background: #fff; color: var(--ink-2);
  border: 1.5px solid var(--line);
  padding: 9px 15px; border-radius: 30px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.chip:hover { border-color: var(--mint-2); }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 6px 14px rgba(21,128,61,.25); }
.chips.light .chip { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.28); }
.chips.light .chip.on { background: #fff; color: var(--green-700); }

/* ---------- card de quadra (lista) ---------- */
.card {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 16px; border: 1px solid #f1f3f2;
}
.card .photo { position: relative; height: 158px; overflow: hidden; background: var(--mint); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45));
}
.pill {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 30px;
  background: rgba(255,255,255,.95); color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pill .ic { width: 14px; height: 14px; }
.pill.tl { top: 12px; left: 12px; }
.pill.tr { top: 12px; right: 12px; color: var(--green-600); }
.pill.star { color: #fff; background: rgba(15,27,20,.62); }
.pill.star .ic { color: var(--amber); fill: var(--amber); stroke: none; }
.pill.bl { bottom: 12px; left: 12px; }

.card .body { padding: 14px 16px 16px; }
.card .body h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.card .meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.card .meta .ic { width: 14px; height: 14px; color: var(--green); }

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { background: var(--mint); color: var(--green-700); font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; }

.card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.price { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.btn-mini { background: var(--green); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 10px; box-shadow: none; }

/* ---------- detalhe da quadra ---------- */
.hero {
  position: relative; height: 280px; overflow: hidden; background: var(--mint);
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.35)); }
.hero .back {
  position: absolute; top: 50px; left: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 13px;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.detail-head { padding: 18px 20px 4px; }
.detail-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.detail-head .meta { color: var(--muted); font-size: 14px; margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.detail-head .meta .ic { color: var(--green); width: 16px; height: 16px; }
.rate-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: 14px; }
.rate-row .ic { color: var(--amber); fill: var(--amber); stroke: none; width: 17px; height: 17px; }
.rate-row .n { color: var(--muted); font-weight: 500; }

/* ---------- seletor de dias ---------- */
.days { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; min-width: 56px; text-align: center;
  padding: 11px 6px; border-radius: 15px;
  background: #fff; border: 1.5px solid var(--line);
}
.day .d { font-size: 12px; font-weight: 600; color: var(--muted); }
.day .n { font-size: 19px; font-weight: 800; margin-top: 2px; }
.day.on { background: var(--green); border-color: var(--green); box-shadow: 0 8px 16px rgba(21,128,61,.25); }
.day.on .d, .day.on .n { color: #fff; }

/* ---------- horarios ---------- */
.legend { display: flex; gap: 18px; margin: 14px 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.legend span { display: flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.free { background: var(--green); }
.dot.busy { background: #cfd6d2; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* disponibilidade agrupada por período */
.avail { display: flex; flex-direction: column; gap: 16px; }
.avail-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.avail-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 4px; border-radius: 13px; font-weight: 700; font-size: 15px;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  transition: all .12s ease;
}
.slot.free:hover { border-color: var(--green); color: var(--green-600); background: var(--mint); }
.slot.busy { background: #f4f6f5; color: #b7c0ba; text-decoration: line-through; pointer-events: none; }

.note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 18px 8px; font-weight: 500; }
.note .ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--green); }

/* ---------- pagamento ---------- */
.mini-card { display: flex; gap: 13px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); }
.mini-card img { width: 64px; height: 64px; border-radius: 13px; object-fit: cover; }
.mini-card h3 { font-size: 16px; font-weight: 800; }
.mini-card .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }

.info-rows { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.info-rows .row { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.info-rows .row:last-child { border-bottom: none; }
.info-rows .row .k { color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.info-rows .row .k .ic { color: var(--green); width: 17px; height: 17px; }
.info-rows .row .v { font-weight: 700; }

.summary { background: var(--mint); border-radius: 18px; padding: 18px; margin-top: 16px; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; }
.summary .line .muted { color: var(--ink-2); }
.summary .total { border-top: 1.5px dashed var(--mint-2); margin-top: 6px; padding-top: 14px; font-size: 18px; font-weight: 800; color: var(--green-700); }

.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.method { display: flex; align-items: center; gap: 13px; background: #fff; border: 1.5px solid var(--line); border-radius: 15px; padding: 15px; font-weight: 600; font-size: 14.5px; }
.method .badge-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--mint); color: var(--green-600); display: grid; place-items: center; }
.method .check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.method.on { border-color: var(--green); background: #fbfffc; }
.method.on .check { background: var(--green); border-color: var(--green); color: #fff; }
.method.on .check .ic { width: 13px; height: 13px; }
.method:not(.on) .check .ic { display: none; }

/* ---------- confirmacao ---------- */
.success { text-align: center; padding: 60px 24px 24px; }
.success .ring {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--mint); color: var(--green); display: grid; place-items: center;
  box-shadow: 0 0 0 10px #f3fcf6;
}
.success .ring .ic { width: 52px; height: 52px; stroke-width: 2.6; }
.success h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.success p { color: var(--muted); margin-top: 8px; font-weight: 500; }
.ticket {
  text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 6px 18px; margin: 26px 0; box-shadow: var(--shadow-sm);
  position: relative;
}
.ticket .row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ticket .row:last-child { border-bottom: none; }
.ticket .row .k { color: var(--muted); font-weight: 500; }
.ticket .row .v { font-weight: 700; }
.ticket .code { color: var(--green-600); letter-spacing: .05em; }

/* ---------- gerente ---------- */
.role-switch { display: flex; gap: 6px; background: rgba(255,255,255,.16); padding: 5px; border-radius: 14px; margin-top: 18px; }
.role-switch a { flex: 1; text-align: center; padding: 11px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: #fff; }
.role-switch a.on { background: #fff; color: var(--green-700); box-shadow: 0 4px 12px rgba(0,0,0,.12); }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .val { font-size: 24px; font-weight: 800; margin-top: 6px; letter-spacing: -.03em; }
.kpi .sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.kpi .sub .ic { width: 13px; height: 13px; color: var(--green); }
.kpi.hero-kpi { background: linear-gradient(160deg, var(--green), var(--green-700)); border: none; color: #fff; grid-column: 1 / -1; }
.kpi.hero-kpi .label, .kpi.hero-kpi .sub { color: rgba(255,255,255,.9); }
.kpi.hero-kpi .sub .ic { color: #fff; }
.kpi.hero-kpi .val { font-size: 32px; }

.fee-banner { display: flex; align-items: center; gap: 11px; background: var(--mint); border-radius: 14px; padding: 13px 15px; margin: 14px 0; font-size: 13.5px; color: var(--green-700); font-weight: 600; }
.fee-banner .badge-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--green-600); display: grid; place-items: center; }
.fee-banner strong { margin-left: auto; font-size: 15px; }

.booking { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; margin-bottom: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 13px; background: var(--mint); color: var(--green-700); display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: 0 0 auto; }
.booking .who { flex: 1; min-width: 0; }
.booking .who strong { font-size: 14.5px; font-weight: 700; }
.booking .who small { color: var(--muted); display: flex; align-items: center; gap: 5px; font-size: 12px; margin-top: 2px; }
.booking .who small .ic { width: 12px; height: 12px; }
.booking .amt { text-align: right; }
.booking .amt .v { font-weight: 800; font-size: 14.5px; }

.status { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 30px; display: inline-block; margin-top: 4px; }
.status.pago { background: var(--mint); color: var(--green-700); }
.status.confirmado { background: #e6f0ff; color: #1d4ed8; }
.status.pendente { background: #fff3d6; color: #b45309; }
/* Concluida e passado, nao um estado que pede atencao — cinza, nao azul.
   Antes ela dividia o azul com "Confirmada", entao a mesma cor significava
   duas coisas. */
.status.concluido { background: #eef0ee; color: #5b6560; }

/* ---------- gerente: grafico, faixas, insight ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 6px; box-shadow: var(--shadow-sm); }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
.lc { width: 100%; height: auto; display: block; }
.lc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc-yl { fill: var(--muted); font-size: 10px; text-anchor: end; }
.lc-line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lc-dot { fill: #fff; stroke: var(--green); stroke-width: 2; }
.lc-dot.peak { fill: var(--amber); stroke: var(--green-700); stroke-width: 2.5; }
.lc-xl { fill: var(--muted); font-size: 11px; font-weight: 600; }

.faixas { display: flex; flex-direction: column; gap: 14px; }
.faixa-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.faixa-top b { color: var(--green-700); }
.faixa-top small { color: var(--muted); font-weight: 500; font-size: 12px; }
.faixa-bar { height: 10px; border-radius: 6px; background: #e7ebe9; overflow: hidden; }
.faixa-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--green-700)); }

.insight { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.insight-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; background: var(--mint); color: var(--green-600); }
.insight strong { font-size: 14.5px; font-weight: 800; display: block; }
.insight p { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.insight.warn .insight-ic { background: #fff3d6; color: #b45309; }

/* cards de métrica (grade) */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.stat .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--mint); color: var(--green-700); display: grid; place-items: center; }
.stat .ico .ic { width: 18px; height: 18px; }
.stat .v { font-family: var(--display); font-size: 22px; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat .d { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--green-700); margin-top: 7px; }
.stat .d .ic { width: 12px; height: 12px; }
.stat.dark { background: linear-gradient(160deg, var(--green), var(--green-700)); border: none; color: #fff; }
.stat.dark .ico { background: rgba(255,255,255,.16); color: #fff; }
.stat.dark .l { color: rgba(255,255,255,.85); }
.stat.dark .d { color: #fff; }

/* ---------- tabbar ---------- */
.tabbar {
  flex: 0 0 auto;
  display: flex; justify-content: space-around;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px 8px 16px;
}
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 12px; border-radius: 12px; background: transparent; font-family: inherit; }
.tabbar a .ic, .tabbar button .ic { width: 22px; height: 22px; }
.tabbar a.on, .tabbar button.on { color: var(--green-600); }
.tabbar a.on .ic, .tabbar button.on .ic { stroke-width: 2.3; }

/* ---------- banner instalar PWA ---------- */
.pwa-prompt {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  margin: 8px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 11px 13px; box-shadow: var(--shadow);
  animation: pwa-up .28s ease;
}
.pwa-prompt[hidden] { display: none; }
.pwa-prompt .logo-mark { background: var(--green); color: #fff; box-shadow: none; flex: 0 0 auto; }
.pwa-tx { flex: 1; min-width: 0; }
.pwa-tx strong { font-size: 14px; font-weight: 800; display: block; }
.pwa-tx small { font-size: 12px; color: var(--muted); }
.pwa-go { background: var(--green); color: #fff; font-weight: 700; font-size: 13.5px; padding: 10px 16px; border-radius: 11px; box-shadow: 0 6px 14px rgba(21,128,61,.25); flex: 0 0 auto; }
.pwa-x { width: 30px; height: 30px; border-radius: 9px; background: var(--bg); color: var(--ink-2); display: grid; place-items: center; flex: 0 0 auto; }
@keyframes pwa-up { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- toast ---------- */
.toast {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 9px;
  background: var(--green-900); color: #fff;
  padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 600; max-width: calc(100% - 32px);
  animation: toast-up .2s ease;
}
.toast[hidden] { display: none; }
.toast .ic { color: var(--lime); width: 17px; height: 17px; flex: 0 0 auto; }
@keyframes toast-up { from { transform: translate(-50%, 10px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- utilitarios ---------- */
.hidden { display: none !important; }
.btn.is-disabled { opacity: .5; pointer-events: none; box-shadow: none; }

/* ---------- toggle lista/mapa (navbar) ---------- */
.view-seg { display: flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 3px; box-shadow: var(--shadow-sm); }
.view-btn { width: 34px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); background: transparent; }
.view-btn.on { background: var(--green); color: #fff; }

/* ---------- mapa ---------- */
.pq-map { height: 520px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: var(--mint); z-index: 0; }
.pq-pin { background: none !important; border: none !important; }
.pq-pin-in { display: inline-block; background: #fff; color: var(--ink); font-weight: 800; font-size: 12.5px; padding: 5px 9px; border-radius: 20px; box-shadow: 0 3px 10px rgba(0,0,0,.22); border: 1.5px solid var(--green); white-space: nowrap; position: relative; }
.pq-pin-in::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 9px; height: 9px; background: #fff; border-right: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); }
.pq-you span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.25); }
.pq-pop { display: flex; gap: 10px; width: 212px; color: var(--ink); }
.pq-pop img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.pq-pop-bd { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pq-pop strong { font-size: 14px; font-weight: 800; }
.pq-pop-meta { font-size: 12px; color: var(--muted); }
.pq-pop-foot { font-size: 13px; font-weight: 600; }
.pq-pop-star { color: var(--amber); font-weight: 700; }
.leaflet-popup-content { margin: 10px 12px; }

/* ---------- duracao ---------- */
.dur-seg { display: flex; gap: 9px; }
.dur { flex: 1; padding: 12px 6px; border-radius: 13px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .12s; }
.dur.on { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 14px rgba(21,128,61,.22); }
.dur.off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

/* ---------- barra de reserva (book-bar) ---------- */
.book-bar { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
.bb-line { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; color: var(--ink-2); }
.bb-line .bb-k { display: flex; align-items: center; gap: 7px; }
.bb-line .bb-k .ic { color: var(--green); width: 16px; height: 16px; }
.bb-total { border-top: 1.5px dashed var(--mint-2); margin-top: 6px; padding-top: 12px; font-size: 17px; font-weight: 800; color: var(--green-700); }
.book-bar .btn { margin-top: 14px; }
.slots .slot.sel, .avail-slots .slot.sel { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 16px rgba(21,128,61,.25); }

/* ---------- estado vazio ---------- */
.empty { text-align: center; padding: 46px 20px; }
.empty-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--mint); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.empty h3 { font-size: 18px; font-weight: 800; }
.empty p { color: var(--muted); margin: 6px 0 18px; font-weight: 500; }

/* ---------- minhas reservas ---------- */
.seg { display: flex; gap: 6px; background: var(--mint); padding: 5px; border-radius: 14px; margin-bottom: 16px; }
.seg-item { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--green-700); }
.seg-item.on { background: #fff; box-shadow: var(--shadow-sm); }
.res-card { display: flex; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.res-card img { width: 84px; height: 84px; border-radius: 13px; object-fit: cover; flex: 0 0 auto; }
.res-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.res-info strong { font-size: 15px; font-weight: 800; }
.res-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.res-meta .ic { width: 13px; height: 13px; color: var(--green); flex: 0 0 auto; }
.res-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.res-val { font-weight: 800; font-size: 15px; }

/* ---------- responsivo ---------- */
@media (max-width: 460px) {
  .app-wrap { padding: 0; }
  .phone { width: 100%; height: 100vh; max-height: none; border-radius: 0; box-shadow: none; }
}
