:root {
  --bg: #0e0a1a;
  --card: rgba(255, 255, 255, .06);
  --card-hover: rgba(255, 255, 255, .1);
  --border: rgba(255, 255, 255, .1);
  --text: #f7f5ff;
  --muted: #b5aecb;
  --tg: #2aabee;
  --tg-2: #229ed9;
  --pink: #ff4d8d;
  --violet: #8b5cf6;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--tg); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Animated background glow ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  animation: float 18s ease-in-out infinite;
}
.bg span:nth-child(1) { width: 420px; height: 420px; background: var(--violet); top: -120px; left: -120px; }
.bg span:nth-child(2) { width: 360px; height: 360px; background: var(--pink); top: 30%; right: -160px; animation-delay: -6s; }
.bg span:nth-child(3) { width: 380px; height: 380px; background: var(--tg); bottom: -140px; left: 10%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 30px) scale(.95); }
}

main {
  max-width: 520px;
  margin: 0 auto;
  padding: 44px 16px 110px;
}

section, .links { margin-top: 40px; }

h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero { text-align: center; }

.avatar-ring {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--violet), var(--tg), var(--pink));
  animation: spin 6s linear infinite;
}
.avatar {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  background: #1d1630;
  animation: spin 6s linear infinite reverse; /* keeps photo still while ring spins */
}
.live-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid var(--bg);
  animation: spin 6s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pill {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
}

h1 {
  font-size: clamp(2.1rem, 8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-top: 8px;
  background: linear-gradient(90deg, #fff, #e9d5ff 60%, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.handle { color: var(--muted); font-weight: 500; font-size: .95rem; }

.greeting {
  margin: 18px auto 24px;
  max-width: 400px;
  font-size: 1.05rem;
  color: #e4def5;
}
.greeting strong { color: #fff; }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
}

/* ---------- Telegram button ---------- */
.btn-telegram {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  padding: 17px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #37bbfe, var(--tg-2));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(42, 171, 238, .45);
  transition: transform .15s ease, box-shadow .15s ease;
  animation: pulse 2.4s infinite;
}
.btn-telegram:hover { text-decoration: none; transform: translateY(-2px) scale(1.01); box-shadow: 0 14px 36px rgba(42, 171, 238, .55); }
.btn-telegram:active { transform: scale(.98); }
.btn-telegram svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }

/* shine sweep */
.btn-telegram::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(42, 171, 238, .45), 0 0 0 0 rgba(42, 171, 238, .55); }
  50%      { box-shadow: 0 10px 30px rgba(42, 171, 238, .45), 0 0 0 12px rgba(42, 171, 238, 0); }
}

.btn-sm { width: auto; padding: 12px 20px; font-size: .95rem; animation: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s;
}
.btn-ghost:hover { background: var(--card-hover); text-decoration: none; }

/* ---------- Link-in-bio list ---------- */
.links { display: flex; flex-direction: column; gap: 12px; }

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.link:hover { text-decoration: none; transform: translateY(-2px); background: var(--card-hover); }
.link:active { transform: scale(.98); }

.ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
}
.ico svg { width: 24px; height: 24px; fill: #fff; }

.txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.txt strong { font-size: 1.02rem; }
.txt small { color: var(--muted); font-size: .85rem; }

.arrow { color: var(--muted); font-size: 1.2rem; transition: transform .15s; }
.link:hover .arrow { transform: translateX(4px); color: #fff; }

.badge {
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--tg-2);
}

.link-telegram {
  background: linear-gradient(135deg, rgba(42, 171, 238, .25), rgba(42, 171, 238, .08));
  border-color: rgba(42, 171, 238, .6);
}
.link-telegram .ico  { background: linear-gradient(135deg, #37bbfe, var(--tg-2)); }
.link-tiktok .ico    { background: #000; box-shadow: -2px -2px 0 #25f4ee inset, 2px 2px 0 #fe2c55 inset; }
.link-instagram .ico { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.link-youtube .ico   { background: #ff0033; }

.link-tiktok:hover    { border-color: #25f4ee; }
.link-instagram:hover { border-color: #d6249f; }
.link-youtube:hover   { border-color: #ff0033; }

/* ---------- Perks ---------- */
.perk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perk {
  padding: 18px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
}
.perk span { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.perk strong { display: block; font-size: .98rem; }
.perk p { color: var(--muted); font-size: .83rem; line-height: 1.45; margin-top: 4px; }

/* ---------- TikTok card ---------- */
.tiktok-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(37, 244, 238, .1), rgba(254, 44, 85, .1));
  border: 1px solid var(--border);
}
.tiktok-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tiktok-head h2 { text-align: left; margin: 0; }
.tiktok-head p { color: var(--muted); font-size: .9rem; }
.tiktok-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #000;
  flex-shrink: 0;
  box-shadow: -2px -2px 0 #25f4ee inset, 2px 2px 0 #fe2c55 inset;
}
.tiktok-logo svg { width: 26px; height: 26px; fill: #fff; }
.tiktok-text { color: #e4def5; margin-bottom: 10px; font-size: .97rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-row > a { flex: 1 1 140px; }

/* ---------- About ---------- */
.about p { color: #e4def5; }
.warn {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(250, 204, 21, .08);
  border: 1px solid rgba(250, 204, 21, .3);
}
.warn p { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq details {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  padding: 24px 16px 110px;
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(14, 10, 26, .95) 60%, transparent);
  transform: translateY(120%);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
.sticky-cta.show { transform: translateY(0); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Accessibility ---------- */
a:focus-visible, summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================
   Multi-page additions: top bar, nav, article pages
   ===================================================== */

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 10, 26, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--tg); }
.topbar-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #37bbfe, var(--tg-2));
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
}
.topbar-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* chip navigation — scrolls sideways inside itself on small screens */
.chipnav {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chipnav::-webkit-scrollbar { display: none; }
.chipnav a {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}
.chipnav a:hover { color: #fff; text-decoration: none; }
.chipnav a[aria-current="page"] { background: #fff; color: #120d22; border-color: #fff; }

/* ---------- Article pages ---------- */
.article { max-width: 680px; padding-top: 24px; }

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); }

.article h1 {
  font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  margin-top: 14px;
  text-align: left;
}
.lead { font-size: 1.08rem; color: #e4def5; margin-top: 12px; }

.content { margin-top: 28px; }
.content h2 { text-align: left; font-size: 1.3rem; margin: 36px 0 12px; }
.content h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.content p, .content li { color: #ddd6ef; }
.content p + p { margin-top: 12px; }
.content ul, .content ol { padding-left: 22px; margin: 10px 0; }
.content li { margin-bottom: 8px; }
.content li::marker { color: var(--tg); font-weight: 700; }
.content strong { color: #fff; }

/* profile card at top of platform pages */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.profile-card .ico { width: 54px; height: 54px; border-radius: 16px; }
.profile-card .txt small { font-size: .9rem; }
.profile-card .btn-ghost { padding: 10px 16px; white-space: nowrap; }

/* Telegram call-to-action box inside articles */
.cta-box {
  margin: 36px 0;
  padding: 24px 20px;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(150deg, rgba(42, 171, 238, .22), rgba(139, 92, 246, .14));
  border: 1px solid rgba(42, 171, 238, .5);
}
.cta-box h2 { margin: 0 0 8px; text-align: center; }
.cta-box p { color: #e4def5; margin-bottom: 18px; }

/* official accounts table */
.acc-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.acc-table th, .acc-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
.acc-table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.acc-table td:first-child { font-weight: 700; color: #fff; }

/* related pages grid */
.related { margin-top: 40px; }
.related h2 { text-align: left; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.related-grid a {
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
}
.related-grid a small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; margin-top: 2px; }
.related-grid a:hover { text-decoration: none; background: var(--card-hover); }

/* home: platform guide cards */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guide-grid a {
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}
.guide-grid a:hover { text-decoration: none; background: var(--card-hover); }
.guide-grid strong { display: block; }
.guide-grid small { color: var(--muted); font-size: .82rem; line-height: 1.4; display: block; margin-top: 4px; }
.guide-grid span { font-size: 1.4rem; }

.home-content { margin-top: 40px; }
.home-content h2 { text-align: left; }
.home-content p { color: #ddd6ef; }
.home-content p + p { margin-top: 12px; }

/* footer links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 12px;
}
.footer-links a { color: var(--muted); font-weight: 600; }

@media (max-width: 380px) {
  .related-grid, .guide-grid { grid-template-columns: 1fr; }
}
