/* ==========================================================================
   Wolffin — telas do app recriadas em HTML/CSS
   Reprodução fiel das telas do aplicativo mobile (Expo/React Native) com
   dados fictícios. Feito em markup para ficar nítido em qualquer densidade
   de tela e acompanhar o modo de contraste do navegador.
   ========================================================================== */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  flex: 0 0 auto;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #2c3f33, #0c1a11 45%, #24352a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(0, 0, 0, 0.95),
    0 0 90px -30px rgba(19, 236, 91, 0.35);
}

.phone__glass {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: var(--base);
  height: 620px;
}

/* Brilho diagonal no vidro — só no herói, onde o aparelho é o assunto. */
.phone--lit .phone__glass::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.09) 0%, transparent 32%, transparent 68%, rgba(19, 236, 91, 0.07) 100%);
}

.phone__notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 24px;
  border-radius: 999px;
  background: #05100a;
  z-index: 5;
}

.phone__cap {
  margin-top: 0.9rem;
  text-align: center;
  font-size: var(--t--1);
  color: var(--moss);
  font-weight: 600;
  max-width: var(--w);
}

.phone__cap b { color: var(--fg); font-weight: 800; display: block; }

@media (max-width: 380px) { .phone { --w: 272px; } .phone__glass { height: 578px; } }

/* ------------------------------------------------------------ tela do app */

.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg);
  background: var(--base);
  overflow: hidden;
}

.screen__body {
  flex: 1;
  overflow: hidden;
  padding: 0 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
}

.sbar__right { display: flex; align-items: center; gap: 4px; }
.sbar__bat { width: 18px; height: 9px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 2px; position: relative; }
.sbar__bat::before { content: ''; position: absolute; inset: 1px; right: 5px; background: var(--fg); border-radius: 1px; }
.sbar__bat::after { content: ''; position: absolute; right: -3px; top: 3px; width: 2px; height: 3px; background: rgba(255, 255, 255, 0.6); border-radius: 0 1px 1px 0; }

/* Cabeçalho de tela */
.apphead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 14px 2px;
}

.apphead__hi { font-size: 10.5px; color: var(--dim); font-weight: 600; }
.apphead__name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.apphead__title { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--lime), #0b7c30);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #06170c;
  flex: 0 0 auto;
}

.iconbtn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.iconbtn svg { width: 15px; height: 15px; stroke: var(--moss); }

/* Cartões */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
}

.card--flat { background: var(--surface-alt, #1a2c20); }

.label { font-size: 10.5px; color: var(--dim); font-weight: 700; }
.muted { color: var(--moss); }
.money { font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pos { color: var(--lime); }
.neg { color: var(--ember); }

.balance { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.balance__value { font-size: 27px; margin-top: 2px; white-space: nowrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.pill--paid { background: rgba(19, 236, 91, 0.16); color: var(--lime); }
.pill--due { background: rgba(251, 146, 60, 0.16); color: var(--amber); }
.pill--late { background: rgba(248, 113, 113, 0.16); color: var(--ember); }
.pill--inv { background: rgba(167, 139, 250, 0.16); color: var(--violet); }

/* Par receita/despesa */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.duo .card { padding: 11px; }
.duo__top { display: flex; align-items: center; gap: 6px; }
.duo__dot { width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; }
.duo__dot svg { width: 11px; height: 11px; }
.duo__dot--in { background: rgba(19, 236, 91, 0.16); stroke: var(--lime); }
.duo__dot--out { background: rgba(248, 113, 113, 0.16); stroke: var(--ember); }
.duo__val { font-size: 15px; margin-top: 5px; }

/* Gráfico de barras mensal */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 74px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bars__pair { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 100%; justify-content: center; }
.bars__b { width: 6px; border-radius: 3px 3px 0 0; }
.bars__b--in { background: var(--lime); }
.bars__b--out { background: var(--ember); opacity: 0.85; }
.bars__m { font-size: 9px; color: var(--dim); font-weight: 700; }

/* Anel de categorias */
.ring { display: flex; align-items: center; gap: 12px; }

.ring__viz {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--lime) 0 34%, var(--sky) 34% 57%, var(--violet) 57% 76%, var(--amber) 76% 90%, var(--surface-2) 90% 100%);
}

.ring__hole {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--surface);
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.15;
}

.ring__legend { display: grid; gap: 6px; flex: 1; min-width: 0; }
.ring__item { display: flex; align-items: center; gap: 6px; font-size: 10.5px; }
.ring__sw { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.ring__item span:last-child { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Linha de transação */
.tx { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }

.tx__ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 14px;
}

.tx__main { flex: 1; min-width: 0; }
.tx__t { font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx__s { font-size: 10px; color: var(--dim); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx__r { text-align: right; flex: 0 0 auto; }
.tx__amt { font-size: 12.5px; }

.rowhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rowhead span:last-child { color: var(--lime); font-size: 10.5px; }

/* Navegador de mês */
.mnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 12.5px;
}

.mnav svg { width: 14px; height: 14px; stroke: var(--moss); }

/* Barra previsto vs realizado */
.pvr { display: grid; gap: 9px; }
.pvr__row { display: grid; gap: 4px; }
.pvr__top { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; }
.pvr__bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pvr__fill { height: 100%; border-radius: 999px; width: var(--p, 50%); }
.pvr__fill--plan { background: rgba(255, 255, 255, 0.22); }
.pvr__fill--real { background: var(--lime); }
.pvr__fill--realout { background: var(--ember); }

/* Faturas / cartão */
.credit {
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #2a1c3d, #3d2352 55%, #1d1430);
  border: 1px solid rgba(167, 139, 250, 0.35);
  position: relative;
  overflow: hidden;
}

.credit::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  right: -50px;
  top: -60px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.22);
  filter: blur(6px);
}

.credit__brand { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; }
.credit__num { font-size: 12px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.72); margin-top: 12px; font-weight: 700; }
.credit__foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; position: relative; z-index: 1; }

.limit { display: grid; gap: 5px; }
.limit__bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.limit__fill { height: 100%; background: linear-gradient(90deg, var(--violet), var(--sky)); width: var(--p, 40%); border-radius: 999px; }

/* Formulário (nova despesa) */
.field { display: grid; gap: 5px; }
.field__l { font-size: 10.5px; color: var(--dim); font-weight: 700; }

.field__i {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field__i--big { font-size: 24px; letter-spacing: -0.03em; padding: 12px; justify-content: center; }
.field__i svg { width: 13px; height: 13px; stroke: var(--dim); flex: 0 0 auto; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--moss);
}

.chip[data-on] { background: var(--lime-muted); border-color: rgba(19, 236, 91, 0.5); color: var(--lime); }

.switch { display: flex; align-items: center; justify-content: space-between; }
.switch__t { width: 34px; height: 20px; border-radius: 999px; background: var(--lime); position: relative; flex: 0 0 auto; }
.switch__t::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 999px; background: #06170c; top: 2px; right: 2px; }
.switch__t[data-off] { background: var(--surface-2); }
.switch__t[data-off]::after { right: auto; left: 2px; background: var(--dim); }

.cta-fake {
  margin-top: auto;
  background: var(--lime);
  color: #06170c;
  font-weight: 800;
  font-size: 12.5px;
  text-align: center;
  padding: 11px;
  border-radius: 12px;
}

/* Lista de opções (perfil) */
.optlist { display: grid; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.opt:last-child { border-bottom: 0; }
.opt__ico { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 13px; flex: 0 0 auto; }
.opt__t { font-size: 12px; font-weight: 700; flex: 1; }
.opt__v { font-size: 11px; color: var(--dim); font-weight: 700; }

/* Barra de abas */
.tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 9px 8px 16px;
  border-top: 1px solid var(--line);
  background: rgba(16, 34, 22, 0.9);
  backdrop-filter: blur(12px);
  position: relative;
}

.tabbar__i { display: grid; justify-items: center; gap: 3px; font-size: 9px; font-weight: 700; color: var(--dim); }
.tabbar__i svg { width: 18px; height: 18px; stroke: var(--dim); fill: none; }
.tabbar__i[data-on] { color: var(--lime); }
.tabbar__i[data-on] svg { stroke: var(--lime); }

.fab {
  position: absolute;
  right: 14px;
  top: -50px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--lime);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -8px rgba(19, 236, 91, 0.8);
}

.fab svg { width: 21px; height: 21px; stroke: #06170c; stroke-width: 2.6; }

.dash { height: 1px; background: var(--line); margin: 2px 0; }
