/* ===== Rumo ao 1º Milhão — Black Piano + Dourado ===== */
:root {
  --bg: #030303;
  --phone: #050505;
  /* dourado sofisticado (champagne → ouro metálico) */
  --gold: #d4af37;
  --gold-2: #e6c463;
  --gold-lite: #fbf1c0;
  --gold-grad: linear-gradient(135deg, #fbf1c0 0%, #e6c463 32%, #d4af37 60%, #a9812a 100%);
  --gold-soft: rgba(212, 175, 55, 0.14);
  --green: #22c55e;
  --green-2: #34d17a;
  --red: #ef5350;
  /* vidro premium translúcido */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-gold: rgba(212, 175, 55, 0.22);
  --txt: #f7f7f5;
  --txt-2: #9a9a98;
  --txt-3: #666664;
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  /* fundo black piano: preto profundo com leve brilho quente/dourado */
  background:
    radial-gradient(1100px 620px at 22% -8%, #171310 0%, transparent 58%),
    radial-gradient(900px 520px at 92% 8%, #12100a 0%, transparent 52%),
    radial-gradient(1000px 700px at 50% 120%, #0a0a0a 0%, transparent 60%),
    #010101;
  color: var(--txt);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.stage { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 12px; }
.phone {
  width: 100%; max-width: 420px; height: min(880px, calc(100dvh - 48px));
  background:
    linear-gradient(180deg, #0a0a0a 0%, #050505 40%, #010101 100%);
  border-radius: 44px; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 50px 130px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.05), inset 0 0 0 6px #000;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
}
@media (max-width: 480px) {
  .stage { padding: 0; }
  .phone { max-width: 100%; height: 100vh; height: 100dvh; border-radius: 0; border: none; box-shadow: none; }
}

.statusbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px 4px; font-size: 14px; font-weight: 600; flex-shrink: 0; padding-top: max(14px, env(safe-area-inset-top)); }
.statusbar .icons { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #000; border-radius: 16px; z-index: 5; }

/* Em modo app instalado (standalone) escondemos a barra falsa e usamos a safe area real */
@media (display-mode: standalone) {
  .statusbar, .notch { display: none; }
  .phone { padding-top: env(safe-area-inset-top); }
}

.app-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.screens { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.screens::-webkit-scrollbar { width: 0; }
.screen { display: none; padding: 8px 18px 28px; animation: fade .25s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== Vidro premium reutilizável ===== */
.glass { background: var(--glass); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); border: 1px solid var(--stroke); }

/* ===== Header genérico ===== */
.top { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 14px; }
.top .title { font-size: 18px; font-weight: 700; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--glass); backdrop-filter: blur(14px); color: var(--txt); display: grid; place-items: center; font-size: 18px; cursor: pointer; }
.icon-btn:active { background: var(--glass-2); }
.back { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 4px 8px; }

.hi { display: flex; align-items: center; gap: 12px; }
.hi h1 { font-size: 19px; font-weight: 700; }
.hi p { font-size: 12px; color: var(--txt-2); margin-top: 2px; letter-spacing: .3px; }

/* ===== Meta 1º milhão ===== */
.million { text-align: center; padding: 12px 0 4px; }
.million .label { font-size: 12px; letter-spacing: 2.5px; color: var(--gold-2); opacity: .85; }
.million .value { font-size: 34px; font-weight: 800; margin: 6px 0 14px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 8px rgba(212,175,55,.25)); }
.million .prog-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--txt-2); margin-bottom: 8px; }
.million .prog-row b { color: #fff; }
.bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.07); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 8px; background: var(--gold-grad); box-shadow: 0 0 12px rgba(212,175,55,.4); }
.million .accum { text-align: center; font-size: 13px; color: var(--txt-2); margin-top: 8px; }
.million .accum b { color: #fff; }

/* ===== Mini cards ===== */
.mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.mini { background: var(--glass); backdrop-filter: blur(18px); border: 1px solid var(--stroke); border-radius: 16px; padding: 12px 10px; }
.mini .k { font-size: 12px; font-weight: 600; }
.mini .v { font-size: 15px; font-weight: 700; margin: 6px 0 2px; }
.mini .s { font-size: 11px; color: var(--txt-3); }
.mini.green .k { color: var(--green); }
.mini.red .k { color: var(--red); }
.mini.gold .k { color: var(--gold-2); }

/* ===== Card genérico ===== */
.card { background: var(--glass); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.card-head .t { font-size: 14px; color: var(--txt-2); }
.card-head .chg { font-size: 12px; color: var(--green); font-weight: 600; }
.card-head .chg.neg { color: var(--red); }
.big-num { font-size: 24px; font-weight: 800; margin: 4px 0 8px; }

.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 12px; }
.sec-head h3 { font-size: 16px; font-weight: 700; }
.sec-head a { font-size: 13px; color: var(--gold-2); cursor: pointer; text-decoration: none; }

.qrow { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--stroke); cursor: pointer; }
.qrow:last-child { border-bottom: none; }
.qrow .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--glass-2); display: grid; place-items: center; font-size: 15px; }
.qrow .nm { flex: 1; font-size: 14px; }
.qrow .am { font-size: 14px; font-weight: 700; }
.am.red { color: var(--red); } .am.green { color: var(--green); } .am.gold { color: var(--gold-2); }

/* ===== Meta card ===== */
.goal { background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 12px; cursor: pointer; }
.goal .badge { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--stroke-gold); display: grid; place-items: center; font-size: 20px; }
.goal .info { flex: 1; }
.goal .info .nm { font-size: 14px; font-weight: 600; }
.goal .info .sub { font-size: 12px; color: var(--txt-2); margin: 3px 0 8px; }
.goal .pct { font-size: 14px; font-weight: 700; color: var(--gold-2); }

/* ===== Tabs ===== */
.tabs { display: flex; background: var(--glass); border: 1px solid var(--stroke); border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; border: none; background: none; color: var(--txt-2); padding: 10px; border-radius: 11px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--gold-grad); color: #1a1200; }

/* ===== Lista contas / bens ===== */
.list-title { font-size: 14px; color: var(--txt-2); margin: 4px 2px 10px; }
.acct { display: flex; align-items: center; gap: 12px; background: var(--glass); backdrop-filter: blur(18px); border: 1px solid var(--stroke); border-radius: 15px; padding: 12px 14px; margin-bottom: 10px; }
.acct .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--stroke-gold); display: grid; place-items: center; font-size: 18px; overflow: hidden; }
.acct .ic img { width: 100%; height: 100%; object-fit: cover; }
.acct .mid { flex: 1; min-width: 0; }
.acct .mid .nm { font-size: 14px; font-weight: 600; }
.acct .mid .dt { font-size: 12px; color: var(--txt-2); margin-top: 3px; }
.acct .right { text-align: right; }
.acct .right .val { font-size: 14px; font-weight: 700; }
.acct .right .st { font-size: 11px; margin-top: 3px; }
.st.venc { color: var(--red); } .st.aberta { color: var(--txt-2); } .st.rec { color: var(--green); }

.total-bar { display: flex; align-items: center; justify-content: space-between; background: var(--glass); border: 1px solid var(--stroke); border-radius: 15px; padding: 16px; margin-top: 6px; }
.total-bar .l { font-size: 14px; font-weight: 600; }
.total-bar .r { font-size: 16px; font-weight: 800; }
.total-bar .r.red { color: var(--red); } .total-bar .r.green { color: var(--green); }

/* ===== Bens ===== */
.bem { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--stroke); cursor: pointer; }
.bem:last-child { border-bottom: none; }
.bem .thumb { width: 62px; height: 48px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--stroke); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; overflow: hidden; }
.bem .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bem .info { flex: 1; min-width: 0; }
.bem .info .nm { font-size: 15px; font-weight: 600; }
.bem .info .val { font-size: 13px; color: var(--txt-2); margin: 4px 0 8px; }
.bem .info .prow { display: flex; align-items: center; gap: 8px; }
.bem .info .prow .bar { flex: 1; }
.bem .info .prow .pp { font-size: 12px; color: var(--txt-2); white-space: nowrap; }

/* ===== Donut / Legenda ===== */
.center-total { text-align: center; margin: 4px 0 18px; }
.center-total .k { font-size: 13px; color: var(--green); font-weight: 600; }
.center-total .v { font-size: 26px; font-weight: 800; margin-top: 4px; }
.center-total .s { font-size: 12px; color: var(--txt-2); }
.donut-wrap { display: grid; place-items: center; margin: 8px 0 22px; position: relative; }
.donut-center { position: absolute; text-align: center; }
.donut-center .dc-k { font-size: 11px; color: var(--txt-2); }
.donut-center .dc-v { font-size: 17px; font-weight: 800; }
.donut-center .dc-s { font-size: 11px; color: var(--txt-3); }
.legend .lrow { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--stroke); cursor: pointer; }
.legend .lrow:last-child { border-bottom: none; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.legend .lname { flex: 1; font-size: 14px; }
.legend .lval { font-size: 14px; font-weight: 700; }
.legend .lpct { font-size: 12px; color: var(--txt-2); width: 42px; text-align: right; }

/* ===== Bar chart ===== */
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 150px; padding: 8px 4px 0; }
.bars .bcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .bcol > i { width: 60%; max-width: 26px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #34d17a, #16a34a); }
.bars .bcol span { font-size: 11px; color: var(--txt-2); }

/* ===== Detalhes do bem ===== */
.detail-hero { text-align: center; padding: 8px 0 4px; }
.detail-hero .thumb { width: 100%; height: 180px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--stroke); display: grid; place-items: center; font-size: 60px; margin-bottom: 14px; overflow: hidden; }
.detail-hero .thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .nm { font-size: 18px; font-weight: 700; }
.detail-hero .val { font-size: 15px; color: var(--txt-2); margin-top: 3px; }
.gallery { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; }
.gallery img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; border: 1px solid var(--stroke); flex-shrink: 0; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.stat3 .cell { background: var(--glass); border: 1px solid var(--stroke); border-radius: 14px; padding: 12px; text-align: center; }
.stat3 .cell .k { font-size: 11px; color: var(--txt-2); }
.stat3 .cell .v { font-size: 14px; font-weight: 700; margin-top: 4px; }
.stat3 .cell.gold .v { color: var(--gold-2); }
.stat3 .cell.green .v { color: var(--green); }
.stat3 .cell.red .v { color: var(--red); }
.hist { background: var(--glass); border: 1px solid var(--stroke); border-radius: 15px; padding: 6px 14px; }
.hist .hrow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--stroke); }
.hist .hrow:last-child { border-bottom: none; }
.hist .hrow .ck { color: var(--green); font-size: 16px; }
.hist .hrow .dt { flex: 1; font-size: 13px; }
.hist .hrow .vl { font-size: 13px; font-weight: 700; }
.note-box { background: var(--glass); border: 1px solid var(--stroke); border-radius: 15px; padding: 14px; font-size: 13px; color: var(--txt-2); line-height: 1.5; white-space: pre-wrap; }

/* ===== Botões ===== */
.big-action { width: 100%; border: none; border-radius: 15px; padding: 15px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.big-action.green { background: linear-gradient(135deg, #34d17a, #16a34a); color: #04240f; }
.big-action.gold { background: var(--gold-grad); color: #1a1200; box-shadow: 0 8px 24px rgba(212,175,55,.28); }
.ghost-btn { width: 100%; background: var(--glass); border: 1px solid var(--stroke); color: var(--txt); border-radius: 15px; padding: 14px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 6px; }

/* ===== Nav ===== */
.nav { flex-shrink: 0; display: flex; justify-content: space-around; align-items: center; padding: 10px 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: rgba(6,6,6,0.82); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border-top: 1px solid var(--stroke); }
.nav button { background: none; border: none; color: var(--txt-3); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; cursor: pointer; flex: 1; }
.nav button .ni { font-size: 18px; }
.nav button.on { color: var(--gold-2); }

/* ===== Modal / Sheet ===== */
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.66); display: none; align-items: flex-end; z-index: 30; }
.overlay.show { display: flex; }
.sheet { width: 100%; background: rgba(18,18,18,0.96); backdrop-filter: blur(26px); border-radius: 24px 24px 0 0; border-top: 1px solid var(--stroke-gold); padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .28s ease; max-height: 88%; overflow-y: auto; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sheet h3 { font-size: 16px; margin-bottom: 16px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--txt-2); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; background: rgba(0,0,0,0.4); border: 1px solid var(--stroke); border-radius: 12px; padding: 12px; color: #fff; font-size: 14px; font-family: inherit; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input[type=color] { height: 46px; padding: 4px; }
.sheet .row2 { display: flex; gap: 10px; }
.sheet .row2 .field { flex: 1; }
.sheet-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.sheet-actions button { flex: 1; min-width: 90px; border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; }
.sheet-actions .cancel { background: var(--glass-2); color: #fff; }
.sheet-actions .danger { background: rgba(239,83,80,0.16); color: #ff8b88; }
.sheet-actions .save { background: var(--gold-grad); color: #1a1200; }

/* upload de fotos dentro do form */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.thumbs .th { position: relative; width: 66px; height: 66px; border-radius: 10px; overflow: hidden; border: 1px solid var(--stroke); }
.thumbs .th img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .th button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,0.7); color: #fff; font-size: 12px; cursor: pointer; line-height: 1; }
.upload-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--glass-2); border: 1px dashed var(--stroke-gold); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--gold-2); cursor: pointer; }
.upload-btn input { display: none; }

.empty { text-align: center; color: var(--txt-3); font-size: 13px; padding: 30px 0; }
.toast { position: absolute; bottom: calc(94px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: rgba(30,30,30,0.95); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; border: 1px solid var(--stroke-gold); }
.toast.show { opacity: 1; }

/* ===== Login ===== */
.login { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px; padding-top: max(24px, env(safe-area-inset-top)); background: linear-gradient(180deg, #0a0a0a, #010101); }
.login-inner { width: 100%; max-width: 320px; text-align: center; }
.login-logo { width: 92px; height: 92px; margin-bottom: 18px; filter: drop-shadow(0 10px 30px rgba(212,175,55,.25)); }
.login h1 { font-size: 22px; font-weight: 800; }
.login-sub { font-size: 12px; color: var(--gold-2); letter-spacing: 1.5px; margin: 6px 0 26px; opacity: .8; }
.login form { text-align: left; }
.login .field input { background: rgba(255,255,255,0.05); }
.login-err { color: #ff8b88; font-size: 13px; min-height: 18px; margin: 2px 0 8px; text-align: center; }

/* ===== Mais / menu hub ===== */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.menu-tile { background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--stroke); border-radius: 18px; padding: 18px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; min-height: 108px; }
.menu-tile .mi { width: 44px; height: 44px; border-radius: 13px; background: var(--gold-soft); border: 1px solid var(--stroke-gold); display: grid; place-items: center; font-size: 22px; }
.menu-tile .mt { font-size: 15px; font-weight: 700; }
.menu-tile .md { font-size: 11px; color: var(--txt-2); }

/* ===== Perfil ===== */
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 0 8px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--gold-soft); border: 2px solid var(--stroke-gold); display: grid; place-items: center; font-size: 40px; overflow: hidden; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .cam { position: absolute; bottom: 0; right: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-grad); color: #1a1200; display: grid; place-items: center; font-size: 14px; border: 2px solid #050505; cursor: pointer; }
.profile-head .pn { font-size: 20px; font-weight: 800; margin-top: 12px; }
.profile-head .pu { font-size: 13px; color: var(--gold-2); margin-top: 2px; }
.profile-head .pb { font-size: 13px; color: var(--txt-2); margin-top: 8px; max-width: 280px; line-height: 1.4; }
.info-list { background: var(--glass); border: 1px solid var(--stroke); border-radius: 16px; padding: 4px 14px; margin-top: 4px; }
.info-list .irow { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--stroke); }
.info-list .irow:last-child { border-bottom: none; }
.info-list .irow .il { width: 26px; text-align: center; font-size: 15px; }
.info-list .irow .ik { flex: 1; font-size: 13px; color: var(--txt-2); }
.info-list .irow .iv { font-size: 13px; font-weight: 600; text-align: right; }
.settings-list .srow { display: flex; align-items: center; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--stroke); cursor: pointer; }
.settings-list .srow:last-child { border-bottom: none; }
.settings-list .srow .si { width: 26px; text-align: center; }
.settings-list .srow .sn { flex: 1; font-size: 14px; }
.settings-list .srow .sa { color: var(--txt-3); }
.settings-list .srow.logout .sn { color: #ff8b88; }

/* ===== Cartões ===== */
.credit-card { border-radius: 18px; padding: 18px; color: #fff; margin-bottom: 14px; position: relative; min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 40px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.12); overflow: hidden; cursor: pointer; }
.credit-card::after { content: ''; position: absolute; top: -40%; right: -10%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%); }
.credit-card .cc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.credit-card .cc-bank { font-size: 15px; font-weight: 700; }
.credit-card .cc-flag { font-size: 13px; font-weight: 700; letter-spacing: 1px; opacity: .9; }
.credit-card .cc-num { font-size: 18px; letter-spacing: 3px; font-weight: 600; }
.credit-card .cc-bot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; }
.credit-card .cc-bot .lbl { opacity: .7; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.credit-card .cc-bot b { font-size: 14px; }
.cc-limit-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.22); overflow: hidden; margin-top: 4px; }
.cc-limit-bar > i { display: block; height: 100%; background: #fff; border-radius: 6px; }

/* ===== Documentos ===== */
.doc-cat { font-size: 13px; color: var(--txt-2); margin: 16px 2px 8px; }
.doc-item { display: flex; align-items: center; gap: 12px; background: var(--glass); border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.doc-item .di { width: 40px; height: 40px; border-radius: 11px; background: rgba(239,83,80,0.14); border: 1px solid rgba(239,83,80,0.25); display: grid; place-items: center; font-size: 18px; }
.doc-item .dm { flex: 1; min-width: 0; }
.doc-item .dm .dn { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-item .dm .dt { font-size: 12px; color: var(--txt-2); margin-top: 2px; }
.doc-item .da { display: flex; gap: 6px; }
.doc-item .da a, .doc-item .da button { background: var(--glass-2); border: 1px solid var(--stroke); color: var(--txt); border-radius: 9px; padding: 8px 10px; font-size: 13px; cursor: pointer; text-decoration: none; }

/* ===== Investimentos ===== */
.inv-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; }
.inv-summary .cell { background: var(--glass); border: 1px solid var(--stroke); border-radius: 15px; padding: 14px; }
.inv-summary .cell .k { font-size: 12px; color: var(--txt-2); }
.inv-summary .cell .v { font-size: 18px; font-weight: 800; margin-top: 6px; }
.inv-item { display: flex; align-items: center; gap: 12px; background: var(--glass); border: 1px solid var(--stroke); border-radius: 15px; padding: 13px 14px; margin-bottom: 10px; cursor: pointer; }
.inv-item .ii { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--stroke-gold); display: grid; place-items: center; font-size: 18px; }
.inv-item .im { flex: 1; min-width: 0; }
.inv-item .im .inn { font-size: 14px; font-weight: 600; }
.inv-item .im .ic { font-size: 12px; color: var(--txt-2); margin-top: 2px; }
.inv-item .ir { text-align: right; }
.inv-item .ir .iv { font-size: 14px; font-weight: 700; }
.inv-item .ir .ip { font-size: 12px; margin-top: 2px; font-weight: 600; }
.pos { color: var(--green); } .neg { color: var(--red); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.chip-row::-webkit-scrollbar { height: 0; }
.chip { white-space: nowrap; font-size: 12px; padding: 8px 12px; border-radius: 20px; border: 1px solid var(--stroke); background: var(--glass); color: var(--txt-2); cursor: pointer; }
.chip.on { background: var(--gold-grad); color: #1a1200; border-color: transparent; font-weight: 700; }

/* ===== Atalhos na Resumo ===== */
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 4px 0 4px; }
.shortcut { background: var(--glass); border: 1px solid var(--stroke); border-radius: 16px; padding: 12px 6px; text-align: center; cursor: pointer; }
.shortcut .si { width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--stroke-gold); display: grid; place-items: center; font-size: 19px; }
.shortcut .sl { font-size: 11px; color: var(--txt-2); }
.invest-cta { display: flex; align-items: center; gap: 14px; border-radius: 18px; padding: 16px; margin: 16px 0 4px; cursor: pointer; background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.04)); border: 1px solid var(--stroke-gold); }
.invest-cta .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--gold-grad); color: #1a1200; display: grid; place-items: center; font-size: 22px; }
.invest-cta .tt { flex: 1; }
.invest-cta .tt b { font-size: 15px; } .invest-cta .tt span { display: block; font-size: 12px; color: var(--txt-2); margin-top: 2px; }
.invest-cta .arw { color: var(--gold-2); font-size: 20px; }

/* ===== Cropper ===== */
.cropper { position: absolute; inset: 0; background: rgba(0,0,0,0.92); z-index: 50; display: none; flex-direction: column; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); padding-top: max(20px, env(safe-area-inset-top)); }
.cropper.show { display: flex; }
.crop-head { font-size: 16px; font-weight: 700; text-align: center; }
.crop-hint { font-size: 12px; color: var(--gold-2); text-align: center; margin: 6px 0 14px; }
.crop-stage { position: relative; width: 100%; aspect-ratio: 4/3; background: #000; border-radius: 14px; overflow: hidden; margin: 0 auto; touch-action: none; border: 1px solid var(--stroke); flex-shrink: 0; }
.crop-stage img { position: absolute; top: 50%; left: 50%; transform-origin: center; user-select: none; -webkit-user-drag: none; max-width: none; }
.crop-frame { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(212,175,55,.6); border-radius: 14px; }
.crop-controls { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 13px; color: var(--txt-2); }
.crop-controls input[type=range] { flex: 1; accent-color: var(--gold); }
.crop-actions { display: flex; gap: 10px; margin-top: auto; }
.crop-actions button { flex: 1; border: none; border-radius: 13px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; }
.crop-actions .cancel { background: var(--glass-2); color: #fff; }
.crop-actions .save { background: var(--gold-grad); color: #1a1200; }

/* ===== Visualizador de documento ===== */
.docview-frame { width: 100%; height: 70vh; border: 1px solid var(--stroke); border-radius: 14px; background: #fff; }
.docview-actions { display: flex; gap: 10px; margin-top: 12px; }
.docview-actions a, .docview-actions button { flex: 1; text-align: center; text-decoration: none; border: 1px solid var(--stroke); background: var(--glass); color: var(--txt); border-radius: 13px; padding: 13px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ===== Bloco de notas protegido ===== */
.vault-lock { text-align: center; padding: 40px 10px; }
.vault-lock .vl-ic { font-size: 54px; margin-bottom: 14px; }
.vault-lock h3 { font-size: 18px; font-weight: 800; }
.vault-lock p { font-size: 13px; color: var(--txt-2); margin: 8px 0 20px; line-height: 1.5; }
.vault-lock .field { max-width: 280px; margin: 0 auto 12px; text-align: left; }
.note-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: 15px; padding: 14px; margin-bottom: 10px; cursor: pointer; }
.note-card .nt { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.note-card .nc { font-size: 13px; color: var(--txt-2); margin-top: 6px; white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.note-card .ncat { font-size: 11px; color: var(--gold-2); margin-top: 8px; }
.vault-bar { display: flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: 12px; color: var(--txt-2); }
.vault-bar .lockic { color: var(--green); }
.vault-bar button { margin-left: auto; background: none; border: 1px solid var(--stroke); color: var(--txt-2); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
