:root {
  --page: #020a17;
  --panel: #0a1931;
  --cyan: #42e5ff;
  --muted: #7f91af;
  --white: #f3f6ff;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: #010711;
  touch-action: pan-y;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: #010711;
  color: var(--white);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
}

button { color: inherit; font: inherit; }

.app-shell {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 0%, rgba(56, 43, 160, .34), transparent 31%),
    radial-gradient(circle at 3% 42%, rgba(0, 198, 241, .12), transparent 28%),
    linear-gradient(180deg, #040a18 0%, #020a17 54%, #010711 100%);
}

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .25;
}

.ambient-left { width: 230px; height: 230px; top: 18%; left: -150px; background: #00c7ff; }
.ambient-right { width: 250px; height: 250px; right: -180px; bottom: 3%; background: #382ac8; }

.phone-page {
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  position: relative;
  margin: 0 auto;
  padding: 17px 10px calc(82px + env(safe-area-inset-bottom));
}

.topbar { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.top-actions { display: flex; flex: 0 0 auto; flex-flow: row nowrap; align-items: center; gap: 7px; }

.brand,
.icon-button,
.home-language-toggle,
.service-card,
.market-card,
.more-link,
.eye-toggle,
.live-pill,
.nav-item {
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.brand { display: flex; align-items: center; gap: 9px; padding: 0; color: inherit; text-align: left; text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #08101f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(145deg, #ffcd56, #d99008);
  box-shadow: 0 10px 24px rgba(219, 143, 13, .18);
}

.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 13px; font-weight: 800; letter-spacing: 1.7px; }
.brand-name b { color: #ffc54d; }
.brand-tagline { color: #7d8ca8; font-size: 9px; letter-spacing: .9px; }

.icon-button {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(142, 159, 202, .17);
  border-radius: 11px;
  background: rgba(42, 49, 91, .42);
}

.home-language-toggle {
  min-width: 42px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(78, 226, 247, .32);
  border-radius: 999px;
  color: #8cecf8;
  background: rgba(9, 28, 52, .72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
}

.home-language-toggle:active { transform: scale(.97); }

.language-icon { width: 17px; height: 17px; position: relative; display: block; border: 1.6px solid #c8d4ea; border-radius: 50%; }
.language-icon::before { content: ""; width: 7px; height: 13px; position: absolute; top: 1px; left: 3.4px; border-right: 1.3px solid #c8d4ea; border-left: 1.3px solid #c8d4ea; border-radius: 50%; }
.language-icon::after { content: ""; width: 13px; height: 1.3px; position: absolute; top: 6.3px; left: .5px; background: #c8d4ea; box-shadow: 0 3.5px 0 rgba(200, 212, 234, .75); }
.language-icon i { display: none; }

.hero-card {
  min-height: 174px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 1px solid rgba(86, 142, 205, .27);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 7%, rgba(23, 210, 237, .19), transparent 36%),
    linear-gradient(136deg, #0d203c 0%, #08162e 57%, #071329 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.18);
  transform: perspective(800px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform .25s ease;
}

.hero-copy { z-index: 2; width: 67%; padding: 19px 0 18px 19px; }

.intelligence-pill {
  width: max-content;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(44, 212, 249, .28);
  border-radius: 999px;
  color: #58def7;
  background: rgba(0, 170, 212, .08);
  font-size: 9px;
}

.mini-spark { font-size: 12px; }

.hero-copy h1 {
  margin: 0;
  color: #30ddfa;
  font-size: clamp(24px, 6.7vw, 29px);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.8px;
}

.hero-copy h1 span { display: block; margin-bottom: 4px; color: #f4f7ff; font-size: clamp(22px, 6.3vw, 27px); }
.hero-copy p { margin: 12px 0 0; color: #8494b3; font-size: clamp(10px, 2.9vw, 12px); white-space: nowrap; }

.ai-orbit {
  width: 126px;
  height: 126px;
  position: absolute;
  top: 26px;
  right: -2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffd05b;
  background:
    radial-gradient(circle at 35% 29%, #70eeff 0, #41d6fb 7%, transparent 16%),
    radial-gradient(circle at 40% 32%, #2ea9f5 0, #1766f8 42%, #1c1da2 68%, #031329 70%);
  box-shadow: inset -19px -22px 23px rgba(0, 5, 32, .72), 0 17px 26px rgba(0, 3, 18, .42);
  animation: globe-float 4s ease-in-out infinite;
}

.ai-orbit strong { z-index: 2; font-size: 35px; letter-spacing: -2px; }
.orbit { position: absolute; border: 1px solid rgba(95, 221, 255, .5); border-radius: 50%; }
.orbit-one { width: 141px; height: 71px; transform: rotate(-15deg); animation: orbit-pulse 2.8s ease-in-out infinite; }
.orbit-two { width: 92px; height: 141px; transform: rotate(67deg); animation: orbit-pulse 2.8s ease-in-out -.9s infinite; }

.glow-dot { width: 13px; height: 13px; position: absolute; top: 31px; left: 34px; border-radius: 50%; background: #bdfcff; box-shadow: 0 0 14px 6px #5eedff; }

.balance-card {
  min-height: 94px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 10px;
  padding: 15px 16px;
  border: 1px solid rgba(103, 142, 189, .23);
  border-radius: 20px;
  background: linear-gradient(145deg, #0d1f3a, #09152b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.balance-info { display: flex; flex-direction: column; }
.balance-label-row { display: flex; align-items: center; gap: 5px; color: #8395b5; font-size: 12px; }
.eye-toggle { display: grid; place-items: center; padding: 2px; }

.eye-icon { width: 15px; height: 10px; position: relative; display: block; border: 1.5px solid #8194b6; border-radius: 50% / 60%; }
.eye-icon i { width: 4px; height: 4px; position: absolute; top: 1.5px; left: 4px; border-radius: 50%; background: #8194b6; }
.eye-icon.closed::after { content: ""; width: 18px; height: 1.5px; position: absolute; top: 4px; left: -3px; transform: rotate(-28deg); background: #8194b6; }

.balance-value { min-height: 27px; margin-top: 17px; font-size: clamp(20px, 6.2vw, 27px); line-height: 1; letter-spacing: .4px; }
.balance-usd { margin-top: 6px; color: #8796b2; font-size: 9px; }
.balance-visual { width: 122px; position: relative; flex: 0 0 122px; }

.live-pill { height: 23px; position: absolute; top: 1px; right: 0; display: grid; place-items: center; padding: 0 10px; border: 1px solid rgba(32, 209, 243, .29); border-radius: 999px; color: #56e5ff; background: rgba(1, 159, 193, .12); font-size: 9px; }
.live-pill::before { content: ""; width: 4px; height: 4px; margin-right: 5px; display: inline-block; border-radius: 50%; background: #4deaff; box-shadow: 0 0 7px #4deaff; animation: live-pulse 1.4s infinite; }

.sparkline { width: 116px; height: 43px; position: absolute; right: 0; bottom: -2px; overflow: hidden; }
.spark-fill { position: absolute; inset: 10px 0 0; background: linear-gradient(180deg, rgba(83, 216, 255, .25), rgba(96, 78, 219, .07)); clip-path: polygon(0 65%, 19% 48%, 30% 36%, 43% 42%, 60% 18%, 72% 26%, 89% 0, 100% 4%, 100% 100%, 0 100%); }
.sparkline i { height: 2px; position: absolute; display: block; border-radius: 999px; transform-origin: left center; background: linear-gradient(90deg, #54eaff, #9978ff); }
.sparkline .s1 { width: 22px; left: 0; top: 29px; transform: rotate(-20deg); }
.sparkline .s2 { width: 17px; left: 20px; top: 22px; transform: rotate(-14deg); }
.sparkline .s3 { width: 18px; left: 36px; top: 18px; transform: rotate(8deg); }
.sparkline .s4 { width: 24px; left: 53px; top: 21px; transform: rotate(-29deg); }
.sparkline .s5 { width: 18px; left: 74px; top: 10px; transform: rotate(11deg); }
.sparkline .s6 { width: 24px; left: 91px; top: 13px; transform: rotate(-10deg); }

.section-block { margin-top: 14px; }
.section-heading { min-height: 23px; display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.section-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.2px; }
.section-heading > span { color: #7385a3; font-size: 10px; }
.more-link { color: #7385a3; font-size: 9px; }
.more-link { padding: 4px 0 4px 8px; }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 7px; }
.markets-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }

.service-card {
  min-width: 0;
  min-height: 63px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 9px;
  border: 1px solid rgba(107, 138, 181, .19);
  border-radius: 15px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(15, 33, 56, .95), rgba(11, 23, 42, .95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  transition: transform .2s ease, border-color .2s ease;
}

.service-icon { width: 32px; height: 32px; flex: 0 0 32px; position: relative; display: grid; place-items: center; border-radius: 10px; color: #46e5ff; background: linear-gradient(145deg, rgba(21, 93, 125, .76), rgba(30, 47, 91, .88)); font-size: 22px; font-weight: 400; }
.app-download-icon::before { content: ""; width: 16px; height: 22px; position: absolute; border: 1.6px solid currentColor; border-radius: 4px; box-sizing: border-box; }
.app-download-icon::after { content: ""; width: 3px; height: 1.5px; position: absolute; bottom: 7px; border-radius: 2px; background: currentColor; }
.app-download-icon i { width: 1.6px; height: 7px; position: absolute; top: 7px; left: 15px; border-radius: 2px; background: currentColor; }
.app-download-icon i::after { content: ""; width: 6px; height: 6px; position: absolute; left: -2.2px; bottom: -1px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.service-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.service-copy strong { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.service-copy small { color: #8192ae; font-size: 10px; }

.people-icon i { width: 8px; height: 8px; position: absolute; top: 8px; border: 1.5px solid #46e5ff; border-radius: 50%; }
.people-icon i:nth-child(1) { left: 7px; }
.people-icon i:nth-child(2) { right: 7px; }
.people-icon i:nth-child(3) { width: 19px; height: 10px; top: 17px; left: 6px; border-radius: 12px 12px 0 0; border-bottom: 0; }
.invite-icon::after { content: "+"; position: absolute; top: 2px; right: 3px; font-size: 12px; }
.gift-icon::before { content: ""; width: 18px; height: 2px; position: absolute; top: 10px; background: #46e5ff; }

.market-section { margin-top: 14px; }

.market-card { min-width: 0; min-height: 80px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: 1fr; align-items: center; column-gap: 9px; padding: 8px 9px; border: 1px solid rgba(106, 135, 176, .18); border-radius: 14px; text-align: left; background: linear-gradient(145deg, rgba(16, 28, 49, .98), rgba(10, 20, 37, .98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.02); transition: transform .2s ease, border-color .2s ease; }
.coin-icon { width: 34px; height: 34px; grid-column: 1; grid-row: 1; display: grid; place-items: center; margin: 0; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; }
.coin-icon img { width: 100%; height: 100%; position: relative; z-index: 1; grid-area: 1/1; display: block; border-radius: 50%; object-fit: contain; }
.coin-icon img:not([src]),
.coin-icon img[src=""] { display: none; }
.coin-icon.btc { background: #ff991c; }
.coin-icon.eth { background: linear-gradient(145deg, #8598ff, #585adb); }
.coin-icon.trx { background: linear-gradient(145deg, #ff4b72, #e9254f); }
.coin-icon.sol { background: linear-gradient(145deg, #2ee6b7, #7258f6); }
.coin-icon.bnb { background: linear-gradient(145deg, #f7c84a, #ce8d14); }
.coin-icon.xrp { background: linear-gradient(145deg, #7f95ae, #3e526c); }
.coin-icon.generic { background: linear-gradient(145deg, #4d7197, #263c5d); }
.market-data { min-width: 0; grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 3px; }
.market-data span { overflow: hidden; color: #90a0bc; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.market-data strong { font-size: 14px; white-space: nowrap; }
.market-change { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: #31efbb; font-size: 10px; white-space: nowrap; }
.market-change b { color: #8092b2; font-size: 14px; font-weight: 400; }
.market-change.negative,
.market-change.negative b { color: #ff6685; }
.market-live-status { display: inline-flex; align-items: center; gap: 5px; }
.market-live-status i { width: 5px; height: 5px; border-radius: 50%; background: #f3b849; box-shadow: 0 0 7px rgba(243, 184, 73, .65); }
.market-live-status.connected { color: #45dfb2; }
.market-live-status.connected i { background: #45dfb2; box-shadow: 0 0 7px rgba(69, 223, 178, .7); animation: live-pulse 1.4s infinite; }
.market-live-status.offline { color: #ff7890; }
.market-live-status.offline i { background: #ff7890; box-shadow: 0 0 7px rgba(255, 120, 144, .65); }
.market-price-up { animation: market-price-up .55s ease; }
.market-price-down { animation: market-price-down .55s ease; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 26px 0; color: #7385a3; text-align: center; }

.announcement-section { margin-top: 15px; }
.announcement-list { margin-top: 7px; overflow: hidden; border: 1px solid rgba(106, 135, 176, .18); border-radius: 16px; background: linear-gradient(145deg, rgba(15, 30, 52, .98), rgba(8, 19, 36, .98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.02); }
.announcement-item { width: 100%; min-height: 63px; position: relative; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; gap: 7px; padding: 12px 35px 12px 13px; border: 0; border-bottom: 1px solid rgba(106, 135, 176, .13); color: #eef4ff; text-align: left; text-decoration: none; background: transparent; cursor: pointer; transition: background .2s ease; }
.announcement-item:last-child { border-bottom: 0; }
.announcement-item::after { content: "›"; position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: #71829f; font-size: 17px; font-weight: 300; }
.announcement-item strong { width: 100%; overflow: hidden; font-size: 14px; line-height: 1.35; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.announcement-item span { color: #7385a3; font-size: 12px; }
.announcement-empty { padding: 24px 14px; color: #7385a3; text-align: center; font-size: 12px; }

.toast { position: fixed; z-index: 20; bottom: 94px; left: 50%; transform: translate(-50%, 8px); padding: 8px 14px; border: 1px solid rgba(74, 223, 255, .28); border-radius: 999px; color: #dffaff; background: rgba(5, 22, 41, .94); box-shadow: 0 12px 30px rgba(0,0,0,.34); backdrop-filter: blur(12px); font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.bottom-nav { width: 100%; max-width: 430px; height: 54px; position: fixed; z-index: 15; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; padding: 4px 6px 0; border: 1px solid rgba(74, 112, 159, .27); border-bottom: 0; border-radius: 19px 19px 0 0; background: rgba(3, 13, 28, .94); box-shadow: 0 -12px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.02); backdrop-filter: blur(18px); }
.nav-item { height: 50px; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; padding: 0; color: #7585a2; font-size: 14px; text-decoration: none; transition: color .2s ease; }
.nav-item.active { color: #63eaff; }
.nav-item.active:not(.special)::before { content: ""; width: 27px; height: 3px; position: absolute; top: -5px; border-radius: 99px; background: #55e9ff; box-shadow: 0 0 11px rgba(79, 232, 255, .64); }
.nav-icon { width: 23px; height: 23px; position: relative; display: grid; place-items: center; }

.dashboard-icon { grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(2, 7px); place-content: center; gap: 3px; transform: translateY(2px); }
.dashboard-icon i { width: 7px; height: 7px; display: block; border: 1.6px solid currentColor; border-radius: 2.5px; }
.bars-icon { display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bars-icon i { width: 2px; border-radius: 2px; background: currentColor; }
.bars-icon i:nth-child(1) { height: 9px; }.bars-icon i:nth-child(2) { height: 16px; }.bars-icon i:nth-child(3) { height: 12px; }.bars-icon i:nth-child(4) { height: 20px; }
.chain-icon::before,
.chain-icon::after { content: ""; width: 13px; height: 7px; position: absolute; border: 1.7px solid currentColor; border-radius: 7px; transform: rotate(-38deg); }
.chain-icon::before { top: 4px; left: 1px; }
.chain-icon::after { right: 1px; bottom: 4px; }
.user-icon::before { content: ""; width: 7px; height: 7px; position: absolute; top: 2px; border: 1.6px solid currentColor; border-radius: 50%; }
.user-icon i { width: 16px; height: 9px; position: absolute; bottom: 1px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 12px 12px 0 0; }

.nav-item.special { padding-top: 26px; }
.nav-item.special .nav-icon { width: 48px; height: 48px; position: absolute; top: -24px; border: 5px solid #041025; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #42e9ff, #7755f6 76%); box-shadow: 0 9px 24px rgba(16, 169, 255, .24); font-size: 12px; font-weight: 800; letter-spacing: -1px; }
.nav-item.special .nav-icon::before { content: ""; width: 18px; height: 18px; position: absolute; border: 1.6px solid #fff; border-radius: 50%; }

.service-card:active,
.market-card:active,
.icon-button:active { transform: scale(.97); }

button:focus-visible { outline: 2px solid #54e6ff; outline-offset: 2px; }

@keyframes globe-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes orbit-pulse { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes live-pulse { 50% { opacity: .35; transform: scale(.8); } }
@keyframes market-price-up { 35% { color: #31efbb; text-shadow: 0 0 10px rgba(49, 239, 187, .7); } }
@keyframes market-price-down { 35% { color: #ff6685; text-shadow: 0 0 10px rgba(255, 102, 133, .7); } }

@media (hover: hover) {
  .service-card:hover,
  .market-card:hover { transform: translateY(-2px); border-color: rgba(69, 220, 248, .34); }
  .announcement-item:hover { background: rgba(63, 185, 221, .06); }
  .more-link:hover,
  .nav-item:hover { color: #50e5ff; }
}

@media (max-width: 355px) {
  .phone-page { padding-inline: 8px; }
  .hero-copy { width: 70%; padding-left: 15px; }
  .ai-orbit { right: -21px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 59px; }
  .balance-visual { width: 105px; flex-basis: 105px; }
  .sparkline { width: 104px; transform: scaleX(.89); transform-origin: right; }
}

@media (min-width: 700px) {
  .phone-page { border-right: 1px solid rgba(100, 141, 194, .09); border-left: 1px solid rgba(100, 141, 194, .09); box-shadow: 0 0 100px rgba(12, 37, 78, .36); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
