/* beamo — тёмная тема, лаймовый beam-акцент */

:root {
  --bg: #0A0C10;
  --bg-raise: #0E1117;
  --surface: #10141C;
  --surface-2: #151A24;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #EDF1F7;
  --muted: #8B94A7;
  --accent: #B4FF45;
  --accent-soft: rgba(180, 255, 69, 0.12);
  --accent-glow: rgba(180, 255, 69, 0.35);
  --on-accent: #10150A;
  --danger: #FF6161;
  --ok: #6CE8A8;
  --radius: 16px;
  --radius-sm: 12px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }

/* зерно поверх всего фона */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
input, button { font-family: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.micro { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.accent { color: var(--accent); }

.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; fill: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 rgba(180, 255, 69, 0);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 30px var(--accent-glow); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }

.btn-danger-ghost:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-social {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
  flex: 1;
  padding: 11px 10px;
  font-size: 14px;
}
.btn-social:hover:not(:disabled) { border-color: var(--border-strong); background: #1A2030; }
.btn-social .ic { width: 20px; height: 20px; }

.vk-badge {
  background: #07F;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  border-radius: 6px;
  padding: 3px 5px;
  letter-spacing: 0.02em;
}

/* ---------- шапка ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.head-in { display: flex; align-items: center; gap: 28px; height: 64px; }

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo::before {
  content: "";
  width: 8px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), #7ACC1E);
  transform: skewX(-12deg);
  box-shadow: 0 0 14px var(--accent-glow);
}

.nav { display: flex; gap: 24px; margin-left: 8px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color 0.15s ease; }
.nav a:hover { color: var(--text); }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.15s ease;
  max-width: 240px;
}
.user-chip:hover { border-color: var(--accent); }
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #57B41B);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: var(--font-display);
}
.avatar-lg { width: 56px; height: 56px; font-size: 22px; border-radius: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}
/* лучи */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    linear-gradient(115deg, transparent 42%, rgba(180, 255, 69, 0.07) 47%, transparent 53%),
    linear-gradient(65deg, transparent 55%, rgba(180, 255, 69, 0.05) 60%, transparent 66%),
    radial-gradient(ellipse 900px 480px at 18% -10%, rgba(180, 255, 69, 0.13), transparent 60%);
  pointer-events: none;
}
/* сетка */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 85% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; max-width: 780px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(16, 20, 28, 0.6);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 26px 0 22px;
}
.hero h1 .accent { text-shadow: 0 0 42px var(--accent-glow); }

.hero-sub { max-width: 560px; font-size: 17.5px; color: var(--muted); font-weight: 500; }

.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-feats { display: flex; gap: 26px; margin-top: 46px; flex-wrap: wrap; }
.feat { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.feat .ic { color: var(--accent); }

/* ---------- секции ---------- */
.section { padding: 84px 0; }

.section-head { display: flex; align-items: center; gap: 14px; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.01em; }
.section-sub { color: var(--muted); margin-top: 14px; max-width: 560px; font-weight: 500; }

.chip {
  display: inline-block;
  border-radius: 99px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip-accent { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(180, 255, 69, 0.3); }

/* шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step:hover::before { opacity: 1; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 40px;
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; }

/* каталог-тизер */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.acc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.acc-card:hover { transform: translateY(-4px); border-color: rgba(180, 255, 69, 0.25); }
.acc-card-body { padding: 14px; filter: blur(4px) saturate(0.8); opacity: 0.75; }

.thumb { aspect-ratio: 4 / 3; border-radius: 10px; margin-bottom: 14px; }
.line { height: 12px; border-radius: 6px; margin: 10px 2px; }
.w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; }
.w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; }
.price-row { display: flex; justify-content: space-between; margin: 16px 2px 4px; }
.pill { width: 56px; height: 22px; border-radius: 99px; }
.pill-accent { background: var(--accent-soft) !important; width: 74px; }

.shimmer {
  background: linear-gradient(100deg, var(--surface-2) 40%, #1D2432 50%, var(--surface-2) 60%);
  background-size: 220% 100%;
  animation: shimmer 2.1s linear infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }

.acc-card-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.15), rgba(10, 12, 16, 0.5));
}
.acc-card-veil .ic { color: var(--accent); }

/* cta-полоса */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  background:
    radial-gradient(ellipse 500px 220px at 12% 0%, rgba(180, 255, 69, 0.14), transparent 65%),
    var(--surface);
  border: 1px solid rgba(180, 255, 69, 0.22);
  border-radius: 22px;
  padding: 40px 44px;
}
.cta-band h2 { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 10px; }
.cta-band p { color: var(--muted); font-weight: 500; }

/* ---------- футер ---------- */
.site-foot { border-top: 1px solid var(--border); padding: 44px 0; margin-top: 20px; }
.foot-in {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.foot-brand { max-width: 260px; display: grid; gap: 10px; }
.foot-nav { display: grid; gap: 10px; }
.foot-nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.foot-nav a:hover { color: var(--text); }
.foot-legal { display: grid; gap: 6px; text-align: right; }

/* ---------- кабинет ---------- */
.account { padding: 46px 0 90px; }
.back-link { color: var(--muted); font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--text); }

.account-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0 30px;
}
.account-id { min-width: 0; }
.account-id h1 { font-size: clamp(20px, 3vw, 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-head .btn { margin-left: auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-label .ic { color: var(--accent); width: 16px; height: 16px; }
.card-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.balance-card {
  background:
    radial-gradient(ellipse 420px 200px at 8% 0%, rgba(180, 255, 69, 0.1), transparent 65%),
    var(--surface);
  margin-bottom: 16px;
}
.balance {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.01em;
  margin: 14px 0 8px;
}
.balance .balance-extra { font-size: 0.5em; color: var(--muted); font-weight: 700; margin-left: 14px; }

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.row-list { margin-top: 16px; display: grid; gap: 10px; }
.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 58px;
}
.row-item .ic { width: 22px; height: 22px; }
.row-main { min-width: 0; flex: 1; }
.row-title { font-weight: 700; font-size: 14.5px; }
.row-sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item .btn { padding: 7px 13px; font-size: 13px; }

.status-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; font-size: 13px; }
.status-ok .ic { width: 16px; height: 16px; }
.status-soon { color: var(--muted); font-weight: 700; font-size: 13px; }

.btn-icon-danger {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 9px;
  padding: 7px;
  cursor: pointer;
  display: inline-flex;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-icon-danger:hover { color: var(--danger); border-color: var(--danger); }
.btn-icon-danger .ic { width: 17px; height: 17px; }

.empty-note { color: var(--muted); font-size: 13.5px; padding: 10px 2px; }

/* ---------- модалка ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.2s ease;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 410px;
  background: #0F131B;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 34px 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(180, 255, 69, 0.05);
  animation: modal-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 9px;
  display: inline-flex;
  transition: color 0.15s ease;
}
.modal-close:hover { color: var(--text); }
.modal-close .ic { width: 20px; height: 20px; }

.modal-logo { font-size: 17px; margin-bottom: 20px; }
.modal h3 { font-size: 21px; margin-bottom: 8px; }
.modal .muted.small { margin-bottom: 22px; }
.modal .btn-block { margin-top: 2px; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  margin: 20px 0;
}
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border-strong); }

.social-row { display: flex; gap: 10px; }

.tg-slot { margin-top: 14px; min-height: 46px; display: flex; justify-content: center; }
.modal .micro { margin-top: 18px; text-align: center; }

/* ---------- тосты ---------- */
#toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 10px;
  max-width: 360px;
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  word-break: break-word;
}
.toast.show { opacity: 1; transform: none; }
.toast-ok { border-left-color: var(--ok); }
.toast-err { border-left-color: var(--danger); }

/* ---------- dev-панель ---------- */
#dev-panel {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 150;
  width: min(560px, calc(100vw - 28px));
  background: rgba(14, 17, 23, 0.96);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
}
.dev-head { color: var(--muted); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; margin-bottom: 8px; }
.dev-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dev-row input {
  flex: 1;
  min-width: 130px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}
#dev-panel pre {
  max-height: 180px;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- анимации появления ---------- */
.rise { opacity: 0; transform: translateY(22px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .shimmer { animation: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .steps, .cards { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 60px 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 24px; }
  .foot-legal { text-align: left; }
  .social-row { flex-direction: column; }
  .account-head { flex-wrap: wrap; }
  .account-head .btn { margin-left: 0; width: 100%; }
  .user-name { max-width: 90px; }
  #toasts { left: 20px; max-width: none; }
}
