/* PAFI — Design System */
:root {
  --primary: #1e293b;
  --primary-deep: #0f172a;
  --primary-mid: #334155;
  --primary-light: #475569;
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-pale: #f0f9ff;
  --grafite: #1e1e2e;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.12);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --sidebar-w: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ============ SIDEBAR ============ */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-header h1 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}
.sidebar-header p {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}
.sidebar-section {
  padding: 16px 12px 8px;
}
.sidebar-section-title {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  padding: 0 8px;
  margin-bottom: 8px;
}
.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.sidebar-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-btn.active { background: rgba(14,165,233,.15); color: var(--accent); }
.sidebar-btn .icon { font-size: 1rem; width: 20px; text-align: center; }

.history-list {
  flex: 1;
  padding: 0 12px 16px;
  overflow-y: auto;
}
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  transition: all .15s;
  margin-bottom: 2px;
}
.history-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.history-item.selected { background: rgba(14,165,233,.15); border-left: 2px solid var(--accent); color: #fff; }
.history-item .delete-btn {
  opacity: 0;
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: .7rem;
  padding: 2px 4px;
  border-radius: 4px;
}
.history-item:hover .delete-btn { opacity: .7; }
.history-item .delete-btn:hover { opacity: 1; }
.history-meta { font-size: .65rem; color: rgba(255,255,255,.35); }

/* ============ MAIN ============ */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 24px 32px;
  max-width: 1200px;
  position: relative;
}
.main::before {
  content: '';
  position: fixed;
  top: 50%; left: calc(var(--sidebar-w) + 50%);
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: url('img/un-bg.png') center/contain no-repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.main > * { position: relative; z-index: 1; }

/* ============ STEPPER ============ */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  background: var(--surface);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .15s;
  white-space: nowrap;
}
.step:hover { background: var(--accent-pale); }
.step-number {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  background: var(--border);
  color: var(--text-muted);
  transition: all .15s;
}
.step.active .step-number { background: var(--accent); color: #fff; }
.step.completed .step-number { background: var(--success); color: #fff; }
.step-label { font-size: .82rem; color: var(--text-muted); }
.step.active .step-label { color: var(--text); font-weight: 600; }
.step.completed .step-label { color: var(--success); }
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  min-width: 20px;
}
.step-connector.completed { background: var(--success); }

/* ============ CARDS ============ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .icon { color: var(--accent); }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ============ FORMS ============ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-control {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .88rem;
  font-family: var(--sans);
  transition: border-color .15s;
  background: #fff;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
select.form-control { cursor: pointer; }

/* Toggle */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.toggle {
  position: relative;
  width: 40px; height: 22px;
  background: var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: background .2s;
}
.toggle.active { background: var(--accent); }
.toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle.active::after { transform: translateX(18px); }
.toggle-label { font-size: .82rem; color: var(--text); }

/* ============ METHOD SELECTOR ============ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.method-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc, #f0f4f8);
}
.method-card:hover { border-color: var(--accent-light); background: linear-gradient(180deg, var(--accent-pale), #e0f2fe); }
.method-card.selected { border-color: var(--accent); background: linear-gradient(180deg, #e0f2fe, #bae6fd); box-shadow: 0 0 0 3px rgba(14,165,233,.2); }
.method-card .method-icon { font-size: 2rem; margin-bottom: 8px; color: var(--accent); }
.method-card .method-name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: var(--primary); }
.method-card .method-desc { font-size: .72rem; color: var(--text-muted); line-height: 1.4; }

/* Type selector (big cards) */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 40px auto;
}
.type-card {
  border: 2px solid rgba(14,165,233,.25);
  border-radius: 12px;
  padding: 32px 24px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
}
.type-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,.15); background: linear-gradient(180deg, #e0f2fe, #bae6fd); }
.type-card.selected { border-color: var(--accent); background: linear-gradient(180deg, #dbeafe, #bae6fd); box-shadow: 0 0 0 3px rgba(14,165,233,.2); }
.type-card .type-icon { font-size: 3rem; margin-bottom: 12px; color: var(--accent); }
.type-card .type-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.type-card .type-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* ============ BUTTONS ============ */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a38949; }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-mid); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg); }
.btn-success { background: var(--success); color: #fff; }
.btn-accent { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.btn-accent:hover { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.btn-sm { padding: 6px 12px; font-size: .78rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-group { display: flex; gap: 10px; margin-top: 20px; }

/* ============ TABLE ============ */
.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
thead th {
  background: var(--primary);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  position: sticky; top: 0;
}
tbody td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--accent-pale); }
tbody tr:nth-child(even) { background: #fafafa; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ============ MAPPING TABLE ============ */
.mapping-table select { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: .82rem; background: #fff; }
.mapping-table select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px rgba(14,165,233,.15); }
.mapping-table .field-label { font-weight: 600; font-size: .82rem; color: var(--text); }
.mapping-table .field-hint { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.mapping-table .mapped { background: rgba(14,165,233,.06); }
.mapping-table .map-status { font-size: .75rem; text-align: center; }
.mapping-table .map-ok { color: var(--success); }
.mapping-table .map-empty { color: var(--text-muted); }

/* ============ UPLOAD ============ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-pale);
}
.upload-zone .icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 8px; }
.upload-zone p { color: var(--text-muted); font-size: .88rem; }
.upload-zone .formats { font-size: .72rem; color: var(--text-muted); margin-top: 8px; }

/* ============ CALCULATION STEPS ============ */
.calc-step {
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 3px solid var(--accent);
}
.calc-step-title {
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.calc-formula {
  font-family: 'Courier New', monospace;
  background: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .88rem;
  border: 1px solid var(--border);
  margin: 8px 0;
  overflow-x: auto;
}
.calc-result {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

/* AICPA table highlight */
.aicpa-table { font-size: .75rem; }
.aicpa-table td, .aicpa-table th { padding: 4px 8px; text-align: center; }
.aicpa-table .highlight { background: var(--accent-pale); font-weight: 700; border: 2px solid var(--accent); }
.aicpa-table .header-col { background: var(--primary); color: #fff; }
.aicpa-table .header-row { background: var(--primary-mid); color: #fff; }

/* ============ TOOLTIP ============ */
.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 700;
  cursor: help;
  position: relative;
}
.tooltip-trigger:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--grafite);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 400;
  white-space: nowrap;
  max-width: 300px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

/* ============ BENFORD CHART ============ */
.benford-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding: 12px 0;
}
.benford-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.benford-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 100%;
}
.benford-bar {
  width: 14px;
  border-radius: 3px 3px 0 0;
  transition: height .3s;
}
.benford-bar.expected { background: var(--primary); opacity: .3; }
.benford-bar.observed { background: var(--accent); }
.benford-bar.suspect { background: var(--danger); }
.benford-label { font-size: .7rem; color: var(--text-muted); font-weight: 600; }

/* ============ SAIBA MAIS ============ */
.info-expandable {
  background: var(--accent-pale);
  border-radius: 8px;
  margin-top: 12px;
  overflow: hidden;
}
.info-expandable-header {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
}
.info-expandable-body {
  padding: 0 16px 14px;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: none;
}
.info-expandable.open .info-expandable-body { display: block; }
.info-expandable-header .arrow { transition: transform .2s; }
.info-expandable.open .info-expandable-header .arrow { transform: rotate(180deg); }

/* ============ TOAST ============ */
.toast-container {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: .85rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
  max-width: 400px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); color: var(--text); }
.toast.info { background: var(--info); }

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

/* ============ LOADING ============ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px;
  color: var(--text-muted);
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .sidebar { width: 220px; }
  .main { margin-left: 220px; padding: 16px; }
  .type-grid { grid-template-columns: 1fr; }
}

/* ============ SVG ICONS ============ */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em; height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
}
.svg-icon-lg { width: 2.5rem; height: 2.5rem; }
.svg-icon-xl { width: 3rem; height: 3rem; color: var(--accent); }

/* ============ DASHBOARD VIEW ============ */
.dashboard-view {
  width: 100%; min-height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.dash-header {
  background: linear-gradient(135deg, var(--primary-deep) 0%, #1e3a5f 50%, #0c4a6e 100%);
  padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff;
}
.dash-header-brand h1 { font-size: 2rem; font-weight: 800; letter-spacing: 2px; }
.dash-header-brand p { font-size: .9rem; opacity: .7; margin-top: 2px; }
.dash-badge {
  display: inline-block; margin-top: 8px;
  font-size: .65rem; text-transform: uppercase; letter-spacing: 1px;
  background: rgba(14,165,233,.25); padding: 3px 10px; border-radius: 20px; color: var(--accent-light);
}
.dash-header-user {
  display: flex; align-items: center; gap: 12px; color: #fff;
}
.dash-header-user .user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(14,165,233,.3); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: var(--accent-light);
}
.dash-header-user .user-name { font-size: .85rem; font-weight: 600; }
.dash-header-user .user-role { font-size: .7rem; opacity: .5; }
.dash-header-user .btn-logout {
  background: none; border: 1px solid rgba(255,255,255,.2); color: #fff;
  padding: 6px 14px; border-radius: 6px; font-size: .75rem; cursor: pointer;
}
.dash-header-user .btn-logout:hover { background: rgba(255,255,255,.1); }

.dash-content { padding: 24px 48px; flex: 1; }

.dash-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px;
}
.dash-stat-card {
  background: #fff; border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow); text-align: center;
}
.dash-stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.dash-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

.dash-controls {
  display: flex; gap: 12px; align-items: center; margin-bottom: 16px;
}
.dash-search { flex: 1; max-width: 300px; }
.dash-filter { width: 180px; }

.dash-table-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table thead th {
  background: var(--bg); padding: 10px 16px; text-align: left;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted);
  letter-spacing: .5px; border-bottom: 1px solid var(--border);
}
.dash-table tbody td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .85rem;
}
.dash-table tbody tr { cursor: pointer; transition: background .15s; }
.dash-table tbody tr:hover { background: var(--accent-pale); }
.dash-table .status-badge {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: .72rem; font-weight: 600;
}
.dash-table .status-em_andamento { background: #dbeafe; color: #1d4ed8; }
.dash-table .status-concluida { background: #d1fae5; color: #047857; }
.dash-table .actions-cell { white-space: nowrap; }
.dash-table .actions-cell button {
  background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-muted); font-size: .85rem;
}
.dash-table .actions-cell button:hover { color: var(--danger); }

/* ============ MODAL ============ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: #fff; border-radius: 12px; width: 90vw; overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,.25); animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-20px); } }
.modal-header {
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); line-height: 1; }
.modal-body { padding: 20px 24px; }
.modal-body .form-group { margin-bottom: 14px; }
.modal-body textarea { resize: vertical; }
.modal-footer {
  padding: 14px 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ============ CONTEXT BAR ============ */
.context-bar {
  background: var(--primary); padding: 10px 24px;
  display: flex; align-items: center; gap: 16px; color: #fff;
}
.context-titulo { font-weight: 700; font-size: .95rem; }
.context-meta { font-size: .8rem; opacity: .6; }
.context-status {
  font-size: .7rem; padding: 2px 10px; border-radius: 12px;
  background: rgba(14,165,233,.3); color: var(--accent-light);
}

/* ============ WORKSPACE VIEW ============ */
.workspace-view { width: 100%; min-height: 100vh; display: flex; flex-direction: column; }
.workspace-body { display: flex; flex: 1; }

/* ============ SOBRE VIEW ============ */
.sobre-view { width: 100%; min-height: 100vh; background: var(--bg); }
.sobre-header {
  background: linear-gradient(135deg, var(--primary-deep) 0%, #1e3a5f 50%, #0c4a6e 100%);
  padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; color: #fff;
}
.sobre-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: 2px; }
.sobre-header p { font-size: .9rem; opacity: .7; margin-top: 2px; }
.btn-sobre {
  background: none; border: 1px solid rgba(255,255,255,.25); color: #fff;
  padding: 6px 16px; border-radius: 6px; font-size: .78rem; cursor: pointer; font-family: var(--sans);
}
.btn-sobre:hover { background: rgba(255,255,255,.1); }

.sobre-content { max-width: 900px; margin: 0 auto; padding: 24px 48px 48px; }
.sobre-tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; flex-wrap: wrap;
}
.sobre-tab {
  background: none; border: none; padding: 10px 18px; font-size: .85rem; cursor: pointer;
  color: var(--text-muted); font-weight: 500; border-bottom: 2px solid transparent;
  margin-bottom: -2px; font-family: var(--sans); transition: all .15s;
}
.sobre-tab:hover { color: var(--text); }
.sobre-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

.sobre-card {
  background: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.sobre-card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.sobre-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--primary-mid); }
.sobre-card p { line-height: 1.7; margin-bottom: 8px; color: var(--text); font-size: .9rem; }

.sobre-note {
  background: var(--accent-pale); border-left: 3px solid var(--accent);
  padding: 8px 12px; border-radius: 4px; font-size: .82rem; color: var(--primary-mid);
  margin-top: 8px;
}

.sobre-formula {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 20px; font-family: 'Courier New', monospace; font-size: .95rem;
  font-weight: 600; color: var(--primary); margin: 12px 0; line-height: 1.8;
}

.sobre-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .85rem; }
.sobre-table th {
  background: var(--primary); color: #fff; padding: 8px 12px; text-align: left; font-weight: 600;
}
.sobre-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.sobre-table tr:nth-child(even) td { background: #f8fafc; }

.sobre-list { padding-left: 20px; margin: 8px 0; }
.sobre-list li { line-height: 1.8; font-size: .88rem; color: var(--text); }
.sobre-list-no li::marker { content: '✗ '; color: var(--danger); }

.sobre-features { display: flex; flex-direction: column; gap: 12px; }
.sobre-feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 12px; border-radius: 8px; background: #f8fafc;
}
.sobre-feature-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; flex-shrink: 0;
}
.sobre-feature p { margin: 4px 0 0; font-size: .82rem; color: var(--text-muted); }

.sobre-steps { display: flex; flex-direction: column; gap: 0; }
.sobre-step {
  display: flex; gap: 20px; padding: 24px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 2px; position: relative;
}
.sobre-step::after {
  content: ''; position: absolute; left: 41px; bottom: -2px; width: 2px; height: 4px;
  background: var(--accent);
}
.sobre-step:last-child::after { display: none; }
.sobre-step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0284c7);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.sobre-step-body h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.sobre-step-body p { font-size: .85rem; line-height: 1.7; margin-bottom: 6px; }

/* Hidden */
.hidden { display: none !important; }
