:root {
  --bg-1: #0b0f17;
  --bg-2: #0f1624;
  --bg-3: #101828;
  --text: #e6ebf2;
  --text-muted: #9aa4b2;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --ring: rgba(110,231,255,0.35);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2) 60%, var(--bg-3));
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Canvas background sits behind content */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(16px, 4vw, 40px);
}

.card {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(22px, 5vw, 48px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(130%);
  text-align: center;
}

.header {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(10px, 2.5vw, 14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(110,231,255,0.8);
}
.brand-text {
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text);
}

.title {
  font-size: clamp(30px, 6vw, 66px);
  line-height: 1.1;
  margin: 6px 0 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #f0f4ff 0%, #a4b4ff 30%, #8a95ff 60%, #b3f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--text-muted);
  margin: 0 auto clamp(20px, 5vw, 28px);
  max-width: 60ch;
}

/* Loader */
.loader-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto clamp(22px, 4.5vw, 32px);
}
.loader-gif {
  width: 64px; height: 64px;
  display: block;
  border-radius: 50%;
}
.loader-css {
  position: absolute;
  inset: 0;
  display: none;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--accent);
  border-right-color: transparent;
  animation: spin .9s linear infinite;
  box-shadow: 0 0 0 3px rgba(110,231,255,0.12) inset, 0 0 24px rgba(110,231,255,0.35);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .loader-css { animation: none; }
}

.socials {
  display: grid;
  gap: 12px;
  justify-items: center;
}
.follow {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.icons {
  display: flex;
  gap: 14px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
  position: relative;
  color: inherit;
}
.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 6px 22px var(--ring);
}
.icon-btn:active { transform: translateY(0); }

.copy-btn { width: 46px; height: 46px; cursor: pointer; }
.copy-tip {
  position: absolute;
  top: -28px; right: 50%;
  transform: translateX(50%);
  background: rgba(16,24,40,0.9);
  color: #e6ebf2;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.handles {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip {
  font-size: 12.5px;
  color: var(--text);
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Small screens */
@media (max-width: 480px) {
  .card { padding: 22px; }
  .icons { gap: 12px; }
  .icon-btn { width: 44px; height: 44px; }
}
