/* ==========================================================================
   PHARMASYS — DESIGN SYSTEM & CORE STYLES
   Sistema Integrado de Gestão Farmacêutica & Ponto de Venda (PDV)
   ========================================================================== */

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

:root {
  /* Brand Core Palettes */
  --primary: #1e60ff;
  --primary-hover: #174ed8;
  --primary-light: rgba(30, 96, 255, 0.12);
  --primary-glow: rgba(30, 96, 255, 0.35);
  
  --secondary: #00c988;
  --secondary-hover: #00b077;
  --secondary-light: rgba(0, 201, 136, 0.12);
  
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  /* Dark Mode Default Theme (PharmaSys App UI) */
  --bg-main: #0a0f1d;
  --bg-surface: #10192e;
  --bg-card: #15223c;
  --bg-card-hover: #1c2c4d;
  --bg-card-glass: rgba(21, 34, 60, 0.75);
  --bg-input: #0c1426;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-highlight: rgba(30, 96, 255, 0.4);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0f1d;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px var(--primary-glow);
  --shadow-glow-sec: 0 0 35px rgba(0, 201, 136, 0.3);
  
  --backdrop-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --container-width: 1240px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #f1f5f9;
  --bg-card-hover: #e2e8f0;
  --bg-card-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #ffffff;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-highlight: rgba(30, 96, 255, 0.3);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Corporative Themes dynamically injected */
[data-app-theme="esmeralda"] {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: rgba(16, 185, 129, 0.15);
  --primary-glow: rgba(16, 185, 129, 0.35);
  --border-highlight: rgba(16, 185, 129, 0.4);
}
[data-app-theme="teal"] {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: rgba(13, 148, 136, 0.15);
  --primary-glow: rgba(13, 148, 136, 0.35);
  --border-highlight: rgba(13, 148, 136, 0.4);
}
[data-app-theme="purple"] {
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-light: rgba(139, 92, 246, 0.15);
  --primary-glow: rgba(139, 92, 246, 0.35);
  --border-highlight: rgba(139, 92, 246, 0.4);
}
[data-app-theme="rubi"] {
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --primary-light: rgba(239, 68, 68, 0.15);
  --primary-glow: rgba(239, 68, 68, 0.35);
  --border-highlight: rgba(239, 68, 68, 0.4);
}
[data-app-theme="ambar"] {
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-light: rgba(245, 158, 11, 0.15);
  --primary-glow: rgba(245, 158, 11, 0.35);
  --border-highlight: rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Containers & Grids */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

.flex {
  display: flex;
}

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Gradient Backgrounds and Ambient Lighting */
.bg-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 800px;
  background: radial-gradient(circle at 50% 10%, rgba(30, 96, 255, 0.18) 0%, rgba(0, 201, 136, 0.08) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.82);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.header-nav.scrolled {
  background: rgba(10, 15, 29, 0.95);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-medium);
}

.nav-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(30, 96, 255, 0.25);
  transition: transform var(--transition-bounce);
  display: block;
}

.brand-logo-full {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06) rotate(2deg);
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, #ffffff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

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

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

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  color: var(--primary);
  border-color: var(--border-highlight);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-medium);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.active {
  display: flex;
}

.mobile-nav-drawer .nav-link {
  font-size: 1.05rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1545c8 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px var(--primary-glow);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--secondary) 0%, #009665 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 201, 136, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 201, 136, 0.45);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.5);
}

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

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-highlight);
}

.badge-success {
  background: var(--secondary-light);
  color: var(--secondary);
  border: 1px solid rgba(0, 201, 136, 0.3);
}

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

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 90px;
  overflow: hidden;
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-top: 18px;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 580px;
  line-height: 1.7;
}

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

.hero-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.guarantee-item svg {
  color: var(--secondary);
}

/* Hero Showcase Mockup */
.hero-showcase {
  position: relative;
  z-index: 2;
}

.window-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7), 0 0 35px var(--primary-glow);
  overflow: hidden;
  transition: transform var(--transition-smooth);
}

.window-mockup:hover {
  transform: translateY(-4px);
}

.window-header {
  height: 42px;
  background: #080d19;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

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

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.window-title {
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-status {
  font-size: 0.74rem;
  color: var(--secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-body {
  padding: 20px;
  background: var(--bg-main);
}

/* Mini App UI Components Inside Hero */
.app-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.stat-chip-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.stat-chip-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.stat-chip-val.green { color: var(--secondary); }
.stat-chip-val.blue { color: var(--primary); }

.stat-trend {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--secondary);
}

.app-preview-quickpdv {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.quickpdv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.quickpdv-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--primary-glow);
  margin-bottom: 10px;
}

.quickpdv-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quickpdv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.quickpdv-row.active {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
}

.badge-fefo-ok {
  background: rgba(0, 201, 136, 0.15);
  color: var(--secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: floatAnim 6s ease-in-out infinite;
}

.floating-badge-1 {
  bottom: -20px;
  left: -24px;
}

.floating-badge-2 {
  top: 30px;
  right: -24px;
  animation-delay: -3s;
}

.floating-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-icon.mpesa { background: #e60000; color: #fff; }
.floating-icon.fefo { background: var(--secondary-light); color: var(--secondary); }

@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(16, 25, 46, 0.35);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-tag {
  display: inline-block;
  margin-bottom: 14px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Interactive PDV Simulator Section
   ========================================================================== */
.pdv-simulator-wrap {
  background: #080e1d;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.pdv-app-bar {
  background: #0d1527;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdv-app-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdv-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(0, 201, 136, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pdv-shortcuts-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kbd-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.kbd-badge span {
  color: var(--primary);
  font-weight: 700;
}

.pdv-main-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 520px;
}

/* Left: Catalog & Search */
.pdv-catalog-col {
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.pdv-search-box {
  position: relative;
  margin-bottom: 20px;
}

.pdv-search-input {
  width: 100%;
  background: #060a14;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 44px;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.pdv-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.pdv-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}

.pdv-table-wrap {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
  border-radius: var(--radius-sm);
  background: #070c18;
  border: 1px solid var(--border-subtle);
}

.pdv-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.pdv-table th {
  background: #0f1a30;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 2;
}

.pdv-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.pdv-table tr:hover td {
  background: rgba(30, 96, 255, 0.08);
}

.pdv-med-name {
  font-weight: 700;
  color: #fff;
  display: block;
}

.pdv-med-dci {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pdv-add-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.pdv-add-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Right: Cart & Checkout */
.pdv-cart-col {
  padding: 24px;
  background: #0b1222;
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.cart-client-select {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #070c18;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.84rem;
  margin-bottom: 14px;
}

.cart-items-wrap {
  flex: 1;
  overflow-y: auto;
  max-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f1a30;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.85rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

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

.cart-empty-msg {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cart-totals {
  background: #070c18;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.total-line.final {
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: #38bdf8;
}

.cart-pay-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pay-chip {
  background: #0f1a30;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.pay-chip:hover, .pay-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: #fff;
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

/* ==========================================================================
   Receipt Modal & Simulator
   ========================================================================== */
.receipt-paper {
  background: #ffffff;
  color: #111827;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 320px;
  margin: 0 auto;
  border-top: 6px dashed #94a3b8;
  border-bottom: 6px dashed #94a3b8;
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed #64748b;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.receipt-logo-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.receipt-lines {
  border-bottom: 1px dashed #64748b;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.95rem;
  margin-top: 6px;
}

.receipt-footer {
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
}

/* ==========================================================================
   Features & Modules Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  border: 1px solid var(--border-highlight);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.feature-point svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   FEFO & Validade Showcase Section
   ========================================================================== */
.fefo-showcase-box {
  background: linear-gradient(135deg, #0d172e 0%, #081022 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.fefo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.fefo-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fefo-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--primary);
  transition: transform var(--transition-fast);
}

.fefo-card:hover {
  transform: translateX(6px);
}

.fefo-card.alert-90 { border-left-color: #3b82f6; }
.fefo-card.alert-60 { border-left-color: #f59e0b; }
.fefo-card.alert-30 { border-left-color: #f97316; }
.fefo-card.alert-vencido { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.08); }

.fefo-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.fefo-pill.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.fefo-pill.yellow { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.fefo-pill.orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.fefo-pill.red { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* ==========================================================================
   ROI Calculator Section
   ========================================================================== */
.roi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.roi-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roi-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.roi-val-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 6px;
}

.roi-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  cursor: pointer;
  accent-color: var(--primary);
}

.roi-results-box {
  background: linear-gradient(135deg, #0f1c3a 0%, #091326 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.roi-results-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  pointer-events: none;
}

.roi-eco-anual {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #38bdf8;
  margin: 12px 0 6px 0;
}

.roi-stats-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.roi-substat {
  text-align: left;
}

.roi-substat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
}

.roi-substat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Theme Switcher Live Demo
   ========================================================================== */
.theme-picker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.themes-palette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.theme-option-btn {
  background: #090f1d;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-option-btn:hover, .theme-option-btn.active {
  border-color: var(--primary);
  background: #0f1930;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.theme-colors-preview {
  display: flex;
  gap: 6px;
}

.theme-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.theme-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

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

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */
.comparison-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th {
  padding: 20px 24px;
  background: #0d1629;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  border-bottom: 2px solid var(--border-medium);
}

.comparison-table th.highlight-col {
  background: #14244a;
  color: #38bdf8;
  border-top: 3px solid var(--primary);
}

.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table td.highlight-col {
  background: rgba(30, 96, 255, 0.05);
  font-weight: 600;
  color: var(--text-primary);
}

.badge-diff-bad {
  color: #ef4444;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-diff-good {
  color: var(--secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Pricing & Licenciamento
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(180deg, #162444 0%, #0f1930 100%);
  border-color: var(--primary);
  box-shadow: 0 16px 40px var(--primary-glow);
  transform: scale(1.04);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-6px);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-title {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0;
  flex: 1;
}

.pricing-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pricing-feat-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* ==========================================================================
   Hardware & Requisitos
   ========================================================================== */
.hardware-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.hardware-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.hardware-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.hardware-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 1.4rem;
}

.hardware-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hardware-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section Accordion
   ========================================================================== */
.faq-wrap {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  user-select: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px 24px;
}

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #102454 0%, #0c183a 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 70% 30%, var(--primary-glow) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.footer-main {
  background: #060a14;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px 0;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

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

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Floating WhatsApp Quick Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth);
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
  .pdv-main-layout { grid-template-columns: 1fr; }
  .pdv-catalog-col { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .fefo-grid, .roi-grid { grid-template-columns: 1fr; }
  .hardware-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .hardware-grid { grid-template-columns: 1fr; }
  .themes-palette-grid { grid-template-columns: 1fr; }
  .cart-pay-methods { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .fefo-showcase-box, .roi-card, .hardware-box, .cta-banner { padding: 28px 20px; }
  .floating-badge { display: none; }
}
