:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg2: #0b1020;
  --surface: #101827;
  --surface2: #151f32;
  --surface3: #1c2840;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --lime: #d9f99d;
  --green: #84cc16;
  --yellow: #facc15;
  --orange: #f59e0b;
  --dark: #101827;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -8%, rgba(217, 249, 157, 0.18), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(250, 204, 21, 0.14), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(132, 204, 22, 0.08), transparent 38%),
    linear-gradient(180deg, #070a12 0%, #0b1020 52%, #070a12 100%);
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.app {
  width: min(520px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 14px 164px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.app-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(217, 249, 157, 0.1);
  border: 1px solid rgba(217, 249, 157, 0.18);
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
}

.topbar h1 {
  margin: 9px 0 0;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 24, 39, 0.92);
  color: var(--lime);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.icon-btn:active {
  transform: scale(0.96);
}

.view {
  display: none;
  animation: screenIn 0.18s ease;
}

.view.active {
  display: block;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.balance-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 34px;
  padding: 24px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(145deg, #d9f99d 0%, #bef264 42%, #84cc16 100%);
  color: var(--dark);
  box-shadow:
    0 26px 72px rgba(132, 204, 22, 0.18),
    0 18px 46px rgba(0, 0, 0, 0.34);
}

.balance-card::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(16, 24, 39, 0.12);
}

.balance-card::after {
  content: "RADAR";
  position: absolute;
  right: 22px;
  bottom: 30px;
  color: rgba(16, 24, 39, 0.07);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.balance-card > * {
  position: relative;
  z-index: 1;
}

.balance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.balance-card .muted {
  color: rgba(16, 24, 39, 0.62);
  font-weight: 900;
}

.balance-head strong {
  display: block;
  margin-top: 8px;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: #0f172a;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(16, 24, 39, 0.13);
  border: 1px solid rgba(16, 24, 39, 0.12);
  color: #0f172a;
  font-weight: 900;
  font-size: 21px;
}

.avatar.big {
  width: 62px;
  height: 62px;
  border-radius: 23px;
  font-size: 24px;
  background: rgba(217, 249, 157, 0.14);
  border-color: rgba(217, 249, 157, 0.18);
  color: var(--lime);
}

.balance-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  color: rgba(16, 24, 39, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.balance-meta span:first-child {
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-meta span:last-child {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(16, 24, 39, 0.15);
  color: #0f172a;
  backdrop-filter: blur(8px);
}

.network-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.network-strip article {
  min-height: 78px;
  padding: 14px 12px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(28, 40, 64, 0.96), rgba(16, 24, 39, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.network-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}

.network-strip strong {
  display: block;
  color: var(--lime);
  font-size: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.stat-card {
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 25px;
  background: linear-gradient(180deg, #151f32 0%, #101827 100%);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 9px;
}

.stat-card strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.06em;
}

.panel {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(21, 31, 50, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.105);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.panel-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.panel-title span,
.panel-title button {
  color: var(--muted);
  font-size: 12px;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--lime) !important;
  font-weight: 900;
  padding: 7px 0;
}

.notice-card {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(217, 249, 157, 0.08);
  border: 1px solid rgba(217, 249, 157, 0.12);
}

.notice-card strong {
  color: var(--lime);
  font-size: 13px;
}

.notice-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.screen-head {
  padding: 6px 2px 4px;
}

.screen-head .muted {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(217, 249, 157, 0.09);
  color: var(--lime);
  font-weight: 900;
}

.screen-head h2 {
  margin: 12px 0 8px;
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.screen-head p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.48;
}

.quest-tabs,
.category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.quest-tabs::-webkit-scrollbar,
.category-row::-webkit-scrollbar {
  display: none;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(16, 24, 39, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.chip.active {
  background: var(--lime);
  border-color: var(--lime);
  color: #0f172a;
}

.search-box {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 0 16px;
  border-radius: 20px;
  background: rgba(16, 24, 39, 0.9);
  border: 1px solid var(--line);
}

.search-box span {
  color: var(--lime);
  font-size: 18px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.featured-app {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 20px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(217, 249, 157, 0.18), transparent 32%),
    linear-gradient(180deg, #1c2840 0%, #101827 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
}

.featured-app span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
}

.featured-app h3 {
  margin: 8px 0 8px;
  font-size: 25px;
  letter-spacing: -0.05em;
}

.featured-app p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.featured-app button {
  border: 0;
  border-radius: 16px;
  padding: 11px 14px;
  background: var(--lime);
  color: #0f172a;
  font-weight: 900;
  white-space: nowrap;
}

.stack-list {
  display: grid;
  gap: 0;
}

.row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row span {
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
}

.row small {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.row strong {
  text-align: right;
  color: #e5e7eb;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.done {
  background: rgba(132, 204, 22, 0.15);
  color: var(--lime);
}

.status-pill.wait {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
}

.task-btn {
  border: 0;
  border-radius: 16px;
  padding: 11px 14px;
  background: var(--lime);
  color: #111827;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(132, 204, 22, 0.16);
}

.task-btn:active {
  transform: scale(0.97);
}

.app-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.app-row:last-child {
  border-bottom: 0;
}

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(217, 249, 157, 0.12);
  border: 1px solid rgba(217, 249, 157, 0.16);
  color: var(--lime);
  font-weight: 900;
}

.app-row strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.app-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.app-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(217, 249, 157, 0.15), transparent 30%),
    linear-gradient(180deg, #1c2840 0%, #101827 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
}

.profile-card strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.profile-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

code {
  display: block;
  padding: 15px;
  border-radius: 18px;
  background: #080d16;
  border: 1px solid var(--line);
  color: var(--lime);
  overflow-wrap: anywhere;
  line-height: 1.45;
  font-size: 13px;
}

.loading {
  padding: 24px 8px;
  text-align: center;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(492px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 6px;
  border-radius: 28px;
  background: #070d16;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  box-shadow:
    0 -18px 44px rgba(7, 10, 18, 0.72),
    0 24px 80px rgba(0, 0, 0, 0.55);
}

.bottom-nav::before {
  content: "";
  position: absolute;
  inset: -28px -4px -10px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0), rgba(7, 10, 18, 0.92) 44%);
  z-index: -1;
  pointer-events: none;
}

.nav-item {
  border: 0;
  min-height: 46px;
  padding: 7px 6px;
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 900;
  display: grid;
  place-items: center;
  gap: 3px;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.nav-item span {
  font-size: 16px;
  line-height: 1;
}

.nav-item.active {
  background: var(--lime);
  color: #111827;
  box-shadow:
    0 10px 22px rgba(132, 204, 22, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.nav-item:active {
  transform: scale(0.96);
}

@media (max-width: 420px) {
  .app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .balance-card {
    min-height: 202px;
    padding: 22px;
    border-radius: 31px;
  }

  .balance-head strong {
    font-size: 46px;
  }

  .screen-head h2 {
    font-size: 34px;
  }

  .panel {
    border-radius: 25px;
    padding: 17px 18px;
  }

  .network-strip {
    gap: 8px;
  }

  .network-strip article {
    padding: 13px 10px;
  }

  .bottom-nav {
    border-radius: 25px;
  }
}

@media (max-width: 360px) {
  .balance-head strong {
    font-size: 40px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .nav-item {
    font-size: 10px;
  }

  .nav-item span {
    font-size: 15px;
  }
}
/* --- Explore content system --- */

.explore-list {
  display: grid;
  gap: 12px;
}

.explore-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(217, 249, 157, 0.08), transparent 28%),
    rgba(8, 13, 22, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.explore-card[hidden] {
  display: none;
}

.explore-card .app-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  font-size: 16px;
}

.explore-content {
  min-width: 0;
}

.explore-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.explore-head strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-head em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(217, 249, 157, 0.12);
  color: var(--lime);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.explore-content small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag-row span {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.open-btn {
  border: 0;
  border-radius: 15px;
  padding: 10px 12px;
  background: var(--lime);
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.open-btn:active {
  transform: scale(0.97);
}

@media (max-width: 420px) {
  .explore-card {
    grid-template-columns: 44px 1fr;
    align-items: start;
  }

  .explore-card .open-btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .tag-row {
    margin-top: 7px;
  }
}
.panel-copy {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wallet-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.wallet-search input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 13px 14px;
  background: #080d16;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

.wallet-search input:focus {
  border-color: rgba(217, 249, 157, 0.42);
  box-shadow: 0 0 0 3px rgba(217, 249, 157, 0.08);
}

.wallet-search button {
  border: 0;
  border-radius: 17px;
  padding: 0 15px;
  background: var(--lime);
  color: #111827;
  font-weight: 900;
}

.wallet-search button:disabled {
  opacity: 0.65;
}

.wallet-result .loading.compact {
  padding: 15px 8px;
}

.wallet-card {
  padding: 14px;
  border-radius: 22px;
  background: rgba(8, 13, 22, 0.78);
  border: 1px solid var(--line);
}

.wallet-card-head,
.wallet-meta,
.wallet-token {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-card-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.wallet-card-head span,
.wallet-meta span,
.wallet-token small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.wallet-card-head strong {
  color: var(--lime);
  overflow-wrap: anywhere;
}

.wallet-note {
  margin-top: 10px;
  color: var(--soft);
  font-size: 12px;
}

.wallet-tokens {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.wallet-token {
  padding: 12px;
  border-radius: 17px;
  background: rgba(217, 249, 157, 0.08);
  border: 1px solid rgba(217, 249, 157, 0.12);
}

.wallet-token span {
  display: grid;
  gap: 3px;
  font-weight: 900;
}

.wallet-token strong {
  color: var(--lime);
  font-size: 17px;
}

.wallet-meta {
  padding-top: 11px;
  margin-top: 11px;
  border-top: 1px solid var(--line);
}

.wallet-meta strong {
  color: var(--soft);
  text-align: right;
}

.wallet-error {
  padding: 14px;
  border-radius: 18px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #fecaca;
  font-size: 13px;
}

@media (max-width: 420px) {
  .wallet-search {
    grid-template-columns: 1fr;
  }

  .wallet-search button {
    min-height: 44px;
  }
}
