/* ==========================================================================
   FLOOTSEND SAÚDE - DESIGN SYSTEM & MOBILE RESPONSIVE STYLESHEET (100% OPTIMIZED)
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #121824;
  --bg-card: rgba(22, 30, 46, 0.7);
  --bg-card-hover: rgba(30, 41, 64, 0.85);
  --bg-input: #182030;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.3);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --sidebar-width: 280px;
  --topbar-height: 80px;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --glass-backdrop: blur(16px);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; }
.text-center { text-align: center; }
.display-block { display: block; }
.width-full { width: 100%; }

/* 1. CAMADA PÚBLICA (LANDING PAGE RESPONSIVA) */
.public-container { width: 100%; min-height: 100vh; }
.public-navbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; background: rgba(18, 24, 36, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; background: transparent; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brand-logo-img { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; border: 1px solid var(--accent-cyan); box-shadow: 0 0 12px var(--accent-cyan-glow); }
.nav-brand h2 { font-size: 1.25rem; color: #fff; display: flex; align-items: center; gap: 6px; }
.brand-badge { font-size: 0.65rem; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet)); padding: 2px 6px; border-radius: 4px; color: #fff; }
.public-nav-links { display: flex; gap: 28px; }
.public-nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition-fast); }
.public-nav-links a:hover { color: var(--accent-cyan); }
.public-nav-actions { display: flex; gap: 12px; align-items: center; }

.public-hero { text-align: center; max-width: 1000px; margin: 40px auto 30px auto; padding: 0 20px; }
.landing-title { font-size: 3.2rem; line-height: 1.15; margin-bottom: 20px; color: #fff; }
.highlight-gradient { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.landing-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto 32px auto; }
.landing-cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-hero { padding: 14px 28px; font-size: 1.05rem; border-radius: var(--radius-md); }
.landing-mockup-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-highlight); box-shadow: 0 30px 80px rgba(0,0,0,0.8); margin-top: 40px; }
.mockup-img { width: 100%; height: 480px; object-fit: cover; display: block; }
.mockup-overlay-badge { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); background: rgba(18, 24, 36, 0.9); backdrop-filter: blur(10px); border: 1px solid var(--accent-emerald); color: var(--accent-emerald); padding: 10px 20px; border-radius: 30px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.public-section { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.section-heading { font-size: 2.2rem; color: #fff; margin-bottom: 8px; }
.section-subheading { font-size: 1.05rem; color: var(--text-secondary); }

.niche-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.niche-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 28px 20px; border-radius: var(--radius-lg); backdrop-filter: var(--glass-backdrop); }
.niche-card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.niche-card-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.niche-card-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.niche-card-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.niche-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: 14px; }
.niche-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.niche-card li { font-size: 0.88rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 8px; }

.pricing-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.pricing-card.popular { border: 2px solid var(--accent-cyan); background: linear-gradient(180deg, rgba(6, 182, 212, 0.08), rgba(22, 30, 46, 0.9)); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent-cyan); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 4px 14px; border-radius: 20px; }
.pricing-header h3 { font-size: 1.3rem; color: #fff; }
.price-box { margin: 16px 0; display: flex; align-items: baseline; gap: 4px; }
.price-box .amount { font-size: 2.4rem; color: #fff; font-weight: 800; }
.pricing-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pricing-body li { font-size: 0.88rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 8px; }

.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); padding: 18px; border-radius: var(--radius-md); }
.faq-question { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #fff; font-size: 0.95rem; }
.faq-answer { margin-top: 10px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

.public-footer { text-align: center; padding: 30px 20px; border-top: 1px solid var(--border-color); font-size: 0.82rem; color: var(--text-muted); }

/* 2. CAMADA PRIVADA (PAINEL INTERNO DO SAAS) */
.app-layout { display: flex; min-height: 100vh; }
.mobile-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); z-index: 1000; display: none; opacity: 0; transition: opacity 0.3s ease; }
.mobile-backdrop.active { display: block; opacity: 1; }

.sidebar { width: var(--sidebar-width); background: rgba(18, 24, 36, 0.98); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 20px 14px; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1001; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 4px 16px 4px; border-bottom: 1px solid var(--border-color); position: relative; }
.mobile-close-btn { display: none; position: absolute; right: 0; top: 0; }

.niche-selector-card { margin: 14px 0; background: var(--bg-card); border: 1px solid var(--border-highlight); padding: 10px; border-radius: var(--radius-md); }
.nav-menu { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 42px; background: transparent; border: none; color: var(--text-secondary); font-size: 0.88rem; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; text-align: left; transition: var(--transition-fast); }
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(6, 182, 212, 0.18), transparent); color: var(--accent-cyan); border-left: 3px solid var(--accent-cyan); font-weight: 600; }

.user-footer-card { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.user-avatar-circle { width: 36px; height: 36px; background: var(--accent-cyan); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.85rem; }
.user-info-box { flex: 1; overflow: hidden; }
.user-info-box strong { font-size: 0.85rem; color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan-badge { font-size: 0.72rem; color: var(--accent-cyan); }

.main-content { margin-left: var(--sidebar-width); flex: 1; padding: 24px 30px; max-width: 1600px; width: calc(100% - var(--sidebar-width)); }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.mobile-toggle-btn { display: none; min-width: 44px; min-height: 44px; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.status-chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.status-chip.online { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-chip .dot { width: 8px; height: 8px; background: var(--accent-emerald); border-radius: 50%; }

.revenue-pill { background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.3); color: var(--accent-cyan); padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }

.highlight-nav-gold { background: rgba(245, 158, 11, 0.12) !important; border: 1px solid rgba(245, 158, 11, 0.4) !important; color: var(--accent-amber) !important; }
.highlight-nav-gold:hover { background: rgba(245, 158, 11, 0.22) !important; box-shadow: 0 0 14px rgba(245, 158, 11, 0.3) !important; }
.nav-badge-gold { font-size: 0.6rem; background: linear-gradient(135deg, #f59e0b, #d97706); padding: 2px 6px; border-radius: 4px; color: #fff; font-weight: 700; margin-left: auto; }

/* TABS & CARDS */
.tab-page { display: none; }
.tab-page.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); margin-bottom: 20px; }
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.header-with-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.card-body { padding: 20px; }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.metric-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; display: flex; align-items: center; gap: 16px; }
.metric-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.metric-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.metric-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.metric-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.metric-info span { font-size: 0.82rem; color: var(--text-secondary); display: block; }
.metric-info strong { font-size: 1.4rem; color: #fff; }

.breakdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.breakdown-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; }
.breakdown-card h4 { font-size: 0.95rem; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.breakdown-list { display: flex; flex-direction: column; gap: 10px; }
.breakdown-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-secondary); border-bottom: 1px dashed var(--border-color); padding-bottom: 8px; }

/* TABELAS RESPONSIVAS */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.styled-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.85rem; min-width: 650px; }
.styled-table th { background: #182030; color: var(--accent-cyan); padding: 12px 14px; font-weight: 600; border-bottom: 1px solid var(--border-color); }
.styled-table td { padding: 12px 14px; color: var(--text-primary); border-bottom: 1px solid var(--border-color); }
.styled-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* CALENDÁRIO RESPONSIVO */
.calendar-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-head { text-align: center; font-weight: 600; font-size: 0.78rem; color: var(--accent-cyan); padding: 8px 2px; }
.cal-day { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); min-height: 70px; padding: 6px; font-size: 0.8rem; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.cal-day.muted { opacity: 0.3; }
.cal-day.today-cell { border-color: var(--accent-cyan); background: rgba(6, 182, 212, 0.1); }
.event-pill { font-size: 0.68rem; padding: 2px 4px; border-radius: 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-pill.emerald { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); border: 1px solid var(--accent-emerald); }

/* SIMULADOR WHATSAPP & INBOX */
.simulator-container { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.quick-sim-actions { display: flex; flex-direction: column; gap: 8px; }
.whatsapp-mockup { background: #0b141a; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; height: 580px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.chat-header { background: #202c33; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.chat-user { display: flex; align-items: center; gap: 10px; }
.chat-user .avatar { width: 38px; height: 38px; background: #00a884; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.chat-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 16px 16px; }
.msg-date { text-align: center; font-size: 0.72rem; color: #8696a0; background: #182229; padding: 4px 12px; border-radius: 10px; align-self: center; }
.message { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 0.85rem; line-height: 1.45; word-break: break-word; }
.system-msg { align-self: center; background: #182229; color: #00a884; font-size: 0.75rem; text-align: center; }
.user-msg { align-self: flex-start; background: #202c33; color: #e9edef; border-bottom-left-radius: 2px; }
.bot-msg { align-self: flex-end; background: #005c4b; color: #e9edef; border-bottom-right-radius: 2px; }
.chat-input-bar { background: #202c33; padding: 10px 14px; display: flex; gap: 8px; align-items: center; }
.chat-input-bar input { flex: 1; background: #2a3942; border: none; padding: 10px 14px; border-radius: 20px; color: #fff; font-size: 0.88rem; outline: none; }
.btn-send { width: 40px; height: 40px; background: #00a884; border: none; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

.inbox-container { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.chat-list { list-style: none; display: flex; flex-direction: column; }
.chat-item { padding: 14px 16px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: var(--transition-fast); }
.chat-item:hover, .chat-item.active { background: rgba(6, 182, 212, 0.1); border-left: 3px solid var(--accent-cyan); }
.chat-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.inbox-chat-history { height: 420px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #0b141a; }

/* FORMULÁRIOS & BOTÕES */
.styled-input, .styled-select, .styled-textarea { width: 100%; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px 14px; color: #fff; font-family: inherit; font-size: 16px; outline: none; transition: var(--transition-fast); }
.styled-input:focus, .styled-select:focus, .styled-textarea:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px var(--accent-cyan-glow); }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-12 { grid-column: span 12; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 44px; font-size: 0.88rem; font-weight: 600; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: var(--transition-fast); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--accent-cyan), #0284c7); color: #fff; box-shadow: 0 4px 16px var(--accent-cyan-glow); }
.btn-success { background: linear-gradient(135deg, var(--accent-emerald), #059669); color: #fff; }
.btn-warning { background: linear-gradient(135deg, var(--accent-amber), #d97706); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: var(--accent-cyan); color: var(--accent-cyan); }
.icon-btn { width: 40px; height: 40px; background: transparent; border: none; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }

.period-buttons-group, .btn-group-segmented { display: inline-flex; background: #182030; border-radius: var(--radius-sm); padding: 4px; gap: 4px; border: 1px solid var(--border-color); flex-wrap: wrap; }
.btn-segment { background: transparent; border: none; color: var(--text-secondary); padding: 6px 12px; font-size: 0.8rem; font-weight: 600; border-radius: 6px; cursor: pointer; transition: var(--transition-fast); }
.btn-segment.active { background: var(--accent-cyan); color: #fff; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.badge-accent { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.modal-content { width: 100%; max-height: 90vh; overflow-y: auto; }

.highlight-nav-emerald {
  background: rgba(16, 185, 129, 0.12) !important;
  border-left: 3px solid var(--accent-emerald) !important;
  color: var(--accent-emerald) !important;
}

.nav-badge-emerald {
  background: var(--accent-emerald);
  color: #042f1a;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* ==========================================================================
   MEDIA QUERIES DE OTIMIZAÇÃO RESPONSIVA EXTREMA (SMARTPHONES & TABLETS)
   ========================================================================== */

/* 1. DISPOSITIVOS TABLET E TELAS MÉDIAS (768px a 1024px) */
@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .breakdown-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .niche-features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pricing-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gateway-provider-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .calendar-days-grid { font-size: 0.85rem; }
  .cal-day { min-height: 75px; padding: 6px; }
}

/* 2. DISPOSITIVOS SMARTPHONES & TABLETS EM RETRATO (max-width: 992px) */
@media (max-width: 992px) {
  /* LAYOUT GERAL & DRAWER SIDEBAR */
  .public-navbar { padding: 12px 16px; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .public-nav-links { display: none; }
  .public-hero { margin: 20px auto; padding: 0 16px; text-align: center; }
  .landing-title { font-size: 2.1rem; line-height: 1.25; }
  .landing-subtitle { font-size: 0.95rem; }
  .landing-cta-row { flex-direction: column; width: 100%; gap: 10px; }
  .btn-hero { width: 100%; min-height: 50px; font-size: 1rem; }
  .mockup-img { height: 260px; object-fit: contain; }

  .mobile-toggle-btn { display: flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1px solid var(--border-color); }
  .mobile-close-btn { display: flex !important; align-items: center; justify-content: center; }
  
  .sidebar { transform: translateX(-100%); width: 280px; z-index: 2050; box-shadow: 4px 0 24px rgba(0,0,0,0.6); }
  .sidebar.mobile-open { transform: translateX(0); }
  
  .main-content { margin-left: 0; padding: 14px 10px; width: 100%; overflow-x: hidden; }
  .topbar { margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
  .topbar-right { gap: 8px; flex-wrap: wrap; }

  /* FORMULÁRIOS & GRIDS ADAPTATIVAS */
  .form-grid { display: flex; flex-direction: column; gap: 12px; }
  .col-4, .col-5, .col-6, .col-7, .col-12 { width: 100%; flex: 1 1 100%; }

  /* SIMULADOR & CENTRAL INBOX NO MOBILE */
  .simulator-container, .inbox-container { grid-template-columns: 1fr; gap: 16px; }
  .whatsapp-mockup { height: 460px; }
  .chat-list-card { max-height: 220px; }
  .inbox-body { height: 350px; }

  .pricing-cards-grid, .niche-features-grid, .metrics-grid, .breakdown-grid, .gateway-provider-grid { grid-template-columns: 1fr; }
  .header-with-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .header-right-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
  .hide-mobile { display: none !important; }

  /* TABELAS E BOTÕES TOUCH-FRIENDLY */
  .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; margin-bottom: 12px; }
  .styled-table { min-width: 650px; }
  
  .period-buttons-group, .btn-group-segmented { width: 100%; display: flex; overflow-x: auto; scrollbar-width: none; border-radius: 8px; }
  .btn-segment { flex: 1 0 auto; text-align: center; white-space: nowrap; padding: 8px 12px; font-size: 0.78rem; }
}

/* 3. DISPOSITIVOS MOBILE PEQUENOS (SMARTPHONES < 576px) */
@media (max-width: 576px) {
  .card-header { padding: 12px 14px; }
  .card-body { padding: 14px 12px; }
  .landing-title { font-size: 1.75rem; }
  
  /* INPUTS E BOTÕES ADEQUADOS A TAP TARGETS (48px) */
  .btn { width: 100%; min-height: 48px; font-size: 0.92rem; justify-content: center; }
  .styled-input, .styled-select, .styled-textarea { font-size: 16px; min-height: 46px; }
  
  /* CALENDÁRIO ADAPTATIVO NO SMARTPHONE */
  .calendar-header-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .calendar-days-grid { font-size: 0.75rem; }
  .cal-day { min-height: 60px; padding: 4px; }
  .event-pill { font-size: 0.65rem; padding: 2px 4px; }

  /* CONTROLES DE PAGINAÇÃO NO SMARTPHONE */
  .pagination-bar { flex-direction: column; gap: 10px; align-items: center; text-align: center; }
  .pagination-bar button { width: auto; }

  /* CONEXÃO WHATSAPP E CAIXA DE CONFIGURAÇÕES */
  #nativeQrCodeDisplayBox { text-align: center; padding: 14px 10px; }
}

