/* =====================================================================
   BITXCHANGE — оформление
   Премиальная "midnight glass" тема: глубокий тёмный фон, мэш-свечение,
   стеклянная карточка с анимированной градиентной рамкой и бликами.
   Палитра violet / blue / cyan — намеренно отличается от исходного
   чёрно-золотого дизайна.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg-0: #05060f;
  --bg-1: #0a0d20;

  --ink: #eef1ff;
  --ink-soft: #aab1d6;
  --ink-faint: #6f76a0;

  --violet: #8b6cff;
  --indigo: #5b6cff;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --mint: #34e0c0;
  --green: #22c55e;

  --card-bg: rgba(20, 24, 48, 0.55);
  --card-brd: rgba(255, 255, 255, 0.10);

  --radius-card: 32px;
  --radius-btn: 16px;
  --shadow-card: 0 40px 120px rgba(0, 0, 0, 0.65);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
/* Тёмный фон под зоной "оттягивания"/overscroll, чтобы не было белого */
html { background: #05060f; }

body {
  min-height: 100vh;
  font-family: "Sora", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(139, 108, 255, 0.18), transparent 60%),
    radial-gradient(1100px 700px at 110% 10%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(59, 130, 246, 0.16), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-0));
  display: flex;
  padding: 28px 16px;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Фон: aurora blobs ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
}
.blob-1 { width: 480px; height: 480px; top: -10%; left: -8%;
  background: radial-gradient(circle, var(--violet), transparent 70%); }
.blob-2 { width: 440px; height: 440px; bottom: -12%; right: -10%;
  background: radial-gradient(circle, var(--cyan), transparent 70%); }
.blob-3 { width: 380px; height: 380px; top: 40%; left: 55%;
  background: radial-gradient(circle, var(--indigo), transparent 70%); }

/* ---------- Сетка ---------- */
.grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 108, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 108, 255, 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

/* ---------- Частицы (canvas) ---------- */
#spark { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ---------- Карточка ---------- */
.card {
  position: relative; z-index: 10;
  margin: auto;
  width: 440px; max-width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 48px 36px 34px;
  text-align: center;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Анимированная градиентная рамка */
.card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
      rgba(139, 108, 255, 0.9), rgba(34, 211, 238, 0.5),
      rgba(255, 255, 255, 0.06), rgba(91, 108, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
/* Мягкий блик сверху */
.card::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  pointer-events: none;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Аватар ---------- */
.avatar-wrap { position: relative; width: 108px; height: 108px; margin: 0 auto 24px; }
.avatar-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--indigo), var(--violet));
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 0 14px rgba(139, 108, 255, 0.45));
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 800; color: #fff;
  overflow: hidden; border: 4px solid rgba(10, 13, 32, 0.9); z-index: 2;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.status {
  position: absolute; right: 7px; bottom: 7px; z-index: 3;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); border: 3px solid rgba(10, 13, 32, 0.95);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  50%      { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
}

/* ---------- Тексты ---------- */
.title {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 30px; font-weight: 700; letter-spacing: 0.5px;
  background: linear-gradient(120deg, #fff 10%, var(--violet) 50%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.subtitle {
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 26px;
}

.desc {
  background: linear-gradient(180deg, rgba(139, 108, 255, 0.10), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px; padding: 16px; margin-bottom: 26px;
}
.desc p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 8px; }
.desc p:last-child { margin-bottom: 0; }
.desc .hl {
  color: #fff; font-weight: 700;
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.desc .bonus {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 16px; font-weight: 800;
  color: var(--mint); text-shadow: 0 0 18px rgba(52, 224, 192, 0.35);
}
.desc .bonus::before { content: "★"; }

/* ---------- Кнопки ---------- */
.buttons { display: flex; flex-direction: column; gap: 12px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-btn);
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.1px;
  color: #fff; text-decoration: none; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative; overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn:hover { transform: translateY(-3px); filter: brightness(1.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55); }
.btn:active { transform: translateY(-1px); }
/* Бегущий блик */
.btn::after {
  content: ""; position: absolute; top: 0; left: -130%;
  width: 70%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s ease;
}
.btn:hover::after { left: 130%; }

.btn.telegram { background: linear-gradient(135deg, #2aabee, #1d8fd1); }
.btn.whatsapp { background: linear-gradient(135deg, #25d366, #11936f); }
.btn.default  { background: linear-gradient(135deg, var(--violet), var(--indigo)); }

/* отключённая (без ссылки) */
.btn.disabled { cursor: not-allowed; opacity: 0.5; filter: grayscale(0.2); }
.btn.disabled:hover { transform: none; filter: grayscale(0.2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
.btn.disabled::after { display: none; }

.btn .ico { width: 24px; height: 24px; flex-shrink: 0; fill: currentColor; }

/* ---------- Бейджи / подвал ---------- */
.badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  margin-top: 24px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--ink-soft);
}
.badge::before { content: "✓"; color: var(--mint); font-weight: 800; }

.foot {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px; font-weight: 600; color: var(--ink-faint);
}

/* ---------- Адаптив ---------- */
@media (max-width: 600px) {
  /* На мобильных — обычный поток, страница скроллится естественно,
     верх карточки не обрезается (как на исходном сайте). */
  body { display: block; padding: 24px 14px 36px; }
  .card { margin: 0 auto; }
}

@media (max-width: 480px) {
  .card { padding: 40px 22px 28px; border-radius: 26px; }
  .title { font-size: 26px; }
  .avatar-wrap { width: 94px; height: 94px; }
  .btn { font-size: 13.5px; padding: 15px 16px; }
}
