/* Liberty Eagle Bank — app bancário fictício (tema "usa"). Mobile-first. */
:root {
  --navy-900: #061631;
  --navy-800: #0a2342;
  --navy-700: #12315c;
  --navy-600: #1d4579;
  --red: #b22234;
  --red-soft: #fde8ea;
  --green: #1a7f4b;
  --green-soft: #e3f4ea;
  --bg: #eef2f8;
  --card: #ffffff;
  --ink: #0f1d33;
  --muted: #5d6b82;
  --line: #e1e7f0;
  --gold: #c9a227;
  --tier: #c9a227;
  --radius: 18px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--sans); color: var(--ink);
  background: linear-gradient(180deg, var(--navy-800) 0, var(--navy-700) 300px, var(--bg) 300px) no-repeat, var(--bg);
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
/* Faixas discretas no topo */
.stripes {
  position: absolute; top: 0; left: 0; right: 0; height: 300px; pointer-events: none; z-index: 0; opacity: .07;
  background:
    radial-gradient(circle at 12% 30%, #fff 0 1.5px, transparent 2px) 0 0 / 38px 38px,
    repeating-linear-gradient(180deg, transparent 0 22px, #fff 22px 44px);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}

/* ---------- Barra superior ---------- */
.appbar { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; max-width: 520px; margin: 0 auto; color: #fff; }
.appbar__logo { width: 34px; height: 34px; flex: none; }
.appbar__text { display: flex; flex-direction: column; line-height: 1.1; }
.appbar__text strong { letter-spacing: .14em; font-size: 14px; }
.appbar__text span { font-size: 11px; opacity: .75; letter-spacing: .04em; }
.appbar__badge { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; opacity: .9; }

.wrap { position: relative; z-index: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 4px 16px 8px; }
.hello { color: #fff; margin: 8px 2px 14px; font-size: 15px; opacity: .95; }
.hello strong { font-weight: 800; }

/* ---------- Cartão ---------- */
.card {
  position: relative; overflow: hidden;
  aspect-ratio: 1.586; max-height: 230px; width: 100%;
  border-radius: 18px; padding: 18px 20px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(178,34,52,.55), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, var(--navy-600), var(--navy-900));
  box-shadow: 0 18px 40px rgba(6,22,49,.45), inset 0 0 0 1px rgba(255,255,255,.12);
  animation: rise .5s ease-out both;
}
.card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; border-radius: 50%;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 8px, transparent 8px 16px);
  pointer-events: none;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__bank { font-weight: 900; letter-spacing: .18em; font-size: 13px; }
.card__type { font-size: 10px; font-weight: 800; letter-spacing: .14em; opacity: .8; }
.card__mid { display: flex; align-items: center; gap: 12px; }
.chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f6e7a8, #c9a227 55%, #9a7a12); position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.chip i { position: absolute; left: 6px; right: 6px; height: 1px; background: rgba(0,0,0,.25); }
.chip i:nth-child(1) { top: 10px; } .chip i:nth-child(2) { top: 16px; } .chip i:nth-child(3) { top: 22px; }
.contactless { width: 24px; height: 24px; opacity: .85; }
.card__number { all: unset; cursor: pointer; font-family: var(--mono); font-size: clamp(17px, 5.2vw, 21px); letter-spacing: .14em; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.card__bottom { display: flex; align-items: flex-end; gap: 18px; }
.card__bottom small { display: block; font-size: 8.5px; letter-spacing: .14em; opacity: .7; }
.card__bottom span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card__star { width: 30px; height: 30px; fill: #fff; margin-left: auto; opacity: .95; }

/* ---------- Saldo ---------- */
.balance {
  margin-top: 16px; background: var(--card); border-radius: var(--radius); padding: 18px 18px 16px;
  box-shadow: 0 6px 24px rgba(15,29,51,.08); text-align: center; position: relative; overflow: hidden;
}
.balance__label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.balance__label span:first-child { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: var(--navy-700); }
.balance__value-wrap { position: relative; display: flex; justify-content: center; }
.balance__value { display: block; font-size: clamp(50px, 16vw, 68px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; font-variant-numeric: tabular-nums; color: var(--navy-800); margin: 4px 0 2px; }
.balance__value.neg { color: var(--red); }
.balance__currency { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.balance__delta { position: absolute; top: 2px; right: 4%; font-size: 20px; font-weight: 900; opacity: 0; }
.balance__delta.show { animation: delta 2.4s ease-out forwards; }
.balance__delta.up { color: var(--green); } .balance__delta.down { color: var(--red); }
@keyframes delta { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.15); } 70% { opacity: 1; transform: translateY(-6px); } 100% { opacity: 0; transform: translateY(-16px); } }
.balance.flash-up { animation: flashUp 1.2s ease-out; } .balance.flash-down { animation: flashDown 1.2s ease-out; }
@keyframes flashUp { 30% { box-shadow: 0 0 0 3px rgba(26,127,75,.45), 0 10px 30px rgba(26,127,75,.25); } }
@keyframes flashDown { 30% { box-shadow: 0 0 0 3px rgba(178,34,52,.45), 0 10px 30px rgba(178,34,52,.25); } }
.tier { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 10px 0 12px; }
.tier__chip { background: var(--tier); color: #fff; font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.tier__stars { letter-spacing: .12em; font-size: 15px; }
.tier__stars .on { color: var(--gold); } .tier__stars .off { color: #d5dbe5; }
.progress { height: 8px; border-radius: 999px; background: #e7ecf4; overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--navy-600), var(--tier)); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.progress__hint { margin: 7px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Ações ---------- */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px;
  border: 0; border-radius: 16px; background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: 13.5px;
  box-shadow: 0 4px 16px rgba(15,29,51,.06); cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.action small { font-weight: 600; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.action:active { transform: translateY(1px); }
.action:disabled { opacity: .45; cursor: not-allowed; }
.action__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: #e8eef7; color: var(--navy-700); margin-bottom: 4px; }
.action__icon--send { background: var(--red-soft); color: var(--red); }
.action__icon--receive { background: var(--green-soft); color: var(--green); }
.no-pin { text-align: center; font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Titular ---------- */
.holder { margin-top: 14px; background: var(--card); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; box-shadow: 0 4px 16px rgba(15,29,51,.06); }
.holder img { width: 72px; height: 86px; object-fit: cover; border-radius: 12px; background: #e8eef7; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.holder dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.holder dl > div { min-width: 0; }
.holder dt { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.holder dd { margin: 1px 0 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); letter-spacing: .04em; }

/* ---------- Extrato ---------- */
.statement { margin-top: 14px; background: var(--card); border-radius: var(--radius); padding: 14px 14px 6px; box-shadow: 0 4px 16px rgba(15,29,51,.06); scroll-margin-top: 12px; }
.statement h2 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.statement h2 small { font-size: 11px; color: var(--muted); font-weight: 600; }
.statement ul { list-style: none; margin: 0; padding: 0; }
.statement li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.statement li:first-child { border-top: 0; }
.st-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 16px; background: #e8eef7; color: var(--navy-700); }
.st-icon.in { background: var(--green-soft); color: var(--green); }
.st-icon.out { background: var(--red-soft); color: var(--red); }
.st-desc { min-width: 0; }
.st-desc strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-desc span { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-amount { text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.st-amount.pos { color: var(--green); } .st-amount.neg { color: var(--red); }
.st-amount small { display: block; font-weight: 600; font-size: 10.5px; color: var(--muted); }
.statement__empty { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 0 14px; margin: 0; }

.meta { display: flex; justify-content: space-between; align-items: center; margin: 12px 4px 0; font-size: 11.5px; color: var(--muted); }
.conn { display: inline-flex; align-items: center; gap: 5px; }
.conn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.conn.offline .conn__dot { background: var(--red); }
.conn.loading .conn__dot { background: var(--gold); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Botões / instalação / aviso ---------- */
.btn-primary { display: block; width: 100%; padding: 14px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; background: var(--navy-800); cursor: pointer; margin-top: 6px; }
.btn-primary:disabled { opacity: .55; cursor: wait; }
.btn-ghost { display: inline-block; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-block { display: block; width: 100%; margin-top: 8px; text-align: center; }
.install { margin: 16px 0 4px; text-align: center; }
.btn-install { width: 100%; padding: 14px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--red), #8e1426); box-shadow: 0 6px 18px rgba(178,34,52,.3); cursor: pointer; }
.install__ios { font-size: 13px; color: var(--muted); margin: 10px 4px 0; line-height: 1.5; }
.notice { text-align: center; color: #fff; padding: 40px 12px; }
.notice h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: .04em; }

/* ---------- Sheets (dialogs) ---------- */
.sheet { border: 0; padding: 0; width: min(480px, calc(100vw - 16px)); max-height: calc(100vh - 24px); border-radius: 20px; color: var(--ink); box-shadow: 0 30px 80px rgba(6,22,49,.4); }
.sheet::backdrop { background: rgba(6,22,49,.55); backdrop-filter: blur(2px); }
.sheet > form, .sheet > div { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; }
.sheet__head h2 { margin: 0; font-size: 18px; }
.sheet__close { border: 0; background: #eef2f8; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.sheet label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--navy-700); }
.sheet input { font: inherit; font-size: 17px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-width: 0; }
.sheet input:focus { outline: 2px solid rgba(29,69,121,.25); border-color: var(--navy-600); }
.money-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding-left: 12px; }
.money-input span { font-weight: 900; font-size: 20px; color: var(--navy-700); }
.money-input input { border: 0 !important; outline: 0 !important; flex: 1; font-size: 24px; font-weight: 900; }
.pin-input { letter-spacing: .6em; text-align: center; font-size: 24px !important; font-family: var(--mono); }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-amounts button { font: inherit; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #f5f8fc; color: var(--navy-700); cursor: pointer; }
.sheet__hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.center { text-align: center; }
.step { display: flex; flex-direction: column; gap: 12px; }
.form-error { margin: 0; color: var(--red); background: var(--red-soft); border-radius: 10px; padding: 9px 11px; font-size: 13.5px; font-weight: 700; }
.confirm { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: #f5f8fc; border-radius: 16px; padding: 18px; }
.confirm small { color: var(--muted); }
.confirm__amount { font-size: 40px; font-weight: 900; color: var(--navy-800); }
.confirm__to { font-size: 20px; }
.confirm em { margin-top: 6px; font-size: 13px; color: var(--muted); }
.receipt { text-align: center; padding: 8px 0; }
.receipt__check { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 900; animation: pop .4s ease-out; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.receipt h3 { margin: 6px 0; }
.receipt p { margin: 4px 0; }
.small { font-size: 12px; color: var(--muted); }
.account-big { font-size: clamp(30px, 10vw, 40px); font-weight: 900; text-align: center; color: var(--navy-800); background: #f5f8fc; border: 2px dashed #c9d4e5; border-radius: 16px; padding: 16px 8px; letter-spacing: .08em; user-select: all; }

/* ---------- Rodapé ---------- */
.footer { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 18px 20px 28px; text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.footer p { margin: 4px 0; }
.footer__main { font-weight: 800; letter-spacing: .1em; color: var(--navy-700); }
.footer__small { opacity: .8; font-size: 10.5px; }
.footer__contact { margin-bottom: 8px !important; }
.footer__contact a { color: var(--navy-600); }
.footer__legal { font-size: 10.5px; opacity: .6; }

/* ---------- Página inicial ---------- */
.home-hero { text-align: center; color: #fff; padding: 22px 6px 6px; }
.home-hero img { border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.home-hero h1 { margin: 16px 0 6px; letter-spacing: .12em; font-size: 22px; }
.home-hero p { margin: 0; opacity: .9; line-height: 1.55; }
.home-card { margin-top: 26px; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: 0 6px 24px rgba(15,29,51,.08); }
.home-card label { display: block; font-size: 13px; font-weight: 800; color: var(--navy-700); margin-bottom: 8px; }
.home__row { display: flex; gap: 8px; }
.home__row input { flex: 1; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--line); font: inherit; font-family: var(--mono); }
.home__row button { padding: 0 18px; border: 0; border-radius: 12px; font: inherit; font-weight: 800; color: #fff; background: var(--navy-800); cursor: pointer; }
.home-card .btn-install { display: block; text-decoration: none; text-align: center; margin-bottom: 12px; }
.home__admin { text-align: center; margin-top: 22px; font-size: 13px; }
.home__admin a { color: var(--navy-600); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
