/* WildFlover - Premium Profile Platform */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════
   CSS Variables
   ═══════════════════════════════════════ */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0c0c14;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-solid: #111119;
  --bg-card-hover: rgba(255,255,255,0.06);
  --bg-input: rgba(255,255,255,0.04);
  --bg-glass: rgba(10,10,18,0.6);
  --border-color: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text-primary: #eeeef2;
  --text-secondary: #8888a0;
  --text-muted: #4a4a60;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-glow: rgba(245,158,11,0.25);
  --accent-soft: rgba(245,158,11,0.08);
  --brand: #f59e0b;
  --brand-hover: #f97316;
  --brand-glow: rgba(245,158,11,0.25);
  --brand-soft: rgba(245,158,11,0.08);
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
img, video { max-width: 100%; display: block; }
::selection { background: var(--accent); color: white; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════════════════════════════════
   Landing Page - Hero Background
   ═══════════════════════════════════════ */
.landing-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
}

.landing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.2);
}

.landing-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,8,0.3) 0%, rgba(5,5,8,0.6) 50%, rgba(5,5,8,0.95) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(245,158,11,0.06) 0%, transparent 60%);
}

/* Noise texture overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ═══════════════════════════════════════
   Topbar - Premium Navigation
   ═══════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 1100px;
  transition: var(--transition);
}

.topbar.scrolled {
  top: 12px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 16px;
  height: 56px;
  background: rgba(12,12,18,0.55);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Brand */
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--transition);
}

.topbar-brand:hover { opacity: 0.85; }

.topbar-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(245,158,11,0.3));
}

.topbar-brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.topbar-brand-text em {
  font-style: normal;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Center links */
.topbar-center {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.topbar-link {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 10px;
  transition: var(--transition);
  text-decoration: none;
}

.topbar-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-login {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 10px;
  transition: var(--transition);
  text-decoration: none;
}

.topbar-login:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.topbar-signup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #0a0a0f;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(245,158,11,0.25);
}

.topbar-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
  color: #0a0a0f;
}

/* ═══ Topbar User Menu ═══ */
.topbar-user {
  position: relative;
}

.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  font-size: 13px;
}

.topbar-user-btn:hover,
.topbar-user-btn.active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.topbar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(245,158,11,0.4);
}

.topbar-user-avatar-default {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 14px;
}

.topbar-user-name {
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-chevron {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  transition: transform 0.25s ease;
}

.topbar-user-btn.active .topbar-user-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.topbar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: rgba(15,15,20,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.topbar-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.topbar-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.topbar-dropdown-header .topbar-user-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.topbar-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.topbar-dropdown-username {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.topbar-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 0;
}

.topbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.topbar-dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.topbar-dropdown-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.topbar-dropdown-item:hover i {
  color: var(--accent);
}

.topbar-dropdown-logout {
  color: rgba(239,68,68,0.8);
}

.topbar-dropdown-logout:hover {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

.topbar-dropdown-logout:hover i {
  color: #ef4444;
}

@media (max-width: 768px) {
  .topbar {
    width: calc(100% - 24px);
    top: 10px;
  }
  .topbar-inner { height: 50px; padding: 0 6px 0 12px; }
  .topbar-center { display: none; }
  .topbar-login { display: none; }
  .topbar-brand-text { font-size: 16px; }
  .topbar-brand-icon { width: 28px; height: 28px; }
  .topbar-user-name { display: none; }
  .topbar-user-btn { padding: 4px; }
  .topbar-user-chevron { display: none; }
  .topbar-dropdown { width: 240px; right: -8px; }
}

/* ═══════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════ */
.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--brand-soft);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -2px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 40%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.2s both;
  font-weight: 400;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   Buttons
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-brand {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #0a0a0f;
  font-weight: 700;
  box-shadow: 0 2px 16px var(--brand-glow);
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--brand-glow);
  color: #0a0a0f;
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ═══════════════════════════════════════
   Features Section
   ═══════════════════════════════════════ */
.features-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}

/* Legacy feature grid (kept for compatibility) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ═══════════════════════════════════════
   3D Feature Cards
   ═══════════════════════════════════════ */
.features-grid-3d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1200px;
}

.feature-card-3d {
  perspective: 800px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-3d.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-card-3d-inner {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 36px 28px;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

.feature-card-3d-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card-3d:hover .feature-card-3d-inner {
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 40px rgba(245,158,11,0.06);
  border-color: rgba(245,158,11,0.15);
}

.feature-card-3d:hover .feature-card-3d-inner::before {
  opacity: 1;
}

.feature-card-3d-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.feature-card-3d-shine {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.feature-card-3d-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(249,115,22,0.06));
  border: 1px solid rgba(245,158,11,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}

.feature-card-3d:hover .feature-card-3d-icon {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #0a0a0f;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(245,158,11,0.35);
  transform: translateZ(30px) scale(1.05);
}

.feature-card-3d-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  transform: translateZ(15px);
  letter-spacing: -0.2px;
}

.feature-card-3d-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
  transform: translateZ(10px);
}

@media (max-width: 1024px) {
  .features-grid-3d { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 640px) {
  .features-grid-3d { grid-template-columns: 1fr; gap: 16px; perspective: none; }
  .feature-card-3d { perspective: none; }
  .feature-card-3d-inner { padding: 28px 22px; }
  .feature-card-3d-icon,
  .feature-card-3d-title,
  .feature-card-3d-desc { transform: none; }
  .feature-card-3d:hover .feature-card-3d-icon { transform: none; }
}

/* CTA Section */
.cta-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 24px;
}

.cta-section .cta-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Footer */
.landing-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  padding: 32px 24px;
  text-align: center;
}

.landing-footer p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ═══════════════════════════════════════
   Forms & Inputs
   ═══════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: rgba(255,255,255,0.06);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-error { font-size: 12px; color: var(--error); margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════════════════
   Cards
   ═══════════════════════════════════════ */
.card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.card:hover { border-color: var(--border-hover); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   Auth Pages
   ═══════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  position: relative;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.auth-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25) saturate(1.1) blur(1px);
}

.auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,5,8,0.8), rgba(5,5,8,0.6));
}

.auth-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  animation: fadeInUp 0.5s ease;
}

.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-header .logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.auth-header .logo span {
  background: linear-gradient(135deg, var(--accent), #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-form .card {
  padding: 32px;
  background: rgba(12,12,20,0.8);
  backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,0.06);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a { font-weight: 600; }

/* ═══════════════════════════════════════
   Dashboard Layout
   ═══════════════════════════════════════ */
.dashboard { display: flex; min-height: 100vh; }

.sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid rgba(255,255,255,0.04);
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: var(--transition);
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  padding: 16px 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.25s ease;
}

.sidebar-logo:hover {
  opacity: 0.85;
}

.sidebar-logo .logo-img {
  -webkit-text-fill-color: initial;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 0 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.06));
  color: var(--accent);
  border: 1px solid rgba(245,158,11,0.15);
  box-shadow: 0 2px 12px rgba(245,158,11,0.08);
}

.sidebar-nav a i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  opacity: 0.7;
}

.sidebar-nav a.active i { opacity: 1; }

/* Sidebar bottom actions */
.sidebar-bottom {
  padding: 8px 6px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
  margin-bottom: 12px;
}

.sidebar-bottom-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.sidebar-bottom-btn:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}

.sidebar-logout-btn:hover {
  background: rgba(239,68,68,0.08);
  color: rgba(239,68,68,0.8);
}

.sidebar-user {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.sidebar-user:hover {
  background: rgba(255,255,255,0.03);
}

.sidebar-user-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  object-fit: cover;
  border: 2px solid rgba(245,158,11,0.3);
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.sidebar-user-username { font-size: 12px; color: rgba(255,255,255,0.35); }

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 36px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-content > * {
  width: 100%;
  max-width: 820px;
}

.page-header { margin-bottom: 32px; }

.page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.page-subtitle { color: var(--text-secondary); font-size: 14px; }

/* ═══════════════════════════════════════
   Profile Page (Public View)
   ═══════════════════════════════════════ */
.profile-page { min-height: 100vh; position: relative; }

.profile-banner {
  width: 100%;
  height: 340px;
  position: relative;
  overflow: hidden;
}

.profile-banner img,
.profile-banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-banner .gradient-banner { width: 100%; height: 100%; }

.profile-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

.profile-container {
  max-width: 640px;
  margin: -80px auto 0;
  padding: 0 24px 60px;
  position: relative;
  z-index: 10;
}

.profile-header { text-align: center; margin-bottom: 32px; }

.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 110px; height: 110px;
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-primary);
  object-fit: cover;
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.profile-avatar-default {
  width: 110px; height: 110px;
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-primary);
  background: linear-gradient(135deg, var(--accent), #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.verified-badge {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.profile-username {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 440px;
  margin: 0 auto 14px;
  line-height: 1.7;
}

.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.profile-views-count { color: var(--text-muted); font-size: 12px; }

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* Custom Links */
.profile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.profile-link::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: var(--transition);
}

.profile-link:hover {
  border-color: rgba(245,158,11,0.2);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.profile-link:hover::before { opacity: 1; }

.profile-link-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.profile-link-content { flex: 1; min-width: 0; }
.profile-link-title { font-weight: 600; font-size: 14px; margin-bottom: 1px; }
.profile-link-desc { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.profile-link-arrow { color: var(--text-muted); transition: var(--transition); font-size: 14px; }
.profile-link:hover .profile-link-arrow { color: var(--accent); transform: translateX(4px); }

.profile-link.featured {
  background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(217,119,6,0.06));
  border-color: rgba(245,158,11,0.12);
}

.spotify-embed { margin: 24px 0; border-radius: var(--radius-lg); overflow: hidden; }

.profile-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.profile-footer a {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-footer a:hover { color: var(--accent); }

/* ═══════════════════════════════════════
   Dashboard Specific
   ═══════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 22px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(245,158,11,0.15);
  transform: translateY(-2px);
}

.stat-card:hover::before { opacity: 1; }

.stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 14px;
}

.stat-card-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.stat-card-change { font-size: 13px; margin-top: 4px; }
.stat-card-change.positive { color: var(--success); }
.stat-card-change.negative { color: var(--error); }

/* Overview Welcome Card */
.overview-welcome {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(217,119,6,0.03));
  border: 1px solid rgba(245,158,11,0.1);
  border-radius: 20px;
  margin-bottom: 28px;
}

.overview-welcome-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(245,158,11,0.3);
  flex-shrink: 0;
}

.overview-welcome-avatar-default {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #0a0a0f;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.overview-welcome-info { flex: 1; }

.overview-welcome-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.overview-welcome-sub {
  color: var(--text-secondary);
  font-size: 14px;
}

.overview-welcome-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Profile Completion */
.profile-completion {
  padding: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-bottom: 28px;
}

.profile-completion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-completion-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-completion-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}

.profile-completion-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}

.profile-completion-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f97316);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-completion-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-completion-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-completion-tip.done {
  background: rgba(16,185,129,0.08);
  color: var(--success);
}

.profile-completion-tip.todo {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
}

.profile-completion-tip.todo:hover {
  background: rgba(245,158,11,0.06);
  border-color: rgba(245,158,11,0.15);
  color: var(--accent);
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.quick-action-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(245,158,11,0.15);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s ease;
}

.quick-action-card:hover .quick-action-icon {
  transform: scale(1.1);
}

.quick-action-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.quick-action-card:hover .quick-action-label {
  color: var(--text-primary);
}

/* Profile Link Copy */
.profile-link-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 28px;
}

.profile-link-copy-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-link-copy-btn {
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
  white-space: nowrap;
}

.profile-link-copy-btn:hover {
  background: var(--accent);
  color: #0a0a0f;
}

/* Overview Info Cards */
.overview-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.overview-info-card {
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.overview-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.overview-info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.overview-info-value {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
}

/* Link Manager */
.link-list { display: flex; flex-direction: column; gap: 6px; }

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.link-item:hover { border-color: var(--border-hover); }
.link-item-drag { cursor: grab; color: var(--text-muted); font-size: 14px; }
.link-item-info { flex: 1; min-width: 0; }
.link-item-title { font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.link-item-url { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-item-clicks { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; }
.link-item-actions { display: flex; gap: 4px; }

/* Color Picker */
.color-picker-wrapper { display: flex; align-items: center; gap: 12px; }

.color-picker-input {
  width: 44px; height: 44px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: none;
  padding: 0;
}

.color-picker-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-input::-webkit-color-swatch { border: 2px solid var(--border-color); border-radius: var(--radius-md); }

/* Theme Selector */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.theme-option {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.theme-option:hover { border-color: var(--border-hover); }
.theme-option.active { border-color: var(--accent); }

.theme-option-preview {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.theme-option-name { font-size: 12px; font-weight: 500; }

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-area-icon { font-size: 32px; margin-bottom: 10px; color: var(--text-muted); }
.upload-area-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.upload-area-hint { font-size: 12px; color: var(--text-muted); }

/* Appearance Sections */
.appearance-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
}

.appearance-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.appearance-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.appearance-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.gradient-option {
  padding: 6px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gradient-option:hover {
  border-color: rgba(255,255,255,0.15);
  transform: scale(1.03);
}

.gradient-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(245,158,11,0.2);
}

/* Preview */
.preview-banner {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.preview-banner img, .preview-banner video { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════
   Modal
   ═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: var(--transition);
}

.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.modal-close:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ═══════════════════════════════════════
   Toast
   ═══════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.warning { border-left: 3px solid var(--warning); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════
   Loading & Tabs
   ═══════════════════════════════════════ */
.loader {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.loader-lg { width: 36px; height: 36px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.tab:hover { color: var(--text-primary); }

.tab.active {
  background: var(--bg-card-solid);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 280px; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 16px; }

  .landing-nav { padding: 0 16px; height: 60px; }
  .landing-nav-links { display: none; }

  .hero-cta { flex-direction: column; width: 100%; max-width: 300px; }
  .hero-cta .btn { width: 100%; }

  .features-grid { grid-template-columns: 1fr; }
  .features-grid-3d { grid-template-columns: 1fr; perspective: none; }

  .profile-banner { height: 240px; }
  .profile-container { padding: 0 16px 40px; }
  .profile-avatar, .profile-avatar-default { width: 90px; height: 90px; font-size: 36px; }
  .profile-name { font-size: 22px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .overview-welcome { flex-direction: column; text-align: center; }
  .overview-welcome-actions { justify-content: center; }
  .overview-info-grid { grid-template-columns: 1fr; }
  .quick-actions-grid { grid-template-columns: 1fr 1fr; }

  .mobile-menu-btn {
    display: flex !important;
    position: fixed;
    top: 16px; left: 16px;
    z-index: 60;
    width: 44px; height: 44px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
  }
}

.mobile-menu-btn { display: none; }

/* ═══════════════════════════════════════
   Profile Editor (Dashboard)
   ═══════════════════════════════════════ */
.pe-page {
  max-width: 820px;
  margin: 0 auto;
}

.pe-page-header {
  text-align: center;
  margin-bottom: 32px;
}

.pe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.pe-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 24px;
}

.pe-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.pe-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.pe-card-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.pe-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pe-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(245,158,11,0.25);
}

.pe-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pe-avatar-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0f;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-display);
}

.pe-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pe-avatar-actions .btn {
  width: fit-content;
}

.pe-profile-link-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  transition: border-color 0.3s ease;
}

.pe-profile-link-row:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.pe-profile-link-prefix {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 2px 8px 12px;
  white-space: nowrap;
  user-select: none;
}

.pe-username-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 4px;
  min-width: 0;
}

.pe-username-status {
  min-height: 20px;
  margin-top: 6px;
}

/* Discord Activity Toggle */
.pe-discord-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

.pe-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pe-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.pe-toggle-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Toggle Switch */
.pe-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.pe-switch input { opacity: 0; width: 0; height: 0; }

.pe-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.pe-switch-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pe-switch input:checked + .pe-switch-slider {
  background: #5865F2;
}

.pe-switch input:checked + .pe-switch-slider::before {
  transform: translateX(20px);
}

@media (max-width: 768px) {
  .pe-grid { grid-template-columns: 1fr; }
  .pe-card { padding: 20px 16px; }
  .pe-avatar-row { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════
   Utilities
   ═══════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ═══════════════════════════════════════
   Logo Image (verified_icon.png)
   ═══════════════════════════════════════ */
.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-logo .logo-img {
  width: 26px;
  height: 26px;
}

/* ═══════════════════════════════════════
   Language Selector
   ═══════════════════════════════════════ */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.lang-selector-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}

.lang-selector-btn .fa-globe { font-size: 14px; }

.lang-chevron {
  font-size: 9px;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.lang-selector.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: rgba(15,15,20,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Topbar variant: dropdown goes DOWN */
.topbar .lang-dropdown,
.topbar-inner .lang-dropdown {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translateY(-6px);
}

.topbar .lang-selector.open .lang-dropdown,
.topbar-inner .lang-selector.open .lang-dropdown {
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.lang-option.active {
  color: var(--accent);
}

.lang-option .fa-check {
  margin-left: auto;
  font-size: 11px;
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}
