/* Korea Parts · Links de pagamento — estilos do app */
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: italic; font-display: swap; src: url('/fonts/barlow-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: italic; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-style: normal; font-display: swap; src: url('/fonts/nunito-latin-900-normal.woff2') format('woff2'); }

:root {
  --red: #E0182D; --red-dark: #B8121F; --blue: #1F3FB0; --blue-dark: #162E85; --navy: #0E1B4D;
  --bg: #F4F5F9; --card: #FFFFFF; --border: #E3E6EF; --text: #16203A; --muted: #66708A; --faint: #9AA3B8;
  --green: #148A4E; --green-bg: #E4F5EC; --amber: #B45309; --amber-bg: #FDF1E1; --gray: #6B7280; --gray-bg: #EEF0F4;
  --purple: #6D28D9; --purple-bg: #EFE9FB; --wa: #1FAF5A;
  --font: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
  --logo: 'Nunito', 'Arial Rounded MT Bold', 'Segoe UI', sans-serif;
  --radius: 14px; --nav-h: 76px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.35; -webkit-font-smoothing: antialiased; overscroll-behavior-y: contain; }
a { color: var(--blue); text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { flex: 0 0 auto; }

/* ---------- estrutura ---------- */
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.shell { max-width: 560px; width: 100%; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); position: relative; }
@media (min-width: 600px) { .shell { box-shadow: 0 0 0 1px var(--border); } }
.stripe { height: 6px; display: flex; flex: 0 0 auto; }
.stripe i { flex: 1; } .stripe i:first-child { background: var(--red); } .stripe i:last-child { background: var(--blue); }
.header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; padding-top: var(--safe-top); }
.header-row { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; gap: 8px; }
.header-row.sub { height: 56px; padding: 0 8px 0 4px; }
.header-title { font-family: var(--cond); font-weight: 700; font-size: 22px; color: var(--navy); line-height: 1; }
.header-left { display: flex; align-items: center; gap: 2px; min-width: 0; }
.header-actions { display: flex; align-items: center; gap: 6px; }
main.content { flex: 1; padding: 18px 20px calc(var(--nav-h) + 24px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; }
main.content.no-nav { padding-bottom: calc(24px + var(--safe-bottom)); }
.page-title { font-family: var(--cond); font-weight: 800; font-size: 30px; color: var(--navy); line-height: 1; margin: 0; }
.page-sub { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* ---------- marca ---------- */
.logo { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.logo .parts { font-family: var(--cond); font-style: italic; font-weight: 700; color: var(--red); letter-spacing: .5px; margin-right: 2px; }
.logo .word { display: flex; align-items: center; font-family: var(--logo); font-weight: 900; color: var(--navy); letter-spacing: -.5px; }
.logo.sm .parts { font-size: 9px; margin-bottom: -2px; } .logo.sm .word { font-size: 22px; } .logo.sm svg { width: 20px; height: 20px; margin: 0 1px; }
.logo.lg .parts { font-size: 24px; margin-bottom: -5px; } .logo.lg .word { font-size: 58px; } .logo.lg svg { width: 54px; height: 54px; margin: 0 1px; }
.logo svg { transform: rotate(-35deg); }

/* ---------- navegação inferior ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; pointer-events: none; }
.nav-inner { pointer-events: auto; width: 100%; max-width: 560px; height: calc(var(--nav-h) + var(--safe-bottom)); padding: 0 8px var(--safe-bottom); background: var(--card); border-top: 1px solid var(--border); display: flex; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .2px; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-item.active { color: var(--blue); font-weight: 700; }
.nav-item svg { width: 24px; height: 24px; }

/* ---------- componentes ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.section-title { font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .6px; text-transform: uppercase; color: var(--navy); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.kv .k { font-size: 14px; color: var(--muted); } .kv .v { font-size: 15px; font-weight: 500; text-align: right; word-break: break-word; }
.kv .v.strong { font-weight: 700; } .kv .v.green { color: var(--green); font-weight: 700; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.input { height: 50px; width: 100%; border: 1.5px solid var(--border); border-radius: 12px; background: var(--card); padding: 0 14px; font-size: 16px; font-weight: 500; outline: none; appearance: none; -webkit-appearance: none; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 63, 176, .12); }
.input.error { border-color: var(--red); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-right: 44px; }
.input-wrap .suffix { position: absolute; right: 12px; color: var(--faint); display: flex; align-items: center; background: none; border: 0; padding: 4px; cursor: pointer; }
select.input { 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='%239AA3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field-error { font-size: 13px; color: var(--red); font-weight: 500; }
.amount-input { height: 64px; border: 2px solid var(--blue); border-radius: 14px; background: var(--card); display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.amount-input .prefix { font-family: var(--cond); font-weight: 700; font-size: 22px; color: var(--muted); }
.amount-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: var(--cond); font-weight: 800; font-size: 36px; color: var(--navy); letter-spacing: -.5px; padding: 0; }
.amount-input.error { border-color: var(--red); }
.row { display: flex; gap: 12px; } .row > * { flex: 1; min-width: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: var(--card); color: var(--text); border: 1.5px solid var(--border); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.chip.lg { height: 40px; padding: 0 16px; font-size: 14px; }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip.active.navy { background: var(--navy); border-color: var(--navy); }
.btn { height: 54px; width: 100%; border-radius: 14px; border: 0; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .05s ease, opacity .15s ease; }
.btn:active { transform: scale(.985); } .btn[disabled] { opacity: .55; cursor: default; }
.btn.shadow-red { box-shadow: 0 10px 22px rgba(224, 24, 45, .28); }
.btn.blue { background: var(--blue); } .btn.navy { background: var(--navy); } .btn.wa { background: var(--wa); box-shadow: 0 10px 22px rgba(31, 175, 90, .28); }
.btn.outline { background: var(--card); color: var(--blue); border: 1.5px solid var(--blue); height: 50px; }
.btn.sm { height: 44px; font-size: 15px; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--blue); height: 44px; }
.btn.danger-text { background: transparent; color: var(--red); height: 44px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.icon-btn svg { width: 22px; height: 22px; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: 0 0 auto; border: 0; cursor: pointer; }
.avatar.navy { background: var(--navy); } .avatar.lg { width: 40px; height: 40px; font-size: 15px; } .avatar.off { background: #C9CFDD; }
.badge { height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.badge.paid { background: var(--green-bg); color: var(--green); } .badge.pending, .badge.creating { background: var(--amber-bg); color: var(--amber); }
.badge.expired, .badge.cancelled { background: var(--gray-bg); color: var(--gray); } .badge.refunded { background: var(--purple-bg); color: var(--purple); } .badge.error { background: #FDE8EA; color: var(--red); }
.money { font-family: var(--cond); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.5px; white-space: nowrap; }
.money .cur { font-weight: 700; margin-right: 4px; font-size: .55em; }
.money.xl { font-size: 40px; } .money.lg { font-size: 30px; } .money.md { font-size: 20px; }
.money.white { color: #fff; }
.link-box { display: flex; align-items: center; gap: 10px; border: 1.5px dashed #B8C0D6; border-radius: 12px; background: var(--card); padding: 10px 10px 10px 14px; }
.link-box .url { flex: 1; min-width: 0; font-size: 13px; color: var(--blue); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-box .copy { width: 36px; height: 36px; border-radius: 10px; background: var(--gray-bg); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); border: 0; cursor: pointer; }
.link-box .copy svg { width: 18px; height: 18px; }
.banner { border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.banner .ico { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.banner .t { font-size: 16px; font-weight: 700; } .banner .s { font-size: 13px; }
.banner.paid { background: var(--green-bg); color: var(--green); } .banner.paid .ico { background: var(--green); }
.banner.pending { background: var(--amber-bg); color: var(--amber); } .banner.pending .ico { background: var(--amber); }
.banner.expired, .banner.cancelled { background: var(--gray-bg); color: var(--gray); } .banner.expired .ico, .banner.cancelled .ico { background: var(--gray); }
.banner.refunded { background: var(--purple-bg); color: var(--purple); } .banner.refunded .ico { background: var(--purple); }
.banner.info { background: #E8ECFA; color: var(--blue); } .banner.info .ico { background: var(--blue); }
.banner.error { background: #FDE8EA; color: var(--red); } .banner.error .ico { background: var(--red); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .xsmall { font-size: 12px; } .center { text-align: center; }
.inline { display: flex; align-items: center; gap: 6px; }
.hr { height: 1px; background: var(--border); }
.summary { background: var(--navy); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; overflow: hidden; color: #fff; }
.summary::before { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 999px; background: var(--blue); opacity: .55; }
.summary::after { content: ''; position: absolute; right: 28px; top: 44px; width: 70px; height: 70px; border-radius: 999px; background: var(--red); opacity: .55; }
.summary > * { position: relative; z-index: 1; }
.summary .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.7); }
.summary .sub { font-size: 13px; color: rgba(255,255,255,.8); }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; width: 100%; -webkit-tap-highlight-color: transparent; }
.item:active { background: #FAFBFD; }
.item .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item .desc { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.item .sub span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 40px; height: 40px; color: var(--faint); }
.search { display: flex; align-items: center; gap: 8px; height: 44px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--card); padding: 0 12px; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; }
.search svg { width: 18px; height: 18px; color: var(--faint); }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; align-items: center; gap: 12px; }
.step .dot { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.step .dot.done { background: var(--blue); color: #fff; } .step .dot.done svg { width: 13px; height: 13px; }
.step .dot.wait { border: 2.5px solid var(--amber); background: var(--card); }
.step .dot.off { border: 2.5px solid var(--border); background: var(--card); }
.step .body { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.step .body .t { font-size: 14px; font-weight: 600; } .step .body .t.wait { color: var(--amber); } .step .body .t.off { color: var(--faint); }
.step .body .s { font-size: 12px; color: var(--muted); white-space: nowrap; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.user-row:last-of-type { border-bottom: 0; }
.user-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.user-row .name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row .name.off { color: var(--faint); }
.pill { height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; display: inline-flex; align-items: center; background: var(--gray-bg); color: var(--gray); }
.pill.gerente { background: #E8ECFA; color: var(--blue); }
.toggle { width: 44px; height: 26px; border-radius: 999px; background: #C9CFDD; position: relative; border: 0; cursor: pointer; flex: 0 0 auto; padding: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s ease; }
.toggle.on { background: var(--green); } .toggle.on::after { left: 21px; }
.check-circle { width: 84px; height: 84px; border-radius: 999px; background: var(--green-bg); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.check-circle svg { width: 44px; height: 44px; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 999px; animation: spin .8s linear infinite; }
.spinner.dark { border-color: rgba(31,63,176,.2); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #ECEEF4 25%, #F4F5F9 50%, #ECEEF4 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--card); }
.login .top { background: var(--blue); flex: 0 0 auto; padding: calc(44px + var(--safe-top)) 32px 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.login .panel { background: #fff; border-radius: 20px; padding: 26px 34px 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 18px 40px rgba(8, 16, 60, .35); }
.login .panel .tag { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue); margin-top: 4px; text-align: center; }
.login .title { font-family: var(--cond); font-weight: 700; font-style: italic; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.login .band { height: 14px; background: var(--red); }
.login .form { flex: 1; padding: 30px 24px 22px; display: flex; flex-direction: column; gap: 16px; max-width: 480px; width: 100%; margin: 0 auto; }
.login h1 { font-family: var(--cond); font-weight: 800; font-size: 30px; color: var(--navy); line-height: 1; margin: 0; }

/* ---------- toast / modal ---------- */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 16px + var(--safe-bottom)); display: flex; justify-content: center; pointer-events: none; z-index: 50; padding: 0 16px; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 480px; display: flex; align-items: center; gap: 10px; animation: rise .2s ease; }
.toast.error { background: var(--red); } .toast.success { background: var(--green); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(14, 27, 77, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 600px) { .modal-bg { align-items: center; padding: 20px; } }
.modal { background: var(--card); width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow: auto; animation: rise .2s ease; }
@media (min-width: 600px) { .modal { border-radius: 20px; } }
.modal h2 { font-family: var(--cond); font-weight: 800; font-size: 24px; color: var(--navy); margin: 0; line-height: 1; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; background: var(--gray-bg); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.fab-space { height: 8px; }
