/* Variáveis Injetadas pelo White-Label Studio */
:root {
  --bg-primary: #121214 !important;
  --bg-secondary: #1a1a1e !important;
  --bg-card: #242429 !important;
  --accent: #ef0606 !important;
  --accent-light: #ef0606 !important;
  --accent-dark: #be123c !important;
  --accent-glow: rgba(239, 6, 6, 0.28) !important;
  --text-main: #ffffff !important;
}

/* ==========================================================================
   BRASA BURGER & GRILL - DESIGN SYSTEM & ESTILOS DO APP DO CLIENTE (PWA)
   Aparência: Dark Mode Premium, Glassmorphism, Cores Culinárias Quentes & Micro-interações
   ========================================================================== */

:root {
  /* Paleta de Cores Principais */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #182234;
  --bg-card-hover: #1f2c42;
  --bg-input: #131c2e;
  
  /* Cores de Destaque (Amber / Brasa / Ouro) */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.28);
  
  /* Tons Semânticos */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #f97316;
  --warning-bg: rgba(249, 115, 22, 0.15);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --pix-color: #00bdae;
  --whatsapp-color: #25d366;
  
  /* Tipografia & Contrastes */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.5);
  
  /* Efeitos e Raios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 8px 25px -4px var(--accent-glow);
  
  /* Animações */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  /* Variáveis Reutilizáveis de Botões, Formulários e Modais */
  --btn-font: var(--font-heading);
  --btn-radius: var(--radius-pill);
  --btn-transition: var(--transition-fast);
  --btn-primary-bg: var(--accent);
  --btn-primary-color: #0b0f19;
  --input-bg: var(--bg-input);
  --input-border: var(--border-color);
  --input-radius: var(--radius-md);
  --input-focus-border: var(--border-focus);
  --modal-bg: var(--bg-secondary);
  --modal-overlay-bg: rgba(0, 0, 0, 0.75);
  --modal-border: rgba(255, 255, 255, 0.12);
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset Global & Mobile Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Layout Container */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg-primary);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  padding-bottom: 110px; /* Espaço para barra flutuante da sacola */
}

/* ==========================================================================
   CABEÇALHO & STATUS DA LOJA
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px 8px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Badges de Status da Loja */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: fit-content;
  transition: var(--transition-fast);
}

.store-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Status Aberto */
.store-badge--open {
  background: var(--success-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.store-badge--open .badge-dot {
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.8s infinite;
}

/* Status Fechado */
.store-badge--closed {
  background: var(--warning-bg);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.store-badge--closed .badge-dot {
  background-color: #f97316;
}

/* Loading inicial */
.store-badge--loading {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}
.store-badge--loading .badge-dot {
  background-color: var(--text-dim);
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Ações no Topo */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.icon-btn:active {
  transform: scale(0.92);
}

.btn-badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Barra de Pílulas Rápidas */
.store-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.info-pill strong {
  color: var(--text-main);
}

/* Banner de Loja Fechada */
.closed-banner {
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(239, 68, 68, 0.15));
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.closed-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.banner-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.banner-copy strong {
  display: block;
  font-size: 0.84rem;
  color: #ffedd5;
  margin-bottom: 2px;
}

.banner-copy p {
  font-size: 0.77rem;
  color: #fed7aa;
  line-height: 1.35;
}

/* ==========================================================================
   BUSCA & FILTRO DE CATEGORIAS
   ========================================================================== */

.search-filter-section {
  position: sticky;
  top: 75px;
  z-index: 30;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px 12px;
}

.search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0 42px 0 44px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #172338;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

/* Chips de Categorias */
.categories-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.category-chip.active {
  background: var(--accent);
  color: #0b0f19;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.category-chip:active {
  transform: scale(0.95);
}

/* ==========================================================================
   CATÁLOGO DE PRODUTOS
   ========================================================================== */

.menu-container {
  padding: 16px;
}

.search-feedback {
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.category-block {
  margin-bottom: 28px;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Card de Produto */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card:active {
  transform: scale(0.98);
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card-header {
  margin-bottom: 6px;
}

.product-badge-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.product-card-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-light);
}

.product-add-btn {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.product-card:hover .product-add-btn {
  background: var(--accent);
  color: #0b0f19;
}

.product-card-media {
  width: 95px;
  height: 95px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: #111827;
  position: relative;
}

.product-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-thumb {
  transform: scale(1.06);
}

/* ==========================================================================
   BARRA FLUTUANTE DA SACOLA (BOTTOM BAR)
   ========================================================================== */

.floating-cart-bar {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  z-index: 50;
  animation: slide-up-bar 0.35s ease;
}

@keyframes slide-up-bar {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cart-bar-content {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  border-radius: var(--radius-xl);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-bar-content:active {
  transform: scale(0.98);
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-icon-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #0b0f19;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-bar-texts {
  display: flex;
  flex-direction: column;
}

.cart-bar-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.cart-bar-items-desc {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.cart-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-bar-subtotal {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Animação de pulso quando um item é adicionado */
.cart-bounce {
  animation: cart-bounce-anim 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cart-bounce-anim {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   MODAIS & TELAS DESLIZANTES (BOTTOM SHEETS)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay-bg);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in-overlay 0.22s ease;
}

@keyframes fade-in-overlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet {
  background: var(--modal-bg);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-top: 1px solid var(--modal-border);
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slide-up-sheet 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up-sheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal do Produto */
.modal-product-scrollable {
  overflow-y: auto;
  padding-bottom: 20px;
}

.modal-product-media {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0f172a;
}

.modal-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-product-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-light);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.modal-product-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-color);
}

.modal-product-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.modal-product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.modal-product-price-row {
  margin-top: 10px;
}

.modal-product-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent-light);
}

/* Grupos de Opções do Produto */
.modal-product-groups {
  padding: 10px 20px;
}

.option-group-block {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.option-group-block.group-has-error {
  border-left: 3px solid var(--danger);
  padding-left: 10px;
  background: rgba(239, 68, 68, 0.05);
  border-radius: var(--radius-md);
  padding-top: 8px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.group-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
}

.group-req-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.group-req-tag--required {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.group-req-tag--optional {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.group-instruction {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.group-error-msg {
  font-size: 0.78rem;
  color: #f87171;
  font-weight: 600;
  margin-bottom: 8px;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.option-item:hover {
  background: var(--bg-card-hover);
}

.option-item.selected {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.08);
}

.option-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-control-input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.option-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
}

.option-price {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-light);
}

/* Observações do Produto */
.modal-obs-box {
  padding: 10px 20px 20px;
}

.obs-label {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.obs-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.obs-sub {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.obs-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  resize: vertical;
}

.obs-textarea:focus {
  border-color: var(--border-focus);
}

/* Footer do Modal de Produto */
.modal-product-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.quantity-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.stepper-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.stepper-btn:active {
  transform: scale(0.9);
}

.stepper-val {
  min-width: 32px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  box-shadow: var(--shadow-accent);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-price-tag {
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
}

/* ==========================================================================
   MODAL DA SACOLA & CHECKOUT
   ========================================================================== */

.modal-sheet--cart {
  max-height: 94vh;
}

.modal-sheet-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sheet-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.sheet-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.modal-sheet-body {
  overflow-y: auto;
  padding: 16px 20px 24px;
}

/* Estado Vazio */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.btn-outline {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  background: rgba(245, 158, 11, 0.1);
}

/* Lista de Itens na Sacola */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.cart-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cart-item-title-col {
  flex: 1;
}

.cart-item-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.cart-item-subdetails {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
}

.cart-item-detail-pos {
  color: #34d399;
}

.cart-item-detail-neg {
  color: #f87171;
}

.cart-item-obs {
  font-style: italic;
  color: #cbd5e1;
  margin-top: 3px;
  display: block;
}

.cart-item-remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition-fast);
}

.cart-item-remove-btn:hover {
  color: var(--danger);
}

.cart-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-light);
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 20px;
  display: block;
}

/* Seções do Checkout */
.checkout-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

/* Controle Segmentado: Delivery vs Balcão */
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.segment-option input {
  display: none;
}

.segment-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.segment-icon {
  font-size: 1.4rem;
}

.segment-text strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}

.segment-text small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.segment-option input:checked + .segment-pill {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Botão de Geolocalização */
.btn-geo-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-geo-action:hover {
  background: rgba(245, 158, 11, 0.2);
}

/* Formulários */
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.form-group--full { grid-column: span 4; }
.form-group--3col { grid-column: span 3; }
.form-group--2col { grid-column: span 2; }
.form-group--1col { grid-column: span 1; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.required-star {
  color: var(--danger);
}

.form-input, .form-select {
  width: 100%;
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.form-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Balcão Card */
.balcao-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.balcao-card-icon {
  font-size: 1.5rem;
}

.balcao-card-body strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.balcao-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.balcao-time-tag {
  display: inline-block;
  margin-top: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Opções de Pagamento */
.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.payment-card input {
  display: none;
}

.payment-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.payment-card input:checked + .payment-card-inner {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 0 1px var(--accent);
}

.pay-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pay-icon-wrap--pix {
  background: rgba(0, 189, 174, 0.15);
  color: var(--pix-color);
}

.pay-icon-wrap--cash {
  background: rgba(16, 185, 129, 0.15);
}

.pay-icon-wrap--card, .pay-icon-wrap--debit {
  background: rgba(59, 130, 246, 0.15);
}

.pay-text {
  flex: 1;
}

.pay-text strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.pay-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pay-badge {
  background: rgba(0, 189, 174, 0.15);
  color: var(--pix-color);
  border: 1px solid rgba(0, 189, 174, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.payment-subbox {
  background: var(--bg-input);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 10px;
}

.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.input-prefix-wrap .form-input {
  padding-left: 38px;
}

.troco-calc-feedback {
  font-size: 0.8rem;
  margin-top: 6px;
  font-weight: 600;
}

.troco-calc-feedback.troco-ok {
  color: #34d399;
}

.troco-calc-feedback.troco-err {
  color: #f87171;
}

/* Resumo Financeiro do Pedido (REVELAÇÃO DA TAXA) */
.checkout-summary-box {
  background: #0f1626;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 18px;
}

.summary-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value {
  color: var(--text-main);
  font-weight: 600;
}

.summary-row--total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
}

.summary-label-total {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.summary-value-total {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent-light);
}

.order-notice-box {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  line-height: 1.35;
}

.order-notice-box--open {
  background: var(--success-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.order-notice-box--closed {
  background: var(--warning-bg);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.alert-box-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.82rem;
  margin-top: 16px;
  line-height: 1.4;
}

.modal-sheet-footer {
  padding: 14px 20px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.btn-checkout-submit {
  width: 100%;
}

/* ==========================================================================
   MODAL DE CONFIRMAÇÃO, PIX & WHATSAPP
   ========================================================================== */

.modal-sheet--confirm {
  padding: 24px 20px 28px;
  text-align: center;
  max-height: 94vh;
  overflow-y: auto;
}

.celebration-badge {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
  animation: bounce-badge 0.6s ease;
}

@keyframes bounce-badge {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.confirm-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.order-code-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.confirm-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Bloco Pix */
.pix-payment-box {
  background: #0d1522;
  border: 1px solid rgba(0, 189, 174, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 22px;
  text-align: left;
}

.pix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pix-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.92rem;
}

.pix-amount-pill {
  background: rgba(0, 189, 174, 0.18);
  color: var(--pix-color);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.pix-instruction {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.pix-qrcode-container {
  display: flex;
  justify-content: center;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.qrcode-render-target canvas, .qrcode-render-target img {
  display: block;
  max-width: 190px;
  height: auto;
}

.pix-copiacola-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pix-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pix-input-btn-group {
  display: flex;
  gap: 8px;
}

.pix-raw-input {
  flex: 1;
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 12px;
  color: var(--text-main);
  font-size: 0.8rem;
  font-family: monospace;
  outline: none;
}

.btn-copy-pix {
  background: var(--pix-color);
  color: #0b0f19;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-copy-pix:hover {
  filter: brightness(1.1);
}

.btn-copy-pix:active {
  transform: scale(0.95);
}

.pix-copy-feedback {
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 2px;
}

/* Caixa de Alerta de Pagamento Obrigatório (Pix) */
.pix-payment-alert-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 14px;
  text-align: left;
}

.pix-alert-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.pix-alert-content .pix-alert-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 2px;
}

.pix-alert-content .pix-alert-desc {
  font-size: 0.8rem;
  color: #fef08a;
  line-height: 1.35;
}

/* Botão de Confirmação Visual "Já copiei o código / Já paguei" */
.pix-confirm-step-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-pix-confirm-paid {
  background: #172236;
  border: 1.5px solid var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.btn-pix-confirm-paid:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent-light);
  transform: translateY(-1px);
}

.btn-pix-confirm-paid:active {
  transform: scale(0.98);
}

.btn-pix-confirm-paid.confirmed {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4) !important;
}

.pix-step-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

/* Card do WhatsApp */
.whatsapp-dispatch-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dispatch-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
}

.dispatch-warning strong {
  display: block;
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-bottom: 2px;
}

.dispatch-warning p {
  font-size: 0.78rem;
  color: #fed7aa;
  line-height: 1.35;
}

.dispatch-success-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
}

.dispatch-success-banner strong {
  display: block;
  font-size: 0.84rem;
  color: #34d399;
  margin-bottom: 3px;
  letter-spacing: 0.2px;
}

.dispatch-success-banner p {
  font-size: 0.78rem;
  color: #a7f3d0;
  line-height: 1.35;
}

.btn-whatsapp-send {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  transition: var(--transition-fast);
}

.btn-whatsapp-send:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-whatsapp-send:active {
  transform: scale(0.98);
}

/* Estado Bloqueado do Botão do WhatsApp (para pagamento via Pix) */
.btn-whatsapp-send.btn-whatsapp-locked {
  opacity: 0.38;
  filter: grayscale(0.85);
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Animação quando desbloqueado */
.btn-whatsapp-send.btn-whatsapp-unlocked {
  animation: pulse-wa-unlocked 1.5s infinite alternate ease-in-out;
}

@keyframes pulse-wa-unlocked {
  0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); transform: scale(1); }
  100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65); transform: scale(1.02); }
}

.wa-locked-notice {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
}

.btn-outline-small {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-outline-small:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* ==========================================================================
   MODAL DE PERFIL & HISTÓRICO
   ========================================================================== */

.modal-sheet--standard {
  max-height: 85vh;
}

.profile-helper-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.form-section-title {
  grid-column: span 4;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-actions-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.profile-save-feedback {
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Lista do Histórico */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.history-code {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-light);
  font-size: 0.92rem;
}

.history-date {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.history-items-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.history-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.history-total {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.btn-reorder {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-reorder:hover {
  background: var(--accent);
  color: #0b0f19;
}

/* ==========================================================================
   ROTA OCULTA #sysconfig (MODAL PROTEGIDO)
   ========================================================================== */

.modal-sheet--sysconfig {
  background: #0f172a;
  border: 2px solid #ef4444;
  border-radius: var(--radius-xl);
  margin-bottom: auto;
  margin-top: auto;
  max-width: 660px;
  max-height: 90vh;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.3);
  overflow-y: auto;
}

.modal-sheet-header--sys {
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sys-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  color: #f87171;
  letter-spacing: 0.08em;
}

/* AVISO OSTENSIVO EXIGIDO */
.sys-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}

.sys-warning-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.sys-warning-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 4px;
}

.sys-warning-text p {
  font-size: 0.82rem;
  color: #fee2e2;
  line-height: 1.45;
}

/* Assistente de Provisionamento (Wizard) */
.sys-steps-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.sys-step-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition-fast);
}

.sys-step-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.sys-step-card--highlight {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.sys-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sys-step-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.sys-step-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.sys-step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.sys-step-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sys-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-sys-step:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-sys-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  box-shadow: none;
}

.btn-sys-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.btn-sys-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  transition: color var(--transition-fast);
}

.btn-sys-text:hover {
  color: #ffffff;
  text-decoration: underline;
}

.sys-instructions-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.sys-instructions-list {
  margin: 8px 0 0 18px;
  padding: 0;
}

.sys-instructions-list li {
  margin-bottom: 4px;
}

.sys-instructions-list li strong {
  color: #ffffff;
}

.sys-instructions-list ul {
  margin: 4px 0 4px 16px;
  padding: 0;
  list-style: disc;
}

.sys-script-preview-wrap {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.sys-code-block {
  font-family: monospace;
  font-size: 0.72rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.4;
  user-select: all;
}

.sys-form-group {
  margin-bottom: 14px;
}

.sys-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.sys-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
}

.sys-status-indicator.connected {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all var(--transition-fast);
}

.status-indicator-dot.active,
.status-indicator-dot.connected {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.sys-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sys-save {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-sys-save:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-sys-clear {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-sys-clear:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fee2e2;
}

.sys-feedback {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
}

.sys-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.sys-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 420px;
}

.toast {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast--success { border-color: rgba(16, 185, 129, 0.5); }
.toast--warning { border-color: rgba(249, 115, 22, 0.5); }
.toast--danger { border-color: rgba(239, 68, 68, 0.5); }

@keyframes toast-in {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   ACOMPANHAMENTO DE PEDIDOS EM TEMPO REAL & LINHA DO TEMPO (TIMELINE)
   ========================================================================== */

/* Barra Flutuante de Pedido Ativo */
.active-order-banner {
  background: linear-gradient(90deg, #121c2e, #1a273e);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  padding: 10px 16px;
  cursor: pointer;
  position: sticky;
  top: 60px;
  z-index: 85;
  transition: transform var(--transition-normal);
}

.active-order-banner:hover {
  background: linear-gradient(90deg, #17243b, #1f2f4c);
}

.active-banner-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.active-banner-pulse {
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-dot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.active-banner-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.active-banner-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.active-banner-status {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.active-banner-status strong {
  color: var(--accent-light);
}

.active-banner-action {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Botão de Acompanhar no Modal de Sucesso */
.btn-track-order-action {
  width: 100%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-track-order-action:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Convite para Notificações do Navegador */
.notification-prompt-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.notif-prompt-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.notif-prompt-body {
  flex: 1;
}

.notif-prompt-body strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
  margin-bottom: 2px;
}

.notif-prompt-body p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.btn-enable-notif {
  background: var(--accent);
  color: #0b0f19;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-enable-notif:hover {
  filter: brightness(1.15);
}

/* Card de Pedido Ativo dentro do Modal de Histórico */
.tracking-active-section {
  margin-bottom: 24px;
}

.tracking-card {
  background: #0d1524;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.tracking-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #3b82f6, #10b981);
}

.tracking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tracking-code-wrap {
  display: flex;
  flex-direction: column;
}

.tracking-code {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.tracking-time {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.tracking-type-tag {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Status em Destaque no Card */
.tracking-status-banner {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tracking-status-banner--pix {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.45);
}

.tracking-status-banner--preparo {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.45);
}

.tracking-status-banner--entrega {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.45);
}

.tracking-status-banner--concluido {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
}

.tracking-status-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.tracking-status-texts strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.tracking-status-texts p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   LINHA DO TEMPO VISUAL (TIMELINE)
   ========================================================================== */

.tracking-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 24px 4px 18px;
}

/* Barra de fundo cinza que conecta as etapas */
.timeline-track-bar {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  border-radius: 2px;
}

/* Barra de progresso preenchida com gradiente */
.timeline-track-fill {
  position: absolute;
  top: 18px;
  left: 20px;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #3b82f6);
  z-index: 2;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.step-node {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111a2c;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.step-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1.2;
}

.step-sub {
  font-size: 0.64rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Etapa Concluída */
.timeline-step--completed .step-node {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
.timeline-step--completed .step-label {
  color: #fff;
}

/* Etapa Ativa (Em andamento) */
.timeline-step--active .step-node {
  background: #1d4ed8;
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.6);
  animation: pulse-step 2s infinite ease-in-out;
}
.timeline-step--active .step-label {
  color: #60a5fa;
  font-weight: 800;
}

/* Etapa Ativa com Trava Pix */
.timeline-step--pix-pending .step-node {
  background: #b45309;
  border-color: #fbbf24;
  color: #fff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  animation: pulse-step-pix 1.8s infinite ease-in-out;
}
.timeline-step--pix-pending .step-label {
  color: #fbbf24;
  font-weight: 800;
}

@keyframes pulse-step {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.85); }
}

@keyframes pulse-step-pix {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(245, 158, 11, 0.85); }
}

/* Rodapé do Card de Acompanhamento */
.tracking-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.tracking-sync-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.sync-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.btn-contact-store-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.76rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-contact-store-wa:hover {
  background: rgba(37, 211, 102, 0.28);
}

.history-section-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   UTILITÁRIOS
   ========================================================================== */

.hidden {
  display: none !important;
}

/* Responsividade Desktop */
@media (min-width: 681px) {
  body {
    background-color: #060911;
  }
  
  .modal-overlay {
    align-items: center;
  }
  
  .modal-sheet {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
}
