/* ============ Diagnóstico CT.Cred ============ */
:root {
  --bg: #0b0e17;
  --bg-soft: #11152333;
  --panel: #131829;
  --panel-2: #1a2036;
  --border: #232b45;
  --text: #e8ecf8;
  --muted: #8b94b5;
  --accent: #7c6cff;
  --accent-2: #38e1c4;
  --danger: #ff5d7a;
  --warn: #ffb454;
  --ok: #3ddc97;
  --grad: linear-gradient(135deg, #7c6cff 0%, #38e1c4 100%);
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 108, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(56, 225, 196, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ===== Topbar ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 23, 0.75);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
  gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad);
  display: grid; place-items: center; font-size: 22px;
  box-shadow: 0 6px 20px rgba(124, 108, 255, 0.4);
  flex-shrink: 0;
}
img.brand-logo {
  background: none; box-shadow: none; border-radius: 0;
  width: auto; height: 44px;
  object-fit: contain;
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.2px; }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { font-size: 11.5px; color: var(--muted); }
.topbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.client-input {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 10px; font-size: 14px; width: 200px; font-family: var(--font-body);
}
.client-input:focus { outline: none; border-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #0b0e17; box-shadow: 0 6px 24px rgba(124, 108, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(124, 108, 255, 0.55); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* ===== Hero ===== */
.hero { padding: 60px 24px 80px; display: flex; justify-content: center; }
.hero-inner { max-width: 760px; text-align: center; }
.hero-badge {
  display: inline-block; font-size: 12.5px; color: var(--accent-2);
  border: 1px solid rgba(56, 225, 196, 0.35); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 28px; background: rgba(56, 225, 196, 0.06);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(34px, 6vw, 56px);
  font-weight: 800; line-height: 1.1; margin-bottom: 18px;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 640px; margin: 0 auto 36px; }
.hero-sub strong { color: var(--text); }

.dropzone {
  border: 2px dashed rgba(124, 108, 255, 0.5); border-radius: var(--radius);
  background: rgba(124, 108, 255, 0.05);
  padding: 44px 24px; cursor: pointer; transition: all 0.2s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-2); background: rgba(56, 225, 196, 0.07);
  transform: translateY(-2px);
}
.dz-icon { font-size: 42px; margin-bottom: 10px; }
.dz-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.dz-sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.hero-steps { display: flex; gap: 18px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 13px; color: var(--muted); }
.step strong { color: var(--text); }
.step-n {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--panel-2); border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 700; color: var(--accent-2); font-family: var(--font-display);
}
.btn-demo { margin-top: 36px; }

/* ===== Dashboard layout ===== */
.dashboard { max-width: 1280px; margin: 0 auto; padding: 24px 24px 60px; }

.controls-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.tab {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 9px; transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #0b0e17; box-shadow: 0 4px 14px rgba(124, 108, 255, 0.35); }

.controls-right { display: flex; gap: 10px; align-items: center; }
.select, .input {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 9px 13px; border-radius: 10px; font-size: 13.5px; font-family: var(--font-body);
}
.select:focus, .input:focus { outline: none; border-color: var(--accent); }

.dropzone-mini {
  border: 1.5px dashed rgba(124, 108, 255, 0.55); color: var(--accent);
  border-radius: 10px; padding: 9px 16px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.dropzone-mini:hover, .dropzone-mini.dragover { border-color: var(--accent-2); color: var(--accent-2); background: rgba(56, 225, 196, 0.06); }

.invoice-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 8px 6px 14px; font-size: 12.5px; color: var(--muted);
}
.chip b { color: var(--text); font-weight: 600; }
.chip .chip-x {
  width: 20px; height: 20px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--panel-2); color: var(--muted); font-size: 11px; line-height: 1;
  display: grid; place-items: center;
}
.chip .chip-x:hover { background: var(--danger); color: #fff; }
.chip.chip-warn { border-color: rgba(245, 166, 35, 0.55); background: rgba(245, 166, 35, 0.08); }
.chip .chip-mark { font-size: 12px; font-weight: 700; line-height: 1; margin-left: 2px; }
.chip .chip-mark.ok { color: var(--accent-2); }
.chip .chip-mark.warn { color: #f5a623; }

/* ===== Reconciliação (salvaguarda de confiança) ===== */
.reconcile-banner {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: 14px; padding: 14px 16px; margin-bottom: 22px;
  border: 1px solid var(--border); background: var(--panel);
}
.reconcile-banner.hidden { display: none; }
.reconcile-banner.danger { border-color: rgba(245, 166, 35, 0.55); background: rgba(245, 166, 35, 0.09); }
.reconcile-banner.info   { border-color: var(--border); background: var(--panel); }
.reconcile-banner.ok     { border-color: rgba(56, 225, 196, 0.4); background: rgba(56, 225, 196, 0.06); padding: 10px 16px; }
.reconcile-banner .rec-icon { font-size: 20px; line-height: 1.2; flex-shrink: 0; }
.reconcile-banner .rec-title { font-weight: 700; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.reconcile-banner .rec-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.reconcile-banner.ok .rec-note { margin: 0; }
.reconcile-banner .rec-list { margin: 6px 0; padding-left: 18px; color: var(--text); font-size: 12.5px; line-height: 1.6; }
.reconcile-banner .rec-list b { color: var(--text); }

/* ===== Panels & cards ===== */
.tab-panel { display: none; animation: fadeUp 0.35s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)) , var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; }
.card-hint { font-size: 12px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.grid-2 .card { margin-bottom: 20px; }
@media (max-width: 940px) { .grid-2 { grid-template-columns: 1fr; } }

.chart-wrap { position: relative; height: 290px; }
.chart-tall { height: 340px; }
.chart-donut { height: 230px; }

/* ===== KPIs ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)), var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden;
}
.kpi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--kpi-color, var(--grad));
}
.kpi-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.kpi-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-top: 6px; }
.kpi-delta { font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.kpi-delta.up { color: var(--danger); }
.kpi-delta.down { color: var(--ok); }
.kpi-delta.flat { color: var(--muted); }

/* ===== Category legend ===== */
.cat-legend { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.cat-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cat-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.cat-name { flex: 1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-pct { color: var(--muted); font-variant-numeric: tabular-nums; width: 48px; text-align: right; }
.cat-val { font-weight: 600; font-variant-numeric: tabular-nums; width: 105px; text-align: right; }

/* ===== Top transactions ===== */
.top-tx-list { display: flex; flex-direction: column; gap: 4px; }
.top-tx { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.top-tx:hover { background: var(--panel-2); }
.top-tx-rank {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--panel-2); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--accent-2);
}
.top-tx-info { flex: 1; min-width: 0; }
.top-tx-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-tx-meta { font-size: 11.5px; color: var(--muted); }
.top-tx-amount { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; white-space: nowrap; }

/* ===== Transactions table ===== */
.tx-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tx-toolbar .input { flex: 1; min-width: 200px; }
.tx-summary { font-size: 13px; color: var(--muted); margin-left: auto; }
.tx-summary b { color: var(--text); }
.tx-table-wrap { overflow-x: auto; max-height: 600px; overflow-y: auto; border-radius: 10px; }
.tx-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tx-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--panel); z-index: 2;
}
.tx-table td { padding: 10px 12px; border-bottom: 1px solid rgba(35, 43, 69, 0.5); }
.tx-table tr:hover td { background: rgba(124, 108, 255, 0.05); }
.tx-table .r { text-align: right; }
.tx-amount { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-amount.neg { color: var(--ok); }
.cat-badge {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
}
.parc-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; margin-left: 6px;
  border-radius: 999px; background: rgba(255, 180, 84, 0.15); color: var(--warn);
}
.sub-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; margin-left: 6px;
  border-radius: 999px; background: rgba(124, 108, 255, 0.18); color: var(--accent);
}
.card-tag { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ===== Trends ===== */
.trend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.trend-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px;
}
.trend-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.trend-info { flex: 1; min-width: 0; }
.trend-cat { font-size: 13.5px; font-weight: 600; }
.trend-vals { font-size: 11.5px; color: var(--muted); }
.trend-delta { font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap; }
.trend-delta.up { color: var(--danger); }
.trend-delta.down { color: var(--ok); }
.trend-delta.flat { color: var(--muted); }
.note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* ===== Insights ===== */
.insight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-bottom: 20px; }
.insight-card {
  border-radius: var(--radius); padding: 18px 20px;
  border: 1px solid var(--border); background: var(--panel);
  border-left: 4px solid var(--ic-color, var(--accent));
}
.insight-card .ic-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.insight-card .ic-emoji { font-size: 20px; }
.insight-card .ic-title { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.insight-card .ic-body { font-size: 13px; color: var(--muted); line-height: 1.6; }
.insight-card .ic-body b { color: var(--text); }

.sub-list { display: flex; flex-direction: column; gap: 6px; }
.sub-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.sub-item:hover { background: var(--panel-2); }
.sub-name { flex: 1; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-meta { font-size: 11.5px; color: var(--muted); }
.sub-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.sub-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; display: flex; justify-content: space-between; font-weight: 700; }
.sub-total .annual { color: var(--warn); font-size: 12px; font-weight: 600; }

.installment-info .big-number { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin: 6px 0; }
.installment-info p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.installment-info p b { color: var(--text); }
.bar-track { height: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin: 10px 0 6px; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--grad); }

.plan-card { border: 1px solid rgba(124, 108, 255, 0.4); }
.action-plan { padding-left: 0; counter-reset: plan; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.action-plan li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.6; color: var(--muted);
}
.action-plan li::before {
  counter-increment: plan; content: counter(plan);
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px;
  background: var(--grad); color: #0b0e17; font-weight: 800; font-size: 13px;
  display: grid; place-items: center; font-family: var(--font-display);
}
.action-plan li b { color: var(--text); }

/* ===== Footer / toast / loader ===== */
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; border-top: 1px solid var(--border); }
.footer-wpp { color: #25d366; text-decoration: none; font-weight: 600; }
.footer-wpp:hover { text-decoration: underline; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 12px 24px; border-radius: 50px;
  background: #25d366; color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp:hover { background: #1ebe5c; transform: translateY(-1px); }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 22px; border-radius: 12px; font-size: 14px; z-index: 200;
  box-shadow: var(--shadow); animation: fadeUp 0.3s ease;
}
.toast.error { border-color: var(--danger); }

.loader {
  position: fixed; inset: 0; background: rgba(11, 14, 23, 0.8); backdrop-filter: blur(4px);
  display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; z-index: 300;
  color: var(--muted); font-size: 14px;
}
.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid var(--panel-2); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Recomendações por IA ===== */
.ai-card { margin-bottom: 22px; border-color: rgba(124, 108, 255, 0.35); }
.ai-intro p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; }
.ai-intro .ai-privacy {
  font-size: 12.5px; background: rgba(56, 225, 196, 0.06);
  border: 1px solid rgba(56, 225, 196, 0.25); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px;
}
.ai-intro .ai-privacy b { color: var(--text); }
.ai-result.hidden, .ai-intro.hidden { display: none; }
.ai-loading { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; padding: 10px 0; }
.ai-loading .spinner { width: 22px; height: 22px; flex: 0 0 auto; }
.ai-resumo {
  font-size: 14.5px; color: var(--text); line-height: 1.6; background: var(--panel-2);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; border-left: 3px solid var(--accent-2);
}
.ai-h { font-family: var(--font-display); font-size: 14px; color: var(--text); margin: 16px 0 8px; }
.ai-recs { display: flex; flex-direction: column; gap: 10px; }
.ai-rec { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; }
.ai-rec-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.ai-rec-title { font-weight: 600; color: var(--text); font-size: 13.5px; }
.ai-rec-eco { flex: 0 0 auto; font-weight: 700; font-size: 12.5px; color: #0b0e17; background: var(--accent-2); border-radius: 999px; padding: 2px 10px; }
.ai-rec-detail { color: var(--muted); font-size: 13px; line-height: 1.55; }
.ai-alts { display: flex; flex-direction: column; gap: 8px; }
.ai-alt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; }
.ai-alt-cur { color: var(--muted); }
.ai-alt-arrow { color: var(--accent); font-weight: 700; }
.ai-alt-new { color: var(--text); font-weight: 600; }
.ai-alt-eco { margin-left: auto; font-weight: 700; font-size: 12px; color: var(--accent-2); }
.ai-alt-src { font-size: 11.5px; color: var(--accent); text-decoration: none; }
.ai-alt-src:hover { text-decoration: underline; }
.ai-alertas { margin: 0; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.6; }
.ai-disclaimer { margin-top: 14px; font-size: 11.5px; color: var(--muted); font-style: italic; }
.ai-again { margin-top: 12px; }
.ai-error { color: #ff5d7a; font-size: 13.5px; padding: 8px 0; }

@media (max-width: 720px) {
  /* ----- Header ----- */
  .topbar { padding: 12px 14px; gap: 10px; }
  .topbar-actions { width: 100%; gap: 8px; }
  /* Inputs dividem a 1ª linha (mín. 130px cada → empurram os botões p/ a linha de baixo) */
  .client-input { flex: 1 1 130px; min-width: 0; width: auto; }
  .btn { padding: 9px 14px; font-size: 13px; flex: 0 0 auto; }

  /* ----- Dashboard ----- */
  .dashboard { padding: 16px 12px 50px; }

  /* Controles empilham; abas viram barra rolável horizontal */
  .controls-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .tabs {
    overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .controls-right { width: 100%; flex-wrap: wrap; }
  .controls-right .select { flex: 1; min-width: 0; }
  .dropzone-mini { flex: 1; text-align: center; }

  /* Gráficos */
  .chart-wrap { height: 240px; }

  /* Toolbar de transações empilha; busca/selects largura cheia */
  .tx-toolbar { flex-direction: column; align-items: stretch; }
  .tx-toolbar .input, .tx-toolbar .select { width: 100%; min-width: 0; }
  .tx-summary { text-align: left; }

  /* Tabela: no celular mostra só o essencial (Data, Estabelecimento, Valor).
     Categoria e Cartão ficam escondidos — categoria aparece no gráfico/insights.
     table-layout:fixed com larguras definidas garante que o VALOR caiba inteiro. */
  .tx-table { font-size: 12.5px; table-layout: fixed; width: 100%; }
  .tx-table th, .tx-table td { padding: 9px 8px; }
  .tx-table th:nth-child(3), .tx-table td:nth-child(3),
  .tx-table th:nth-child(4), .tx-table td:nth-child(4) { display: none; }
  .tx-table th:nth-child(1), .tx-table td:nth-child(1) { width: 58px; }
  .tx-table th:nth-child(2), .tx-table td:nth-child(2) { width: auto; word-break: break-word; }
  .tx-table th:nth-child(5), .tx-table td:nth-child(5) { width: 92px; white-space: nowrap; }
  .tx-table-wrap { overflow-x: hidden; }

  /* ----- Hero / tela inicial ----- */
  .hero { padding: 32px 16px 50px; }
  .hero-badge { margin-bottom: 18px; }
  .hero-sub { font-size: 15px; margin-bottom: 26px; }
  .dropzone { padding: 32px 18px; }
  .hero-steps { gap: 12px; margin-top: 28px; }
}
