:root {
  color-scheme: dark;
  --bg: #05080c;
  --panel: #111820;
  --panel-2: #151d25;
  --line: rgba(231, 238, 245, 0.08);
  --text: #f8fafb;
  --muted: #aeb7bf;
  --soft: #77828d;
  --green: #80f08b;
  --green-2: #4fc86a;
  --shadow: rgba(0, 0, 0, 0.64);
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 8px;
  font-family:
    Manrope,
    "Segoe UI",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  touch-action: manipulation;
  background:
    radial-gradient(circle at 80% 16%, rgba(88, 219, 111, 0.13), transparent 9.5rem),
    radial-gradient(circle at 10% 0%, rgba(210, 229, 242, 0.07), transparent 11rem),
    linear-gradient(180deg, #10161d 0%, #0a1016 52%, #070a0f 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 72%, transparent);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%);
  opacity: 0.72;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) 0 max(14px, env(safe-area-inset-bottom));
}

.app-screen {
  position: relative;
  isolation: isolate;
  width: min(100%, 390px);
  min-height: min(100svh - 28px, 820px);
  padding: 20px 18px 96px;
  overflow: hidden;
}

.topbar,
.balance-card,
.vault-card,
.rewards-card,
.tabbar,
.view {
  position: relative;
  z-index: 1;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.card-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(132, 241, 145, 0.055), transparent 7rem),
    linear-gradient(180deg, rgba(28, 37, 45, 0.94), rgba(10, 15, 20, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38),
    0 14px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
}

.card-panel + .card-panel,
.task-card + .task-card {
  margin-top: 12px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  margin-bottom: 13px;
  padding-left: 2px;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px rgba(0, 0, 0, 0.45);
}

.shield,
.balance-label-icon {
  display: inline-grid;
  place-items: center;
  color: var(--green);
  filter: drop-shadow(0 0 10px rgba(128, 240, 139, 0.5));
}

.shield {
  width: 27px;
  height: 27px;
}

.balance-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(205, 218, 211, 0.78);
  font-size: 12px;
  font-weight: 450;
}

.balance-label-icon {
  width: 18px;
  height: 18px;
  color: #7ce88a;
  opacity: 0.92;
}

.balance-label-icon svg {
  stroke-width: 1.75;
}

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.icon-button {
  position: absolute;
  right: -1px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  color: #d8dee4;
}

.admin-toggle {
  right: 39px;
  color: var(--green);
}

.admin-toggle[hidden] {
  display: none;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.language-menu {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 20;
  display: grid;
  width: 124px;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 0%, rgba(128, 240, 139, 0.12), transparent 4.5rem),
    linear-gradient(180deg, rgba(25, 34, 41, 0.98), rgba(8, 12, 17, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: #c9d2d8;
  font-size: 12px;
  text-align: left;
}

.language-menu button.is-active {
  background: rgba(128, 240, 139, 0.14);
  color: #e9ffeb;
}

.balance-card,
.vault-card,
.rewards-card,
.tabbar {
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42),
    0 18px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

.balance-card {
  display: flex;
  align-items: center;
  min-height: 132px;
  margin-top: 6px;
  padding: 15px 16px 14px;
  overflow: hidden;
  border-color: rgba(127, 242, 139, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 82%, rgba(98, 237, 113, 0.09), transparent 7.2rem),
    radial-gradient(circle at 18% 2%, rgba(127, 242, 139, 0.035), transparent 7.2rem),
    linear-gradient(135deg, rgba(31, 62, 40, 0.94), rgba(10, 15, 21, 0.98) 48%, rgba(20, 27, 33, 0.98));
}

.balance-card::after,
.vault-card::after,
.rewards-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), transparent 24%, transparent 70%, rgba(127, 242, 139, 0.08));
  mask-image: linear-gradient(#000, transparent 70%);
}

.card-glint {
  position: absolute;
  top: -78px;
  left: -78px;
  width: 154px;
  height: 154px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.balance-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.balance-copy h1 {
  margin: 15px 0 5px;
  font-size: clamp(30px, 8.3vw, 34px);
  line-height: 1;
  font-weight: 550;
  letter-spacing: 0;
  white-space: nowrap;
}

.balance-copy h1 span {
  display: inline;
  margin-left: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dbe2de;
  font-size: 15px;
  font-weight: 450;
  line-height: 1;
  vertical-align: 0.02em;
}

.balance-copy p {
  margin: 0;
  color: #b8c1c8;
  font-size: 14px;
  font-weight: 400;
}

.hero-safe {
  position: absolute;
  right: 8px;
  bottom: 2px;
  z-index: 1;
  width: 122px;
  max-width: 38%;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.66));
}

.vault-card,
.rewards-card {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(132, 241, 145, 0.06), transparent 7rem),
    linear-gradient(180deg, rgba(28, 37, 45, 0.94), rgba(10, 15, 20, 0.99)),
    var(--panel);
}

.vault-card {
  padding: 15px 16px 14px;
}

.section-orbit {
  position: absolute;
  right: 14px;
  top: 18px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(128, 240, 139, 0.14), transparent 65%);
  pointer-events: none;
}

.vault-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 86px;
}

h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 550;
  letter-spacing: 0;
}

.counter {
  margin: 18px 0 0;
  color: var(--green);
  font-size: 19px;
  font-weight: 550;
}

.counter span {
  color: rgba(128, 240, 139, 0.72);
}

.vault-safe,
.vault-gift {
  width: 82px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  margin-top: -10px;
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.52));
}

.vault-gift {
  width: 92px;
  height: 82px;
  margin-top: -3px;
  margin-right: -3px;
  filter: drop-shadow(0 13px 14px rgba(0, 0, 0, 0.5));
}

.progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #05090d;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.86),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(90deg, #48bf61, #8df59a);
  box-shadow: 0 0 10px rgba(128, 240, 139, 0.32);
}

.hint {
  margin: 11px 0 12px;
  color: #a2adb6;
  font-size: 11px;
  font-weight: 400;
}

.watch-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #5db96a 0%, #499653 54%, #3a7f45 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.23),
    inset 0 -1px 0 rgba(22, 78, 34, 0.42),
    0 10px 18px rgba(40, 132, 58, 0.22);
  color: #f8fff9;
  font-size: 11px;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.watch-button:active {
  transform: translateY(1px) scale(0.995);
}

.watch-button strong {
  font-weight: 500;
}

.adsgram-slot {
  min-height: 78px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 50%, rgba(128, 240, 139, 0.055), transparent 5.2rem),
    linear-gradient(180deg, rgba(27, 36, 43, 0.94), rgba(9, 14, 19, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.36),
    0 14px 26px rgba(0, 0, 0, 0.22);
}

.play {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  color: #43ad58;
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.18);
}

.play svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke-width: 0;
}

.rewards-card {
  padding: 16px 12px 13px;
}

.bonus-top {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 74px;
  padding: 12px 14px 12px 12px;
  cursor: pointer;
}

.bonus-top.is-disabled {
  cursor: default;
}

.bonus-top h3,
.panel-head h3,
.safe-mini h3,
.task-card h3,
.invite-card h3,
.how-card h3 {
  margin: 0;
  color: #eef4f0;
  font-size: 14px;
  font-weight: 550;
}

.bonus-top p,
.panel-head p,
.safe-mini p,
.task-card p,
.how-card p {
  margin: 4px 0 0;
  color: #9da8b0;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;
}

.bonus-top strong,
.task-card strong,
.reward em {
  color: var(--green);
}

.tile-icon,
.task-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #dfffe2;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 64%),
    linear-gradient(145deg, rgba(103, 229, 120, 0.92), rgba(38, 116, 57, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 18px rgba(46, 169, 67, 0.22);
}

.tile-icon {
  width: 42px;
  height: 42px;
}

.daily-calendar {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 10px 13px rgba(54, 190, 68, 0.22));
}

.tile-icon svg,
.task-icon svg {
  width: 24px;
  height: 24px;
}

.wheel-card {
  margin-top: 12px;
  padding: 15px 14px 12px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.panel-head span {
  color: #dce5df;
  font-size: 11px;
}

.streak-card .panel-head > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.wheel-wrap {
  position: relative;
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  margin: 7px auto -3px;
}

.wheel-rotor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: rotate(var(--wheel-rotation, 0deg));
  transition: transform 4.2s cubic-bezier(0.12, 0.74, 0.16, 1);
  will-change: transform;
}

.wheel-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
}

.wheel-pointer {
  position: absolute;
  top: 1px;
  left: 50%;
  z-index: 4;
  width: 16px;
  height: 23px;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.24) 34%, transparent 56%),
    linear-gradient(180deg, #b9f390 0%, #80dd70 42%, #4fa650 100%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.26),
    inset 0 -9px 10px rgba(28, 92, 36, 0.3),
    0 0 18px rgba(128, 240, 139, 0.42),
    0 9px 12px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
}

.wheel-pointer::after {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(248, 255, 224, 0.52), rgba(248, 255, 224, 0));
  content: "";
  transform: rotate(5deg);
}

.wheel-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.wheel-prize {
  position: absolute;
  width: 48px;
  color: #e3ece7;
  font-size: 12px;
  line-height: 1.08;
  font-weight: 560;
  text-align: center;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.52);
}

.wheel-prize.p1 { left: 65px; top: 29px; }
.wheel-prize.p2 { right: 18px; top: 53px; }
.wheel-prize.p3 { right: 22px; top: 108px; }
.wheel-prize.p4 { left: 65px; bottom: 14px; }
.wheel-prize.p5 { left: 17px; top: 108px; color: #95f19d; }
.wheel-prize.p6 { left: 19px; top: 53px; color: #95f19d; }

.wheel-button {
  position: relative;
  z-index: 5;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.36);
}

.wheel-button:disabled {
  cursor: default;
  opacity: 0.86;
}

.streak-card {
  margin-top: 12px;
  padding: 14px;
}

.streak-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 13px;
}

.streak-day {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
}

.streak-day span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #c2ccd4;
  background: rgba(9, 14, 18, 0.65);
  font-size: 11px;
}

.streak-day.done span,
.streak-day.today span {
  border-color: rgba(128, 240, 139, 0.5);
  color: #effff0;
  background: linear-gradient(180deg, #6bd979, #326f42);
}

.streak-day small {
  color: #85df8f;
  font-size: 9px;
  font-weight: 560;
  letter-spacing: 0;
}

.streak-day:not(.done):not(.today) small {
  color: #75838c;
}

.streak-claim {
  width: 100%;
  min-height: 40px;
  margin-top: 13px;
  border-radius: 9px;
  background: linear-gradient(180deg, #67c973, #438d50);
  color: #f5fff6;
  font-size: 12px;
  font-weight: 560;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 22px rgba(51, 150, 66, 0.16);
}

.safe-mini button:disabled,
.streak-claim:disabled {
  cursor: default;
  opacity: 0.82;
}

.safe-mini {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
}

.safe-mini img {
  width: 74px;
  height: 58px;
  object-fit: contain;
}

.safe-mini button,
.task-card button,
.invite-button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  background: linear-gradient(180deg, #67c973, #438d50);
  color: #f5fff6;
  font-size: 11px;
  font-weight: 500;
}

.tasks-hero,
.friends-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  min-height: 112px;
}

.tasks-hero h2,
.friends-hero h2 {
  margin: 0;
  color: #f2f6f4;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 550;
}

.tasks-hero p {
  margin: 8px 0 0;
  color: #99a5ad;
  font-size: 12px;
}

.task-clipboard {
  width: 86px;
  height: 92px;
  object-fit: contain;
  object-position: center;
  justify-self: end;
  filter: drop-shadow(0 15px 18px rgba(0, 0, 0, 0.42));
}

.chips {
  display: flex;
  gap: 8px;
  margin: 12px 0 14px;
}

.chip {
  min-height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #aeb8bf;
  font-size: 11px;
}

.chip.is-active {
  background: rgba(128, 240, 139, 0.16);
  color: #d9ffdd;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 12px;
}

.task-card.is-hidden {
  display: none;
}

.task-list .task-card + .task-card {
  margin-top: 0;
}

.task-icon {
  width: 44px;
  height: 44px;
}

.task-icon.purple { background: linear-gradient(145deg, #9165e7, #50328e); }
.task-icon.blue { background: linear-gradient(145deg, #5caef5, #285f9f); }
.task-icon.mint { background: linear-gradient(145deg, #7be0d1, #357f78); }
.task-icon.violet { background: linear-gradient(145deg, #8c63d9, #40306f); }

.task-card strong {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
}

.task-card button.ghost {
  background: rgba(255, 255, 255, 0.07);
}

.friends-hero {
  display: block;
  min-height: 166px;
}

.friends-hero h2 {
  width: 250px;
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.22;
}

.friends-hero-art {
  display: block;
  width: 294px;
  max-width: 100%;
  height: 108px;
  object-fit: contain;
  object-position: center bottom;
  margin: 0 auto;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.36));
}

.invite-card,
.how-card {
  padding: 14px;
}

.invite-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(6, 10, 14, 0.62);
}

.invite-link span {
  min-width: 0;
  overflow: hidden;
  color: #a9b3bb;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-link button {
  width: 28px;
  height: 28px;
  background: transparent;
  color: #c5ced5;
}

.friend-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  align-items: stretch;
}

.friend-stats article {
  display: grid;
  min-height: 128px;
  padding: 14px;
  align-content: start;
}

.friend-stats .card-panel + .card-panel {
  margin-top: 0;
}

.friend-stats span {
  color: #a4aeb6;
  font-size: 11px;
}

.friend-stats strong {
  display: block;
  margin-top: 10px;
  color: #f6faf8;
  font-size: 28px;
  font-weight: 500;
}

.friend-stats small {
  font-size: 14px;
  font-weight: 450;
}

.friend-stats p {
  margin: 6px 0 0;
  color: #98a4ad;
  font-size: 11px;
}

.invite-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
  font-size: 14px;
}

.invite-button svg {
  width: 20px;
  height: 20px;
}

.how-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.how-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.wallet-balance {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  min-height: 104px;
  padding: 15px 0 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(150, 241, 143, 0.32);
  border-radius: 15px;
  background:
    radial-gradient(circle at 88% 72%, rgba(103, 236, 111, 0.46), transparent 5.8rem),
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.055), transparent 7.5rem),
    linear-gradient(135deg, rgba(28, 55, 37, 0.92) 0%, rgba(14, 21, 26, 0.99) 43%, rgba(23, 30, 35, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38),
    0 18px 36px rgba(0, 0, 0, 0.3);
}

.wallet-balance h1 {
  margin: 11px 0 6px;
  font-size: 26px;
  line-height: 1;
  font-weight: 560;
  letter-spacing: 0;
}

.wallet-balance h1 span {
  font-size: 14px;
  font-weight: 450;
}

.wallet-balance p {
  margin: 0;
  color: #c0c9cf;
  font-size: 13px;
}

.wallet-coin-stack {
  position: absolute;
  right: 3px;
  bottom: 2px;
  width: 138px;
  height: 94px;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 13px 16px rgba(0, 0, 0, 0.38));
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.wallet-actions button {
  display: grid;
  min-height: 76px;
  place-items: center;
  gap: 6px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 29, 36, 0.78);
  color: #e7ece9;
  font-size: 11px;
}

.wallet-actions svg {
  width: 24px;
  height: 24px;
}

.tx-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #c0c8cf;
}

.tx-icon svg {
  width: 19px;
  height: 19px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.52);
}

.sheet-backdrop[hidden] {
  display: none;
}

.bottom-sheet {
  position: fixed;
  right: max(12px, calc((100vw - 390px) / 2 + 18px));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, calc((100vw - 390px) / 2 + 18px));
  z-index: 90;
  display: grid;
  gap: 10px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(139, 239, 148, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(128, 240, 139, 0.15), transparent 7rem),
    linear-gradient(180deg, rgba(28, 38, 45, 0.99), rgba(8, 12, 17, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 -18px 42px rgba(0, 0, 0, 0.44);
  backdrop-filter: none;
}

.bottom-sheet[hidden] {
  display: none;
}

.admin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 78;
  background: rgba(0, 0, 0, 0.56);
}

.admin-backdrop[hidden] {
  display: none;
}

.admin-panel {
  position: fixed;
  right: max(12px, calc((100vw - 390px) / 2 + 18px));
  left: max(12px, calc((100vw - 390px) / 2 + 18px));
  z-index: 88;
  border: 1px solid rgba(139, 239, 148, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(128, 240, 139, 0.13), transparent 7rem),
    linear-gradient(180deg, rgba(29, 39, 47, 0.99), rgba(8, 12, 17, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: none;
}

.admin-panel[hidden] {
  display: none;
}

.admin-panel h2 {
  margin: 0;
  color: #f4f8f5;
  font-size: 19px;
  line-height: 1.18;
  font-weight: 560;
}

.admin-task-form button {
  min-height: 44px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 560;
}

.admin-task-form button {
  background: linear-gradient(180deg, #67c973, #438d50);
  color: #f5fff6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 22px rgba(51, 150, 66, 0.16);
}

.admin-panel {
  top: max(68px, env(safe-area-inset-top));
  bottom: max(84px, env(safe-area-inset-bottom));
  z-index: 89;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow-y: auto;
  padding: 18px 16px 16px;
}

.admin-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: #b9c4cb;
}

.admin-close svg {
  width: 16px;
  height: 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-stats article {
  display: grid;
  min-height: 74px;
  align-content: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(5, 10, 14, 0.46);
}

.admin-stats span,
.admin-task-form span {
  color: #8f9aa4;
  font-size: 11px;
}

.admin-stats strong {
  color: #f5faf6;
  font-size: 20px;
  font-weight: 550;
}

.admin-task-form {
  display: grid;
  gap: 8px;
}

.admin-task-form label {
  display: grid;
  gap: 6px;
}

.admin-task-form input,
.admin-task-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  outline: 0;
  padding: 0 12px;
  background: rgba(5, 10, 14, 0.58);
  color: #ecf8ee;
  font: inherit;
  font-size: 13px;
}

.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: #b9c4cb;
}

.sheet-close svg {
  width: 16px;
  height: 16px;
}

.bottom-sheet h2 {
  margin: 0;
  padding-right: 32px;
  color: #f4f8f5;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 560;
}

.bottom-sheet p {
  margin: 0;
  color: #9da8b0;
  font-size: 12px;
  line-height: 1.45;
}

.sheet-input-row,
.sheet-result {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(5, 10, 14, 0.58);
}

.sheet-input-row[hidden],
.sheet-result[hidden],
.sheet-note[hidden] {
  display: none;
}

.sheet-input-row span,
.sheet-result span {
  color: #8f9aa4;
  font-size: 11px;
}

.sheet-input-row div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
}

.sheet-amount {
  width: 94px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ecf8ee;
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  text-align: right;
}

.sheet-amount::-webkit-outer-spin-button,
.sheet-amount::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.sheet-input-row em {
  color: #8f9aa4;
  font-size: 12px;
  font-style: normal;
  font-weight: 550;
}

.sheet-result strong {
  color: #ecf8ee;
  font-size: 13px;
  font-weight: 560;
}

.sheet-note {
  color: #7f8b94;
  font-size: 11px;
  line-height: 1.35;
}

.sheet-primary {
  min-height: 46px;
  border-radius: 11px;
  background: linear-gradient(180deg, #67c973, #438d50);
  color: #f5fff6;
  font-size: 13px;
  font-weight: 560;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 22px rgba(51, 150, 66, 0.16);
}

.rewards-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
}

.rewards-head h2 {
  color: #e3e8ec;
  font-size: 15px;
  font-weight: 550;
}

.rewards-head span {
  flex: 0 0 auto;
  color: #7d8791;
  font-size: 10px;
  font-weight: 450;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.reward {
  display: grid;
  min-height: 120px;
  justify-items: center;
  align-content: start;
  padding: 13px 4px 11px;
  border: 1px solid rgba(238, 244, 250, 0.075);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 4.2rem),
    linear-gradient(180deg, rgba(30, 39, 48, 0.96), rgba(12, 18, 24, 0.99)),
    var(--panel-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 18px rgba(0, 0, 0, 0.16);
}

.reward strong {
  font-size: 19px;
  line-height: 1;
  font-weight: 550;
}

.reward span {
  margin-top: 6px;
  color: #b9c1c8;
  font-size: 10px;
  font-weight: 400;
  text-align: center;
}

.reward-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-top: 15px;
  color: #a9b0b7;
}

.reward-icon img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  transform: scale(1.36);
  transform-origin: center;
}

.reward-icon svg {
  width: 28px;
  height: 28px;
  fill: rgba(255, 255, 255, 0.055);
  stroke-width: 1.8;
}

.reward.is-open {
  border-color: rgba(128, 240, 139, 0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(128, 240, 139, 0.12), transparent 4.5rem),
    linear-gradient(180deg, rgba(30, 42, 42, 0.98), rgba(11, 18, 22, 0.99));
}

.reward.is-open .reward-icon {
  color: var(--green);
  filter: none;
}

.reward.is-open .reward-icon svg {
  fill: rgba(128, 240, 139, 0.35);
}

.reward em {
  margin-top: 9px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  width: min(calc(100% - 36px), 354px);
  min-height: 72px;
  padding: 8px 7px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%, rgba(128, 240, 139, 0.08), transparent 8rem),
    linear-gradient(180deg, rgba(28, 36, 44, 0.92), rgba(8, 12, 17, 0.98));
  transform: translateX(-50%);
}

.tab {
  position: relative;
  display: grid;
  min-width: 0;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  color: #8f98a1;
  font-size: 10px;
  font-weight: 450;
}

.tab svg {
  width: 25px;
  height: 25px;
  stroke-width: 2;
  opacity: 0.9;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.32));
}

.tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab.is-active {
  color: var(--green);
  text-shadow: 0 0 14px rgba(128, 240, 139, 0.48);
}

.tab.is-active::before {
  position: absolute;
  top: 2px;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(128, 240, 139, 0.2), transparent 70%);
  content: "";
}

@media (max-width: 360px) {
  .app-shell {
    padding: 0;
  }

  .app-screen {
    width: 100%;
    min-height: 100svh;
    padding: 16px 13px 92px;
  }

  .topbar {
    min-height: 38px;
    margin-bottom: 8px;
  }

  .brand {
    font-size: 18px;
  }

  .shield {
    width: 25px;
    height: 25px;
  }

  .balance-card {
    min-height: 124px;
    padding: 13px 14px 12px;
  }

  .balance-label {
    font-size: 11px;
  }

  .balance-label-icon {
    width: 17px;
    height: 17px;
  }

  .balance-copy h1 {
    font-size: 30px;
  }

  .balance-copy p {
    font-size: 14px;
  }

  .hero-safe {
    right: 4px;
    width: 112px;
  }

  .vault-card,
  .rewards-card {
    margin-top: 12px;
  }

  .vault-card {
    padding: 13px 15px 13px;
  }

  .vault-head {
    min-height: 76px;
  }

  h2 {
    font-size: 21px;
  }

  .counter {
    margin-top: 16px;
    font-size: 18px;
  }

  .vault-safe,
  .vault-gift {
    width: 78px;
    height: 68px;
  }

  .vault-gift {
    margin-top: -2px;
  }

  .hint {
    margin: 10px 0 11px;
  }

  .watch-button {
    gap: 7px;
    min-height: 42px;
    font-size: 11px;
  }

  .rewards-card {
    padding: 13px 12px 12px;
  }

  .rewards-head {
    margin-bottom: 12px;
  }

  .reward {
    min-height: 104px;
    padding-top: 11px;
    padding-bottom: 9px;
  }

  .reward-icon {
    width: 28px;
    height: 28px;
    margin-top: 12px;
  }

  .reward-icon svg {
    width: 25px;
    height: 25px;
  }

  .reward em {
    margin-top: 7px;
  }

  .tabbar {
    width: calc(100% - 26px);
  }
}

@media (min-width: 700px) {
  .app-screen {
    min-height: 760px;
  }
}
