:root {
  --green: #126655;
  --green-dark: #094338;
  --mint: #e8f6ef;
  --gold: #d5a546;
  --ink: #182521;
  --muted: #75827d;
  --line: #e8edea;
  --paper: #fffdf9;
  --danger: #c74b4b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f3f6f4;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #f3f6f4; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
.app-shell { max-width: 540px; min-height: 100vh; margin: auto; background: #f8faf8; padding-bottom: calc(78px + env(safe-area-inset-bottom)); overflow: hidden; }
.page { min-height: 100vh; }
.auth-page { min-height: 100vh; padding: max(38px, env(safe-area-inset-top)) 24px 36px; background: radial-gradient(circle at 90% 6%, #e9c979 0 1px, transparent 2px), linear-gradient(160deg, #0a4d40 0%, #167560 54%, #d2ad61 190%); color: white; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 18px; color: #fee7aa; font-family: Georgia, serif; font-size: 28px; background: rgba(255,255,255,.09); box-shadow: inset 0 1px rgba(255,255,255,.2); }
.auth-page h1 { margin: 27px 0 7px; font-size: 31px; letter-spacing: 2px; }
.auth-page .sub { margin: 0 0 25px; color: rgba(255,255,255,.7); font-size: 14px; }
.auth-card { background: var(--paper); color: var(--ink); border-radius: 25px; padding: 24px 20px 22px; box-shadow: 0 20px 45px rgba(3,41,33,.24); }
.auth-card h2 { margin: 0 0 8px; font-size: 21px; }
.helper { margin: 0 0 20px; line-height: 1.6; color: var(--muted); font-size: 13px; }
.field { display: block; margin-top: 15px; }
.field span { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.field input { width: 100%; height: 48px; padding: 0 13px; outline: none; border: 1px solid #dae3de; border-radius: 12px; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s; }
.field input:focus { border-color: #3d8e78; box-shadow: 0 0 0 3px #dff1e9; }
.code-row { display: flex; gap: 9px; }
.code-row input { min-width: 0; }
.code-row button { flex: 0 0 105px; color: var(--green); background: var(--mint); border-radius: 12px; font-size: 13px; font-weight: 700; }
.primary { width: 100%; min-height: 49px; margin-top: 22px; border-radius: 14px; color: white; background: linear-gradient(100deg, #0e5e4e, #19775f); box-shadow: 0 8px 16px rgba(12,91,73,.2); font-weight: 700; letter-spacing: .5px; }
.primary:active { transform: translateY(1px); }
.primary[disabled] { color: #89928e; background: #e5e9e7; box-shadow: none; cursor: not-allowed; }
.auth-footer { margin: 19px 5px 0; color: rgba(255,255,255,.8); text-align: center; font-size: 13px; }
.text-button { color: inherit; background: none; text-decoration: underline; text-underline-offset: 3px; }
.agreement { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; color: #6c7a74; font-size: 11px; line-height: 1.55; }
.agreement input { accent-color: var(--green); margin-top: 2px; }
.topbar { display: flex; align-items: center; min-height: 58px; padding: max(12px, env(safe-area-inset-top)) 19px 0; background: var(--paper); }
.topbar h1 { flex: 1; margin: 0; font-size: 18px; text-align: center; }
.topbar button { width: 42px; color: var(--ink); background: transparent; font-size: 25px; line-height: 1; }
.topbar .placeholder { width: 42px; }
.content { padding: 15px 16px 24px; }
.hero { position: relative; overflow: hidden; min-height: 199px; padding: 23px 21px; border-radius: 23px; color: #fff; background: linear-gradient(135deg, #0c4f42, #177c63); box-shadow: 0 10px 25px rgba(7,80,65,.18); }
.hero::after { position: absolute; top: -73px; right: -70px; width: 204px; height: 204px; content: ""; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.04), 0 0 0 53px rgba(255,255,255,.04); }
.eyebrow { position: relative; z-index: 1; color: #c9e7d9; font-size: 13px; }
.balance { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 7px; margin-top: 9px; }
.balance strong { font-family: Georgia, "Times New Roman", serif; font-size: 39px; letter-spacing: .4px; }
.balance span { font-size: 13px; }
.frozen { position: relative; z-index: 1; margin-top: 11px; color: #b9ddce; font-size: 12px; }
.updated { position: relative; z-index: 1; margin-top: 23px; color: rgba(255,255,255,.65); font-size: 11px; }
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 15px 0 22px; }
.quick-action { min-height: 82px; padding: 8px 2px; color: var(--ink); background: transparent; text-align: center; }
.quick-icon { display: grid; place-items: center; width: 43px; height: 43px; margin: auto auto 7px; border-radius: 15px; color: var(--green); background: #e5f3ec; font-size: 20px; }
.quick-action:nth-child(2) .quick-icon { color: #af7720; background: #fbf0d9; }
.quick-action:nth-child(3) .quick-icon { color: #4f7598; background: #e8f1f8; }
.quick-action:nth-child(4) .quick-icon { color: #915e8a; background: #f6ebf4; }
.quick-action small { display: block; font-size: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 12px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.section-heading button { color: var(--muted); background: none; font-size: 12px; }
.card { padding: 17px; border: 1px solid rgba(224,232,227,.8); border-radius: 17px; background: white; box-shadow: 0 5px 20px rgba(35,66,55,.035); }
.notice { display: flex; align-items: flex-start; gap: 11px; }
.notice-mark { flex: 0 0 auto; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #bd872d; background: #f9f1df; font-size: 14px; }
.notice strong { display: block; margin: 1px 0 5px; font-size: 14px; }
.notice p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.bottom-nav { position: fixed; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; max-width: 540px; min-height: calc(64px + env(safe-area-inset-bottom)); margin: auto; padding: 6px 10px env(safe-area-inset-bottom); border-top: 1px solid #edf0ee; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.nav-item { flex: 1; padding: 3px 0; color: #89938e; background: transparent; font-size: 10px; }
.nav-item span { display: block; margin: 0 0 3px; font-size: 20px; line-height: 22px; }
.nav-item.active { color: var(--green); font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; color: #a66f18; background: #fbf3e3; font-size: 11px; }
.status-pill::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: currentColor; }
.exchange-card { margin-bottom: 12px; padding: 19px; border-radius: 18px; background: #fff; border: 1px solid #e6ece9; }
.exchange-card .title-line { display: flex; align-items: center; justify-content: space-between; }
.exchange-card h2 { margin: 0; font-size: 18px; }
.exchange-card p { margin: 7px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.metric { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.metric span { color: var(--muted); }
.metric strong { color: var(--green-dark); }
.outline-button { width: 100%; min-height: 43px; margin-top: 13px; border: 1px solid #c8d8d1; border-radius: 12px; color: var(--green); background: #fff; font-size: 13px; font-weight: 700; }
.outlined-warning { border-color: #ead3a9; color: #a67727; }
.form-card { padding: 18px; border-radius: 18px; background: #fff; }
.amount-row { display: flex; align-items: center; height: 57px; padding: 0 13px; border: 1px solid #dbe4df; border-radius: 13px; }
.amount-row input { width: 100%; outline: none; border: 0; font-size: 22px; font-family: Georgia, serif; }
.amount-row em { color: var(--muted); font-size: 12px; font-style: normal; }
.summary-box { margin-top: 13px; padding: 13px; border-radius: 13px; background: #f3f8f5; }
.summary-box .metric { padding: 5px 0; border: none; }
.rules { margin: 13px 3px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.empty { margin-top: 20px; padding: 46px 20px; color: var(--muted); text-align: center; }
.empty i { display: grid; place-items: center; width: 52px; height: 52px; margin: auto auto 13px; border-radius: 18px; color: #91aaa0; background: #edf4f0; font-size: 23px; font-style: normal; }
.empty p { margin: 0; font-size: 13px; }
.profile-head { padding: 24px 19px 20px; color: white; background: linear-gradient(135deg, #0e5749, #1a7560); }
.profile-head .user { display: flex; align-items: center; gap: 13px; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 17px; color: #f5d993; background: rgba(255,255,255,.13); font-family: Georgia, serif; font-size: 21px; }
.profile-head b { display: block; font-size: 17px; }
.profile-head small { display: block; margin-top: 5px; color: #bee0d1; font-size: 12px; }
.menu-card { margin-top: 14px; padding: 0 16px; border-radius: 17px; background: white; }
.menu-item { display: flex; align-items: center; width: 100%; min-height: 57px; padding: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.menu-item:last-child { border-bottom: 0; }
.menu-item i { width: 29px; color: var(--green); font-style: normal; font-size: 18px; }
.menu-item span { flex: 1; font-size: 14px; }
.menu-item b { color: #b6bdb9; font-size: 18px; font-weight: 400; }
.wallet-address { max-width: 150px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.wallet-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wallet-row:last-child { border-bottom: 0; }
.wallet-chain { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: #e8b641; background: #fff6dd; font-size: 12px; font-weight: 700; }
.wallet-detail { flex: 1; min-width: 0; }
.wallet-detail strong { display: block; margin-bottom: 4px; font-size: 13px; }
.wallet-state { color: #7d8d86; font-size: 11px; }
.wallet-state.wait { color: #ac7a26; }
.toast { position: fixed; z-index: 8; bottom: 92px; left: 50%; max-width: calc(100vw - 42px); padding: 11px 15px; border-radius: 12px; color: #fff; background: rgba(20,35,29,.9); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s ease; text-align: center; font-size: 13px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.modal { position: fixed; z-index: 6; inset: 0; display: flex; align-items: flex-end; background: rgba(4,23,18,.45); }
.modal-card { width: 100%; max-width: 540px; margin: auto; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 23px 23px 0 0; background: white; }
.modal-card h2 { margin: 0 0 9px; font-size: 18px; }
.modal-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.modal-card .primary { margin-top: 10px; }
@media (min-width: 541px) { body { background: #e6ece8; } .app-shell { box-shadow: 0 0 45px rgba(19,58,46,.12); } }
