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

:root {
  --bg: #080a0f;
  --bg2: #0d1017;
  --bg3: #111520;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --text: #e8eaf0;
  --text-muted: #6b7280;
  --text-dim: #3d4451;
  --accent: #7c6bff;
  --accent-glow: rgba(124,107,255,0.18);
  --accent2: #5b4fff;
  --green: #22c55e;
  --discord: #5865f2;
  --roblox: #e8192c;
  --radius: 10px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  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)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  background: rgba(8,10,15,0.8);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.dot { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 0 20px rgba(88,101,242,0.2);
}

.btn-primary:hover {
  background: #4752c4;
  box-shadow: 0 0 28px rgba(88,101,242,0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}

/* Ad slots */
.ad-slot {
  padding: 16px 0;
}

.ad-wrapper {
  display: flex;
  justify-content: center;
}

.ad-placeholder {
  width: 100%;
  max-width: 728px;
  height: 90px;
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Smartlink card */
.smartlink-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 24px;
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  width: 100%;
  max-width: 728px;
  transition: border-color 0.15s, background 0.15s;
}

.smartlink-card:hover {
  border-color: var(--border-hover);
  background: var(--bg3);
}

.smartlink-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.smartlink-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

.smartlink-card:hover .smartlink-text {
  color: var(--text);
}

.ad-top { padding-top: 80px; }

/* Profile hero */
.profile-hero {
  padding: 48px 0 64px;
}

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 560px) {
  .profile-card { flex-direction: column; align-items: center; text-align: center; }
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--discord));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  border: 2px solid var(--border);
}

.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--discord);
  background: rgba(88,101,242,0.1);
  border: 1px solid rgba(88,101,242,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.profile-bio {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.65;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* Servers */
.servers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.server-card:hover {
  border-color: var(--border-hover);
  background: var(--bg3);
  transform: translateY(-1px);
}

.server-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discord-purple { background: rgba(88,101,242,0.15); color: var(--discord); }
.roblox-red { background: rgba(232,25,44,0.12); color: var(--roblox); }

.server-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.server-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.server-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.server-invite {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  font-family: monospace;
}

.server-join {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.15s, gap 0.15s;
}

.server-card:hover .server-join { color: var(--text); gap: 8px; }

/* Shop feature */
.shop-feature {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

@media (max-width: 600px) {
  .shop-feature { flex-direction: column; padding: 24px; }
}

.shop-text { flex: 1; }

.shop-text h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.shop-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.shop-text p strong { color: var(--text); }

.shop-list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-list li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.shop-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(124,107,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
}

.badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.badge-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  line-height: 1.3;
}

.badge-stars {
  display: flex;
  gap: 2px;
  color: #fbbf24;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .nav a { display: none; }
  .server-card { flex-wrap: wrap; }
  .server-join { display: none; }
}
