* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg-0: #030712;
  --bg-1: #07111f;
  --bg-2: #0d1b2f;
  --surface: rgba(15, 23, 42, 0.74);
  --surface-strong: rgba(15, 23, 42, 0.92);
  --surface-soft: rgba(30, 41, 59, 0.58);
  --text: #f8fafc;
  --muted: #9caec5;
  --muted-2: #64748b;
  --line: rgba(148, 163, 184, 0.20);
  --line-strong: rgba(125, 211, 252, 0.36);
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --green: #22c55e;
  --emerald: #10b981;
  --red: #fb7185;
  --red-strong: #ef4444;
  --yellow: #fbbf24;
  --purple: #a78bfa;
  --pink: #f472b6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 45px rgba(0, 0, 0, 0.26);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.20), transparent 34rem),
    radial-gradient(circle at 82% 5%, rgba(167, 139, 250, 0.18), transparent 36rem),
    radial-gradient(circle at 50% 105%, rgba(34, 197, 94, 0.12), transparent 42rem),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 42%, var(--bg-2));
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  width: 32rem;
  height: 32rem;
  right: -12rem;
  top: 18rem;
  z-index: -1;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  filter: blur(28px);
}

button,
input,
select {
  font: inherit;
}

button,
label.btn {
  -webkit-tap-highlight-color: transparent;
}

.notice {
  padding: 14px;
  background: #fef3c7;
  color: #713f12;
  text-align: center;
  font-weight: 900;
}

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 15%, rgba(34, 211, 238, 0.25), transparent 26rem),
    radial-gradient(circle at 82% 0%, rgba(167, 139, 250, 0.20), transparent 28rem),
    linear-gradient(135deg, #020617, #0f172a);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  position: relative;
  width: min(590px, 100%);
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 34px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.74)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 16rem);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.loader-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(167, 139, 250, 0.08), rgba(34, 197, 94, 0.28));
  opacity: 0.55;
}

.loader-logo {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  margin-bottom: 18px;
  color: #02111f;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 29px;
  font-weight: 1000;
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.20);
}

.loader-kicker {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.loader-card h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 6vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.loader-subtitle {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.55;
}

.loader-progress {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
  margin-bottom: 13px;
}

.loader-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--purple));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.52);
  transition: width 0.12s ease;
}

.loader-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.page-shell {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.page-shell.ready {
  opacity: 1;
  transform: translateY(0);
}

.hero,
.app,
.footer {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  padding: 34px 0 18px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.35), transparent);
}

.hero-text h1 {
  margin: 8px 0 10px;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.hero-text p,
.panel-head p,
.footer p,
.metric-card small,
.summary-muted {
  color: var(--muted);
  line-height: 1.52;
}

.hero-text p {
  max-width: 790px;
  margin: 0;
  font-size: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.09);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.04);
}

.hero-actions,
.strip-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  min-height: 43px;
  border: 0;
  border-radius: 14px;
  padding: 10px 15px;
  font-weight: 1000;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #02111f;
  box-shadow: 0 15px 35px rgba(34, 211, 238, 0.16);
}

.btn.ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.10);
}

.btn.ghost:hover {
  border-color: var(--line-strong);
  background: rgba(56, 189, 248, 0.12);
}

.btn.danger {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #be123c);
  box-shadow: 0 15px 35px rgba(244, 63, 94, 0.14);
}

.control-strip {
  display: grid;
  grid-template-columns: 180px 240px 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin: 16px 0 14px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.60)),
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 22rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.strip-card {
  min-height: 66px;
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.48);
}

.strip-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.strip-card strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 10px;
  z-index: 10;
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
}

.tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 15px;
  padding: 12px 15px;
  font-weight: 1000;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.tab:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.tab.active {
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.38);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(167, 139, 250, 0.10));
  box-shadow: inset 0 0 22px rgba(56, 189, 248, 0.08);
}

.tab-panel {
  display: none;
  padding: 18px 0 0;
}

.tab-panel.active {
  display: block;
  animation: panelIn 0.28s ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel,
.metric-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.76)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 18rem);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card {
  position: relative;
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
  min-height: 145px;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  opacity: 0.9;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  filter: blur(2px);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 850;
}

.metric-card strong {
  display: block;
  font-size: clamp(22px, 2.35vw, 31px);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  letter-spacing: -0.04em;
}

.positive {
  color: #86efac;
}

.negative {
  color: #fda4af;
}

.warning {
  color: #fde68a;
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
}

.form-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 20px;
  overflow: hidden;
}

.panel-head {
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2,
h3 {
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}

.panel-head h3 {
  font-size: 21px;
}

.panel-head p {
  margin-bottom: 0;
}

.form {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 7px;
}

label {
  font-size: 13px;
  color: #dbeafe;
  font-weight: 950;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.58);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:hover,
select:hover {
  border-color: rgba(148, 163, 184, 0.34);
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
  background: rgba(2, 6, 23, 0.76);
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bank-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.54), rgba(15, 23, 42, 0.46)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--bank-color, var(--blue)) 28%, transparent), transparent 12rem);
  overflow: hidden;
}

.bank-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--bank-color, var(--blue));
  box-shadow: 0 0 24px color-mix(in srgb, var(--bank-color, var(--blue)) 60%, transparent);
}

.bank-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.bank-logo {
  width: 45px;
  height: 45px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: var(--bank-color, var(--blue));
  color: white;
  font-weight: 1000;
  letter-spacing: -0.05em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.bank-title {
  display: grid;
  gap: 2px;
}

.bank-title strong {
  font-size: 15px;
}

.bank-title small {
  color: var(--muted);
}

.bank-balance {
  font-size: 25px;
  font-weight: 1000;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}

.bank-meta {
  color: var(--muted);
  font-size: 12px;
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.48), rgba(15, 23, 42, 0.42));
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 7px;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-title {
  font-weight: 1000;
}

.summary-value {
  font-weight: 1000;
}

.progress {
  height: 9px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.34);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(2, 6, 23, 0.58);
  position: sticky;
  top: 0;
  z-index: 1;
}

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

tbody tr {
  transition: background 0.14s ease;
}

tbody tr:hover {
  background: rgba(56, 189, 248, 0.055);
}

.right {
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge.receita,
.badge.principal,
.badge.ativa {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.25);
}

.badge.despesa,
.badge.pausada {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.25);
}

.badge.transferencia,
.badge.outra,
.badge.extra,
.badge.bico,
.badge.aluguel,
.badge.investimento,
.badge.beneficio {
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.25);
}

.badge.confirmado {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.25);
}

.badge.pendente,
.badge.eventual {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.25);
}

.action-btn,
.small-btn {
  border-radius: 11px;
  padding: 7px 10px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.action-btn:hover,
.small-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.action-btn {
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.10);
  color: #fecdd3;
}

.small-btn {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.10);
  color: #bfdbfe;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 17px;
  color: var(--muted);
  text-align: center;
  background: rgba(2, 6, 23, 0.24);
}

.footer {
  padding: 8px 0 34px;
  text-align: center;
}

@media (max-width: 1180px) {
  .control-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strip-actions {
    justify-content: flex-start;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid.two,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero {
    display: grid;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .control-strip,
  .metrics,
  .bank-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .loader-footer {
    display: grid;
  }

  .hero,
  .app,
  .footer {
    width: min(100% - 20px, 1280px);
  }

  .panel,
  .metric-card,
  .control-strip,
  .loader-card {
    border-radius: 22px;
  }

  .hero-text h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .tabs {
    bottom: 10px;
    top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}



/* ===== Modo Rápido ===== */
.quick-entry-panel {
  position: relative;
  padding: 18px;
  margin: 0 0 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-xl, 28px);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(167, 139, 250, 0.08)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.66));
  box-shadow: var(--shadow, 0 24px 70px rgba(0, 0, 0, 0.38));
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.quick-entry-panel::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.13);
  filter: blur(10px);
}

.quick-entry-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.quick-entry-head h2 {
  margin: 6px 0 5px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.045em;
}

.quick-entry-head p {
  margin: 0;
  color: var(--muted, #9caec5);
  line-height: 1.5;
  max-width: 680px;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #02111f;
  background: linear-gradient(135deg, var(--cyan, #22d3ee), var(--green, #22c55e));
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.quick-chip {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--text, #f8fafc);
  background: rgba(2, 6, 23, 0.38);
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.quick-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.44);
  background: rgba(34, 211, 238, 0.10);
}

.quick-entry-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.quick-entry-form input {
  min-height: 54px;
  font-size: 16px;
  border-radius: 17px;
  background: rgba(2, 6, 23, 0.68);
}

.quick-entry-form .btn {
  min-height: 54px;
  border-radius: 17px;
  padding-inline: 20px;
}

.quick-helper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted, #9caec5);
  font-size: 13px;
  margin-bottom: 10px;
}

.quick-helper code {
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 999px;
  padding: 5px 8px;
  color: #bfdbfe;
  background: rgba(2, 6, 23, 0.40);
  font-family: Arial, Helvetica, sans-serif;
}

.quick-preview {
  border: 1px dashed rgba(125, 211, 252, 0.30);
  border-radius: 16px;
  padding: 12px;
  color: var(--muted, #9caec5);
  background: rgba(2, 6, 23, 0.30);
  font-size: 14px;
  line-height: 1.45;
}

.quick-preview strong {
  color: var(--text, #f8fafc);
}

.quick-preview.ok {
  border-style: solid;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.08);
}

.quick-preview.warn {
  border-style: solid;
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.08);
}

@media (max-width: 820px) {
  .quick-entry-head,
  .quick-entry-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .quick-examples {
    justify-content: flex-start;
  }

  .quick-entry-form .btn {
    width: 100%;
  }
}



/* ===== Edição e múltiplos lançamentos ===== */
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

.editing-note {
  border: 1px solid rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.08);
}

.action-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.edit-btn {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.10);
  color: #bfdbfe;
  border-radius: 10px;
  padding: 7px 10px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.edit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.quick-preview-list {
  display: grid;
  gap: 8px;
}

.quick-preview-item {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 9px;
  background: rgba(2, 6, 23, 0.22);
}

.quick-preview-item strong {
  color: var(--text, #f8fafc);
}

@media (max-width: 760px) {
  .form-actions {
    display: grid;
  }

  .form-actions .btn {
    width: 100%;
  }
}



/* ===== Modo Inteligente ===== */
.quick-entry-panel .quick-pill::after {
  content: " inteligente";
  margin-left: 4px;
}

.quick-preview .confidence {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.10);
  font-size: 12px;
  font-weight: 900;
}

.quick-preview .smart-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted, #9caec5);
}



/* ===== Virada mensal ===== */
.monthly-status {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-xl, 28px);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.11), rgba(56, 189, 248, 0.08)),
    rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow-soft, 0 16px 45px rgba(0, 0, 0, 0.26));
}

.monthly-status strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 17px;
}

.monthly-status p {
  margin: 0;
  color: var(--muted, #9caec5);
  line-height: 1.45;
}

.monthly-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, #86efac, #22d3ee);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.monthly-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .monthly-status {
    display: grid;
  }

  .monthly-actions .btn {
    width: 100%;
  }
}
