/* === VARIÁVEIS E BASE === */
:root {
  --bg-main: #0f172a;
  --bg-panel: rgba(30, 41, 59, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --danger: #ef4444;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --mobile-nav-h: 64px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
}

.hidden { display: none !important; }

/* === TIPOGRAFIA === */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-secondary); }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.full-width { width: 100%; }

/* === GLASSMORPHISM === */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* === AUTH === */
.auth-wrapper { width: 100%; max-width: 400px; padding: 2rem; animation: fadeIn 0.5s ease-out; }
.app-wrapper { width: 100%; max-width: 100%; min-height: 100vh; display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem; animation: fadeIn 0.5s ease-out; }

/* === FORMULÁRIOS === */
.input-group { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.input-group label { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }

.modern-input, .modern-textarea {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
  width: 100%;
}
.modern-input:focus, .modern-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.modern-textarea { resize: vertical; min-height: 80px; font-family: var(--font-mono); font-size: 0.9rem; }

/* === BOTÕES === */
.modern-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius-md);
  font-weight: 500; cursor: pointer; border: none; transition: all 0.2s;
  font-family: var(--font-main);
}
.modern-btn.primary { background: var(--primary); color: white; }
.modern-btn.primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.modern-btn.secondary { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); border: 1px solid var(--border-color); }
.modern-btn.secondary:hover { background: rgba(255, 255, 255, 0.1); }
.modern-btn.small { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.modern-btn.large { padding: 0.875rem 2rem; font-size: 1rem; }
.icon-btn { background: transparent; border: none; font-size: 1.25rem; cursor: pointer; padding: 0.5rem; border-radius: 50%; transition: 0.2s; }
.icon-btn:hover { background: rgba(255,255,255,0.1); }

/* === AUTH HEADER === */
.auth-header { text-align: center; margin-bottom: 2rem; }
.logo-icon { font-size: 3rem; margin-bottom: 0.5rem; display: inline-block; animation: float 3s ease-in-out infinite; }
.logo-icon.small { font-size: 1.5rem; animation: none; }
.auth-header p { color: var(--text-secondary); margin-top: 0.25rem; }
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
.error-message { background: rgba(239, 68, 68, 0.1); color: var(--danger); padding: 0.75rem; border-radius: var(--radius-sm); border: 1px solid rgba(239, 68, 68, 0.2); margin-bottom: 1rem; font-size: 0.875rem; }

/* =============================================
   DESKTOP LAYOUT (>= 769px) — INALTERADO
   ============================================= */
.layout-with-sidebar {
  flex-direction: row;
  max-width: 100%;
  align-items: stretch;
  padding: 1.5rem;
  gap: 1.5rem;
  height: 100vh;
}

.app-sidebar {
  width: 260px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  flex-shrink: 0;
}

.sidebar-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.sidebar-content { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.user-profile { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.user-info { font-size: 0.85rem; color: var(--text-secondary); word-break: break-all; }
.sidebar-actions { display: flex; flex-direction: column; gap: 0.5rem; }

.nav-btn {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem; background: transparent; border: none;
  color: var(--text-secondary); font-family: var(--font-main);
  font-size: 0.95rem; font-weight: 500; border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.2s; text-align: left; width: 100%;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.nav-btn.active { background: rgba(59, 130, 246, 0.15); color: var(--primary); box-shadow: inset 4px 0 0 var(--primary); }
.nav-btn span { font-size: 1.2rem; }

.main-content { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; position: relative; }

/* === ABAS === */
.tab-content { animation: fadeIn 0.3s ease-out; }
.tab-content.hidden { display: none !important; }

/* === DASHBOARD === */
.dashboard-section { display: flex; flex-direction: column; gap: 1.5rem; }
.dashboard-stats { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 1rem; width: 100%; overflow-x: auto; }

.stat-card {
  flex: 1; min-width: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex; flex-direction: column;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.stat-title { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.5rem; font-weight: 700; font-family: var(--font-mono); color: var(--primary); }

/* === BUSCA === */
.sticky-bottom { margin-top: auto; padding: 1.25rem; position: sticky; bottom: 0; z-index: 10; }
.search-box { display: flex; flex-direction: column; gap: 1rem; }
.search-actions { display: flex; justify-content: space-between; align-items: center; }
.counter { font-size: 0.85rem; color: var(--text-secondary); font-family: var(--font-mono); }

/* === STATUS === */
.status-section { margin-top: 0.5rem; }
.status-section h4 { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.badge { background: rgba(59, 130, 246, 0.2); color: #60a5fa; padding: 0.1rem 0.5rem; border-radius: 4px; font-family: var(--font-mono); font-size: 0.75rem; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.pn-status-pill { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-family: var(--font-mono); transition: all 0.3s ease; }
.pn-status-pill .indicator { width: 8px; height: 8px; border-radius: 50%; }
.indicator.waiting { background: #94a3b8; }
.indicator.loading { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; animation: pulse 1s infinite alternate; }
.indicator.done { background: #10b981; box-shadow: 0 0 8px #10b981; }
.indicator.error { background: #ef4444; }

/* === MODAL === */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { width: 90%; max-width: 450px; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }

/* === ANIMAÇÕES === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes pulse { from { opacity: 0.5; transform: scale(0.9); } to { opacity: 1; transform: scale(1.2); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-glow { from { box-shadow: 0 0 5px rgba(16,185,129,0.3); } to { box-shadow: 0 0 20px rgba(16,185,129,0.7); } }

/* === BACKGROUND === */
.bg-animation { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0.25; display: flex; justify-content: center; align-items: center; }
.bg-animation canvas { width: 90vmin; height: 90vmin; max-width: 900px; max-height: 900px; filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.2)); }

/* === TABELA DE RESULTADOS === */
.results-section { flex: 1; overflow-y: auto; min-height: 0; padding-right: 8px; }
.results-section::-webkit-scrollbar { width:6px; }
.results-section::-webkit-scrollbar-track { background:rgba(255,255,255,0.05); border-radius:3px; }
.results-section::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.2); border-radius:3px; }

.modern-table-container { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: rgba(30, 41, 59, 0.4); }
.modern-table { width: 100%; border-collapse: collapse; text-align: left; }
.modern-table th, .modern-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.modern-table th { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(8px); color: var(--text-secondary); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 var(--border-color); }
.modern-table tr:hover:not(.expandable-content-row) { background: rgba(255, 255, 255, 0.03); }

.row-expanded td { position: sticky; top: 41px; z-index: 9; background: rgba(15, 23, 42, 0.98); border-bottom: 1px solid var(--primary); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3); }
.row-searching { background: rgba(250, 204, 21, 0.05) !important; border-left: 4px solid #facc15; }
.pn-preview { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e5e7eb; font-size: 0.85rem; }

.expand-btn { background: transparent; border: none; color: var(--primary); cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; width: 24px; height: 24px; border-radius: 4px; }
.expand-btn:hover { background: rgba(59, 130, 246, 0.1); }
.expand-btn.open { transform: rotate(90deg); }

.expandable-content-row { display: none; background: rgba(0, 0, 0, 0.15); }
.expandable-content-row.open { display: table-row; animation: fadeIn 0.3s; }

.expanded-inner-content { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.item-meta { display:flex; gap:6px; flex-wrap:wrap; }
.meta-pill { font-size:10px; padding:4px 8px; border-radius:6px; background:rgba(255,255,255,0.05); color:#cbd5e1; border:1px solid rgba(255,255,255,0.1); display:inline-flex; align-items:center; gap:4px; white-space:nowrap; font-weight: 500; }
.meta-pill.local { background:rgba(34,197,94,0.1); border-color:rgba(34,197,94,0.3); color:#4ade80; }
.meta-pill.instock { background:rgba(59,130,246,0.1); border-color:rgba(59,130,246,0.3); color:#60a5fa; }
.item-link { font-size:11px; color:#60a5fa; text-decoration:none; cursor:pointer; align-self:flex-start; margin-top: 4px; font-weight: 500; }
.item-link:hover { color:#93c5fd; text-decoration: underline; }

.gemini-desc { font-size: 13px; color: #cbd5e1; background: rgba(255,255,255,0.03); padding: 10px; border-radius: 6px; border-left: 2px solid #8b5cf6; line-height: 1.5; }

/* === APPLICABILITY CUSTOM PREMIUM POPOVER === */
.applicability-container {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.applicability-container:hover {
  z-index: 99999;
}

.applicability-trigger {
  cursor: help;
  border-bottom: 1px dotted var(--primary);
  color: var(--primary);
  font-weight: 600;
  transition: color 0.2s;
}

.applicability-trigger:hover {
  color: var(--primary-hover);
}

.applicability-popover {
  position: absolute;
  top: 130%;
  left: 0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  width: 320px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.applicability-container:hover .applicability-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Seta do popover apontando para CIMA */
.applicability-popover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 20px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(15, 23, 42, 0.98) transparent;
}

.popover-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.popover-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2px;
  margin-bottom: 4px;
}

.popover-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.popover-chip {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.popover-chip.family {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #4ade80;
}
.pn-group { display:flex; flex-direction:column; gap:8px; background: rgba(0,0,0,0.15); padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); position: relative; transition: z-index 0.2s; }
.pn-group:hover { z-index: 999; }
.pn-title { font-size:13px; font-weight:700; color:#f9fafb; padding:0 4px; letter-spacing:0.05em; font-family:var(--font-mono); border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px; }
.sourcing-container { display:flex; flex-direction:column; gap:8px; }

/* === INNER TABLE === */
.inner-table { width: 100%; border-collapse: collapse; background: rgba(15, 23, 42, 0.4); }
.inner-table th, .inner-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.85rem; text-align: left; }
.inner-table th { background: rgba(0, 0, 0, 0.3); color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; }
.inner-table tr:hover { background: rgba(255, 255, 255, 0.03); }
.inner-best-row { background: rgba(34, 197, 94, 0.08) !important; }

.price { font-size:15px; font-weight:600; color:#e5e7eb; white-space:nowrap; }
.price.best { color:#4ade80; font-size:16px; }
.best-badge { font-size:9px; color:#22c55e; font-weight:700; background:rgba(34,197,94,0.15); padding:3px 6px; border-radius:4px; white-space:nowrap; letter-spacing: 0.5px; }
.pbar { position:absolute; bottom:0; left:0; height:3px; background:#3b82f6; width:0%; transition: width 0.3s ease; }
.meta { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* =============================================
   MOBILE LAYOUT (<= 768px) — DESIGN NOVO
   ============================================= */
@media (max-width: 768px) {
  body { align-items: flex-start; }

  /* --- Esconde o globo 3D no mobile para performance --- */
  .bg-animation { display: none; }

  /* --- App wrapper vira tela cheia sem padding lateral --- */
  .layout-with-sidebar {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: 0;
    gap: 0;
  }

  /* --- Sidebar vira topbar compacta --- */
  .app-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
  }

  .sidebar-header { margin-bottom: 0; }
  .sidebar-header h2 { font-size: 1rem; }
  .sidebar-content { flex-direction: row; align-items: center; gap: 0.5rem; flex: 0; }
  .user-profile { display: none; }

  /* Nav buttons viram ícones pequenos na topbar */
  .nav-menu {
    flex-direction: row !important;
    gap: 0.25rem !important;
    margin-bottom: 0 !important;
  }
  .nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.25rem;
    flex-direction: column;
    height: auto;
    width: auto;
    box-shadow: none !important;
  }
  .nav-btn.active { box-shadow: none !important; border-bottom: 2px solid var(--primary); border-radius: 0; background: rgba(59,130,246,0.1); }
  .nav-btn span { font-size: 1rem; }

  /* Botões da sidebar viram mini botões */
  .sidebar-actions { flex-direction: row; gap: 0.25rem; }
  .sidebar-actions .modern-btn { padding: 0.35rem 0.6rem; font-size: 0.7rem; }
  #api-status-badge { display: none; }

  /* --- Conteúdo principal --- */
  .main-content {
    padding: 0.75rem;
    padding-bottom: calc(var(--mobile-nav-h) + 1rem);
    gap: 0.75rem;
  }

  /* --- Dashboard cards em grid 2x2 --- */
  .dashboard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    overflow-x: visible;
  }
  .stat-card { padding: 0.875rem; }
  .stat-value { font-size: 1.25rem; }
  .stat-title { font-size: 0.65rem; }

  /* Sync card ocupa a linha inteira */
  #sync-inbox-btn { grid-column: 1 / -1; }

  /* --- Tabela principal vira cards empilhados --- */
  .modern-table-container { overflow: visible; border: none; background: transparent; }
  .modern-table, .modern-table thead, .modern-table tbody,
  .modern-table th, .modern-table td, .modern-table tr { display: block; }

  .modern-table thead { display: none; }

  .modern-table tbody tr:not(.expandable-content-row) {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
  }

  .modern-table tbody tr.expandable-content-row {
    display: none;
    border: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
  }
  .modern-table tbody tr.expandable-content-row.open {
    display: block;
  }

  .modern-table td { padding: 0.2rem 0.4rem; border: none; font-size: 0.8rem; }
  .modern-table td:first-child { width: 30px; }
  .modern-table td:nth-child(2) { font-weight: 700; color: var(--primary); font-family: var(--font-mono); font-size: 0.8rem; }
  .modern-table td:nth-child(3) { flex: 1; color: var(--text-secondary); font-size: 0.75rem; }
  .modern-table td:nth-child(4) { display: none; }
  .modern-table td.status-cell { margin-left: auto; }

  .row-searching { border-left: 3px solid #facc15 !important; }
  .row-expanded td { position: static; background: transparent; box-shadow: none; }

  /* Inner content (detalhes do PN) */
  .expanded-inner-content { padding: 10px; gap: 12px; }

  /* PN Group no mobile: sem o botão RFQ inline, vira empilhado */
  .pn-group > div:first-child {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .pn-group > div:first-child button {
    width: 100%;
    font-size: 0.78rem;
    padding: 0.6rem 0.75rem;
  }

  /* Inner table no mobile vira cards */
  .inner-table { display: block; }
  .inner-table thead { display: none; }
  .inner-table tbody { display: block; }
  .inner-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .inner-table td {
    display: inline-flex;
    align-items: center;
    border: none;
    padding: 0.15rem 0.25rem;
    font-size: 0.78rem;
  }
  .inner-table td:first-child { width: 100%; font-weight: 700; margin-bottom: 0.2rem; }
  .price { font-size: 1rem; font-weight: 700; }
  .price.best { font-size: 1.1rem; }

  /* Campo de busca mobile */
  .sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    z-index: 40;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: rgba(15, 23, 42, 0.97);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    margin-top: 0;
  }
  .sticky-bottom h3 { display: none; }
  .sticky-bottom .text-sm { display: none; }
  .search-box { gap: 0.5rem; }
  .modern-textarea { min-height: 44px; font-size: 0.85rem; }
  .search-actions { gap: 0.5rem; }
  .modern-btn.large { padding: 0.65rem 1.25rem; font-size: 0.9rem; }

  /* Aba Mails no mobile */
  #mails-tab .glass-panel { border-radius: var(--radius-md); padding: 1rem; }
  #mails-tab h2 { font-size: 1rem; }

  /* Formulário de fornecedor mobile */
  #vendor-form { flex-direction: column !important; gap: 0.75rem !important; }

  /* Modal full-screen no mobile */
  .modal-content { width: 95%; max-width: 100%; padding: 1.25rem; max-height: 90vh; overflow-y: auto; }
  #log-modal .modal-content { max-width: 98%; }
  #debug-log { height: 250px !important; }

  /* Seção de sincronização no mobile */
  .section-subtitle { font-size: 0.8rem; }
}
