@font-face {
  font-family: Manrope;
  src: url("/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #13100f;
  --surface: #221d1a;
  --surface-up: #2f2823;
  --line: #443a34;
  --ink: #fbf8f6;
  --muted: #e2ae8c;
  --accent: #f9b990;
  --action: #e8d9d0;
  --ease: cubic-bezier(.25,.8,.25,1);
  font: 16px/1.5 Manrope, system-ui, sans-serif;
  font-kerning: normal;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 0, #322923 0%, transparent 32rem); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 8vw, 2.65rem); line-height: 1.03; font-weight: 720; letter-spacing: -.06em; }
h2 { font-size: 1.08rem; letter-spacing: -.015em; }
.wallet-stats, .community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.wallet-stats { margin: 0; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--line); }
.wallet-stats > div, .community-card { border: 1px solid var(--line); border-radius: .95rem; padding: .85rem 1rem; background: #221d1ae0; }
.wallet-stats > div { border: 0; border-radius: 0; background: #1f1b18; padding: .7rem .85rem; }
.community-grid { margin-top: 1.15rem; }
.wallet-stats dt, .community-card small { color: var(--muted); font-size: .77rem; }
.wallet-stats dd { margin: .2rem 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.community-card { display: grid; justify-items: start; color: var(--ink); text-decoration: none; gap: .15rem; min-height: 6rem; }
.community-card[href]:hover { border-color: var(--accent); }
.community-card[aria-disabled="true"] { opacity: .72; }
.support-card { grid-column: 1 / -1; background: linear-gradient(115deg, #28211c, #1f1b18); }
.reviews-card { background: linear-gradient(115deg, #102421, #1f1b18); }
.channel-card { background: linear-gradient(115deg, #26231f, #1f1b18); }
.community-icon { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .25rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--accent); font-size: 1.15rem; }
.support-icon { position: relative; }
.support-icon::before { content: ""; width: .83em; height: .65em; border: 1.5px solid currentColor; border-radius: .23em; }
.support-icon::after { content: ""; position: absolute; left: 36%; top: 62%; width: .21em; height: .21em; border-width: 0 0 1.5px 1.5px; border-style: solid; background: #2a231f; transform: skewY(-30deg); }
.reviews-card .community-icon { color: #78dfbd; }
.channel-card .community-icon { color: #efcc81; }
h3 { font-size: .96rem; margin: 1rem 0 .45rem; }
strong, .pair { font-variant-numeric: tabular-nums; }
.shell { width: min(100%, 36rem); margin: auto; padding: max(.65rem, env(safe-area-inset-top)) clamp(1rem, 5vw, 1.65rem) calc(6.3rem + env(safe-area-inset-bottom)); }
.brand { display: flex; justify-content: space-between; align-items: center; min-height: 3.25rem; gap: .45rem; border-bottom: 1px solid #443b36; }
.brand-link { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.035em; font-size: clamp(.9rem, 4vw, 1.04rem); }
.brand-avatar { display: block; width: 32px; height: 32px; border: 1px solid #64554c; border-radius: .5rem; }
.brand-actions { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: .35rem; }
.demo, .rate-unit, .pair { color: #ebbea1; font-size: .79rem; font-weight: 600; }
.demo { border: 1px solid #4f4641; border-radius: .36rem; padding: .2rem .4rem; }
.admin-entry { padding: .3rem .52rem; border-radius: .42rem; color: #f3ebe6; background: #3a302a; border: 1px solid #5e524a; font-size: .8rem; }
.admin-entry[aria-current] { border-color: var(--accent); color: var(--action); }

.view { animation: view-enter .25s var(--ease) both; }
.view-heading, .section-heading, .field-label { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.view-heading { margin: 1.3rem 0 .9rem; }
.section-heading { margin: 1.3rem 0 .5rem; }
.pair { background: #2f2823; border-radius: .46rem; padding: .35rem .52rem; white-space: nowrap; }
.pair b { color: var(--accent); }
@keyframes view-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes number-enter { from { opacity: .65; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.changed { animation: number-enter .24s var(--ease); }

.wallet-card { display: grid; align-content: center; isolation: isolate; position: relative; overflow: hidden; margin-top: 1.15rem; padding: clamp(1rem, 5vw, 1.55rem); min-height: 10.8rem; border: 1px solid #65564d; border-radius: 1.35rem; background: #322822; }
.wallet-card::after { position: absolute; content: ""; inset: 0; z-index: -1; background: linear-gradient(100deg,#322822 12%,#322822 34%,#322822bd 58%,#32282224); pointer-events: none; }
.wallet-visual { position: absolute; inset: 0 0 0 33%; z-index: -2; overflow: hidden; }
.wallet-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; opacity: .97; animation: wallet-enter .6s var(--ease) both; }
@keyframes wallet-enter { from { opacity: .2; transform: scale(1.06); } to { opacity: .97; transform: none; } }
.wallet-info > p:first-child { color: #e1d7d1; font-size: .9rem; }
.balance-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .36rem; margin: .45rem 0 .12rem; }
#balance { font-size: clamp(2.15rem, 11vw, 3.9rem); line-height: 1.04; font-weight: 800; letter-spacing: -.07em; overflow-wrap: anywhere; }
.balance-line span { color: #e6d8cf; font-size: .87rem; font-weight: 650; }
.equivalent { color: #f1cab1; font-size: .92rem; }
.wallet-foot { display:grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap:.55rem; margin-top: .65rem; }
.wallet-foot button { min-height: 3rem; border-radius: .8rem; padding-inline: .78rem; }
.wallet-foot .primary { background: #f9b386; border-color: #fbc7a5; }
.wallet-foot .secondary { background: #29221e; }
.wallet-exchange { display: inline-flex; justify-content: space-between; align-items: center; gap: .6rem; }
.wallet-exchange span { font-size: 1.12rem; }

.rate-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
.rate-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; gap: .26rem .3rem; padding: .65rem .75rem; min-height: 4.4rem; text-align: left; background: #261f1b; color: var(--ink); border: 1px solid var(--line); border-radius: .75rem; transition: background .22s, border-color .22s, transform .22s; }
.rate-card > span:first-child { grid-column: span 2; color: var(--muted); font-size: .8rem; }
.rate-card strong { font-size: clamp(1rem, 5vw, 1.45rem); letter-spacing: -.04em; white-space: nowrap; }
.rate-card:hover { background: #362c26; border-color: #ae5c28; }
.rate-card:active { transform: scale(.98); }
.rate-arrow { color: #f5b68d; font-size: .95rem; }

.paper { border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); padding: 1rem; }
.primary, .secondary, .text-button { min-height: 2.6rem; border: 1px solid transparent; border-radius: .58rem; color: var(--ink); padding: .45rem .7rem; font-weight: 650; transition: transform .18s, background-color .22s, border-color .22s; }
.primary { color: #291f19; background: var(--action); border-color: #e8dad1; }
.primary:hover:not(:disabled) { background: #f1e8e3; }
.secondary { background: #382e28; border-color: #554a43; }
.secondary:hover { border-color: #e69a6a; }
.text-button { background: transparent; color: var(--accent); padding: .1rem 0; min-height: 2rem; font-size: .88rem; }
.primary:active:not(:disabled), .secondary:active { transform: scale(.98); }
.wide { width: 100%; min-height: 2.85rem; }
.control, .amount-field input, .amount-field select { width: 100%; min-width: 0; border: 1px solid #524842; border-radius: .55rem; padding: .62rem .72rem; color: var(--ink); background: #1d1714; }
.control::placeholder, .amount-field input::placeholder { color: #d38c5e; }
.tier-select { margin: .24rem 0 .6rem; }
.amount-field { display: grid; grid-template-columns: minmax(0,1fr) 5.35rem; gap: .45rem; margin: .22rem 0 .4rem; }
.amount-field input { font-size: 1.8rem; font-weight: 680; letter-spacing: -.045em; }
.receipt { margin: .85rem 0; padding: .6rem .7rem; border-radius: .6rem; background: #201a16; }
.receipt p { display: flex; justify-content: space-between; align-items: center; gap: .55rem; padding: .24rem 0; }
.receipt p:last-child strong { color: var(--accent); font-size: 1.14rem; }
.receipt span, .muted { color: var(--muted); font-size: .88rem; }
.feedback, .error { margin: .55rem 0; color: #ffd0b4; font-size: .9rem; }
.feedback:empty { display: none; }
#quote-details { margin-bottom: .6rem; }
.sbp-fields { display: grid; gap: .45rem; min-width: 0; margin: .95rem 0 .75rem; border: 1px solid var(--line); border-radius: .8rem; padding: .7rem; }
.sbp-fields legend { padding: 0 .4rem; font-weight: 650; }
.sbp-fields .muted { margin: .25rem 0 0; }
.payout-form { display: grid; gap: .5rem; }
#payout-details strong { text-align: right; overflow-wrap: anywhere; }
#submit { margin-top: .4rem; }

.order-list { overflow: hidden; border: 1px solid var(--line); border-radius: .76rem; background: var(--surface); }
.order-item { padding: .7rem .8rem; display: grid; gap: .3rem; }
.order-item + .order-item { border-top: 1px solid var(--line); }
.order-meta, .order-controls, .account-list { display: flex; flex-wrap: wrap; align-items: center; gap: .34rem; }
.order-meta { justify-content: space-between; }
.order-controls button { font-size: .82rem; }
.status { background: #42362e; color: #e8d9d0; border-radius: .36rem; padding: .14rem .44rem; font-size: .79rem; }
.status.review { background: #393126; color: #ffe1a6; }
.status.completed { background: #193739; color: #a9e5d8; }
.status.rejected { background: #35302c; color: #ffbad0; }
.empty { padding: .72rem .8rem; color: var(--muted); }
#admin-orders, #account { margin-top: .65rem; }
#account .section-heading { margin-top: 0; }
#balance-form, .rates-form, .topup-form { display: grid; gap: .44rem; }
.topup-form button { margin-top: .4rem; }
.topup-form label { margin-top: .2rem; }
#balance-form label:not(:first-child), .rates-form label:not(:first-child), .rates-form button { margin-top: .36rem; }
#recent-accounts { margin-top: .5rem; }
.segment, .inline-form { display: flex; align-items: center; gap: .45rem; }
.segment { padding: .25rem; border: 1px solid var(--line); border-radius: .7rem; background: #1e1815; margin-bottom: .65rem; }
.segment button { flex: 1; border: 0; border-radius: .46rem; color: var(--muted); padding: .48rem .2rem; background: transparent; }
.segment button[aria-pressed="true"] { background: #443a34; color: var(--ink); font-weight: 650; }

.navigation { --inset: .3rem; isolation: isolate; position: fixed; z-index: 2; left: 50%; transform: translateX(-50%); bottom: max(.58rem, env(safe-area-inset-bottom)); width: min(calc(100% - 1.25rem), 33rem); display: flex; padding: var(--inset); border: 1px solid #544a43; border-radius: 1.05rem; background: #241d1af5; backdrop-filter: blur(17px); box-shadow: 0 12px 35px #0c0a08b0; }
.nav-indicator { position: absolute; z-index: -1; left: var(--inset); bottom: var(--inset); top: var(--inset); width: calc((100% - 2 * var(--inset)) / 5); background: #5b4c42; border-radius: .75rem; transition: transform .33s var(--ease), opacity .2s; }
#referral-transfer { display: grid; gap: .55rem; margin-top: .9rem; }
.navigation[data-active="1"] .nav-indicator { transform: translateX(100%); }
.navigation[data-active="2"] .nav-indicator { transform: translateX(200%); }
.navigation[data-active="3"] .nav-indicator { transform: translateX(300%); }
.navigation[data-active="4"] .nav-indicator { transform: translateX(400%); }
.navigation[data-active="admin"] .nav-indicator { opacity: 0; }
.navigation button { min-width: 0; min-height: 3.02rem; flex: 1; display: grid; justify-items: center; align-content: center; gap: .23rem; padding: .25rem .05rem; border: 0; border-radius: .76rem; background: transparent; color: #e9b99a; font-size: clamp(.59rem, 2.75vw, .76rem); font-weight: 650; white-space: nowrap; transition: color .2s, transform .2s; }
.navigation button:active { transform: scale(.92); }
.navigation button[aria-current] { color: #fbf9f8; }
.navigation button:focus-visible { outline-offset: -3px; }
.tab-icon { display: block; position: relative; width: 1.22rem; height: 1.22rem; transition: transform .33s var(--ease); }
.navigation button[aria-current] .tab-icon { transform: translateY(-2px); color: #e6d7ce; }
.tab-icon::before, .tab-icon::after, .tab-icon i { content: ""; position: absolute; display: block; }
.wallet-icon::before { inset: 4px 1px 2px; border: 1.6px solid; border-radius: 4px; }
.wallet-icon::after { right: 1px; top: 8px; width: 6px; height: 5px; border: 1.4px solid; border-radius: 2px 0 0 2px; background: #40362f; }
.exchange-icon::before, .exchange-icon::after { left: 3px; right: 3px; height: 1.5px; border-radius: 3px; background: currentColor; }
.exchange-icon::before { top: 6px; }
.exchange-icon::after { bottom: 5px; }
.exchange-icon i { inset: 0; }
.exchange-icon i::before, .exchange-icon i::after { content: ""; position: absolute; width: 5px; height: 5px; border-top: 1.5px solid; border-right: 1.5px solid; }
.exchange-icon i::before { right: 3px; top: 4px; transform: rotate(45deg); }
.exchange-icon i::after { left: 3px; bottom: 3px; transform: rotate(-135deg); }
.history-icon::before { inset: 2px; border: 1.5px solid; border-radius: 50%; }
.history-icon::after { width: 5px; height: 5px; top: 5px; left: 9px; border-left: 1.5px solid; border-bottom: 1.5px solid; }
.bonus-icon { display: grid; place-items: center; border-radius: 50%; border: 1px solid #f7b68c; background: #5b4a3f; color: #e9dbd2; line-height: 1; font-size: .8rem; }
.referral-icon::before { inset: 2px 8px 10px 4px; border: 1.4px solid; border-radius: 50%; }
.referral-icon::after { inset: 11px 3px 2px 1px; border: 1.4px solid; border-radius: 8px 8px 2px 2px; }
.referral-icon i { right: 0; top: 2px; width: 6px; height: 6px; border: 1.4px solid; border-radius: 50%; }

.wheel-heading { position: relative; overflow: hidden; isolation: isolate; padding: 1.1rem; border: 1px solid #836734; border-radius: 1rem; background: linear-gradient(110deg,#2a2420,#3d3530 70%,#3f2d31); }
.wheel-heading::after { content: ""; position: absolute; z-index: -1; inset: -65% -12% -65% 53%; background: repeating-radial-gradient(circle,transparent 0 1.1rem,#e6b66124 1.16rem 1.22rem); transform: rotate(-14deg); }
.wheel-heading h1 { font-size: clamp(1.55rem, 7vw, 2.2rem); }
.wheel-heading p { margin-top: .45rem; color: #edce91; font-size: .86rem; }
.wheel-card { position: relative; isolation: isolate; display: grid; justify-items: center; text-align: center; padding: .3rem 0 .32rem; }
.wheel-card::before { content: ""; position: absolute; inset: 0 -1rem; z-index: -2; background: radial-gradient(ellipse at 50% 45%,#9f67364a,transparent 70%); }
.wheel-frame { width: min(100%, 19.1rem); aspect-ratio: 1; margin: .36rem auto .4rem; position: relative; isolation: isolate; border-radius: 50%; filter: drop-shadow(0 16px 16px #0d0a088f); }
.wheel-disc { display: block; width: 100%; height: 100%; border-radius: 50%; background: #312721; }
.wheel-pointer { position: absolute; z-index: 2; top: -.22rem; left: calc(50% - .54rem); width: 1.08rem; height: 1.58rem; background: linear-gradient(90deg,#99641f,#ffedab 56%,#d49235); clip-path: polygon(12% 0,88% 0,100% 18%,50% 100%,0 18%); transform-origin: center 15%; filter: drop-shadow(0 2px 3px #1c130e); }
.wheel-card.is-spinning .wheel-pointer { animation: pointer-tick .28s alternate infinite; }
@keyframes pointer-tick { from { transform: rotate(0); } to { transform: rotate(-13deg); } }
.wheel-hub { position: absolute; inset: 40%; z-index: 1; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(148deg,#e6d7ce,#726156 44%,#29221d 48%,#ce763d); box-shadow: 0 0 0 1px #362b24, 0 5px 12px #19130f80; }
.wheel-hub span { display: grid; place-items: center; width: 82%; height: 82%; border-radius: 50%; font-size: 1.2rem; color: #f6f1ee; background: radial-gradient(circle at 35% 20%,#6f5e54,#3b3028 72%); }
.wheel-result { min-height: 1.45em; color: #f2eae5; font-weight: 700; }
.wheel-progress-card { display: grid; gap: .5rem; }
.wheel-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: .55rem; color: #f3ece8; font-size: .92rem; font-weight: 650; }
#wheel-remaining { color: var(--accent); text-align: right; font-size: .84rem; }
#wheel-progress { width: 100%; height: .55rem; border: 0; border-radius: 99px; overflow: hidden; accent-color: var(--accent); background: #493f39; }
#wheel-progress::-webkit-progress-bar { background: #493f39; }
#wheel-progress::-webkit-progress-value { background: linear-gradient(90deg,#ed9054,#fac29f); }
.prize-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .42rem; }
.prize-list li { border: 1px solid var(--line); border-radius: .55rem; padding: .44rem .6rem; font-size: .82rem; color: #e8ded8; background: #221c19; }

.invite-link-box input { font-size: .88rem; }
#referral-message:empty { display: none; }

dialog { color: var(--ink); background: #261f1b; border: 1px solid #63574f; border-radius: .9rem; width: min(calc(100% - 1.25rem), 34rem); max-height: 85dvh; padding: .95rem; overflow: auto; }
dialog[open] { animation: view-enter .22s var(--ease) both; }
dialog::backdrop { background: #110d0bce; }
.chat-attachment { display: grid; gap: .3rem; min-width: 0; font-size: .85rem; }
.chat-attachment input { max-width: 100%; }
.chat-image { display: block; max-width: 100%; max-height: 45dvh; object-fit: contain; border-radius: .55rem; }
.home-spin {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .45rem .65rem;
  align-items: center;
  width: 100%;
  margin-top: .75rem;
  padding: .7rem .85rem;
  border: 1px solid #6b5e56;
  border-radius: .85rem;
  color: var(--ink);
  background: linear-gradient(110deg, #3e342d, #251f1c);
  text-align: left;
}
.home-spin progress { grid-column: 1 / -1; width: 100%; height: .3rem; accent-color: #fdc29c; }
.home-active-order { margin-top: .85rem; }
.home-active-order h2 { margin: 0 0 .35rem; font-size: 1rem; }
.saved-payout { display: grid; gap: .45rem; margin-top: .55rem; }
.saved-payout p { margin: 0; }
.saved-payout-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.tracker-steps { display: grid; gap: .5rem; padding: 0; list-style: none; }
.tracker-steps li {
  padding: .55rem .7rem;
  border-inline-start: .2rem solid #534942;
  border-radius: .35rem;
  color: var(--muted);
}
.tracker-steps li.reached { border-color: #f4a979; color: var(--ink); }
.tracker-steps li[aria-current="step"] { background: #423831; }
.tracker-steps small { display: block; margin-top: .15rem; }
.chat-heading { display: flex; justify-content: space-between; align-items: start; gap: .45rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.chat-scroll { height: clamp(7rem, 39dvh, 24rem); overflow-y: auto; padding: .55rem .12rem; }
#chat-messages { display: grid; gap: .45rem; }
.message { max-width: 90%; justify-self: start; color: var(--ink); background: #362d28; padding: .5rem .65rem; border-radius: .65rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.mine { justify-self: end; background: #55463c; }
.message small { display: block; color: #ecc2a7; margin-bottom: .14rem; }
#chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
#chat-input { grid-column: 1 / -1; }
textarea { resize: vertical; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }

/* Wallet accents and action hierarchy */
:root {
  --bg: #15110f;
  --surface: #211c19;
  --surface-up: #2e2722;
  --line: #463d38;
  --ink: #fbf7f4;
  --muted: #e6b596;
  --accent: #e9d8cd;
  --action: #e6d2c6;
}
body { background: radial-gradient(ellipse at 78% 0, #392f28, transparent 33rem), var(--bg); }
.wallet-card {
  border-color: #c2662c;
  background: #28211c;
  box-shadow: 0 16px 36px #09070580, inset 0 1px #eee0d71f;
}
.wallet-card::after {
  background: linear-gradient(105deg, #261f1b 8%, #2e2620 38%, #342a23b0 66%, #453a3344);
}
.wallet-visual { filter: hue-rotate(38deg) saturate(.77); }
.wallet-card::before {
  content: "";
  position: absolute;
  inset: -25% -65%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 40%, #f5ab7c10 46%, #fdcaaa34 51%, #f0ac8019 55%, transparent 62%);
  transform: translateX(-36%);
  animation: wallet-sheen 9s ease-in-out infinite;
}
@keyframes wallet-sheen {
  0%, 22% { transform: translateX(-39%); }
  63%, 100% { transform: translateX(39%); }
}
.primary, .wallet-foot .primary {
  color: #281f19;
  background: linear-gradient(112deg, #edded4, #f9b487 65%, #fdc5a2);
  border-color: #eee1d8;
  box-shadow: inset 0 1px #fff5, 0 5px 14px #ed8a4b35;
}
.primary:hover:not(:disabled) { background: linear-gradient(112deg, #f4eae4, #fdc7a5); }
.secondary, .wallet-foot .secondary {
  background: linear-gradient(145deg, #362f2b, #27221e);
  border-color: #665a52;
  box-shadow: inset 0 1px #efe2da15;
}
.wallet-foot button { min-height: 3.2rem; border-radius: 1rem; font-weight: 780; }
.wallet-exchange span { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: .55rem; background: #43352c20; }
.navigation { background: #1d1815ef; border-color: #564b44; }
.nav-indicator { background: linear-gradient(135deg, #615249, #403630); box-shadow: inset 0 0 0 1px #fbc09b30; }

/* Exchange */
#exchange .view-heading { margin: 1.25rem 0 .8rem; }
#exchange .pair { border-radius: .8rem; background: #312a25; padding: .4rem .65rem; }
#quote-form { display: grid; gap: .8rem; padding: 0; border: 0; background: transparent; }
#quote-form #sbp-fields { min-width: 0; margin: 0; }
#quote-form #quote-message:empty { display: none; }

/* Balance and payment details */
#quote-form .receipt { background: linear-gradient(112deg, #292320, #342c27); }
#quote-form #quote-details { margin: 0; padding: .55rem .7rem; border-inline-start: 2px solid #e7935d; background: #302924; border-radius: .25rem .55rem .55rem .25rem; font-size: .78rem; }
#quote-form.has-quote #calculate { min-height: 2.55rem; background: #332b26; border-color: #6a5e56; color: #f2e7e0; box-shadow: none; }
#quote-form #sbp-fields { background: #1e1a17; border-color: #61554e; padding: .8rem; gap: .55rem; }
#quote-form #sbp-fields legend { color: #f5eee9; font-weight: 800; }
#quote-form #sbp-fields label { font-size: .85rem; }
@media (max-width: 350px) {
  #exchange .pair { padding-inline: .45rem; font-size: .72rem; }
}

/* Home exchange rates */
#wallet .rate-unit { padding: 0; border: 0; background: transparent; }
#wallet .rate-grid { gap: 0; border-radius: .85rem; overflow: hidden; background: #241f1c; }
#wallet .rate-card { border: 0; border-radius: 0; background: transparent; padding: .7rem .85rem; }
#wallet .rate-card + .rate-card { border-inline-start: 1px solid #f4bc9820; }
#wallet .rate-card:hover { background: #332c27; }
#wallet .rate-card:focus-visible { outline-offset: -3px; }

/* Loyalty wheel */
.wheel-heading {
  margin-top: 1rem;
  padding: 1.15rem;
  border-color: #6d6057;
  background: radial-gradient(ellipse at 87% 0%, #746257, transparent 72%), #2d2520;
}
.wheel-heading::after { background: repeating-radial-gradient(circle, transparent 0 1.1rem, #e6d1c42b 1.16rem 1.22rem); }
.wheel-heading p { color: #e9ded6; }
.wheel-card { padding: 1rem .35rem .55rem; }
.wheel-card::before {
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, #d86a2455, #3a2f2733 52%, transparent 72%);
}
.wheel-frame { width: min(100%, 20.7rem); margin: .55rem auto .65rem; filter: none; }
.wheel-frame::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid #fac29f3a;
  box-shadow: 0 0 32px #f2965b5c;
}
.wheel-card.is-spinning .wheel-frame::before { animation: wheel-orbit-glow 2.3s ease-in-out infinite alternate; }
@keyframes wheel-orbit-glow {
  from { opacity: .55; }
  to { opacity: 1; box-shadow: 0 0 44px #fdbc9276; }
}
.wheel-pointer { background: linear-gradient(90deg, #e3894f, #f6efeb 57%, #f9af80); }
.wheel-hub span { background: radial-gradient(circle at 35% 20%, #bb5f24, #2e2620 75%); }
.wheel-result { min-height: 2.1rem; width: min(100%, 20.7rem); padding: .4rem .65rem; color: #f5ede8; border-radius: .75rem; }
.wheel-reveal { background: #413730; animation: wheel-reveal .48s var(--ease) both; }
@keyframes wheel-reveal {
  from { opacity: .45; transform: translateY(4px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.wheel-progress-card { background: #2a2420; border-color: #584c45; }
.wheel-progress-card #spin-wheel { border-radius: .8rem; }
.prize-list li { background: #2a231f; border-color: #554b45; }

/* Profile */
.profile-card { display: flex; align-items: center; gap: .85rem; min-width: 0; padding: 1rem; border-radius: 1.15rem; background: radial-gradient(ellipse at 93% 0, #69574c, transparent 75%), #2c2520; box-shadow: inset 0 1px #eee0d726; }
.profile-avatar-frame { position: relative; flex: none; display: grid; place-items: center; width: 66px; height: 66px; overflow: hidden; border: 1px solid #de8c57; border-radius: 50%; background: linear-gradient(145deg, #65564c, #3d332c); color: #f5ede7; font-size: 1.34rem; font-weight: 800; }
#profile-avatar { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#profile-name { overflow-wrap: anywhere; font-size: 1.13rem; }
#profile-tag, #profile-id { overflow-wrap: anywhere; font-size: .8rem; }
.profile-inventory { display: grid; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.inventory-item { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .65rem .8rem; border: 1px solid #584e47; border-radius: .8rem; background: #29221e; }
.inventory-item small { display: block; }
.inventory-count { font-weight: 800; color: var(--accent); }
.profile-icon::before { inset: 1px 6px 8px; border: 1.5px solid; border-radius: 50%; }
.profile-icon::after { inset: 9px 3px 2px; border: 1.5px solid; border-radius: 7px 7px 3px 3px; }
.view[data-enter="forward"] { animation: tab-forward .28s var(--ease) both; }
.view[data-enter="back"] { animation: tab-back .28s var(--ease) both; }
@keyframes tab-forward {
  from { opacity: 0; transform: translateX(11px) translateY(3px); }
  to { opacity: 1; transform: none; }
}
@keyframes tab-back {
  from { opacity: 0; transform: translateX(-11px) translateY(3px); }
  to { opacity: 1; transform: none; }
}

:root {
  --bg: #050706;
  --surface: #111413;
  --surface-up: #1b211e;
  --line: #2a302d;
  --ink: #f1f6f3;
  --muted: #a1aaa6;
  --accent: #57e3b8;
  --action: #58dfaf;
}
body { background: radial-gradient(ellipse 24rem 16rem at 52% 5rem, #08201985, transparent 90%), var(--bg); }
.shell { position: relative; }
.shell { max-width: 34rem; }
.brand { min-height: 3.8rem; border-bottom: 0; }
.brand-link { gap: .6rem; font-size: 1.15rem; }
.brand-link strong { letter-spacing: -.055em; }
.brand-link strong span { font-weight: 530; }
.eg-sign { position: relative; display: block; width: 28px; height: 24px; }
.eg-sign::before, .eg-sign::after {
  content: ""; position: absolute; width: 18px; height: 6px; background: var(--action);
  transform: skewX(-33deg); border-radius: 1px;
}
.eg-sign::before { top: 5px; left: 1px; }
.eg-sign::after { top: 13px; left: 7px; }
.menu-trigger {
  display: inline-flex; align-items: center; gap: .52rem; min-height: 42px;
  padding: 0 .9rem; border: 1px solid var(--line); border-radius: 2rem;
  background: transparent; color: var(--ink); font-size: .83rem; font-weight: 650;
}
.menu-trigger span { width: 14px; height: 7px; border-block: 1.5px solid currentColor; }
#wallet .wallet-card {
  grid-template-columns: minmax(0,1fr) clamp(4rem,22vw,6.8rem);
  align-items: center; gap: 1.5rem .5rem; min-height: 0;
  margin: .6rem 0 0; padding: 1.25rem 0 1.35rem; border: none; border-radius: 0;
  background: none; box-shadow: none;
}
#wallet .wallet-card::before, #wallet .wallet-card::after { display: none; }
.wallet-info { grid-area: 1 / 1; min-width: 0; }
.wallet-info h1 { color: var(--muted); font-size: .86rem; font-weight: 550; letter-spacing: 0; }
#wallet .balance-line { margin: .45rem 0 .28rem; gap: .5rem; }
#wallet .balance-line strong {
  font-size: clamp(2.4rem,11vw,4rem); line-height: 1.08; font-weight: 640;
  letter-spacing: -.07em; font-variant-numeric: tabular-nums;
}
#wallet .balance-line span { font-size: 1rem; color: #babdbb; }
#wallet .equivalent { color: var(--muted); }
.wallet-sculpture {
  position: relative; grid-area: 1 / 2; height: 6rem; width: 100%;
  transform: rotate(-24deg); pointer-events: none;
}
.wallet-sculpture i {
  position: absolute; left: 6%; top: 26%; width: 86%; height: 36%; border-radius: 50%;
  background: conic-gradient(from 20deg, #60bd98, #143c34 18%, #54bc94 34%, #e2fff5 50%, #82e3bb 58%, #285949 77%, #60bd98);
  mask-image: radial-gradient(ellipse, transparent 0 43%, #000 46%);
  box-shadow: inset 0 2px 1px #d4ffeb, inset 0 -3px 2px #164f3d;
}
.wallet-sculpture i:nth-child(1) { transform: translateY(82%) rotate(-9deg); }
.wallet-sculpture i:nth-child(2) { transform: translateY(61%) rotate(-4deg); }
.wallet-sculpture i:nth-child(3) { transform: translateY(40%); }
.wallet-sculpture i:nth-child(4) { transform: translateY(19%) rotate(5deg); }
.wallet-sculpture i:nth-child(5) { transform: rotate(12deg); }
#wallet .wallet-foot { grid-column: 1 / -1; grid-template-columns: 1.24fr 1fr; gap: .6rem; margin: 0; }
#wallet .wallet-foot button {
  display: flex; align-items: center; justify-content: space-between; min-height: 3.05rem;
  padding: .6rem 1rem; border-radius: .9rem; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: .94rem; font-weight: 720;
  transition: transform .18s, background .18s; box-shadow: none;
}
#wallet .wallet-foot .wallet-exchange { background: var(--action); border-color: transparent; color: #21150e; }
#wallet .wallet-foot button span { display: inline; width: auto; height: auto; background: none; font-size: 1.1rem; }
#wallet .wallet-foot button:active { transform: scale(.97); }
.exchange-market { margin-bottom: 1.1rem; padding: .85rem 1rem .95rem; border-radius: 1rem; background: var(--surface); }
.exchange-market .section-heading { margin: 0 0 .9rem; }
.exchange-market .section-heading h2 { font-size: .9rem; font-weight: 620; }
#wallet .exchange-market .rate-unit { color: var(--muted); font-size: .73rem; }
#wallet .exchange-market .rate-grid { background: transparent; overflow: visible; }
#wallet .exchange-market .rate-card { padding: 0 .7rem 0 0; }
#wallet .exchange-market .rate-card + .rate-card { padding: 0 0 0 .95rem; border-color: var(--line); }
#wallet .exchange-market .rate-card strong { color: var(--ink); font-size: clamp(1.25rem,5.1vw,1.65rem); }
#wallet .rate-arrow { color: var(--accent); }
#wallet .home-spin { border: 0; border-radius: .85rem; margin: .8rem 0; background: #202122; color: var(--ink); }
#wallet .home-spin > span:first-child { color: var(--accent); }
.home-spin progress { accent-color: var(--accent); }
.home-spin progress::-webkit-progress-bar { background: #383838; border-radius: 2rem; }
.home-spin progress::-webkit-progress-value { background: var(--accent); border-radius: 2rem; }
#wallet .home-active-order h2, #wallet-history h2 { font-size: 1rem; font-weight: 670; }
#wallet .order-list, #wallet .order-item { border-color: var(--line); background: transparent; }
#wallet .home-active-order { padding-block: .25rem .5rem; }
#wallet .home-active-order .order-item { padding-inline: 0; }
.primary, .wallet-foot .primary { background: var(--action); color: #21150e; box-shadow: none; border-color: transparent; }
.primary:hover:not(:disabled) { background: #ffa475; }
.secondary, .paper, .control, .exchange-result, .exchange-amount-panel, .profile-card,
.inventory-item, .prize-list li, .wheel-progress-card, #quote-form #sbp-fields, #quote-form .receipt {
  background: var(--surface); border-color: var(--line); box-shadow: none;
}
.control { color: var(--ink); }
.navigation {
  width: min(calc(100% - 1.4rem),31rem); border-radius: 1.3rem;
  border-color: #3a3c3d; background: #191a1bf5;
}
.navigation button { font-size: .72rem; min-height: 3.1rem; color: var(--muted); border-radius: 1rem; }
.navigation button[aria-current], .navigation button[aria-current] .tab-icon { color: #ffb58c; }
.nav-indicator { width: calc((100% - 2 * var(--inset)) / 4); border-radius: 1rem; background: #2c2622; box-shadow: none; }
.navigation[data-active="4"] .nav-indicator { opacity: 0; }
.menu-sheet {
  position: fixed; inset: auto 0 0; box-sizing: border-box; width: min(100%,32rem);
  max-height: 85dvh; margin: 0 auto; padding: .55rem 1.2rem max(1.1rem,env(safe-area-inset-bottom));
  border: 1px solid #383a3c; border-bottom: 0; border-radius: 1.55rem 1.55rem 0 0;
  color: var(--ink); background: #1a1b1c; overflow: auto;
}
.menu-sheet::backdrop { background: #070809b8; backdrop-filter: blur(4px); }
.menu-sheet[open] { animation: sheet-enter .28s var(--ease) both; }
@keyframes sheet-enter { from { transform: translateY(35%); opacity: .3; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 2rem; height: 4px; margin: 0 auto .65rem; border-radius: 4px; background: #535557; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .65rem; }
.sheet-heading h2 { font-size: 1.5rem; letter-spacing: -.04em; }
.sheet-close { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: #27292b; color: var(--ink); font-size: 1.35rem; }
.sheet-links + .sheet-links { border-top: 1px solid var(--line); padding-top: .35rem; margin-top: .35rem; }
.sheet-links > :is(a,button) {
  position: relative; width: 100%; display: flex; gap: .8rem; align-items: center; min-height: 3.2rem;
  padding: .35rem .45rem .35rem 0; background: transparent; border: 0; text-decoration: none;
  color: var(--ink); font-size: .95rem; text-align: left; font-weight: 610;
}
.sheet-links > :is(a,button)::after { content: "›"; color: var(--muted); margin-left: auto; }
.sheet-links a[aria-disabled="true"] { color: var(--muted); }
.sheet-links small { font-size: .73rem; color: var(--muted); }
.sheet-links .menu-icon {
  width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: .6rem;
  display: grid; place-items: center; color: #ffb58c; font-size: 1.15rem; line-height: 1;
}
body:has(.menu-sheet[open]) { overflow: hidden; }
@media (min-width: 600px) {
  .menu-sheet { bottom: 1rem; border: 1px solid var(--line); border-radius: 1.5rem; }
}

.exchange-heading { justify-content: flex-start; }
.exchange-heading h1:focus { outline: none; }
.exchange-heading .pair { margin-inline-start: auto; }
.exchange-back { padding-inline: .65rem; font-size: 1.2rem; }
#exchange .exchange-heading { margin: 1.2rem .15rem .35rem; }
.exchange-heading h1, #referrals h1 { font-size: clamp(2.1rem,8vw,2.7rem); letter-spacing: -.06em; }
.live-rate { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .9rem; margin: 0 .16rem 1.05rem; }
.live-rate i { display: block; width: .45rem; height: .45rem; background: var(--action); border-radius: 50%; }
.exchange-stages { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: .4rem; padding: 0; margin: 0 .15rem 1.15rem; }
.exchange-stages li { height: 4px; background: #242c28; border-radius: 8px; }
.exchange-stages li[aria-current], .exchange-stages li[data-complete] { background: var(--accent); }
.exchange-step { min-width: 0; display: grid; gap: .55rem; }
.exchange-step:not([hidden]) { animation: view-enter .24s var(--ease) both; }
.swap-card { min-width: 0; border: 1px solid #292d2a; border-radius: 1.45rem; padding: .9rem 1.15rem .95rem; background: #101211; transition: border-color .18s; }
.swap-card:focus-within { border-color: #47826c; }
.swap-label, .swap-value { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.swap-label { color: #b7bdb9; font-size: .88rem; }
.swap-label > span, .swap-label #use-max { color: #98a39d; font-size: .83rem; font-weight: 530; }
.swap-label #use-max { min-height: 2rem; margin: -.35rem -.2rem -.35rem 0; padding: 0 .2rem; border-radius: .5rem; }
.swap-label #use-max:hover { color: var(--accent); }
.swap-value { margin: .7rem 0 .65rem; }
.swap-value input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: clamp(2.1rem,9vw,3rem); line-height: 1.15; font-weight: 640; letter-spacing: -.06em; font-variant-numeric: tabular-nums; caret-color: var(--accent); }
@supports (font-size: 1cqi) {
  .swap-value { container-type: inline-size; }
  .swap-value input { font-size: clamp(1rem, min(10.5cqi,calc((100cqi - 6.4rem) / var(--characters,1) * 1.6)), 3rem); }
}
.swap-value input::placeholder { color: #686e6a; opacity: 1; }
.swap-value input:focus-visible { outline: none; }
.coin-chip { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .77rem .28rem .3rem; border-radius: 3rem; color: var(--ink); background: #202522; font-weight: 750; font-size: .9rem; }
.coin-chip i { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-style: normal; font-size: 1rem; }
.coin-usdt { background: #239b77; color: #fff; }
.coin-rub { background: #3c423e; color: #fff; }
.swap-note { font-size: .77rem; color: #939d97; }
.swap-joint { position: relative; z-index: 1; display: grid; place-items: center; justify-self: center; margin: -1.3rem 0; width: 2.45rem; height: 2.45rem; color: #e8f3ed; background: #212624; border: 3px solid var(--bg); border-radius: 50%; font-size: 1rem; line-height: 1; }
.swap-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .42rem; margin: .3rem 0 .45rem; }
.swap-presets button, .tariff-options label span { min-height: 2.65rem; border: 1px solid var(--line); border-radius: .85rem; background: #101412; color: var(--ink); font-weight: 610; }
.swap-presets button { transition: transform .15s, border-color .15s, background .15s; }
.swap-presets button:active { transform: scale(.96); }
.swap-presets button[aria-pressed="true"], .tariff-options input:checked + span { background: #152c23; border-color: #3f735c; color: #a9f4cf; }
.swap-summary { display: grid; gap: .1rem; padding: 0 .16rem; }
.swap-summary > div, .swap-summary summary { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .27rem 0; font-size: .87rem; }
.swap-summary > div > span, .swap-summary summary > span { color: var(--muted); }
.swap-summary strong { font-weight: 560; text-align: right; }
.swap-summary summary { cursor: pointer; list-style: none; }
.swap-summary summary::-webkit-details-marker { display: none; }
.swap-summary summary strong { color: var(--accent); }
.swap-summary summary i { font-style: normal; }
.tariff-options { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; margin: .3rem 0; border: 0; padding: 0; gap: .3rem; }
.tariff-options label { position: relative; }
.tariff-options input { position: absolute; opacity: 0; }
.tariff-options span { display: grid; align-items: center; justify-content: center; font-size: .78rem; cursor: pointer; }
.tariff-options input:focus-visible + span { outline: 2px solid var(--accent); }
.swap-hint { color: #f1d097; font-size: .8rem; }
#quote-form #calculate, #quote-form #submit, .mint-button, #wallet .wallet-foot .wallet-exchange { background: var(--action); color: #062016; border: 0; font-weight: 760; }
#quote-form #calculate, #quote-form #submit { min-height: 3.2rem; border-radius: 1rem; margin-top: .22rem; }
#calculate span { margin-inline-start: .35rem; }
#quote-form #calculate:disabled { opacity: 1; background: #20362c; color: #97a89d; }
.exchange-choices { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .35rem; }
.exchange-choices .secondary { min-height: 2.35rem; padding: .3rem .15rem; font-size: .78rem; }
.saved-payout summary { color: var(--accent); cursor: pointer; font-size: .85rem; }
.saved-payout-fields { display: grid; gap: .4rem; margin-top: .45rem; }
#quote-form #quote-details { background: #10231b; border-color: var(--accent); font-size: .87rem; }
.invite-pass { position: relative; isolation: isolate; display: grid; align-content: center; overflow: hidden; min-height: 10rem; padding: 1.1rem 1.2rem; border: 1px solid #355246; border-radius: 1.4rem; background: radial-gradient(ellipse at 95% 0, #245742 0%, transparent 64%), #10221b; }
.invite-pass > div:first-child { position: relative; z-index: 1; max-width: 66%; }
.invite-pass p { color: #b8d6c7; font-size: .82rem; }
#referral-rate { font-size: clamp(3.6rem,15vw,5rem); letter-spacing: -.075em; line-height: 1.04; color: #d8ffea; margin: .1rem 0 .3rem; }
#referral-boost { margin-top: .4rem; font-size: .75rem; color: var(--accent); }
.pass-art { position: absolute; right: 6%; top: 50%; width: 23%; aspect-ratio: 1; transform: translateY(-50%) rotate(-20deg); }
.pass-art i { position: absolute; inset: 13% -5%; border: 1px solid #8ae1b680; border-radius: 15%; background: linear-gradient(145deg,#56836a,#143b2b 75%); transform: translate(17%, -29%) rotate(18deg); }
.pass-art i:nth-child(2) { transform: translate(10%, -14%) rotate(9deg); }
.pass-art i:last-child { transform: none; background: linear-gradient(145deg,#c7ffde,#75cda4 45%,#42966f); box-shadow: 0 6px 14px #03100755; }
.pass-art i:last-child::before, .pass-art i:last-child::after { content: ""; position: absolute; width: 30%; height: 11%; background: #163d2c; transform: skewX(-30deg); border-radius: 2px; left: 30%; top: 35%; }
.pass-art i:last-child::after { left: 39%; top: 53%; }
.invite-stats { display: grid; grid-template-columns: 1.25fr 1fr; margin: .7rem 0; gap: .5rem; }
.invite-stats > div, .invite-card, .background-setting { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 1.15rem; padding: .95rem; }
.invite-stats span { color: var(--muted); font-size: .76rem; }
.invite-stats strong { display: block; margin-top: .28rem; font-size: clamp(1.1rem,5.5vw,1.65rem); font-weight: 630; letter-spacing: -.04em; overflow-wrap: anywhere; }
.invite-card { display: grid; gap: .7rem; }
.invite-card p, .invite-card label { font-size: .85rem; color: var(--muted); }
.invite-link-box { display: flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: .85rem; padding: .65rem .8rem; color: var(--accent); background: #0b100d; }
.invite-link-box input { width: 100%; min-width: 0; color: var(--ink); background: none; border: 0; padding: 0; text-overflow: ellipsis; }
.invite-actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: .5rem; }
.mint-button, .invite-actions .secondary { display: flex; justify-content: center; align-items: center; gap: .55rem; text-decoration: none; font-size: .88rem; border-radius: .8rem; min-height: 2.85rem; }
.mint-button[aria-disabled="true"] { opacity: .45; }
.settings-heading { margin: 1.4rem 0 .65rem; font-size: .88rem; color: var(--muted); }
.background-setting { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; cursor: pointer; }
.background-setting small { display: block; color: var(--muted); font-size: .8rem; margin-top: .12rem; }
.background-setting input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.background-setting i { flex: none; position: relative; width: 2.85rem; height: 1.65rem; border-radius: 2rem; background: #3a423e; transition: background .2s; }
.background-setting i::after { content: ""; position: absolute; left: .2rem; top: .2rem; width: 1.25rem; height: 1.25rem; background: #eaf5ef; border-radius: 50%; transition: transform .2s; }
.background-setting input:checked + i { background: #22875c; }
.background-setting input:checked + i::after { transform: translateX(1.2rem); }
.background-setting input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }
.navigation { --inset: .25rem; border-radius: 2.7rem; border-color: #313936; background: #121714f5; }
.nav-indicator { border-radius: 2.4rem; background: #27332d; }
.navigation[data-active="settings"] .nav-indicator { opacity: 0; }
.bank-picker { margin-block: .25rem; }
.bank-picker summary { cursor: pointer; padding: .3rem 0; color: var(--accent); font-size: .85rem; }
.bank-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .38rem; margin-top: .42rem; }
.bank-grid button { display: flex; align-items: center; gap: .43rem; min-height: 2.8rem; min-width: 0; padding: .35rem .4rem; text-align: left; overflow-wrap: anywhere; border-radius: .7rem; border: 1px solid var(--line); color: var(--ink); background: var(--surface-up); font-size: .73rem; font-weight: 700; }
.bank-grid button { position: relative; min-height: 3.25rem; padding: .48rem .45rem; gap: .52rem; background: linear-gradient(140deg,#1b201e,#141816); }
.bank-logo { --size: 1.8rem; width: var(--size); height: var(--size); flex: none; border-radius: .42rem; background: url("/bank-logos.webp") no-repeat; background-size: auto 100%; background-position: calc(-1 * var(--logo-index) * var(--size)) center; }
.bank-grid button::after { content: "✓"; position: absolute; right: .18rem; top: .1rem; color: var(--accent); font-size: .65rem; line-height: 1; opacity: 0; }
.bank-grid button[aria-pressed="true"]::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .bank-picker[open] .bank-logo { animation: bank-appear .3s backwards; animation-delay: calc(var(--logo-index) * 18ms); }
  .bank-grid button { transition: transform .15s, border-color .18s, background-color .18s; }
  .bank-grid button:active { transform: scale(.97); }
  .bank-grid button[aria-pressed="true"] .bank-logo { animation: bank-select .32s ease-out; }
  .bank-grid button[aria-pressed="true"]::after { animation: bank-select .26s ease-out; }
  #history-orders .order-item { animation: bank-appear .24s ease-out backwards; }
  #history-orders .order-item:nth-child(2) { animation-delay: 35ms; }
  #history-orders .order-item:nth-child(3) { animation-delay: 70ms; }
  @keyframes bank-appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes bank-select { 0% { transform: scale(.85); } 60% { transform: scale(1.09); } 100% { transform: scale(1); } }
}
.bank-grid button[aria-pressed="true"], .history-filters button[aria-pressed="true"] { background: #193329; border-color: #507c68; color: #bbf9db; }
.history-filters { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .7rem; }
.history-filters button { padding: .46rem .62rem; border-radius: 2rem; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .73rem; font-weight: 700; }
#wallet #history-orders { display: grid; gap: .55rem; border: 0; overflow: visible; }
#wallet #history-orders .order-item { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); padding: .8rem; gap: .4rem; }
#history-orders .order-meta strong { font-size: .95rem; }
#history-orders .order-controls { margin-top: .18rem; }
#history-orders .order-controls button { min-height: 2.35rem; border-radius: .72rem; background: var(--surface-up); }
.navigation button[aria-current] { color: var(--ink); }
.navigation button[aria-current] .tab-icon, .sheet-links .menu-icon { color: var(--accent); }
.bonus-icon { background: transparent; border-color: currentColor; color: inherit; }
.wallet-icon::after { background: var(--surface); }
.menu-sheet, dialog { background: #141916; border-color: var(--line); }
.sheet-close, .wallet-stats > div { background: #202622; }
.primary:hover:not(:disabled) { background: #7cebbe; }
.secondary:hover:not(:disabled) { border-color: #527b65; }
.control::placeholder { color: #8a958e; }
.profile-avatar-frame, .wheel-heading { background: linear-gradient(125deg,#14271d,#23523c); border-color: #456550; }
.pair, .wheel-reveal { background: #1e3026; color: #b7ddc9; }
.wheel-card::before { background: radial-gradient(ellipse at center, #23533b70,transparent 70%); }
.wheel-frame::before { border-color: #568c6f; box-shadow: 0 0 25px #224e3b; }
.wheel-hub { background: linear-gradient(140deg,#bddbc9,#324e3c,#6e9681); }
.wheel-hub span { background: radial-gradient(circle at 35% 25%,#3b8563,#102019); }
.wheel-pointer, #wheel-progress::-webkit-progress-value { background: linear-gradient(115deg,#58b587,#d8fff0); }
@keyframes wheel-orbit-glow { from { opacity: .5; } to { opacity: 1; box-shadow: 0 0 38px #418562; } }
@media (max-width: 350px) {
  .swap-card { padding-inline: .85rem; }
  .swap-value { gap: .35rem; }
  .coin-chip { padding-right: .55rem; }
  .invite-stats > div { padding: .75rem; }
}


.bank-logo-0 { --logo-index: 0; background-position: 0.00000000% center; }
.bank-logo-1 { --logo-index: 1; background-position: 9.09090909% center; }
.bank-logo-2 { --logo-index: 2; background-position: 18.18181818% center; }
.bank-logo-3 { --logo-index: 3; background-position: 27.27272727% center; }
.bank-logo-4 { --logo-index: 4; background-position: 36.36363636% center; }
.bank-logo-5 { --logo-index: 5; background-position: 45.45454545% center; }
.bank-logo-6 { --logo-index: 6; background-position: 54.54545455% center; }
.bank-logo-7 { --logo-index: 7; background-position: 63.63636364% center; }
.bank-logo-8 { --logo-index: 8; background-position: 72.72727273% center; }
.bank-logo-9 { --logo-index: 9; background-position: 81.81818182% center; }
.bank-logo-10 { --logo-index: 10; background-position: 90.90909091% center; }
.bank-logo-11 { --logo-index: 11; background-position: 100.00000000% center; }



.wheel-stage { position: relative; width: 100%; max-width: 31rem; margin: .6rem auto; aspect-ratio: 1.64; }
.wheel-stage .wheel-frame { position: absolute; right: 0; bottom: 0; width: 61%; margin: 0; }
.wheel-host {
  position: absolute; z-index: 2; width: 46%; aspect-ratio: 3 / 4; left: 0; bottom: -1%;
  pointer-events: none; transform: scaleX(-1); transform-origin: 50% 96%;
  background: url("/wheel-host.webp?v=standing") 100% center / 400% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .is-spinning .wheel-host { animation: turn-arm .95s step-end, turn-body .95s ease-in-out; }
  @keyframes turn-arm {
    0% { background-position-x: 100%; }
    14% { background-position-x: 0%; }
    30% { background-position-x: 33.333333%; }
    51% { background-position-x: 66.666667%; }
    78%,100% { background-position-x: 100%; }
  }
  @keyframes turn-body {
    0%,100% { transform: scaleX(-1); }
    29% { transform: translateX(3%) rotate(2deg) scaleX(-1); }
    52% { transform: translateX(5%) rotate(6deg) scaleX(-1); }
  }
}