* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #0a0420;
  --bg-mid: #1a0a3e;
  --neon-purple: #b545ff;
  --neon-blue: #00d4ff;
  --neon-pink: #ff4dd2;
  --card: rgba(30, 15, 60, .6);
  --card-border: rgba(180, 100, 255, .25);
  --text: #ffffff;
  --muted: #a39bc8;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #050010;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 430px;
  background:
    radial-gradient(ellipse at top right, rgba(180, 70, 255, .35), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(0, 200, 255, .25), transparent 60%),
    url('public/background.png') no-repeat center center / cover;
  position: relative;
  min-height: 100vh;
  padding-bottom: 100px;
  color: var(--text);
  overflow: hidden;
}

/* Stars bg */
.bg-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent),
    radial-gradient(1px 1px at 32% 42%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 68% 25%, #c5a4ff 50%, transparent),
    radial-gradient(1px 1px at 85% 60%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 25% 75%, #6cf 50%, transparent),
    radial-gradient(1px 1px at 55% 88%, #fff 50%, transparent),
    radial-gradient(1px 1px at 78% 35%, #fff 50%, transparent),
    radial-gradient(1px 1px at 8% 55%, #fff 50%, transparent);
  pointer-events: none;
  opacity: .7;
  z-index: 0;
}

.statusbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 4px;
  font-size: 14px;
  font-weight: 600;
}

/* Header */
.top-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 8px;
}
.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b545ff, #00d4ff);
  box-shadow: 0 0 16px rgba(180, 70, 255, .5);
}
.brand h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #00d4ff, #b545ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.web3-pill {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  background: linear-gradient(90deg, #b545ff, #00d4ff);
  -webkit-text-fill-color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
}
.brand p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.head-icons { display: flex; gap: 8px; align-items: center; }
.circle-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(180, 100, 255, .3);
  background: rgba(40, 20, 80, .5);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  backdrop-filter: blur(8px);
}
.notif-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: #ff4dd2;
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 8px;
  font-weight: 600;
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b545ff, #5b6cff);
  overflow: hidden;
  border: 2px solid rgba(180, 100, 255, .4);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Content */
.content {
  position: relative;
  z-index: 2;
  padding: 8px 16px;
}

/* Balance */
/* Balance */
.balance-card {
  border: 1px solid rgba(180, 100, 255, .3);
  border-radius: 22px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(180, 70, 255, .15) inset;
  aspect-ratio: 2422 / 954;
}
.planet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: drop-shadow(0 0 30px rgba(180, 70, 255, .6));
}
.balance-info {
  position: relative;
  z-index: 1;
  max-width: 62%;
  display: flex;
  flex-direction: column;
}
.bal-label {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bal-amount {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.bal-amount small {
  font-size: 13px;
  font-weight: 500;
  margin-left: 2px;
}
.bal-vnd {
  color: var(--muted);
  font-size: 10px;
  margin: 1px 0 6px;
}
.history-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(180,100,255,.25);
  color: #fff;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 9px;
  cursor: pointer;
  margin-bottom: 8px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bal-actions {
  display: flex;
  gap: 8px;
}
.act-btn {
  flex: 1;
  border: none;
  padding: 7px 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.act-btn span { font-size: 12px; }
.deposit {
  background: linear-gradient(135deg, #0080ff, #00d4ff);
  box-shadow: 0 0 12px rgba(0, 180, 255, .4);
}
.withdraw {
  background: linear-gradient(135deg, #7b2ff7, #b545ff);
  box-shadow: 0 0 12px rgba(180, 70, 255, .4);
}

/* Quick grid */
.quick-grid {
  margin-top: 14px;
  background: rgba(20, 10, 50, .5);
  border: 1px solid rgba(180,100,255,.2);
  border-radius: 18px;
  padding: 14px 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.qa-item { text-align: center; cursor: pointer; }
.qa-ico {
  width: 44px; height: 44px;
  border-radius: 14px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, rgba(91,108,255,.25), rgba(180,70,255,.25));
  border: 1px solid rgba(180,100,255,.4);
  box-shadow: 0 0 12px rgba(180,70,255,.25);
  color: #b545ff;
  overflow: hidden;
}
.ico1 { color: #00d4ff; }
.ico2 { color: #b545ff; }
.ico3 { color: #00ffae; }
.ico4 { color: #00d4ff; }
.ico5 { color: #ff8ec3; }
.ico6 { color: #ffa84d; }
.qa-item small { font-size: 10px; color: #d4ccf0; }

/* AI + Stake */
.ai-stake-row {
  display: grid;
  grid-template-columns: 1.46fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.ai-card {
  border: 1px solid rgba(180,100,255,.4);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2280 / 1180;
}
.robot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: drop-shadow(0 0 12px rgba(0,200,255,.5));
}
.ai-btn {
  position: absolute;
  left: 42.5%;
  bottom: 12%;
  width: 32%;
  height: 18%;
  background: linear-gradient(135deg, #0066ff, #00c8ff);
  border: none;
  color: #fff;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.4);
  transition: all 0.2s ease;
}
.ai-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 102, 255, 0.6);
}
.ai-orb {
  position: absolute;
  right: 8%;
  bottom: 16%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  z-index: 2;
}
.ai-orb:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stake-card {
  border: 1px solid rgba(255,100,210,.4);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1556 / 1182;
}
.stake-btn {
  position: absolute;
  left: 7.5%;
  bottom: 12%;
  width: 38%;
  height: 18%;
  background: linear-gradient(135deg, #b545ff, #ff4dd2);
  border: none;
  color: #fff;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(180, 70, 255, 0.4);
  transition: all 0.2s ease;
}
.stake-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(180, 70, 255, 0.6);
}
.coins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: drop-shadow(0 0 12px rgba(180,70,255,.5));
}

/* Sections */
.section {
  margin-top: 18px;
  background: rgba(20, 10, 50, .4);
  border: 1px solid rgba(180, 100, 255, .25);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(10px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}
.section-head h3 { font-size: 13px; font-weight: 600; color: #fff; }
.see-all { color: var(--neon-blue); font-size: 11px; cursor: pointer; }

/* Ecosystem */
.ecosystem {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.eco {
  text-align: center;
  background: transparent;
  border: none;
  padding: 4px 0;
  cursor: pointer;
}
.eco-ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(180, 100, 255, 0.35);
  background: rgba(20, 10, 50, 0.6);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(180, 70, 255, 0.2);
}
.e1 { background: linear-gradient(135deg,#00d4ff,#0080ff); }
.e2 { background: linear-gradient(135deg,#b545ff,#5b2bbf); font-size: 9px; color: #fff; }
.e3 { background: linear-gradient(135deg,#ff8ec3,#ff4dd2); }
.e4 { background: linear-gradient(135deg,#7b2ff7,#b545ff); }
.e5 { background: linear-gradient(135deg,#5b6cff,#00d4ff); }
.e6 { background: linear-gradient(135deg,#ff4dd2,#7b2ff7); }
.eco h4 { font-size: 10px; font-weight: 600; margin-bottom: 2px; color: #fff; }
.eco small { font-size: 8px; color: var(--muted); }

/* Price card */
.price-card {
  margin-top: 18px;
  background: rgba(20,10,50,.6);
  border: 1px solid rgba(180,100,255,.25);
  border-radius: 18px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  height: 110px;
}
.price-head {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.live {
  background: rgba(0,255,170,.15);
  color: #00ffae;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
}
.price-body {
  display: block;
}
.price-left {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.price-left h2 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.price-left h2 small { font-size: 12px; font-weight: 500; color: #fff; margin-left: 2px; }
.usd { font-size: 10px; color: var(--muted); margin: 2px 0 0; }
.change.up { color: #00ffae; font-size: 10px; font-weight: 600; margin-top: 2px; }

.chart {
  position: absolute;
  left: 108px;
  bottom: 8px;
  width: 75px;
  height: 40px;
  z-index: 1;
}
.chart svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px #00d4ff);
}
.cube {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
  z-index: 0;
  filter: drop-shadow(0 0 12px rgba(0,212,255,.6));
}
.price-stats {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  text-align: left;
}
.price-stats div {
  display: flex;
  flex-direction: column;
}
.price-stats small { display: block; color: var(--muted); font-size: 9px; margin-bottom: 1px; }
.price-stats strong { font-size: 11px; color: #fff; font-weight: 600; }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
  align-items: stretch;
}
.news-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-feature {
  background: rgba(20,10,50,.6);
  border: 1px solid rgba(180,100,255,.25);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.news-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: linear-gradient(135deg, #1a0a3e, #b545ff);
  display: block;
}
.news-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  z-index: 1;
  background: linear-gradient(to top, rgba(10,5,30,0.95) 0%, rgba(10,5,30,0.6) 70%, rgba(10,5,30,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  box-sizing: border-box;
}
.news-body h4 { font-size: 11px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; color: #fff; }
.news-meta { display: flex; justify-content: space-between; align-items: center; }
.news-meta span { font-size: 9px; color: var(--muted); }
.news-btn {
  background: linear-gradient(135deg, #b545ff, #00d4ff);
  border: none;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 9px;
  cursor: pointer;
}

.news-item {
  background: rgba(20,10,50,.5);
  border: 1px solid rgba(180,100,255,.2);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}
.news-item:first-child {
  margin-bottom: 8px;
}
.news-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(180,70,255,.4), rgba(0,212,255,.4));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.news-item h4 { font-size: 12px; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.news-item small { font-size: 10px; color: var(--muted); }

/* Referral */
.referral {
  margin-top: 18px;
  background: url('public/icon-referral.png') no-repeat center center;
  background-size: cover;
  border: 1px solid rgba(180, 100, 255, .4);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 80px;
  box-sizing: border-box;
}
.ref-body {
  position: relative;
  z-index: 1;
  max-width: 60%;
}
.ref-body h3 { font-size: 13px; font-weight: 700; margin-bottom: 3px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.ref-body p { font-size: 10px; color: #e0d5ff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.ref-btn {
  background: linear-gradient(135deg, #b545ff, #ff4dd2);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(180,70,255,.5);
  position: relative;
  z-index: 1;
}

.bottom-spacer { height: 30px; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(10,5,30,.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(180,100,255,.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 18px;
  z-index: 5;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  flex: 1;
}
.nav-item small { font-size: 10px; }
.nav-item.active { color: var(--neon-blue); font-weight: 600; }
.nav-item.active small { color: var(--neon-blue); }

.center-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #b545ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 24px rgba(180,70,255,.7), 0 -4px 12px rgba(0,212,255,.4);
  margin-top: -22px;
  cursor: pointer;
  border: 3px solid rgba(10,5,30,.95);
  overflow: hidden;
}


/* ========== Icon image overrides ========== */
.logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: transparent;
  object-fit: contain;
  box-shadow: 0 0 16px rgba(180, 70, 255, .5);
}

.circle-btn img {
  width: 18px; height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(180, 70, 255, .5));
}

.inline-ico {
  width: 14px; height: 14px;
  vertical-align: middle;
  margin-left: 4px;
  object-fit: contain;
}

.btn-ico {
  width: 14px; height: 14px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 2px;
}

.qa-ico img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.eco-ico img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 0 10px rgba(180, 70, 255, .5));
}

.news-ico img {
  width: 22px; height: 22px;
  object-fit: contain;
}

.ref-icon img {
  width: 28px; height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(180, 70, 255, .5));
}

.nav-item img {
  width: 22px; height: 22px;
  object-fit: contain;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 4px rgba(180, 70, 255, .3));
  opacity: .7;
}
.nav-item.active img {
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, .8));
  opacity: 1;
}

.nav-item i {
  font-size: 18px;
  margin-bottom: 2px;
  opacity: .7;
}
.nav-item.active i {
  opacity: 1;
  text-shadow: 0 0 8px rgba(0, 212, 255, .8);
}

.center-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.8));
}
.center-btn span { display: none; }