/* ================================================================
   COMANDA RESTAURANTE — styles.css
   Base (login) + Sistema de componentes do app do cliente
   Tudo via tokens. Trocar tema = atributo data-theme no <html>/<body>.
   ================================================================ */

:root {
  --brand: #EB943B;
  --brand-strong: #C57C32;
  --tint-1: #FCF0E4;
  --tint-2: #FBE7D4;
  --focus: #F3BF89;

  --text: #111;
  --muted: rgba(0,0,0,.60);
  --border: rgba(0,0,0,.12);
  --shadow: 0 14px 40px rgba(0,0,0,.10);
  --radius: 18px;

  /* novos tokens */
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --success: #1BA672;
  --success-soft: #E6F7F0;
  --star: #F6B100;
  --radius-sm: 12px;
  --radius-lg: 24px;
}

/* ---------- TEMAS (redefinem só a paleta de marca) ---------- */
[data-theme="vermelho"]{ --brand:#E23744; --brand-strong:#C42A36; --tint-1:#FDECEE; --tint-2:#FAD4D8; --focus:#F3A3AA; }
[data-theme="verde"]   { --brand:#1BA672; --brand-strong:#158A5F; --tint-1:#E6F7F0; --tint-2:#CDEFE0; --focus:#8FD9BE; }
[data-theme="roxo"]    { --brand:#6C3FC5; --brand-strong:#5832A3; --tint-1:#F0EAFB; --tint-2:#E0D4F6; --focus:#B79EE6; }
[data-theme="dark"]{
  --brand:#EB943B; --brand-strong:#F3BF89;
  --text:#F3F3F3; --muted:rgba(255,255,255,.65); --border:rgba(255,255,255,.14);
  --bg:#121212; --surface:#1E1E1E; --tint-1:#241d15; --tint-2:#2a2119;
  --shadow:0 14px 40px rgba(0,0,0,.55); --success-soft:rgba(27,166,114,.16);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ================= BASE / LOGIN (mantido) ================= */
.page { min-height: 100%; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 600px at 20% 20%, var(--tint-1), var(--bg) 60%),
    radial-gradient(900px 600px at 90% 80%, var(--tint-2), var(--bg) 70%);
}
.card { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3.2vw, 34px); }
.header { text-align: center; margin-bottom: 18px; }
.title { margin: 6px 0 0; font-size: clamp(28px, 3.1vw, 36px); letter-spacing: .2px; }
.subtitle { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.form { display: grid; gap: 14px; }
.field label { display:inline-block; font-size:14px; font-weight:600; margin-bottom:8px; }
.field input { width:100%; height:46px; padding:0 14px; border-radius:12px; border:1px solid var(--border);
  background: var(--surface); color: var(--text); outline:none; transition:box-shadow .2s, border-color .2s; }
.field input:focus { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.link { color: var(--brand-strong); text-decoration: none; font-weight: 700; }
.link:hover { text-decoration: underline; }

/* ================= BOTÕES ================= */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:52px; padding:0 20px; width:100%; border:0; border-radius:14px;
  background: var(--brand); color:#fff; font-weight:800; letter-spacing:.3px; font-size:15px;
  cursor:pointer; transition: transform .05s, filter .15s; }
.btn:hover{ filter: brightness(.96); }
.btn:active{ transform: translateY(1px); }
.btn-outline{ background: transparent; color: var(--brand-strong); border:1.5px solid var(--brand); }
.btn-ghost{ background: transparent; color: var(--brand-strong); }
.btn-block{ width:100%; }
.btn-sm{ height:40px; font-size:14px; padding:0 14px; width:auto; }

/* ================= LAYOUT DO APP ================= */
.screen { position: relative; width: 100%; max-width: 480px; margin: 0 auto; min-height: 100vh;
  background: var(--bg); display: flex; flex-direction: column; }
.screen--brand { background: var(--brand); color:#fff; }
.screen__body { flex:1; padding: 16px 16px 96px; overflow-y: auto; }
.screen__body--flush { padding: 0 0 96px; }

/* Topbar */
.topbar { position: sticky; top:0; z-index:20; display:flex; align-items:center; gap:12px;
  padding: 14px 16px; background: var(--surface); border-bottom:1px solid var(--border); }
.topbar__title { font-weight:700; font-size:16px; margin:0 auto; }
.iconbtn { width:40px; height:40px; display:grid; place-items:center; border-radius:12px; border:0;
  background: transparent; color: var(--text); cursor:pointer; }
.iconbtn:hover{ background: var(--tint-1); }
.iconbtn svg{ width:22px; height:22px; }

/* Logo */
.logo { display:inline-flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.5px; }
.logo__badge { width:40px; height:40px; border-radius:12px; display:grid; place-items:center;
  background: var(--surface); color: var(--brand); }
.logo__badge svg{ width:24px; height:24px; }
.logo__text{ line-height:1; }
.logo__text b{ display:block; font-size:18px; }
.logo__text span{ display:block; font-size:11px; font-weight:600; opacity:.85; letter-spacing:2px; }

/* Header de endereço (home) */
.addr { display:flex; align-items:center; gap:10px; padding: 14px 16px; background: var(--surface);
  position: sticky; top:0; z-index:20; border-bottom:1px solid var(--border); }
.addr__pin{ color: var(--brand); display:grid; place-items:center; }
.addr__label{ font-size:11px; color: var(--muted); }
.addr__value{ font-size:14px; font-weight:700; display:flex; align-items:center; gap:4px; }
.addr__spacer{ flex:1; }
.avatar-sm{ width:38px; height:38px; border-radius:50%; object-fit:cover; border:1px solid var(--border); }

/* Busca */
.search { display:flex; align-items:center; gap:10px; height:48px; padding:0 14px; margin:14px 0;
  background: var(--surface); border:1px solid var(--border); border-radius:14px; color: var(--muted); }
.search input{ border:0; outline:0; background:transparent; width:100%; font-size:14px; color: var(--text); }
.search svg{ width:20px; height:20px; flex:none; }

/* Chips / filtros */
.chips { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; -ms-overflow-style:none; scrollbar-width:none; }
.chips::-webkit-scrollbar{ display:none; }
.chip { flex:none; padding:9px 14px; border-radius:999px; border:1px solid var(--border);
  background: var(--surface); color: var(--text); font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; }
.chip--active{ background: var(--brand); color:#fff; border-color: var(--brand); }

/* Categorias (círculos) */
.cats{ display:flex; gap:14px; overflow-x:auto; padding: 4px 0 8px; scrollbar-width:none; }
.cats::-webkit-scrollbar{ display:none; }
.cat{ flex:none; width:64px; text-align:center; cursor:pointer; }
.cat__ic{ width:64px; height:64px; border-radius:20px; background: var(--tint-1); display:grid; place-items:center;
  font-size:28px; overflow:hidden; }
.cat__ic img{ width:100%; height:100%; object-fit:cover; }
.cat__name{ font-size:12px; margin-top:6px; font-weight:600; }

/* Section title */
.sec-title{ display:flex; align-items:center; justify-content:space-between; margin:20px 0 12px; }
.sec-title h3{ margin:0; font-size:17px; }
.sec-title a{ font-size:13px; }

/* Banner de promo */
.promo{ position:relative; border-radius: var(--radius); overflow:hidden; min-height:130px; display:flex;
  align-items:center; padding:18px; color:#fff; background: linear-gradient(120deg, var(--brand), var(--brand-strong)); }
.promo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.35; }
.promo__txt{ position:relative; z-index:1; max-width:65%; }
.promo__txt b{ font-size:20px; display:block; }
.promo__txt p{ margin:4px 0 12px; font-size:13px; opacity:.95; }

/* Card de restaurante */
.rest{ display:flex; gap:12px; padding:12px; background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); margin-bottom:12px; cursor:pointer; transition: box-shadow .15s; }
.rest:hover{ box-shadow: var(--shadow); }
.rest__thumb{ width:84px; height:84px; border-radius:14px; object-fit:cover; flex:none; background: var(--tint-1); }
.rest__info{ flex:1; min-width:0; }
.rest__name{ font-weight:700; font-size:15px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.rest__meta{ color: var(--muted); font-size:13px; margin-top:4px; }
.rest__tags{ color: var(--muted); font-size:12px; margin-top:6px; }
.rating{ display:inline-flex; align-items:center; gap:3px; color: var(--star); font-weight:700; font-size:13px; flex:none; }
.rating svg{ width:14px; height:14px; fill: var(--star); }

/* ===== Cardápio ===== */
.cover{ position:relative; height:180px; }
.cover img{ width:100%; height:100%; object-fit:cover; }
.cover__back{ position:absolute; top:14px; left:14px; background:rgba(0,0,0,.45); color:#fff; }
.cover__back:hover{ background:rgba(0,0,0,.6); }
.menu-head{ background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top:-22px;
  position:relative; padding:18px 16px; border-bottom:1px solid var(--border); }
.menu-head h2{ margin:0 0 6px; font-size:20px; }
.menu-head .rest__meta{ font-size:13px; }
.menu-min{ margin-top:8px; font-size:12px; color: var(--muted); }
.tabs{ display:flex; gap:18px; padding:12px 16px; background: var(--surface); position:sticky; top:0; z-index:15;
  border-bottom:1px solid var(--border); overflow-x:auto; scrollbar-width:none; }
.tabs::-webkit-scrollbar{ display:none; }
.tab{ flex:none; font-size:14px; font-weight:700; color: var(--muted); padding-bottom:6px; border-bottom:2px solid transparent; cursor:pointer; }
.tab--active{ color: var(--brand); border-color: var(--brand); }
.group-title{ margin:16px 16px 8px; font-size:16px; }

/* Produto */
.prod{ display:flex; gap:12px; padding:14px 16px; border-bottom:1px solid var(--border); background: var(--surface); }
.prod__info{ flex:1; min-width:0; }
.prod__name{ font-weight:700; font-size:15px; }
.prod__desc{ color: var(--muted); font-size:13px; margin:4px 0 8px; line-height:1.4; }
.prod__price{ font-weight:800; color: var(--brand-strong); font-size:15px; }
.prod__media{ position:relative; flex:none; }
.prod__thumb{ width:92px; height:92px; border-radius:14px; object-fit:cover; background: var(--tint-1); }
.add{ position:absolute; right:-8px; bottom:-8px; width:34px; height:34px; border-radius:50%; border:0;
  background: var(--brand); color:#fff; font-size:20px; display:grid; place-items:center; cursor:pointer; box-shadow: var(--shadow); }

/* FAB carrinho */
.fab{ position:fixed; left:50%; transform:translateX(-50%); bottom:18px; z-index:30;
  width:min(448px, calc(100% - 32px)); }
.fab .btn{ display:flex; justify-content:space-between; }
.fab .btn .count{ background:rgba(255,255,255,.25); border-radius:8px; padding:2px 8px; font-size:13px; }

/* ===== Carrinho ===== */
.cart-item{ display:flex; gap:12px; align-items:center; padding:12px; background: var(--surface);
  border:1px solid var(--border); border-radius:14px; margin-bottom:10px; }
.cart-item__thumb{ width:56px; height:56px; border-radius:12px; object-fit:cover; flex:none; }
.cart-item__info{ flex:1; min-width:0; }
.cart-item__name{ font-weight:700; font-size:14px; }
.cart-item__price{ color: var(--brand-strong); font-weight:700; font-size:14px; margin-top:2px; }
.stepper{ display:inline-flex; align-items:center; gap:12px; background: var(--tint-1); border-radius:999px; padding:4px; }
.stepper button{ width:28px; height:28px; border-radius:50%; border:0; background: var(--surface); color: var(--brand-strong);
  font-size:18px; line-height:1; cursor:pointer; display:grid; place-items:center; box-shadow:0 1px 3px rgba(0,0,0,.1); }
.stepper span{ min-width:16px; text-align:center; font-weight:700; font-size:14px; }

.note-field{ width:100%; border:1px solid var(--border); border-radius:14px; padding:12px; background: var(--surface);
  color: var(--text); font-family:inherit; font-size:14px; resize:vertical; min-height:64px; outline:none; }
.note-field:focus{ border-color: var(--focus); box-shadow:0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }

.coupon{ display:flex; align-items:center; justify-content:space-between; padding:14px; background: var(--surface);
  border:1px dashed var(--brand); border-radius:14px; margin:12px 0; font-weight:600; font-size:14px; }

/* Resumo / total */
.summary{ background: var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px; }
.summary__row{ display:flex; justify-content:space-between; font-size:14px; color: var(--muted); padding:6px 0; }
.summary__row--total{ color: var(--text); font-weight:800; font-size:17px; border-top:1px solid var(--border);
  margin-top:6px; padding-top:12px; }
.summary__row--total b{ color: var(--brand-strong); }

/* ===== Checkout / cards de opção ===== */
.opt-card{ display:flex; align-items:center; gap:12px; padding:14px; background: var(--surface);
  border:1px solid var(--border); border-radius:14px; margin-bottom:12px; cursor:pointer; }
.opt-card__ic{ width:42px; height:42px; border-radius:12px; background: var(--tint-1); color: var(--brand);
  display:grid; place-items:center; flex:none; }
.opt-card__body{ flex:1; min-width:0; }
.opt-card__body b{ display:block; font-size:14px; }
.opt-card__body small{ color: var(--muted); font-size:13px; }
.opt-card__chev{ color: var(--muted); }
.field-label{ font-size:12px; letter-spacing:1px; text-transform:uppercase; color: var(--muted); font-weight:700; margin:18px 0 8px; }

/* ===== Sucesso ===== */
.success{ text-align:center; padding:40px 24px; display:flex; flex-direction:column; align-items:center; gap:14px; min-height:100vh; justify-content:center; }
.success__check{ width:96px; height:96px; border-radius:50%; background: var(--success-soft); color: var(--success);
  display:grid; place-items:center; }
.success__check svg{ width:52px; height:52px; }
.success h2{ margin:6px 0 0; font-size:22px; }
.success p{ color: var(--muted); margin:0; max-width:280px; }

/* ===== Acompanhamento (tracker) ===== */
.eta{ background: var(--surface); border-radius: var(--radius); padding:18px; border:1px solid var(--border); }
.eta small{ color: var(--muted); font-size:13px; }
.eta b{ display:block; font-size:30px; color: var(--brand-strong); margin-top:2px; }
.tracker{ display:flex; justify-content:space-between; margin-top:18px; position:relative; }
.tracker::before{ content:""; position:absolute; top:16px; left:8%; right:8%; height:3px; background: var(--border); z-index:0; }
.tracker__step{ position:relative; z-index:1; text-align:center; flex:1; }
.tracker__dot{ width:34px; height:34px; border-radius:50%; margin:0 auto 6px; display:grid; place-items:center;
  background: var(--surface); border:2px solid var(--border); color: var(--muted); }
.tracker__dot svg{ width:16px; height:16px; }
.tracker__step small{ font-size:11px; color: var(--muted); }
.tracker__step--done .tracker__dot{ background: var(--brand); border-color: var(--brand); color:#fff; }
.tracker__step--done small{ color: var(--text); font-weight:600; }

/* ===== Detalhes / pedido ===== */
.order-head{ display:flex; gap:12px; align-items:center; background: var(--surface); border:1px solid var(--border);
  border-radius:14px; padding:14px; }
.order-head img{ width:54px; height:54px; border-radius:12px; object-fit:cover; }
.order-head__info{ flex:1; }
.order-head__info b{ font-size:15px; }
.order-head__info small{ display:block; color: var(--muted); font-size:12px; margin-top:2px; }
.line{ display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--border); font-size:14px; }
.line small{ color: var(--muted); }

/* Badges */
.badge{ font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; background: var(--tint-1); color: var(--brand-strong); }
.badge--success{ background: var(--success-soft); color: var(--success); }

/* ===== Perfil ===== */
.profile-head{ background: var(--brand); color:#fff; padding:24px 16px; display:flex; align-items:center; gap:14px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.profile-head img{ width:60px; height:60px; border-radius:50%; object-fit:cover; border:2px solid rgba(255,255,255,.5); }
.profile-head b{ font-size:18px; }
.profile-head small{ opacity:.9; font-size:13px; }
.list-menu{ background: var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden; margin-top:14px; }
.list-row{ display:flex; align-items:center; gap:12px; padding:15px 14px; border-bottom:1px solid var(--border); cursor:pointer; }
.list-row:last-child{ border-bottom:0; }
.list-row:hover{ background: var(--tint-1); }
.list-row__ic{ color: var(--brand); display:grid; place-items:center; }
.list-row b{ flex:1; font-weight:600; font-size:14px; }
.list-row__chev{ color: var(--muted); }

.order-mini{ display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--border); }
.order-mini img{ width:44px; height:44px; border-radius:10px; object-fit:cover; }
.order-mini__info{ flex:1; }
.order-mini__info b{ font-size:14px; }
.order-mini__info small{ display:block; color: var(--muted); font-size:12px; }

/* ================= BOTTOM NAV ================= */
.bottom-nav{ position: sticky; bottom:0; z-index:25; display:flex; background: var(--surface);
  border-top:1px solid var(--border); padding:8px 6px calc(8px + env(safe-area-inset-bottom)); }
.nav-item{ flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:6px 0;
  color: var(--muted); font-size:11px; font-weight:600; text-decoration:none; cursor:pointer; }
.nav-item svg{ width:22px; height:22px; }
.nav-item--active{ color: var(--brand); }

/* ================= SPLASH / BOAS-VINDAS ================= */
.splash{ min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px;
  background: var(--brand); color:#fff; text-align:center; padding:24px; }
.splash .logo__badge{ width:88px; height:88px; border-radius:24px; }
.splash .logo__badge svg{ width:52px; height:52px; }
.splash h1{ font-size:34px; margin:6px 0 0; letter-spacing:1px; }
.splash p{ opacity:.9; margin:0; }
.loader{ width:34px; height:34px; border:3px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%;
  animation: spin 1s linear infinite; margin-top:10px; }
@keyframes spin{ to{ transform: rotate(360deg);} }

.welcome{ min-height:100vh; display:flex; flex-direction:column; padding:24px; text-align:center; }
.welcome__hero{ flex:1; display:grid; place-items:center; }
.welcome__hero img{ width:min(320px,80%); border-radius: var(--radius-lg); }
.welcome h1{ font-size:28px; margin:8px 0; }
.welcome h1 span{ color: var(--brand); }
.welcome p{ color: var(--muted); margin:0 0 18px; }
.dots{ display:flex; gap:8px; justify-content:center; margin:16px 0; }
.dot{ width:8px; height:8px; border-radius:50%; background: var(--border); }
.dot--active{ background: var(--brand); width:22px; border-radius:999px; }

/* Permissão localização */
.perm{ min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  padding:32px 24px; text-align:center; }
.perm__ic{ width:120px; height:120px; border-radius:50%; background: var(--tint-1); color: var(--brand);
  display:grid; place-items:center; }
.perm__ic svg{ width:56px; height:56px; }
.perm h2{ margin:8px 0 0; font-size:22px; }
.perm p{ color: var(--muted); max-width:300px; margin:0 0 10px; }

/* utilidades */
.stack > * + *{ margin-top:12px; }
.muted{ color: var(--muted); }
.center{ text-align:center; }
.mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; }

/* ================= PROXIMO NÍVEL: DESKTOP FLUIDO ================= */
@media (min-width: 900px){
  /* telas internas ganham respiro; listas viram grade */
  .rest-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
  .rest-grid .rest{ margin-bottom:0; }
}
@media (min-width: 1200px){
  .rest-grid{ grid-template-columns: repeat(3, 1fr); }
}

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

/* ================= MODO RESTAURANTE ÚNICO ================= */
.store-hero{ position:relative; height:170px; }
.store-hero__bg{ width:100%; height:100%; object-fit:cover; }
.store-hero__overlay{ position:absolute; inset:0; display:flex; align-items:flex-end; gap:12px;
  padding:16px; background:linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.05)); color:#fff; }
.store-hero__logo{ width:56px; height:56px; border-radius:16px; background:var(--surface); color:var(--brand);
  display:grid; place-items:center; flex:none; }
.store-hero__logo svg{ width:34px; height:34px; }
.store-hero__overlay b{ font-size:19px; display:block; }
.store-hero__meta{ font-size:13px; opacity:.95; margin:3px 0 6px; display:flex; align-items:center; gap:6px; }
.store-hero__meta .rating{ color:var(--star); }
.badge-open{ font-size:12px; font-weight:700; color:#7CF0B8; }

.fab--above-nav{ bottom:78px; }

/* ================= PARCEIRO (LOJISTA) ================= */
/* Campos extra */
.field select, .field textarea{ width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--border);
  background:var(--surface); color:var(--text); font-family:inherit; font-size:14px; outline:none; }
.field select:focus, .field textarea:focus{ border-color:var(--focus); box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 20%,transparent); }
.field textarea{ min-height:70px; resize:vertical; }
.field small.hint{ color:var(--muted); font-size:12px; font-weight:500; }
.field-row{ display:flex; gap:12px; } .field-row .field{ flex:1; min-width:0; }

/* Wizard stepper */
.wiz{ display:flex; align-items:center; justify-content:center; gap:6px; padding:14px 0 4px; }
.wiz__dot{ width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:800;
  background:var(--tint-1); color:var(--muted); border:2px solid var(--border); flex:none; }
.wiz__dot--done{ background:var(--brand); border-color:var(--brand); color:#fff; }
.wiz__dot--active{ border-color:var(--brand); color:var(--brand); background:var(--surface); }
.wiz__line{ width:20px; height:2px; background:var(--border); }
.wiz__line--done{ background:var(--brand); }

/* Option radio (PF/PJ, entrega) */
.opt-radio{ display:flex; gap:12px; padding:16px; border:1.5px solid var(--border); border-radius:16px;
  margin-bottom:12px; cursor:pointer; background:var(--surface); }
.opt-radio--on{ border-color:var(--brand); box-shadow:0 0 0 3px var(--tint-1); }
.opt-radio__ic{ width:46px; height:46px; border-radius:12px; background:var(--tint-1); color:var(--brand);
  display:grid; place-items:center; flex:none; }
.opt-radio__b b{ display:block; font-size:15px; } .opt-radio__b small{ color:var(--muted); font-size:12px; display:block; margin-top:2px; }
.opt-radio__tag{ font-size:11px; font-weight:700; color:var(--brand-strong); margin-top:6px; display:inline-block; }
.opt-radio__check{ margin-left:auto; color:var(--brand); align-self:center; }

/* Switch */
.switch{ position:relative; width:44px; height:26px; flex:none; display:inline-block; }
.switch input{ display:none; }
.switch span{ position:absolute; inset:0; background:var(--border); border-radius:999px; transition:.2s; cursor:pointer; }
.switch span::after{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + span{ background:var(--success); }
.switch input:checked + span::after{ transform:translateX(18px); }

/* Day row (horário) */
.day-row{ display:flex; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid var(--border); }
.day-row__name{ flex:1; font-weight:600; font-size:14px; }
.time-in{ width:76px; height:38px; border:1px solid var(--border); border-radius:10px; text-align:center;
  background:var(--surface); color:var(--text); font-size:13px; }
.day-row .sep{ color:var(--muted); }
.chk{ width:20px; height:20px; accent-color:var(--brand); }

/* Upload card */
.upload{ display:flex; align-items:center; gap:12px; padding:14px; border:1.5px dashed var(--border);
  border-radius:14px; margin-bottom:12px; background:var(--surface); }
.upload img{ width:60px; height:60px; border-radius:10px; object-fit:cover; flex:none; }
.upload__ic{ width:46px; height:46px; border-radius:10px; background:var(--tint-1); color:var(--brand);
  display:grid; place-items:center; flex:none; }
.upload__b{ flex:1; } .upload__b b{ font-size:14px; } .upload__b small{ color:var(--muted); font-size:12px; display:block; }
.upload__x{ color:#E23744; cursor:pointer; }

/* Revisão (blocos) */
.rev-block{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px; margin-bottom:12px; }
.rev-block h4{ margin:0 0 8px; font-size:13px; color:var(--brand-strong); text-transform:uppercase; letter-spacing:.5px; }
.rev-block p{ margin:2px 0; font-size:14px; }

/* ===== PAINEL: layout sidebar + conteúdo ===== */
.plt{ max-width:1100px; margin:0 auto; display:flex; min-height:100vh; background:var(--bg); }
.content{ flex:1; min-width:0; display:flex; flex-direction:column; }
.pbody{ flex:1; padding:16px 16px 92px; overflow-y:auto; }
.ptopbar{ display:flex; align-items:center; gap:10px; padding:14px 16px; background:var(--surface);
  border-bottom:1px solid var(--border); position:sticky; top:0; z-index:20; }
.ptopbar h2{ margin:0; font-size:17px; flex:1; }

.sidebar{ display:none; flex-direction:column; width:236px; background:var(--surface); border-right:1px solid var(--border); padding:16px; gap:2px; }
.sidebar__brand{ display:flex; align-items:center; gap:10px; margin-bottom:16px; color:var(--brand); font-weight:900; }
.sidebar__brand .logo__badge{ background:var(--brand); color:#fff; width:34px; height:34px; border-radius:10px; }
.sidebar__item{ display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:12px; color:var(--muted);
  font-weight:600; font-size:14px; cursor:pointer; text-decoration:none; }
.sidebar__item:hover{ background:var(--tint-1); color:var(--text); }
.sidebar__item--active{ background:var(--brand); color:#fff; }
.sidebar__item svg{ width:20px; height:20px; flex:none; }

/* Partner bottom nav (mobile) */
.pnav{ position:sticky; bottom:0; z-index:25; display:flex; align-items:center; background:var(--surface);
  border-top:1px solid var(--border); padding:6px 4px calc(6px + env(safe-area-inset-bottom)); }
.pnav a{ flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; color:var(--muted);
  font-size:10px; font-weight:600; text-decoration:none; cursor:pointer; }
.pnav a svg{ width:22px; height:22px; }
.pnav a.on{ color:var(--brand); }
.pnav__add{ width:48px; height:48px; border-radius:50%; background:var(--brand); color:#fff; display:grid;
  place-items:center; margin-top:-20px; box-shadow:var(--shadow); flex:none; }
.pnav__add svg{ width:26px; height:26px; }

@media (min-width:900px){
  .sidebar{ display:flex; }
  .plt .pnav{ display:none; }
  .pbody{ padding-bottom:24px; }
}

/* Stats (dashboard) */
.stats{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.stat{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px; }
.stat small{ color:var(--muted); font-size:12px; }
.stat b{ display:block; font-size:22px; margin-top:4px; }
.stat .delta{ font-size:12px; font-weight:700; color:var(--success); }
.stat .delta--down{ color:#E23744; }

/* Order card (pedidos) */
.ordcard{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px; margin-bottom:12px; }
.ordcard__top{ display:flex; justify-content:space-between; align-items:center; font-weight:800; }
.ordcard__top small{ color:var(--muted); font-weight:600; }
.ordcard__cli{ font-weight:700; font-size:14px; margin-top:6px; }
.ordcard__items{ color:var(--muted); font-size:13px; margin:4px 0; }
.ordcard__tag{ display:inline-block; font-size:11px; font-weight:700; color:var(--brand-strong); background:var(--tint-1); padding:3px 8px; border-radius:999px; }
.ordcard__actions{ display:flex; gap:10px; margin-top:12px; }
.btn-success{ background:var(--success); }
.btn-danger{ background:transparent; color:#E23744; border:1.5px solid #E23744; }

/* Product row com toggle (cardápio do lojista) */
.prow{ display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--border); }
.prow img{ width:52px; height:52px; border-radius:12px; object-fit:cover; flex:none; }
.prow__info{ flex:1; min-width:0; } .prow__info b{ font-size:14px; display:block; } .prow__info small{ color:var(--brand-strong); font-weight:700; }

/* Landing parceiro */
.phero{ min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  background:var(--brand); color:#fff; text-align:center; padding:32px 24px; }
.phero .logo__badge{ width:80px; height:80px; border-radius:22px; }
.phero .logo__badge svg{ width:46px; height:46px; }
.phero h1{ font-size:30px; margin:6px 0 0; }
.phero p{ opacity:.95; margin:0; max-width:280px; }
.phero__actions{ width:100%; max-width:320px; display:grid; gap:12px; margin-top:8px; }
.phero__actions .btn{ background:#fff; color:var(--brand-strong); }
.phero__actions .btn-out{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.7); }

/* ================= ENTREGADOR (DELIVER) ================= */
/* Radio em linha (tipo de chave PIX) */
.radio-row{ display:flex; align-items:center; gap:12px; padding:14px; border:1px solid var(--border);
  border-radius:14px; margin-bottom:10px; cursor:pointer; background:var(--surface); }
.radio-row .dot{ width:20px; height:20px; border-radius:50%; border:2px solid var(--border); display:grid; place-items:center; flex:none; }
.radio-row--on{ border-color:var(--brand); }
.radio-row--on .dot{ border-color:var(--brand); }
.radio-row--on .dot::after{ content:""; width:10px; height:10px; border-radius:50%; background:var(--brand); }
.radio-row b{ font-size:14px; }

/* Checkbox linha (termos) */
.check-row{ display:flex; align-items:flex-start; gap:10px; padding:10px 0; font-size:14px; }
.check-row input{ width:20px; height:20px; accent-color:var(--brand); margin-top:1px; }
.check-row a{ color:var(--brand-strong); font-weight:700; }

/* Documentos (frente/verso + câmera) */
.doc-item{ margin-bottom:14px; }
.doc-item > label{ font-size:13px; font-weight:700; }
.doc-item small.hint{ display:block; color:var(--muted); font-size:12px; margin:2px 0 8px; }
.doc-row{ display:flex; align-items:center; gap:12px; }
.doc-thumb{ width:66px; height:46px; border-radius:8px; flex:none; background:linear-gradient(135deg,var(--tint-2),var(--tint-1)); overflow:hidden; }
.doc-thumb img{ width:100%; height:100%; object-fit:cover; }
.doc-thumb--selfie{ width:46px; height:46px; border-radius:50%; }
.doc-info{ flex:1; } .doc-info b{ font-size:13px; display:block; } .doc-info small{ color:var(--muted); font-size:12px; }
.doc-cam{ width:56px; height:46px; border-radius:12px; border:1px solid var(--border); background:var(--surface);
  display:grid; place-items:center; color:var(--muted); flex:none; cursor:pointer; }
.doc-cam svg{ width:22px; height:22px; }

/* Status online */
.status-pill{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:14px; }
.status-pill .led{ width:10px; height:10px; border-radius:50%; background:var(--success); box-shadow:0 0 0 4px var(--success-soft); }

/* Saldo */
.balance{ background:linear-gradient(120deg,var(--brand),var(--brand-strong)); color:#fff; border-radius:var(--radius);
  padding:18px; display:flex; align-items:center; justify-content:space-between; }
.balance small{ opacity:.92; font-size:13px; } .balance b{ display:block; font-size:26px; margin-top:2px; }
.balance .more{ font-size:13px; opacity:.92; }

/* Indicadores (3 col) */
.ind{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.ind__c{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:12px; text-align:center; }
.ind__c b{ display:block; font-size:18px; } .ind__c small{ color:var(--muted); font-size:11px; }

/* Ações rápidas */
.qacts{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.qact{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:12px 6px; text-align:center;
  cursor:pointer; color:var(--text); text-decoration:none; }
.qact svg{ width:24px; height:24px; color:var(--brand); }
.qact small{ display:block; font-size:11px; margin-top:6px; }

/* Próxima corrida (idle) */
.next-ride{ background:var(--surface); border:1px dashed var(--border); border-radius:14px; padding:14px; display:flex; align-items:center; gap:12px; }
.next-ride__ic{ width:44px; height:44px; border-radius:12px; background:var(--tint-1); color:var(--brand); display:grid; place-items:center; flex:none; }

/* Mapa + corrida */
.map-ph{ height:150px; border-radius:var(--radius); position:relative; overflow:hidden; border:1px solid var(--border);
  background:linear-gradient(135deg,#dfeecf,#cfe6f0); }
.map-ph::after{ content:""; position:absolute; left:18%; top:58%; width:64%; height:4px; background:var(--brand);
  border-radius:2px; transform:rotate(-16deg); box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 18%,transparent); }
.map-ph .pinm{ position:absolute; left:16%; top:52%; color:var(--brand); }
.ride-head{ display:flex; align-items:flex-start; gap:12px; }
.ride-head .pin{ width:38px; height:38px; border-radius:10px; background:var(--tint-1); color:var(--brand); display:grid; place-items:center; flex:none; }
.ride-head b{ font-size:15px; } .ride-head small{ color:var(--muted); font-size:13px; display:block; }
.ride-val{ text-align:center; margin:14px 0; }
.ride-val b{ font-size:30px; color:var(--brand-strong); } .ride-val small{ display:block; color:var(--muted); }
.ride-meta{ display:flex; gap:10px; }
.ride-meta .m{ flex:1; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:10px; text-align:center; }
.ride-meta .m b{ font-size:15px; } .ride-meta .m small{ color:var(--muted); font-size:11px; display:block; }

/* Feature strip (rodapé de benefícios) */
.feat{ display:flex; gap:12px; align-items:flex-start; padding:12px 0; }
.feat__ic{ width:40px; height:40px; border-radius:10px; background:var(--success-soft); color:var(--success); display:grid; place-items:center; flex:none; }
.feat b{ font-size:14px; } .feat small{ color:var(--muted); font-size:12px; }

/* ================= SUPER ADMIN ================= */
/* KPIs em 4 colunas no desktop (vale p/ painel do parceiro também) */
@media (min-width:900px){ .stats{ grid-template-columns:repeat(4,1fr); } }

/* Badges de status */
.badge--warn{ background:#FFF3E0; color:#B26A00; }
.badge--danger{ background:#FDECEE; color:#C42A36; }
[data-theme="dark"] .badge--warn{ background:rgba(242,163,0,.18); color:#F6B100; }
[data-theme="dark"] .badge--danger{ background:rgba(226,55,68,.18); color:#F3A3AA; }

/* Tabela */
.tbl-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.tbl{ width:100%; border-collapse:collapse; min-width:520px; }
.tbl th, .tbl td{ text-align:left; padding:12px 14px; font-size:13px; border-bottom:1px solid var(--border); white-space:nowrap; }
.tbl th{ color:var(--muted); font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.4px; }
.tbl tr:last-child td{ border-bottom:0; }
.tbl__store{ display:flex; align-items:center; gap:10px; }
.tbl__store img{ width:34px; height:34px; border-radius:8px; object-fit:cover; }
.tbl .btn{ width:auto; height:34px; padding:0 12px; font-size:13px; }

/* Mini bar chart (MRR) */
.bars{ display:flex; align-items:flex-end; gap:8px; height:140px; padding:14px; background:var(--surface);
  border:1px solid var(--border); border-radius:14px; }
.bars .col{ flex:1; display:flex; flex-direction:column; justify-content:flex-end; height:100%; gap:6px; }
.bars .col > i{ display:block; background:var(--brand); border-radius:6px 6px 0 0; min-height:6px; }
.bars .col > span{ text-align:center; font-size:10px; color:var(--muted); }

/* Approval card */
.apprv{ display:flex; gap:12px; align-items:center; background:var(--surface); border:1px solid var(--border);
  border-radius:14px; padding:12px; margin-bottom:10px; }
.apprv__ic{ width:44px; height:44px; border-radius:10px; background:var(--tint-1); color:var(--brand); display:grid; place-items:center; flex:none; }
.apprv img{ width:44px; height:44px; border-radius:10px; object-fit:cover; flex:none; }
.apprv__b{ flex:1; min-width:0; } .apprv__b b{ font-size:14px; } .apprv__b small{ display:block; color:var(--muted); font-size:12px; }
.apprv__act{ display:flex; gap:8px; }
.apprv__act .btn{ width:auto; height:36px; padding:0 12px; font-size:13px; }

/* PIX box */
.pixbox{ text-align:center; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:18px; }
.pixqr{ width:156px; height:156px; margin:0 auto 12px; border-radius:10px; border:6px solid #fff;
  box-shadow:0 0 0 1px var(--border); background:
  repeating-conic-gradient(#141414 0 25%, #ffffff 0 50%) 0 0 / 18px 18px; }
.pixkey{ font-family:ui-monospace,monospace; font-size:13px; background:var(--tint-1); border-radius:10px; padding:10px; word-break:break-all; }

/* Plan card */
.plan{ background:var(--surface); border:1.5px solid var(--border); border-radius:16px; padding:16px; }
.plan--hl{ border-color:var(--brand); box-shadow:0 0 0 3px var(--tint-1); }
.plan h4{ margin:0; font-size:16px; } .plan .price{ font-size:26px; font-weight:800; margin:6px 0; }
.plan .price small{ font-size:13px; color:var(--muted); font-weight:600; }
.plan ul{ list-style:none; padding:0; margin:10px 0 0; }
.plan li{ font-size:13px; padding:5px 0; color:var(--muted); display:flex; gap:8px; align-items:center; }
.plan li svg{ width:16px; height:16px; color:var(--success); flex:none; }

/* ================= Autocomplete de e-mail ================= */
.emailac{ position:absolute; left:0; right:0; top:100%; margin-top:6px; z-index:60; background:var(--surface);
  border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); overflow:hidden; }
.emailac__i{ padding:10px 14px; font-size:14px; cursor:pointer; color:var(--text); }
.emailac__i--on, .emailac__i:hover{ background:var(--tint-1); color:var(--brand-strong); font-weight:600; }

/* ================= Modal (adicionais do cliente) ================= */
.modal{ position:fixed; inset:0; z-index:200; background:rgba(0,0,0,.45); display:flex; align-items:flex-end; justify-content:center; }
.modal__card{ background:var(--surface); width:100%; max-width:480px; border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  padding:18px 16px calc(18px + env(safe-area-inset-bottom)); max-height:85vh; overflow-y:auto; }
.modal__h{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.modal__h b{ font-size:17px; }
.ad-opt{ display:flex; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid var(--border); }
.ad-opt input{ width:20px; height:20px; accent-color:var(--brand); }
.ad-opt .nm{ flex:1; font-size:14px; }
.ad-opt .pr{ color:var(--brand-strong); font-weight:700; font-size:14px; }
@media (min-width:600px){ .modal{ align-items:center; } .modal__card{ border-radius:var(--radius-lg); } }
