/* =========================================================
   Organizze — Design System Idêntico (Uso Pessoal)
   Fidelidade extrema: cores, bordas arredondadas, sombras, tipografia
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-app: #f4f6f8;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-hover: #f1f5f9;
  --bg-input: #ffffff;
  
  --border: #f0f2f5;
  --border-strong: #e2e8f0;

  --text-primary: #19212c;
  --text-secondary: #5f738c;
  --text-muted: #94a3b8;

  /* Organizze Emerald Brand */
  --brand: #00ba70;
  --brand-hover: #00a362;
  --brand-soft: #eafaf1;
  --brand-text: #008f56;

  /* Status and finance colors */
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --red: #eb4d4b;
  --red-soft: #fef2f2;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --purple: #820ad1;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(16, 24, 40, 0.03);
  --shadow-float: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-modal: 0 25px 60px rgba(15, 23, 42, 0.16);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --sidebar-w: 256px;
  --sidebar-collapsed-w: 78px;
}

html.dark {
  --bg-app: #0f172a;
  --bg-sidebar: #131d31;
  --bg-card: #182238;
  --bg-subtle: #1e2942;
  --bg-hover: #263552;
  --bg-input: #131d31;
  
  --border: #23314d;
  --border-strong: #334466;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --brand: #10d484;
  --brand-hover: #00ba70;
  --brand-soft: rgba(0, 186, 112, 0.16);
  --brand-text: #34d399;

  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.16);
  --red: #f87171;
  --red-soft: rgba(239, 68, 68, 0.16);
  --amber: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.16);

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 25px 60px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Global scrollbar styling: ultra-clean, minimal 6px rounded */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* Completely suppress scrollbars on sidebar and no-scrollbar elements (still scrollable via wheel/touch) */
.sidebar,
.sidebar-nav,
.no-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ==================== AUTH SCREEN ==================== */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top right, var(--brand-soft), transparent 45%), var(--bg-app);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-modal);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-brand .brand-ring {
  width: 32px;
  height: 32px;
  border-width: 6px;
}

.auth-brand .brand-word {
  font-size: 26px;
}

/* ==================== LAYOUT SHELL ==================== */
.layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  max-width: 85vw;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sidebar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.layout.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-w);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Identical Organizze Ring Logo */
.brand-ring {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 5px solid var(--brand);
  display: inline-block;
  flex-shrink: 0;
}

.brand-word {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

/* Little +0 pill from the original design screenshot */
.brand-badge-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

.layout.sidebar-collapsed .brand-word,
.layout.sidebar-collapsed .brand-badge-pill,
.layout.sidebar-collapsed .nav-label,
.layout.sidebar-collapsed .nav-badge,
.layout.sidebar-collapsed .sidebar-footer-details {
  display: none;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 14px 16px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sidebar-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Nav Item styling matching screenshot */
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 2px;
  border: none;
  background: transparent;
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 600;
}

.nav-item.active svg {
  stroke: var(--brand-text);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
}

.nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  font-size: 11.5px;
  font-weight: 600;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--radius-full);
  background: #f1f4f8;
  color: #718096;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.dark .nav-badge {
  background: #23314d;
  color: #94a3b8;
}

.nav-badge.badge-new {
  background: #eef2ff;
  color: #4f46e5;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0 7px;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 6px;
}

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

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

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html.dark .user-avatar {
  background: #2d3b55;
  color: #cbd5e1;
}

.user-meta {
  min-width: 0;
  flex: 1;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== MAIN WORKSPACE ==================== */
.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  width: calc(100% - var(--sidebar-w));
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.2s cubic-bezier(0.4, 0, 0.2, 1), width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout.sidebar-collapsed .main-area {
  margin-left: var(--sidebar-collapsed-w);
  width: calc(100% - var(--sidebar-collapsed-w));
}

/* TOPBAR */
.topbar {
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mobile-menu-btn {
  display: none;
}

.greeting {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.greeting strong {
  color: var(--text-primary);
  font-weight: 700;
}

.period-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.period-picker strong {
  color: var(--text-primary);
  min-width: 116px;
  text-align: center;
  font-weight: 600;
}

.period-nav-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: var(--bg-subtle);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.period-nav-btn:hover {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Dark mode switch */
.switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  user-select: none;
  font-weight: 500;
}

.switch-track {
  width: 42px;
  height: 23px;
  border-radius: var(--radius-full);
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s ease;
}

html.dark .switch-track {
  background: #334155;
}

.switch-track.on {
  background: var(--brand);
}

.switch-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-track.on .switch-thumb {
  transform: translateX(19px);
}

.content-wrap {
  padding: 4px 32px 42px;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9.5px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.btn-soft-green {
  background: var(--brand-soft);
  color: var(--brand-text);
  border: 1px solid transparent;
}

.btn-soft-green:hover {
  background: #d8f5e5;
  color: #007747;
}

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-hover);
}

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
}

.btn-danger:hover {
  background: #fee2e2;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
  border-radius: 10px;
}

/* ==================== CARDS & DASHBOARD ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/* Top Summary Banner Cards */
.summary-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.summary-card-left {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 24px;
}

.summary-card-right {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
}

.eye-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.eye-circle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.kpi-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.kpi-icon-pill {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon-pill.green {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.kpi-icon-pill.red {
  background: var(--red-soft);
  color: var(--red);
}

.kpi-value {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.v-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.mini-strip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-strip-card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.mini-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.conn-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* BANK ICONS / LOGOS */
.bank-chip {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
  letter-spacing: -0.02em;
}

.bank-chip-connected::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg-card);
}

/* DASHBOARD MAIN GRID */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.dash-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-title {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.accent-stat {
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  border-left: 3.5px solid var(--brand);
  margin-bottom: 20px;
}

.accent-stat.accent-red {
  border-left-color: var(--red);
}

.accent-stat-label {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.accent-stat-val {
  font-size: 21px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: -0.02em;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credit-card-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.credit-card-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-primary);
}

.cc-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Inner metric card for credit cards */
.cc-metrics-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-metric-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.cc-metric-val {
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 2px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.account-row:last-child {
  border-bottom: none;
}

.account-bal {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--blue);
}

.account-bal.negative {
  color: var(--red);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ==================== TABLES & LISTS ==================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 23px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
}

.page-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 3px 0 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.stat-card-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card-val {
  font-size: 21px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.02em;
}

.text-green { color: var(--brand-text); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-muted { color: var(--text-muted); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}

.input, .select, .textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s ease;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.filter-bar .input, .filter-bar .select {
  width: auto;
  min-width: 160px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--bg-subtle);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.pill-green { background: var(--brand-soft); color: var(--brand-text); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-gray { background: var(--bg-subtle); color: var(--text-secondary); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ==================== PROGRESS BARS ==================== */
.progress-track {
  width: 100%;
  height: 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--brand);
  transition: width 0.3s ease;
}

.progress-fill.warn { background: var(--amber); }
.progress-fill.over { background: var(--red); }

/* ==================== CHARTS ==================== */
.donut-layout {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.donut-legend {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bar-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================== AI ASSISTANT ==================== */
.ai-chat-box {
  display: flex;
  flex-direction: column;
  height: 560px;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 4px 16px;
}

.ai-msg {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: 18px;
  white-space: pre-line;
  font-size: 13.5px;
  line-height: 1.55;
}

.ai-msg.bot {
  align-self: flex-start;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.ai-msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ai-prompt-chip {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.ai-prompt-chip:hover {
  border-color: var(--brand);
  color: var(--brand-text);
  background: var(--brand-soft);
}

.ai-input-row {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ==================== MODALS & TOASTS ==================== */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.modal-root.open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-modal);
}

.modal-panel.modal-lg {
  max-width: 720px;
}

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

.modal-title {
  font-size: 18.5px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--bg-card);
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--shadow-float);
}

.toast.toast-success { background: var(--brand); color: #ffffff; }
.toast.toast-error { background: var(--red); color: #ffffff; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.action-group {
  display: inline-flex;
  gap: 6px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 45;
  transition: opacity 0.25s ease;
}

@media (max-width: 1140px) {
  .summary-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .summary-card-right {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .dash-grid, .cards-grid-3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .layout.mobile-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  }
  .layout.mobile-open .mobile-backdrop {
    display: block;
  }
  .main-area, .layout.sidebar-collapsed .main-area {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
  .topbar {
    height: auto;
    padding: 12px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .topbar-left {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .topbar-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .content-wrap {
    padding: 10px 16px 36px;
    width: 100%;
    box-sizing: border-box;
  }
  .summary-card-left {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
  }
  .v-divider {
    display: none;
  }
  .summary-card-right {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-grid, .cards-grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .modal-panel {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }
  .toast-root {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 14px;
  }
  .topbar-left {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .topbar-left > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .greeting {
    font-size: 14px;
  }
  .period-picker {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
  }
  .period-picker strong {
    min-width: auto;
    font-size: 12.5px;
  }
  .content-wrap {
    padding: 6px 12px 30px;
  }
  .card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .summary-strip {
    gap: 12px;
  }
  .summary-card-left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 14px;
  }
  .eye-circle {
    align-self: flex-start;
  }
  .kpi-value {
    font-size: 21px;
  }
  .stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 14px 16px;
  }
  .stat-card-val {
    font-size: 19px;
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .page-header .action-group {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .page-header .action-group .btn,
  .page-header > .btn {
    flex: 1;
    justify-content: center;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-bar .input, .filter-bar .select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .data-table {
    min-width: 580px;
  }
  .data-table th, .data-table td {
    padding: 10px 10px;
    font-size: 12px;
  }
  .cc-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cc-top .btn {
    width: 100%;
  }
  .cc-metrics-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cc-metrics-box > div:last-child {
    text-align: left !important;
  }
  .donut-layout {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .donut-legend {
    width: 100%;
  }
  .card-foot {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .card-foot .btn {
    width: 100%;
  }
  .ai-chat-box {
    height: 440px;
  }
  .ai-msg {
    max-width: 95%;
  }
  .auth-shell {
    padding: 16px;
  }
  .auth-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }
}

/* =========================================================
   NOVIDADES: AÇÕES RÁPIDAS, EXTRATO OFX/CSV, PREVISÃO & IMPRESSÃO
   ========================================================= */

/* Quick Actions in Header */
.quick-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-quick-expense {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fee2e2;
}
.btn-quick-expense:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}
.btn-quick-income {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #dcfce7;
}
.btn-quick-income:hover {
  background: #dcfce7;
  border-color: #86efac;
}
.btn-quick-transfer {
  background: #eff6ff;
  color: #2563eb;
  border-color: #dbeafe;
}
.btn-quick-transfer:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
.btn-quick-import {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}
.btn-quick-import:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

html.dark .btn-quick-expense {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
html.dark .btn-quick-income {
  background: rgba(16, 185, 129, 0.15);
  color: #86efac;
  border-color: rgba(16, 185, 129, 0.3);
}
html.dark .btn-quick-transfer {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}
html.dark .btn-quick-import {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

/* Floating Action Button (FAB) */
.fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}
.fab-main-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 186, 112, 0.4);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.15s ease;
}
.fab-main-btn:hover {
  background: var(--brand-hover);
  transform: scale(1.06);
}
.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}
.fab-wrap.open .fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.fab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-float);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fab-item:hover {
  transform: translateX(-4px);
  background: var(--bg-subtle);
}

/* Cash Flow Forecast Card */
.forecast-card {
  background: linear-gradient(135deg, rgba(0, 186, 112, 0.05) 0%, rgba(37, 99, 235, 0.04) 100%), var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.forecast-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.forecast-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.forecast-box.highlight {
  border-color: var(--brand);
  background: var(--brand-soft);
}
html.dark .forecast-box.highlight {
  background: rgba(0, 186, 112, 0.12);
}
.forecast-box-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.forecast-box-val {
  font-size: 17px;
  font-weight: 700;
}

/* Upcoming Bills List */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.upcoming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 12px;
  transition: background 0.15s ease;
}
.upcoming-item:hover {
  background: var(--bg-hover);
}
.upcoming-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.upcoming-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  line-height: 1.1;
}
.upcoming-date-day {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.upcoming-date-month {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.upcoming-details {
  min-width: 0;
  flex: 1;
}
.upcoming-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upcoming-sub {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.upcoming-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.upcoming-amt {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

/* Badges for due countdown */
.pill-due-today {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.pill-due-soon {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.pill-overdue {
  background: #991b1b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.pill-due-ok {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Statement Importer Modal & Dropzone */
.dropzone-box {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-subtle);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  box-shadow: var(--shadow-card);
}
.dropzone-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.dropzone-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.import-preview-table {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 16px;
}
.import-preview-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.import-preview-table th {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 2;
  box-shadow: 0 1px 0 var(--border);
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
}
.import-preview-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.import-preview-table tr.is-duplicate {
  opacity: 0.6;
  background: rgba(245, 158, 11, 0.05);
}

/* Keyboard Shortcut Tag */
.kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.2;
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-xs);
  font-size: 13px;
}

/* Print Media Styles */
@media print {
  @page {
    margin: 15mm;
    size: auto;
  }
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  .sidebar,
  .top-bar,
  .fab-wrap,
  .drawer-backdrop,
  .btn,
  .action-group,
  .filter-bar,
  .modal-root,
  .toast-root,
  .card-foot,
  .icon-btn {
    display: none !important;
  }
  .main-area {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 15px !important;
    padding: 12px !important;
  }
  .data-table {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: collapse !important;
  }
  .data-table th, .data-table td {
    padding: 6px 8px !important;
    border-bottom: 1px solid #eee !important;
    color: #000000 !important;
  }
  .print-header {
    display: block !important;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00ba70;
  }
}

@media (max-width: 960px) {
  .forecast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-actions-bar {
    display: none; /* Mobile uses bottom FAB for cleaner top-bar */
  }
}
@media (max-width: 640px) {
  .forecast-grid {
    grid-template-columns: 1fr;
  }
  .shortcut-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   API & INTEGRAÇÕES STYLES
   ========================================================= */

.api-hero {
  background: linear-gradient(135deg, rgba(0, 186, 112, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%), var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.api-hero-left h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.api-hero-left p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.api-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 186, 112, 0.2);
  white-space: nowrap;
}
.api-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 186, 112, 0.3);
}

.api-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.api-tab-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}
.api-tab-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}
.api-tab-btn.active {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.api-code-wrap {
  position: relative;
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  border: 1px solid #1e293b;
}
.api-code-wrap pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #e2e8f0;
}
.api-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.api-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.api-key-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  gap: 12px;
}
.api-key-code {
  font-family: ui-monospace, monospace;
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.api-tester-response {
  margin-top: 14px;
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 14px;
  max-height: 360px;
  overflow-y: auto;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 960px) {
  .api-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
