@font-face { font-family: Poppins; src: url(fonts/Poppins-Regular.ttf); font-weight: 400; }
@font-face { font-family: Poppins; src: url(fonts/Poppins-Medium.ttf); font-weight: 500; }
@font-face { font-family: Poppins; src: url(fonts/Poppins-SemiBold.ttf); font-weight: 600; }
@font-face { font-family: Poppins; src: url(fonts/Poppins-Bold.ttf); font-weight: 700; }
@font-face { font-family: Poppins; src: url(fonts/Poppins-ExtraBold.ttf); font-weight: 800; }

:root {
  color-scheme: dark;
  --bg: #0A0F1E;
  --panel: #0F1529;
  --card: #161D38;
  --card-2: #1C2547;
  --card-3: #232D55;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .11);
  --text: #F2F5FF;
  --muted: #8790B3;
  --muted-2: #5D6690;
  --blue: #4C86FF;
  --blue-2: #7DB4FF;
  --cyan: #8BD7FF;
  --teal: #6FD0C8;
  --green: #2BD47D;
  --red: #FF4D5E;
  --amber: #FFB547;
  --grad: linear-gradient(135deg, #3A6CF4 0%, #6CA8FF 100%);
  --grad-soft: linear-gradient(135deg, rgba(58,108,244,.22), rgba(108,168,255,.06));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Poppins, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262F57; border-radius: 10px; border: 2px solid var(--panel); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- Splash ---------------- */
#splash {
  position: fixed; inset: 0; z-index: 100; background: #0B1022; overflow: hidden;
  display: flex; align-items: flex-end; transition: opacity .5s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }
#splash svg.arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
#splash .arc { transform-origin: center; animation: spin-in 1.4s cubic-bezier(.2,.8,.2,1) both; }
#splash .arc.b { animation-delay: .15s; }
@keyframes spin-in { from { opacity: 0; transform: rotate(-40deg) scale(.9); } to { opacity: 1; transform: none; } }
#splash .content { position: relative; padding: 0 0 9vh 8vw; max-width: 640px; animation: up .9s .3s both; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
#splash h1 { font-size: 52px; line-height: 1.12; font-weight: 700; letter-spacing: -.5px; }
#splash p { color: var(--muted); margin: 18px 0 34px; font-size: 15px; max-width: 440px; }
#splash .row { display: flex; align-items: center; gap: 28px; }
#splash .dots { display: flex; gap: 6px; }
#splash .dots i { width: 22px; height: 5px; border-radius: 4px; background: #2A3358; }
#splash .dots i.on { background: #9CA6D6; width: 30px; }
#splash input {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 16px; width: 280px; outline: none; font-size: 15px;
}
#splash input:focus { border-color: var(--blue); }

/* ---------------- Layout ---------------- */
.app { display: flex; height: 100vh; }
.sidebar {
  width: 248px; flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 24px 16px; transition: width .25s ease;
}
.app.collapsed .sidebar { width: 84px; }
.app.collapsed .sidebar .label, .app.collapsed .brand .txt, .app.collapsed .side-foot .txt { display: none; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.brand .txt b { display: block; font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.brand .txt span { font-size: 11px; color: var(--muted); letter-spacing: 2.5px; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav button {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px;
  color: var(--muted); font-weight: 500; text-align: left; transition: .2s; position: relative;
}
.nav button svg { width: 22px; height: 22px; flex-shrink: 0; }
.nav button:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav button.active { color: var(--text); background: var(--grad-soft); }
.nav button.active::before {
  content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--grad);
}
.nav button.active svg { color: var(--blue-2); }
.nav .badge-dot {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center;
}
.app.collapsed .nav .badge-dot { position: absolute; top: 4px; right: 6px; margin: 0; min-width: 16px; height: 16px; font-size: 10px; }
.side-foot { padding: 14px; border-radius: 16px; background: var(--card); display: flex; align-items: center; gap: 10px; }
.side-foot svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.side-foot .txt { font-size: 11.5px; color: var(--muted); line-height: 1.35; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 18px; padding: 22px 34px 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--text);
  transition: .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.05); }
.icon-btn svg { width: 24px; height: 24px; }
.topbar h2 { font-size: 15px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.topbar .spacer { flex: 1; }
.month-pick {
  display: flex; align-items: center; gap: 4px; background: var(--card); border-radius: 14px; padding: 4px;
  border: 1px solid var(--line);
}
.month-pick button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.month-pick button:hover { background: var(--card-3); color: var(--text); }
.month-pick button svg { width: 18px; height: 18px; }
.month-pick span { min-width: 150px; text-align: center; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #A8D2FF, #3D75F2 70%);
  display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(76,134,255,.15), 0 8px 20px rgba(61,117,242,.4); flex-shrink: 0;
}
.avatar svg { width: 26px; height: 26px; color: #fff; }

.content { flex: 1; overflow: auto; padding: 12px 34px 40px; }
.page { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- Componentes ---------------- */
.grid { display: grid; gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line);
  position: relative; min-width: 0;
}
.card.glass { background: linear-gradient(180deg, #1A2246, #141B36); }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-h h3 { font-size: 15px; font-weight: 600; }
.card-h .sub { color: var(--muted); font-size: 12px; }
.card-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.kicker { font-size: 11.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #C8CEE8; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.warn { color: var(--amber); }
.money-xl { font-size: 54px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.money-xl sup { font-size: 22px; font-weight: 600; vertical-align: top; position: relative; top: 6px; margin-right: 6px; }
.money-xl .cents { font-size: 26px; color: #C9D2F2; font-weight: 600; }
.money-lg { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.money-lg sup { font-size: 12px; margin-right: 3px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 600;
  font-size: 13px; transition: .2s; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(58,108,244,.35); }
.btn.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--card-3); }
.btn.danger { background: rgba(255,77,94,.12); color: var(--red); }
.btn.danger:hover { background: rgba(255,77,94,.2); }
.btn.success { background: rgba(43,212,125,.14); color: var(--green); }
.btn.success:hover { background: rgba(43,212,125,.24); }
.btn.sm { padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.btn.lg { padding: 13px 26px; font-size: 15px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.toolbar .spacer { flex: 1; }

.seg { display: inline-flex; background: #12182F; border-radius: 10px; padding: 3px; border: 1px solid var(--line); }
.seg button { padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.seg button.on { background: var(--card-3); color: var(--text); box-shadow: inset 0 0 0 1px rgba(125,180,255,.45); }
.pill-btns { display: flex; gap: 8px; }
.pill-btns button { padding: 7px 14px; border-radius: 9px; background: var(--card-3); font-size: 12px; font-weight: 500; color: #D6DCF5; }
.pill-btns button.on { background: var(--grad); color: #fff; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 11.5px;
  font-weight: 500; background: rgba(255,255,255,.06); color: #C9D0EC; white-space: nowrap;
}
.tag.green { background: rgba(43,212,125,.13); color: var(--green); }
.tag.red { background: rgba(255,77,94,.13); color: var(--red); }
.tag.amber { background: rgba(255,181,71,.13); color: var(--amber); }
.tag.blue { background: rgba(76,134,255,.16); color: var(--blue-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.input, select.input, textarea.input {
  width: 100%; background: #10162D; border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 13px;
  outline: none; transition: .2s; font-size: 13.5px;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76,134,255,.15); }
select.input option { background: #161D38; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--muted); }
.search .input { padding-left: 38px; width: 230px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters select.input { width: auto; min-width: 150px; }

/* Tabelas / listas */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--muted-2); letter-spacing: 1.2px; text-transform: uppercase;
  padding: 0 14px 12px; border-bottom: 1px solid var(--line);
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.025); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.table .act { text-align: right; white-space: nowrap; width: 1%; }
.row-actions { display: inline-flex; gap: 4px; opacity: .5; transition: .2s; }
tr:hover .row-actions, .list-item:hover .row-actions { opacity: 1; }
.mini-btn { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--muted); }
.mini-btn:hover { background: var(--card-3); color: var(--text); }
.mini-btn.del:hover { color: var(--red); background: rgba(255,77,94,.12); }
.mini-btn svg { width: 16px; height: 16px; }
.desc-cell { display: flex; align-items: center; gap: 12px; }
.ico-circle { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--card-3); }
.ico-circle svg { width: 18px; height: 18px; }
.ico-circle.in { background: rgba(43,212,125,.12); color: var(--green); }
.ico-circle.out { background: rgba(255,77,94,.12); color: var(--red); }
.ico-circle.tr { background: rgba(76,134,255,.14); color: var(--blue-2); }
.desc-cell b { display: block; font-weight: 500; font-size: 13.5px; }
.desc-cell small { color: var(--muted); font-size: 11.5px; }

.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card-2);
  border: 1px solid var(--line); transition: .2s;
}
.list-item:hover { background: var(--card-3); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .grow small { color: var(--muted); font-size: 11.5px; }
.list-item .val { font-weight: 700; font-size: 16px; white-space: nowrap; }
.list-item .val sup { font-size: 10px; margin-right: 2px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: var(--muted-2); margin-bottom: 10px; }
.empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }

.progress { height: 8px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.progress.green > i { background: linear-gradient(90deg, #1FB86A, #4BE39A); }
.progress.amber > i { background: linear-gradient(90deg, #F09A1A, #FFC56B); }
.progress.red > i { background: linear-gradient(90deg, #E8384B, #FF7381); }

/* KPIs */
.kpi { padding: 18px 20px; }
.kpi .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.kpi .top .chg { margin-left: auto; font-size: 12px; font-weight: 600; }
.kpi .bottom { display: flex; align-items: center; gap: 10px; }
.kpi .tri { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; }
.kpi .tri.up { border-bottom: 13px solid var(--green); }
.kpi .tri.down { border-top: 13px solid var(--red); }

/* Dashboard */
.dash { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }
.hero { padding: 28px 28px 0; overflow: hidden; }
.hero h1 { font-size: 26px; font-weight: 700; }
.hero .greet-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.hero .bal-row { display: flex; align-items: flex-end; justify-content: space-between; margin: 26px 0 26px; gap: 20px; }
.hero .delta { text-align: right; }
.hero .delta b { display: block; font-size: 13px; margin-bottom: 8px; }
.hero .delta i { display: block; width: 64px; height: 9px; border-radius: 6px; background: var(--grad); margin-left: auto; box-shadow: 0 4px 14px rgba(76,134,255,.5); }
.hero .delta i.neg { background: linear-gradient(90deg,#E8384B,#FF7381); box-shadow: 0 4px 14px rgba(255,77,94,.4); }
.chart-wrap { margin: 0 -28px; padding: 22px 28px 24px; background: linear-gradient(180deg, #1D2650, #18204A); border-radius: 26px 26px 0 0; }
.chart-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.chart { width: 100%; height: 270px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Ring */
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring-wrap .center { position: absolute; text-align: center; }
.ring-wrap .center b { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.ring-wrap .center b sup { font-size: 22px; }
.ring-wrap .center span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.3; }

/* Cartões */
.cc-row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 14px; }
.cc {
  width: 300px; height: 180px; flex-shrink: 0; border-radius: 20px; padding: 20px 22px; position: relative; overflow: hidden;
  cursor: pointer; transition: .25s; border: 2px solid transparent; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.cc:hover { transform: translateY(-3px); }
.cc.sel { border-color: rgba(255,255,255,.6); }
.cc::before, .cc::after { content: ""; position: absolute; border-radius: 50%; border: 26px solid rgba(255,255,255,.09); }
.cc::before { width: 220px; height: 220px; right: -90px; top: -110px; }
.cc::after { width: 160px; height: 160px; right: 30px; bottom: -120px; border-color: rgba(255,255,255,.06); }
.cc .cc-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.cc .chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #F7D98B, #C79A3A); opacity: .9; }
.cc .brand-n { font-weight: 800; font-style: italic; font-size: 15px; letter-spacing: .5px; }
.cc .cc-name { margin-top: auto; font-weight: 600; font-size: 16px; position: relative; z-index: 1; }
.cc .cc-lim { font-size: 11.5px; opacity: .85; position: relative; z-index: 1; margin-top: 2px; }
.cc .progress { margin-top: 10px; background: rgba(255,255,255,.2); height: 6px; position: relative; z-index: 1; }
.cc .progress > i { background: #fff; }
.cc.add { background: transparent; border: 2px dashed var(--line-2); box-shadow: none; align-items: center; justify-content: center; color: var(--muted); gap: 8px; }
.cc.add::before, .cc.add::after { display: none; }
.cc.add:hover { color: var(--text); border-color: var(--blue); }
.cc.add svg { width: 30px; height: 30px; }
.inv-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.inv-head .box { background: var(--card-2); border-radius: 14px; padding: 14px 16px; }
.inv-head .box small { color: var(--muted); font-size: 11.5px; display: block; margin-bottom: 4px; }
.inv-head .box b { font-size: 18px; font-weight: 700; }

/* Contas */
.acc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }
.acc {
  background: var(--card); border-radius: 18px; padding: 18px; border: 1px solid var(--line); cursor: pointer; transition: .2s;
  position: relative; overflow: hidden;
}
.acc:hover { background: var(--card-2); }
.acc.sel { background: var(--grad); border-color: transparent; box-shadow: 0 12px 28px rgba(58,108,244,.35); }
.acc.sel .muted { color: rgba(255,255,255,.8); }
.acc .acc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.acc .acc-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.acc .acc-ico svg { width: 18px; height: 18px; }
.acc .acc-top b { font-weight: 600; font-size: 13.5px; display: block; }
.acc .acc-top small { font-size: 11px; }
.acc .row-actions { position: absolute; top: 12px; right: 10px; opacity: 0; }
.acc:hover .row-actions { opacity: 1; }
.acc .money-lg { font-size: 21px; }

/* Investimentos */
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.donut-legend div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.donut-legend div span:nth-child(2) { flex: 1; color: #CBD2EE; }
.donut-legend div b { font-weight: 600; }

/* Orçamento */
.summ-title { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 6px; margin: 4px 0 14px; }
.budget-item { display: grid; grid-template-columns: 1.3fr 110px 1fr 130px auto; align-items: center; gap: 18px; padding: 14px 18px; }
.budget-item .val { text-align: right; }
.budget-item small { display: block; font-size: 11.5px; }
.list-item .grow small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; background: rgba(4,7,18,.7); backdrop-filter: blur(6px); z-index: 50; display: grid; place-items: center;
  animation: fadein .2s ease;
}
@keyframes fadein { from { opacity: 0; } }
.modal {
  width: min(560px, 94vw); max-height: 90vh; overflow: auto; background: linear-gradient(180deg, #1A2246, #141B36);
  border: 1px solid var(--line-2); border-radius: 22px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: pop .25s cubic-bezier(.2,.9,.3,1.2);
}
.modal.wide { width: min(820px, 94vw); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.modal .msub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form .f { display: flex; flex-direction: column; gap: 6px; }
.form .f.full { grid-column: 1 / -1; }
.form label { font-size: 12px; font-weight: 500; color: #AEB6D6; }
.form .chk { flex-direction: row; align-items: center; gap: 10px; }
.form .chk input { width: 18px; height: 18px; accent-color: var(--blue); }
.form .hint { font-size: 11px; color: var(--muted-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.err { color: var(--red); font-size: 12px; margin-top: 10px; min-height: 0; }

/* Toast */
#toasts { position: fixed; bottom: 26px; right: 26px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #1E2750; border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 13px; animation: slide .3s ease; min-width: 240px;
}
.toast svg { width: 18px; height: 18px; color: var(--green); }
.toast.error svg { color: var(--red); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }

.two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.mt { margin-top: 22px; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }

@media (max-width: 1250px) {
  .dash { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget-item { grid-template-columns: 1.3fr 90px 1fr 110px auto; }
}

/* Login (versão web) */
.auth-box { display: flex; flex-direction: column; gap: 12px; width: 380px; max-width: 100%; padding: 22px;
  background: rgba(13,18,38,.72); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); }
#splash .auth-box .input { width: 100%; padding: 13px 16px; font-size: 14.5px; background: rgba(255,255,255,.05); }
.auth-box .btn { justify-content: center; }
.auth-msg { font-size: 12.5px; min-height: 18px; }
.auth-msg.bad { color: var(--red); }
.auth-msg.ok { color: var(--green); }
.auth-links { display: flex; justify-content: space-between; font-size: 13px; }
.auth-links a { color: var(--blue-2); cursor: pointer; }
.auth-links a:hover { text-decoration: underline; }

/* Telas menores (notebooks pequenos, tablets) */
@media (max-width: 900px) {
  .sidebar { width: 84px; }
  .sidebar .label, .brand .txt, .side-foot .txt { display: none; }
  .topbar { padding: 16px 18px 8px; gap: 10px; }
  .content { padding: 10px 18px 30px; }
  .two-col, .three-col, .four-col, .flows, .inv-head { grid-template-columns: 1fr 1fr; }
  .grid[style*="grid-template-columns:minmax"] { grid-template-columns: 1fr !important; }
  .budget-item { grid-template-columns: 1fr auto; }
  .budget-item svg, .budget-item .progress { display: none; }
  .month-pick span { min-width: 110px; }
  .money-xl { font-size: 40px; }
  #splash h1 { font-size: 36px; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
}
