*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #06070f;
  --bg2: #080a16;
  --g0: rgba(255,255,255,0.03);
  --g1: rgba(255,255,255,0.055);
  --g2: rgba(255,255,255,0.09);
  --g3: rgba(255,255,255,0.13);
  --gb: rgba(255,255,255,0.09);
  --gb2: rgba(255,255,255,0.14);
  --gshine: rgba(255,255,255,0.07);
  --ghover: rgba(255,255,255,0.075);
  --a: #3dd6f5;
  --a2: #7be8f8;
  --a3: #22c8ee;
  --a-dim: rgba(61,214,245,0.12);
  --a-glow: rgba(61,214,245,0.18);
  --a-glow2: rgba(61,214,245,0.08);
  --a-border: rgba(61,214,245,0.3);
  --text: rgba(255,255,255,0.92);
  --text2: rgba(255,255,255,0.62);
  --dim: rgba(255,255,255,0.22);
  --green: #34d399;
  --green-dim: rgba(52,211,153,0.1);
  --red: #f87171;
  --blue: #60a5fa;
  --r: 20px;
  --r2: 28px;
  --r3: 16px;
  --blur: blur(18px) saturate(160%);
  --blur-sm: blur(10px) saturate(140%);
  --blur-lg: blur(30px) saturate(170%);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text);
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(ellipse 900px 600px at 15% 10%, rgba(61,214,245,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 90%, rgba(61,214,245,0.05) 0%, transparent 60%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, scroll;
}

input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

.orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
.o1 { width: 700px; height: 700px; top: -250px; left: -200px; background: radial-gradient(circle, rgba(61,214,245,.07) 0%, transparent 65%); }
.o2 { width: 500px; height: 500px; bottom: -150px; right: -150px; background: radial-gradient(circle, rgba(61,214,245,.045) 0%, transparent 65%); }
.o3 { display: none; }

.gc {
  background: rgba(22,24,38,0.55);
  border: 1px solid var(--gb);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  contain: paint;
  transition: transform .5s cubic-bezier(0.23, 1, 0.32, 1), border-color .4s ease, background .4s ease, box-shadow .5s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 24px rgba(0,0,0,0.3);
}
.gc::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(61,214,245,0.5) 30%,
    rgba(125,232,248,0.8) 50%,
    rgba(61,214,245,0.5) 70%,
    transparent 100%);
  transform: translateX(0);
  transition: transform 1.1s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}
.gc::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61,214,245,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.gc:hover {
  background: var(--ghover);
  border-color: rgba(61,214,245,0.28);
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 10px 44px rgba(0,0,0,0.4),
    0 0 70px rgba(61,214,245,0.12);
}
.gc:hover::before { transform: translateX(200%); }
.gc:hover::after { opacity: 1; }

/* ── Liquid glass: блюр под прозрачными кнопками сайта ────────────── */
.nav-btn, .nav-anon-sub, .nav-support-link, .nav-user-btn, .btn-s, .btn-p, .pbtn,
.acc-logout-btn, .acc-copy-btn, .ru-banner-btn, .oauth-btn, .bot-cta-btn, .btn-copy {
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6,7,15,0.78);
  border-bottom: 1px solid var(--gb);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.logo {
  font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 800;
  font-size: 1.45rem; letter-spacing: 0.12em; color: var(--text);
}
.logo span { color: var(--a2); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: .84rem; letter-spacing: .02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-btn {
  padding: 9px 22px; border-radius: 100px;
  background: var(--a-dim); border: 1px solid var(--a-border);
  color: var(--a2); font-family: 'Inter', sans-serif; font-size: .83rem; font-weight: 600;
  letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: all .3s;
}
.nav-btn:hover {
  background: rgba(61,214,245,0.18);
  box-shadow: 0 0 28px var(--a-glow), inset 0 1px 0 rgba(255,255,255,0.12);
  border-color: rgba(61,214,245,0.5);
}

.nav-anon-sub {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid rgba(248,113,113,.35); background: rgba(248,113,113,.08);
  color: var(--red); font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 600;
  letter-spacing: .03em; cursor: pointer; transition: all .3s; white-space: nowrap; max-width: 200px;
}
.nav-anon-sub:hover { background: rgba(248,113,113,.15); box-shadow: 0 0 20px rgba(248,113,113,.15); }
.nav-anon-sub.ok { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); color: var(--green); }
.nav-anon-sub-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-support-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--a-border); background: var(--a-dim);
  color: var(--a2); text-decoration: none; font-family: 'Inter', sans-serif; font-size: .82rem; font-weight: 600;
  letter-spacing: .03em; transition: all .3s; white-space: nowrap;
}
.nav-support-link:hover { background: rgba(61,214,245,.18); box-shadow: 0 0 28px var(--a-glow); border-color: rgba(61,214,245,.5); }
.nav-support-link svg { width: 14px; height: 14px; flex-shrink: 0; }

.nav-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-user-btn {
  padding: 8px 18px; border-radius: 100px;
  background: var(--g1); border: 1px solid var(--gb);
  color: var(--text2); font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 500;
  cursor: pointer; transition: all .3s; display: flex; align-items: center; gap: 8px;
  max-width: 180px; min-width: 0;
}
.nav-user-btn:hover { background: var(--ghover); color: var(--text); }
.nav-user-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex-shrink: 0; }
.nav-user-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

@media(max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-user-btn { max-width: 120px; padding: 8px 14px; }
  .nav-anon-sub { max-width: 140px; }
}

.page { position: relative; z-index: 2; display: block; }
section { padding: 110px 48px; max-width: 1180px; margin: 0 auto; scroll-margin-top: 88px; }
#features, #pricing, #guide, #faq { content-visibility: auto; contain-intrinsic-size: 1px 900px; }
@media(max-width: 768px) { section { padding: 80px 20px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding-top: 140px; padding-bottom: 112px; position: relative;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  background: rgba(61,214,245,0.08);
  border: 1px solid rgba(61,214,245,0.2);
  border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; color: var(--a2); text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0; animation: up .7s .1s forwards;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  will-change: opacity;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero-title {
  font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 800;
  font-size: clamp(4rem, 13vw, 11rem); line-height: .92;
  letter-spacing: -.02em; margin-bottom: 36px;
  opacity: 0; animation: up .7s .25s forwards;
}
.hero-title .line2 {
  background: linear-gradient(120deg, var(--a2) 0%, #c4b5fd 40%, var(--a) 70%, rgba(61,214,245,0.6) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text2); max-width: 420px;
  line-height: 1.8; margin-bottom: 30px;
  opacity: 0; animation: up .7s .4s forwards;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: up .7s .55s forwards;
}
@media(max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 300px; }
  .hero-actions .btn-p, .hero-actions .btn-s { text-align: center; padding: 13px 24px; }
}

.btn-p {
  padding: 14px 38px; border-radius: 100px;
  background: linear-gradient(135deg, rgba(61,214,245,.2), rgba(61,214,245,.1));
  border: 1px solid rgba(61,214,245,0.4);
  color: var(--text); text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: .88rem; font-weight: 600;
  letter-spacing: .04em;
  transition: background .45s ease, border-color .35s ease, box-shadow .45s ease, transform .35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 20px rgba(0,0,0,0.3);
}
.btn-p:hover {
  background: linear-gradient(135deg, rgba(61,214,245,.3), rgba(61,214,245,.2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 50px var(--a-glow), 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px);
  border-color: rgba(61,214,245,.65);
}

.btn-s {
  padding: 14px 38px; border-radius: 100px;
  background: var(--g1); border: 1px solid var(--gb);
  color: var(--text2); text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: .88rem; font-weight: 500;
  letter-spacing: .04em; transition: all .3s; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-s:hover { color: var(--text); border-color: rgba(255,255,255,.18); background: var(--ghover); }

.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 9px; opacity: 0; animation: fadeIn 1s 1.2s forwards; }
.scroll-line { width: 1px; height: 42px; background: linear-gradient(to bottom, transparent, rgba(61,214,245,0.6), transparent); animation: sp 2s ease-in-out infinite; will-change: transform, opacity; transform-origin: center; }
.scroll-txt { font-size: .68rem; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; font-family: 'Inter', sans-serif; }
@keyframes sp { 0%,100%{opacity:.35;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.15)} }

@keyframes up { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.rev { opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.rev.vis { opacity:1; transform:none; }
.rev2 { opacity:0; transform:translateY(24px); transition:opacity .7s .15s ease, transform .7s .15s ease; }
.rev2.vis { opacity:1; transform:none; }
.rev3 { opacity:0; transform:translateY(20px); transition:opacity .7s .3s ease, transform .7s .3s ease; }
.rev3.vis { opacity:1; transform:none; }

.sh { margin-bottom: 56px; }
.sl {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .72rem;
  letter-spacing: .18em; color: var(--a); text-transform: uppercase; margin-bottom: 14px;
}
.st { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin-bottom: 14px; }
.ss { color: var(--text2); font-size: .95rem; line-height: 1.7; max-width: 440px; }

.fg { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
@media(max-width: 600px) { .fg { grid-template-columns: repeat(2, 1fr); } }
.fc { padding: 36px 32px; }
@media(max-width: 600px) { .fc { padding: 24px 18px; } }
.fi {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(61,214,245,0.12), rgba(61,214,245,0.06));
  border: 1px solid rgba(61,214,245,0.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.fi svg { width: 22px; height: 22px; stroke: var(--a2); flex-shrink: 0; }
.ft { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 600; font-size: .98rem; margin-bottom: 8px; }
.fd { font-size: .86rem; color: var(--text2); line-height: 1.7; }

.sr { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 56px; }
.sc { padding: 32px; text-align: center; }
.sn {
  font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 800; font-size: 2.6rem;
  background: linear-gradient(135deg, #fff, var(--a2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sl2 { font-size: .8rem; color: var(--text2); margin-top: 6px; font-family: 'Inter', sans-serif; letter-spacing: .04em; }
@media(max-width: 600px) { .sc { padding: 18px 8px; } .sn { font-size: 1.25rem; } .sl2 { font-size: .65rem; } }

.pg { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
@media(max-width: 640px) { .pg { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; } }
.pc { padding: 44px 36px; cursor: default; }
.pc.feat {
  background: linear-gradient(145deg, rgba(61,214,245,.1), rgba(61,214,245,.04));
  border-color: rgba(61,214,245,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 70px rgba(61,214,245,0.07);
}
.pd { font-family: 'Inter', sans-serif; font-weight: 600; font-size: .7rem; letter-spacing: .16em; color: var(--text2); text-transform: uppercase; margin-bottom: 18px; }
.pp { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 800; font-size: 3.4rem; line-height: 1; margin-bottom: 4px; display: flex; align-items: flex-start; gap: 3px; }
.pp-cur { font-size: 1.3rem; margin-top: 10px; color: var(--a2); font-weight: 700; }
.pp-sub { font-size: .78rem; color: var(--dim); margin-bottom: 32px; font-family: 'Inter', sans-serif; }
.pf { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.pf li { font-size: .86rem; color: var(--text2); display: flex; align-items: center; gap: 12px; }
.pf li::before {
  content: '';
  display: inline-block; width: 14px; height: 14px; flex-shrink: 0;
  background-color: var(--a2);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 13L13 3M13 3H6M13 3v7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 13L13 3M13 3H6M13 3v7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

.pbtn {
  width: 100%; padding: 14px;
  background: var(--g1); border: 1px solid var(--gb);
  border-radius: 14px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: .86rem; font-weight: 600;
  letter-spacing: .04em; cursor: pointer; transition: all .3s;
  text-align: center; text-decoration: none; display: block;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.pc.feat .pbtn {
  background: linear-gradient(135deg, rgba(61,214,245,.18), rgba(61,214,245,.08));
  border-color: var(--a-border); color: var(--a2);
}
.pbtn:hover {
  background: rgba(61,214,245,.15); border-color: rgba(61,214,245,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 36px var(--a-glow);
  transform: translateY(-1px);
}
.pbtn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.bot-cta {
  margin-top: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 36px; border-radius: var(--r);
  background: var(--g1); border: 1px solid var(--gb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.bot-cta-left { display: flex; align-items: center; gap: 18px; }
.bot-cta-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: rgba(67,196,247,.08); border: 1px solid rgba(67,196,247,.18);
  display: flex; align-items: center; justify-content: center;
}
.bot-cta-icon svg { width: 22px; height: 22px; }
.bot-cta-text { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 600; font-size: .96rem; margin-bottom: 4px; }
.bot-cta-sub { font-size: .82rem; color: var(--text2); line-height: 1.5; }
.bot-cta-btn {
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
  padding: 12px 26px; border-radius: 100px;
  background: rgba(67,196,247,.08); border: 1px solid rgba(67,196,247,.25);
  color: #60c8f5; text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: .84rem; font-weight: 600;
  letter-spacing: .04em; transition: all .3s; white-space: nowrap;
}
.bot-cta-btn:hover { background: rgba(67,196,247,.16); box-shadow: 0 0 28px rgba(67,196,247,.15); }
.bot-cta-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
@media(max-width: 768px) { .bot-cta { flex-direction: column; align-items: flex-start; padding: 22px 20px; } .bot-cta-btn { width: 100%; justify-content: center; } }

.guide-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.gsteps { display: flex; flex-direction: column; gap: 4px; }
.gstep {
  display: flex; gap: 20px; padding: 24px 28px; border-radius: 18px;
  cursor: pointer; border: 1px solid transparent; transition: all .3s; align-items: flex-start;
}
.gstep:hover, .gstep.act { background: var(--g1); border-color: var(--gb); }
.gstep.act { border-color: rgba(61,214,245,.2); background: rgba(61,214,245,.04); }
.gstep-n { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--dim); line-height: 1.1; min-width: 48px; flex-shrink: 0; transition: color .3s; }
.gstep.act .gstep-n { color: var(--a2); }
.gstep-t { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 600; font-size: .96rem; margin-bottom: 5px; }
.gstep.act .gstep-t { color: var(--a2); }
.gstep-d { font-size: .84rem; color: var(--text2); line-height: 1.65; }
.gvisual { position: sticky; top: 110px; }
.gv-card {
  padding: 40px; border-radius: var(--r2); min-height: 300px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; transition: all .4s;
  background: var(--g1); border: 1px solid var(--gb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 40px rgba(0,0,0,0.3);
}
.gv-icon { font-size: 3.4rem; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; }
.gv-icon svg { width: 52px; height: 52px; stroke: var(--a2); }
.gv-title { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.gv-desc { font-size: .86rem; color: var(--text2); line-height: 1.7; max-width: 260px; }
.app-links { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.app-link {
  padding: 7px 18px; background: var(--g1); border: 1px solid var(--gb);
  border-radius: 100px; font-size: .76rem; color: var(--text2); text-decoration: none;
  font-family: 'Inter', sans-serif; transition: all .3s;
}
.app-link:hover { color: var(--text); border-color: var(--a-border); }

@media(max-width: 900px) { .guide-wrap { grid-template-columns: 1fr; } .gvisual { position: static; } }

@media(max-width: 640px) {
  .guide-wrap { grid-template-columns: 58px 1fr; gap: 12px; align-items: start; }
  .gsteps { gap: 8px; }
  .gstep {
    width: 58px; height: 58px; padding: 0; gap: 0;
    border-radius: 14px; border: 1px solid var(--gb);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
  }
  .gstep-body { display: none; }
  .gstep-n { font-size: 1rem; min-width: unset; }
  .gvisual { position: sticky; top: 80px; }
  .gv-card { padding: 22px 18px; min-height: calc(4 * 58px + 3 * 8px); text-align: left; align-items: flex-start; }
  .gv-icon { justify-content: flex-start; margin-bottom: 14px; }
  .gv-icon svg { width: 36px; height: 36px; }
  .gv-title { font-size: 1.05rem; }
  .gv-desc { max-width: none; font-size: .82rem; }
}

.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-q {
  width: 100%; padding: 22px 28px;
  background: var(--g1); border: 1px solid var(--gb); border-radius: 16px;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: .92rem; font-weight: 500;
  text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: all .25s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.faq-item.op .faq-q { border-radius: 16px 16px 0 0; border-color: rgba(61,214,245,.2); background: rgba(61,214,245,.05); color: var(--a2); }
.faq-q:hover { background: var(--ghover); }
.faq-arr { color: var(--a); font-size: 1.1rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.op .faq-arr { transform: rotate(45deg); }
.faq-a {
  padding: 0 28px; background: rgba(61,214,245,.02); border: 1px solid transparent;
  border-top: none; border-radius: 0 0 16px 16px; font-size: .86rem; color: var(--text2);
  line-height: 1.65; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s, border-color .3s;
}
.faq-item.op .faq-a { max-height: 300px; padding: 20px 28px 24px; border-color: rgba(61,214,245,.12); }
.faq-a a { color: var(--a2); text-decoration: none; border-bottom: 1px solid rgba(123,232,248,.3); }
.faq-a a:hover { border-bottom-color: var(--a2); }

footer {
  position: relative; z-index: 2; padding: 52px 48px;
  border-top: 1px solid var(--gb);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.fl { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: .12em; color: var(--text2); }
.fl span { color: var(--a2); }
.flinks { display: flex; gap: 24px; list-style: none; }
.flinks a { color: var(--dim); text-decoration: none; font-size: .84rem; font-family: 'Inter', sans-serif; transition: color .2s; }
.flinks a:hover { color: var(--text2); }
.fcopy { font-size: .8rem; color: var(--dim); font-family: 'Inter', sans-serif; }
.flegal { width: 100%; font-size: .68rem; color: var(--dim); font-family: 'Inter', sans-serif; opacity: .7; margin-top: 4px; }
@media(max-width: 768px) { footer { padding: 40px 20px; } .flinks { display: none; } }

.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,7,15,.82);
  backdrop-filter: blur(28px) saturate(150%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  background: rgba(10,11,22,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r2);
  padding: 48px 40px;
  width: 100%; max-width: 480px;
  position: relative;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 40px 100px rgba(0,0,0,.8),
    0 0 80px rgba(61,214,245,.06);
  max-height: 90vh; overflow-y: auto;
}
.modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61,214,245,.5), rgba(125,232,248,.4), rgba(61,214,245,.3), transparent);
  border-radius: var(--r2) var(--r2) 0 0;
}
.modal-close {
  position: absolute; top: 22px; right: 22px;
  background: var(--g1); border: 1px solid var(--gb);
  color: var(--text2); font-size: 1.2rem; cursor: pointer; line-height: 1;
  transition: all .2s; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.modal-close:hover { color: var(--text); background: var(--ghover); }

/* Появление попапов: подложка проявляется с нарастающим блюром, само окно
   всплывает снизу с лёгким перелётом (spring-подобная кривая). */
.modal-enter-active { animation: modal-in .42s cubic-bezier(.16,1,.3,1) both; will-change: transform, opacity; }
.modal-leave-active { animation: modal-out .2s cubic-bezier(.4,0,1,1) both; will-change: transform, opacity; }
@keyframes modal-in {
  0%   { opacity:0; transform:translate3d(0,28px,0) scale(.93); }
  55%  { opacity:1; transform:translate3d(0,-4px,0) scale(1.009); }
  100% { opacity:1; transform:translate3d(0,0,0) scale(1); }
}
@keyframes modal-out {
  from { opacity:1; transform:translate3d(0,0,0) scale(1); }
  to   { opacity:0; transform:translate3d(0,14px,0) scale(.965); }
}
.overlay-enter-active { animation: overlay-in .34s cubic-bezier(.16,1,.3,1) both; }
.overlay-leave-active { animation: overlay-out .22s ease both; }
@keyframes overlay-in {
  from { opacity:0; backdrop-filter: blur(0) saturate(100%); -webkit-backdrop-filter: blur(0) saturate(100%); }
  to   { opacity:1; backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%); }
}
@keyframes overlay-out { from{opacity:1} to{opacity:0} }

@keyframes pop-fade { from{opacity:0} to{opacity:1} }
@media (prefers-reduced-motion: reduce) {
  .modal-enter-active, .overlay-enter-active { animation: pop-fade .15s ease both; }
  .modal-leave-active, .overlay-leave-active { animation: pop-fade .12s ease reverse both; }
}

.ru-slide-enter-active { animation: ru-down .25s cubic-bezier(.25,.46,.45,.94) both; }
.ru-slide-leave-active { animation: ru-down .2s cubic-bezier(.55,0,1,.45) reverse both; }
@keyframes ru-down {
  from { opacity:0; transform:translateY(-8px); max-height:0; }
  to   { opacity:1; transform:translateY(0); max-height:300px; }
}

.acc-sub-link {
  display:flex; align-items:center; gap:10px;
  background:var(--g1); border:1px solid var(--gb); border-radius:12px;
  padding:10px 14px; cursor:pointer; transition:border-color .2s, background .2s;
  text-decoration:none;
}
.acc-sub-link:hover { border-color:var(--a-border); background:var(--ghover); }
.acc-sub-link:hover .acc-sub-copy { color:var(--a2); }
.acc-sub-url { font-size:.72rem; color:var(--a2); flex:1; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acc-sub-copy { font-size:.72rem; color:var(--dim); flex-shrink:0;
  font-weight:600; transition:color .2s; white-space:nowrap; }
/* ── Шапка кабинета + бейдж статуса ─────────────────────────────── */
.acc-header { display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px; margin-bottom:14px; padding-right:28px; }
.acc-header-title { min-width:0; }
.acc-badge { flex-shrink:0; margin-top:1px; font-size:.72rem; font-weight:600;
  padding:4px 11px; border-radius:100px; white-space:nowrap;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.acc-badge-active { color:var(--green); background:rgba(52,211,153,.1); border:1px solid rgba(52,211,153,.2); }
.acc-badge-active:hover { box-shadow:0 4px 14px rgba(52,211,153,.22); border-color:rgba(52,211,153,.4); transform:translateY(-1px); }
.acc-badge-exp { color:#f87171; background:rgba(248,113,113,.08); border:1px solid rgba(248,113,113,.2); }
.acc-badge-none { color:var(--text2); background:var(--g1); border:1px solid var(--gb); }

/* ── Привязка Telegram / выход ──────────────────────────────────── */
.acc-tg-linked { display:flex; align-items:center; gap:6px;
  font-size:.8rem; color:var(--green); font-weight:600; }
.acc-logout-row { margin-top:12px; padding-top:14px; border-top:1px solid var(--gb); }
.acc-logout-btn { width:100%; padding:9px 14px; background:none;
  border:1px solid rgba(248,113,113,.2); border-radius:10px; color:var(--red);
  font-size:.78rem; font-weight:600; cursor:pointer;
  transition:background .2s ease, border-color .2s ease, transform .15s ease; }
.acc-logout-btn:hover { background:rgba(248,113,113,.08); border-color:rgba(248,113,113,.45); }
.acc-logout-btn:active { transform:scale(.985); }

.acc-sub-summary { display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:13px 18px; margin-bottom:8px;
  background:linear-gradient(135deg,rgba(61,214,245,.10),rgba(123,232,248,.03));
  border:1px solid var(--a-border); border-radius:14px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.acc-sub-summary:hover { transform:translateY(-1px);
  box-shadow:0 8px 24px rgba(61,214,245,.12); border-color:var(--a2); }
.acc-sub-summary-exp:hover { box-shadow:0 8px 24px rgba(248,113,113,.12); border-color:rgba(248,113,113,.4); }
.acc-copy-btn:hover { border-color:var(--a-border) !important; background:var(--ghover) !important; transform:translateY(-1px); }
.acc-sub-summary-exp { background:rgba(248,113,113,.06); border-color:rgba(248,113,113,.22); }
.acc-days { display:flex; align-items:baseline; gap:8px; min-width:0; }
.acc-days-num { font-family:'Syne','Unbounded',sans-serif; font-size:2rem; font-weight:800; line-height:1; color:var(--a2); }
.acc-sub-summary-exp .acc-days-num { color:#f87171; }
.acc-days-lbl { font-size:.72rem; color:var(--text2); font-weight:600; line-height:1.2; max-width:70px; }
.acc-sub-exp { display:flex; flex-direction:column; align-items:flex-end; gap:2px; text-align:right; flex-shrink:0; }
.acc-sub-exp-lbl { font-size:.61rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text2); }
.acc-sub-exp-date { font-size:.88rem; font-weight:700; color:var(--text); white-space:nowrap; }
.acc-sub-summary-exp .acc-sub-exp-date { color:#f87171; }
.acc-stat { display:flex; flex-direction:column; align-items:center; padding:10px 8px;
  background:var(--g1); border:1px solid var(--gb); border-radius:12px; gap:3px; }
.acc-stat-val { font-size:1rem; font-weight:700; color:var(--text); }
.acc-stat-lbl { font-size:.65rem; color:var(--text2); text-transform:uppercase;
  letter-spacing:.07em; text-align:center; }
.ru-prog-track { height:6px; border-radius:100px; background:rgba(255,255,255,.07);
  overflow:hidden; margin:6px 0 10px; }
.ru-prog-fill { height:100%; border-radius:100px; transition:width .4s ease; }
.modal-title { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 800; font-size: 1.55rem; margin-bottom: 8px; }
.modal-sub { font-size: .86rem; color: var(--text2); margin-bottom: 32px; line-height: 1.55; }

@media(max-width: 520px) { .modal { padding: 36px 24px; } }

.steps-ind { display: flex; gap: 6px; margin-top: 14px; margin-bottom: 36px; }
.step-dot { flex: 1; height: 3px; border-radius: 100px; background: var(--gb); transition: background .3s; }
.step-dot.done { background: var(--a); }
.step-dot.active { background: rgba(61,214,245,.5); }

.chain-grid { display: grid; grid-template-columns: repeat(2,1fr) !important; gap: 12px; margin-bottom: 22px; }
@media(max-width:380px) { .chain-grid { grid-template-columns: 1fr !important; } }
.chain-btn {
  position: relative; overflow: visible;
  padding: 18px 14px 15px; border-radius: 16px;
  background: var(--g1); border: 1px solid var(--gb);
  color: var(--text2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
  font-family: 'Inter', sans-serif;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.chain-btn .chain-icon { display: flex; align-items: center; justify-content: center; }
.chain-btn .chain-icon svg { width: 26px; height: 26px; stroke: currentColor; transition: stroke .2s; }
.chain-name { font-size: .92rem; font-weight: 700; letter-spacing: .01em; color: var(--text); transition: color .2s; }
.chain-sub { font-size: .67rem; font-weight: 500; color: var(--dim); line-height: 1.3; letter-spacing: .01em; }
.chain-btn:hover { border-color: var(--a-border); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 6px 18px rgba(0,0,0,.28); }
.chain-btn:hover .chain-icon svg { stroke: var(--a2); }
.chain-btn.sel {
  background: var(--a-dim); border-color: var(--a2); color: var(--a2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1px var(--a2), 0 0 26px var(--a-glow);
}
.chain-btn.sel .chain-icon svg { stroke: var(--a2); }
.chain-btn.sel .chain-name { color: var(--a2); }
.chain-check {
  position: absolute; top: 9px; right: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--a2); color: #04141a;
  font-size: .68rem; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px var(--a-glow);
}
.chain-tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(90deg, var(--a), var(--a2)); color: #04141a;
  font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 2px 8px var(--a-glow);
}

.addr-box {
  background: var(--g1); border: 1px solid var(--gb); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 16px; cursor: pointer; transition: border-color .2s;
}
.addr-box:hover { border-color: var(--a-border); }
.addr-label { font-family: 'Inter', sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .14em; color: var(--text2); text-transform: uppercase; margin-bottom: 10px; }
.addr-value { font-size: .82rem; color: var(--a2); word-break: break-all; line-height: 1.6; }
.addr-copy { font-size: .7rem; color: var(--dim); margin-top: 6px; font-family: 'Inter', sans-serif; }
.amount-big { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--a2); text-align: center; margin: 18px 0 6px; }
.amount-note { font-size: .78rem; color: var(--text2); text-align: center; margin-bottom: 22px; }

.timer { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text2); font-size: .82rem; font-family: 'Inter', sans-serif; margin-top: 22px; }
.timer-val { color: var(--text); font-weight: 600; }
.polling-dots { display: flex; gap: 4px; }
.polling-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--a); animation: pd 1.2s ease-in-out infinite; }
.polling-dots span:nth-child(2) { animation-delay: .2s; }
.polling-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes pd { 0%,80%,100%{opacity:.2;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }

.success-box { text-align: center; }
.success-icon { font-size: 3.5rem; margin-bottom: 22px; display: block; animation: pop .5s cubic-bezier(.17,.67,.35,1.3); }
@keyframes pop { from{transform:scale(0)} to{transform:scale(1)} }
.success-title { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 800; font-size: 1.5rem; margin-bottom: 10px; }
.success-sub { color: var(--text2); font-size: .88rem; line-height: 1.7; margin-bottom: 28px; }
.sub-url-box {
  background: var(--g1); border: 1px solid rgba(61,214,245,.2); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 20px; cursor: pointer;
}
.sub-url { font-size: .78rem; color: var(--a2); word-break: break-all; line-height: 1.5; }
.btn-copy {
  width: 100%; padding: 14px;
  background: var(--a-dim); border: 1px solid var(--a-border); border-radius: 14px;
  color: var(--a2); font-family: 'Inter', sans-serif; font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: all .3s; letter-spacing: .04em;
}
.btn-copy:hover { background: rgba(61,214,245,.2); box-shadow: 0 0 30px var(--a-glow); }

.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 18px; margin-bottom: 10px;
  background: var(--g1); border: 1px solid var(--gb); border-radius: 14px;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: .9rem;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all .22s; letter-spacing: .01em;
}
.oauth-btn:hover { background: var(--g2); border-color: var(--gb2); transform: translateY(-1px); }
.oauth-btn svg { flex-shrink: 0; }
.oauth-btn-big {
  padding: 16px 22px; font-size: 1rem; font-weight: 700; border-radius: 16px; margin-bottom: 12px;
}
.oauth-btn-google { background: rgba(66,133,244,.13); border-color: rgba(66,133,244,.4); color: #cdd9ff; }
.oauth-btn-google:hover { background: rgba(66,133,244,.22); border-color: rgba(66,133,244,.6); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(66,133,244,.2); }
.oauth-btn-yandex { background: rgba(252,63,29,.1); border-color: rgba(252,63,29,.38); color: #ffd2c8; }
.oauth-btn-yandex:hover { background: rgba(252,63,29,.18); border-color: rgba(252,63,29,.55); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(252,63,29,.18); }

/* auth modal */
.auth-modal { position: relative; overflow: hidden; }
.auth-modal::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 260px; height: 160px; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--a-glow), transparent 70%);
  opacity: .5;
}
.auth-hero { text-align: center; margin-bottom: 26px; position: relative; }
.auth-hero-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px; color: var(--a2);
  background: var(--a-dim); border: 1px solid var(--a-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 30px var(--a-glow2);
}
.auth-hero .modal-sub { font-size: .84rem; }

.oauth-btn .oauth-ico {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 9px; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.oauth-btn .oauth-ico svg { display: block; }

.oauth-sep {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 12px; color: var(--dim); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.oauth-sep::before, .oauth-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--gb);
}
.oauth-password-toggle {
  width: 100%; background: var(--g1); border: 1px solid var(--gb); border-radius: 12px;
  color: var(--text2); font-size: .82rem; cursor: pointer; padding: 12px 16px;
  font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 8px;
  transition: color .2s, border-color .2s, background .2s;
}
.oauth-password-toggle:hover { color: var(--text); border-color: var(--gb2); background: var(--g2); }
.oauth-password-toggle .oauth-pw-key { font-size: .95rem; line-height: 1; }
.oauth-password-toggle .oauth-pw-chev {
  margin-left: auto; font-size: 1.1rem; line-height: 1; opacity: .7;
  transition: transform .25s ease;
}
.oauth-password-toggle.open .oauth-pw-chev { transform: rotate(180deg); }

.oauth-password-form { padding-top: 14px; }
.pwslide-enter-active, .pwslide-leave-active { transition: opacity .25s ease, max-height .3s ease, transform .25s ease; overflow: hidden; }
.pwslide-enter-from, .pwslide-leave-to { opacity: 0; max-height: 0; transform: translateY(-6px); }
.pwslide-enter-to, .pwslide-leave-from { opacity: 1; max-height: 260px; }

.inp {
  width: 100%; padding: 13px 16px; margin-bottom: 14px;
  background: var(--g1); border: 1px solid var(--gb); border-radius: 12px;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: .88rem;
  outline: none; transition: border-color .2s; display: block;
}
.inp::placeholder { color: var(--dim); }
.inp:focus { border-color: var(--a-border); box-shadow: 0 0 0 3px rgba(61,214,245,.08); }

.msg { padding: 12px 16px; border-radius: 10px; font-size: .84rem; margin-bottom: 16px; line-height: 1.5; }
.msg-err { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.25); color: var(--red); }
.msg-ok { background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25); color: var(--green); }

.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gb); font-size: .86rem; }
.acc-row:last-child { border-bottom: none; }
.acc-label { color: var(--text2); font-family: 'Inter', sans-serif; }
.acc-val { color: var(--text); font-weight: 500; font-family: 'Inter', sans-serif; text-align: right; }

/* Оформление 1-в-1 со страницами /privacy-policy и /terms-of-service:
   заголовки разделов — cyan (--a2), номера пунктов — светло-серый rgba(255,255,255,.75),
   основной текст — приглушённый rgba(255,255,255,.45) (на страницах это var(--muted)). */
.legal-content { font-size: .84rem; color: rgba(255,255,255,.45); line-height: 1.85; }
.legal-content h3 { font-family: 'Syne', 'Unbounded', sans-serif; font-weight: 700; font-size: .92rem; color: var(--a2); letter-spacing: .02em; margin: 28px 0 12px; }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 10px; }
.legal-content b { color: rgba(255,255,255,.75); font-weight: 600; }
.legal-content ul { margin: 0 0 10px 0; padding-left: 18px; }
.legal-content ul li { margin-bottom: 5px; }
.legal-content a { color: var(--a2); text-decoration: none; border-bottom: 1px solid rgba(123,232,248,.3); }
.legal-content a:hover { border-bottom-color: var(--a2); }
.legal-content .legal-date { font-family: 'Syne', 'Unbounded', sans-serif; font-size: .74rem; color: rgba(255,255,255,.18); letter-spacing: .06em; margin-bottom: 32px; }

.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.page-loader-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(61,214,245,.12);
  border-top-color: var(--a);
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader-enter-active { transition: opacity .3s ease; }
.page-loader-leave-active { transition: opacity .45s ease; }
.page-loader-enter-from, .page-loader-leave-to { opacity: 0; }

.modal-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 44px 0;
}
.modal-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(61,214,245,.12);
  border-top-color: var(--a);
  animation: spin .85s linear infinite;
}

/* ── Реферальная программа ──────────────────────────────────────────── */
.nav-ref-link {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, rgba(52,211,153,.16), rgba(61,214,245,.12));
  border: 1px solid transparent;
  padding: 4px 10px !important; border-radius: 100px;
  color: #34d399 !important; font-weight: 700 !important;
  transition: transform .2s, box-shadow .2s;
}
.nav-ref-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(52,211,153,.18);
}

.hero-ref-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px;
  padding: 9px 18px 9px 14px; border-radius: 100px;
  background: linear-gradient(135deg, rgba(52,211,153,.14), rgba(61,214,245,.12));
  border: 1px solid rgba(52,211,153,.35);
  color: #fff; text-decoration: none; font-size: .88rem;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s;
  position: relative; overflow: hidden;
  animation: ref-pulse 2.6s ease-in-out infinite;
}
.hero-ref-pill::before {
  content: ''; position: absolute; inset: -1px; border-radius: 100px;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: ref-shine 3.4s linear infinite;
  pointer-events: none;
}
.hero-ref-pill:hover { transform: translateY(-2px); border-color: rgba(52,211,153,.6); box-shadow: 0 12px 30px rgba(52,211,153,.22); }
.hero-ref-pill b { color: #6ee7b7; font-weight: 800; }
.hero-ref-pill-emoji { display:inline-flex; align-items:center; }
.hero-ref-pill-arr { color: #34d399; font-weight: 800; transition: transform .2s; }
.hero-ref-pill:hover .hero-ref-pill-arr { transform: translateX(3px); }

@keyframes ref-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.35); }
  50% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
}
@keyframes ref-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ref-promo {
  position: relative; padding: 80px 28px; margin: 30px auto;
  max-width: 1200px; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(52,211,153,.18), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(61,214,245,.16), transparent 55%),
    linear-gradient(160deg, rgba(14,18,30,.85), rgba(8,10,22,.9));
  border: 1px solid rgba(52,211,153,.22);
}
.ref-promo-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(52,211,153,.25) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.ref-promo-inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.ref-promo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #34d399; margin-bottom: 16px;
}
.ref-promo-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.7);
  animation: ref-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes ref-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.7); }
  50%      { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
}
.ref-promo-title {
  display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 6px; font-family: 'Inter', sans-serif; font-weight: 900;
}
.ref-promo-num {
  font-size: clamp(4.5rem, 14vw, 8.5rem); line-height: 1;
  background: linear-gradient(135deg, #34d399, #7be8f8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(52,211,153,.35));
  letter-spacing: -0.04em;
}
.ref-promo-num-lbl {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 800; color: #fff; letter-spacing: -0.01em;
}
.ref-promo-sub {
  font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 600; color: rgba(255,255,255,.82);
  margin: 0 0 18px;
}
.ref-promo-desc {
  font-size: 1rem; line-height: 1.7; color: var(--text2);
  max-width: 640px; margin: 0 auto 36px;
}
.ref-promo-desc b { color: #fff; }
.ref-promo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 38px;
}
.ref-promo-step {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px; padding: 22px 18px; text-align: left;
  transition: border-color .2s, transform .2s;
}
.ref-promo-step:hover { border-color: rgba(52,211,153,.3); transform: translateY(-3px); }
.ref-promo-step-n {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(52,211,153,.18), rgba(61,214,245,.16));
  border: 1px solid rgba(52,211,153,.32);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #34d399; margin-bottom: 12px; font-size: .92rem;
}
.ref-promo-step-t { font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: #fff; }
.ref-promo-step-d { font-size: .83rem; color: var(--text2); line-height: 1.55; }
.ref-promo-cta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
  margin-bottom: 30px;
}
.ref-promo-btn-main {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  background: rgba(52,211,153,.12);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(52,211,153,.4);
  color: #34d399; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1;
  padding: 17px 26px 17px 32px; border-radius: 100px;
  box-shadow: 0 10px 30px rgba(52,211,153,.15), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.ref-promo-btn-main svg { display: block; transition: transform .25s cubic-bezier(.2,.8,.2,1); flex-shrink: 0; }
.ref-promo-btn-main::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.3) 48%, transparent 66%);
  transform: translateX(-120%); transition: none;
}
.ref-promo-btn-main:hover { transform: translateY(-2px) scale(1.015); background: rgba(52,211,153,.2); border-color: rgba(52,211,153,.6); box-shadow: 0 14px 36px rgba(52,211,153,.25), inset 0 1px 0 rgba(255,255,255,.16); }
.ref-promo-btn-main:hover svg { transform: translateX(3px); }
.ref-promo-btn-main:hover::after { transform: translateX(120%); transition: transform .7s ease; }
.ref-promo-btn-main:active { transform: translateY(0) scale(.98); }
.ref-promo-btn-sec {
  text-decoration: none; color: var(--text2); font-weight: 600; font-size: .92rem;
  padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--gb); transition: color .2s, border-color .2s;
}
.ref-promo-btn-sec:hover { color: #fff; border-color: var(--a-border); }
.ref-promo-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  padding-top: 26px; border-top: 1px dashed rgba(255,255,255,.08);
}
.ref-promo-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ref-promo-stat b {
  font-size: 1.7rem; font-weight: 900;
  background: linear-gradient(135deg, #34d399, #7be8f8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ref-promo-stat span { font-size: .76rem; color: var(--text2); letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 720px) {
  .ref-promo { padding: 44px 16px; border-radius: 22px; margin: 20px 14px; box-sizing: border-box; }
  .ref-promo-grid { grid-template-columns: 1fr; gap: 10px; }
  .ref-promo-step { padding: 16px 16px; }
  .ref-promo-cta { flex-direction: column; align-items: stretch; gap: 10px; max-width: 320px; margin-left: auto; margin-right: auto; }
  .ref-promo-btn-main, .ref-promo-btn-sec { text-align: center; }
  .ref-promo-stats { gap: 16px; }
  .ref-promo-desc { font-size: .92rem; }
}

/* ── Реферальная карточка в кабинете ─────────────────────────────────── */
.ref-card {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 14px 14px 13px;
  background:
    linear-gradient(135deg, rgba(52,211,153,.12), rgba(61,214,245,.07));
  border: 1px solid rgba(52,211,153,.28);
}
.ref-card-glow {
  position: absolute; top: -40px; right: -40px; width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(52,211,153,.4), transparent 60%);
  filter: blur(20px); pointer-events: none; opacity: .6;
}
.ref-badge {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #34d399, #2bb583);
  color: #06070f; font-weight: 900; font-size: .72rem;
  padding: 3px 9px; border-radius: 100px; letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(52,211,153,.3);
}
.ref-link-inp {
  background: rgba(0,0,0,.35) !important;
  border-color: rgba(255,255,255,.09) !important;
  color: #fff; font-family: 'JetBrains Mono', monospace !important;
}
.ref-copy-btn {
  flex-shrink: 0; padding: 0 14px;
  background: rgba(52,211,153,.12);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(52,211,153,.35); border-radius: 12px; color: #34d399;
  font-size: .76rem; font-weight: 800; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.ref-copy-btn:hover { transform: translateY(-1px); background: rgba(52,211,153,.2); border-color: rgba(52,211,153,.55); box-shadow: 0 6px 18px rgba(52,211,153,.25); }
.ref-copy-btn-ok { background: rgba(52,211,153,.22); border-color: rgba(52,211,153,.5); color: #34d399; box-shadow: none; }
.ref-copy-btn-tg { background: rgba(42,171,238,.12); border-color: rgba(42,171,238,.4); color: #43c4f7; }
.ref-copy-btn-tg:hover { background: rgba(42,171,238,.2); border-color: rgba(42,171,238,.6); box-shadow: 0 6px 18px rgba(42,171,238,.3); }
.ref-copy-btn-tg.ref-copy-btn-ok { background: rgba(42,171,238,.22); border-color: rgba(42,171,238,.5); color: #43c4f7; }
.ref-share-btn {
  padding: 9px 12px !important; font-size: .8rem !important;
  background: rgba(0,0,0,.3) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(52,211,153,.3) !important;
  color: #34d399 !important; font-weight: 700 !important;
}
.ref-stats {
  display: flex; align-items: center; justify-content: space-around; gap: 6px;
  background: rgba(0,0,0,.25); border: 1px solid var(--gb);
  border-radius: 12px; padding: 9px 10px;
  font-size: .74rem; color: var(--text2);
}
.ref-stats b { color: #fff; font-weight: 800; font-size: .92rem; margin-right: 3px; }

.acc-stat-ref { background: rgba(52,211,153,.06) !important; border-color: rgba(52,211,153,.2) !important; }
.acc-stat-ref .acc-stat-val { color: #34d399 !important; }

.tg-link-btn {
  background: rgba(42,171,238,.12) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(42,171,238,.4) !important;
  color: #43c4f7 !important;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.tg-link-btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(42,171,238,.2) !important; border-color: rgba(42,171,238,.6) !important; box-shadow: 0 8px 22px rgba(42,171,238,.25); }

@-moz-document url-prefix() {
  nav, .overlay, .modal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  nav { background: rgba(6,7,15,0.94); }
  .overlay { background: rgba(6,7,15,0.92); }
  .modal { background: rgba(14,16,28,0.98); }
  .polling-dots span { animation-duration: 1.8s; }
  .page-loader-ring, .modal-spinner { animation-duration: 1.5s; }
}

/* ── Баннер «RU-трафик кончается» (анонимы, кука anon_sub) ─────────────────── */
.ru-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 76px 16px 0; padding: 10px 14px;
  background: rgba(245,158,61,0.10); border: 1px solid rgba(245,158,61,0.35);
  border-radius: 12px; font-size: .82rem; color: var(--text);
  position: relative; z-index: 5;
}
.banner-enter-active { animation: banner-in .45s cubic-bezier(.16,1,.3,1) both; }
.banner-leave-active { animation: banner-out .25s cubic-bezier(.4,0,1,1) both; }
@keyframes banner-in  { from { opacity:0; transform:translate3d(0,-14px,0) scale(.985); } to { opacity:1; transform:none; } }
@keyframes banner-out { from { opacity:1; transform:none; } to { opacity:0; transform:translate3d(0,-10px,0); } }
@media (prefers-reduced-motion: reduce) {
  .banner-enter-active { animation: pop-fade .15s ease both; }
  .banner-leave-active { animation: pop-fade .12s ease reverse both; }
}
.ru-banner-txt { flex: 1 1 260px; line-height: 1.45; }
.ru-banner-btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(245,158,61,0.5);
  background: rgba(245,158,61,0.16); color: var(--text); font-size: .78rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.ru-banner-btn:hover { background: rgba(245,158,61,0.28); }
.ru-banner-btn-login { border-color: var(--a-border); background: var(--a-dim); }
.ru-banner-btn-login:hover { background: var(--a-glow); }
.ru-banner-x {
  background: none; border: none; color: var(--text2); font-size: 1.1rem;
  cursor: pointer; padding: 2px 6px; line-height: 1;
}
.ru-banner-x:hover { color: var(--text); }
