/* ==========================================================================
   GARIMPO DE OFERTAS - DESIGN SYSTEM & SAAS THEME
   Palette: Obsidian Dark Slate + Gold Amber (#F59E0B) + Emerald Zap (#10B981)
   ========================================================================== */

:root {
  --bg-main: #07090e;
  --bg-sidebar: #0b0f17;
  --bg-card: #101522;
  --bg-card-hover: #151c2e;
  --bg-input: #0a0d15;
  --border-color: #1a2235;
  --border-highlight: #283552;

  --gold-primary: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  --zap-green: #10b981;
  --zap-dark: #075e54;
  --zap-bubble: #005c4b;
  --zap-chat-bg: #0b141a;

  --color-shopee: #ee4d2d;
  --color-amazon: #ff9900;
  --color-meli: #ffe600;
  --color-magalu: #0086ff;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.2);
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

.app-container {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--gold-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.brand-info h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gold-text {
  color: var(--gold-primary);
}

.badge-pro {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-top: 2px;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  background-color: var(--bg-card);
  color: var(--text-main);
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.02) 100%);
  color: #fff;
  font-weight: 600;
  border-left: 3px solid var(--gold-primary);
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
}

.nav-icon {
  font-size: 1.1rem;
  display: inline-flex;
  transition: transform 0.2s;
}

.counter-badge {
  margin-left: auto;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 12px;
  color: var(--text-muted);
}

.counter-badge.highlight-gold {
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-primary);
  border-color: rgba(245, 158, 11, 0.4);
  font-weight: 700;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
}

.status-indicator.online {
  background: var(--zap-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-left: auto;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.user-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-avatar.avatar-member {
  background: #1e293b;
  border: 1px solid var(--border-highlight);
  color: var(--gold-primary);
  font-size: 0.8rem;
  width: 32px;
  height: 32px;
}

.user-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan {
  font-size: 0.7rem;
  color: var(--gold-primary);
  white-space: nowrap;
}

.user-switch-icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  padding: 32px 36px;
  max-width: 1440px;
  margin: 0 auto;
  width: calc(100% - 270px);
}

/* HEADER */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 18px;
}

.header-title h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.header-title p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

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

.bot-switch-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.switch-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.switch-status {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.switch-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--zap-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.switch-status.paused {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:checked + .slider { background-color: var(--zap-green); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0b0f17;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

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

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-block { width: 100%; }

/* TAB SYSTEM */
.tab-pane { display: none; animation: fadeIn 0.25s ease-in-out; }
.tab-pane.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CARDS & METRICS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.metric-card.gold-border-card {
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.08);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
}

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

.metric-title { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.metric-badge { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.metric-badge.success { background: rgba(16, 185, 129, 0.15); color: var(--zap-green); }
.metric-badge.primary { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.metric-badge.warning { background: rgba(245, 158, 11, 0.15); color: var(--gold-primary); }

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.metric-sub { font-size: 0.75rem; color: var(--text-dim); }
.status-online { color: var(--zap-green); }

.plan-split-mini {
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  gap: 8px;
  align-items: center;
}

.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .content-grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.card-title-group h3 { font-size: 1.1rem; font-weight: 700; }
.card-subtitle { font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 2px; }
.card-body { padding: 24px; }
.card-body.p-0 { padding: 0; }

/* GATEWAY CONFIG GRID */
.gateway-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .gateway-config-grid { grid-template-columns: 1fr; }
}

/* SUBSCRIBERS TABLE PILLS */
.plan-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.plan-pill.bronze { background: rgba(205, 127, 50, 0.15); color: #e69c5e; border: 1px solid rgba(205, 127, 50, 0.3); }
.plan-pill.silver { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
.plan-pill.gold { background: rgba(245, 158, 11, 0.15); color: var(--gold-primary); border: 1px solid rgba(245, 158, 11, 0.3); }

/* STORE STATUS */
.store-status-list { display: flex; flex-direction: column; gap: 14px; }
.store-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.store-item:hover { background: var(--bg-card-hover); border-color: var(--border-highlight); }

.store-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.store-icon.shopee { background: rgba(238, 77, 45, 0.15); border: 1px solid rgba(238, 77, 45, 0.3); }
.store-icon.amazon { background: rgba(255, 153, 0, 0.15); border: 1px solid rgba(255, 153, 0, 0.3); }
.store-icon.meli { background: rgba(255, 230, 0, 0.15); border: 1px solid rgba(255, 230, 0, 0.3); }
.store-icon.magalu { background: rgba(0, 134, 255, 0.15); border: 1px solid rgba(0, 134, 255, 0.3); }

.store-info { flex: 1; }
.store-info h4 { font-size: 0.92rem; font-weight: 700; }
.store-info p { font-size: 0.78rem; color: var(--text-muted); }

.store-tag { font-size: 0.72rem; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.store-tag.status-active { background: rgba(16, 185, 129, 0.12); color: var(--zap-green); border: 1px solid rgba(16, 185, 129, 0.3); }

.quick-tip-box {
  margin-top: 20px;
  padding: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tip-icon { font-size: 1.3rem; }
.tip-text { font-size: 0.82rem; color: #fde68a; line-height: 1.4; }

/* DEALS STREAM */
.deals-stream { display: flex; flex-direction: column; }
.deal-stream-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}
.deal-stream-item:last-child { border-bottom: none; }
.deal-stream-item:hover { background: var(--bg-card-hover); }

.deal-thumb {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; background: #1e293b; border: 1px solid var(--border-color);
}
.deal-meta { flex: 1; }
.deal-title {
  font-size: 0.88rem; font-weight: 600; color: var(--text-main);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px;
}
.deal-pricing { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.deal-old { font-size: 0.75rem; color: var(--text-dim); text-decoration: line-through; }
.deal-current { font-size: 0.88rem; font-weight: 700; color: var(--zap-green); font-family: var(--font-mono); }
.deal-discount { font-size: 0.7rem; background: rgba(239, 68, 68, 0.15); color: #f87171; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.deal-store-tag { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; }

/* QR & INSTÂNCIA */
.qr-container { padding: 20px 0; }
.check-icon-pulse {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(16, 185, 129, 0.15); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px auto; border: 2px solid rgba(16, 185, 129, 0.3);
}

.device-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 24px auto 0 auto; max-width: 520px; text-align: left;
}
.info-block { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); padding: 12px 16px; border-radius: var(--radius-sm); }
.info-label { display: block; font-size: 0.75rem; color: var(--text-muted); }
.info-val { font-size: 0.88rem; margin-top: 2px; display: block; }

.qr-frame {
  position: relative; display: inline-block; padding: 16px;
  background: white; border-radius: var(--radius-md); box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
}
.qr-frame img { display: block; width: 220px; height: 220px; }
.qr-scan-line {
  position: absolute; top: 16px; left: 16px; right: 16px; height: 3px;
  background: var(--zap-green); box-shadow: 0 0 10px var(--zap-green);
  animation: scanQR 2s infinite ease-in-out;
}

@keyframes scanQR {
  0% { top: 16px; }
  50% { top: 220px; }
  100% { top: 16px; }
}

.best-practices-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.best-practices-list li { display: flex; gap: 14px; }
.best-practices-list .icon { font-size: 1.2rem; flex-shrink: 0; }
.best-practices-list strong { font-size: 0.9rem; color: var(--text-main); display: block; margin-bottom: 2px; }
.best-practices-list p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

/* TAGS */
.tags-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .tags-form-grid { grid-template-columns: 1fr; } }
.tag-card { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; }
.tag-card.shopee-border { border-top: 3px solid var(--color-shopee); }
.tag-card.amazon-border { border-top: 3px solid var(--color-amazon); }
.tag-card.meli-border { border-top: 3px solid var(--color-meli); }
.tag-card.magalu-border { border-top: 3px solid var(--color-magalu); }

.tag-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.store-badge { font-size: 0.85rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.store-badge.shopee { background: rgba(238, 77, 45, 0.2); color: #ff6e54; }
.store-badge.amazon { background: rgba(255, 153, 0, 0.2); color: #ffb84d; }
.store-badge.meli { background: rgba(255, 230, 0, 0.2); color: #ffeb3b; }
.store-badge.magalu { background: rgba(0, 134, 255, 0.2); color: #4da6ff; }
.tag-status { font-size: 0.72rem; color: var(--zap-green); font-weight: 700; }

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--text-main); }
.form-row { display: flex; gap: 12px; }
.form-row .col { flex: 1; }
.form-row .col-sm { width: 140px; }

.form-control {
  width: 100%; padding: 10px 14px; background-color: var(--bg-input);
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-main); font-size: 0.88rem; font-family: inherit; transition: all 0.2s;
}
.form-control:focus { outline: none; border-color: var(--gold-primary); box-shadow: 0 0 0 3px var(--gold-glow); }

/* TABLES */
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th {
  background: rgba(255, 255, 255, 0.02); padding: 14px 20px; font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border-color);
}
.data-table td { padding: 16px 20px; font-size: 0.85rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.015); }

.group-name-cell { display: flex; align-items: center; gap: 12px; }
.group-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #1e293b;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

/* FEED */
.feed-controls-bar {
  display: flex; align-items: flex-end; gap: 16px; background: var(--bg-card);
  padding: 18px 24px; border-radius: var(--radius-md); border: 1px solid var(--border-color); flex-wrap: wrap;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.filter-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

.feed-cards-container {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px; padding: 24px;
}
.feed-deal-card {
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; transition: all 0.2s;
}
.feed-deal-card:hover { transform: translateY(-3px); border-color: var(--border-highlight); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); }
.feed-deal-image { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-sm); background: #1e293b; margin-bottom: 12px; }
.feed-deal-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.feed-deal-title { font-size: 0.9rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; height: 38px; overflow: hidden; }
.feed-deal-action {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* SIMULATOR & PHONE */
.simulator-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: flex-start; }
@media (max-width: 1100px) { .simulator-layout { grid-template-columns: 1fr; } }
.phone-mockup-wrapper { display: flex; justify-content: center; position: sticky; top: 32px; }
.phone-frame {
  width: 340px; height: 640px; background-color: var(--zap-chat-bg);
  border: 10px solid #222938; border-radius: 42px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.phone-notch {
  width: 120px; height: 18px; background: #222938; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; z-index: 10;
}
.zap-header { background: #1f2c34; padding: 24px 12px 10px 12px; display: flex; align-items: center; gap: 8px; color: white; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.zap-back-arrow { font-size: 1.1rem; color: #aebac1; cursor: pointer; }
.zap-avatar { width: 32px; height: 32px; border-radius: 50%; background: #00a884; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.zap-chat-info { flex: 1; overflow: hidden; }
.zap-chat-title { display: block; font-size: 0.82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zap-chat-subtitle { font-size: 0.65rem; color: #8696a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.zap-header-actions { color: #aebac1; font-size: 1.1rem; }

.zap-chat-body {
  flex: 1; padding: 14px; overflow-y: auto; display: flex; flex-direction: column;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0); background-size: 16px 16px;
}
.zap-date-pill { align-self: center; background: #182229; color: #8696a0; font-size: 0.65rem; padding: 3px 10px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; }
.zap-bubble { background: var(--zap-bubble); border-radius: 10px 10px 0 10px; padding: 6px; max-width: 90%; align-self: flex-end; color: #e9edef; font-size: 0.78rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); position: relative; line-height: 1.4; }
.zap-bubble-media img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 8px; }
.zap-bubble-text { padding: 0 4px; white-space: pre-wrap; word-break: break-word; }
.zap-bubble-text strong { color: #fff; }
.zap-bubble-time { text-align: right; font-size: 0.62rem; color: rgba(255, 255, 255, 0.6); margin-top: 4px; padding-right: 4px; }
.zap-chat-footer { background: #1f2c34; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.zap-footer-icon { font-size: 1.1rem; color: #8696a0; }
.zap-fake-input { flex: 1; background: #2a3942; color: #8696a0; font-size: 0.78rem; padding: 8px 12px; border-radius: 18px; }
.zap-mic-icon { width: 32px; height: 32px; border-radius: 50%; background: #00a884; color: white; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }

/* ANTI-BAN */
.slider-group { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); padding: 16px; border-radius: var(--radius-sm); }
.range-labels { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 10px; }
.range-labels strong { color: var(--gold-primary); font-family: var(--font-mono); }
.form-range { width: 100%; accent-color: var(--gold-primary); height: 6px; cursor: pointer; }
.toggle-option-box { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-top: 14px; }
.toggle-details strong { font-size: 0.88rem; display: block; }
.toggle-details p { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; max-width: 440px; }
.health-meter-box { display: flex; align-items: center; gap: 24px; }
.health-circle {
  width: 100px; height: 100px; border-radius: 50%; background: conic-gradient(var(--zap-green) 98%, #1e293b 0);
  display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}
.health-circle::before { content: ''; position: absolute; width: 80px; height: 80px; background: var(--bg-card); border-radius: 50%; }
.health-number { position: relative; font-size: 1.4rem; font-weight: 800; font-family: var(--font-mono); color: var(--zap-green); }
.health-label { position: relative; font-size: 0.65rem; color: var(--text-muted); }
.health-info-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.health-row { display: flex; justify-content: space-between; font-size: 0.8rem; }

/* PRICING */
.plans-showcase { max-width: 1080px; margin: 0 auto; }
.plan-header-center { text-align: center; margin-bottom: 36px; }
.plan-header-center h2 { font-size: 1.8rem; font-weight: 800; }
.plan-header-center p { color: var(--text-muted); font-size: 0.95rem; margin-top: 6px; }

.pricing-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .pricing-cards-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 32px 24px; display: flex; flex-direction: column; position: relative; transition: all 0.25s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border-highlight); }
.price-card.popular {
  border: 2px solid var(--gold-primary); box-shadow: 0 10px 40px -10px var(--gold-glow);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-card) 40%);
}
.popular-ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold-gradient); color: #0b0f17; font-size: 0.7rem; font-weight: 800;
  padding: 4px 14px; border-radius: 20px; letter-spacing: 0.05em;
}
.price-header h3 { font-size: 1.25rem; font-weight: 700; }
.price-header p { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; min-height: 38px; }
.price-amount { margin: 20px 0; display: flex; align-items: baseline; }
.price-amount .currency { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); margin-right: 4px; }
.price-amount .value { font-size: 2.8rem; font-weight: 800; font-family: var(--font-mono); color: #fff; }
.price-amount .period { font-size: 0.85rem; color: var(--text-muted); margin-left: 4px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan-badge-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
}

.plan-badge-tag.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-primary);
  border-color: rgba(245, 158, 11, 0.3);
}

.price-daily {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: -12px;
  margin-bottom: 8px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* MODALS */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.2s ease-out;
}
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg); width: 100%; max-width: 460px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9); overflow: hidden;
  animation: slideModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideModal {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.15rem; font-weight: 700; }
.modal-close { background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 4px; border-radius: 4px; }
.modal-close:hover { color: white; }
.modal-body { padding: 24px; }

.checkout-amount-badge {
  background: rgba(245, 158, 11, 0.12); color: var(--gold-primary);
  border: 1px solid rgba(245, 158, 11, 0.3); padding: 8px 16px; border-radius: 20px;
  font-size: 0.95rem; display: inline-block; margin-bottom: 20px;
}
.pix-qr-wrapper {
  background: white; padding: 16px; border-radius: var(--radius-md);
  display: inline-flex; flex-direction: column; align-items: center; margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.pix-qr-wrapper img { width: 200px; height: 200px; display: block; }
.pix-timer { font-size: 0.75rem; color: #334155; font-weight: 600; margin-top: 10px; }
.pix-input-group { display: flex; gap: 8px; margin-top: 6px; }
.pix-input-group input { font-family: var(--font-mono); font-size: 0.78rem; }

.auth-tabs { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 16px; }
.auth-tab-btn {
  flex: 1; background: transparent; border: none; padding: 10px; font-size: 0.9rem;
  font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s; font-family: inherit;
}
.auth-tab-btn.active { color: var(--gold-primary); border-bottom-color: var(--gold-primary); }

/* TOAST */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #1e293b; border: 1px solid var(--border-highlight); color: white;
  padding: 12px 18px; border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.88rem; display: flex; align-items: center; gap: 10px; animation: slideToast 0.3s ease-out;
}
.toast.toast-success { border-left: 4px solid var(--zap-green); }
.toast.toast-gold { border-left: 4px solid var(--gold-primary); }

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* UTILITIES */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-success { color: var(--zap-green) !important; }
.text-warning { color: var(--warning) !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.flex { display: flex; }

/* BANNER DE SEGURANÇA & ROI */
.pricing-trust-banner {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.trust-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.trust-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* EXTRACTOR CARD */
.extractor-card {
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.08) 0%, var(--bg-card) 100%) !important;
}

.extractor-form-grid {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.flex-1 { flex: 1; min-width: 260px; }

/* AUTOPILOT BANNER */
.autopilot-banner {
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.1) 0%, var(--bg-card) 100%) !important;
}

.autopilot-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.autopilot-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.interval-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.interval-select-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0;
}

/* FEED CONTROLS BAR */
.feed-controls-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .feed-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    width: 100%;
  }
}

.btn-sidebar-logout {
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE NAVIGATION & RESPONSIVE APP EXPERIENCE
   ========================================================================== */

.btn-sidebar-close {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.mobile-navbar {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

/* PAYWALL MODAL & SUBSCRIPTION GATING */
.modal-paywall-box {
  max-width: 540px !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.12) !important;
}

.paywall-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.paywall-crown-icon {
  font-size: 1.8rem;
}

.paywall-hero-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.paywall-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.paywall-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.paywall-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.perk-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--zap-green);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.paywall-perk-item strong {
  font-size: 0.88rem;
  color: #f1f5f9;
  display: block;
}

.paywall-perk-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.paywall-plans-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.paywall-plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.paywall-plan-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.paywall-plan-card.selected {
  border-color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

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

.paywall-plan-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.paywall-plan-tag.highlight {
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
}

.paywall-plan-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.paywall-plan-price span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: normal;
}

.paywall-plan-card strong {
  font-size: 0.85rem;
  display: block;
  color: #f1f5f9;
}

.paywall-plan-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.paywall-security-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 10px;
}

.btn-lock-ico {
  font-size: 0.75rem;
  margin-right: 3px;
  opacity: 0.85;
}

/* ==========================================================================
   MEDIA QUERIES: SMARTPHONE & TABLET (<= 992px)
   ========================================================================== */

@media (max-width: 992px) {
  .app-container {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  /* OFF-CANVAS SIDEBAR */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.85);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .btn-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
  }

  .btn-sidebar-close:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
  }

  /* BACKDROP */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  /* MOBILE TOP NAVBAR */
  .mobile-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: rgba(11, 15, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    z-index: 990;
  }

  .btn-toggle-mobile {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
  }

  .btn-toggle-mobile .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.25s ease;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.05rem;
  }

  .mobile-brand-icon {
    font-size: 1.2rem;
  }

  .btn-mobile-pix-cta {
    background: var(--gold-gradient);
    color: #0b0f17;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px var(--gold-glow);
    animation: pulseGlow 2s infinite;
  }

  /* MOBILE BOTTOM NAV */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(11, 15, 23, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 990;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mob-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 0;
    cursor: pointer;
    gap: 3px;
    transition: all 0.2s ease;
    position: relative;
  }

  .mob-nav-btn .mob-icon {
    font-size: 1.25rem;
    transition: transform 0.2s;
  }

  .mob-nav-btn .mob-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .mob-nav-btn.active {
    color: var(--gold-primary);
  }

  .mob-nav-btn.active .mob-icon {
    transform: scale(1.15);
  }

  .mob-nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2.5px;
    background: var(--gold-primary);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px var(--gold-glow);
  }

  /* MAIN CONTENT FLUID */
  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 74px 14px 84px 14px !important;
    margin: 0 !important;
  }

  /* MODAL BOXES */
  .modal-box {
    width: 94% !important;
    max-width: 500px !important;
    padding: 20px 16px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
  }

  .data-table-container,
  .card-body.p-0 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 580px;
  }
}

/* ==========================================================================
   MEDIA QUERIES: SMARTPHONES (<= 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
  }

  .header-title h1 {
    font-size: 1.35rem;
  }

  .header-title p {
    font-size: 0.82rem;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .header-actions > * {
    width: 100%;
  }

  .bot-switch-container {
    justify-content: space-between;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .metric-card {
    padding: 14px 12px;
  }

  .metric-value {
    font-size: 1.35rem;
  }

  .metric-title {
    font-size: 0.76rem;
  }

  .feed-cards-container {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feed-deal-card {
    padding: 14px;
  }

  .feed-deal-image {
    height: 180px;
  }

  .feed-deal-action {
    display: flex;
    gap: 8px;
  }

  .feed-deal-action .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.82rem;
  }

  .autopilot-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .autopilot-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .interval-select-group {
    width: 100%;
    justify-content: space-between;
  }

  .autopilot-actions .btn {
    width: 100%;
  }

  .extractor-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .extractor-form-grid > * {
    width: 100%;
  }

  .paywall-plans-selector {
    grid-template-columns: 1fr;
  }

  .whatsapp-connection-grid,
  .tags-grid,
  .plans-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 440px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PRIMEIRA PÁGINA (HOME / APRESENTAÇÃO CHAMATIVA & OBJETIVA)
   ========================================================================== */

.btn-lg {
  padding: 13px 26px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.btn-outline-zap {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--zap-green);
}

.btn-outline-zap:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--zap-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.home-hero-card {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.14) 0%, rgba(16, 185, 129, 0.04) 40%, var(--bg-card) 90%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
}

.home-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.home-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
  animation: pulse 1.5s infinite;
}

.home-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 950px;
  margin: 0 auto 18px auto;
}

.home-gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 45%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 32px auto;
  line-height: 1.65;
}

.home-hero-subtitle strong {
  color: #e2e8f0;
}

.home-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.home-metrics-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
}

.home-metric-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pill-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-primary);
  font-family: var(--font-mono);
}

.pill-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* SEÇÃO HEADERS */
.home-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 12px;
}

.home-section-header h2 {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}

.home-section-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* PASSOS EM 3 CARDS */
.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.home-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.home-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.08);
}

.step-badge-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.08);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.home-step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  line-height: 1.35;
}

.home-step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}

.step-highlight {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--zap-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* SHOWCASE CONTAINER & WHATSAPP MOCKUP */
.home-showcase-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 38px;
  margin-bottom: 48px;
}

.showcase-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.showcase-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.showcase-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefit-ico {
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-row strong {
  font-size: 0.92rem;
  color: #fff;
  display: block;
}

.benefit-row p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 0;
}

/* ZAP MOCKUP FRAME */
.zap-mockup-frame {
  background: var(--zap-chat-bg);
  border: 1px solid #1f2c34;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.zap-mockup-top {
  background: var(--zap-dark);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.zap-top-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ff5722;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.zap-top-info strong {
  font-size: 0.88rem;
  color: #fff;
  display: block;
}

.zap-top-info span {
  font-size: 0.72rem;
  color: #aebac1;
}

.zap-mockup-body {
  padding: 16px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 16px 16px;
}

.zap-bubble-sample {
  background: var(--zap-bubble);
  border-radius: 8px;
  overflow: hidden;
  max-width: 360px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.zap-bubble-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #000;
}

.zap-sample-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zap-tag-float {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.zap-bubble-content {
  padding: 12px;
}

.zap-sample-text {
  font-size: 0.8rem;
  color: #e9edef;
  line-height: 1.45;
  margin: 0;
}

.zap-sample-text strike {
  color: #ff8a80;
}

.text-link {
  color: #53bdeb;
  text-decoration: underline;
  word-break: break-all;
}

.zap-bubble-time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

/* RECURSOS GRID */
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.home-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s ease;
}

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

.feature-icon-badge {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.home-feature-card h4 {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}

.home-feature-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* TABELA COMPARATIVA */
.home-comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 48px;
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table .col-manual {
  color: #f87171;
  background: rgba(239, 68, 68, 0.03);
}

.comparison-table .col-garimpo {
  color: var(--zap-green);
  background: rgba(16, 185, 129, 0.05);
  font-weight: 600;
}

/* FAQ GRID */
.home-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.faq-card strong {
  font-size: 0.95rem;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.faq-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* BANNER FINAL */
.home-final-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%), var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.08);
}

.final-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.15);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 14px;
}

.home-final-banner h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.home-final-banner p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 24px auto;
}

.final-price-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.price-from {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.price-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.price-val span {
  font-size: 1rem;
  color: var(--text-muted);
}

.price-daily {
  font-size: 0.75rem;
  color: var(--zap-green);
  font-weight: 600;
  margin-top: 4px;
}

.final-banner-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* MEDIA QUERIES PARA HOME NO CELULAR */
@media (max-width: 992px) {
  .home-hero-card {
    padding: 36px 18px;
  }
  .home-hero-title {
    font-size: 1.85rem;
  }
  .home-hero-subtitle {
    font-size: 0.95rem;
  }
  .home-steps-grid {
    grid-template-columns: 1fr;
  }
  .home-showcase-container {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  .home-features-grid {
    grid-template-columns: 1fr;
  }
  .home-faq-grid {
    grid-template-columns: 1fr;
  }
  .home-final-banner {
    padding: 32px 16px;
  }
  .home-final-banner h2 {
    font-size: 1.55rem;
  }
  .home-hero-actions > *,
  .final-banner-actions > * {
    width: 100%;
  }
}

/* STORE TABS NO MOCKUP DO WHATSAPP */
.mockup-store-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.mockup-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mockup-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.mockup-tab-btn.active {
  background: var(--gold-gradient);
  color: #0b0f17;
  font-weight: 800;
  border-color: var(--gold-primary);
  box-shadow: 0 2px 10px var(--gold-glow);
}

/* CALCULADORA DE COMISSÕES E LUCRO */
.home-calculator-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xl);
  padding: 38px;
  margin-bottom: 48px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.05);
}

.calc-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.calc-slider-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-slider-header label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.calc-slider-value-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
}

.calc-range-input {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #1f2937;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 18px;
}

.calc-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 3px solid #0b0f17;
  box-shadow: 0 0 12px var(--gold-glow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

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

.calc-range-input::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 3px solid #0b0f17;
  box-shadow: 0 0 12px var(--gold-glow);
  cursor: pointer;
}

.calc-quick-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-pill:hover, .calc-pill.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold-primary);
}

.calc-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
}

.calc-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.calc-kpi-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.calc-kpi-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.calc-kpi-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  display: block;
}

.calc-kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.calc-earnings-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(245, 158, 11, 0.12) 100%), var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.calc-earn-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--zap-green);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.calc-earn-val {
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.calc-earn-val span {
  font-size: 1rem;
  color: var(--text-muted);
}

.calc-earn-roi {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

/* BADGES DE PREÇO DIÁRIO NO PAYWALL */
.paywall-daily-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--zap-green);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

.paywall-daily-badge.highlight {
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
}

/* SMART HEADER VISIBILITY QUANDO NA ABA HOME */
body.tab-is-home .top-header .bot-switch-container,
body.tab-is-home .top-header #btn-quick-dispatch {
  display: none !important;
}

/* RESPONSIVO CALCULADORA */
@media (max-width: 992px) {
  .calc-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-calculator-card {
    padding: 24px 16px;
  }
  .calc-earn-val {
    font-size: 1.85rem;
  }
}



