/* ── Tokens shop + Tariffs ── */
/* ── TOKENS SHOP PAGE ──────────────────────────────────── */
.tokens-shop-container {
  display: none; position: absolute; inset: 0;
  z-index: 3; max-width: var(--container-max); margin: 0 auto; padding: var(--space-4) var(--space-6) var(--space-bottom-nav);
  overflow-y: auto;
}
.tokens-shop-container.visible { display: block; }
.tokens-shop-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.tokens-shop-back-btn {
  width: 40px; height: 40px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--p-white-a4) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--p-white-a10);
  color: var(--p-white-a70); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 1px 0 var(--p-white-a10);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.tokens-shop-back-btn:hover {
  background: var(--p-white-a8); border-color: rgba(168,85,247,0.4); color: var(--p-white);
  box-shadow: 0 0 18px var(--p-purple-a15), 0 8px 24px rgba(0,0,0,0.6);
}
.tokens-shop-title { font-size: 20px; font-weight: 700; color: var(--p-white); text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.tokens-shop-subtitle {
  font-size: 12px; color: var(--p-white-a40); margin-bottom: 16px; line-height: 1.4;
}
/* LIO-336: email для чека 54-ФЗ перед списком пакетов токенов. */
.tokens-shop-email-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.token-package-card {
  background: linear-gradient(135deg, rgba(9,2,26,0.22) 0%, rgba(3,3,7,0.35) 50%, rgba(5,8,22,0.35) 100%);
  border: 1px solid rgba(168,85,247,0.18); border-radius: 24px; padding: 18px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 14px; cursor: pointer; position: relative;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6), inset 0 1.5px 0 var(--p-white-a10);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.token-package-card:hover {
  border-color: var(--p-purple-a50); transform: translateY(-2px);
  box-shadow: 0 0 28px var(--p-purple-a20), 0 16px 36px rgba(0,0,0,0.7), inset 0 1.5px 0 var(--p-white-a20);
}
.token-package-card.best {
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 0 30px rgba(168,85,247,0.25), 0 12px 30px rgba(0,0,0,0.6), inset 0 1.5px 0 var(--p-white-a15), inset 0 0 18px rgba(168,85,247,0.1);
}
.token-package-badge {
  position: absolute; top: -10px; right: 16px;
  background: linear-gradient(135deg, var(--p-purple-300), var(--p-purple-600));
  padding: 4px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 700; color: var(--p-white); letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(168,85,247,0.4);
}
.token-package-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(124,58,237,0.08));
  border: 1px solid rgba(168,85,247,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.token-package-info { flex: 1; min-width: 0; }
.token-package-name { font-size: 15px; font-weight: 700; color: var(--p-white); }
.token-package-count { font-size: 12px; color: var(--p-white-a40); margin-top: 2px; }
.token-package-price { text-align: right; flex-shrink: 0; }
.token-package-price-value { font-size: 20px; font-weight: 800; color: var(--p-purple-200); text-shadow: 0 0 12px rgba(168,85,247,0.3); }
.token-package-price-per { font-size: 10px; color: var(--p-white-a30); }
.token-package-footer {
  margin-top: 14px; padding: 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(168,85,247,0.04) 0%, rgba(124,58,237,0.02) 100%);
  border: 1px solid rgba(168,85,247,0.12);
  font-size: 11px; color: var(--p-white-a40); text-align: center; line-height: 1.5;
}

/* --- TARIFFS SECTION --- */
.tariffs-container {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 100;
  background: var(--p-bg-0);
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
}
.tariffs-container.visible {
  display: block;
}
.tariffs-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.tariffs-back-btn {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: var(--p-white-a3);
  border: 1px solid var(--p-white-a8);
  color: var(--p-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.tariffs-back-btn:hover {
  background: var(--p-white-a6);
  border-color: var(--p-white-a15);
  transform: translateX(-2px);
}
.tariffs-title {
  font-size: 22px; font-weight: 800; color: var(--p-white);
  letter-spacing: -0.01em;
}
.tariffs-carousel-wrapper {
  position: relative;
  width: 100%;
}
.tariffs-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  padding: 12px 4px 24px;
  box-sizing: border-box;
}
.tariffs-carousel::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
.tariff-card {
  flex: 0 0 310px;
  scroll-snap-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%), var(--p-bg-1);
  border: 1px solid var(--p-white-a8);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), inset 0 1px 0 var(--p-white-a5);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s;
}
.tariff-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
}
.tariff-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(168,85,247,0.18) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.tariff-card:hover {
  border-color: rgba(168,85,247,0.3);
}
.tariff-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.tariff-card-title {
  font-size: 24px; font-weight: 800; color: var(--p-white);
  letter-spacing: 0.02em;
}
.tariff-info-icon {
  font-size: 18px; color: var(--p-white-a35); cursor: pointer;
  transition: color 0.3s;
}
.tariff-info-icon:hover {
  color: var(--p-white);
}
.tariff-switch-wrapper {
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.tariff-switch {
  display: flex;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--p-white-a6);
  padding: 3px;
  border-radius: 100px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
.tariff-switch-btn {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}
.tariff-switch-btn.active {
  background: linear-gradient(135deg, var(--p-purple-600) 0%, var(--p-purple-300) 100%);
  color: var(--p-white);
  box-shadow: 0 2px 8px rgba(168,85,247,0.3);
}
.tariff-pill-static {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 11px;
  border-radius: 100px;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.25);
  color: var(--p-purple-200);
  font-size: 11px;
  font-weight: 700;
  box-sizing: border-box;
}
.tariff-desc {
  font-size: 12px; color: var(--p-white-a45);
  line-height: 1.4; margin-bottom: 18px;
  position: relative; z-index: 2;
}
.tariff-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}
.tariff-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--p-gray-200);
  line-height: 1.4;
}
.tariff-feature-plus {
  color: var(--p-purple-200); font-weight: 700; font-size: 13px; line-height: 1.1;
}
.tariff-full-desc-link {
  font-size: 11px; color: var(--p-pink-500); text-decoration: underline;
  cursor: pointer; margin-bottom: 24px; display: inline-block;
  width: fit-content; position: relative; z-index: 2;
  background: none; border: none; padding: 0; font-family: inherit;
}
.tariff-price-block {
  margin-bottom: 16px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.tariff-price-value {
  font-size: 16px; font-weight: 800; color: var(--p-white);
}
.tariff-price-value span {
  color: var(--p-pink-500);
}
.tariff-price-note {
  font-size: 9px; color: var(--p-white-a35); margin-top: 4px;
}
.tariff-buy-btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--p-purple-600) 0%, var(--p-pink-500) 100%);
  border: 1px solid var(--p-white-a15);
  color: var(--p-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(124,58,237,0.25), inset 0 1px 0 var(--p-white-a20);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.tariff-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.5), inset 0 1px 0 var(--p-white-a30);
}
.tariff-buy-btn:active {
  transform: scale(0.98);
}
.tariff-buy-btn.active-plan {
  background: linear-gradient(var(--p-bg-1), var(--p-bg-1)) padding-box, linear-gradient(135deg, var(--p-purple-600) 0%, var(--p-pink-500) 100%) border-box;
  border: 1.5px solid transparent;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
}
.tariff-buy-btn.active-plan:hover,
.tariff-buy-btn.active-plan:active {
  transform: none;
  box-shadow: none;
}
.tariffs-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 20px;
}
.tariffs-dot {
  width: 16px; height: 4px;
  border-radius: 2px;
  background: var(--p-white-a15);
  transition: all 0.3s ease;
}
.tariffs-dot.active {
  background: var(--p-purple-300);
  width: 28px;
  box-shadow: 0 0 8px var(--p-purple-a50);
}

