/* ==========================================================================
   SmartPedidos - Design System & Styles (Pro Max & Impeccable System)
   Plataforma de Força de Vendas B2B & Emissão de Pedidos com Modo Offline
   ========================================================================== */

/* --- 1. Design Tokens & Variables --- */
:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Brand & Theme Colors */
  --primary: #0a5cff;
  --primary-hover: #0045d8;
  --primary-dark: #002e99;
  --primary-light: #eff6ff;
  --primary-glow: rgba(10, 92, 255, 0.28);
  --primary-gradient: linear-gradient(135deg, #0a5cff 0%, #0038ff 50%, #4338ca 100%);
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;

  /* Neutral Slate Scale */
  --slate-950: #050b14;
  --slate-900: #0b1325;
  --slate-850: #0f1a33;
  --slate-800: #172445;
  --slate-700: #2a3a5e;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Functional Status Colors */
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-50:  #ecfdf5;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --amber-500:   #f59e0b;
  --amber-600:   #d97706;
  --amber-50:    #fffbeb;
  --amber-glow:   rgba(245, 158, 11, 0.3);
  --rose-500:    #ef4444;
  --rose-600:    #dc2626;
  --rose-50:     #fef2f2;

  /* Glassmorphism & Elevation */
  --glass-bg-light: rgba(255, 255, 255, 0.82);
  --glass-border-light: rgba(255, 255, 255, 0.6);
  --glass-card-bg: rgba(255, 255, 255, 0.95);
  --glass-dark-bg: rgba(11, 19, 37, 0.75);
  --glass-dark-border: rgba(255, 255, 255, 0.08);

  /* Shadows Volumétricas em Múltiplas Camadas */
  --shadow-xs: 0 1px 2px rgba(11, 19, 37, 0.04);
  --shadow-sm: 0 2px 4px rgba(11, 19, 37, 0.04), 0 1px 2px rgba(11, 19, 37, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(11, 19, 37, 0.06), 0 2px 6px -1px rgba(11, 19, 37, 0.03);
  --shadow-lg: 0 12px 28px -6px rgba(11, 19, 37, 0.08), 0 6px 14px -3px rgba(11, 19, 37, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(11, 19, 37, 0.12), 0 12px 24px -6px rgba(11, 19, 37, 0.05);
  --shadow-glow: 0 0 35px var(--primary-glow);
  --shadow-glow-emerald: 0 0 30px var(--emerald-glow);

  /* Corner Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. CSS Reset & Base Standards --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family);
  background-color: #f8fafc;
  color: var(--slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Ambient Background Mesh */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% -20%, rgba(10, 92, 255, 0.09) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

/* --- 3. Typography & Utilities --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  color: var(--slate-600);
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
  position: relative;
}

.text-center {
  text-align: center;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(10, 92, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(10, 92, 255, 0.16);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--slate-900);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-500);
  line-height: 1.6;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 50%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Badge Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition-normal);
}

.badge-pill.primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(10, 92, 255, 0.2);
}

.badge-pill.success {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pill.warning {
  background: var(--amber-50);
  color: var(--amber-600);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  position: relative;
  flex-shrink: 0;
}

.dot-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.55;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Modern Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(10, 92, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 92, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(25deg);
  transition: all 0.6s ease;
}

.btn-primary:hover::after {
  left: 140%;
}

.btn-outline {
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-300);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Header & Floating Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(11, 19, 37, 0.05);
  border-bottom-color: rgba(203, 213, 225, 0.8);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 28px;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo-h-img {
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover .brand-logo-img,
.brand-logo:hover .brand-logo-h-img {
  transform: scale(1.03);
}

.brand-logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-600);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Nav Portal Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-dropdown-trigger:hover {
  background: var(--slate-100);
  color: var(--primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--slate-700);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--slate-50);
  color: var(--primary);
  transform: translateX(3px);
}

.dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  flex-shrink: 0;
}

.dropdown-item:hover .dropdown-item-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--slate-800);
  cursor: pointer;
  padding: 6px;
}

.mobile-portal-link {
  display: none;
}

/* ==========================================================================
   Hero Section & Interactive Device Frame Showcase
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 620px;
}

.hero-badge-container {
  margin-bottom: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(10, 92, 255, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(10, 92, 255, 0.08);
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--slate-800);
}

.hero-badge-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 22px;
  color: var(--slate-950);
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--slate-600);
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.trust-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
}

.trust-bullets span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-bullets svg {
  color: var(--emerald-500);
}

/* Device Mockup Showcase Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-frame {
  position: relative;
  width: 320px;
  background: var(--slate-950);
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(10, 92, 255, 0.3), 0 15px 35px -10px rgba(0, 0, 0, 0.4);
  border: 4px solid #334155;
}

/* Notch / Dynamic Island */
.phone-mockup-frame::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #0f172a;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  position: relative;
  background: #ffffff;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
  display: flex;
  flex-direction: column;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Floating Badges on Hero */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
  animation: float-slow 4s ease-in-out infinite;
}

.floating-badge.badge-offline {
  top: 12%;
  left: -24px;
  border-left: 4px solid var(--amber-500);
}

.floating-badge.badge-sync {
  bottom: 12%;
  right: -24px;
  border-left: 4px solid var(--emerald-500);
  animation-delay: 2s;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.badge-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon.amber {
  background: var(--amber-50);
  color: var(--amber-600);
}

.badge-icon.emerald {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.badge-info h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.badge-info p {
  font-size: 0.775rem;
  color: var(--slate-500);
  margin: 0;
}

/* ==========================================================================
   ERP Compatibility & Partners Bar
   ========================================================================== */
.erp-bar-section {
  padding: 24px 0 36px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: var(--white);
}

.erp-bar-title {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  margin-bottom: 20px;
}

.erp-logos-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px 48px;
}

.erp-logo-item {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-400);
  letter-spacing: -0.02em;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.erp-logo-item:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.erp-logo-item svg {
  opacity: 0.7;
}

/* ==========================================================================
   Highlight Section: Offline Mode 2.0 (The Killer Feature)
   ========================================================================== */
.offline-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f9 100%);
  position: relative;
}

.offline-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 20px;
}

/* Dynamic Connection Simulator 2.0 Component */
.connection-simulator-pro {
  background: var(--slate-950);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-800);
  box-shadow: 0 25px 50px -12px rgba(11, 19, 37, 0.25);
  overflow: hidden;
  color: var(--white);
}

.sim-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--slate-900);
  border-bottom: 1px solid var(--slate-800);
}

.sim-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate-300);
}

.sim-window-dots {
  display: flex;
  gap: 6px;
}

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sim-dot.red { background: #ef4444; }
.sim-dot.yellow { background: #f59e0b; }
.sim-dot.green { background: #10b981; }

.sim-toggle-wrapper {
  display: flex;
  background: var(--slate-950);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--slate-800);
}

.sim-toggle-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--slate-400);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-toggle-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(10, 92, 255, 0.4);
}

.sim-body {
  padding: 24px;
}

.sim-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: var(--transition-normal);
}

.sim-status-banner.is-offline {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.sim-status-banner.is-online {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.sim-status-text h4 {
  font-size: 0.95rem;
  color: inherit;
  margin-bottom: 2px;
}

.sim-status-text p {
  font-size: 0.8125rem;
  color: var(--slate-300);
}

/* Orders in Local Queue */
.sim-orders-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--slate-400);
  margin-bottom: 12px;
}

.sim-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  font-size: 0.85rem;
  transition: var(--transition-normal);
}

.sim-order-info strong {
  display: block;
  color: var(--white);
  font-size: 0.875rem;
}

.sim-order-info span {
  color: var(--slate-400);
  font-size: 0.75rem;
}

.sim-order-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
}

.sim-order-badge.offline-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.sim-order-badge.synced-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sim-footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--slate-400);
}

/* Offline 3 Pillars Cards */
.offline-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.offline-card-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.offline-card-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 92, 255, 0.25);
}

.offline-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offline-card-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.offline-card-info p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--slate-600);
}

/* ==========================================================================
   Bento Grid of Features (6 Módulos do Sistema Pro Max)
   ========================================================================== */
.bento-features-section {
  background: var(--white);
}

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

.bento-card {
  background: var(--slate-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 92, 255, 0.35);
  box-shadow: var(--shadow-xl);
  background: var(--white);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.bento-card:hover .bento-icon-box {
  transform: scale(1.08) rotate(3deg);
}

.bento-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 4px;
}

.bento-card h3 {
  font-size: 1.25rem;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Micro-Demonstrations inside Bento Cards */
.bento-preview-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: auto;
  box-shadow: var(--shadow-xs);
}

/* Bento 1: 4-Step Flow Preview */
.flow-steps-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flow-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.flow-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.flow-step-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--slate-700);
}

.flow-arrow {
  color: var(--slate-300);
  font-weight: 700;
}

/* Bento 2: Product Showcase Preview */
.product-card-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prod-meta {
  display: flex;
  flex-direction: column;
}

.prod-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-800);
}

.prod-price {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 700;
}

.stock-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald-600);
  background: var(--emerald-50);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Bento 3: Discount Lock Bar */
.discount-lock-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discount-lock-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
}

.discount-progress-track {
  height: 8px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.discount-progress-fill {
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-500) 0%, var(--amber-500) 70%, var(--rose-500) 100%);
  border-radius: var(--radius-full);
}

/* Bento 4: Customer Profile Preview */
.customer-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-info strong {
  display: block;
  font-size: 0.875rem;
}

.customer-info span {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.customer-actions {
  display: flex;
  gap: 8px;
}

.customer-btn-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
  transition: var(--transition-fast);
}

.customer-btn-action:hover {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

/* Bento 5: PDF Receipt WhatsApp */
.pdf-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdf-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
}

/* Bento 6: API ERP Sync Bar */
.api-sync-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* Checklist inside Bento Cards */
.bento-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.bento-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--slate-700);
}

.bento-checklist svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Section: Interactive ROI & Commercial Impact Calculator (Pro Max)
   ========================================================================== */
.roi-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f9 100%);
  position: relative;
}

.roi-card-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.roi-controls {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.roi-slider-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--slate-900);
}

.roi-slider-value {
  font-size: 1.15rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Range Slider Custom Styling */
.roi-range-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--slate-200);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.roi-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(10, 92, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.roi-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ROI Results Display */
.roi-results-box {
  background: var(--slate-950);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--slate-800);
  box-shadow: var(--shadow-lg);
}

.roi-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-800);
  padding-bottom: 16px;
}

.roi-result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.roi-result-label {
  font-size: 0.9rem;
  color: var(--slate-300);
  max-width: 200px;
}

.roi-result-metric {
  font-size: 1.75rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.02em;
}

.roi-result-metric.highlight {
  color: #34d399;
  font-size: 2.1rem;
}

/* ==========================================================================
   Section: Modern Split Comparison (Antes vs Depois)
   ========================================================================== */
.comparison-section {
  background: var(--white);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 10px;
}

.comparison-card {
  border-radius: var(--radius-xl);
  padding: 38px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.comparison-card.negative {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.comparison-card.positive {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  box-shadow: 0 12px 30px -8px rgba(16, 185, 129, 0.15);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.comparison-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.comparison-card.negative .comparison-icon {
  background: #fee2e2;
  color: #dc2626;
}

.comparison-card.positive .comparison-icon {
  background: #dcfce7;
  color: #16a34a;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comparison-list li {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--slate-700);
}

.comparison-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Section: Stats & Impact Counters
   ========================================================================== */
.stats-section {
  background: var(--slate-950);
  color: var(--white);
  padding: 72px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 10px;
}

.stat-number {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-number span {
  color: #38bdf8;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--slate-400);
  font-weight: 600;
}

/* ==========================================================================
   Section: Guided Demo Form (Lead Capture Pro Max)
   ========================================================================== */
.lead-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f9 100%);
  position: relative;
}

.lead-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  padding: 56px 48px;
}

.lead-split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.lead-benefits-col h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--slate-900);
}

.lead-benefits-col p {
  color: var(--slate-600);
  margin-bottom: 24px;
}

.lead-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.lead-benefits-list li {
  display: flex;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-700);
}

.lead-benefits-list svg {
  color: var(--emerald-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.lead-trust-badge {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lead-trust-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.845rem;
  font-weight: 700;
  color: var(--slate-700);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-200);
  background: var(--slate-50);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--slate-800);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--slate-600);
  margin-top: 4px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-submit.loading .btn-text {
  opacity: 0.7;
}

.btn-submit.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert-feedback {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.alert-feedback.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-feedback.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   Section: FAQ Accordion Fluid
   ========================================================================== */
.faq-section {
  background: var(--white);
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(10, 92, 255, 0.35);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-800);
  cursor: pointer;
}

.faq-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  background: var(--primary-light);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 24px 22px;
  transition: max-height 0.4s ease-in-out, padding 0.35s ease;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate-600);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-300);
  padding: 72px 0 32px;
  border-top: 1px solid var(--slate-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 16px 0 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--slate-400);
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .trust-bullets {
    justify-content: center;
  }

  .offline-feature-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .roi-card-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .lead-split-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 64px 0;
  }

  .navbar {
    height: 68px;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--slate-200);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-portal-link {
    display: block;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--slate-100);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    position: static;
    margin: 12px auto;
    width: 100%;
    max-width: 320px;
    animation: none;
  }

  .lead-wrapper {
    padding: 32px 20px;
  }

  .lead-form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Impeccable & UI/UX Pro Max: Browser Surfaces & Accessibility
   ========================================================================== */
::selection {
  background: var(--primary);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

input, select, textarea {
  caret-color: var(--primary);
}

.stat-number, .roi-result-metric, .app-metric-num {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Interactive Live Webapp Sandbox (Interface & Funcionalidades Reais)
   ========================================================================== */
.live-webapp-section {
  background: #070d18;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.live-webapp-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 92, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.live-webapp-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.live-webapp-header h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: 16px;
}

.live-webapp-header p {
  color: var(--slate-400);
  font-size: 1.125rem;
}

.live-webapp-grid {
  display: grid;
  grid-template-columns: 1fr 380px 1fr;
  gap: 36px;
  align-items: center;
}

/* Painel de Controle Esquerdo */
.live-controls-panel {
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.live-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--slate-950);
  border: 1px solid var(--slate-800);
  color: var(--slate-300);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.live-tab-btn:hover {
  background: var(--slate-800);
  color: var(--white);
}

.live-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary-light);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(10, 92, 255, 0.4);
}

.live-tab-btn span.tab-badge {
  font-size: 0.725rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
}

/* Painel de Dicas Direito */
.live-status-panel {
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.live-network-switch-box {
  background: var(--slate-950);
  border: 1px solid var(--slate-800);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.live-network-switch-box p {
  font-size: 0.8125rem;
  color: var(--slate-400);
  margin-bottom: 12px;
}

.live-switch-btn-group {
  display: flex;
  gap: 8px;
}

.live-switch-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid var(--slate-700);
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.live-switch-btn.active-online {
  background: var(--emerald-600);
  color: var(--white);
  border-color: var(--emerald-500);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.live-switch-btn.active-offline {
  background: var(--amber-600);
  color: var(--white);
  border-color: var(--amber-500);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.live-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.845rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-800);
}

.live-metric-row span:first-child {
  color: var(--slate-400);
}

.live-metric-row span:last-child {
  font-weight: 700;
  color: var(--white);
}

/* Smartphone Device Frame para o Webapp Real */
.live-phone-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.app-phone-frame {
  width: 375px;
  height: 680px;
  background: #000000;
  border-radius: 48px;
  border: 4px solid #334155;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(10, 92, 255, 0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island */
.app-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.island-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e293b;
}

.island-sensor {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0f172a;
}

/* App Status Bar */
.app-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  z-index: 40;
  background: var(--primary);
  transition: background 0.3s ease;
}

/* Official Offline Banner inside App */
.app-offline-banner {
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  text-align: center;
  padding: 5px 8px;
  display: none;
  animation: slide-down 0.3s ease;
  z-index: 40;
}

.app-offline-banner.visible {
  display: block;
}

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

/* App Viewport Screens Area */
.app-screen-body {
  flex: 1;
  background: #f8fafc;
  color: var(--slate-900);
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Telas do App */
.app-view {
  display: none;
  padding: 16px;
  flex-direction: column;
  gap: 16px;
  animation: fade-in 0.2s ease;
}

.app-view.active {
  display: flex;
}

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

/* Top App Bar Header */
.app-header-bar {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header-left h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0;
}

.app-header-left p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  margin: 0;
}

.app-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
}

/* Dashboard Cards inside App */
.app-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.app-dash-stat-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}

.app-dash-stat-box strong {
  display: block;
  font-size: 1.25rem;
  color: var(--slate-900);
  font-weight: 800;
}

.app-dash-stat-box span {
  font-size: 0.675rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* Ações Rápidas no App */
.app-dash-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.app-action-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease;
  text-align: center;
}

.app-action-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.app-action-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-action-card span {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--slate-800);
}

/* Lista de Pedidos Recentes no App */
.app-card-block {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px;
}

.app-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.775rem;
}

.app-order-row:last-child {
  border-bottom: none;
}

.app-order-row strong {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-800);
}

.app-order-row span.meta {
  color: var(--slate-500);
  font-size: 0.7rem;
}

.app-status-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.app-status-tag.pendente {
  background: #fef3c7;
  color: #d97706;
}

.app-status-tag.enviado {
  background: #dcfce7;
  color: #16a34a;
}

/* Catálogo de Produtos no App */
.app-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  background: var(--white);
  outline: none;
}

.app-product-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.app-prod-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  flex-shrink: 0;
}

.app-prod-details {
  flex: 1;
}

.app-prod-details h5 {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.app-prod-details p {
  font-size: 0.725rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

.app-btn-add {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.725rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.app-btn-add:hover {
  background: var(--primary-hover);
}

/* Tela de Novo Pedido no App */
.app-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.app-form-group label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slate-500);
}

.app-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  background: var(--white);
  color: var(--slate-800);
}

.app-cart-total-bar {
  background: var(--primary-light);
  border: 1px solid rgba(10, 92, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.app-cart-total-bar span {
  font-size: 0.775rem;
  color: var(--slate-700);
  font-weight: 600;
}

.app-cart-total-bar strong {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 800;
}

.app-btn-submit-order {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition-fast);
}

.app-btn-submit-order:hover {
  background: var(--primary-hover);
}

/* Bottom Navigation Bar Oficial do App */
.app-bottom-nav {
  height: 58px;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 40;
  padding-bottom: 4px;
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--slate-400);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 10px;
  transition: var(--transition-fast);
}

.app-nav-item.active {
  color: var(--primary);
}

.app-nav-item svg {
  width: 18px;
  height: 18px;
}

/* Modal de Sincronização Oficial */
.app-sync-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.app-sync-modal-backdrop.active {
  display: flex;
}

.app-sync-modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  width: 100%;
  max-width: 290px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.app-sync-spinner-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  animation: spin 1s linear infinite;
}

.app-sync-spinner-icon.success {
  animation: none;
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.app-sync-progress-bar {
  height: 6px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px 0;
}

.app-sync-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

/* Bottom Sheet Sucesso Pedido */
.app-order-success-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 20px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
  z-index: 70;
  display: none;
  text-align: center;
  animation: slide-up 0.3s ease;
}

.app-order-success-sheet.active {
  display: block;
}

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

.app-btn-whatsapp-share {
  background: #25D366;
  color: var(--white);
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.845rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

/* Responsividade do Webapp Sandbox */
@media (max-width: 1100px) {
  .live-webapp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .live-phone-container {
    order: -1;
  }
}

