:root {
  color-scheme: light;
  --ink: #182033;
  --muted: #697086;
  --line: #e8e6ef;
  --surface: #ffffff;
  --canvas: #fffaf4;
  --green: #5b4bd9;
  --green-soft: #efedff;
  --lime: #ffd166;
  --coral: #ff6b62;
  --mint: #4ecfaf;
  --danger: #c43f4d;
  --shadow: 0 18px 48px rgb(61 51 101 / 13%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: linear-gradient(145deg, #e9e4ff, #ffe9df 55%, #ddf7ef); color: var(--ink); }
button { font: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }

#app {
  width: min(100%, 460px);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--canvas);
  position: relative;
  overflow: hidden;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
#app::before { content: ""; position: absolute; width: 210px; height: 210px; top: 70px; right: -115px; border-radius: 50%; background: #ffe0d9; filter: blur(2px); pointer-events: none; }
#app > * { position: relative; }

.boot { min-height: 100svh; display: grid; place-content: center; text-align: center; color: var(--muted); }
.spinner { width: 26px; height: 26px; margin: auto; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-shell { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: max(30px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 85% 10%, #ffe5d5 0 12%, transparent 36%), linear-gradient(160deg, #f1eeff, var(--canvas) 48%); }
.auth-logo { display: flex; align-items: center; gap: 10px; margin: 0 4px 26px; color: var(--green); font-size: 22px; letter-spacing: -.6px; }
.auth-logo img { width: 42px; height: 42px; border-radius: 14px; box-shadow: 0 9px 24px rgb(91 75 217 / 25%); }
.auth-card { padding: 24px 20px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 28px; background: rgb(255 255 255 / 86%); box-shadow: 0 20px 55px rgb(61 51 101 / 13%); backdrop-filter: blur(16px); }
.auth-card h1 { margin-bottom: 18px; font-size: clamp(29px, 8vw, 35px); }
.auth-kicker { margin-bottom: 7px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.auth-copy { margin: -5px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 7px; color: #4c5060; font-size: 12px; font-weight: 850; }
.auth-form label small { color: var(--muted); font-weight: 600; }
.auth-form input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); font: inherit; outline: none; }
.auth-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.auth-form .wide { margin-top: 5px; }
.kakao-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 0; border-radius: 15px; background: #fee500; color: #191600; font-weight: 900; cursor: pointer; }
.kakao-button span { font-size: 10px; }
.auth-consents { display: grid; gap: 8px; margin-top: 13px; padding: 12px; border-radius: 14px; background: #f8f7fb; }
.auth-consents label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; cursor: pointer; }
.auth-consents input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.auth-consents b { color: var(--green); }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 10px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-link { display: block; margin: 12px auto 0; }
.auth-switch { margin: 17px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch button { border: 0; background: transparent; color: var(--green); font-weight: 900; cursor: pointer; }
.auth-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.auth-trust span { padding: 6px 9px; border-radius: 999px; background: rgb(255 255 255 / 62%); color: var(--muted); font-size: 9px; font-weight: 800; }
.account-card { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 15px; border: 1px solid #ddd8ff; border-radius: 19px; background: linear-gradient(135deg, #efedff, white); }
.account-avatar { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--green); color: white; font-weight: 900; }
.account-card > div { min-width: 0; }
.account-card strong, .account-card small { display: block; }
.account-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-card small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.account-actions .secondary, .account-actions .plain-button { min-height: 42px; font-size: 11px; }
.delete-account-link { grid-column: 1 / -1; min-height: 36px; border: 0; background: transparent; color: var(--danger); font-size: 11px; font-weight: 750; cursor: pointer; }
.verify-banner { display: flex; align-items: center; gap: 10px; width: 100%; margin: -4px 0 16px; padding: 12px; border: 1px solid #ffdca0; border-radius: 17px; background: #fff7df; color: var(--ink); text-align: left; cursor: pointer; }
.verify-banner > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 11px; background: var(--lime); font-weight: 900; }
.verify-banner > div { min-width: 0; flex: 1; }
.verify-banner strong, .verify-banner small { display: block; }
.verify-banner small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.verify-banner > b { color: #8c6716; font-size: 11px; }
.verification-list { display: grid; gap: 8px; }
.verification-list > button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 68px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.verification-list > button:disabled { cursor: default; opacity: .72; }
.verification-list > button > div { min-width: 0; flex: 1; }
.verification-list strong, .verification-list small { display: block; }
.verification-list small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.verification-list > button > b { color: var(--green); font-size: 10px; white-space: nowrap; }
.verify-state { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 13px; background: #fff3d2; color: #8b6514; font-weight: 900; }
.verify-state.done { background: #e5f8f2; color: #16745b; }
.verify-state.kakao { background: #fee500; color: #191600; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px; }
.brandmark { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 850; letter-spacing: -.6px; }
.brandmark > img { width: 36px; height: 36px; border-radius: 12px; box-shadow: 0 7px 18px rgb(91 75 217 / 25%); }
.location-button, .icon-button { border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.location-button { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 76%); font-size: 13px; font-weight: 750; }
.location-button:hover { background: white; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.location-button.is-live { border-color: #b9eadc; color: #16745b; background: #e9faf5; }
.location-button.is-live::first-letter { color: #24b783; }
.profile-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-weight: 900; cursor: pointer; }

.page { padding: 8px 18px 28px; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 19px; font-size: clamp(28px, 8vw, 36px); line-height: 1.12; letter-spacing: -1.5px; }
h2 { margin-bottom: 12px; font-size: 19px; letter-spacing: -.5px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 26px 2px 12px; }
.section-head h2 { margin: 0; }
.section-head span { color: var(--muted); font-size: 12px; }

.trust-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 16px; border: 1px solid #dfdbff; border-radius: 18px; background: linear-gradient(135deg, #f0edff, #fff); color: #4639a8; }
.trust-card i { display: grid; place-items: center; flex: 0 0 36px; height: 36px; background: var(--surface); border-radius: 12px; color: var(--green); font-style: normal; box-shadow: 0 5px 14px rgb(91 75 217 / 12%); }
.trust-card strong { display: block; font-size: 14px; }
.trust-card small { color: #4c7367; }

.coupon-focus { padding: 19px; border-radius: 25px; background: linear-gradient(145deg, #252340, #403b73); color: white; box-shadow: var(--shadow); }
.coupon-focus .coupon-top { display: flex; align-items: center; gap: 12px; }
.brand-icon { display: grid; place-items: center; flex: 0 0 47px; width: 47px; height: 47px; padding: 7px; overflow: hidden; border-radius: 16px; background: white; color: var(--ink); font-size: 13px; font-weight: 900; letter-spacing: -.5px; box-shadow: inset 0 0 0 1px rgb(31 35 48 / 8%), 0 5px 15px rgb(24 32 51 / 8%); }
.brand-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-mega-americano { background: #ffdc00; }
.brand-cu-5000 { background: #f7f1ff; }
.brand-twosome-americano { background: #fff8f6; }
.promise-1 { background: #171915; }
.promise-2 { background: #1e6d54; }
.promise-3 { background: #b4543c; }
.coupon-meta { min-width: 0; flex: 1; }
.coupon-meta strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coupon-meta span { color: #b8bbb3; font-size: 13px; }
.coupon-focus .primary { width: 100%; margin-top: 17px; background: linear-gradient(90deg, var(--lime), #ffb767); color: #332914; }

.arrival-hero { padding: 18px; border-radius: 27px; background: linear-gradient(155deg, #292643, #4d477f); color: white; box-shadow: 0 18px 45px rgb(41 38 67 / 25%); }
.arrival-hero.is-arrived { background: linear-gradient(155deg, #372f76, #6558d5); box-shadow: 0 18px 45px rgb(91 75 217 / 27%); }
.arrival-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: #d8d4ef; font-size: 11px; font-weight: 800; }
.arrival-status span { padding: 5px 8px; border-radius: 999px; background: rgb(255 255 255 / 10%); }
.arrival-status b { color: #fff0a4; }
.arrival-product { display: flex; align-items: center; gap: 12px; }
.arrival-product > div { min-width: 0; flex: 1; }
.arrival-product strong, .arrival-product small { display: block; }
.arrival-product strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.arrival-product small { margin-top: 3px; color: #d3cfe5; font-size: 11px; }
.arrival-thumb { position: relative; display: block; flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border-radius: 18px; background: white; }
.arrival-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.arrival-thumb .brand-icon { position: absolute; right: 5px; bottom: 5px; width: 28px; height: 28px; padding: 4px; border-radius: 9px; }
.use-now { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; margin-top: 17px; padding: 0 18px; border: 0; border-radius: 17px; background: linear-gradient(90deg, var(--lime), #ffb767); color: #332914; font-weight: 900; cursor: pointer; box-shadow: 0 8px 20px rgb(0 0 0 / 15%); }
.use-now span { font-size: 22px; }
.protection-line { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: #d8d4ef; font-size: 10px; }
.protection-line button { border: 0; background: transparent; color: #fff0a4; font-size: 10px; cursor: pointer; }
.arrival-optin, .location-summary { display: flex; align-items: center; gap: 11px; width: 100%; margin-top: 12px; padding: 13px; border: 1px solid #dfdbff; border-radius: 18px; background: linear-gradient(135deg, #f0edff, white); color: var(--ink); text-align: left; cursor: pointer; }
.arrival-optin > span, .location-summary > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 13px; background: white; color: var(--green); box-shadow: 0 5px 14px rgb(91 75 217 / 12%); }
.arrival-optin > div, .location-summary > div { min-width: 0; flex: 1; }
.arrival-optin strong, .arrival-optin small, .location-summary strong, .location-summary small { display: block; }
.arrival-optin small, .location-summary small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.arrival-optin > b, .location-summary > b { color: var(--green); font-size: 11px; }
.location-summary { margin: 0; }
.smart-nearby { display: grid; grid-template-columns: 32px auto 1fr auto; align-items: center; gap: 8px; width: 100%; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #ded9ff; border-radius: 16px; background: rgb(255 255 255 / 82%); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 7px 20px rgb(91 75 217 / 8%); }
.smart-nearby > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: var(--green-soft); color: var(--green); font-weight: 900; }
.smart-nearby strong { font-size: 12px; white-space: nowrap; }
.smart-nearby small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.smart-nearby > b { color: var(--green); font-size: 12px; white-space: nowrap; }
.source-strip { display: flex; align-items: center; gap: 7px; margin: 9px 3px 0; color: #16745b; font-size: 10px; font-weight: 800; }
.source-strip b { color: #24b783; font-size: 8px; }
.source-strip.is-demo { color: #8b6b2f; }
.source-strip.is-demo b { color: #e0aa35; }
.source-notice { margin: 6px 3px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.text-link { border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 800; cursor: pointer; }
.deal-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 155px; gap: 10px; margin: 0 -18px; padding: 0 18px 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.deal-scroll::-webkit-scrollbar { display: none; }
.deal-scroll.large { grid-auto-columns: 175px; }
.deal-card { position: relative; display: grid; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 21px; background: rgb(255 255 255 / 90%); color: var(--ink); text-align: left; cursor: pointer; scroll-snap-align: start; box-shadow: 0 8px 22px rgb(61 51 101 / 6%); }
.deal-card .product-photo { height: 96px; margin: -6px -6px 13px; }
.deal-card .product-photo .brand-icon { width: 34px; height: 34px; padding: 5px; border-radius: 11px; }
.deal-distance { position: absolute; top: 14px; right: 12px; padding: 4px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 900; }
.deal-card > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.deal-card > small { height: 32px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.5; }
.deal-card > div { display: flex; justify-content: space-between; align-items: end; margin-top: 11px; }
.deal-card > div b { color: var(--coral); font-size: 12px; }
.deal-card > div span { font-size: 12px; font-weight: 900; }

.primary, .secondary, .plain-button, .pay-button, .issue-choice {
  min-height: 48px; border: 0; border-radius: 15px; padding: 0 16px; cursor: pointer; font-weight: 800;
}
.primary { background: var(--green); color: white; }
.primary:disabled, .pay-button:disabled { opacity: .5; cursor: wait; }
.secondary { background: #efeee9; color: var(--ink); }
.plain-button { min-height: 40px; background: transparent; color: var(--green); }
.danger { min-height: 48px; border: 0; border-radius: 15px; background: var(--danger); color: white; font-weight: 850; cursor: pointer; }
.danger:disabled { opacity: .5; cursor: wait; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.brand-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 7px; scrollbar-width: none; }
.brand-tabs::-webkit-scrollbar { display: none; }
.brand-chip { flex: 0 0 auto; min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-weight: 800; cursor: pointer; }
.brand-chip.active { border-color: var(--green); background: var(--green); color: white; box-shadow: 0 7px 18px rgb(91 75 217 / 20%); }
.product-card { min-width: 0; border: 1px solid var(--line); background: rgb(255 255 255 / 88%); border-radius: 22px; padding: 15px; text-align: left; cursor: pointer; box-shadow: 0 8px 24px rgb(61 51 101 / 6%); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgb(61 51 101 / 11%); }
.product-card:disabled { opacity: .56; cursor: not-allowed; box-shadow: none; }
.product-card:disabled:hover { transform: none; }
.product-photo { position: relative; display: block; height: 132px; margin: -7px -7px 13px; overflow: hidden; border-radius: 17px; background: #f2efe9; }
.product-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-photo .brand-icon { position: absolute; left: 8px; bottom: 8px; width: 38px; height: 38px; padding: 5px; border-radius: 12px; }
.product-card small { color: var(--muted); }
.product-card strong { display: block; height: 42px; margin: 4px 0 12px; font-size: 14px; line-height: 1.45; }
.price { font-size: 17px; font-weight: 900; }
.discount { margin-left: 4px; color: var(--coral); font-size: 12px; font-weight: 850; }
.supply { display: inline-block; max-width: 100%; margin-top: 8px; padding: 5px 7px; border-radius: 999px; overflow: hidden; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.supply-limited { color: #9b5d18; background: #fff0cd; }
.supply-consignment { color: #18745f; background: #ddf7ef; }

.near-list, .wallet-list { display: grid; gap: 10px; }
.near-row, .wallet-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: rgb(255 255 255 / 88%); border-radius: 18px; padding: 12px; }
.near-row .brand-icon, .wallet-row .brand-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
.near-info, .wallet-info { min-width: 0; flex: 1; }
.near-info strong, .wallet-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near-info span, .wallet-info span { color: var(--muted); font-size: 12px; }
.mini-use { border: 0; border-radius: 12px; padding: 10px 12px; background: var(--green-soft); color: var(--green); font-weight: 850; cursor: pointer; }
.wallet-actions { display: flex; align-items: center; gap: 5px; }
.cancel-mini { border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.wallet-row.is-cancelled { opacity: .58; }

.sell-options { display: grid; gap: 9px; }
.sell-mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.sell-mode-picker button { display: grid; gap: 3px; min-height: 96px; padding: 13px; border: 1px solid var(--line); border-radius: 19px; background: rgb(255 255 255 / 82%); color: var(--ink); text-align: left; cursor: pointer; }
.sell-mode-picker button.active { border-color: var(--green); background: linear-gradient(145deg, #f1efff, white); box-shadow: 0 0 0 2px var(--green-soft); }
.sell-mode-picker span { color: var(--muted); font-size: 12px; font-weight: 800; }
.sell-mode-picker strong { color: var(--green); font-size: 17px; }
.sell-mode-picker small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.sell-product { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 18px; background: rgb(255 255 255 / 88%); color: var(--ink); text-align: left; cursor: pointer; }
.sell-product.active { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.sell-product .brand-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
.sell-product > span { min-width: 0; flex: 1; }
.sell-product strong, .sell-product small { display: block; }
.sell-product small { margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.sell-product > b { color: var(--green); font-size: 12px; }
.quote-card { margin-top: 14px; padding: 18px; border: 1px solid #dcd7ff; border-radius: 22px; background: linear-gradient(145deg, #f1efff, #fff); box-shadow: 0 10px 28px rgb(91 75 217 / 9%); }
.quote-title { display: grid; gap: 8px; margin-bottom: 16px; }
.quote-title small { color: var(--muted); }
.mode-chip { justify-self: start; padding: 5px 8px; border-radius: 999px; background: var(--green); color: white; font-size: 10px; font-weight: 900; }
.quote-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); font-size: 13px; }
.quote-row b { color: var(--ink); }
.quote-total { margin-top: 7px; padding-top: 13px; border-top: 1px solid #dcd7ff; color: var(--ink); font-size: 16px; font-weight: 900; }
.quote-total b { color: var(--green); font-size: 20px; }
.quote-note { display: block; margin-top: 9px; color: var(--muted); text-align: center; }
.scan-image-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin-top: 8px; border: 1px solid #dcd7ff; border-radius: 13px; background: #f5f3ff; color: var(--green); font-size: 12px; font-weight: 850; cursor: pointer; }
.scan-image-button span { font-size: 17px; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.evidence-grid > div { display: grid; gap: 4px; min-width: 0; padding: 13px; border: 1px solid #e3dff1; border-radius: 16px; background: #faf9ff; }
.evidence-grid > div.wide { grid-column: 1 / -1; }
.evidence-grid span { color: var(--muted); font-size: 12px; font-weight: 800; }
.evidence-grid strong { overflow-wrap: anywhere; font-size: 13px; }
.evidence-grid small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.evidence-head { margin-top: 20px; }
.evidence-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.evidence-timeline li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 9px; min-height: 54px; }
.evidence-timeline li:not(:last-child)::before { position: absolute; top: 15px; bottom: -3px; left: 6px; width: 2px; background: #ded9ff; content: ""; }
.evidence-timeline i { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 2px; border: 4px solid #dcd7ff; border-radius: 50%; background: var(--green); }
.evidence-timeline strong, .evidence-timeline span, .evidence-timeline small { display: block; }
.evidence-timeline strong { font-size: 13px; }
.evidence-timeline span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.evidence-timeline small { margin-top: 3px; color: var(--green); font-size: 12px; font-weight: 800; }
.empty-card { display: grid; gap: 5px; margin-top: 14px; padding: 21px; border: 1px dashed #d7d3e3; border-radius: 18px; color: var(--muted); text-align: center; }
.empty-card strong { color: var(--ink); }
.wide { width: 100%; margin-top: 14px; }
.simulator { margin-top: 14px; padding: 14px; border: 1px solid #ded9ff; border-radius: 17px; background: #f5f3ff; }
.simulator > strong, .simulator > small { display: block; }
.simulator > strong { font-size: 13px; }
.simulator > small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.simulator > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.simulator button { min-height: 38px; border: 1px solid #d8d2ff; border-radius: 12px; background: white; color: var(--green); font-size: 11px; font-weight: 850; cursor: pointer; }

.wallet-hero { padding: 20px; border-radius: 25px; background: linear-gradient(145deg, #272443, #554f90); color: white; box-shadow: var(--shadow); }
.balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.balance-grid > div { min-width: 0; padding: 14px; border-radius: 16px; background: rgb(255 255 255 / 9%); }
.balance-grid small, .balance-grid strong { display: block; }
.balance-grid small { color: #d4d0ec; font-size: 10px; }
.balance-grid strong { margin-top: 6px; font-size: clamp(17px, 5vw, 22px); letter-spacing: -.7px; }
.wallet-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.wallet-buttons button { min-height: 43px; border: 0; border-radius: 13px; background: white; color: #403b73; font-weight: 850; cursor: pointer; }
.wallet-buttons button:disabled { opacity: .42; cursor: not-allowed; }
.wallet-boundary { margin: 11px 4px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.ledger-list { display: grid; gap: 8px; }
.ledger-list article { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.ledger-list article > div { min-width: 0; flex: 1; }
.ledger-list strong, .ledger-list small { display: block; }
.ledger-list small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.ledger-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 900; }
.amount-positive { color: #16745b; font-size: 13px; }

.fee-banner { padding: 20px; border: 1px solid #ffd7c7; background: linear-gradient(135deg, #fff0e8, #fff9e8); border-radius: 23px; box-shadow: 0 10px 28px rgb(255 107 98 / 9%); }
.fee-banner strong { display: block; margin-top: 8px; font-size: 25px; }
.fee-banner p { margin: 6px 0 0; color: #735d58; font-size: 13px; line-height: 1.55; }
.fee-banner.seller-fee { border-color: #ddd8ff; background: linear-gradient(135deg, #efecff, #fff); }
.fee-banner.seller-fee p { color: #625c7b; }
.fee-chip { display: inline-block; padding: 4px 7px; border-radius: 999px; background: var(--coral); color: white; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.seller-fee .fee-chip { background: var(--green); }
.business-card { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--muted); font-size: 11px; line-height: 1.45; }
.business-card strong { color: var(--ink); font-size: 13px; }
.demo-legal { margin: 22px 2px 0; color: var(--muted); font-size: 10px; text-align: center; }

.bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 460px); display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 7px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(18px); }
.nav-item { min-height: 52px; border: 0; border-radius: 15px; background: transparent; color: #898b85; cursor: pointer; font-size: 11px; font-weight: 750; }
.nav-item b { display: block; margin-bottom: 3px; font-size: 19px; font-weight: 500; }
.nav-item.active { background: linear-gradient(135deg, #efedff, #ffeceb); color: var(--green); }
.nav-item.quick-nav { position: relative; margin-top: -23px; min-height: 65px; border-radius: 22px; background: linear-gradient(145deg, var(--green), #8068ef); color: white; box-shadow: 0 9px 23px rgb(91 75 217 / 32%); }
.nav-item.quick-nav b { font-size: 24px; }

dialog { width: min(calc(100% - 20px), 440px); max-height: 90svh; margin: auto auto 10px; padding: 0; border: 0; border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
dialog::backdrop { background: rgb(17 19 16 / 55%); backdrop-filter: blur(3px); }
.sheet-body { padding: 22px; }
.sheet-grab { width: 42px; height: 5px; margin: -9px auto 18px; border-radius: 10px; background: #d7d6d0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sheet-head h2 { margin: 0; }
.close { width: 38px; height: 38px; border: 0; border-radius: 12px; background: #efeee9; cursor: pointer; }
.price-promise { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px; border-radius: 15px; background: #e5f8f2; color: #176854; }
.price-promise > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: white; font-weight: 900; }
.price-promise strong, .price-promise small { display: block; }
.price-promise strong { font-size: 13px; }
.price-promise small { margin-top: 2px; color: #4d7e72; }
.summary { display: grid; gap: 10px; margin: 16px 0 20px; padding: 15px; border-radius: 18px; background: var(--canvas); }
.summary div { display: flex; justify-content: space-between; font-size: 14px; }
.summary .total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 900; }
.pay-button { width: 100%; background: linear-gradient(90deg, var(--green), #7864e9); color: white; box-shadow: 0 10px 22px rgb(91 75 217 / 22%); }
.pay-button em { color: #fff0a4; font-style: normal; }
.safe-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.cancel-policy { display: grid; gap: 3px; margin: -5px 0 16px; padding: 12px; border: 1px solid #ece7dc; border-radius: 14px; color: #655f70; background: #fffdf8; font-size: 11px; line-height: 1.5; }
.cancel-policy strong { color: var(--ink); font-size: 12px; }

.barcode-wrap { padding: 17px; border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.barcode { height: 86px; margin: 10px 5px 12px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 5px, #111 5px 6px, transparent 6px 10px, #111 10px 14px, transparent 14px 16px); }
.barcode-code { font: 700 15px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 2px; }
.demo-badge { display: inline-block; margin-bottom: 4px; padding: 6px 9px; border-radius: 999px; background: #fff0ed; color: #9d3932; font-size: 11px; font-weight: 850; }
.coupon-guidance { margin: 16px 0; padding: 14px; border-radius: 16px; background: var(--green-soft); color: #315e50; font-size: 13px; line-height: 1.55; }
.coupon-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.issue-choice { width: 100%; margin-bottom: 8px; background: var(--canvas); text-align: left; }
.warning { padding: 13px; border-radius: 14px; background: #fff0ed; color: #8c3831; font-size: 12px; line-height: 1.5; }
.form-field { display: grid; gap: 7px; margin-top: 16px; }
.form-field label { font-size: 12px; font-weight: 850; }
.form-field label em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 650; }
.form-field input, .form-field select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); font: inherit; outline: none; }
.form-field input:focus, .form-field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.form-field > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.verification-route { display: grid; gap: 4px; margin: 14px 0; padding: 13px 14px; border: 1px solid #dbe6e2; border-radius: 14px; background: #f3f8f6; }
.verification-route strong { color: #174c3c; font-size: 14px; }
.verification-route span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 13px; border: 1px solid #ded9ff; border-radius: 15px; background: #f5f3ff; cursor: pointer; }
.consent-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.consent-check span { min-width: 0; flex: 1; }
.consent-check strong, .consent-check small { display: block; }
.consent-check strong { font-size: 12px; }
.consent-check small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.near-row.is-rejected { opacity: .65; }
.amount-muted { color: var(--muted); font-size: 11px; }
.available-box { display: grid; gap: 4px; padding: 17px; border-radius: 17px; background: var(--green-soft); }
.available-box small { color: var(--muted); }
.available-box strong { color: var(--green); font-size: 24px; }
.permission-visual { display: grid; justify-items: center; gap: 13px; padding: 23px; border-radius: 22px; background: linear-gradient(145deg, #efedff, #fff5ef); text-align: center; }
.permission-visual > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; background: var(--green); color: white; font-size: 27px; box-shadow: 0 10px 23px rgb(91 75 217 / 26%); }
.permission-visual strong { font-size: 19px; line-height: 1.35; }
.permission-points { display: grid; gap: 9px; margin: 17px 0; }
.permission-points p { display: flex; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; }
.permission-points b { color: #16745b; }
.protection-detail { display: grid; gap: 10px; }
.protection-detail p { display: grid; gap: 4px; margin: 0; padding: 14px; border-radius: 16px; background: var(--canvas); }
.protection-detail p b { font-size: 13px; }
.protection-detail p span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-list { display: grid; gap: 9px; }
.settings-list > button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.settings-list > button:disabled { opacity: .62; }
.settings-list > button > div { min-width: 0; flex: 1; }
.settings-list strong, .settings-list small { display: block; }
.settings-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.setting-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; background: var(--green-soft); color: var(--green); font-size: 19px; font-weight: 900; }

#toast { position: fixed; z-index: 50; left: 50%; bottom: 100px; translate: -50% 20px; width: min(calc(100% - 36px), 410px); padding: 13px 16px; border-radius: 15px; background: var(--ink); color: white; text-align: center; font-size: 13px; opacity: 0; pointer-events: none; transition: .22s ease; }
#toast.show { opacity: 1; translate: -50% 0; }

@media (min-width: 600px) {
  #app { min-height: calc(100svh - 30px); margin-top: 15px; border-radius: 28px; box-shadow: var(--shadow); }
  .bottom-nav { bottom: 15px; border-radius: 0 0 28px 28px; }
  dialog { margin-bottom: calc((100svh - min(90svh, 760px)) / 2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.deletion-body { min-width: 0; padding: max(28px, env(safe-area-inset-top)) 18px max(34px, env(safe-area-inset-bottom)); background: #f6f4ee; }
.deletion-main { width: min(100%, 620px); margin: auto; }
.deletion-header { display: flex; align-items: center; gap: 10px; }
.deletion-header img { width: 42px; height: 42px; border-radius: 13px; }
.deletion-header strong { font-size: 18px; }
.deletion-card { margin-top: 28px; padding: clamp(22px, 5vw, 38px); border: 1px solid #e2ddeb; border-radius: 28px; background: white; box-shadow: 0 18px 48px rgb(61 51 101 / 10%); }
.deletion-card h1 { margin: 0; font-size: clamp(28px, 7vw, 42px); line-height: 1.18; letter-spacing: -1.5px; }
.deletion-lead { margin: 14px 0 24px; color: #6d687b; line-height: 1.65; }
.deletion-card ol { display: grid; gap: 13px; padding-left: 24px; line-height: 1.55; }
.deletion-notice { margin: 24px 0; padding: 16px; border-radius: 17px; background: #fff0ed; color: #873f39; font-size: 14px; line-height: 1.6; }
.deletion-button { display: grid; place-items: center; min-height: 54px; border-radius: 16px; background: var(--green); color: white; text-decoration: none; font-weight: 850; }
.deletion-card small { display: block; margin-top: 18px; color: #777281; line-height: 1.6; }
