@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0a0a0a;
  --card: #111111;
  --card2: #161616;
  --border: rgba(255,255,255,.07);
  --border-hover: rgba(255,255,255,.18);
  --text: #ffffff;
  --muted: rgba(255,255,255,.45);
  --accent: #00e5ff;
  --accent2: #bf00ff;
  --accent3: #ff2d78;
  --glow: rgba(0,229,255,.35);
  --green: #00ff88;
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

/* ── NOISE GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── BACKGROUND LAYER ── */
.background-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}
.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,229,255,.07), transparent),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(191,0,255,.06), transparent),
    linear-gradient(180deg, rgba(10,10,10,.4) 0%, rgba(10,10,10,.95) 100%);
}

/* ── OPENING ── */
.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  transition: opacity .7s ease, visibility .7s ease;
}
.opening.exit { opacity: 0; visibility: hidden; pointer-events: none; }

.opening-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}
.opening-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 20%, rgba(0,0,0,.5) 70%, rgba(0,0,0,.88) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.6));
}

.opening-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(94vw, 560px);
  padding: 32px 24px;
  animation: rise .9s cubic-bezier(.22,.88,.36,1) both;
}

.opening-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(0,229,255,.3);
  border-radius: 999px;
  background: rgba(0,229,255,.06);
  backdrop-filter: blur(12px);
  letter-spacing: .3em;
  font-size: 9px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent);
  margin-bottom: 20px;
}
.opening-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.4s ease infinite;
}

.opening h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 22vw, 140px);
  line-height: .9;
  letter-spacing: .04em;
  color: #fff;
  text-shadow:
    0 0 60px rgba(0,229,255,.5),
    0 0 120px rgba(0,229,255,.2);
  margin-bottom: 12px;
}

.opening p {
  letter-spacing: .45em;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 36px;
}

.opening-actions { display: flex; justify-content: center; }

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
  border: 1px solid rgba(0,229,255,.3);
  color: #000;
  background: var(--accent);
  box-shadow: 0 0 32px rgba(0,229,255,.5), 0 8px 32px rgba(0,0,0,.6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-btn i { font-size: 16px; }
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,229,255,.7), 0 12px 40px rgba(0,0,0,.6);
}
.primary-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.opening-hint {
  margin-top: 16px;
  font-size: 9px;
  color: rgba(255,255,255,.3);
  letter-spacing: .12em;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ── MAIN PAGE ── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 40px 16px 60px;
}
.shell {
  width: min(100%, 520px);
  margin: 0 auto;
}

/* ── PROFILE SECTION ── */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cardIn .7s cubic-bezier(.22,.88,.36,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Avatar */
.avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
}
.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
  animation: spin 4s linear infinite;
  z-index: 0;
}
.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
}
.avatar {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.online-dot {
  position: absolute;
  right: 4px;
  bottom: 6px;
  z-index: 3;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  background: var(--green);
  box-shadow: 0 0 10px rgba(0,255,136,.8);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Name */
.profile-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: .08em;
  color: #fff;
  text-shadow: 0 0 30px rgba(0,229,255,.35);
  margin-bottom: 6px;
}

.bio {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .06em;
  font-weight: 500;
  margin-bottom: 24px;
}

/* ── BANNER ── */
.banner-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16/6;
  width: 100%;
  background: #111;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0,229,255,.06), 0 20px 60px rgba(0,0,0,.5);
}
.banner-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, transparent 60%, rgba(0,0,0,.3) 100%);
  pointer-events: none;
}
.banner-label {
  position: absolute;
  left: 16px;
  bottom: 13px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .28em;
  color: rgba(255,255,255,.7);
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
}

/* ── SECTION LABEL ── */
.section-label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.section-label span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .25em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── SOCIAL BUTTONS ── */
.social-list { display: grid; gap: 8px; width: 100%; margin-bottom: 24px; }

.social-btn {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  background: var(--card);
  transition: transform .18s ease, background .18s ease, border-color .22s ease, box-shadow .22s ease;
  position: relative;
  overflow: hidden;
}
.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .22s ease;
  border-radius: inherit;
}
.social-btn:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: var(--border-hover);
  background: var(--card2);
}
.social-btn:hover::before { opacity: 1; }

/* per-brand hover glow */
.whatsapp:hover,    .wa-channel:hover   { box-shadow: 0 0 28px rgba(37,211,102,.18), 0 8px 30px rgba(0,0,0,.3); }
.telegram:hover,    .tg-channel:hover   { box-shadow: 0 0 28px rgba(42,171,238,.18), 0 8px 30px rgba(0,0,0,.3); }
.instagram:hover                        { box-shadow: 0 0 28px rgba(221,42,123,.18), 0 8px 30px rgba(0,0,0,.3); }
.tiktok:hover                           { box-shadow: 0 0 28px rgba(0,242,234,.14),  0 8px 30px rgba(0,0,0,.3); }
.discord:hover                          { box-shadow: 0 0 28px rgba(88,101,242,.18), 0 8px 30px rgba(0,0,0,.3); }

.social-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 20px;
  flex-shrink: 0;
}
.social-icon i { font-size: 22px; line-height: 1; }

.social-text { display: grid; gap: 3px; }
.social-text b  { font-size: 13px; font-weight: 700; }
.social-text small { font-size: 10.5px; color: var(--muted); }

.arrow {
  font-size: 16px;
  color: var(--muted);
  transition: color .18s, transform .18s;
}
.social-btn:hover .arrow { color: #fff; transform: translate(2px, -2px); }

/* icon bg colors */
.whatsapp   .social-icon { background: rgba(37,211,102,.12);  color: #25d366; }
.wa-channel .social-icon { background: rgba(37,211,102,.12);  color: #25d366; }
.telegram   .social-icon { background: rgba(42,171,238,.12);  color: #2aabee; }
.tg-channel .social-icon { background: rgba(42,171,238,.12);  color: #2aabee; }
.instagram  .social-icon { background: rgba(221,42,123,.12);  color: #e1306c; }
.tiktok     .social-icon { background: rgba(0,242,234,.10);   color: #00f2ea; }
.discord    .social-icon { background: rgba(88,101,242,.12);  color: #5865f2; }

/* channel style */
.channel { background: rgba(255,255,255,.04); }

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 28px;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.stat-box .val {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: .04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-box .lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  color: rgba(255,255,255,.22);
  font-size: 9px;
  letter-spacing: .2em;
  padding-top: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .page { padding: 28px 12px 48px; }
  .profile-card h2 { font-size: 36px; }
  .social-btn { min-height: 60px; }
  .stats-row { grid-template-columns: repeat(3,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
