:root {
  --bg-primary: #090a0f;
  --bg-surface: rgba(22, 24, 35, 0.65);
  --bg-surface-hover: rgba(30, 34, 50, 0.85);
  --bg-card-featured: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(139, 92, 246, 0.12));
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(236, 72, 153, 0.5);
  --border-featured: rgba(236, 72, 153, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-pink: #ec4899;
  --accent-pink-glow: rgba(236, 72, 153, 0.35);
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-discord: #5865f2;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  color-scheme: dark;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  background: radial-gradient(circle at 50% 0%, #151828 0%, #090a0f 65%);
}

/* Ambient glow background spheres */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(130px);
  z-index: 0;
  opacity: 0.45;
}

.glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-pink) 0%, var(--accent-purple) 60%, transparent 75%);
}

.glow-bottom {
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, var(--accent-purple) 60%, transparent 75%);
  opacity: 0.25;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 620px;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Profile / Hero Section */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.avatar-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e1b4b, #2e1065, #4c0519);
  padding: 3px;
  box-shadow: 0 0 25px var(--accent-pink-glow), 0 0 45px rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-smooth);
}

.avatar:hover {
  transform: scale(1.05) rotate(5deg);
}

.avatar-icon {
  font-size: 3rem;
  user-select: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.status-indicator {
  position: absolute;
  bottom: 4px;
  right: 6px;
  width: 18px;
  height: 18px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 16px var(--accent-emerald);
  }
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f472b6;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(10px);
}

.badge-icon {
  width: 15px;
  height: 15px;
}

.community-title {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #f472b6 70%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}

.community-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-pink);
  border-radius: 50%;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn svg {
  width: 14px;
  height: 14px;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Search & Controls Section */
.controls-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.search-box {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 2.75rem 0.85rem 2.85rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.clear-btn {
  position: absolute;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-btn:hover {
  color: var(--text-primary);
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

/* Links Section */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Link Cards */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-smooth);
}

.link-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 20px -3px var(--accent-pink-glow);
}

.link-card.featured {
  background: var(--bg-card-featured);
  border-color: var(--border-featured);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15);
}

.link-card.featured:hover {
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 12px 30px -5px rgba(236, 72, 153, 0.25);
}

.card-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1rem 1rem 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  gap: 1rem;
  min-width: 0;
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-fast);
}

.link-card:hover .card-icon-box {
  transform: scale(1.08);
}

/* Unique Icon Colors */
.pack-icon { background: rgba(236, 72, 153, 0.15); border-color: rgba(236, 72, 153, 0.25); }
.web-icon { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.25); }
.vip-icon { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.25); }
.free-icon { background: rgba(244, 63, 94, 0.15); border-color: rgba(244, 63, 94, 0.25); }
.fire-icon { background: rgba(249, 115, 22, 0.15); border-color: rgba(249, 115, 22, 0.25); }
.rip-icon { background: rgba(217, 70, 239, 0.15); border-color: rgba(217, 70, 239, 0.25); }
.portal-icon { background: rgba(14, 165, 233, 0.15); border-color: rgba(14, 165, 233, 0.25); }
.daily-icon { background: rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.25); }
.extra-icon { background: rgba(244, 114, 182, 0.15); border-color: rgba(244, 114, 182, 0.25); }
.backup-icon { background: rgba(100, 116, 139, 0.15); border-color: rgba(100, 116, 139, 0.25); }
.tumblr-icon { background: rgba(54, 70, 93, 0.3); border-color: rgba(54, 70, 93, 0.5); }
.discord-icon { background: rgba(88, 101, 242, 0.18); border-color: rgba(88, 101, 242, 0.35); }

.card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges */
.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-hot {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.badge-vip {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-free {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-daily {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-backup {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-social {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.badge-discord {
  background: rgba(88, 101, 242, 0.2);
  color: #818cf8;
  border: 1px solid rgba(88, 101, 242, 0.4);
}

.card-arrow {
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.link-card:hover .card-arrow {
  color: var(--accent-pink);
  transform: translateX(3px);
}

.card-arrow svg {
  width: 18px;
  height: 18px;
}

/* Copy Button */
.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  margin-right: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}

.copy-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.copy-btn:active {
  transform: scale(0.92);
}

/* No results state */
.no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.no-results h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.no-results p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.reset-btn {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.reset-btn:hover {
  opacity: 0.9;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-pink);
}

.footer-links .sep {
  color: var(--text-muted);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-domain {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.domain-highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: var(--text-primary);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-pink-glow);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 999;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-emerald);
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .container {
    padding: 1.75rem 1rem 3rem;
  }

  .avatar {
    width: 84px;
    height: 84px;
  }

  .avatar-icon {
    font-size: 2.5rem;
  }

  .card-main {
    padding: 0.85rem 0.75rem;
    gap: 0.75rem;
  }

  .card-icon-box {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .card-title {
    font-size: 0.94rem;
  }

  .card-desc {
    font-size: 0.75rem;
  }

  .copy-btn {
    padding: 0.75rem 0.65rem;
  }
}
