@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --purple-deep: #0d0010;
  --purple-dark: #1a0030;
  --purple-mid: #3d0070;
  --purple-bright: #7b2fff;
  --purple-glow: #a855f7;
  --purple-light: #d8b4fe;
  --accent-pink: #e040fb;
  --white: #f5f0ff;
  --glass: rgba(123, 47, 255, 0.08);
  --glass-border: rgba(168, 85, 247, 0.2);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--purple-deep);
  color: var(--white);
  min-height: 100vh;
  cursor: default;
}

/* ─── BACKGROUND ─── */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.25) saturate(1.4);
  transform: scale(1.08);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123,47,255,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(224,64,251,0.2) 0%, transparent 60%),
    linear-gradient(180deg, rgba(13,0,16,0.3) 0%, rgba(13,0,16,0.7) 100%);
}

/* ─── GRAIN TEXTURE ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' 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");
}

/* ─── MAIN CONTENT ─── */
.container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 0;
}

/* ─── CARD ─── */
.card {
  background: rgba(20, 0, 40, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 52px 48px 44px;
  max-width: 480px;
  width: 100%;
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  box-shadow:
    0 0 0 1px rgba(168,85,247,0.05),
    0 24px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(123,47,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
  text-align: center;
  animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* ─── AVATAR ─── */
.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  animation: avatarIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes avatarIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--purple-bright),
    var(--accent-pink),
    var(--purple-light),
    var(--purple-bright)
  );
  animation: spin 4s linear infinite;
  z-index: -1;
}

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

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--purple-deep);
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
  filter: brightness(1.05) contrast(1.05);
}

/* ─── STATUS BADGE ─── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(123,47,255,0.15);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--purple-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  animation: fadeUp 0.7s 0.4s both;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* ─── TYPOGRAPHY ─── */
.name {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 20%, var(--purple-light) 60%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  animation: fadeUp 0.7s 0.5s both;
}

.tag {
  font-size: 0.95rem;
  color: rgba(216, 180, 254, 0.65);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
  animation: fadeUp 0.7s 0.6s both;
}

/* ─── DIVIDER ─── */
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-bright), transparent);
  margin: 0 auto 30px;
  border-radius: 99px;
  animation: fadeUp 0.7s 0.65s both;
}

/* ─── BIO ─── */
.bio {
  font-size: 0.9rem;
  color: rgba(245, 240, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.7s both;
}

/* ─── DISCORD BUTTON ─── */
.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #5865f2 0%, #7b2fff 50%, var(--accent-pink) 100%);
  background-size: 200% 200%;
  animation: fadeUp 0.7s 0.8s both, gradientShift 4s ease infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    0 4px 24px rgba(88, 101, 242, 0.4),
    0 0 0 1px rgba(255,255,255,0.08) inset;
  position: relative;
  overflow: hidden;
}

.discord-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  border-radius: inherit;
}

.discord-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 40px rgba(88, 101, 242, 0.55),
    0 0 0 1px rgba(255,255,255,0.1) inset;
}

.discord-btn:active {
  transform: translateY(-1px) scale(0.99);
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.discord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── FLOATING ORBS ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
  opacity: 0.18;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--purple-bright);
  top: -100px;
  left: -80px;
  animation: float1 12s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-pink);
  bottom: -80px;
  right: -60px;
  animation: float2 15s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0,0); }
  50%       { transform: translate(40px, 30px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0,0); }
  50%       { transform: translate(-30px, -25px); }
}

/* ─── UTILITY ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 520px) {
  .card {
    padding: 40px 28px 36px;
    border-radius: 22px;
  }
  .name { font-size: 2rem; }
  .avatar { width: 110px; height: 110px; }
}