/* oFinanceiro — estilos */
:root {
  --ink: #0B0B0F;
  --ink-2: #3A3A44;
  --muted: #5F5F6A;
  --muted-2: #6B6B76;
  --surface: #F2F2F4;
  --surface-2: #F6F6F8;
  --line: #E4E4E8;
  --line-2: #F0F0F3;
  --pos: #0F7B37;
  --neg: #B0154F;
  --alert: #D61F69;
  --grad-card: linear-gradient(120deg, #0B0B0F 0%, #24143F 40%, #9B1C9E 76%, #F0508C 100%);
  --grad-btn: linear-gradient(100deg, #0B0B0F 0%, #0B0B0F 45%, #5B1E86 78%, #E04C93 100%);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #E9E9EE;
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
body.body-dark { background: #0B0B0F; }
/* No celular a tela ocupa tudo: fundo branco para a barra de status do iPhone ficar da mesma cor */
@media (max-width: 599px) {
  html, body { background: #fff; }
  html:has(body.body-dark), body.body-dark { background: #0B0B0F; }
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-2); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid #5B1E86; outline-offset: 2px; }

/* Tela */
.screen {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
  padding: max(20px, env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
@media (min-width: 600px) {
  .screen { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: 36px; box-shadow: 0 30px 80px rgba(11,11,15,.12); }
}
.screen.full-bleed { padding-left: 0; padding-right: 0; }
.screen.full-bleed > .pad { padding-left: 24px; padding-right: 24px; }
.screen.dark {
  background: linear-gradient(180deg, #0B0B0F 0%, #0B0B0F 35%, #2A1248 62%, #8E1C8F 84%, #E8448E 100%);
  color: #fff;
  align-items: center;
  text-align: center;
}
.screen.dark a { color: #fff; }
.grow { flex-grow: 1; }

/* Flash */
.flash { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.flash-ok { background: #DDF5E4; color: #0F5A2A; }
.flash-err { background: #FDE2E2; color: #8F1414; }
.flash-info { background: var(--surface); color: var(--ink); }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.topbar-title { font-size: 16px; font-weight: 700; text-align: center; flex: 1; }
.topbar-spacer { width: 44px; }
.circle-btn {
  width: 44px; height: 44px; border-radius: 22px; background: var(--ink); color: #fff !important;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; cursor: pointer;
}
.circle-btn.light { background: var(--surface); color: var(--ink) !important; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--ink); cursor: pointer; position: relative; flex-shrink: 0;
}
.dot-badge { position: absolute; top: 10px; right: 11px; width: 10px; height: 10px; border-radius: 5px; background: var(--alert); border: 2px solid #fff; }

/* Tipografia */
.h-xl { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
.h-lg { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.8px; }
.h-md { font-size: 18px; font-weight: 700; }
.lead { font-size: 15px; line-height: 1.5; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }

/* Botões */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 58px; border-radius: 29px; border: 0; width: 100%;
  font-weight: 700; font-size: 16px; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--grad-btn); color: #fff !important; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-dark { background: var(--ink); color: #fff !important; }
.btn-outline { background: #fff; border: 1.5px solid #E1E1E6; color: var(--ink); }
.btn-ghost { background: none; height: 48px; font-size: 15px; font-weight: 600; }
.btn-danger { background: #fff; border: 1.5px solid #E1E1E6; color: var(--neg) !important; }
.btn-sm { height: 48px; border-radius: 24px; font-size: 14px; }
.btn[disabled], .btn.disabled { background: #A3A3AC; pointer-events: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px;
  background: var(--surface); font-size: 12px; font-weight: 700; border: 0; cursor: pointer; white-space: nowrap;
}
.pill-dark { background: var(--ink); color: #fff !important; }
.pill-grad { background: linear-gradient(100deg, #24143F, #9B1C9E 70%, #D63A86); color: #fff !important; }
.btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Segmentado */
.seg { display: grid; gap: 4px; padding: 4px; border-radius: 24px; background: var(--surface); }
.seg a, .seg label {
  height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #4A4A55; cursor: pointer;
}
.seg a.on, .seg input:checked + label { background: var(--ink); color: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:focus-visible + label { outline: 2px solid #5B1E86; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid #E1E1E6; background: #fff;
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 700;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: 13px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; height: 52px; border-radius: 16px; border: 1.5px solid #E1E1E6; padding: 0 18px;
  background: #fff; font-size: 15px; outline: none; appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235F5F6A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.textarea { height: 88px; padding: 14px 18px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.input::placeholder { color: #8A8A94; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap .icon-btn { position: absolute; right: 4px; top: 4px; color: var(--muted); }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 15px; color: var(--muted); }
.search .input { height: 48px; border-radius: 24px; padding-left: 44px; border-color: #D9D9DE; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex-shrink: 0; }
.check a { font-weight: 700; }
.error-text { color: var(--neg); font-size: 13px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Avatar e linhas */
.avatar { border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.avatar.square { border-radius: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amt { font-size: 16px; font-weight: 700; }
.amt-in { color: var(--pos); }
.amt-neg { color: var(--neg); }
.list { display: flex; flex-direction: column; }
.list.divided > * { border-bottom: 1px solid var(--line-2); }
.day-label { text-align: center; font-size: 12px; color: var(--muted); padding: 12px 0 4px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 8px; }
.section-head .actions { display: flex; gap: 6px; }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.link-row { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line-2); }
.link-row .t { flex: 1; font-size: 15px; font-weight: 600; }
.link-row .m { font-size: 13px; color: var(--muted); }
.link-row svg { color: var(--muted-2); }
.group-label { margin: 20px 0 2px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* Cartão / carteira */
.wallet { display: flex; gap: 12px; margin-top: 14px; margin-right: -24px; overflow: hidden; }
.bank-card {
  position: relative; flex-shrink: 0; width: 318px; max-width: calc(100% - 48px); height: 188px; border-radius: 22px;
  background: var(--grad-card); color: #fff; padding: 20px 22px; display: flex; flex-direction: column;
}
.bank-card.frozen { background: linear-gradient(120deg, #3A3A44, #6B6B76); }
.bank-card .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: 1px; }
.bank-card .brand { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.bank-card .holder { font-size: 12px; opacity: .85; margin-top: 4px; }
.bank-card .bal { font-size: 31px; font-weight: 800; letter-spacing: -.8px; }
.bank-card .bal-label { font-size: 13px; opacity: .85; display: flex; align-items: center; gap: 8px; }
.bank-card .eye { background: none; border: 0; color: #fff; padding: 0; cursor: pointer; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; }
.bank-card .chip-ic { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #EDEDED, #A9A9B2); }
.bank-card .badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.18); letter-spacing: 0; }
.mc { display: inline-flex; }
.mc span { width: 22px; height: 22px; border-radius: 50%; background: #E0393E; }
.mc span + span { background: #F5A623; margin-left: -9px; opacity: .9; }
.card-peek { flex-shrink: 0; width: 60px; height: 188px; border-radius: 22px 0 0 22px; background: linear-gradient(160deg, #1B1B22, #3A3A46); }
.cards-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 20px -24px 0; padding: 0 24px; scrollbar-width: none; }
.cards-scroll::-webkit-scrollbar { display: none; }
.cards-scroll .bank-card { scroll-snap-align: center; width: 100%; max-width: none; flex: 0 0 100%; height: 200px; justify-content: space-between; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots a { width: 6px; height: 6px; border-radius: 3px; background: #D9D9DE; }
.dots a.on { width: 22px; background: var(--ink); }

/* Ações rápidas */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.quick .ic { width: 52px; height: 52px; border-radius: 26px; border: 1.5px solid #E1E1E6; display: flex; align-items: center; justify-content: center; }
.quick a:first-child .ic { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Menu inferior */
.nav-space { height: 96px; flex-shrink: 0; }
.nav-pill {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  display: flex; gap: 6px; padding: 6px; border-radius: 30px; background: var(--surface);
  box-shadow: 0 10px 30px rgba(11,11,15,.12);
}
.nav-pill a { width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.nav-pill a.on { background: var(--ink); color: #fff; }
.nav-pill a:not(.on):hover { background: #E4E4E8; }

/* Valores grandes e teclado */
.amount-big { text-align: center; margin-top: 14px; font-size: 48px; font-weight: 800; letter-spacing: -1.5px; }
.amount-big.zero { color: #A3A3AC; }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.keypad button {
  height: 58px; border: 0; border-radius: 14px; background: var(--surface); font-size: 24px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; touch-action: manipulation;
}
.keypad button:active { background: #E4E4E8; }
.recipient { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 26px; background: var(--surface); }
.source {
  align-self: center; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px;
  border-radius: 18px; border: 1.5px solid #E1E1E6; font-size: 12px; font-weight: 600; margin-top: 22px; background: #fff;
}
.source .dotg { width: 22px; height: 22px; border-radius: 11px; background: linear-gradient(120deg, #24143F, #9B1C9E 60%, #F0508C); flex-shrink: 0; }
.source select { border: 0; background: transparent; font-size: 12px; font-weight: 700; outline: none; max-width: 230px; cursor: pointer; }

/* Switch */
.switch-form { margin: 0; display: inline-flex; }
.switch {
  width: 52px; height: 32px; border: 0; border-radius: 16px; padding: 3px; cursor: pointer; display: flex;
  background: #D4D4DA; justify-content: flex-start; flex-shrink: 0;
}
.switch span { width: 26px; height: 26px; border-radius: 13px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--ink); justify-content: flex-end; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.toggle-row .row-main .row-title { white-space: normal; }

/* Progresso */
.bar { height: 8px; border-radius: 4px; background: #ECECF0; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.bar.grad > span { background: linear-gradient(90deg, #0B0B0F, #5B1E86 70%, #E04C93); }
.bar.warn > span { background: #C77700; }
.bar.over > span { background: var(--alert); }
.bar.light { background: rgba(255,255,255,.25); }
.bar.light > span { background: #fff; }

/* Painéis */
.panel { border-radius: 20px; padding: 16px 18px; background: var(--surface-2); }
.panel-grad { border-radius: 24px; padding: 20px 22px; background: var(--grad-card); color: #fff; }
.panel-grad .sub { font-size: 13px; opacity: .88; }
.panel-grad .big { font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.box { border-radius: 22px; padding: 16px 18px; border: 1.5px solid #ECECF0; display: flex; flex-direction: column; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.stat { border-radius: 18px; padding: 14px 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 17px; }

/* Detalhes recolhíveis */
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] > summary .chev { transform: rotate(90deg); }
.chev { transition: transform .15s; display: inline-flex; }
.fold-body { padding: 12px 0 16px; }

/* Rosca */
.donut-wrap { position: relative; height: 250px; display: flex; align-items: center; justify-content: center; margin-top: 18px; }
.donut-wrap svg { transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 16px; }
.legend span { display: flex; align-items: center; gap: 8px; font-size: 12px; min-width: 0; }
.legend i { width: 10px; height: 10px; border-radius: 5px; flex-shrink: 0; }
.legend em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend b { margin-left: auto; }

/* Detalhe da transação */
.hero-band { height: 170px; margin: calc(-1 * max(20px, env(safe-area-inset-top))) -24px 0; background: #ECEEF1; position: relative; overflow: hidden; }
.hero-band i { position: absolute; background: #fff; display: block; }
@media (min-width: 600px) { .hero-band { border-radius: 36px 36px 0 0; } }
.hero-back { position: absolute; left: 24px; top: max(20px, env(safe-area-inset-top)); z-index: 2; }
.hero-avatar { margin-top: -46px; align-self: center; border: 5px solid #fff; position: relative; }
.dl { margin: 0; display: flex; flex-direction: column; }
.dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.round-actions { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.round-actions a, .round-actions button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink); }
.round-actions .ic { width: 48px; height: 48px; border-radius: 24px; border: 1.5px solid #E1E1E6; display: flex; align-items: center; justify-content: center; }

/* QR */
.qr-box { margin-top: 18px; width: 216px; height: 216px; padding: 14px; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; }
.qr-box svg { display: block; }
.copy-field { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 6px 6px 18px; border-radius: 18px; background: var(--surface); }
.copy-field span { flex: 1; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }

/* Sucesso */
.success-ic { width: 104px; height: 104px; border-radius: 52px; background: #22C55E; box-shadow: 0 0 0 14px rgba(34,197,94,.16); display: flex; align-items: center; justify-content: center; color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: #fff !important; }
.btn-white { background: #fff; color: var(--ink) !important; }

/* Onboarding */
.stack-cards { position: relative; height: 320px; margin-top: 24px; }
.stack-cards .c1 { position: absolute; left: 120px; top: 70px; width: 236px; height: 148px; border-radius: 16px; background: linear-gradient(135deg, #F7F7F9, #E2E2E7); box-shadow: 0 18px 40px rgba(11,11,15,.12); transform: rotate(14deg); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-2); font-size: 11px; font-weight: 600; }
.stack-cards .c2 { position: absolute; left: 0; top: 30px; width: 252px; height: 158px; border-radius: 18px; background: var(--grad-card); box-shadow: 0 24px 48px rgba(60,20,90,.35); transform: rotate(-12deg); padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.steps { display: flex; gap: 6px; }
.steps span { width: 24px; height: 5px; border-radius: 3px; background: #D9D9DE; }
.steps span.on { width: 32px; background: var(--ink); }

/* Planos */
.plan { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.plan .col { display: flex; flex-direction: column; gap: 2px; }
.plan .col.r { align-items: flex-end; margin-left: auto; }
.plan .n { font-size: 16px; font-weight: 800; }
.plan .p { font-size: 18px; font-weight: 800; }
.plan .s { font-size: 12px; color: var(--muted); }
input:checked + .plan { border-color: transparent; background: linear-gradient(120deg, #0B0B0F 0%, #24143F 50%, #7E1A88 100%); color: #fff; }
input:checked + .plan .s { color: #DCD3E6; }
.plan-radio { position: absolute; opacity: 0; pointer-events: none; }
.plan-radio:focus-visible + .plan { outline: 2px solid #5B1E86; }
.feats { margin: 0; padding: 0; list-style: none; }
.feats li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.feats .ck { width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* Aviso de instalação do app */
.install {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: calc(100% - 24px); max-width: 416px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px 12px 12px; border-radius: 22px;
  background: #fff; box-shadow: 0 16px 40px rgba(11,11,15,.18), 0 0 0 1px rgba(11,11,15,.05);
  animation: install-in .35s ease-out;
}
.install[hidden] { display: none; }
.install.above-nav { bottom: calc(92px + env(safe-area-inset-bottom)); }
.install-ic { border-radius: 12px; flex-shrink: 0; }
.install-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.install-txt strong { font-size: 14px; color: var(--ink); }
.install-txt b { color: var(--ink); }
.ios-share { display: inline-flex; vertical-align: -3px; color: #0A84FF; }
.install-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.install-actions .pill { height: 36px; }
.install-x { width: 36px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
@keyframes install-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .install { animation: none; } }
/* Instalado (tela cheia): respeita a área do relógio/notch */
@media (display-mode: standalone) { .screen { padding-top: max(28px, env(safe-area-inset-top)); } }

/* Passo a passo de instalação no iPhone */
.ios-sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.ios-sheet-wrap[hidden] { display: none; }
html.ios-sheet-open, html.ios-sheet-open body { overflow: hidden; }
.ios-sheet-bg { position: absolute; inset: 0; background: rgba(11,11,15,.45); animation: ios-fade .25s ease-out; }
.ios-sheet {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(64px + env(safe-area-inset-bottom));
  width: calc(100% - 24px); max-width: 416px; max-height: calc(100% - 110px); overflow-y: auto;
  background: #fff; border-radius: 26px; padding: 10px 18px 18px;
  box-shadow: 0 24px 60px rgba(11,11,15,.28);
  animation: ios-up .3s ease-out;
}
.ios-sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.ios-sheet-head { display: flex; align-items: center; gap: 12px; }
.ios-sheet-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ios-sheet-head h2 { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 800; color: var(--ink); }
.ios-sheet-ic { border-radius: 12px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(11,11,15,.06); }
.ios-lead { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ios-lead b, .ios-steps b, .ios-tip b { color: var(--ink); }
.ios-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ios-step { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--line-2); }
.ios-step-n { width: 26px; height: 26px; border-radius: 13px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ios-step-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ios-step-ic { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: #0A84FF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ios-tip { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.ios-sheet .btn { margin-top: 14px; width: 100%; }
.ios-arrow {
  position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 22px; background: #0A84FF; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(10,132,255,.4);
  animation: ios-bounce 1.2s ease-in-out infinite;
}
@keyframes ios-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ios-up { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ios-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .ios-sheet, .ios-sheet-bg, .ios-arrow { animation: none; } }
