/* ── TOKENS ─────────────────────────────── */
:root {
  --bg:      #080809;
  --bg2:     #0e0e10;
  --s:       #141416;
  --border:  rgba(255, 255, 255, 0.07);
  --text:    #f0eeea;
  --muted:   #6a6870;
  --muted2:  #a0a0a8;
  --accent:  #e8e0d0;
  --tag:     #1e1e22;
  --r:       10px;
}

/* ── RESET ──────────────────────────────── */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent; 
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

body::after {
  content: '';
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.025) 0%, transparent 70%);
}

/* ── WRAPPER ────────────────────────────── */
.wrap {
  position: relative; z-index: 1;
  max-width: 460px; margin: 0 auto;
  padding: 56px 24px 80px;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}

/* ── AVATAR ─────────────────────────────── */
.avatar-wrap {
  position: relative;
  margin-bottom: 22px;
  opacity: 0; transform: translateY(18px) scale(0.96);
  animation: rise 0.9s 0.1s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

.avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--s);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.status-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #3dd68c;
  border: 2px solid var(--bg);
  box-shadow: 0 0 6px rgba(61, 214, 140, 0.5);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(61, 214, 140, 0.5); }
  50%      { box-shadow: 0 0 12px rgba(61, 214, 140, 0.8); }
}

/* ── NAME & TITLE ───────────────────────── */
.name-block {
  text-align: center; margin-bottom: 6px; width: 100%;
  opacity: 0; transform: translateY(14px);
  animation: rise 0.85s 0.22s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

.name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 6.5vw, 1.9rem);
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 5px;
}

.name em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 238, 234, 0.4);
}

.role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 3px;
  color: var(--muted2);
  text-transform: uppercase;
}

/* Tags row */
.tags {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin: 14px 0 28px; width: 100%;
  opacity: 0; transform: translateY(12px);
  animation: rise 0.85s 0.34s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem; letter-spacing: 1px;
  color: var(--muted2);
  background: var(--tag);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 4px;
  text-transform: uppercase;
}

/* ── LINKS STACK ────────────────────────── */
.links {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%;
  opacity: 0; transform: translateY(14px);
  animation: rise 0.85s 0.44s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

/* Standard link button */
.link-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 18px;
  background: var(--s);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform: translate(0, 0); /* Base setup for magnetic script */
}

/* Elastic rebound on click */
.link-btn:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s ease !important;
}

.link-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.link-btn:hover::before { transform: translateX(100%); }

.link-btn:hover {
  background: var(--bg2);
  border-color: rgba(255, 255, 255, 0.15);
}

.link-left { display: flex; align-items: center; gap: 12px; pointer-events: none; }

.link-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.link-label { color: var(--text); }

.link-arrow {
  color: var(--muted); font-size: 0.85rem;
  transition: transform 0.2s, color 0.2s;
  pointer-events: none;
}

.link-btn:hover .link-arrow { transform: translateX(3px); color: var(--muted2); }

/* Platform Icon Backgrounds */
.icon-tiktok   { background: #111; }
.icon-fb       { background: #0f1b35; }
.icon-ig       { background: linear-gradient(135deg, #3a1a3a, #1a0a2e, #0a2040); }
.icon-discord  { background: #1a1c38; }
.icon-donate   { background: #1a1a10; }

/* ── ABOUT BUTTON ───────────────────────── */
.about-btn {
  width: 100%;
  padding: 16px 20px;
  background: var(--accent);
  border: none; border-radius: var(--r);
  color: #0a0a0c;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35);
  position: relative; overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.about-btn:active {
  transform: scale(0.96) !important;
  transition: transform 0.1s ease !important;
}

.about-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.about-btn:hover::before { transform: translateX(100%); }

.about-btn:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.about-left { display: flex; align-items: center; gap: 12px; pointer-events: none; }

.about-icon-wrap {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.08);
  display: flex; align-items: center; justify-content: center;
}

.about-arrow {
  font-size: 0.85rem; color: rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
  pointer-events: none;
}

.about-btn:hover .about-arrow { transform: translateX(3px); }

/* Divider */
.divider {
  width: 100%; margin: 4px 0;
  border: none; border-top: 1px solid var(--border);
  opacity: 0.6;
}

/* ── ABOUT MODAL ────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  display: flex; align-items: flex-end; justify-content: center;
}

.modal-overlay.open {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  pointer-events: all;
}

.modal {
  width: 100%; max-width: 460px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 12px 24px 48px;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border);
  margin: 0 auto 24px;
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--tag); border: 1px solid var(--border);
  color: var(--muted2); cursor: pointer; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: var(--s); }

.modal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; letter-spacing: 3px;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 6vw, 1.6rem);
  font-weight: 800; color: var(--text);
  line-height: 1.15; margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.modal-body {
  font-family: 'Sarabun', sans-serif;
  font-size: 0.97rem; font-weight: 300;
  color: var(--muted2);
  line-height: 1.85;
}

.modal-body p + p { margin-top: 14px; }
.modal-body strong { color: var(--accent); font-weight: 500; }

/* ── FOOTER ─────────────────────────────── */
.footer {
  margin-top: 40px; text-align: center; width: 100%;
  opacity: 0; animation: rise 0.85s 0.7s ease forwards;
}

.footer-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 3px; color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ── KEYFRAMES ──────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ─────────────────────────────── */
@media (max-width: 480px) {
  .wrap { padding: 48px 18px 72px; }
}

.icon-voltrexa { background: #0c1a14; border: 1px solid rgba(61, 214, 140, 0.15); }
