@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   Leva — Premium Design System (High Contrast & Visible Borders)
   ============================================================ */
:root {
  /* Cores Principais (Alto Contraste e Definição Premium) */
  --bg: #cbd5e1;              /* Cinza Slate-300 para o fundo (alto contraste com os cards brancos) */
  --surface: #ffffff;         /* Cards e superfícies em branco puro */
  --ink: #0f172a;             /* Slate-900 para textos (máxima legibilidade) */
  --muted: #475569;           /* Texto secundário cinza-escuro (Slate-600) */
  --line: #94a3b8;            /* Contornos bem nítidos em cinza médio (Slate-400) */
  
  /* Roxo Leva (Predominante & Profissional) */
  --brand: #6d28d9;           /* Violeta Premium */
  --brand-ink: #4c1d95;       /* Violeta Escuro */
  --brand-soft: #f5f3ff;      /* Violeta Ultra Suave */
  --brand-medium: #e9e3ff;    /* Violeta Médio ultra-suave para contornos de marca */
  --brand-glow: rgba(109, 40, 217, 0.08);
  --brand-gradient: linear-gradient(135deg, #6d28d9, #7c3aed);
  --brand-gradient-hover: linear-gradient(135deg, #5b21b6, #6d28d9);
  
  /* Cores de Feedback */
  --go: #10b981;              /* Verde (Sucesso) */
  --go-soft: #ecfdf5;
  --go-ink: #047857;
  
  --star: #f59e0b;            /* Amarelo (Avaliação) */
  --star-soft: #fef3c7;
  
  --danger: #ef4444;          /* Vermelho (Alerta/Cancelado) */
  --danger-soft: #fee2e2;
  --danger-ink: #991b1b;

  /* Raio de Borda (Arredondados elegantes estilo Keeta) */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --pill: 999px;

  /* Sombras Modernas com Profundidade (Alta Definição) */
  --sh-sm: 0 1px 3px rgba(15, 23, 42, 0.1);
  --sh: 0 4px 16px -2px rgba(15, 23, 42, 0.15), 0 2px 6px -1px rgba(15, 23, 42, 0.08);
  --sh-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.25), 0 6px 16px -2px rgba(15, 23, 42, 0.12);
  --sh-brand: 0 4px 12px -2px rgba(109, 40, 217, 0.15);
}

/* Reset Geral */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hidden {
  display: none !important;
}

/* ---------- Cabeçalho / Topbar (Visual Premium Roxo com Alto Contraste) ---------- */
.topbar {
  background: var(--brand-gradient);
  border-bottom: 2px solid var(--brand-ink); /* Contorno nítido roxo escuro */
  display: flex;
  align-items: center;
  justify-content: center; /* Centraliza a logo e texto no meio */
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.18);
  position: relative; /* Base para o posicionamento absoluto do perfil */
}
.brand {
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -0.03em;
  color: #ffffff; /* Texto branco para máximo contraste */
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand img, #hdrLogo img {
  height: 44px !important; /* Logo maior e mais visível */
  width: 44px !important;
  object-fit: contain;
  vertical-align: middle;
  background: #ffffff;
  border-radius: 10px;
  padding: 3px; /* Reduzido o espaçamento para o logotipo ficar maior */
  box-shadow: var(--sh-sm);
  filter: none !important; /* Mantém a cor original roxa do logotipo */
}
.brand span {
  color: rgba(255, 255, 255, 0.9);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  font-weight: 800;
}
#who, #whoM {
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85); /* Texto em branco suave */
  display: flex;
  gap: 12px;
  align-items: center;
  position: absolute; /* Alinha o perfil na ponta direita sem quebrar a centralização */
  right: 20px;
}

/* ---------- Container Principal (Interface Mobile Centralizada) ---------- */
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* ---------- Cartões com Contornos Visíveis & Sombras (Estilo Keeta) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line); /* Fim do visual sem contorno */
  border-radius: var(--radius);
  box-shadow: var(--sh);
  padding: 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
  border-color: var(--brand-medium); /* Borda fica roxa suave no hover */
}
.card h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 10px;
}

/* ---------- Formulários nítidos (Fácil visualização) ---------- */
label {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink);
  margin: 14px 0 6px;
}
input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #94a3b8; /* Borda nítida e visível */
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  background: #f8fafc; /* Fundo suave para destacar do card branco */
  color: var(--ink);
  transition: all 0.2s ease;
  font-family: inherit;
  font-weight: 600;
}
input::placeholder {
  color: #94a3b8;
}
input:focus, select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
  background: #ffffff; /* Fica branco puro ao receber foco */
}
.row {
  display: flex;
  gap: 12px;
}
.row > * {
  flex: 1;
}

/* ---------- Botões com Gradiente e Contornos Sólidos ---------- */
button {
  cursor: pointer;
  border: 1px solid var(--brand-ink); /* Borda visível de marca */
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 20px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--sh-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover {
  background: var(--brand-gradient-hover);
  border-color: #3b0764; /* Roxo muito escuro no hover */
  transform: translateY(-1.5px);
  box-shadow: 0 10px 20px -4px rgba(109, 40, 217, 0.45);
}
button:active {
  transform: translateY(0.5px);
}
button.ghost {
  background: var(--brand-soft);
  color: var(--brand-ink);
  box-shadow: none;
  border: 1px solid var(--brand); /* Contorno roxo nítido */
}
button.ghost:hover {
  background: var(--brand-medium);
  border-color: var(--brand-ink);
  box-shadow: var(--sh-sm);
}
button.go {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid var(--go-ink); /* Contorno verde nítido */
  box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.35);
}
button.go:hover {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #022c22;
  box-shadow: 0 12px 20px -4px rgba(16, 185, 129, 0.45);
}
button.red {
  background: var(--danger-soft);
  color: var(--danger-ink);
  box-shadow: none;
  border: 1px solid var(--danger); /* Contorno vermelho nítido */
}
button.red:hover {
  background: #fee2e2;
  border-color: var(--danger-ink);
  box-shadow: var(--sh-sm);
}
button.star {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: 1px solid #9a3412; /* Contorno laranja/marrom nítido */
  box-shadow: 0 8px 16px -4px rgba(245, 158, 11, 0.35);
}
button.sm {
  padding: 10px 16px;
  font-size: 13.5px;
  border-radius: 10px;
  box-shadow: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background: #cbd5e1 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}

/* ---------- Status Pills (Pílulas de Estado de Alta Visibilidade) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.st-received { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.st-searching { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.st-offered { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.st-accepted { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.st-arrived_at_store { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.st-picked_up, .st-delivering { background: #e0f7fa; color: #006064; border-color: #b2ebf2; }
.st-arrived_at_customer { background: #fae8ff; color: #86198f; border-color: #f5d0fe; }
.st-delivered { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.st-canceled { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

/* ---------- Visual dos Pedidos (iFood / 99 Style) ---------- */
.order {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--surface);
  transition: all 0.2s ease;
  box-shadow: var(--sh-sm);
}
.order:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh);
  border-color: var(--brand-medium);
}
.order .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.order .meta {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.order .price {
  font-weight: 850;
  font-size: 17.5px;
  color: var(--ink);
}
.mode-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border: 1px solid var(--brand-medium);
}

/* ---------- Textos Auxiliares ---------- */
.muted {
  color: var(--muted);
  font-size: 13.5px;
}
.big {
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 30px 16px;
  font-size: 15px;
}
.empty::before {
  content: "inbox";
  font-family: 'Material Icons';
  display: block;
  font-size: 44px;
  margin-bottom: 12px;
  color: var(--brand-ink);
  opacity: 0.45;
}

/* ---------- Caixa de Códigos / Informações Chave ---------- */
.banner {
  background: linear-gradient(180deg, var(--brand-soft), #f3e8ff);
  border: 1px solid var(--brand-medium);
  color: var(--brand-ink);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14.5px;
  margin-bottom: 16px;
  line-height: 1.6;
  box-shadow: var(--sh-sm);
}
.banner b {
  color: var(--brand-ink);
  font-weight: 800;
}

/* ---------- Stepper (Barra de Progresso) ---------- */
.stepper {
  display: flex;
  margin: 16px 0 8px;
  position: relative;
}
.step {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  position: relative;
  font-weight: 750;
}
.step .nodo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: #94a3b8;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  font-size: 13px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
  border: 2px solid var(--line);
}
.step:not(:first-child)::before {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--line);
  top: 13px;
  right: 50%;
  width: 100%;
  z-index: 0;
}
.step.done .nodo {
  background: var(--go);
  color: #ffffff;
  border-color: var(--go);
}
.step.done:not(:first-child)::before {
  background: var(--go);
}
.step.active .nodo {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-glow);
}
.step.active:not(:first-child)::before {
  background: var(--brand);
}
.step.active {
  color: var(--brand-ink);
}

/* ---------- Mini-Mapa (Visualização Rápida) ---------- */
.track {
  height: 180px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f1f5f9;
}
.dot {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 24px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  transition: left 0.8s ease, top 0.8s ease;
}
.flash {
  animation: flash 1.2s ease;
}
@keyframes flash {
  0% { box-shadow: inset 0 0 0 4px rgba(124, 58, 237, 0.4); }
  100% { box-shadow: inset 0 0 0 4px transparent; }
}

/* ---------- Indicador da Fila (Destaque Gigante) ---------- */
.q-pos {
  font-size: 54px;
  font-weight: 900;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ---------- Toasts Premium (Notificações Flutuantes) ---------- */
#toastC {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: 100%;
  padding: 0 20px;
}
.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--sh-lg);
  font-size: 14.5px;
  font-weight: 800;
  max-width: 420px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.25s, transform 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast-error {
  background: var(--danger);
}
.toast-success {
  background: var(--go);
}

/* ---------- Estrelas de Avaliação ---------- */
.rate-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.starbtn {
  background: none;
  box-shadow: none;
  color: #94a3b8; /* Darker gray for high contrast outline */
  font-size: 32px; /* Slightly larger for premium look & easy tap */
  padding: 0 4px;
  line-height: 1;
  transition: all 0.15s ease;
  border: none;
}
.starbtn:hover {
  color: var(--star);
  transform: scale(1.2);
  filter: none;
}
.stars-filled {
  color: var(--star);
  letter-spacing: 3px;
  font-size: 15px;
}

/* ---------- Carteira Financeira (Visual iFood / 99) ---------- */
.wallet-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px;
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: var(--sh-brand);
  border: 1px solid var(--brand-ink);
}
.wallet-hero.earn {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.35);
  border-color: #047857;
}
.wallet-hero::after {
  content: "motorcycle";
  font-family: 'Material Icons';
  position: absolute;
  right: -12px;
  bottom: -20px;
  font-size: 110px;
  opacity: 0.1;
  transform: rotate(-12deg);
  pointer-events: none;
}
.wallet-hero .lbl {
  font-size: 13.5px;
  font-weight: 750;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wallet-hero .bal {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.wbtn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: none;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.wbtn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.wallet-sub {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.wallet-sub > div {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.wallet-sub .n {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}
.wallet-sub .t {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 700;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Abas de Período */
.seg {
  display: flex;
  background: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 4px;
  margin: 16px 0 6px;
  border: 1px solid var(--line);
}
.seg button {
  flex: 1;
  background: none;
  color: var(--muted);
  box-shadow: none;
  padding: 10px 8px;
  font-size: 13.5px;
  border-radius: 9px;
  font-weight: 750;
  border: none;
}
.seg button.on {
  background: #ffffff;
  color: var(--brand-ink);
  box-shadow: var(--sh-sm);
  border: 1px solid #cbd5e1;
}

/* Extrato Financeiro */
.tx {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.tx:last-child {
  border-bottom: 0;
}
.tx .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
  border: 1px solid var(--brand-medium);
}
.tx .info {
  flex: 1;
  min-width: 0;
}
.tx .info b {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx .info span {
  font-size: 12.5px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.tx .amt {
  font-weight: 850;
  font-size: 16px;
  color: var(--go);
  white-space: nowrap;
}

/* ---------- Navegação Inferior Flutuante (Estilo Modern iOS/Android App) ---------- */
.bottomnav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 448px; /* 480px - padding */
  margin: 0 auto;
  display: flex;
  background: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 8px 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); /* Sombra proeminente */
}
.bottomnav button {
  flex: 1;
  background: none;
  box-shadow: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 16px;
  font-size: 22px;
  border: none !important;
}
.bottomnav button span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.bottomnav button.on {
  color: var(--brand);
  background: var(--brand-soft);
  border: none !important; /* Destaque da aba ativa apenas por cor, sem contorno */
}
.bottomnav button.on span {
  color: var(--brand-ink);
}
.bottomnav button:active {
  transform: scale(0.92);
}
body.has-nav .wrap {
  padding-bottom: 105px;
}

/* ---------- Perfil do Usuário ---------- */
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: var(--sh-brand);
  border: 2px solid #ffffff;
}
.pf-name {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pf-stats {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.pf-stats > div {
  flex: 1;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  box-shadow: var(--sh-sm);
}
.pf-stats .n {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}
.pf-stats .t {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
  text-transform: uppercase;
}
.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.doc-row:last-of-type {
  border-bottom: 0;
}
.doc-row span:first-child {
  font-weight: 750;
  font-size: 14.5px;
  color: var(--ink);
}

/* ---------- Google Map Integration ---------- */
.gmap {
  height: 220px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #e2e8f0;
}
.track {
  height: 320px;
}

/* ---------- Animações Premium ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Layout de Cabeçalho Superior e Status (iFood / 99 Style) ---------- */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-start;
}
.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}
.header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.25);
  transition: transform 0.2s ease;
  border: 2px solid #ffffff;
}
.header-avatar:hover {
  transform: scale(1.08);
}
.toggle-status-btn {
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: var(--sh-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.toggle-status-btn.offline {
  background: #f1f5f9; /* Darker background */
  color: #475569; /* Darker slate text */
  border-color: #cbd5e1; /* Visible gray border */
}
.toggle-status-btn.online {
  background: #d1fae5; /* Richer light green background */
  color: #065f46; /* Darker forest green text for high contrast */
  border-color: #34d399; /* Clear green border */
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.toggle-status-btn.on_delivery {
  background: #f3e8ff; /* Richer soft purple */
  color: #6b21a8; /* Darker purple text for high contrast */
  border-color: #c084fc; /* Clear purple border */
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15);
}
.header-icon-btn {
  background: #f8fafc; /* Subtle off-white to stand out from header */
  border: 1.5px solid #cbd5e1 !important; /* Visible outline border */
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: #334155; /* Darker icon color */
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.15s;
  display: grid;
  place-items: center;
}
.header-icon-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.status-banner {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 14px;
  animation: rise 0.35s ease both;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--brand-medium);
}
.status-banner.online {
  background: var(--go-soft);
  color: var(--go-ink);
  border-color: #a7f3d0;
}
.status-banner.on_delivery {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.action-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--sh-sm);
  font-family: inherit;
}
.action-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh);
  border-color: var(--brand-medium);
}

.summary-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--sh);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.summary-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand-medium);
}
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.summary-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.summary-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.summary-value {
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.summary-visibility-btn {
  background: none;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.15s;
}
.summary-visibility-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Custom utility for aligning Google Material Icons */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Responsividade adicional */
@media (max-width: 520px) {
  .wrap {
    padding: 16px 12px 110px;
  }
  .card {
    padding: 18px;
  }
  .topbar {
    padding: 12px 14px;
  }
  .brand {
    font-size: 20px;
  }
}

/* ============================================================
   Ajustes de Destaque de Botões e Resets de Hover
   ============================================================ */

/* Impede que botões específicos herdem efeitos de hover do botão roxo genérico */
.toggle-status-btn:hover,
.header-icon-btn:hover,
.wbtn:hover,
.seg button:hover,
.bottomnav button:hover,
.starbtn:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Hover correto para ícones de cabeçalho */
.header-icon-btn:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  box-shadow: var(--sh-sm) !important;
}

/* Hover correto para ação de carteira (.wbtn) */
.wbtn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
}

/* Hover correto para botões segmentados */
.seg button:hover {
  background: none !important;
  color: var(--muted) !important;
}
.seg button.on:hover {
  background: #ffffff !important;
  color: var(--brand-ink) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: var(--sh-sm) !important;
}

/* Hover correto para navegação inferior */
.bottomnav button:hover {
  background: none !important;
  color: var(--muted) !important;
}
.bottomnav button.on:hover {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}

/* Hover correto para estrelas */
.starbtn:hover {
  background: none !important;
  color: var(--star) !important;
  transform: scale(1.2) !important;
}

/* Botão de Status Verde/Cinza em Destaque */
.status-toggle-btn {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
  padding: 10px 18px !important;
  border: 1px solid #047857 !important; /* Contorno verde visível */
  transition: all 0.2s ease !important;
  text-shadow: none !important;
}
.status-toggle-btn:hover {
  background: #059669 !important;
  border-color: #022c22 !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3) !important;
  transform: translateY(-1px) !important;
}
.status-toggle-btn:active {
  transform: translateY(0.5px) !important;
}
.status-toggle-btn.offline-btn {
  background: #64748b !important;
  border: 1px solid #475569 !important; /* Contorno cinza visível */
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2) !important;
}
.status-toggle-btn.offline-btn:hover {
  background: #475569 !important;
  border-color: #334155 !important;
  box-shadow: 0 6px 16px rgba(100, 116, 139, 0.3) !important;
}

/* Lista de Produtos no Painel da Loja (Evitar Overlap e Quebra de Layout) */
.prod-item {
  display: flex;
  flex-direction: column;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.prod-item:last-child {
  border-bottom: 0;
}
.prod-item-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.prod-item-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: var(--brand-soft);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--brand-medium);
}
.prod-item-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: none;
  border: 1px solid var(--brand-medium);
  box-shadow: var(--sh-sm);
}
.prod-item-info {
  flex: 1;
  min-width: 0;
}
.prod-item-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  display: block;
}
.prod-item-meta {
  font-size: 13.5px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.prod-item-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.prod-item-actions button {
  flex: 1;
  min-width: 80px;
  max-width: 120px;
}
.unavailable-badge {
  color: var(--danger);
  font-weight: 700;
}
.old-price {
  color: var(--muted);
  text-decoration: line-through;
}


