:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f5;
  background: #04090c;
  color-scheme: dark;
  --bg: #04090c;
  --surface: #091217;
  --surface-2: #0d1a20;
  --line: #17313a;
  --line-soft: #10242b;
  --muted: #64818a;
  --muted-2: #91aab1;
  --white: #f4f4f4;
  --accent: #62e7ff;
  --accent-2: #8d7cff;
  --green: #65ca78;
  --red: #e15e63;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: #04090c; }

body {
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: url("/assets/aevor-logo.png") center / contain no-repeat;
  opacity: .045;
  pointer-events: none;
}

button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 82px 16px 104px;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 520px);
  height: 68px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4, 9, 12, .9);
  border-bottom: 1px solid #10242b;
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.brand-logo { width: 30px; height: 30px; border: 1px solid #1a4c59; border-radius: 10px; object-fit: cover; box-shadow: 0 0 18px rgba(98,231,255,.12); }
.top-balance { min-width: 112px; padding: 7px 12px; text-align: right; background: linear-gradient(145deg,#10242b,#081014); border: 1px solid #1a3a44; border-radius: 13px; }
.top-balance span { display: block; color: #5b8792; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.top-balance b { font-size: 13px; }

.page-title { margin: 0 0 14px; font-size: 23px; line-height: 1.1; }
.eyebrow { margin: 0 0 10px; color: #555; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.muted { color: var(--muted-2); }
.tiny { color: #626262; font-size: 11px; }

.wallet-hero { padding-top: 20px; text-align: center; }
.demo-notice { margin: 0 auto 18px; padding: 10px 12px; color: #9fdfea; background: rgba(98,231,255,.07); border: 1px solid #24505c; border-radius: 13px; font-size: 11px; line-height: 1.35; }
.demo-notice span, .demo-badge { display: inline-flex; margin-right: 6px; padding: 3px 6px; color: #041014; background: linear-gradient(135deg,var(--accent),var(--accent-2)); border-radius: 6px; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.demo-notice.compact { margin: 12px 0; text-align: left; }
.balance-label { color: #585858; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.big-balance { margin: 10px 0 2px; font-size: clamp(48px, 15vw, 68px); line-height: 1; font-weight: 850; letter-spacing: -.05em; }
.big-balance small { color: #737373; font-size: 21px; font-weight: 500; letter-spacing: 0; }
.wallet-address { margin-top: 10px; color: #656565; font-size: 12px; }
.plus-offer { width: min(100%, 330px); margin: 18px auto 0; padding: 12px 14px; display: grid; grid-template-columns: 34px 1fr 16px; align-items: center; gap: 10px; color: #edfafd; text-align: left; background: linear-gradient(135deg,rgba(98,231,255,.09),rgba(141,124,255,.08)); border: 1px solid #24505c; border-radius: 16px; cursor: pointer; }
.plus-offer-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #061014; background: linear-gradient(135deg,var(--accent),var(--accent-2)); border-radius: 11px; font-size: 17px; }
.plus-offer b, .plus-offer small { display: block; }
.plus-offer b { font-size: 13px; }
.plus-offer small { margin-top: 3px; color: var(--muted-2); font-size: 10px; font-weight: 500; }
.plus-offer i { color: var(--accent); font-size: 21px; font-style: normal; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
.stat { min-height: 82px; padding: 17px 14px; text-align: left; background: linear-gradient(145deg,#102128,#071014); border: 1px solid #17313a; border-radius: 17px; }
.stat strong { display: block; font-size: 21px; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 6px; color: #636363; font-size: 11px; }

.limit { margin: 14px 0 16px; }
.limit-track { height: 10px; overflow: hidden; border-radius: 999px; background: #181818; border: 1px solid #242424; }
.limit-fill { width: 0; height: 100%; background: linear-gradient(90deg,var(--accent),var(--accent-2)); }
.limit-meta { display: flex; justify-content: space-between; margin-top: 7px; color: #565656; font-size: 10px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { min-height: 50px; padding: 13px 16px; border: 1px solid #17313a; border-radius: 16px; color: #e9f5f7; background: linear-gradient(180deg,#102128,#081014); font-weight: 700; cursor: pointer; }
.btn:active { transform: scale(.985); }
.btn.primary { grid-column: 1 / -1; color: #031014; background: linear-gradient(110deg,var(--accent),#93f1ff 58%,#b5aaff); border-color: #94efff; box-shadow: 0 10px 34px rgba(98,231,255,.12); }
.btn.wide { width: 100%; }
.actions .history-action { grid-column: 1 / -1; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .4; }

.section { margin-top: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head span { color: #606060; font-size: 11px; }

.coin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.coin-card { min-width: 0; min-height: 118px; padding: 15px; text-align: left; color: inherit; background: linear-gradient(145deg,#102128,#071014); border: 1px solid #17313a; border-radius: 17px; cursor: pointer; }
.coin-top { display: flex; justify-content: space-between; align-items: center; }
.coin-top b { font-size: 18px; }
.coin-top span { color: #5e5e5e; font-size: 20px; }
.coin-card small { display: block; margin-top: 4px; color: #858585; }
.coin-card .minimum { color: #555; font-size: 10px; }
.spark { width: 100%; height: 26px; margin-top: 8px; }
.spark path { fill: none; stroke: var(--green); stroke-width: 2; }
.spark.red path { stroke: var(--red); }

.empty { padding: 34px 18px; text-align: center; color: #5e5e5e; border: 1px dashed #222; border-radius: 17px; }
.demo-list { display: grid; gap: 8px; }
.demo-operation { padding: 15px; background: linear-gradient(145deg,#102128,#071014); border: 1px solid #17313a; border-radius: 16px; }
.demo-operation-head { display: flex; align-items: center; gap: 7px; }
.demo-operation-head b { font-size: 14px; }
.demo-operation-head strong { margin-left: auto; color: var(--green); font-size: 14px; }
.operation-status { padding: 3px 7px; color: var(--muted-2); background: #13252b; border-radius: 999px; font-size: 9px; font-weight: 750; }
.operation-status.pending { color: #ffd890; background: rgba(255,184,71,.1); }
.operation-status.completed { color: #8fe49e; background: rgba(101,202,120,.1); }
.demo-operation p { margin: 11px 0 5px; color: #d3e5e9; font-size: 13px; }
.demo-operation small { color: var(--muted-2); font-size: 10px; }
.demo-operation .mono { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted-2); }
.back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 17px; padding: 0; border: 0; color: #aaa; background: none; cursor: pointer; }

.route-list, .menu-list, .profile-card, .info-card, .faq-list { overflow: hidden; background: rgba(8,18,23,.96); border: 1px solid #17313a; border-radius: 18px; }
.route, .menu-row, .profile-row { width: 100%; min-height: 62px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; color: inherit; background: transparent; border: 0; border-bottom: 1px solid #1d1d1d; text-align: left; }
.route:last-child, .menu-row:last-child, .profile-row:last-child { border-bottom: 0; }
.route strong { display: block; }
.route small { color: #747474; }
.route .profit { font-size: 17px; font-weight: 800; }
.menu-row { cursor: pointer; font-weight: 650; }
.menu-row .menu-left { display: flex; align-items: center; gap: 13px; }
.menu-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #1b3d47; border-radius: 12px; color: var(--accent); background: #0d2026; }
.menu-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chevron { color: #555; font-size: 20px; }
.profile-title { margin: 20px 2px 9px; color: #555; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.profile-row { min-height: 48px; color: #656565; font-size: 12px; }
.profile-row b { color: #e6e6e6; font-size: 13px; }
.versions { margin-top: 18px; text-align: center; color: #3f3f3f; font-size: 10px; line-height: 1.7; }

.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ref-stat { padding: 20px; text-align: center; background: #0e0e0e; border: 1px solid #202020; border-radius: 17px; }
.ref-stat b { display: block; font-size: 30px; }
.ref-stat span { color: #666; font-size: 11px; }
.link-box { margin-top: 14px; padding: 15px; background: #0d0d0d; border: 1px solid #202020; border-radius: 16px; }
.link-box code { display: block; margin: 8px 0 13px; overflow-wrap: anywhere; color: #bdbdbd; font-size: 12px; }

.info-card { padding: 18px; }
.info-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid #1d1d1d; }
.info-step:last-child { border-bottom: 0; }
.step-num { color: #555; font-size: 12px; }
.info-step h3 { margin: 0 0 6px; font-size: 15px; }
.info-step p { margin: 0; color: #929292; font-size: 13px; line-height: 1.5; }
.plus-heading { margin-bottom: 18px; }
.plus-heading > span { display: inline-flex; margin-bottom: 11px; padding: 5px 9px; color: #9bb2b8; background: #0d1a20; border: 1px solid #17313a; border-radius: 999px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.plus-heading .page-title { max-width: 330px; margin-bottom: 9px; font-size: 29px; letter-spacing: -.035em; }
.plus-heading p { margin: 0; color: var(--muted-2); font-size: 13px; line-height: 1.5; }
.plus-purchase { padding: 15px; background: #091217; border: 1px solid #17313a; border-radius: 18px; }
.plus-purchase > div { margin-bottom: 13px; }
.plus-purchase small, .plus-purchase b { display: block; }
.plus-purchase small { color: var(--muted); font-size: 10px; }
.plus-purchase b { margin-top: 4px; font-size: 22px; }
.plus-purchase em { color: var(--muted-2); font-size: 12px; font-style: normal; font-weight: 500; }
.faq-item { border-bottom: 1px solid #1d1d1d; }
.faq-item:last-child { border-bottom: 0; }
.faq-q { width: 100%; padding: 17px; display: flex; justify-content: space-between; color: #eee; background: transparent; border: 0; text-align: left; font-weight: 700; cursor: pointer; }
.faq-a { display: none; padding: 0 17px 17px; color: #8d8d8d; font-size: 13px; line-height: 1.55; }
.faq-item.open .faq-a { display: block; }

.support-chat { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.bubble { max-width: 82%; padding: 11px 13px; border-radius: 15px; background: #151515; border: 1px solid #242424; }
.bubble.mine { align-self: flex-end; color: #050505; background: #eee; border-color: #eee; }
.bubble time { display: block; margin-top: 5px; color: #777; font-size: 9px; text-align: right; }
.support-form { position: sticky; bottom: 80px; display: grid; grid-template-columns: 1fr 48px; gap: 8px; margin-top: 16px; padding: 8px; background: #080808; border: 1px solid #202020; border-radius: 18px; }
.support-form input { min-width: 0; padding: 0 10px; border: 0; outline: 0; color: #eee; background: transparent; }
.support-form button { border: 0; border-radius: 13px; color: #050505; background: #eee; font-weight: 900; }

.nav { position: fixed; z-index: 25; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 74px), 360px); height: 60px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; background: rgba(7,17,21,.94); border: 1px solid #1b3d47; border-radius: 22px; box-shadow: 0 16px 50px #000, 0 0 28px rgba(98,231,255,.04); backdrop-filter: blur(18px); }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 17px; color: #55717a; background: transparent; font-size: 9px; cursor: pointer; }
.nav button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav button svg circle { fill: currentColor; stroke: none; }
.nav button span { font-size: 9px; line-height: 1; }
.nav button.active { color: var(--accent); background: linear-gradient(145deg,rgba(98,231,255,.14),rgba(141,124,255,.08)); box-shadow: inset 0 0 0 1px rgba(98,231,255,.09); }

.overlay { position: fixed; z-index: 40; inset: 0; display: flex; align-items: end; justify-content: center; padding: 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.sheet { width: min(100%, 488px); max-height: 86vh; overflow: auto; padding: 19px; background: #101010; border: 1px solid #2a2a2a; border-radius: 24px; box-shadow: 0 -30px 80px #000; }
.sheet-handle { width: 42px; height: 4px; margin: -7px auto 18px; border-radius: 99px; background: #373737; }
.sheet h2 { margin: 0 0 6px; font-size: 20px; }
.sheet p { margin: 0 0 16px; color: #777; font-size: 12px; }
.field { width: 100%; height: 54px; padding: 0 15px; border: 1px solid #292929; border-radius: 15px; outline: 0; color: #fff; background: #090909; font-size: 17px; }
.field:focus { border-color: #777; }
.second-field { margin-top: 9px; }
.provider-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 13px 0; padding: 4px; background: #090909; border: 1px solid #222; border-radius: 14px; }
.provider-tabs button { padding: 10px; border: 0; border-radius: 11px; color: #777; background: transparent; }
.provider-tabs button.active { color: #eee; background: #242424; }
.input-wrap { position: relative; }
.all-btn { position: absolute; right: 9px; top: 9px; height: 36px; padding: 0 13px; border: 1px solid #303030; border-radius: 10px; color: #ddd; background: #1a1a1a; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.sheet-actions .primary { grid-column: auto; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 88px; transform: translateX(-50%); width: min(calc(100% - 32px), 460px); padding: 13px 16px; text-align: center; background: #efefef; color: #090909; border-radius: 14px; font-size: 13px; font-weight: 700; box-shadow: 0 15px 45px #000; }

.test-mode-overlay { z-index: 70; align-items: center; }
.test-mode-dialog { width: min(100%, 420px); padding: 26px 22px 22px; text-align: center; background: linear-gradient(155deg,#102128,#070d10); border: 1px solid #24505c; border-radius: 24px; box-shadow: 0 24px 90px #000; }
.test-mode-icon { width: 44px; height: 44px; margin: 0 auto 14px; display: grid; place-items: center; color: #031014; background: linear-gradient(135deg,var(--accent),var(--accent-2)); border-radius: 15px; font-size: 22px; font-weight: 900; font-family: Georgia, serif; }
.test-mode-dialog h2 { margin: 0 0 10px; font-size: 22px; }
.test-mode-dialog p { margin: 0 0 20px; color: var(--muted-2); font-size: 13px; line-height: 1.55; }

@media (max-width: 370px) {
  .shell { padding-left: 12px; padding-right: 12px; }
  .big-balance { font-size: 47px; }
}
