/* ═══════════════════════════════════════════════════
   MIA DARLING — Shared Design System
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Manrope:wght@400;600;700;800&display=swap');

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

:root {
  --bg: #000000;
  --purple-dark: #25015B;
  --purple-mid: #6A3FBF;
  --purple-light: #A66CFF;
  --purple-soft: #C29AFF;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(166, 108, 255, 0.35);
  --glass-card: rgba(65, 65, 65, 0.22);
  --white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.4);
  --radius-card: 30px;
  --radius-pill: 61px;
  --font: 'Manrope', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NOISE ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .35;
}

/* ── NAVBAR ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform .2s ease;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover; 
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo .logo-m {
  font-family: 'Great Vibes', cursive;
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .02em;
}

.nav-logo .logo-d {
  font-family: 'Great Vibes', cursive;
  font-size: 18px;
  font-weight: 400;
  color: var(--purple-soft);
  letter-spacing: .02em;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-light);
}

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

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.user-stats {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.btn-logout {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(255, 80, 80, 0.15); 
  color: #ff6b6b;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn-primary {
  background: var(--purple-light);
  color: var(--purple-dark);
  border: none;
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 0 24px rgba(166, 108, 255, .35);
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--purple-soft);
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(166, 108, 255, .55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--purple-light);
  border: 1.5px solid var(--glass-border);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover {
  background: rgba(166, 108, 255, .08);
  border-color: var(--purple-light);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0);
}

/* ── PAGE WRAPPER ────────────────────────────────── */
.page {
  padding-top: 108px;
  position: relative;
  z-index: 1;
}

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #08000f;
}

::-webkit-scrollbar-thumb {
  background: var(--purple-mid);
  border-radius: 6px;
}

/* ── UTILS ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: .1s;
}

.d2 {
  transition-delay: .2s;
}

.d3 {
  transition-delay: .32s;
}

.d4 {
  transition-delay: .44s;
}

/* ── SHARED TAG PILL ─────────────────────────────── */
.tag-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 50px;
  background: rgba(36, 0, 90, .5);
  border: 1px solid rgba(166, 108, 255, .2);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  transition: background .2s, border-color .2s;
  cursor: pointer;
}

.tag-pill:hover {
  background: rgba(106, 63, 191, .7);
  border-color: var(--purple-light);
}

/* ── AVATAR ──────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  overflow: hidden;
}

.avatar-gray {
  background: #D9D9D9;
  color: #333;
}

.avatar-dark {
  background: rgba(36, 0, 90, .5);
  color: var(--purple-soft);
}

.avatar-purple {
  background: var(--purple-light);
  color: var(--purple-dark);
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 48px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
}

.footer-logo span {
  color: var(--purple-soft);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(166, 108, 255, 0.15);
  border: 1px solid rgba(166, 108, 255, 0.3);
  transition: all .3s ease;
}

.footer-social a:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(166, 108, 255, 0.4);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  transition: fill .2s;
}

.footer-social a:hover svg {
  fill: var(--purple-dark);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, .3);
}

@media (max-width: 960px) {
  nav {
    padding: 0 24px;
    height: 72px;
  }

  .nav-links {
    gap: 20px;
  }

  footer {
    padding: 40px 32px;
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-social {
    justify-content: center;
  }

  .nav-links a {
    font-size: 15px;
  }

  .btn-primary {
    padding: 9px 20px;
    font-size: 14px;
  }

  .page {
    padding-top: 88px;
  }

  .nav-logo img {
    width: 36px;
    height: 36px;
  }

  .nav-logo .logo-m {
    font-size: 18px;
  }

  .nav-logo .logo-d {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 16px;
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-logo img {
    width: 32px;
    height: 32px;
  }

  .nav-logo .logo-m {
    font-size: 16px;
  }

  .nav-logo .logo-d {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .btn-primary {
    padding: 7px 14px;
    font-size: 12px;
  }

  .btn-ghost {
    padding: 6px 12px;
    font-size: 12px;
  }

  .page {
    padding-top: 80px;
  }

  .tag-pill {
    padding: 5px 12px;
    font-size: 12px;
  }

}

@media (max-width: 480px) {
  nav {
    padding: 0 12px;
    height: 56px;
  }

  .nav-logo img {
    width: 28px;
    height: 28px;
  }

  .nav-logo .logo-m {
    font-size: 14px;
  }

  .nav-logo .logo-d {
    font-size: 10px;
  }

  .btn-primary {
    padding: 6px 12px;
    font-size: 11px;
  }

  .btn-ghost {
    padding: 5px 10px;
    font-size: 11px;
  }

  .tag-pill {
    padding: 4px 10px;
    font-size: 11px;
  }
}