/* ============================ Загрузка / ошибки ========================== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity var(--t-slow) var(--ease);
}

.boot--hide {
  opacity: 0;
  pointer-events: none;
}

.boot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.boot__logo {
  width: 64px;
  height: 64px;
  animation: boot-pulse 1.6s var(--ease) infinite;
}

@keyframes boot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.boot__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.offline {
  position: fixed;
  top: calc(var(--safe-t) + 8px);
  left: var(--pad);
  right: var(--pad);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  border-radius: var(--r-pill);
  background: rgba(245, 166, 35, 0.16);
  border: 1px solid rgba(245, 166, 35, 0.34);
  color: #f6c26b;
  font-size: 13px;
  font-weight: 600;
  animation: toast-in var(--t-mid) var(--ease) both;
}

.fullscreen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px var(--pad) calc(var(--safe-b) + 32px);
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.fullscreen__icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--stroke);
  color: var(--text-2);
}

.fullscreen__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.fullscreen__text {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.fullscreen .btn {
  max-width: 320px;
}

/* ============================ Ожидание оплаты ============================ */
.paywait__ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.16), transparent 70%);
  position: relative;
}

.paywait__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(47, 107, 255, 0.18);
  border-top-color: var(--blue);
  animation: spin 1.1s linear infinite;
}

.paywait__amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

.pay-success__badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #6ee7a0;
  box-shadow: 0 0 46px var(--green-glow);
  animation: pop 480ms var(--ease) both;
}

@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================ Подключение ================================ */
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--stroke);
  text-align: left;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast),
    border-color var(--t-fast);
}

.platform:active {
  transform: scale(0.975);
  background: var(--card-2);
}

.platform--current {
  border-color: rgba(47, 107, 255, 0.4);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.08), transparent), var(--card);
}

.platform__icon {
  font-size: 24px;
  line-height: 1;
}

.platform__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.platform__hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

/* ============================ Партнёрка ================================== */
.partner-hero {
  padding: 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #1a1533 0%, #14112a 50%, #0e0d1c 100%);
  border: 1px solid rgba(139, 92, 246, 0.26);
  box-shadow: 0 10px 40px -18px rgba(139, 92, 246, 0.5), var(--sh-card);
  position: relative;
  overflow: hidden;
}

.partner-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 66%);
  pointer-events: none;
}

.partner-hero__label {
  font-size: 12px;
  color: var(--text-2);
  position: relative;
  z-index: 1;
}

.partner-hero__balance {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.stat {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
}

.stat__value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}

/* Ссылка для копирования */
.copybox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--r-md);
  background: #0b0f17;
  border: 1px solid var(--stroke-strong);
}

.copybox__text {
  display: block;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copybox__btn {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border: 1px solid rgba(47, 107, 255, 0.28);
  color: #8fb0ff;
  transition: transform var(--t-fast) var(--ease);
}

.copybox__btn:active {
  transform: scale(0.9);
}

/* ============================ Бонусы ===================================== */
.bonus-hero {
  padding: 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #0f2f22 0%, #0c2119 50%, #0a1712 100%);
  border: 1px solid rgba(34, 197, 94, 0.22);
  box-shadow: 0 10px 40px -18px var(--green-glow), var(--sh-card);
}

.bonus-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bonus-hero__count {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #6ee7a0;
}

/* ============================ История платежей =========================== */
.pay-row__amount {
  font-size: 15px;
  font-weight: 700;
  flex: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
}

.status-pill--paid {
  background: var(--green-soft);
  color: #74e39b;
}

.status-pill--pending {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-3);
}

/* ============================ Dev-панель ================================= */
.devbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  background: rgba(139, 92, 246, 0.18);
  border-bottom: 1px solid rgba(139, 92, 246, 0.4);
  font-size: 11px;
}

.devbar button {
  flex: none;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--stroke-strong);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.devbar button[data-on="1"] {
  background: var(--violet);
  color: #fff;
}

body.dev .appbar {
  padding-top: 44px;
}
