/* ===================================================================
   Fintec Control — Tema (limão claro / limão escuro)
   Os valores são triplets RGB para o Tailwind aplicar opacidade
   (ex.: bg-surface/70). Trocar de tema = só alternar a classe .dark
   no <html>; todas as cores semânticas seguem estas variáveis.
   =================================================================== */
:root{
  --c-bg:        233 233 234;  /* fundo da página  #e9e9ea */
  --c-surface:   255 255 255;  /* cartões          #ffffff */
  --c-surface2:  243 243 245;  /* superfícies sutis#f3f3f5 */
  --c-text:       16  17  19;  /* texto principal  #101113 */
  --c-muted:     138 140 146;  /* texto secundário #8a8c92 */
  --c-line:      231 231 234;  /* bordas           #e7e7ea */
  --c-ink:        18  19  22;  /* preto forte      #121316 */
  --c-onink:     255 255 255;  /* texto sobre ink  #ffffff */
  --c-brand:     196 245  60;  /* verde-limão      #c4f53c */
  --c-onbrand:    16  17  19;  /* texto sobre limão#101113 */
  --c-btn:        18  19  22;  /* botão primário: preto no claro */
  --c-onbtn:     255 255 255;
}
.dark{
  --c-bg:         14  15  18;  /* #0e0f12 */
  --c-surface:    23  25  30;  /* #17191e */
  --c-surface2:   30  33  39;  /* #1e2127 */
  --c-text:      237 239 243;  /* #edeff3 */
  --c-muted:     154 157 166;  /* #9a9da6 */
  --c-line:       39  43  51;  /* #272b33 */
  --c-ink:         0   0   0;  /* #000000 */
  --c-onink:     255 255 255;
  --c-brand:     196 245  60;
  --c-onbrand:    16  17  19;
  --c-btn:       196 245  60;  /* botão primário: limão no escuro */
  --c-onbtn:      16  17  19;
}

:root{ color-scheme: light; }
.dark{ color-scheme: dark; }

html{ background:rgb(var(--c-bg)); }
body{ font-family:'Inter', sans-serif; }

/* Hero (cabeçalho do saldo): preto com um brilho limão no canto.
   No escuro vira uma superfície elevada com o mesmo brilho. */
.fintec-hero{
  background:
    radial-gradient(120% 120% at 90% -10%, rgba(196,245,60,.18), transparent 45%),
    #121316;
}
.dark .fintec-hero{
  background:
    radial-gradient(120% 120% at 90% -10%, rgba(196,245,60,.14), transparent 45%),
    #17191e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

/* Transição suave ao alternar tema (sem animar hover/foco). */
body, .fintec-hero,
.bg-bg, .bg-surface, .bg-surface2, .bg-ink{
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

/* ---- Novo layout do dashboard (estilo Pesse) ---- */
.no-scrollbar{ scrollbar-width:none; }
.no-scrollbar::-webkit-scrollbar{ display:none; }
.fc-cards{ display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding:0 4px; }
.fc-cards > *{ scroll-snap-align:center; flex:0 0 86%; }
.fc-card{ position:relative; overflow:hidden; }
.fc-card .fc-wm{ position:absolute; right:-10px; bottom:-22px; font-size:80px; font-weight:900;
  opacity:.12; letter-spacing:-.05em; pointer-events:none; line-height:1; }
.fc-bar{ height:9px; border-radius:999px; background:rgb(var(--c-surface2)); overflow:hidden; }
.fc-bar > i{ display:block; height:100%; border-radius:999px; }
.fintec-hero-toggle{ }

/* Migrado do <style> inline das views */
.glass{ background:rgba(255,255,255,.85); backdrop-filter:blur(12px); }
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
@keyframes slideUp{ from{transform:translateY(16px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-open{ display:flex; }
.modal-overlay{ animation:fadeIn .2s ease-out; }
.modal-content{ animation:slideUp .25s ease-out; }

/* ===================================================================
   Dashboard responsivo
   Mobile continua compacto; a partir de 1024px vira um painel desktop.
   =================================================================== */
.dashboard-body{
  min-width:320px;
}
.fc-app-shell{
  min-height:100vh;
}
.fc-sidebar{
  display:none;
}
.fc-main{
  min-width:0;
}
.fc-content{
  width:100%;
  max-width:460px;
  margin:0 auto;
  padding:20px 16px 112px;
}
.fc-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:44px;
  margin-bottom:20px;
}
.fc-mobile-brand{
  font-size:24px;
  font-weight:900;
  letter-spacing:-.045em;
}
.fc-page-kicker,
.fc-page-heading{
  display:none;
}
.fc-icon-button{
  display:inline-flex;
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  border:1px solid rgb(var(--c-line));
  border-radius:999px;
  background:rgb(var(--c-surface));
  color:rgb(var(--c-text));
  transition:background-color .2s ease,border-color .2s ease,transform .2s ease;
}
.fc-icon-button:hover{
  background:rgb(var(--c-surface2));
  transform:translateY(-1px);
}
.fc-profile-photo{
  position:relative;
  display:inline-flex;
  width:40px;
  height:40px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:2px solid rgb(var(--c-surface));
  border-radius:999px;
  background:rgb(var(--c-brand));
  box-shadow:0 0 0 1px rgb(var(--c-line));
  color:rgb(var(--c-onbrand));
  font-size:12px;
  font-weight:800;
}
.fc-topbar-action{
  display:none;
}
.fc-balance-card{
  position:relative;
  overflow:hidden;
  min-height:258px;
  padding:24px;
  border-radius:28px;
  box-shadow:0 20px 50px rgba(15,23,42,.13);
}
.fc-balance-card::after{
  position:absolute;
  right:-70px;
  bottom:-90px;
  width:210px;
  height:210px;
  border:36px solid rgba(196,245,60,.10);
  border-radius:999px;
  content:"";
  pointer-events:none;
}
.fc-balance-heading{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.fc-balance-eyebrow{
  color:rgba(255,255,255,.62);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.fc-month-arrow{
  display:grid;
  width:30px;
  height:30px;
  place-items:center;
  border-radius:9px;
  color:rgba(255,255,255,.72);
}
.fc-month-arrow:hover{
  background:rgba(255,255,255,.09);
  color:#fff;
}
.fc-month-label{
  min-width:72px;
  color:#fff;
  font-size:12px;
  font-weight:700;
  text-align:center;
}
.fc-balance-value{
  position:relative;
  z-index:1;
  margin-top:24px;
  color:#fff;
  font-size:40px;
  font-weight:900;
  letter-spacing:-.055em;
  line-height:1;
}
.fc-balance-caption{
  position:relative;
  z-index:1;
  max-width:330px;
  margin-top:10px;
  color:rgba(255,255,255,.56);
  font-size:12px;
  line-height:1.6;
}
.fc-balance-controls{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:24px;
}
.fc-balance-control,
.fc-opening-balance{
  display:inline-flex;
  min-height:36px;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:11px;
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.72);
  font-size:11px;
  font-weight:700;
  backdrop-filter:blur(8px);
}
.fc-balance-control:hover{
  border-color:rgba(196,245,60,.35);
  color:#fff;
}
.fc-balance-control.bg-brand{
  border-color:rgb(var(--c-brand));
  background:rgb(var(--c-brand));
  color:rgb(var(--c-onbrand));
}
.fc-quick-actions{
  display:flex;
  gap:12px;
}
.fc-quick-button{
  display:flex;
  min-height:52px;
  flex:1;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid rgb(var(--c-line));
  border-radius:16px;
  background:rgb(var(--c-surface));
  color:rgb(var(--c-text));
  font-size:13px;
  font-weight:800;
  box-shadow:0 5px 18px rgba(15,23,42,.04);
}
.fc-quick-button:hover{
  background:rgb(var(--c-surface2));
}
.fc-quick-income{
  border-color:rgb(var(--c-brand));
  background:rgb(var(--c-brand));
  color:rgb(var(--c-onbrand));
}
.fc-quick-income:hover{
  filter:brightness(.96);
  background:rgb(var(--c-brand));
}
.fc-plan-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border:1px solid rgb(var(--c-line));
  border-radius:22px;
  background:rgb(var(--c-surface));
  box-shadow:0 7px 24px rgba(15,23,42,.035);
}
.fc-plan-icon{
  display:grid;
  width:42px;
  height:42px;
  flex:0 0 auto;
  place-items:center;
  border-radius:14px;
  background:rgba(196,245,60,.2);
  color:#6c8b0c;
}
.dark .fc-plan-icon{ color:rgb(var(--c-brand)); }
.fc-plan-label{
  display:block;
  margin-bottom:3px;
  color:rgb(var(--c-muted));
  font-size:9px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.fc-plan-status{
  display:none;
  margin-left:auto;
  align-items:center;
  gap:5px;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(16,185,129,.10);
  color:#059669;
  font-size:10px;
  font-weight:800;
}
.fc-plan-status span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#10b981;
}
.fc-overview-cards,
.fc-overview-summary,
.fc-history-card,
.fc-tools-card,
.fc-panel,
.fc-type-header{
  border:1px solid rgb(var(--c-line));
  border-radius:22px;
  background:rgb(var(--c-surface));
  box-shadow:0 8px 28px rgba(15,23,42,.035);
}
.fc-overview-cards,
.fc-overview-summary,
.fc-history-card,
.fc-tools-card,
.fc-panel{
  padding:18px;
}
.fc-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.fc-section-heading h3{
  font-size:14px;
  font-weight:800;
}
.fc-section-heading > span{
  color:rgb(var(--c-muted));
  font-size:11px;
  font-weight:700;
}
.fc-section-kicker{
  display:block;
  margin-bottom:3px;
  color:rgb(var(--c-muted));
  font-size:9px;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.fc-section-link{
  display:inline-flex;
  align-items:center;
  gap:4px;
  border-radius:9px;
  color:rgb(var(--c-muted));
  font-size:11px;
  font-weight:700;
}
.fc-section-link:hover{
  color:rgb(var(--c-text));
}
.fc-empty-state{
  margin-top:10px;
  padding:24px;
  border:1px dashed rgb(var(--c-line));
  border-radius:14px;
  color:rgb(var(--c-muted));
  font-size:12px;
  text-align:center;
}
.fc-stat-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.fc-stat-card{
  position:relative;
  min-width:0;
  padding:15px;
  border:1px solid rgb(var(--c-line));
  border-radius:16px;
  background:rgb(var(--c-surface2));
}
.fc-stat-card p{
  margin-top:18px;
  color:rgb(var(--c-muted));
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.fc-stat-card strong{
  display:block;
  overflow:hidden;
  margin-top:4px;
  font-size:15px;
  font-weight:850;
  letter-spacing:-.025em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fc-stat-icon{
  display:grid;
  width:30px;
  height:30px;
  place-items:center;
  border-radius:10px;
}
.fc-stat-income .fc-stat-icon{ background:rgba(16,185,129,.12); color:#059669; }
.fc-stat-expense .fc-stat-icon{ background:rgba(244,63,94,.12); color:#e11d48; }
.fc-stat-investment .fc-stat-icon{ background:rgba(99,102,241,.12); color:#6366f1; }
.fc-stat-card-spend .fc-stat-icon{ background:rgba(14,165,233,.12); color:#0284c7; }
.fc-main-extra{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  min-width:0;
  gap:16px;
  margin-top:20px;
}
.fc-history-card,
.fc-tools-card{
  min-width:0;
}
.fc-count-badge{
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:999px;
  background:rgb(var(--c-surface2));
  color:rgb(var(--c-muted));
  font-size:10px;
  font-weight:800;
}
.fc-tools-card{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.fc-tool-button{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px;
  border:1px solid rgb(var(--c-line));
  border-radius:13px;
  color:rgb(var(--c-text));
  text-align:left;
}
.fc-tool-button:hover{
  background:rgb(var(--c-surface2));
}
.fc-tool-icon{
  display:grid;
  width:34px;
  height:34px;
  flex:0 0 auto;
  place-items:center;
  border-radius:10px;
  background:rgb(var(--c-surface2));
}
.fc-tool-whatsapp{
  background:rgba(16,185,129,.12);
  color:#059669;
}
.fc-tool-button strong,
.fc-tool-button small{
  display:block;
}
.fc-tool-button strong{ font-size:11px; }
.fc-tool-button small{ margin-top:1px; color:rgb(var(--c-muted)); font-size:9px; }
.fc-mobile-logout{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-top:4px;
  padding:9px;
  border-radius:11px;
  color:rgb(var(--c-muted));
  font-size:11px;
  font-weight:700;
}
.fc-mobile-logout:hover{ background:rgb(var(--c-surface2)); color:rgb(var(--c-text)); }
.fc-detail-section,
.fc-type-section,
.fc-card-section,
.fc-projection-section{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.fc-detail-section.hidden,
.fc-type-section.hidden,
.fc-card-section.hidden,
.fc-projection-section.hidden,
.fc-main-extra.hidden{
  display:none;
}
.fc-mobile-section-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.fc-mobile-section-title h2{
  font-size:17px;
  font-weight:850;
}
.fc-back-button{
  display:grid;
  width:38px;
  height:38px;
  place-items:center;
  border:1px solid rgb(var(--c-line));
  border-radius:50%;
  background:rgb(var(--c-surface));
}
.fc-summary-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.fc-summary-strip > div{
  min-width:0;
  padding:13px 8px;
  border:1px solid rgb(var(--c-line));
  border-radius:15px;
  background:rgb(var(--c-surface));
  text-align:center;
}
.fc-summary-strip p{
  color:rgb(var(--c-muted));
  font-size:8px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.fc-summary-strip strong{
  display:block;
  overflow:hidden;
  margin-top:4px;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fc-detail-grid{
  display:grid;
  gap:16px;
}
.fc-chart-wrap{
  position:relative;
  min-height:230px;
  margin-top:12px;
}
.fc-chart-wrap canvas{
  max-height:300px;
}
.fc-type-header{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:20px;
}
.fc-type-header h2{
  font-size:22px;
  font-weight:900;
  letter-spacing:-.035em;
}
.fc-type-header p{
  margin-top:5px;
  color:rgb(var(--c-muted));
  font-size:12px;
}
.fc-primary-button,
.fc-secondary-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:0 15px;
  border-radius:11px;
  font-size:11px;
  font-weight:800;
}
.fc-primary-button{ color:#fff; }
.fc-income-button{ background:#059669; }
.fc-expense-button{ background:#e11d48; }
.fc-investment-button{ background:#6366f1; }
.fc-card-button{ background:#0284c7; }
.fc-secondary-button{
  border:1px solid rgb(var(--c-line));
  background:rgb(var(--c-surface));
  color:rgb(var(--c-muted));
}
.fc-secondary-button:hover{ background:rgb(var(--c-surface2)); color:rgb(var(--c-text)); }
.fc-card-workspace{
  display:grid;
  gap:16px;
}
.fc-invoice-total{
  color:rgb(var(--c-text));
  font-size:19px;
  font-weight:900;
  letter-spacing:-.035em;
}
.fc-card-manager-list{
  display:grid;
  gap:10px;
}
.fc-card-manager-item{
  position:relative;
  display:flex;
  min-width:0;
  align-items:center;
  gap:12px;
  padding:13px;
  border:1px solid rgb(var(--c-line));
  border-radius:15px;
  background:rgb(var(--c-surface2));
}
.fc-card-manager-color{
  width:9px;
  height:40px;
  flex:0 0 auto;
  border-radius:999px;
}
.fc-card-manager-copy{
  min-width:0;
}
.fc-card-manager-copy strong,
.fc-card-manager-copy span{
  display:block;
}
.fc-card-manager-copy strong{
  overflow:hidden;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fc-card-manager-copy span{
  margin-top:3px;
  color:rgb(var(--c-muted));
  font-size:9px;
}
.fc-card-manager-value{
  margin-left:auto;
  font-size:12px;
  font-weight:850;
  white-space:nowrap;
}
.fc-card-delete{
  display:grid;
  width:32px;
  height:32px;
  flex:0 0 auto;
  place-items:center;
  border-radius:9px;
  color:rgb(var(--c-muted));
}
.fc-card-delete:hover{
  background:rgba(244,63,94,.10);
  color:#e11d48;
}
.fc-card-form{
  display:grid;
  gap:13px;
  margin-top:18px;
}
.fc-color-field{
  display:flex;
  min-height:44px;
  align-items:center;
  gap:10px;
  padding:6px 10px;
  border:1px solid rgb(var(--c-line));
  border-radius:11px;
  background:rgb(var(--c-surface2));
}
.fc-color-field input{
  width:34px;
  height:28px;
  min-height:0;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:8px;
  cursor:pointer;
}
.fc-color-field span{
  color:rgb(var(--c-muted));
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
}
.fc-projection-summary{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
}
.fc-projection-metric{
  position:relative;
  min-width:0;
  padding:17px;
  border:1px solid rgb(var(--c-line));
  border-radius:18px;
  background:rgb(var(--c-surface));
  box-shadow:0 8px 28px rgba(15,23,42,.035);
}
.fc-projection-metric p{
  margin-top:15px;
  color:rgb(var(--c-muted));
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.fc-projection-metric strong{
  display:block;
  margin-top:5px;
  font-size:20px;
  font-weight:900;
  letter-spacing:-.035em;
}
.fc-projection-metric small{
  display:inline-flex;
  margin-top:7px;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(16,185,129,.11);
  color:#059669;
  font-size:9px;
  font-weight:800;
}
.fc-projection-metric.is-over-budget{
  border-color:rgba(244,63,94,.35);
  background:rgba(244,63,94,.055);
}
.fc-projection-metric.is-over-budget small{
  background:rgba(244,63,94,.11);
  color:#e11d48;
}
.fc-projection-icon{
  display:grid;
  width:36px;
  height:36px;
  place-items:center;
  border-radius:11px;
  background:rgba(196,245,60,.22);
  color:#668400;
}
.dark .fc-projection-icon{ color:rgb(var(--c-brand)); }
.fc-projection-icon-warn{
  background:rgba(245,158,11,.12);
  color:#d97706;
}
.fc-projection-layout{
  display:grid;
  min-width:0;
  gap:16px;
}
.fc-projection-form{
  display:grid;
  gap:13px;
  margin-top:18px;
}
.fc-installment-preview{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px;
  border:1px solid rgba(196,245,60,.42);
  border-radius:12px;
  background:rgba(196,245,60,.09);
}
.fc-installment-preview span{
  color:rgb(var(--c-muted));
  font-size:10px;
  font-weight:700;
}
.fc-installment-preview strong{
  font-size:14px;
  font-weight:900;
}
.fc-projection-list{
  display:grid;
  gap:10px;
}
.fc-projection-item{
  min-width:0;
  padding:15px;
  border:1px solid rgb(var(--c-line));
  border-radius:16px;
  background:rgb(var(--c-surface2));
}
.fc-projection-item-top{
  display:flex;
  min-width:0;
  align-items:flex-start;
  gap:10px;
}
.fc-projection-method-icon{
  display:grid;
  width:36px;
  height:36px;
  flex:0 0 auto;
  place-items:center;
  border-radius:11px;
  background:rgb(var(--c-surface));
  color:rgb(var(--c-muted));
}
.fc-projection-item-copy{
  min-width:0;
}
.fc-projection-item-copy strong,
.fc-projection-item-copy span{
  display:block;
}
.fc-projection-item-copy strong{
  overflow:hidden;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fc-projection-item-copy span{
  margin-top:3px;
  color:rgb(var(--c-muted));
  font-size:9px;
  line-height:1.45;
}
.fc-projection-item-amount{
  margin-left:auto;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}
.fc-projection-item-footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:13px;
  padding-top:12px;
  border-top:1px solid rgb(var(--c-line));
}
.fc-projection-impact-label{
  margin-right:auto;
  color:rgb(var(--c-muted));
  font-size:9px;
}
.fc-projection-impact-label strong{
  color:rgb(var(--c-text));
  font-size:11px;
}
.fc-projection-convert,
.fc-projection-delete{
  display:inline-flex;
  min-height:34px;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 10px;
  border-radius:9px;
  font-size:9px;
  font-weight:800;
}
.fc-projection-convert{
  background:rgb(var(--c-btn));
  color:rgb(var(--c-onbtn));
}
.fc-projection-delete{
  border:1px solid rgb(var(--c-line));
  color:rgb(var(--c-muted));
}
.fc-projection-delete:hover{
  border-color:rgba(244,63,94,.3);
  color:#e11d48;
}
.fc-mobile-nav{
  position:fixed;
  z-index:40;
  right:0;
  bottom:14px;
  left:0;
  padding:0 22px;
  pointer-events:none;
}
.fc-mobile-nav > div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:350px;
  margin:auto;
  padding:13px 25px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:999px;
  background:#121316;
  box-shadow:0 15px 40px rgba(15,23,42,.25);
  pointer-events:auto;
}
.fc-mobile-nav button{
  display:grid;
  width:30px;
  height:30px;
  place-items:center;
  color:rgba(255,255,255,.48);
}
.fc-mobile-nav button.text-brand{ color:rgb(var(--c-brand)); }
.fc-modal-form{
  display:grid;
  gap:13px;
  margin-top:20px;
}
.fc-form-field label{
  display:block;
  margin-bottom:6px;
  color:rgb(var(--c-muted));
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.fc-form-field input,
.fc-form-field select{
  width:100%;
  min-height:44px;
  padding:0 13px;
  border:1px solid rgb(var(--c-line));
  border-radius:11px;
  outline:none;
  background:rgb(var(--c-surface2));
  color:rgb(var(--c-text));
  font-size:13px;
}
.fc-form-field input:focus,
.fc-form-field select:focus{
  border-color:rgb(var(--c-brand));
  box-shadow:0 0 0 3px rgba(196,245,60,.18);
}
.fc-form-value input{
  min-height:54px;
  font-size:20px;
  font-weight:800;
}
.fc-paid-field{
  padding:11px 13px;
  border:1px solid rgb(var(--c-line));
  border-radius:11px;
  background:rgb(var(--c-surface2));
}
.fc-paid-field label{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
}
.fc-paid-field input{ width:16px; height:16px; accent-color:#10b981; }
.fc-paid-field strong,
.fc-paid-field small{ display:block; }
.fc-paid-field strong{ font-size:12px; }
.fc-paid-field small{ margin-top:2px; color:rgb(var(--c-muted)); font-size:9px; }
.fc-submit-button{
  min-height:48px;
  margin-top:3px;
  border-radius:12px;
  background:rgb(var(--c-btn));
  color:rgb(var(--c-onbtn));
  font-size:12px;
  font-weight:800;
}
.fc-submit-button:hover{ opacity:.9; }
.modal-content{
  margin:16px;
  max-height:calc(100vh - 32px);
  overflow-y:auto;
}

@media (min-width:640px){
  .fc-content{ max-width:720px; }
  .fc-plan-status{ display:inline-flex; }
  .fc-stat-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  .fc-stat-card p{ margin-top:24px; }
  .fc-projection-summary{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (min-width:1024px){
  .dashboard-body{
    background:
      radial-gradient(circle at 82% 0%,rgba(196,245,60,.065),transparent 23%),
      rgb(var(--c-bg));
  }
  .fc-app-shell{
    display:flex;
  }
  .fc-sidebar{
    position:fixed;
    z-index:30;
    top:0;
    bottom:0;
    left:0;
    display:flex;
    width:252px;
    flex-direction:column;
    padding:26px 18px 20px;
    border-right:1px solid rgb(var(--c-line));
    background:rgb(var(--c-surface));
  }
  .fc-sidebar-brand{
    display:flex;
    align-items:center;
    gap:11px;
    padding:0 8px;
  }
  .fc-brand-mark{
    display:grid;
    width:38px;
    height:38px;
    place-items:center;
    border-radius:12px;
    background:rgb(var(--c-brand));
    color:rgb(var(--c-onbrand));
  }
  .fc-sidebar-brand strong,
  .fc-sidebar-brand span{
    display:block;
  }
  .fc-sidebar-brand strong{
    font-size:18px;
    font-weight:900;
    letter-spacing:-.04em;
    line-height:1;
  }
  .fc-sidebar-brand div > span{
    margin-top:3px;
    color:rgb(var(--c-muted));
    font-size:9px;
    font-weight:800;
    letter-spacing:.18em;
    text-transform:uppercase;
  }
  .fc-sidebar-nav{
    margin-top:40px;
  }
  .fc-sidebar-label{
    margin:0 10px 10px;
    color:rgb(var(--c-muted));
    font-size:9px;
    font-weight:800;
    letter-spacing:.13em;
    text-transform:uppercase;
  }
  .desktop-tab-btn,
  .fc-sidebar-link{
    display:flex;
    width:100%;
    min-height:44px;
    align-items:center;
    gap:11px;
    padding:0 12px;
    border-radius:12px;
    color:rgb(var(--c-muted));
    font-size:12px;
    font-weight:700;
    text-align:left;
    transition:background-color .18s ease,color .18s ease,transform .18s ease;
  }
  .desktop-tab-btn:hover,
  .fc-sidebar-link:hover{
    background:rgb(var(--c-surface2));
    color:rgb(var(--c-text));
    transform:translateX(2px);
  }
  .desktop-tab-btn.is-active{
    background:rgb(var(--c-ink));
    color:rgb(var(--c-onink));
    box-shadow:0 10px 24px rgba(15,23,42,.12);
  }
  .desktop-tab-btn.is-active svg{ color:rgb(var(--c-brand)); }
  .fc-sidebar-bottom{
    margin-top:auto;
  }
  .fc-sidebar-profile{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:14px;
    padding:14px 10px 0;
    border-top:1px solid rgb(var(--c-line));
  }
  .fc-sidebar-avatar{
    display:grid;
    width:34px;
    height:34px;
    flex:0 0 auto;
    place-items:center;
    border-radius:11px;
    background:rgb(var(--c-brand));
    color:rgb(var(--c-onbrand));
    font-size:11px;
    font-weight:900;
  }
  .fc-sidebar-profile strong,
  .fc-sidebar-profile span{ display:block; }
  .fc-sidebar-profile strong{
    max-width:150px;
    overflow:hidden;
    font-size:11px;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .fc-sidebar-profile span{
    margin-top:2px;
    color:rgb(var(--c-muted));
    font-size:9px;
  }
  .fc-main{
    width:calc(100% - 252px);
    margin-left:252px;
  }
  .fc-content{
    max-width:1380px;
    margin:0 auto;
    padding:30px 34px 44px;
  }
  .fc-topbar{
    min-height:56px;
    margin-bottom:28px;
  }
  .fc-mobile-brand{ display:none; }
  .fc-page-kicker{
    display:block;
    margin-bottom:5px;
    color:rgb(var(--c-muted));
    font-size:10px;
    font-weight:700;
  }
  .fc-page-heading{
    display:block;
    font-size:25px;
    font-weight:900;
    letter-spacing:-.04em;
    line-height:1;
  }
  .fc-topbar-action{
    display:inline-flex;
    min-height:40px;
    align-items:center;
    gap:7px;
    padding:0 15px;
    border-radius:11px;
    background:rgb(var(--c-btn));
    color:rgb(var(--c-onbtn));
    font-size:11px;
    font-weight:800;
  }
  .fc-mobile-admin{ display:none; }
  .fc-overview{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:18px;
  }
  .fc-overview > *{ margin:0 !important; }
  .fc-balance-card{
    grid-column:span 8;
    grid-row:span 2;
    min-height:326px;
    padding:30px;
  }
  .fc-balance-value{
    margin-top:46px;
    font-size:56px;
  }
  .fc-balance-caption{
    margin-top:13px;
    font-size:12px;
  }
  .fc-balance-controls{
    position:absolute;
    right:30px;
    bottom:28px;
    left:30px;
    margin:0;
  }
  .fc-quick-actions{
    grid-column:span 4;
  }
  .fc-quick-button{
    min-height:64px;
    flex-direction:column;
    gap:4px;
    font-size:11px;
  }
  .fc-plan-card{
    grid-column:span 4;
    min-height:164px;
    align-items:flex-start;
  }
  .fc-plan-status{ display:none; }
  .fc-overview-cards{
    grid-column:span 5;
    min-width:0;
    padding:22px;
  }
  .fc-overview-summary{
    grid-column:span 7;
    min-width:0;
    padding:22px;
  }
  .fc-cards > *{
    flex-basis:100%;
  }
  .fc-stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .fc-stat-card{
    min-height:118px;
    padding:14px;
  }
  .fc-stat-card p{ margin-top:13px; }
  .fc-stat-card strong{ font-size:17px; }
  .fc-main-extra{
    grid-template-columns:minmax(0,2fr) minmax(250px,.75fr);
    gap:18px;
    margin-top:18px;
  }
  .fc-history-card,
  .fc-tools-card{ padding:22px; }
  #history-list > div{
    min-height:68px;
    padding-right:4px;
    padding-left:4px;
  }
  .fc-mobile-logout{ display:none; }
  .fc-mobile-nav{ display:none; }
  .fc-mobile-section-title{ display:none; }
  .fc-summary-strip{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }
  .fc-summary-strip > div{
    padding:20px;
    border-radius:18px;
    text-align:left;
  }
  .fc-summary-strip p{ font-size:9px; }
  .fc-summary-strip strong{ margin-top:7px; font-size:20px; }
  .fc-detail-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }
  .fc-panel{ padding:22px; }
  .fc-panel-wide{ grid-column:1/-1; }
  .fc-type-section{
    display:grid;
    grid-template-columns:minmax(250px,.55fr) minmax(0,1.45fr);
    align-items:start;
    gap:18px;
  }
  .fc-type-section.hidden{ display:none; }
  .fc-card-section,
  .fc-projection-section{
    display:flex;
  }
  .fc-card-section.hidden,
  .fc-projection-section.hidden{
    display:none;
  }
  .fc-card-workspace{
    grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);
    gap:18px;
  }
  .fc-card-chart-panel{
    grid-column:1/-1;
  }
  .fc-projection-summary{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
  }
  .fc-projection-metric{
    min-height:150px;
    padding:20px;
  }
  .fc-projection-layout{
    grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);
    align-items:start;
    gap:18px;
  }
  .fc-projection-form-panel{
    position:sticky;
    top:24px;
  }
  .fc-projection-list-panel{
    min-height:420px;
  }
  .fc-type-header{
    position:sticky;
    top:24px;
    padding:24px;
  }
  .fc-chart-wrap{ min-height:320px; }
  .fc-chart-wrap canvas{ max-height:340px; }
  .modal-content{ padding:28px; }
  .fc-modal-form{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .fc-form-value,
  .fc-paid-field,
  .fc-submit-button{
    grid-column:1/-1;
  }
}

@media (min-width:1280px){
  .fc-sidebar{ width:268px; padding-right:22px; padding-left:22px; }
  .fc-main{ width:calc(100% - 268px); margin-left:268px; }
  .fc-content{ padding-right:42px; padding-left:42px; }
  .fc-balance-card{ grid-column:span 8; }
  .fc-overview-cards{ grid-column:span 5; }
  .fc-overview-summary{ grid-column:span 7; }
  .fc-stat-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:639px){
  .fc-plan-status{ display:none; }
  .modal-content{
    align-self:flex-end;
    width:100%;
    margin:0;
    border-radius:24px 24px 0 0;
    padding:22px 18px calc(22px + env(safe-area-inset-bottom));
  }
  #modal.modal-open{ align-items:flex-end; }
}
