:root {
  --bg: #161616;
  --card: #232323;
  --card-2: #2c2c2c;
  --card-3: #353535;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #ffffff;
  --text-2: #8d8d8d;
  --text-3: #5e5e5e;
  --accent: #ffffff;
  --on-accent: #121212;
  --green: #5ad08a;
  --red: #ff6159;

  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', 'Inter', sans-serif;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 72px;
  --gutter: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

i[data-i] { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; }
i[data-i] svg { width: 100%; height: 100%; }

.app {
  position: relative; z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px var(--gutter) calc(var(--tabbar-h) + 40px + var(--safe-bottom));
}
.screen { display: none; animation: fade .22s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 30px 4px 14px;
}
.section-row { display: flex; align-items: center; justify-content: space-between; }
.section-row .section-title { margin-right: auto; }
.section-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; margin-top: 16px; }
.section-meta i { width: 18px; height: 18px; }
.link-btn { display: inline-flex; align-items: center; gap: 2px; color: var(--text-2); font-weight: 600; font-size: 15px; margin-top: 16px; }
.link-btn i { width: 16px; height: 16px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 17px; font-weight: 700;
  text-decoration: none;
  transition: transform .12s ease, opacity .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn i { width: 22px; height: 22px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:disabled { background: var(--card-3); color: var(--text-3); cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); }
.btn-dark { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn + .btn { margin-top: 10px; }

.icon-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.icon-btn i { width: 22px; height: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 15px; font-weight: 600;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip i { width: 17px; height: 17px; }
.chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.home-head { display: flex; align-items: center; gap: 14px; padding: 8px 0 18px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  border: 2px solid var(--text);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--line-2);
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  background: var(--card);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hello {
  flex: 1; min-width: 0;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.stories {
  display: flex; gap: 10px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 6px;
  scroll-padding-inline: var(--gutter);
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  position: relative; flex: 0 0 128px; height: 132px;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  padding: 14px 14px 12px;
  border-radius: 26px;
  text-align: left;
  background: var(--card);
  border: 2px solid var(--text);
  box-shadow: inset 0 0 0 3px var(--bg);
  overflow: hidden;
  scroll-snap-align: start;
}
.story.seen { border-color: #4a4a4a; }
.story-title {
  position: relative; z-index: 1; display: block; max-width: 100%;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 1.2;
  overflow-wrap: break-word;
}
.story-art { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; }
.story-art svg { width: 100%; height: 100%; }
.story.inverse { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 3px var(--bg); }

.balance-card { padding: 24px 22px 22px; margin-top: 16px; }
.balance-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
}
.balance {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px;
  margin: 10px 0 6px;
  font-family: var(--font-display); font-weight: 800;
}
.balance-num { font-size: 46px; letter-spacing: -.02em; line-height: 1; }
.balance-cur { font-size: 22px; color: var(--text-2); }
.balance-sub { color: var(--text-2); font-size: 14px; line-height: 1.4; min-height: 20px; margin-bottom: 20px; }

.qr-banner {
  display: flex; align-items: center; gap: 16px;
  width: 100%; margin-top: 12px;
  padding: 18px 18px 18px 18px;
  border-radius: var(--r-xl);
  background: var(--accent); color: var(--on-accent);
  text-align: left;
  transition: transform .12s ease;
}
.qr-banner:active { transform: scale(.985); }
.qr-banner-icon {
  width: 56px; height: 56px; border-radius: 18px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--bg); color: var(--text);
}
.qr-banner-icon i { width: 28px; height: 28px; }
.qr-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qr-banner-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.15; }
.qr-banner-sub { font-size: 14px; line-height: 1.3; color: #6b6b6b; font-weight: 500; }
.qr-banner-arrow { width: 22px; height: 22px; color: #9a9a9a; }
.qr-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.qr-alt .chip { justify-content: center; height: 46px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 128px; padding: 16px;
  border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  text-align: left;
  transition: transform .12s ease, background .15s;
}
.tile:active { transform: scale(.97); background: var(--card-2); }
.tile-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--card-3);
  margin-bottom: 16px;
}
.tile-icon i { width: 22px; height: 22px; }
.tile-name { font-weight: 600; font-size: 16px; line-height: 1.25; margin-top: auto; }
.tile-sub { color: var(--text-2); font-size: 13.5px; line-height: 1.3; margin-top: 3px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tx-list, .tx-group { display: flex; flex-direction: column; }
.tx {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.tx:last-child { border-bottom: 0; }
.tx-icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
}
.tx-icon i { width: 21px; height: 21px; }
.tx-body { flex: 1; min-width: 0; }
.tx-title { font-weight: 600; font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-sub { color: var(--text-2); font-size: 13.5px; line-height: 1.3; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-amount { flex-shrink: 0; font-family: var(--font-display); font-weight: 800; font-size: 17px; white-space: nowrap; }
.tx-amount.in { color: var(--green); }
.tx-date { color: var(--text-2); font-weight: 600; font-size: 15px; margin: 22px 0 4px; }
.tx-date:first-child { margin-top: 6px; }
.empty { color: var(--text-2); text-align: center; padding: 34px 12px; font-size: 15px; }

.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0 18px; }
.page-head-col { flex-direction: column; align-items: flex-start; gap: 6px; }
.page-title { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -.015em; line-height: 1.1; }
.page-meta { color: var(--text-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.page-sub { color: var(--text-2); font-size: 15px; }

.chips {
  display: flex; gap: 8px;
  margin: 0 calc(-1 * var(--gutter)) 8px;
  padding: 0 var(--gutter) 6px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.sub-head { display: flex; align-items: center; gap: 14px; padding: 14px 0 22px; }
.round-back {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
}
.round-back i { width: 20px; height: 20px; color: var(--text-2); }
.sub-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -.01em; line-height: 1.1; }
.sub-sub { color: var(--text-2); font-size: 15px; margin-top: 4px; }

.amount-card { padding: 22px 20px 16px; text-align: center; }
.amount-input {
  width: 100%;
  background: transparent; border: 0; outline: 0;
  text-align: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: 54px; line-height: 1.1;
  color: var(--text);
  padding: 0;
}
.amount-input::placeholder { color: var(--text-3); }
.amount-unit { color: var(--text-2); font-weight: 600; font-size: 15px; letter-spacing: .06em; margin-top: 6px; }
.amount-hint {
  border-top: 1px solid var(--line);
  margin-top: 16px; padding-top: 14px;
  text-align: left; color: var(--text-2); font-size: 14px; line-height: 1.45;
}
.amount-hint b { color: var(--text); font-weight: 600; }
.amount-max { color: var(--text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.field {
  display: block; width: 100%;
  height: 58px; padding: 0 20px;
  border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  outline: 0;
  font-size: 17px; font-weight: 600;
  transition: border-color .15s;
}
.field::placeholder { color: var(--text-3); }
.field:focus { border-color: var(--line-2); }
.field-mono { letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > * + .btn { margin-top: 0; }
.note { color: var(--text-2); font-size: 14.5px; line-height: 1.45; padding: 2px 6px; }
.note-warn { color: var(--text); }
.err { color: var(--red); font-size: 14px; padding: 0 6px; min-height: 0; }

.summary { padding: 6px 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row span:first-child { color: var(--text-2); }
.summary-row span:last-child { font-weight: 600; text-align: right; word-break: break-all; }
.summary-row .copyable { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.summary-row .copyable i { width: 16px; height: 16px; color: var(--text-2); }

.op-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.list { display: flex; flex-direction: column; overflow: hidden; }
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left; width: 100%;
}
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: var(--card-2); }
.list-icon { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--card-3); }
.list-icon i { width: 22px; height: 22px; }
.list-body { flex: 1; min-width: 0; }
.list-name { font-weight: 600; }
.list-desc { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.list-arrow { width: 18px; height: 18px; color: var(--text-3); }

.user-found { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }

.ref-hero { padding: 24px 22px 22px; background: var(--accent); color: var(--on-accent); border: 0; }
.ref-hero-label { font-weight: 600; font-size: 15px; opacity: .6; }
.ref-hero-value { font-family: var(--font-display); font-weight: 800; font-size: 62px; letter-spacing: -.03em; line-height: 1.05; margin: 4px 0 10px; }
.ref-hero-text { font-size: 15.5px; line-height: 1.45; opacity: .7; margin-bottom: 20px; }
.ref-hero .btn-primary { background: var(--bg); color: var(--text); }

.ref-empty { display: flex; gap: 16px; align-items: flex-start; padding: 20px; margin-top: 14px; }
.ref-empty-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--card-3); flex-shrink: 0; }
.ref-empty-text { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.ref-earn { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding: 18px 8px; }
.ref-earn > div { text-align: center; padding: 0 6px; }
.ref-earn > div + div { border-left: 1px solid var(--line); }
.ref-earn-val { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.ref-earn-label { color: var(--text-2); font-size: 12.5px; margin-top: 4px; }

.ref-levels { padding: 6px 20px; }
.ref-level { position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 0; }
.ref-level + .ref-level::before {
  content: ""; position: absolute; left: 7px; top: -14px; height: 26px; width: 1px; background: var(--line-2);
}
.ref-level-num { width: 16px; color: var(--text-2); font-weight: 700; text-align: center; font-family: var(--font-display); }
.ref-level-body { flex: 1; min-width: 0; }
.ref-level-name { font-weight: 600; font-size: 17px; }
.ref-level-rate { color: var(--text-2); font-size: 14.5px; margin-top: 3px; }
.ref-level-count { font-family: var(--font-display); font-weight: 800; font-size: 20px; }

.ref-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 20px; text-align: left; }
.ref-link-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 15px; }
.ref-link i { width: 22px; height: 22px; }

.tabbar {
  position: fixed; z-index: 20;
  left: 50%; transform: translateX(-50%);
  bottom: calc(14px + var(--safe-bottom));
  display: flex; gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(36, 36, 36, .82);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 96px; height: 60px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12.5px; font-weight: 600;
  transition: background .18s, color .18s;
}
.tab i { width: 24px; height: 24px; }
.tab.active { background: rgba(255, 255, 255, .1); color: var(--text); }

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 41;
  left: 50%; bottom: 0;
  width: 100%; max-width: 520px;
  max-height: 88vh; overflow-y: auto;
  transform: translate(-50%, 105%);
  background: var(--card);
  border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 30px 30px 0 0;
  padding: 10px 20px calc(24px + var(--safe-bottom));
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--card-3); margin: 0 auto 18px; }
.sheet-title { font-family: var(--font-display); font-weight: 800; font-size: 24px; text-align: center; }
.sheet-sub { color: var(--text-2); text-align: center; margin: 6px 0 18px; font-size: 15px; }
.sheet .summary { background: var(--card-2); border-radius: var(--r-md); margin-bottom: 16px; }
.sheet .field { background: var(--card-2); }
.pay-amount { text-align: center; margin: 4px 0 18px; }
.pay-amount-rub { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -.02em; }
.pay-amount-usdt { color: var(--text-2); font-weight: 600; margin-top: 2px; }
.story-sheet-art { width: 84px; height: 84px; margin: 6px auto 14px; }
.story-sheet-art svg { width: 100%; height: 100%; }
.story-sheet-text { color: var(--text-2); text-align: center; font-size: 15.5px; line-height: 1.5; margin: 10px 0 22px; }

.status {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  background: var(--bg);
  animation: fade .2s ease;
}
.status-ring {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--text);
  box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px var(--line-2);
  margin-bottom: 22px;
}
.status-ring i { width: 38px; height: 38px; }
.status-ring.spin { border-color: var(--line-2); border-top-color: var(--text); animation: spin 1s linear infinite; }
.status-ring.ok { color: var(--green); border-color: var(--green); }
.status-ring.fail { color: var(--red); border-color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.status-title { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.status-text { color: var(--text-2); margin-top: 8px; max-width: 320px; line-height: 1.45; }
.status-btn { max-width: 240px; margin-top: 26px; }

.loader {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--bg);
  transition: opacity .3s ease;
}
.loader.hide { opacity: 0; pointer-events: none; }
.loader-emblem { width: 92px; height: 92px; color: var(--text); animation: pulse 1.4s ease-in-out infinite; }
.loader-word, .login-word { font-family: var(--font-display); font-weight: 800; letter-spacing: .32em; font-size: 15px; padding-left: .32em; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.96); } }

.login {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; background: var(--bg);
}
.login > * { width: 100%; max-width: 340px; }
.login-emblem { width: 84px; height: 84px; color: var(--text); }
.login-word { text-align: center; margin-bottom: 4px; }
.login-sub { color: var(--text-2); text-align: center; font-size: 15px; margin-bottom: 10px; }

.camera { position: fixed; inset: 0; z-index: 70; background: #000; }
.camera video { width: 100%; height: 100%; object-fit: cover; }
.camera-frame {
  position: absolute; left: 50%; top: 45%;
  width: 240px; height: 240px; transform: translate(-50%, -50%);
  border: 2px solid #fff; border-radius: 32px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55);
}
.camera-hint { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-weight: 600; }
.camera-close {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14);
}

.toast {
  position: fixed; z-index: 100;
  left: 50%; top: calc(14px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, calc(-100% - 40px));
  visibility: hidden;
  max-width: calc(100% - 32px);
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.err { background: var(--red); color: #fff; }

@media (max-width: 370px) {
  :root { --gutter: 12px; }
  .tile { padding: 14px; min-height: 120px; }
  .tile-sub { font-size: 12.5px; }
  .tab { width: 84px; }
  .hello { font-size: 22px; }
  .balance-num { font-size: 40px; }
}

.err:empty { display: none; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld-label { padding: 0 6px; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.amount-hint { text-align: center; }
.amount-input { caret-color: var(--text); }
.field-mono::placeholder { letter-spacing: normal; }

.page-title { font-size: 28px; }
.page-head { padding: 14px 0 16px; }
.page-head-col { gap: 8px; }
.chips { margin-bottom: 14px; }
.sub-title { font-size: 26px; }
.sub-sub { font-size: 14.5px; line-height: 1.35; }

.list-badge {
  flex-shrink: 0;
  padding: 4px 10px; border-radius: 999px;
  background: var(--card-3); color: var(--text);
  font-size: 13px; font-weight: 600;
}
.list-foot { margin: 12px 0 14px; font-size: 13.5px; }

.pay-box { padding: 18px 20px; }
.pay-box-label { color: var(--text-2); font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.pay-box-row { display: flex; align-items: center; gap: 12px; }
.pay-box-amount { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.01em; }
.pay-box-amount small { font-size: 15px; color: var(--text-2); }
.pay-box-addr { flex: 1; min-width: 0; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.45; word-break: break-all; }
.pay-box-sep { height: 1px; background: var(--line); margin: 16px 0; }
.copy-btn {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--card-3);
}
.copy-btn i { width: 19px; height: 19px; }
.copy-btn:active { transform: scale(.94); }
.mono-wrap { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }

.op-chips .chip { height: 42px; padding: 0 16px; }
.summary-row { align-items: baseline; }
.note b { color: var(--text); font-weight: 600; }
.list-name, .list-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item { gap: 12px; }
.amount-hint b, .amount-max { white-space: nowrap; }
.op-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .op-chips .chip { justify-content: center; padding: 0 8px; }
@media (max-width: 370px) {
  .qr-banner { gap: 12px; padding: 16px; }
  .qr-banner-icon { width: 48px; height: 48px; border-radius: 15px; }
  .qr-banner-icon i { width: 24px; height: 24px; }
  .qr-banner-title { font-size: 18px; }
  .qr-banner-sub { font-size: 13px; }
  .page-title { font-size: 25px; }
  .sub-title { font-size: 23px; }
  .amount-input { font-size: 46px; }
  .ref-hero-value { font-size: 52px; }
  .story { flex-basis: 118px; height: 124px; }
}
