:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: rgba(20, 25, 33, 0.92);
  --panel-soft: rgba(21, 28, 38, 0.72);
  --panel-strong: rgba(12, 17, 24, 0.96);
  --stroke: rgba(126, 104, 255, 0.42);
  --stroke-soft: rgba(255, 255, 255, 0.08);
  --text: #f7f8fb;
  --muted: rgba(247, 248, 251, 0.56);
  --faint: rgba(247, 248, 251, 0.34);
  --violet: #7c5cff;
  --cyan: #42d6ff;
  --green: #45e6a1;
  --red: #ff5a70;
  --nav-h: 88px;
  --radius: 8px;
  --app-height: 100vh;
  --shell-pad-x: 14px;
  --head-radius: 28px;
  --head-bg:
    linear-gradient(180deg, rgba(7, 11, 16, 0.98), rgba(7, 11, 16, 0.88)),
    rgba(10, 13, 19, 0.94);
  --top-header-height: calc(96px + env(safe-area-inset-top));
  --top-header-pad: calc(34px + env(safe-area-inset-top));
  --head-content-x: max(calc(var(--shell-pad-x) + 12px), calc(50vw - 260px + var(--shell-pad-x) + 12px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: var(--app-height);
  min-height: var(--app-height);
  overflow: hidden;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.98), rgba(6, 9, 14, 1)),
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
  overscroll-behavior: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
  font-size: 16px;
  touch-action: manipulation;
}

#ambientCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: var(--app-height);
  z-index: 0;
  opacity: 0.82;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(124, 92, 255, 0.14), transparent 18%, transparent 82%, rgba(66, 214, 255, 0.08)),
    radial-gradient(120% 52% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 62%);
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  height: var(--app-height);
  min-height: var(--app-height);
  margin: 0 auto;
  overflow: visible;
  overscroll-behavior: none;
  padding: 0 var(--shell-pad-x) calc(var(--nav-h) + 26px + env(safe-area-inset-bottom));
}

.session-lock {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(14px);
}

.session-lock[hidden] {
  display: none;
}

.session-lock-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 420px);
  padding: 30px 22px 22px;
  border: 1px solid rgba(124, 92, 255, 0.30);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 22, 30, 0.98), rgba(7, 10, 15, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.session-lock-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.34), transparent 58%),
    rgba(255, 255, 255, 0.07);
}

.session-lock-icon::before,
.session-lock-icon::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  border: 3px solid rgba(255, 255, 255, 0.82);
}

.session-lock-icon::before {
  left: 18px;
  top: 15px;
  width: 27px;
  height: 40px;
}

.session-lock-icon::after {
  right: 17px;
  top: 23px;
  width: 23px;
  height: 34px;
  background: rgba(124, 92, 255, 0.34);
}

.session-lock-panel h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.08;
}

.session-lock-panel p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.session-lock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

body.session-locked .app-shell,
body.session-locked .bottom-nav,
body.session-locked .options-fab,
body.session-locked .options-menu {
  pointer-events: none;
}

html.onboarding-pending .app-shell,
html.onboarding-pending .bottom-nav,
html.onboarding-pending .options-fab,
html.onboarding-pending .options-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.onboarding-loading::before,
body.onboarding-loading::after {
  position: fixed;
  z-index: 29;
  pointer-events: none;
}

body.onboarding-loading::before {
  content: "";
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(124, 92, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(7, 11, 16, 0.98), rgba(2, 4, 10, 1));
}

body.onboarding-loading::after {
  content: "ALGO";
  left: 50%;
  top: 50%;
  color: white;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(124, 92, 255, 0.52);
  transform: translate(-50%, -50%);
  animation: onboarding-loader-pulse 1.4s ease-in-out infinite;
}

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: var(--app-height);
  min-height: var(--app-height);
  padding: calc(74px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #02040a;
}

.onboarding[hidden] {
  display: none;
}

.onboarding-image,
.onboarding-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.onboarding-image {
  z-index: 0;
  object-fit: cover;
  object-position: center;
}

.onboarding-shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.06), rgba(2, 4, 10, 0.12) 42%, rgba(2, 4, 10, 0.78) 100%),
    radial-gradient(circle at 50% 76%, rgba(124, 92, 255, 0.20), transparent 42%);
}

.onboarding-content,
.onboarding-footer {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  margin: 0 auto;
}

.onboarding-content {
  margin-bottom: 18px;
}

.onboarding-card {
  padding: 18px 18px 19px;
  border: 1px solid rgba(124, 92, 255, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(18, 22, 32, 0.74), rgba(6, 8, 13, 0.58));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.onboarding-card h2 {
  margin: 0 0 8px;
  color: #a891ff;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.onboarding-card p {
  margin: 0;
  color: white;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 850;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.onboarding-dots span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.18);
}

.onboarding-dots span.is-active {
  width: 24px;
  background: var(--violet);
}

.onboarding-next {
  min-height: 58px;
}

body.onboarding-open {
  overflow: hidden;
}

body.onboarding-open .app-shell,
body.onboarding-open .bottom-nav,
body.onboarding-open .options-fab,
body.onboarding-open .options-menu {
  pointer-events: none;
}

@keyframes onboarding-loader-pulse {
  0%, 100% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.98);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.profile-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100vw;
  height: var(--top-header-height);
  min-height: var(--top-header-height);
  margin: 0 calc(50% - 50vw) 0;
  padding: calc(22px + env(safe-area-inset-top)) var(--head-content-x) 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 var(--head-radius) var(--head-radius);
  background: var(--head-bg);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.muted,
.label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.profile-panel h1 {
  margin: 8px 0 0;
  max-width: 220px;
  overflow: hidden;
  font-size: 34px;
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-right {
  min-width: 118px;
  text-align: right;
}

.balance {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  font-weight: 900;
}

.balance span:first-child {
  font-size: 31px;
  line-height: 1;
}

.balance span:last-child {
  font-size: 18px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: visible;
  animation: screen-in 180ms ease-out;
}

body.has-detail-screen .bottom-nav {
  display: none;
}

body.has-detail-screen .options-fab,
body.has-detail-screen .options-menu {
  display: none;
}

body:not(.has-options-button) .options-fab,
body:not(.has-options-button) .options-menu {
  display: none;
}

body.has-detail-screen .app-shell {
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

body.is-mobile-telegram .app-shell {
  padding-top: 0;
}

body.is-mobile-telegram {
  --top-header-height: calc(112px + env(safe-area-inset-top));
  --top-header-pad: calc(74px + env(safe-area-inset-top));
}

.screen-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 12px 0 14px;
  -webkit-overflow-scrolling: touch;
}

body.is-mobile-telegram .profile-panel {
  padding-top: calc(60px + env(safe-area-inset-top));
  padding-bottom: 7px;
}

body.is-mobile-telegram .detail-topbar.fixed-screen-head,
body.is-mobile-telegram .section-head.fixed-screen-head,
body.is-mobile-telegram .signals-fixed-head.fixed-screen-head {
  padding-bottom: 10px;
}

body.is-mobile-telegram .muted,
body.is-mobile-telegram .label {
  font-size: 12px;
}

body.is-mobile-telegram .profile-panel h1 {
  margin-top: 4px;
  font-size: 28px;
}

body.is-mobile-telegram .balance {
  margin-top: 4px;
}

body.is-mobile-telegram .balance span:first-child {
  font-size: 28px;
}

body.is-mobile-telegram .balance span:last-child {
  font-size: 15px;
}

body.is-mobile-telegram .screen-scroll {
  padding-top: 10px;
}

body.is-mobile-telegram .quick-grid {
  gap: 10px;
  margin-bottom: 12px;
}

body.is-mobile-telegram .feature-card {
  min-height: 94px;
}

body.is-mobile-telegram .feature-title {
  top: 11px;
  font-size: 21px;
}

body.is-mobile-telegram .feature-time {
  bottom: 12px;
  font-size: 15px;
}

body.is-mobile-telegram .market-strip {
  min-height: 74px;
  margin-bottom: 14px;
  padding: 14px;
}

body.is-mobile-telegram .prices-card {
  margin-bottom: 14px;
  padding: 13px;
}

body.is-mobile-telegram .prices-head {
  margin-bottom: 10px;
}

body.is-mobile-telegram .prices-head h2 {
  font-size: 20px;
}

body.is-mobile-telegram .prices-grid {
  gap: 10px 6px;
}

body.is-mobile-telegram .price-icon {
  width: 38px;
  height: 38px;
}

body.is-mobile-telegram .price-symbol {
  font-size: 10px;
}

body.is-mobile-telegram .price-value {
  font-size: 14px;
}

body.is-mobile-telegram .price-change {
  font-size: 12px;
}

body.is-mobile-telegram .content-block {
  padding: 13px;
}

body.is-mobile-telegram .section-head h2 {
  font-size: 25px;
}

body.is-mobile-telegram .signals-tabbar {
  padding: 10px 0 8px;
}

body.is-mobile-telegram .signal-card,
body.is-mobile-telegram .task-card {
  gap: 10px;
  padding: 12px;
}

body.is-mobile-telegram .daily-stage {
  min-height: 360px;
  margin: 0 0 14px;
}

body.is-mobile-telegram .daily-copy {
  gap: 10px;
  margin-bottom: 16px;
}

body.is-mobile-telegram .result-card {
  min-height: 320px;
  margin: 18px 0;
  padding: 34px 20px;
}

body.is-mobile-telegram .ledger-list,
body.is-mobile-telegram .admin-drop-panel {
  padding: 9px;
}

body.is-mobile-telegram .stats-grid,
body.is-mobile-telegram .cabinet-actions,
body.is-mobile-telegram .plan-grid {
  gap: 10px;
}

body.is-mobile-telegram .cabinet-action {
  min-height: 62px;
  padding: 0 12px;
  font-size: 15px;
}

body.is-mobile-telegram .stat-tile {
  min-height: 92px;
  padding: 14px;
}

body.is-mobile-telegram .stat-tile span {
  margin-bottom: 9px;
}

body.is-mobile-telegram .payment-card {
  min-height: 76px;
  padding: 13px;
}

body.is-mobile-telegram .payment-status {
  font-size: 12px;
}

body.is-mobile-telegram .referral-hero {
  min-height: 72px;
  padding: 10px 12px;
}

body.is-mobile-telegram .referral-card {
  padding: 14px;
}

body.is-mobile-telegram .shop-panel {
  gap: 14px;
  padding: 14px;
}

body.is-mobile-telegram .plan-card {
  min-height: 166px;
  padding: 8px;
}

body.is-mobile-telegram .plan-card strong {
  font-size: 20px;
}

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

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.feature-card {
  position: relative;
  isolation: isolate;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 20, 28, 0.96), rgba(29, 24, 60, 0.72)),
    rgba(12, 14, 20, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.55;
}

.feature-title {
  position: absolute;
  left: 14px;
  top: 13px;
  z-index: 2;
  font-size: 23px;
  font-weight: 950;
  line-height: 0.92;
}

.feature-time {
  position: absolute;
  left: 14px;
  bottom: 15px;
  z-index: 2;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.drop-crate {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 76px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(122, 94, 255, 0.94), rgba(41, 54, 76, 0.96));
  box-shadow:
    0 0 26px rgba(124, 92, 255, 0.42),
    inset 0 12px 14px rgba(255, 255, 255, 0.13),
    inset 0 -12px 18px rgba(0, 0, 0, 0.34);
}

.drop-crate::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 14px;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.drop-crate span {
  position: absolute;
  left: 28px;
  top: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 5px solid rgba(220, 210, 255, 0.9);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.9);
}

.drop-crate-image,
.chance-gift-image {
  position: absolute;
  right: 5%;
  top: 5%;
  z-index: 1;
  width: auto;
  max-width: 54%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  filter:
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 20px rgba(150, 90, 255, 0.38));
}

.detail-topbar {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: -2px 0 18px;
}

.detail-topbar h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1;
}

.admin-affiliate-add-button {
  display: grid;
  place-items: center;
  align-self: center;
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(124, 92, 255, 0.45);
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 92, 255, 0.28), rgba(124, 92, 255, 0.08) 58%, rgba(7, 11, 16, 0.26)),
    rgba(124, 92, 255, 0.1);
  color: rgba(255, 255, 255, 0.96);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.2);
  transform: translateY(-3px);
}

.admin-affiliate-settings-button {
  font-size: 20px;
}

.back-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.back-button::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 12px;
  height: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.76);
  border-bottom: 2px solid rgba(255, 255, 255, 0.76);
  transform: rotate(45deg);
}

.daily-drop-screen {
  min-height: 0;
}

.daily-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 396px;
  margin: 4px 0 18px;
  overflow: hidden;
}

.daily-stage::before {
  content: "";
  position: absolute;
  inset: 10% 4%;
  background:
    radial-gradient(circle at 50% 48%, rgba(124, 92, 255, 0.24), transparent 56%),
    radial-gradient(circle at 50% 52%, rgba(66, 214, 255, 0.08), transparent 70%);
  opacity: 0.82;
}

.daily-timer-badge {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 3;
  min-width: 168px;
  padding: 8px 18px;
  transform: translateX(-50%);
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
  background: var(--violet);
  color: white;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.daily-drop-screen.is-joined .daily-timer-badge {
  opacity: 1;
}

.prize-frame {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(82vw, 330px);
  aspect-ratio: 1;
  margin-top: 28px;
  border: 2px solid rgba(124, 92, 255, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.10), transparent 20%),
    radial-gradient(circle at 50% 58%, rgba(124, 92, 255, 0.30), rgba(15, 17, 28, 0.88) 62%, rgba(6, 9, 14, 0.92) 100%);
  box-shadow:
    0 0 52px rgba(124, 92, 255, 0.28),
    inset 0 0 42px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(192, 174, 255, 0.10);
}

.prize-frame-lines {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -8deg, rgba(255, 255, 255, 0.50) 0 1.4deg, transparent 1.4deg 3.7deg);
  opacity: 0.58;
  mask: radial-gradient(circle, transparent 65%, black 66.5% 70%, transparent 71.5%);
}

.daily-crate-3d {
  position: relative;
  width: min(51vw, 198px);
  aspect-ratio: 1;
  transform: translateY(6px);
  filter:
    drop-shadow(0 32px 22px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 34px rgba(139, 82, 255, 0.30));
}

.crate-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 42%;
}

.crate-photo-body {
  z-index: 1;
  transform: translateY(0);
}

.crate-photo-lid {
  z-index: 2;
  animation: reference-lid-float 2.8s ease-in-out infinite;
  filter:
    drop-shadow(0 18px 16px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 16px rgba(191, 91, 255, 0.28));
}

@keyframes reference-lid-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.daily-copy {
  display: grid;
  gap: 12px;
  margin: 0 2px 20px;
}

.daily-rule {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
}

.daily-rule p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.daily-rule p::first-letter {
  letter-spacing: 0;
}

.check-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(124, 92, 255, 0.78);
  border-radius: 50%;
}

.check-mark::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 7px;
  height: 4px;
  border-left: 2px solid rgba(255, 255, 255, 0.86);
  border-bottom: 2px solid rgba(255, 255, 255, 0.86);
  transform: rotate(-45deg);
}

.primary-action {
  width: 100%;
  min-height: 56px;
  border-radius: 28px;
  background: var(--violet);
  color: white;
  font-size: 23px;
  font-weight: 950;
  box-shadow: 0 18px 28px rgba(124, 92, 255, 0.24);
}

.primary-action:disabled {
  background: rgba(124, 92, 255, 0.56);
  color: rgba(255, 255, 255, 0.48);
  box-shadow: none;
  cursor: default;
}

.daily-note {
  max-width: 360px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.history-pill {
  min-width: 78px;
  background: rgba(124, 92, 255, 0.10);
}

.result-card,
.ledger-list,
.admin-drop-panel {
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(20, 25, 34, 0.88), rgba(10, 14, 20, 0.88));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.daily-result-screen,
.daily-history-screen,
.daily-admin-screen {
  min-height: 0;
}

.result-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 360px;
  margin: 34px 0 22px;
  padding: 44px 22px;
  text-align: center;
}

.result-orb {
  width: 132px;
  height: 132px;
  border: 1px solid rgba(124, 92, 255, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 34%, rgba(255, 255, 255, 0.22), transparent 22%),
    radial-gradient(circle at 50% 60%, rgba(124, 92, 255, 0.76), rgba(24, 18, 50, 0.96) 66%);
  box-shadow:
    0 0 42px rgba(124, 92, 255, 0.36),
    inset 0 0 38px rgba(0, 0, 0, 0.36);
}

.result-card h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.05;
}

.result-card strong {
  color: var(--violet);
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
}

.result-card p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.ledger-list,
.admin-drop-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.ledger-row,
.admin-row,
.winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 14px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background: rgba(7, 10, 16, 0.56);
}

.ledger-row span,
.admin-row span,
.winner-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ledger-row strong,
.admin-row strong,
.winner-row strong {
  font-size: 16px;
  font-weight: 950;
}

.ledger-row strong {
  color: var(--green);
}

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

.admin-card h3 {
  margin: 6px 4px 2px;
  font-size: 18px;
}

.empty-message {
  min-height: 90px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.market-strip,
.prices-card,
.content-block,
.stat-tile,
.task-card,
.signal-card,
.payment-card,
.referral-card,
.referral-list,
.pnl-calendar-card,
.pnl-day-details,
.api-panel,
.more-list {
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(20, 25, 34, 0.88), rgba(10, 14, 20, 0.88));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.market-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 82px;
  margin-bottom: 20px;
  padding: 16px;
  text-align: left;
}

.market-strip strong {
  display: block;
  font-size: 18px;
}

.prices-card {
  margin-bottom: 18px;
  padding: 14px 16px 16px;
}

.prices-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.prices-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 950;
}

.prices-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 12px 8px;
  min-width: 0;
}

.price-item {
  display: grid;
  grid-column: span 2;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 2px;
  text-align: center;
}

.price-item:nth-child(n + 6) {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.price-item:nth-child(6) {
  grid-column: 2 / span 2;
}

.price-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.price-symbol,
.price-value,
.price-change {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-symbol {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 950;
}

.price-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.price-change {
  font-size: 13px;
  font-weight: 950;
}

.price-change.is-positive {
  color: var(--green);
}

.price-change.is-negative {
  color: var(--red);
}

.price-change.is-neutral {
  color: var(--muted);
}

.pnl-strip {
  gap: 14px;
}

.pnl-summary {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
  gap: 8px;
}

.pnl-action-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid rgba(124, 92, 255, 0.45);
  border-radius: 50%;
  color: var(--violet);
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 92, 255, 0.28), rgba(124, 92, 255, 0.08) 58%, rgba(7, 11, 16, 0.26)),
    rgba(124, 92, 255, 0.1);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.2);
  pointer-events: none;
}

.pnl-action-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-strip .today-pnl {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.today-pnl.is-positive {
  color: var(--green);
}

.today-pnl.is-negative {
  color: var(--red);
}

.today-pnl.is-neutral {
  color: rgba(255, 255, 255, 0.88);
}

.pnl-calendar-card {
  min-height: min(52vh, 458px);
  padding: 16px;
}

.pnl-calendar-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pnl-calendar-head h3 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.15;
  text-transform: capitalize;
}

.calendar-nav {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.calendar-nav::before {
  content: "";
  position: absolute;
  inset: 13px 11px 13px 15px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  opacity: 0.88;
}

.calendar-nav.is-next::before {
  inset: 13px 15px 13px 11px;
  transform: rotate(225deg);
}

.calendar-nav:disabled {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}

.pnl-calendar-weekdays,
.pnl-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.pnl-calendar-weekdays {
  gap: 6px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.pnl-calendar-grid {
  gap: 6px;
}

.pnl-day-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.pnl-day-cell.is-empty {
  min-height: 58px;
  background: transparent;
  box-shadow: none;
}

.pnl-day-cell.has-data {
  background: linear-gradient(145deg, rgba(26, 31, 42, 0.92), rgba(13, 17, 24, 0.82));
}

.pnl-day-cell.is-selected {
  box-shadow:
    inset 0 0 0 1px rgba(124, 92, 255, 0.72),
    0 12px 24px rgba(124, 92, 255, 0.18);
}

.pnl-day-cell strong {
  font-size: 18px;
  line-height: 1;
}

.pnl-day-cell span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.pnl-day-cell.is-positive span {
  color: var(--green);
}

.pnl-day-cell.is-negative span {
  color: var(--red);
}

.pnl-day-details {
  margin-top: 12px;
  padding: 14px;
}

.pnl-day-details h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1;
}

.pnl-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pnl-detail-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pnl-detail-row strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  white-space: nowrap;
}

.pnl-detail-row strong.is-positive {
  color: var(--green);
}

.pnl-detail-row strong.is-negative {
  color: var(--red);
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 96px;
  height: 40px;
}

.mini-chart span {
  flex: 1;
  min-width: 8px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--green), rgba(69, 230, 161, 0.12));
}

.mini-chart span:nth-child(1) { height: 42%; }
.mini-chart span:nth-child(2) { height: 68%; }
.mini-chart span:nth-child(3) { height: 54%; }
.mini-chart span:nth-child(4) { height: 84%; }
.mini-chart span:nth-child(5) { height: 63%; }
.mini-chart span:nth-child(6) { height: 92%; }

.content-block {
  padding: 15px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}

.detail-topbar.fixed-screen-head,
.section-head.fixed-screen-head,
.signals-fixed-head.fixed-screen-head {
  position: relative;
  z-index: 6;
  width: 100vw;
  height: var(--top-header-height);
  min-height: var(--top-header-height);
  margin: 0 calc(50% - 50vw) 0;
  padding: var(--top-header-pad) var(--head-content-x) 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 var(--head-radius) var(--head-radius);
  background: var(--head-bg);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

body.has-native-back .detail-topbar {
  grid-template-columns: 1fr auto;
}

body.has-native-back .detail-topbar .back-button {
  display: none;
}

.text-link {
  padding: 7px 0;
  background: transparent;
  color: var(--violet);
  font-size: 15px;
  font-weight: 800;
}

.signal-list,
.task-list,
.more-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.signal-list.expanded {
  margin-top: 14px;
}

.signals-screen.is-active {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: visible;
  animation: screen-in 180ms ease-out;
}

.payments-screen.is-active {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: visible;
  animation: screen-in 180ms ease-out;
}

.signals-tabbar {
  position: relative;
  z-index: 5;
  padding: 12px 0 8px;
  background: linear-gradient(180deg, rgba(7, 11, 16, 0.72), rgba(7, 11, 16, 0));
}

.signals-scroll-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}

.detail-action-row {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 10px;
}

.signals-scroll-list.expanded {
  margin-top: 0;
}

.signal-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
}

.signal-card.empty-state {
  display: block;
  color: var(--muted);
}

.signal-card h3,
.task-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.signal-card p,
.task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.side-long {
  color: var(--green);
}

.side-short {
  color: var(--red);
}

.signal-pnl {
  align-self: center;
  font-size: 17px;
  font-weight: 900;
}

.signal-pnl.is-positive {
  color: var(--green);
}

.signal-pnl.is-negative {
  color: var(--red);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(124, 92, 255, 0.44);
  border-radius: 999px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(8, 10, 16, 0.74);
}

.segmented button {
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segmented button.is-selected {
  background: var(--violet);
  color: white;
}

.task-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 14px;
}

.task-card.is-disabled {
  cursor: default;
}

.task-icon-round {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(5, 6, 10, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    0 10px 18px rgba(0, 0, 0, 0.24);
}

.task-icon-round img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.task-card > div {
  min-width: 0;
}

.task-card h3 {
  overflow-wrap: anywhere;
}

.task-reward {
  color: var(--violet);
  font-weight: 950;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cabinet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.cabinet-mode-copy {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.3;
}

.mode-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 32px;
  flex: 0 0 auto;
}

.mode-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-switch-track {
  position: relative;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.mode-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;
}

.mode-switch input:checked + .mode-switch-track {
  background: #30d158;
}

.mode-switch input:checked + .mode-switch-track::after {
  transform: translateX(20px);
}

.cabinet-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 0 14px;
  border: 1px solid rgba(124, 92, 255, 0.54);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 50%, rgba(124, 92, 255, 0.22), transparent 46%),
    rgba(8, 11, 17, 0.84);
  color: white;
  font-size: 17px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.cabinet-action-centered {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 12px) / 2);
}

.cabinet-action.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #8b6cff, var(--violet));
  box-shadow:
    0 16px 26px rgba(124, 92, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.cabinet-action-icon {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.cabinet-action-icon::before,
.cabinet-action-icon::after {
  content: "";
  position: absolute;
}

.api-glyph,
.copy-trading-glyph,
.affiliate-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.payments-glyph::before {
  left: 7px;
  top: 10px;
  width: 20px;
  height: 13px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.92;
}

.payments-glyph::after {
  left: 10px;
  top: 15px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.82);
}

.referrals-glyph::before {
  left: 7px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 10px 2px 0 rgba(255, 255, 255, 0.78);
}

.referrals-glyph::after {
  left: 6px;
  top: 20px;
  width: 22px;
  height: 8px;
  border-radius: 999px 999px 5px 5px;
  background: currentColor;
}

.api-glyph::before {
  content: "🛠️";
  position: static;
}

.api-glyph::after {
  display: none;
}

.copy-trading-glyph::before {
  content: "⚙️";
  position: static;
}

.copy-trading-glyph::after {
  display: none;
}

.voucher-glyph::before {
  left: 6px;
  top: 9px;
  width: 22px;
  height: 16px;
  border-radius: 5px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 34%, 88% 50%, 100% 66%, 100% 100%, 0 100%, 0 66%, 12% 50%, 0 34%);
}

.voucher-glyph::after {
  left: 15px;
  top: 11px;
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.86);
}

.affiliate-glyph::before {
  content: "📊";
  position: static;
}

.affiliate-glyph::after {
  display: none;
}

.payment-list {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: stretch;
}

.subscription-card {
  display: flex;
  align-items: center;
  min-height: 94px;
  padding: 17px 18px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 95% 20%, rgba(124, 92, 255, 0.18), transparent 42%),
    linear-gradient(140deg, rgba(15, 20, 29, 0.9), rgba(8, 11, 17, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.subscription-card strong {
  color: white;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 950;
}

.payment-list > .empty-message {
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(20, 25, 34, 0.88), rgba(10, 14, 20, 0.88));
}

.payment-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 15px 14px;
  cursor: pointer;
}

.payment-card h3,
.referral-card h3,
.api-panel h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.payment-card p,
.referral-card p,
.api-panel p,
.voucher-sheet p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.money {
  color: var(--green);
  font-weight: 900;
}

.payment-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-status {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.payment-status.pending {
  color: #f1c85e;
}

.payment-status.verified {
  color: var(--cyan);
}

.payment-status.approved {
  color: var(--green);
}

.payment-status.expired {
  color: var(--red);
}

.info-button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 950;
}

.manager-payment-tabs {
  position: relative;
  z-index: 5;
  padding: 12px 0 8px;
}

.manager-payment-card {
  width: 100%;
  text-align: left;
}

.manager-payment-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(20, 25, 34, 0.88), rgba(10, 14, 20, 0.88));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.manager-payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
}

.manager-payment-head > strong {
  font-size: 20px;
  line-height: 1.1;
}

.payment-detail-row {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.payment-detail-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.payment-detail-row strong {
  min-width: 0;
  color: white;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.payment-detail-row code {
  color: var(--cyan);
  font-family: var(--font-mono, "SFMono-Regular", Consolas, "Liberation Mono", monospace);
}

.copyable-mono {
  display: inline;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: var(--font-mono, "SFMono-Regular", Consolas, "Liberation Mono", monospace);
  font-weight: 850;
  letter-spacing: 0;
  text-align: left;
  word-break: break-all;
  cursor: pointer;
}

.manager-payment-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.referral-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #8b6cff, var(--violet));
  box-shadow:
    0 16px 30px rgba(124, 92, 255, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.referral-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.referral-person img {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.20);
}

.referral-person h3 {
  margin: 0 0 3px;
  max-width: 190px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-person p,
.referral-points span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.referral-points {
  text-align: right;
}

.referral-points strong {
  display: block;
  font-size: 18px;
  line-height: 1.05;
}

.referral-card {
  padding: 16px;
  margin-bottom: 12px;
}

.referral-card p {
  white-space: pre-line;
}

.referral-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.secondary-action {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.22);
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.secondary-action.is-primary {
  background: var(--violet);
}

.referral-list {
  display: grid;
  gap: 10px;
  min-height: 72px;
  padding: 10px;
}

.referral-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.referral-row span {
  font-weight: 850;
}

.referral-row-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.referral-row-person img {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.referral-row-person span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row .referral-row-person span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: normal;
}

.admin-user-row .referral-row-person small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.2;
}

.admin-user-row strong {
  max-width: 46%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-summary-card {
  min-height: 92px;
}

.action-summary-card {
  position: relative;
  width: 100%;
  text-align: left;
}

.action-summary-card strong {
  padding-right: 18px;
}

.summary-chevron {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: var(--violet);
  font-size: 25px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.action-summary-card:active {
  transform: translateY(1px);
}

.admin-search-card {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-search-row,
.admin-form-grid {
  display: grid;
  gap: 10px;
}

.admin-search-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-search-row input,
.admin-form-grid input,
.admin-form-grid textarea {
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(9, 12, 18, 0.9);
  color: #fff;
}

.admin-search-row input,
.admin-form-grid input {
  height: 48px;
}

.admin-form-grid textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

.admin-form-grid {
  margin-bottom: 12px;
}

.affiliate-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(9, 12, 18, 0.9);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 850;
}

.affiliate-toggle input {
  width: 24px;
  height: 24px;
  accent-color: var(--violet);
}

.affiliate-settings-panel,
.affiliate-requisites-panel {
  margin-bottom: 12px;
}

.affiliate-settings-actions,
.affiliate-requisites-actions {
  margin-bottom: 14px;
}

.affiliate-requisites-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.affiliate-payout-side {
  justify-content: flex-end;
  max-width: 52%;
}

.affiliate-payout-side .copyable-mono {
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.25;
  text-align: right;
}

.admin-user-hero {
  margin-bottom: 14px;
}

.admin-user-list {
  margin-bottom: 18px;
}

.admin-voucher-card h3 {
  letter-spacing: 0.08em;
}

.referral-row strong {
  color: var(--violet);
  white-space: nowrap;
}

.api-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 18px 18px;
  text-align: center;
}

.trading-form-panel {
  justify-items: stretch;
  gap: 14px;
  padding: 16px;
  text-align: left;
}

.trading-status-row,
.copy-topline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.copy-topline {
  grid-template-columns: minmax(0, 1fr) auto;
}

.trading-status-row h3,
.copy-topline h3 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.12;
}

.trading-status-row p,
.copy-topline p,
.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.copy-protection-notice {
  padding: 12px 13px;
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.075);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.copy-protection-notice h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.15;
}

.copy-protection-notice ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.copy-protection-notice li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.copy-protection-notice p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.api-status-orb {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.90), transparent 8%),
    radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.88), rgba(35, 27, 82, 0.82) 58%, rgba(8, 11, 17, 0.92));
  box-shadow:
    0 0 34px rgba(124, 92, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.trading-status-row .api-status-orb {
  width: 46px;
  height: 46px;
}

.api-status-orb.is-connected {
  background:
    radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.9), transparent 8%),
    radial-gradient(circle at 50% 50%, rgba(69, 230, 161, 0.92), rgba(11, 88, 58, 0.82) 58%, rgba(8, 11, 17, 0.92));
  box-shadow:
    0 0 28px rgba(69, 230, 161, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.api-status-orb.is-failed {
  background:
    radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.86), transparent 8%),
    radial-gradient(circle at 50% 50%, rgba(255, 90, 112, 0.92), rgba(105, 20, 36, 0.82) 58%, rgba(8, 11, 17, 0.92));
  box-shadow:
    0 0 28px rgba(255, 90, 112, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.api-panel .primary-action {
  margin-top: 8px;
}

.field-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-block span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.field-block input,
.field-block select {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.field-block input:focus,
.field-block select:focus {
  border-color: rgba(124, 92, 255, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(124, 92, 255, 0.18),
    0 0 0 3px rgba(124, 92, 255, 0.10);
}

.field-block input[readonly] {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.035);
}

.field-block select option {
  background: #111722;
  color: var(--text);
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
}

.range-row input {
  padding: 0;
  accent-color: #7c5cff;
}

.range-row strong {
  text-align: right;
  color: var(--violet);
  font-size: 20px;
  font-weight: 950;
}

.switch-control {
  position: relative;
  display: inline-grid;
  width: 58px;
  height: 34px;
}

.switch-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.switch-control span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.switch-control span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 160ms ease, background 160ms ease;
}

.switch-control input:checked + span {
  background: rgba(69, 230, 161, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 22px rgba(69, 230, 161, 0.22);
}

.switch-control input:checked + span::after {
  transform: translateX(24px);
  background: white;
}

.shop-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(16, 20, 30, 0.86), rgba(6, 9, 14, 0.86)),
    rgba(9, 12, 18, 0.92);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.05);
}

.shop-panel h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.shop-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan-card {
  min-height: 186px;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(124, 92, 255, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(124, 92, 255, 0.24), transparent 34%),
    rgba(8, 11, 17, 0.78);
  overflow: hidden;
  text-align: left;
}

.plan-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.30);
}

.plan-card-meta {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  padding: 0 2px 2px;
}

.plan-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.plan-card strong {
  color: white;
  font-size: 22px;
  letter-spacing: 0;
}

.plan-detail-screen.is-active {
  display: block;
  width: 100vw;
  height: 100%;
  min-height: 0;
  margin: 0 calc(50% - 50vw);
  overflow: hidden;
  touch-action: pan-y;
}

.plan-detail-scroll {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
  padding: 0 var(--shell-pad-x) 18px;
}

.plan-detail-hero {
  position: relative;
  width: calc(100% + var(--shell-pad-x) + var(--shell-pad-x));
  margin: 0 calc(0px - var(--shell-pad-x)) 86px;
}

.plan-detail-hero img {
  display: block;
  width: 100%;
  max-height: min(58vh, 520px);
  object-fit: cover;
  border-radius: 0 0 7px 7px;
}

.plan-summary-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  padding: 18px 22px;
  transform: translateY(50%);
  border: 1px solid var(--stroke-soft);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 40%, rgba(124, 92, 255, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(22, 24, 31, 0.98), rgba(12, 15, 21, 0.98));
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42);
}

.plan-summary-card h2 {
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1;
}

.plan-summary-card span,
.checkout-topbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.plan-summary-card strong,
.checkout-topbar > strong {
  font-size: 25px;
  font-weight: 950;
  white-space: nowrap;
}

.plan-description {
  padding: 0 2px;
}

.plan-description h3,
.checkout-section h3,
.promo-section h3 {
  margin: 0 0 13px;
  font-size: 20px;
  line-height: 1.1;
}

.plan-description p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.plan-detail-spacer {
  flex: 1 1 auto;
  min-height: 160px;
}

.sticky-plan-action {
  position: sticky;
  bottom: 0;
  flex: 0 0 auto;
}

.checkout-screen.is-active {
  min-height: 0;
}

.checkout-topbar {
  grid-template-columns: 42px 1fr auto;
  align-items: center;
}

.checkout-topbar h2 {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 19px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-topbar > div {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.checkout-topbar > strong {
  align-self: center;
  font-size: 22px;
  line-height: 1;
}

.checkout-scroll {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 8px;
}

.checkout-section,
.promo-section {
  margin-bottom: 22px;
}

.payment-qr-panel {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-bottom: 14px;
}

.payment-qr-frame {
  display: grid;
  place-items: center;
  width: min(64vw, 270px);
  aspect-ratio: 1 / 1;
  padding: 10px;
  border: 1px solid rgba(124, 92, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.payment-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.payment-address-box {
  display: grid;
  gap: 6px;
  width: 100%;
}

.payment-address-box span,
.tx-section h3 {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.payment-address-box button {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  color: white;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
  word-break: break-all;
}

.tx-section {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.tx-section input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.065);
  color: white;
  font-weight: 800;
}

.tx-section input:focus {
  border-color: rgba(124, 92, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

.tx-section input:disabled {
  opacity: 0.62;
  cursor: default;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  padding: 0 12px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 18%, rgba(124, 92, 255, 0.14), transparent 42%),
    rgba(13, 16, 23, 0.88);
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 950;
}

.payment-method.is-selected {
  border-color: rgba(124, 92, 255, 0.58);
  background:
    radial-gradient(circle at 92% 18%, rgba(124, 92, 255, 0.30), transparent 42%),
    linear-gradient(145deg, rgba(31, 31, 45, 0.94), rgba(12, 15, 23, 0.94));
  color: white;
}

.method-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
}

.crypto-method-icon {
  background: rgba(69, 230, 161, 0.24);
  color: var(--green);
}

.ap-method-icon {
  border: 1px solid rgba(124, 92, 255, 0.66);
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--violet);
}

.promo-section[hidden] {
  display: none;
}

.promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
}

.promo-row input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.065);
  color: white;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.promo-row input:focus {
  border-color: rgba(124, 92, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

.promo-row button {
  min-width: 0;
  height: 58px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #8b6cff, var(--violet));
  color: white;
  font-weight: 900;
}

.terms-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
}

.terms-row input {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin: 0;
  accent-color: var(--violet);
}

.terms-row span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-spacer {
  flex: 1 1 auto;
  min-height: 0;
}

.checkout-summary {
  min-height: 42px;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.checkout-summary p {
  margin: 0 0 6px;
  color: white;
}

.checkout-summary span {
  color: var(--muted);
}

.stat-tile {
  min-height: 104px;
  padding: 16px;
}

.stat-tile span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat-tile strong {
  font-size: 25px;
}

.more-list {
  padding: 8px;
}

.more-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 850;
}

.more-list button + button {
  border-top: 1px solid var(--stroke-soft);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(calc(100vw - 24px), 520px);
  height: 76px;
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(14, 16, 23, 0.82);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  border-radius: 22px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.bottom-nav button.is-active {
  color: white;
  background: rgba(124, 92, 255, 0.20);
}

.nav-icon {
  position: relative;
  width: 22px;
  height: 22px;
  color: var(--violet);
}

.home-icon {
  border: 7px solid currentColor;
  border-top-width: 10px;
  clip-path: polygon(50% 0, 100% 42%, 90% 100%, 10% 100%, 0 42%);
}

.signal-icon::before,
.signal-icon::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 5px;
  border-radius: 6px;
  background: currentColor;
}

.signal-icon::before {
  left: 3px;
  height: 14px;
}

.signal-icon::after {
  left: 14px;
  height: 21px;
}

.user-icon::before,
.user-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.user-icon::before {
  top: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.user-icon::after {
  bottom: 1px;
  width: 20px;
  height: 10px;
  border-radius: 12px 12px 6px 6px;
}

.shop-icon::before,
.shop-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.shop-icon::before {
  bottom: 2px;
  width: 18px;
  height: 14px;
  border-radius: 5px 5px 4px 4px;
  background: currentColor;
}

.shop-icon::after {
  top: 1px;
  width: 10px;
  height: 10px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.task-icon {
  border-radius: 50%;
  background: currentColor;
}

.task-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 9px;
  height: 6px;
  border-left: 3px solid #0e1017;
  border-bottom: 3px solid #0e1017;
  transform: rotate(-45deg);
}

.more-icon::before,
.more-icon::after,
.more-icon {
  border-radius: 50%;
}

.more-icon {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: currentColor;
  box-shadow: -9px 0 0 currentColor, 9px 0 0 currentColor;
}

.options-fab {
  position: fixed;
  right: max(28px, calc((100vw - 520px) / 2 + 28px));
  bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom));
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(124, 92, 255, 0.28), transparent 42%),
    rgba(14, 16, 23, 0.86);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.options-fab .more-icon {
  color: var(--violet);
  transform: scale(0.82);
}

.options-menu {
  position: fixed;
  right: max(18px, calc((100vw - 520px) / 2 + 18px));
  bottom: calc(var(--nav-h) + 66px + env(safe-area-inset-bottom));
  z-index: 6;
  display: grid;
  gap: 10px;
  width: min(176px, calc(100vw - 34px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transform-origin: right bottom;
  transition: opacity 160ms ease, transform 160ms ease;
}

body.options-open .options-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.options-menu button {
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(25, 27, 34, 0.94), rgba(9, 11, 17, 0.92));
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  text-align: left;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.menu-glyph {
  position: relative;
  width: 30px;
  height: 30px;
  color: var(--violet);
}

.language-glyph {
  width: 34px;
  height: 34px;
  background: url("./assets/language.png") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(124, 92, 255, 0.42));
}

.help-glyph::before,
.help-glyph::after {
  content: "";
  position: absolute;
}

.help-glyph::before {
  left: 4px;
  top: 5px;
  width: 22px;
  height: 17px;
  border-radius: 8px;
  background: currentColor;
}

.help-glyph::after {
  left: 9px;
  bottom: 3px;
  width: 9px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.48);
  transition: opacity 180ms ease;
}

.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  background: rgba(3, 5, 9, 0.58);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease;
}

.payment-modal {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  justify-items: center;
  width: min(calc(100% - 28px), 520px);
  padding: 32px 24px 24px;
  transform: translate(-50%, calc(100% + 42px));
  border: 1px solid rgba(124, 92, 255, 0.26);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 22, 30, 0.98), rgba(7, 10, 15, 0.98));
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 18px 40px rgba(124, 92, 255, 0.24);
  transition: transform 220ms ease;
}

body.payment-modal-open .payment-modal-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.payment-modal-open .payment-modal {
  transform: translate(-50%, 0);
}

.payment-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
}

.payment-modal-close::before,
.payment-modal-close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.payment-modal-close::before {
  transform: rotate(45deg);
}

.payment-modal-close::after {
  transform: rotate(-45deg);
}

.payment-modal-icon {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.28), transparent 60%),
    linear-gradient(145deg, rgba(43, 51, 65, 0.94), rgba(18, 24, 34, 0.94));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.payment-modal-icon::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 4px solid #77a9ff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(119, 169, 255, 0.38);
}

.payment-modal-icon::after {
  content: "";
  position: absolute;
  left: 51px;
  top: 47px;
  width: 28px;
  height: 16px;
  border-left: 4px solid #77a9ff;
  border-bottom: 4px solid #77a9ff;
  transform: rotate(-24deg);
  border-radius: 3px;
}

.payment-modal h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.05;
  text-align: center;
}

.payment-modal p {
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 760;
  text-align: center;
}

.payment-modal-summary {
  display: grid;
  gap: 1px;
  width: 100%;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.payment-modal-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.035);
}

.payment-modal-summary span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.payment-modal-summary strong {
  min-width: 0;
  color: white;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
  word-break: break-word;
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 8;
  width: min(100%, 520px);
  min-height: 34vh;
  padding: 24px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translate(-50%, calc(100% + 24px));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 30, 0.98), rgba(9, 12, 18, 0.98));
  box-shadow: 0 -24px 52px rgba(0, 0, 0, 0.48);
  transition: transform 220ms ease;
}

body.sheet-open .sheet-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.sheet-open .bottom-sheet.is-open {
  transform: translate(-50%, 0);
}

.bottom-sheet h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1;
}

.sheet-close {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.sheet-close::before,
.sheet-close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.sheet-close::before {
  transform: rotate(45deg);
}

.sheet-close::after {
  transform: rotate(-45deg);
}

.language-options {
  display: grid;
  gap: 10px;
}

.language-options button {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
  text-align: left;
}

.language-options button.is-selected {
  border-color: rgba(124, 92, 255, 0.72);
  background: rgba(124, 92, 255, 0.22);
  color: white;
}

.voucher-sheet {
  min-height: 36vh;
}

.voucher-field {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.voucher-field span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 850;
}

.voucher-field input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.voucher-field input:focus {
  border-color: rgba(124, 92, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16);
}

.voucher-sheet .primary-action {
  margin-top: 18px;
}

@media (max-width: 370px) {
  :root {
    --shell-pad-x: 10px;
  }

  .profile-panel {
    padding-left: calc(var(--shell-pad-x) + 16px);
    padding-right: calc(var(--shell-pad-x) + 16px);
  }

  .profile-panel h1 {
    max-width: 160px;
    font-size: 30px;
  }

  .feature-title {
    font-size: 20px;
  }

  .drop-crate {
    width: 62px;
    height: 52px;
  }

  .drop-crate-image,
  .chance-gift-image {
    right: 5%;
    top: 5%;
    width: auto;
    max-width: 54%;
    height: 90%;
  }

  .prices-card {
    padding: 12px;
  }

  .prices-grid {
    gap: 9px 5px;
  }

  .price-icon {
    width: 34px;
    height: 34px;
  }

  .price-symbol {
    font-size: 9px;
  }

  .price-value {
    font-size: 13px;
  }

  .bottom-nav {
    width: calc(100vw - 18px);
  }

  .bottom-nav button {
    font-size: 10px;
  }
}
