:root {
  color-scheme: dark;
  --bg: #070b0a;
  --card: rgba(16, 26, 20, 0.62);
  --card-border: rgba(182, 255, 74, 0.25);
  --glass: rgba(18, 34, 26, 0.55);
  --neon: #b6ff4a;
  --neon-strong: #2bff9a;
  --text: #e9ffe6;
  --muted: #8aa097;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
}

body {
  background: radial-gradient(circle at 20% 20%, rgba(24, 46, 36, 0.65), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(7, 18, 14, 0.8), transparent 65%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.app {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 18px 120px;
}

.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(182, 255, 74, 0.35), rgba(0, 255, 163, 0.25));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--neon);
  border: 1px solid rgba(182, 255, 74, 0.4);
}

.brand__text p {
  font-size: 1rem;
  font-weight: 600;
}

.brand__text span {
  font-size: 0.75rem;
  color: var(--muted);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(182, 255, 74, 0.2);
  background: rgba(12, 18, 16, 0.6);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-button img {
  width: 22px;
  height: 22px;
}

.icon-button:active {
  transform: scale(0.95);
  box-shadow: 0 0 12px rgba(182, 255, 74, 0.4);
}

.screens {
  display: grid;
  gap: 24px;
}

.screen {
  display: none;
  animation: fadeIn 0.2s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-header {
  margin-bottom: 18px;
}

.screen-header h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.stack {
  display: grid;
  gap: 14px;
}

.balance-card {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.balance-card h1 {
  font-size: 2rem;
  font-weight: 700;
}

.balance-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.progress-ring {
  position: relative;
  width: 86px;
  height: 86px;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 10;
}

.progress-ring .track {
  stroke: rgba(255, 255, 255, 0.08);
}

.progress-ring .progress {
  stroke: var(--neon);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 10px rgba(182, 255, 74, 0.5));
}

.progress-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
}

.progress-ring__label small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card img {
  width: 32px;
  height: 32px;
}

.action-card:active {
  transform: scale(0.98);
  box-shadow: 0 0 14px rgba(182, 255, 74, 0.45);
}

.invite-card,
.invite-hero,
.boost-hero,
.ads-panel,
.cooldown,
.leader-card,
.profile-card {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.invite-card h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.primary {
  background: linear-gradient(135deg, rgba(182, 255, 74, 0.9), rgba(0, 255, 163, 0.7));
  border: none;
  color: #04100b;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary.small {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.primary:active {
  transform: translateY(2px);
  box-shadow: 0 0 12px rgba(182, 255, 74, 0.4);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(182, 255, 74, 0.35);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
}

.ghost.small {
  padding: 6px 12px;
}

.list-card {
  padding: 18px;
  margin-bottom: 24px;
}

.list-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(182, 255, 74, 0.15);
}

.mission:last-child {
  border-bottom: none;
}

.mission__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(182, 255, 74, 0.1);
  display: grid;
  place-items: center;
}

.mission__icon img {
  width: 24px;
  height: 24px;
}

.mission__content h4 {
  font-size: 0.95rem;
}

.mission__content p {
  font-size: 0.75rem;
  color: var(--muted);
}

.task-card {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.task-card h3 {
  font-size: 1rem;
}

.task-card p {
  font-size: 0.75rem;
  color: var(--muted);
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(182, 255, 74, 0.15);
  font-size: 0.7rem;
  color: var(--neon);
  font-weight: 600;
}

.leader-card {
  align-items: center;
}

.leader-rank {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon);
}

.profile-card {
  justify-content: space-between;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(420px, 92vw);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.nav-item {
  border: none;
  background: transparent;
  color: var(--muted);
  display: grid;
  gap: 4px;
  place-items: center;
  font-size: 0.7rem;
  cursor: pointer;
}

.nav-item img {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--neon);
}

@media (max-width: 420px) {
  .balance-card,
  .invite-card,
  .invite-hero,
  .boost-hero,
  .ads-panel,
  .cooldown,
  .leader-card,
  .profile-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
