:root { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #162a29; background: #f5f7f6; }
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
.shell { max-width: 520px; margin: auto; min-height: 100dvh; background: #f5f7f6; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.topbar { height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; background: #193d39; color: white; font-size: 18px; font-style: italic; border-radius: 6px; }
.avatar, .account-avatar { display: grid; place-items: center; background: #dcece5; color: #1c6552; font-weight: 700; border-radius: 50%; }
.avatar { width: 32px; height: 32px; font-size: 13px; }
main { padding: 0 24px; }
.eyebrow { color: #2b8c68; font-size: 12px; font-weight: 750; margin: 0 0 11px; }
h1 { font-size: 29px; line-height: 1.25; margin: 0; letter-spacing: 0; }
h2 { font-size: 18px; margin: 0; }
.muted { color: #84908d; font-size: 13px; margin: 8px 0 0; }
.heading { padding: 31px 0 26px; }
.balance { background: #173c37; color: white; border-radius: 8px; padding: 23px 24px 0; min-height: 181px; overflow: hidden; }
.balance-top, .balance-bottom { display: flex; align-items: center; justify-content: space-between; }
.balance-top { color: #b9d1c7; font-size: 13px; }
.balance-top small { font-size: 10px; margin-left: 5px; color: #93b0a6; }
.balance-icon { display: grid; place-items: center; background: #2b5b4f; color: #b8edcb; border-radius: 50%; width: 31px; height: 31px; font-size: 20px; }
.amount { font-size: 39px; font-weight: 750; padding: 12px 0 22px; font-variant-numeric: tabular-nums; }
.balance-bottom { border-top: 1px solid #386057; padding: 14px 0; color: #b9d1c7; font-size: 12px; }
.balance-bottom strong { color: white; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 14px; }
.section-title button { border: 0; color: #288461; background: none; font-size: 12px; font-weight: 650; }
.rate-list, .notice-list, .record-list { background: white; border: 1px solid #e9eeeb; border-radius: 8px; overflow: hidden; }
.rate-row, .notice-row, .compact-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 13px 15px; border-bottom: 1px solid #eff2f0; }
.rate-row:last-child, .notice-row:last-child, .compact-row:last-child { border-bottom: 0; }
.rate-row strong { flex: 1; font-size: 13px; }
.rate-row > span:last-child { font-size: 15px; font-weight: 750; color: #247b60; }
.rate-dot { width: 11px; height: 11px; background: #e8aa59; border-radius: 50%; }
.rate-row:nth-child(2) .rate-dot { background: #48aa77; }
.integration-list { border-top: 1px solid #e1e8e3; }
.integration-row { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-bottom: 1px solid #e1e8e3; font-size: 13px; }
.integration-row code { color: #47645a; overflow-wrap: anywhere; font-size: 12px; }
.integration-base { align-items: flex-start; }
.integration-base code { max-width: 70%; color: #47645a; overflow-wrap: anywhere; text-align: right; font-size: 13px; }
.secret-view { display: grid; gap: 15px; margin: 16px 0; }
.secret-view label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.secret-view textarea { width: 100%; padding: 11px; border: 1px solid #ccd9d2; border-radius: 6px; background: white; color: #29443b; font: 12px/1.5 monospace; resize: vertical; overflow-wrap: anywhere; }
.credential-actions { display: grid; gap: 9px; margin: 14px 0 20px; }
.credential-form { border-top: 1px solid #dce5df; padding-top: 19px; }
.credential-form h2 { font-size: 15px; margin-bottom: 8px; }
.credential-form select { width: 100%; min-height: 46px; border: 1px solid #cbd9d1; border-radius: 6px; padding: 0 12px; background: white; font: inherit; }
.credential-code-row { display: flex; gap: 8px; }
.credential-code-row input { min-width: 0; flex: 1; }
.credential-code-row .secondary { flex: 0 0 112px; width: auto; }
.order-search { display: flex; gap: 8px; margin-bottom: 17px; }
.order-search input { min-width: 0; flex: 1; height: 44px; padding: 0 12px; border: 1px solid #cbd9d1; border-radius: 6px; font: inherit; font-size: 13px; }
.order-search .secondary { flex: 0 0 70px; width: auto; }
.order-action { margin-top: 17px; }
.refund-trigger { color: #a94436; border-color: #dda9a0; }
.refund-form { border-top: 1px solid #dce5df; margin-top: 22px; padding-top: 20px; }
.refund-form h2 { font-size: 16px; }
.notice-row { width: 100%; border-top: 0; border-left: 0; border-right: 0; background: white; text-align: left; color: inherit; }
.notice-row span { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.notice-row strong { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice-row small { font-size: 11px; color: #91a09a; }
.notice-row b { color: #9daaa3; font-size: 20px; font-weight: 400; }
.record-icon { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 6px; background: #e8f3ec; color: #308466; font-size: 18px; }
.record-icon.warning { background: #fff1dc; color: #ba7a22; font-weight: 750; }
.record-main, .record-side { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.record-main { flex: 1; }
.record-side { text-align: right; }
.record-main strong, .record-side strong { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.record-main small, .record-side small { color: #95a09b; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.record-side .completed { color: #2a9869; }
.record-side .pending, .record-side .processing { color: #bb8424; }
.complaint-row { width: 100%; border-top: 0; border-left: 0; border-right: 0; background: white; text-align: left; color: inherit; }
.plain-section { margin: 30px 0; border-top: 1px solid #e1e8e3; padding-top: 20px; }
.plain-section h2 { font-size: 14px; margin: 18px 0 7px; }
.plain-section p, .notice-body { line-height: 1.7; font-size: 13px; color: #4e5f58; overflow-wrap: anywhere; }
.notice-body { padding-bottom: 34px; }
.notice-body p { margin: 0 0 14px; white-space: pre-wrap; }
.notice-body h2, .notice-body h3, .notice-body h4 { margin: 22px 0 9px; color: #193d39; font-size: 15px; }
.notice-body ul, .notice-body ol { margin: 0 0 16px; padding-left: 22px; }
.notice-body li { margin-bottom: 7px; }
.notice-body a { color: #247b60; text-decoration: underline; text-underline-offset: 2px; }
.notice-body blockquote { margin: 16px 0; padding-left: 12px; border-left: 3px solid #9ac7ae; }
.notice-body table { width: 100%; border-collapse: collapse; font-size: 12px; }
.notice-body th, .notice-body td { padding: 8px; border: 1px solid #dbe5de; }
.detail-heading { font-size: 25px; overflow-wrap: anywhere; }
.empty.compact { padding: 25px; }
.order-list { background: white; border: 1px solid #e9eeeb; border-radius: 8px; overflow: hidden; }
.order-row { width: 100%; min-height: 82px; display: flex; align-items: center; text-align: left; gap: 12px; border: 0; border-bottom: 1px solid #eff2f0; padding: 12px 15px; background: white; color: inherit; }
.order-row:last-child { border-bottom: 0; }
.order-row:active { background: #f5f9f6; }
.order-symbol { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; background: #e7f3ed; color: #23875c; font-size: 16px; font-weight: 700; border-radius: 7px; }
.order-text, .order-side { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.order-text { flex: 1; }
.order-text strong, .order-side strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-text small, .order-side small { color: #95a09b; font-size: 10px; white-space: nowrap; }
.order-side { text-align: right; }
.order-side .paid, .status-pill.paid { color: #2a9869; }
.order-side .unpaid, .status-pill.unpaid { color: #bb8424; }
.order-side .refunded, .status-pill.refunded { color: #8b6d8f; }
.order-side .frozen, .status-pill.frozen { color: #b35343; }
.filters { display: flex; gap: 7px; margin-bottom: 18px; overflow-x: auto; }
.filters button { flex: 1; min-width: 67px; border: 1px solid #e1e8e3; background: white; color: #687874; border-radius: 6px; padding: 9px 6px; font-size: 12px; }
.filters button.selected { background: #1f6953; color: white; border-color: #1f6953; }
.load-more { display: block; width: 100%; margin: 14px 0 0; padding: 13px; border: 1px solid #e1e8e3; border-radius: 6px; background: white; color: #247b60; font-size: 12px; font-weight: 700; }
.load-more:disabled { opacity: .6; }
.empty, .center-state { color: #84908d; text-align: center; padding: 65px 20px; font-size: 13px; }
.center-state h2 { color: #162a29; }
.primary { border: none; border-radius: 6px; color: white; background: #1c7657; padding: 12px 22px; font-weight: 700; }
.primary:disabled { opacity: .6; }
.primary.large { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; padding: 0 18px; font-size: 15px; }
.primary.large span { font-size: 21px; }
.welcome { padding-top: 8px; }
.signup-content { padding-top: 34px; }
.signup-content > p:not(.eyebrow) { color: #71817c; font-size: 14px; line-height: 1.7; }
.signup-content .primary { margin-top: 14px; }
.signup-content .signup-warning { margin: 14px 0 0; color: #9a6026; font-size: 12px; }
.signup-next { margin-top: 32px; border-top: 1px solid #dce5df; padding-top: 21px; }
.signup-next strong { font-size: 14px; }
.signup-next p { color: #798782; font-size: 12px; line-height: 1.6; }
.signup-next .secondary { margin-top: 7px; }
.signup-form { margin-top: 0; gap: 11px; }
.signup-form > label:not(:first-child) { margin-top: 8px; }
.signup-form .secondary { min-height: 45px; background: #fff; }
.signup-form .terms-check { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-weight: 400; line-height: 1.5; }
.signup-form .terms-check input { width: 18px; min-height: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; }
.terms-check button { border: 0; padding: 0; background: none; color: #1c7657; text-decoration: underline; }
.signup-result { border-top: 1px solid #dce5df; padding-top: 24px; }
.signup-result p { color: #687874; font-size: 13px; line-height: 1.6; }
.signup-result .primary { width: 100%; min-height: 48px; margin-top: 18px; }
.payment-methods { display: grid; gap: 10px; margin-top: 20px; }
.terms-overlay { position: fixed; z-index: 10; inset: 0; display: grid; align-items: end; justify-items: center; background: #102b2788; }
.terms-dialog { display: flex; flex-direction: column; width: min(100%, 520px); max-height: min(78dvh, 700px); padding: 20px 24px calc(22px + env(safe-area-inset-bottom)); background: #fff; border-radius: 8px 8px 0 0; }
.terms-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.terms-header button { border: 0; background: none; color: #687874; font-size: 27px; line-height: 1; }
.terms-content { width: 100%; height: min(52dvh, 520px); min-height: 260px; border: 0; margin: 18px 0; background: #fff; }
.terms-dialog .primary { flex: none; min-height: 46px; }
.bind-form { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 23px; }
.bind-form label { font-size: 13px; font-weight: 700; }
.bind-form input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #cbd9d1; border-radius: 6px; outline: none; background: white; font: inherit; font-size: 14px; }
.bind-form input:focus { border-color: #1c7657; box-shadow: 0 0 0 2px #dcefe4; }
.bind-form textarea { width: 100%; min-height: 120px; padding: 12px 13px; border: 1px solid #cbd9d1; border-radius: 6px; outline: none; background: white; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.bind-form textarea:focus { border-color: #1c7657; box-shadow: 0 0 0 2px #dcefe4; }
.bind-form .primary { min-height: 48px; }
.telegram-binding-actions { display: flex; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid #dce9e1; border-radius: 7px; background: #f7fbf8; }
.telegram-binding-link { color: #237458; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.telegram-binding-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.telegram-binding-buttons .secondary { margin: 0; }
.bind-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 15px; padding: 4px; border: 1px solid #dce5df; border-radius: 7px; background: #f7faf8; }
.bind-methods button { min-height: 40px; border: 0; border-radius: 5px; background: transparent; color: #687874; font-size: 13px; font-weight: 700; }
.bind-methods button.active { background: white; color: #1c7657; box-shadow: 0 1px 4px #183b2b1a; }
.confirm-form { padding-top: 16px; border-top: 1px solid #dce5df; }
.bind-help { color: #687874; font-size: 12px; line-height: 1.6; }
.welcome-art { position: relative; height: 205px; overflow: hidden; background: #193d39; margin-bottom: 28px; border-radius: 8px; }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff13 1px, transparent 1px), linear-gradient(90deg, #ffffff13 1px, transparent 1px); background-size: 32px 32px; transform: rotate(-13deg) scale(1.4); }
.art-symbol { position: absolute; right: 21%; top: 13px; color: #d4f2d9; font-family: Georgia, serif; font-size: 145px; font-style: italic; line-height: 1; text-shadow: 9px 11px 0 #2b7a60; }
.art-symbol span { font: 30px Arial, sans-serif; position: absolute; top: 26px; right: -28px; color: #c5e89b; }
.art-caption { position: absolute; left: 20px; bottom: 18px; color: #a6c7ba; font: 10px monospace; }
.welcome h1 { font-size: 34px; }
.welcome-copy { color: #71817c; font-size: 14px; line-height: 1.7; margin: 14px 0 26px; }
.existing { margin-top: 25px; border-top: 1px solid #dce5df; padding: 20px 0 0; }
.existing strong { font-size: 14px; }
.existing p { color: #798782; font-size: 12px; line-height: 1.5; margin: 7px 0 14px; }
.secondary { width: 100%; padding: 12px; border: 1px solid #b8cdc2; border-radius: 6px; color: #1c7657; background: transparent; font-size: 13px; font-weight: 700; }
.text-action { width: 100%; border: 0; background: none; color: #408969; padding: 15px; font-size: 12px; }
.error-text { color: #b35343; font-size: 12px; }
.merchant-tag { margin-left: 7px; padding: 3px 6px; border-radius: 4px; background: #e2f2e8; color: #26865b; font-size: 10px; }
.preview-switch { display: block; margin: -12px 0 18px; padding: 11px 12px; border: 1px solid #d9e7df; border-radius: 6px; background: #edf5ef; color: #237458; font-size: 12px; font-weight: 700; text-decoration: none; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.metrics > div { display: flex; flex-direction: column; gap: 9px; padding: 17px; border: 1px solid #e5ece7; border-radius: 7px; background: white; min-width: 0; }
.metrics span { color: #83918b; font-size: 12px; }
.metrics strong { font-size: 18px; overflow-wrap: anywhere; }
.metrics small { font-size: 11px; }
.collection-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  margin-top: 11px;
  padding: 14px 15px;
  border: 1px solid #e5ece7;
  border-radius: 8px;
  background: white;
  color: inherit;
  text-align: left;
}
.collection-entry-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e1f1ea;
  color: #1d775d;
  font-size: 25px;
  line-height: 1;
}
.collection-entry > span:nth-child(2) { display: grid; gap: 5px; min-width: 0; }
.collection-entry strong { font-size: 14px; }
.collection-entry small { color: #82908b; font-size: 11px; }
.collection-entry b { color: #99a59f; font-size: 22px; font-weight: 400; }
.collection-card {
  padding: 18px;
  border-radius: 10px;
  background: #173c37;
  color: white;
}
.collection-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 12px; color: #bad3ca; }
.collection-card-head strong { color: white; font-size: 15px; text-align: right; }
.collection-qr {
  display: grid;
  place-items: center;
  width: min(78vw, 290px);
  aspect-ratio: 1;
  margin: 18px auto 13px;
  padding: 10px;
  border-radius: 8px;
  background: white;
}
.collection-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.collection-recipient { display: block; text-align: center; font-size: 13px; }
.collection-form { margin-top: 20px; }
.collection-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #cbd9d1;
  border-radius: 6px;
  background: white;
  color: inherit;
  font: inherit;
}
.collection-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; }
.collection-actions .primary, .collection-actions .secondary { min-height: 46px; padding-inline: 10px; }
.collection-link { display: grid; gap: 7px; margin-top: 16px; }
.collection-link span { color: #788681; font-size: 11px; }
.collection-link code {
  padding: 11px;
  border: 1px solid #dce5df;
  border-radius: 7px;
  background: rgba(255, 255, 255, .58);
  color: #355d53;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.fine-print { color: #a1aaa5; font-size: 11px; text-align: center; margin: 14px 0; }
.bottom-nav { position: fixed; z-index: 2; bottom: 0; width: min(100%, 520px); height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: white; border-top: 1px solid #e8eeea; }
.bottom-nav[hidden] { display: none; }
.bottom-nav button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #98a5a0; font-size: 10px; }
.bottom-nav button.active { color: #1c7657; font-weight: 700; }
.nav-icon { font-size: 23px; line-height: 22px; }
.account-panel { display: flex; align-items: center; flex-direction: column; padding: 25px 0 30px; margin-bottom: 9px; background: white; border-radius: 8px; }
.account-avatar { height: 62px; width: 62px; font-size: 26px; margin-bottom: 12px; }
.account-panel strong { font-size: 16px; }
.account-panel span { color: #2a9869; font-size: 11px; margin-top: 6px; }
.account-setup { margin: 22px 0 28px; padding: 18px 16px 16px; border: 1px solid #d8e9df; border-radius: 10px; background: #f4faf6; }
.account-setup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.account-setup-head h2 { margin: 2px 0 0; font-size: 17px; letter-spacing: -.02em; }
.account-setup-head .eyebrow { margin: 0; }
.setup-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #176b52; background: #dcefe4; font-weight: 800; }
.notification-form { display: grid; gap: 0; border-top: 1px solid #e7ece9; }
.notification-row { display: flex; justify-content: space-between; align-items: center; min-height: 54px; border-bottom: 1px solid #e7ece9; font-size: 13px; }
.notification-row > span { display: grid; gap: 4px; }
.notification-row > span small { color: #87948f; font-size: 11px; line-height: 1.4; }
.notification-row-preserved { opacity: .82; }
.notification-row input { width: 20px; height: 20px; accent-color: #1c7657; }
.notification-row input:disabled { cursor: not-allowed; opacity: .72; }
.notification-field, .notification-password { display: grid; gap: 8px; padding-top: 14px; font-size: 13px; }
.notification-field input, .notification-password input { width: 100%; }
.amount-input { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; }
.amount-input input { border-radius: 6px 0 0 6px; }
.amount-input small { height: 44px; display: grid; place-items: center; border: 1px solid #d8dfdc; border-left: 0; border-radius: 0 6px 6px 0; color: #6d7873; background: #f7f9f8; }
.notification-form .primary { margin-top: 16px; }
.quick-login-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e7ece9; }
.quick-login-unbind { color: #a94436; border-color: #dda9a0; }
.center-state.compact { padding: 18px 0; }
.detail-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #e7ece9; min-height: 55px; font-size: 13px; }
.detail-line span { color: #84908d; flex: none; }
.detail-line strong { text-align: right; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
.demo-note { color: #9a8a63; font-size: 11px; line-height: 1.6; margin-top: 23px; }
.status-pill { display: inline-block; font-size: 12px; margin: 13px 0 0; }
.back { background: none; border: 0; color: #247b60; font-size: 13px; padding: 26px 0 0; }
.error-bar { background: #fff3e9; color: #a05b2a; font-size: 12px; padding: 12px; border-radius: 6px; }
.error-bar button { float: right; border: 0; background: none; color: inherit; font-weight: 700; }
@media (max-width: 360px) { main { padding: 0 17px; } .topbar { padding: 0 17px; } .balance-top small { display: none; } .order-text small { max-width: 140px; overflow: hidden; text-overflow: ellipsis; } }

/* Apple-inspired liquid glass theme */
:root {
  color-scheme: light;
  --ink: #152321;
  --muted-ink: #6c7a78;
  --accent: #16785d;
  --accent-deep: #105645;
  --line: rgba(89, 111, 107, .16);
  --glass: rgba(255, 255, 255, .64);
  --glass-strong: rgba(255, 255, 255, .8);
  --glass-soft: rgba(245, 250, 249, .54);
  --shadow: 0 14px 38px rgba(30, 53, 50, .09), inset 0 1px 0 rgba(255, 255, 255, .88);
  color: var(--ink);
  background: #edf4f3;
}

html { min-height: 100%; background: #edf4f3; }
body {
  min-height: 100dvh;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(211, 234, 228, .9) 0%, rgba(242, 246, 248, .92) 42%, rgba(222, 232, 243, .88) 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .52), transparent 38%),
    linear-gradient(315deg, rgba(150, 195, 185, .18), transparent 46%);
}
.shell { background: transparent; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
main { padding: 0 18px; }

.topbar {
  position: sticky;
  z-index: 5;
  top: 8px;
  height: 60px;
  margin: 8px 12px 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 12px;
  background: rgba(250, 253, 252, .64);
  box-shadow: 0 9px 28px rgba(28, 53, 49, .08), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}
.brand { font-size: 14px; font-weight: 720; }
.brand-mark {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 9px;
  background: linear-gradient(145deg, #1f7c64, #123c34);
  box-shadow: 0 5px 14px rgba(17, 77, 63, .22), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.avatar, .account-avatar {
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(218, 240, 233, .72);
  box-shadow: inset 0 1px 0 #fff, 0 5px 15px rgba(41, 93, 78, .1);
}

.heading { padding: 28px 4px 22px; }
.eyebrow { margin-bottom: 8px; color: var(--accent); font-size: 11px; letter-spacing: 0; }
h1 { color: #10201e; font-size: 28px; font-weight: 760; }
h2 { color: #152522; font-size: 17px; }
.muted { color: var(--muted-ink); }

.balance {
  position: relative;
  min-height: 184px;
  padding: 23px 22px 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(24, 82, 70, .97), rgba(15, 48, 44, .98));
  box-shadow: 0 18px 42px rgba(21, 66, 58, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.balance::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, .14), transparent 38%);
}
.balance-top, .balance-bottom, .amount { position: relative; }
.balance-icon {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.amount { font-size: 38px; }
.balance-bottom { border-top-color: rgba(255, 255, 255, .15); }

.metrics { gap: 10px; }
.metrics > div,
.rate-list, .notice-list, .record-list, .order-list, .account-panel,
.collection-entry, .collection-card, .collection-link code {
  border: 1px solid rgba(255, 255, 255, .82);
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}
.metrics > div { min-height: 86px; border-radius: 10px; padding: 16px; }
.metrics span { color: #71807d; }
.metrics strong { color: #162724; }
.collection-entry { border-radius: 10px; background: rgba(255, 255, 255, .66); box-shadow: var(--shadow); }
.collection-entry:active { background: rgba(255, 255, 255, .82); transform: translateY(1px); }
.collection-entry-icon {
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 10px;
  background: rgba(210, 239, 229, .72);
  box-shadow: inset 0 1px 0 #fff;
}
.collection-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(24, 82, 70, .97), rgba(15, 48, 44, .98));
  box-shadow: 0 18px 42px rgba(21, 66, 58, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .14), transparent 38%);
}
.collection-card > * { position: relative; }
.collection-qr { border-radius: 10px; box-shadow: 0 13px 30px rgba(0, 0, 0, .18), inset 0 1px 0 #fff; }
.collection-form select {
  border-color: rgba(75, 105, 99, .2);
  border-radius: 9px;
  background: rgba(255, 255, 255, .64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.collection-form select:focus { border-color: rgba(22, 120, 93, .5); outline: none; box-shadow: 0 0 0 3px rgba(22, 120, 93, .1), inset 0 1px 0 #fff; }
.collection-link code { border-radius: 8px; }

.section-title { margin: 30px 3px 12px; }
.section-title button { color: var(--accent); }
.rate-list, .notice-list, .record-list, .order-list { border-radius: 10px; }
.rate-row, .notice-row, .compact-row, .order-row {
  border-bottom-color: var(--line);
  background: transparent;
  transition: background-color .18s ease, transform .18s ease;
}
.notice-row:active, .compact-row:active, .order-row:active { background: rgba(255, 255, 255, .52); }
.rate-dot { box-shadow: 0 0 0 4px rgba(232, 170, 89, .13); }
.rate-row:nth-child(2) .rate-dot { box-shadow: 0 0 0 4px rgba(72, 170, 119, .12); }
.record-icon, .order-symbol {
  border: 1px solid rgba(255, 255, 255, .76);
  background: rgba(221, 242, 235, .7);
  box-shadow: inset 0 1px 0 #fff;
}
.record-icon.warning { background: rgba(255, 237, 207, .76); }

.filters {
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 10px;
  background: rgba(255, 255, 255, .46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.filters button { border: 0; border-radius: 7px; background: transparent; color: #667572; }
.filters button.selected {
  background: rgba(255, 255, 255, .92);
  color: var(--accent-deep);
  box-shadow: 0 3px 10px rgba(37, 67, 61, .1), inset 0 0 0 1px rgba(77, 110, 103, .08);
}

.primary {
  border-radius: 9px;
  background: linear-gradient(180deg, #21856a, #14634f);
  box-shadow: 0 8px 20px rgba(22, 105, 82, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.primary:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(22, 105, 82, .18); }
.secondary, .load-more {
  border-color: rgba(74, 110, 101, .22);
  border-radius: 9px;
  background: rgba(255, 255, 255, .54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.secondary:active, .load-more:active { background: rgba(255, 255, 255, .78); }

.bind-form input, .order-search input, .credential-form select,
.secret-view textarea, .notification-field input, .notification-password input {
  border-color: rgba(75, 105, 99, .2);
  border-radius: 9px;
  background: rgba(255, 255, 255, .64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.bind-form input:focus, .order-search input:focus,
.credential-form select:focus, .notification-field input:focus, .notification-password input:focus {
  border-color: rgba(22, 120, 93, .5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 120, 93, .1), inset 0 1px 0 #fff;
}
.amount-input small { border-color: rgba(75, 105, 99, .18); background: rgba(241, 246, 245, .72); }

.detail-line, .integration-list, .credential-form, .refund-form,
.plain-section, .signup-next, .signup-result, .existing, .confirm-form,
.notification-form, .notification-row, .quick-login-form, .account-setup { border-color: var(--line); }
.detail-line { padding: 0 4px; }
.integration-base code {
  padding: 7px 9px;
  border: 1px solid rgba(70, 106, 98, .12);
  border-radius: 7px;
  background: rgba(255, 255, 255, .48);
  color: #2f5950;
}
.merchant-tag {
  border: 1px solid rgba(52, 151, 104, .13);
  background: rgba(218, 243, 230, .65);
}
.preview-switch, .error-bar {
  border-color: rgba(255, 255, 255, .75);
  border-radius: 9px;
  background: rgba(255, 255, 255, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.error-bar { background: rgba(255, 240, 227, .72); }

.welcome-art {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(30, 103, 85, .96), rgba(17, 52, 48, .98));
  box-shadow: 0 18px 42px rgba(21, 66, 58, .2), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.account-panel { border-radius: 10px; }

.bottom-nav {
  z-index: 6;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom));
  width: calc(min(100%, 520px) - 20px);
  height: 68px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 16px;
  background: rgba(249, 252, 251, .7);
  box-shadow: 0 12px 34px rgba(27, 54, 49, .14), inset 0 1px 0 #fff;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
}
.bottom-nav button { position: relative; border-radius: 10px; color: #788683; }
.bottom-nav button.active { color: var(--accent-deep); }
.bottom-nav button.active::before {
  content: "";
  position: absolute;
  top: 5px;
  width: 34px;
  height: 26px;
  border-radius: 9px;
  background: rgba(200, 231, 222, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76);
}
.nav-icon { position: relative; z-index: 1; font-size: 21px; }
.bottom-nav button > span:last-child { position: relative; z-index: 1; }

.terms-overlay {
  background: rgba(24, 41, 38, .28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.terms-dialog {
  border: 1px solid rgba(255, 255, 255, .8);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: rgba(248, 251, 250, .9);
  box-shadow: 0 -18px 48px rgba(21, 42, 38, .18), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}
.terms-content { border-radius: 8px; }

@media (min-width: 521px) {
  .shell { border-left: 1px solid rgba(255, 255, 255, .5); border-right: 1px solid rgba(255, 255, 255, .5); }
}
@media (max-width: 360px) {
  main { padding: 0 14px; }
  .topbar { margin-inline: 9px; padding-inline: 12px; }
  .amount { font-size: 34px; }
  .bottom-nav { width: calc(100% - 14px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
