/* ================================================================
   HEADER — HOLOGRAPHIC NEON HUD GRAFFITI STYLE
   ================================================================ */

/* ============================================================
   1. FONTS
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

/* ============================================================
   2. CSS VARIABLES
   ============================================================ */
:root {
  --bg-body: #13051992;
  --bg-card: rgba(255, 0, 234, 0.06);
  --bg-card-hover: rgba(255, 0, 234, 0.12);
  --bg-card-border: rgba(255, 0, 234, 0.15);
  --bg-nav: rgba(11, 2, 21, 0.92);

  --text-primary: #f5eaff;
  --text-secondary: #b8a0d0;
  --text-muted: #5a3a6a;
  --text-inverse: #0a0508;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.7);
  --border-color: rgba(255, 0, 234, 0.15);

  --neon-magenta: #ff00ea;
  --neon-deep-purple: #ad03fc;
  --neon-cyan: #58ebfe;
  --neon-gold: #ffc72e;
  --neon-green: #4ff3a6;
  --neon-blue: #00d4ff;

  --spray-red: #ff0040;
  --spray-orange: #ff6b00;
  --spray-yellow: #ffcc00;

  --gradient-neon: linear-gradient(135deg, #ff00ea, #ad03fc);
  --gradient-cyber: linear-gradient(135deg, #ff00ea, #ad03fc, #58ebfe);
  --gradient-holo: linear-gradient(135deg, #ff00ea, #58ebfe, #ffc72e, #4ff3a6, #ad03fc);

  --glow-magenta: 0 0 40px rgba(255, 0, 234, 0.3), 0 0 80px rgba(255, 0, 234, 0.1);
  --glow-purple: 0 0 40px rgba(173, 3, 252, 0.3), 0 0 80px rgba(173, 3, 252, 0.1);
  --glow-cyan: 0 0 40px rgba(88, 235, 254, 0.3), 0 0 80px rgba(88, 235, 254, 0.1);

  --font-display: "Orbitron", "Rajdhani", monospace;
  --font-condensed: "Rajdhani", "Orbitron", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
  --font-tag: "Rubik Spray Paint", "Permanent Marker", cursive;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg-body: #f5f0e86b;
  --bg-card: rgba(255, 255, 255, 0.5);
  --bg-card-hover: rgba(255, 255, 255, 0.7);
  --bg-nav: rgba(245, 240, 232, 0.92);
  --text-primary: #1a102a;
  --text-secondary: #4a3a5a;
  --text-muted: #8a7a9a;
  --text-inverse: #f5f0e8;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.1);
  --border-color: rgba(173, 3, 252, 0.15);
  --glow-magenta: 0 0 40px rgba(255, 0, 234, 0.08), 0 0 80px rgba(255, 0, 234, 0.03);
  --glow-purple: 0 0 40px rgba(173, 3, 252, 0.08), 0 0 80px rgba(173, 3, 252, 0.03);
  --glow-cyan: 0 0 40px rgba(88, 235, 254, 0.08), 0 0 80px rgba(88, 235, 254, 0.03);
}

/* ============================================================
   3. KEYFRAMES
   ============================================================ */
@keyframes dropdownSlideDown {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes logoGlowPulse {
  0%, 100% {
    color: #ff00ea;
    text-shadow: 0 0 20px rgba(255, 0, 234, 0.4), 0 0 40px rgba(255, 0, 234, 0.2);
    transform: scale(1);
  }
  50% {
    color: #58ebfe;
    text-shadow: 0 0 30px rgba(88, 235, 254, 0.6), 0 0 60px rgba(88, 235, 254, 0.3);
    transform: scale(1.1);
  }
}

@keyframes sparklePulse {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.3; transform: scale(1.3) rotate(20deg); }
}

@keyframes trulyGlowPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 0, 234, 0.15); opacity: 0.9; }
  50% { text-shadow: 0 0 40px rgba(255, 0, 234, 0.4), 0 0 80px rgba(255, 0, 234, 0.15); opacity: 1; }
}

@keyframes searchFadeIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glitchTextHover {
  0% { transform: translate(0) skewX(0deg); color: #ffffff; }
  10% { transform: translate(-1px, 1px) skewX(2deg); color: #58ebfe; }
  20% { transform: translate(1px, -1px) skewX(-2deg); color: #ff00ea; }
  30% { transform: translate(-1px, 1px) skewX(1deg); color: #ffffff; }
  40% { transform: translate(1px, -1px) skewX(-1deg); color: #58ebfe; }
  50% { transform: translate(-2px, 2px) skewX(2deg); color: #ff00ea; }
  60% { transform: translate(2px, -2px) skewX(-2deg); color: #ffffff; }
  70% { transform: translate(-1px, 1px) skewX(1deg); color: #58ebfe; }
  80% { transform: translate(1px, -1px) skewX(-1deg); color: #ff00ea; }
  90% { transform: translate(0, 0) skewX(0deg); color: #ffffff; }
  100% { transform: translate(0, 0) skewX(0deg); color: #ffffff; }
}

/* ============================================================
   4. HEADER — MAIN CONTAINER
   ============================================================ */
.main-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  left: 0;
  right: 0;
  width: auto;
  margin: 12px 20px 0;
  padding: 0 20px;
  background: rgba(10, 5, 8, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: var(--shadow-card), var(--glow-magenta);
  transition: all var(--transition);
  overflow: visible;
  position: relative;
  pointer-events: auto;
}

[data-theme="light"] .main-header {
  background: rgba(245, 240, 232, 0.55);
}

.main-header .container {
  overflow: visible;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* ============================================================
   5. NAVBAR
   ============================================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
  position: relative;
  z-index: 1;
  overflow: visible;
  pointer-events: auto;
  width: 100%;
}

/* ============================================================
   6. LOGO
   ============================================================ */
.nav-brand {
  flex-shrink: 0;
  margin-right: 8px;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all var(--transition);
  position: relative;
  pointer-events: auto;
  font-family: var(--font-display);
}

.nav-brand .logo .logo-icon {
  font-size: 1.3rem;
  display: inline-block;
  transition: transform var(--transition);
  animation: logoGlowPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 0, 234, 0.3));
}

.nav-brand .logo:hover .logo-icon {
  animation: logoGlowPulse 0.8s ease-in-out infinite;
  transform: rotate(-8deg) scale(1.15);
}

.nav-brand .logo .logo-text {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 0, 234, 0.1));
  transition: filter var(--transition);
}

.nav-brand .logo:hover .logo-text {
  filter: drop-shadow(0 0 50px rgba(255, 0, 234, 0.3));
}

.nav-brand .hud-tag {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  color: var(--neon-cyan);
  opacity: 0.3;
  letter-spacing: 2px;
  margin-left: 4px;
  padding: 2px 6px;
  border: 1px solid rgba(88, 235, 254, 0.1);
  border-radius: 2px;
  background: rgba(88, 235, 254, 0.03);
}

/* ============================================================
   7. NAV LINKS — DESKTOP
   ============================================================ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: center;
  list-style: none;
  margin: 0 20px;
  padding: 0;
  overflow: visible;
  pointer-events: auto;
}

.nav-links li {
  overflow: visible;
  pointer-events: auto;
  position: relative;
}

.nav-links .nav-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 10px;
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  font-family: var(--font-condensed);
  white-space: nowrap;
}

.nav-links .dropdown-arrow {
  display: inline-block;
  font-size: 0.4rem;
  margin-left: 2px;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-links .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gradient-holo);
  transition: all var(--transition);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(88, 235, 254, 0.2);
  pointer-events: none;
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
  width: 100%;
}

.nav-links .nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(88, 235, 254, 0.2);
}

.nav-links .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(88, 235, 254, 0.3);
}

.nav-links .nav-link.active::before {
  content: "✦";
  position: absolute;
  left: -14px;
  opacity: 1;
  color: var(--neon-cyan);
  animation: sparklePulse 1.5s ease-in-out infinite;
  pointer-events: none;
  font-size: 0.6rem;
}

.nav-links .truly-yours-link {
  color: var(--neon-magenta) !important;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-shadow: 0 0 30px rgba(255, 0, 234, 0.2);
  pointer-events: auto;
  font-family: var(--font-condensed);
  position: relative;
  animation: trulyGlowPulse 2.5s ease-in-out infinite;
  padding: 6px 12px;
}

.nav-links .truly-yours-link::before {
  content: "";
  position: absolute;
  inset: -4px -8px;
  border-radius: 4px;
  background: radial-gradient(circle at center, rgba(255, 0, 234, 0.08), transparent 70%);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.nav-links .truly-yours-link:hover {
  color: #ff66f0 !important;
  text-shadow: 0 0 40px rgba(255, 0, 234, 0.6), 0 0 80px rgba(255, 0, 234, 0.3);
  transform: scale(1.05);
}

.nav-links .truly-yours-link:hover::before {
  opacity: 1;
}

/* ============================================================
   TRULY YOURS — GLOW + GLITCH EFFECT
   ============================================================ */

.nav-links .truly-yours-link {
  color: var(--neon-magenta) !important;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(255, 0, 234, 0.2);
  pointer-events: auto !important;
  font-family: var(--font-condensed);
  position: relative;

  /* Glow pulse animation */
  animation: trulyGlowPulse 2.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

/* Glow ring behind the text */
.nav-links .truly-yours-link::before {
  content: '';
  position: absolute;
  inset: -4px -8px;
  border-radius: 4px;
  background: radial-gradient(circle at center, rgba(255, 0, 234, 0.08), transparent 70%);
  opacity: 0;
  z-index: -1;
  animation: trulyGlowRing 2.5s ease-in-out infinite;
  pointer-events: none;
}

/* Glitch lines that appear on hover */
.nav-links .truly-yours-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 0, 234, 0.03) 2px,
    rgba(255, 0, 234, 0.03) 4px
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 2px;
}

/* Hover state — intensified glow + glitch */
.nav-links .truly-yours-link:hover {
  color: #ff66f0 !important;
  text-shadow:
    0 0 40px rgba(255, 0, 234, 0.6),
    0 0 80px rgba(255, 0, 234, 0.3),
    0 0 120px rgba(255, 0, 234, 0.1);
  transform: scale(1.05);
  animation: trulyGlitchHover 0.8s ease-in-out infinite;
}

.nav-links .truly-yours-link:hover::before {
  opacity: 1;
}

.nav-links .truly-yours-link:hover::after {
  opacity: 1;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

/* Main glow pulse */
@keyframes trulyGlowPulse {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 0, 234, 0.15);
    opacity: 0.9;
  }
  50% {
    text-shadow:
      0 0 40px rgba(255, 0, 234, 0.4),
      0 0 80px rgba(255, 0, 234, 0.15);
    opacity: 1;
  }
}

/* Glow ring pulse */
@keyframes trulyGlowRing {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Hover glitch effect — subtle random shifts */
@keyframes trulyGlitchHover {
  0%, 100% {
    transform: scale(1.05) translateX(0);
    text-shadow:
      0 0 40px rgba(255, 0, 234, 0.6),
      0 0 80px rgba(255, 0, 234, 0.3);
  }
  20% {
    transform: scale(1.05) translateX(-2px);
    text-shadow:
      2px 0 #58ebfe,
      0 0 40px rgba(255, 0, 234, 0.6);
  }
  40% {
    transform: scale(1.05) translateX(2px);
    text-shadow:
      -2px 0 #58ebfe,
      0 0 40px rgba(255, 0, 234, 0.6);
  }
  60% {
    transform: scale(1.05) translateX(-1px);
    text-shadow:
      1px 0 #58ebfe,
      0 0 40px rgba(255, 0, 234, 0.6);
  }
  80% {
    transform: scale(1.05) translateX(1px);
    text-shadow:
      -1px 0 #58ebfe,
      0 0 40px rgba(255, 0, 234, 0.6);
  }
}

/* ============================================================
   OPTIONAL: SPARKLE PARTICLES ON HOVER
   ============================================================ */

/* Small sparkle dots that appear on hover */
.nav-links .truly-yours-link:hover .sparkle {
  display: inline-block;
}

.sparkle {
  display: none;
  font-size: 0.5rem;
  animation: sparkleFloat 1.5s ease-in-out infinite;
}

.sparkle:nth-child(1) { animation-delay: 0s; }
.sparkle:nth-child(2) { animation-delay: 0.3s; }
.sparkle:nth-child(3) { animation-delay: 0.6s; }

@keyframes sparkleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }
}

/* ============================================================
   8. DROPDOWN MENU — DESKTOP
   ============================================================ */
.nav-dropdown {
  position: relative;
  z-index: 9999;
  overflow: visible;
  pointer-events: auto;
}

.nav-dropdown > a {
  position: relative;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 0;
  min-width: 210px;
  box-shadow: var(--shadow-card), var(--glow-magenta);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  list-style: none;
  margin: 0;
  z-index: 99999;
  overflow: visible;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--border-color);
  z-index: -1;
}

.dropdown-menu::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--bg-nav);
  z-index: 1;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  border-radius: 4px;
  margin: 2px 6px;
  letter-spacing: 0.5px;
  overflow: visible;
  cursor: pointer;
  z-index: 1;
  pointer-events: auto;
  border: none;
  background: transparent;
  font-family: var(--font-condensed);
}

.dropdown-menu li a::before {
  content: "▸";
  position: absolute;
  left: 12px;
  color: var(--neon-cyan);
  font-size: 0.6rem;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.dropdown-menu li a:hover::before {
  opacity: 1;
  left: 6px;
}

.dropdown-menu li a::after {
  content: "◆";
  position: absolute;
  right: 16px;
  color: var(--neon-magenta);
  font-size: 0.35rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown-menu li a:hover::after {
  opacity: 0.4;
}

.dropdown-menu li a:hover {
  color: #ffffff;
  background: rgba(88, 235, 254, 0.06);
  padding-left: 28px;
  transform: translateX(2px);
  text-shadow: 0 0 20px rgba(88, 235, 254, 0.15);
  border-left: 2px solid var(--neon-cyan);
  box-shadow: inset 0 0 30px rgba(88, 235, 254, 0.02);
  animation: glitchTextHover 0.3s ease 2;
  position: relative;
}

/* ============================================================
   9. NAV ACTIONS
   ============================================================ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  margin-left: auto;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.nav-actions > * {
  flex-shrink: 0;
}

.hybrid-status {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--neon-green);
  letter-spacing: 1px;
  animation: statusPulse 2s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(79, 243, 166, 0.05);
  border: 1px solid rgba(79, 243, 166, 0.1);
  white-space: nowrap;
  visibility: visible;
  opacity: 1;
  flex-shrink: 0;
}

.hybrid-status::before {
  content: "●";
  font-size: 0.5rem;
  color: var(--neon-green);
  animation: statusPulse 2s ease-in-out infinite;
}

.hybrid-status.offline {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.hybrid-status.offline::before {
  color: var(--text-muted);
}

/* ============================================================
   10. NOTIFICATION SYSTEM
   ============================================================ */
.notification-container {
  position: relative;
  z-index: 100;
  overflow: visible;
  pointer-events: auto;
}

.notification-btn {
  cursor: pointer;
  pointer-events: auto;
  z-index: 101;
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff00ea;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 0, 234, 0.4);
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-badge:not([style*="display: none"]) {
  display: flex;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: 90vw;
  max-height: 450px;
  background: rgba(10, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 0, 234, 0.1);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: none;
  z-index: 999999;
}

.notification-dropdown.active {
  display: block;
  animation: dropdownSlideDown 0.25s ease;
}

.notification-dropdown .notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-dropdown .notification-header h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  font-family: var(--font-condensed);
}

.notification-dropdown .notification-header .mark-read-btn {
  background: rgba(255, 0, 234, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-condensed);
  letter-spacing: 0.5px;
}

.notification-dropdown .notification-header .mark-read-btn:hover {
  background: rgba(255, 0, 234, 0.2);
  color: #fff;
}

.notification-dropdown .notification-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 0;
}

.notification-dropdown .notification-list::-webkit-scrollbar {
  width: 3px;
}

.notification-dropdown .notification-list::-webkit-scrollbar-track {
  background: transparent;
}

.notification-dropdown .notification-list::-webkit-scrollbar-thumb {
  background: var(--gradient-neon);
  border-radius: 99px;
}

.notification-dropdown .notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border-left: 2px solid transparent;
}

.notification-dropdown .notification-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notification-dropdown .notification-item.unread {
  border-left-color: #ff00ea;
  background: rgba(255, 0, 234, 0.03);
}

.notification-dropdown .notification-item.unread:hover {
  background: rgba(255, 0, 234, 0.06);
}

.notification-dropdown .notification-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
}

.notification-dropdown .notification-icon.like {
  background: rgba(255, 0, 221, 0.15);
  color: #ff00aa;
}

.notification-dropdown .notification-icon.cheer {
  background: rgba(255, 199, 46, 0.15);
  color: #ffc72e;
}

.notification-dropdown .notification-icon.shadow {
  background: rgba(88, 235, 254, 0.15);
  color: #58ebfe;
}

.notification-dropdown .notification-icon.comment {
  background: rgba(79, 243, 166, 0.15);
  color: #4ff3a6;
}

.notification-dropdown .notification-content {
  flex: 1;
  min-width: 0;
}

.notification-dropdown .notification-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  line-height: 1.4;
  font-family: var(--font-condensed);
}

.notification-dropdown .notification-text strong {
  color: #fff;
  font-weight: 600;
}

.notification-dropdown .notification-time {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.6rem;
  margin-top: 2px;
  font-family: var(--font-mono);
}

.notification-dropdown .notification-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.3);
}

.notification-dropdown .notification-empty i {
  font-size: 1.8rem;
  margin-bottom: 10px;
  opacity: 0.3;
}

.notification-dropdown .notification-empty p {
  font-size: 0.8rem;
  margin: 0;
  font-family: var(--font-condensed);
}

.notification-dropdown .notification-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.notification-dropdown .notification-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  font-family: var(--font-condensed);
  letter-spacing: 0.5px;
}

.notification-dropdown .notification-footer a:hover {
  color: #58ebfe;
}

/* ============================================================
   11. AVATAR
   ============================================================ */
.nav-avatar-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  overflow: visible;
  pointer-events: auto;
}

.avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 999999;
  background: rgba(10, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 0, 234, 0.1);
  min-width: 200px;
  border: 1px solid var(--border-color);
  padding: 6px 0;
  overflow: visible;
  display: none;
}

.avatar-dropdown.active,
.avatar-dropdown[style*="display: block"] {
  display: block;
  animation: dropdownSlideDown 0.25s ease;
}

/* ============================================================
   12. AUTH BUTTONS
   ============================================================ */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.auth-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 14px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

.auth-buttons .btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.auth-buttons .btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.auth-buttons .btn-primary {
  background: var(--gradient-neon);
  color: var(--text-inverse);
  box-shadow: var(--glow-magenta);
}

.auth-buttons .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-purple), 0 0 60px rgba(255, 0, 234, 0.15);
}

/* ============================================================
   13. BUTTON ICON
   ============================================================ */
.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 6px 8px;
  transition: all var(--transition);
  border-radius: 4px;
  position: relative;
  pointer-events: auto;
}

.btn-icon:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-cyan);
}

/* ============================================================
   14. MOBILE MENU BUTTON
   ============================================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  transition: all var(--transition);
  pointer-events: auto;
  z-index: 999999;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  touch-action: manipulation;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 2.5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  pointer-events: none;
  flex-shrink: 0;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu-btn:hover span {
  background: var(--neon-cyan);
}

/* ============================================================
   15. SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 5, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 40px;
  overflow-y: auto;
  animation: searchFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-overlay.active {
  display: flex;
}

.search-overlay .search-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.search-overlay .search-box {
  display: flex;
  align-items: center;
  background: rgba(173, 3, 252, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(173, 3, 252, 0.15);
  border-radius: 8px;
  padding: 4px 14px;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.645), 0 0 60px rgba(173, 3, 252, 0.15);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.search-overlay .search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-overlay .search-input-wrapper .search-icon {
  color: rgba(245, 234, 255, 0.3);
  font-size: 1rem;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.search-overlay .search-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #f5eaff;
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 12px 0;
  min-width: 0;
  width: 100%;
}

.search-overlay .search-input-wrapper input::placeholder {
  color: rgba(245, 234, 255, 0.3);
  font-weight: 300;
}

.search-overlay .search-close {
  background: none;
  border: none;
  color: rgba(245, 234, 255, 0.3);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.search-overlay .search-close:hover {
  color: #f5eaff;
  background: rgba(173, 3, 252, 0.12);
}

.search-overlay .search-results {
  margin-top: 12px;
  background: rgba(173, 3, 252, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(173, 3, 252, 0.15);
  border-radius: 8px;
  overflow: hidden;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.645);
  flex-shrink: 1;
}

/* ============================================================
   16. OVERFLOW FIXES
   ============================================================ */
.main-header .container {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.navbar {
  overflow: visible;
  position: relative;
}



/* ============================================================
   17. RESPONSIVE — TABLET (1024px and smaller)
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links {
    gap: 4px;
    margin: 0 12px;
  }
  .nav-links .nav-link {
    font-size: 0.6rem;
    padding: 5px 8px;
  }
  .nav-links .truly-yours-link {
    font-size: 0.65rem;
    padding: 5px 10px;
  }
}
/* ============================================================
   17.5 TABLET LANDSCAPE FIXES (768px - 1024px, horizontal)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    /* HEADER - Prevent overflow */
    .main-header {
        margin: 8px 16px 0 !important;
        padding: 0 12px !important;
    }

    .navbar {
        height: 48px !important;
        min-height: 48px !important;
        gap: 4px !important;
    }

    /* BRAND / LOGO - Smaller */
    .nav-brand .logo {
        font-size: 0.7rem !important;
        gap: 4px !important;
    }
    .nav-brand .logo .logo-icon {
        font-size: 0.8rem !important;
    }
    .nav-brand .hud-tag {
        display: none !important;
    }

    /* NAV LINKS - Compact */
    .nav-links {
        gap: 2px !important;
        margin: 0 4px !important;
    }
    .nav-links .nav-link {
        font-size: 0.45rem !important;
        padding: 3px 5px !important;
        letter-spacing: 0.3px !important;
    }
    /* Hide dropdown arrows on tablet to save space */
    .dropdown-arrow {
        display: none !important;
    }
    /* Truly Yours link */
    .nav-links .truly-yours-link {
        font-size: 0.55rem !important;
        padding: 3px 6px !important;
        letter-spacing: 0.5px !important;
    }

    /* DROPDOWNS - Smaller */
    .dropdown-menu {
        min-width: 130px !important;
        padding: 4px 0 !important;
    }
    .dropdown-menu li a {
        font-size: 0.5rem !important;
        padding: 4px 10px !important;
        white-space: nowrap !important;
    }

    /* NAV ACTIONS - Prevent overflow */
    .nav-actions {
        gap: 2px !important;
    }
    .nav-actions .btn-icon {
        font-size: 0.65rem !important;
        padding: 3px 4px !important;
    }
    .nav-actions .btn {
        font-size: 0.45rem !important;
        padding: 3px 6px !important;
    }
    /* Hide hybrid status on tablet to save space */
    .hybrid-status {
        display: none !important;
    }
    .notification-badge {
        font-size: 0.35rem !important;
        min-width: 12px !important;
        padding: 0 3px !important;
        top: -2px !important;
        right: -2px !important;
    }

    /* MOBILE MENU BUTTON - HIDE ON TABLET */
    .mobile-menu-btn {
        display: none !important;
    }

    /* ENSURE NAV LINKS ARE VISIBLE */
    .nav-links {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        flex-direction: row !important;
        pointer-events: auto !important;
    }
}

/* ============================================================
   17.6 TABLET PORTRAIT FIXES (768px - 1024px, vertical)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .main-header {
        margin: 10px 16px 0 !important;
        padding: 0 16px !important;
    }

    .navbar {
        height: 54px !important;
        min-height: 54px !important;
        gap: 6px !important;
    }

    /* BRAND */
    .nav-brand .logo {
        font-size: 0.85rem !important;
        gap: 5px !important;
    }
    .nav-brand .logo .logo-icon {
        font-size: 0.95rem !important;
    }
    .nav-brand .hud-tag {
        display: none !important;
    }

    /* NAV LINKS */
    .nav-links {
        gap: 3px !important;
        margin: 0 8px !important;
    }
    .nav-links .nav-link {
        font-size: 0.5rem !important;
        padding: 4px 6px !important;
        letter-spacing: 0.5px !important;
    }
    .nav-links .truly-yours-link {
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
    }

    /* DROPDOWNS */
    .dropdown-menu {
        min-width: 150px !important;
    }
    .dropdown-menu li a {
        font-size: 0.55rem !important;
        padding: 5px 12px !important;
    }

    /* NAV ACTIONS */
    .nav-actions {
        gap: 3px !important;
    }
    .nav-actions .btn-icon {
        font-size: 0.75rem !important;
        padding: 4px 5px !important;
    }
    .nav-actions .btn {
        font-size: 0.5rem !important;
        padding: 4px 8px !important;
    }
    .hybrid-status {
        font-size: 0.45rem !important;
        padding: 2px 6px !important;
    }
    .notification-badge {
        font-size: 0.4rem !important;
        min-width: 13px !important;
        padding: 0 3px !important;
    }

    /* MOBILE MENU BUTTON - HIDE ON TABLET */
    .mobile-menu-btn {
        display: none !important;
    }

    /* ENSURE NAV LINKS ARE VISIBLE */
    .nav-links {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        flex-direction: row !important;
        pointer-events: auto !important;
    }
}

/* ============================================================
   17.7 SMALL TABLET / LARGE PHONE (600px - 767px)
   ============================================================ */
@media (min-width: 600px) and (max-width: 767px) {
    .main-header {
        margin: 6px 10px 0 !important;
        padding: 0 12px !important;
    }

    .navbar {
        height: 50px !important;
        min-height: 50px !important;
        gap: 4px !important;
    }

    /* BRAND */
    .nav-brand .logo {
        font-size: 0.75rem !important;
        gap: 4px !important;
    }
    .nav-brand .logo .logo-icon {
        font-size: 0.85rem !important;
    }
    .nav-brand .hud-tag {
        display: none !important;
    }

    /* MOBILE MENU - SHOW HAMBURGER */
    .mobile-menu-btn {
        display: flex !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 4px 6px !important;
        order: 5 !important;
        margin-left: 2px !important;
    }
    .mobile-menu-btn span {
        width: 20px !important;
        height: 2px !important;
        margin: 2.5px 0 !important;
    }

    /* NAV LINKS - MOBILE OVERLAY */
    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: -12px !important;
        right: -12px !important;
        background: rgba(10, 5, 8, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 6px !important;
        padding: 10px !important;
        box-shadow: var(--shadow-card) !important;
        gap: 2px !important;
        z-index: 99999 !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
    .nav-links.open {
        display: flex !important;
        pointer-events: auto !important;
        animation: dropdownSlideDown 0.25s ease !important;
    }
    .nav-links .nav-link {
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
        width: 100% !important;
        display: block !important;
        text-align: left !important;
    }
    .nav-links .truly-yours-link {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        display: block !important;
        text-align: left !important;
    }

    /* DROPDOWNS - MOBILE STYLE */
    .nav-dropdown {
        position: relative !important;
        width: 100% !important;
    }
    .nav-dropdown > a {
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 40px !important;
    }
    .nav-dropdown > a .dropdown-arrow {
        font-size: 0.5rem !important;
        margin-left: 8px !important;
        flex-shrink: 0 !important;
    }
    .nav-dropdown .dropdown-menu {
        position: relative !important;
        top: auto !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        background: rgba(10, 5, 8, 0.6) !important;
        border: none !important;
        border-left: 2px solid var(--neon-magenta) !important;
        border-radius: 4px !important;
        padding: 0 0 0 8px !important;
        margin: 0 0 0 10px !important;
        width: calc(100% - 10px) !important;
        min-width: auto !important;
        display: none !important;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease, opacity 0.3s ease !important;
        pointer-events: none !important;
    }
    .nav-dropdown.open .dropdown-menu {
        display: block !important;
        max-height: 500px !important;
        opacity: 1 !important;
        padding: 4px 0 4px 8px !important;
        margin: 2px 0 4px 10px !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
    }
    .dropdown-menu li a {
        padding: 7px 10px !important;
        font-size: 0.6rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-height: 36px !important;
        transform: none !important;
        animation: none !important;
        border-left: 2px solid transparent !important;
    }
    .dropdown-menu li a:hover {
        padding-left: 16px !important;
        transform: none !important;
        animation: none !important;
        border-left-color: var(--neon-cyan) !important;
    }
    /* Keep the arrow in place */
    .dropdown-menu li a::before {
        content: "▸" !important;
        position: absolute !important;
        left: 4px !important;
        color: var(--neon-cyan) !important;
        font-size: 0.5rem !important;
        opacity: 0 !important;
        transition: all 0.2s ease !important;
        pointer-events: none !important;
        transform: none !important;
    }
    .dropdown-menu li a:hover::before {
        opacity: 1 !important;
        left: 4px !important;
    }
    .dropdown-menu li a::after {
        content: "◆" !important;
        position: absolute !important;
        right: 10px !important;
        color: var(--neon-magenta) !important;
        font-size: 0.3rem !important;
        opacity: 0 !important;
        transition: all 0.2s ease !important;
        pointer-events: none !important;
        transform: none !important;
    }
    .dropdown-menu li a:hover::after {
        opacity: 0.4 !important;
    }

    /* NAV ACTIONS */
    .nav-actions {
        gap: 2px !important;
        margin-left: auto !important;
    }
    .nav-actions .btn-icon {
        font-size: 0.7rem !important;
        padding: 3px 4px !important;
    }
    .nav-actions .btn {
        font-size: 0.5rem !important;
        padding: 3px 6px !important;
    }
    .nav-actions .btn-outline {
        display: none !important;
    }
    .hybrid-status {
        display: none !important;
    }
    .notification-badge {
        font-size: 0.4rem !important;
        min-width: 12px !important;
        padding: 0 3px !important;
        top: -2px !important;
        right: -2px !important;
    }

    /* FIX NOTIFICATION DROPDOWN ON MOBILE */
    .notification-dropdown {
        position: fixed !important;
        top: 56px !important;
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        max-width: none !important;
        min-width: auto !important;
    }

    /* FIX AVATAR DROPDOWN ON MOBILE */
    .avatar-dropdown {
        position: fixed !important;
        top: 56px !important;
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        min-width: auto !important;
    }
}
/* ============================================================
   18. RESPONSIVE — MOBILE (768px and smaller)
   ============================================================ */
@media (max-width: 768px) {
  /* 18.1 HEADER */
  .main-header {
    margin: 8px 8px 0;
    top: 8px;
    padding: 0 12px;
    background: rgba(10, 5, 8, 0.92);
    overflow: visible;
  }
  .main-header .container {
    padding: 0 6px;
    overflow: visible;
  }
  /* 18.2 NAVBAR */
  .navbar {
    height: 56px;
    min-height: 56px;
    gap: 6px;
    overflow: visible;
  }
  /* 18.3 HIDE ELEMENTS */
  .nav-brand .hud-tag {
    display: none;
  }
  .hybrid-status {
    display: none;
  }
  /* 18.4 MOBILE MENU BUTTON */
  .mobile-menu-btn {
    display: flex;
    order: 5;
    margin-left: 2px;
  }
  /* 18.5 NAV LINKS - MOBILE */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: -12px;
    right: -12px;
    background: rgba(10, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    box-shadow: var(--shadow-card), var(--glow-magenta);
    gap: 2px;
    align-items: stretch;
    z-index: 99999;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 60vh;
    width: auto;
    min-width: 0;
    pointer-events: none;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-links.open {
    display: flex;
    pointer-events: auto !important;
    animation: dropdownSlideDown 0.25s ease;
    overflow-y: auto;
  }
  .nav-links li {
    width: 100%;
    list-style: none;
    position: relative;
    flex-shrink: 0;
  }
  .nav-links .nav-link {
    padding: 10px 14px;
    font-size: 0.75rem;
    width: 100%;
    display: block;
    text-align: left;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .nav-links .nav-link::before {
    display: none;
  }
  .nav-links .nav-link.active::before {
    display: none;
  }
  .nav-links .nav-link.active {
    color: var(--neon-cyan);
    background: rgba(88, 235, 254, 0.06);
  }
  .nav-links .truly-yours-link {
    font-size: 0.85rem;
    padding: 10px 14px;
    display: block;
    text-align: left;
  }
  /* 18.6 MOBILE DROPDOWN - Parent container */
  .nav-dropdown {
    position: relative;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
  }
  .nav-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.75rem;
    border-radius: 4px;
    background: transparent;
    transition: background 0.2s ease;
    z-index: 2;
    position: relative;
    pointer-events: auto !important;
    cursor: pointer !important;
    min-height: 44px;
    flex-shrink: 0;
  }
  .nav-dropdown > a:hover {
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-dropdown > a .dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--text-muted);
  }
  .nav-dropdown.open > a .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--neon-cyan);
  }
  .nav-dropdown.open > a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2px;
  }
  /* 18.7 MOBILE DROPDOWN MENU - INLINE - PUSHES CONTENT DOWN */
  .nav-dropdown .dropdown-menu {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    background: rgba(10, 5, 8, 0.6) !important;
    border: none !important;
    border-left: 2px solid var(--neon-magenta) !important;
    border-radius: 4px !important;
    padding: 4px 0 4px 8px !important;
    margin: 2px 0 4px 12px !important;
    width: calc(100% - 12px) !important;
    min-width: auto !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    display: none !important;
    z-index: 1 !important;
    overflow: visible !important;
    max-height: none !important;
    transition: max-height 0.3s ease, opacity 0.3s ease !important;
    flex-shrink: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 0 0 8px !important;
    margin: 0 0 0 12px !important;
    overflow: hidden !important;
  }
  .nav-dropdown.open .dropdown-menu {
    display: block !important;
    pointer-events: auto !important;
    animation: dropdownSlideDown 0.3s ease !important;
    max-height: 500px !important;
    opacity: 1 !important;
    overflow-y: auto !important;
    padding: 4px 0 4px 8px !important;
    margin: 2px 0 4px 12px !important;
  }
  /* 18.8 MOBILE DROPDOWN LINKS - REPLACE with this */
  .dropdown-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 14px 10px 12px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    border-radius: 4px !important;
    margin: 1px 0 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    background: rgba(10, 5, 8, 0.3) !important;
    border: none !important;
    border-left: 2px solid transparent !important;
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
    position: relative !important;
    font-family: var(--font-condensed) !important;
    z-index: 3 !important;
    pointer-events: auto !important;
    min-height: 40px !important;
    flex-shrink: 0 !important;
    color: var(--text-secondary) !important;
    /* CRITICAL - Kill the glitch animation and transforms */
    transform: none !important;
    animation: none !important;
    box-shadow: none !important;
    will-change: background, color, padding-left;
  }
  /* CRITICAL - Hover without shifting */
  .dropdown-menu li a:hover {
    color: #ffffff !important;
    background: rgba(88, 235, 254, 0.12) !important;
    padding-left: 22px !important;
    border-left: 2px solid var(--neon-cyan) !important;
    /* KILL ALL TRANSFORMS AND ANIMATIONS */
    transform: none !important;
    animation: none !important;
    box-shadow: none !important;
  }
  /* Keep the arrow in place */
  .dropdown-menu li a::before {
    content: "▸" !important;
    position: absolute !important;
    left: 4px !important;
    color: var(--neon-cyan) !important;
    font-size: 0.5rem !important;
    opacity: 0 !important;
    transition: all 0.2s ease !important;
    pointer-events: none !important;
    transform: none !important;
  }
  .dropdown-menu li a:hover::before {
    opacity: 1 !important;
    left: 4px !important; /* Don't move it */
  }
  .dropdown-menu li a::after {
    content: "◆" !important;
    position: absolute !important;
    right: 10px !important;
    color: var(--neon-magenta) !important;
    font-size: 0.3rem !important;
    opacity: 0 !important;
    transition: all 0.2s ease !important;
    pointer-events: none !important;
    transform: none !important;
  }
  .dropdown-menu li a:hover::after {
    opacity: 0.4 !important;
  }
  /* 18.9 NAV ACTIONS - MOBILE */
  .nav-actions {
    gap: 2px;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: 999999;
  }
  .nav-actions .auth-buttons .btn {
    padding: 4px 10px;
    font-size: 0.55rem;
  }
  .nav-actions .auth-buttons .btn-outline {
    display: none;
  }
  .nav-actions .btn-icon {
    font-size: 0.9rem;
    padding: 4px 6px;
    position: relative;
    z-index: 999999;
    pointer-events: auto;
  }
  /* 18.10 NOTIFICATION BADGE */
  .notification-badge {
    font-size: 0.4rem;
    min-width: 14px;
    padding: 0 4px;
  }
  .notification-dropdown {
    position: fixed;
    top: 60px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 60vh;
    min-width: auto;
  }
  /* 18.11 AVATAR DROPDOWN */
  .avatar-dropdown {
    position: fixed;
    top: 56px;
    right: 8px;
    left: 8px;
    width: auto;
    min-width: auto;
  }
  /* 18.12 SCROLLBAR STYLING */
  .nav-links::-webkit-scrollbar {
    width: 4px;
  }
  .nav-links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }
  .nav-links::-webkit-scrollbar-thumb {
    background: var(--gradient-neon);
    border-radius: 4px;
  }
  .nav-links::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
  }
}
/* ============================================================
   19. RESPONSIVE — SMALL MOBILE (480px and smaller)
   ============================================================ */
@media (max-width: 480px) {
  /* 19.1 HEADER */
  .main-header {
    margin: 4px 4px 0;
    top: 4px;
    padding: 0 8px;
  }
  .main-header .container {
    padding: 0 4px;
  }
  /* 19.2 NAVBAR */
  .navbar {
    min-height: 48px;
    height: 48px;
    gap: 4px;
  }
  /* 19.3 LOGO */
  .nav-brand .logo {
    font-size: 0.8rem;
    gap: 4px;
  }
  .nav-brand .logo .logo-icon {
    font-size: 0.9rem;
  }
  /* 19.4 MOBILE MENU BUTTON */
  .mobile-menu-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 4px 6px;
  }
  .mobile-menu-btn span {
    width: 18px;
    height: 2px;
    margin: 2px 0;
  }
  .mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
  }
  .mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
  }
  /* 19.5 NAV LINKS */
  .nav-links {
    top: calc(100% + 6px);
    left: -8px;
    right: -8px;
    padding: 10px;
    max-height: 60vh;
  }
  .nav-links .nav-link {
    font-size: 0.7rem;
    padding: 8px 12px;
  }
  .nav-links .truly-yours-link {
    font-size: 0.75rem;
    padding: 8px 12px;
  }
  /* 19.6 DROPDOWN */
  .nav-dropdown > a {
    padding: 8px 12px;
    font-size: 0.7rem;
  }
  .nav-dropdown .dropdown-menu {
    padding: 4px 0 4px 8px !important;
    margin: 2px 0 4px 8px !important;
    width: calc(100% - 8px) !important;
  }
  .dropdown-menu li a {
    padding: 8px 10px 8px 8px !important;
    font-size: 0.65rem !important;
  }
  .dropdown-menu li a:hover {
    padding-left: 16px !important;
  }
  .dropdown-menu li a::before {
    font-size: 0.4rem !important;
  }
  .dropdown-menu li a:hover::before {
    left: 1px !important;
  }
  .dropdown-menu li a::after {
    right: 8px !important;
    font-size: 0.25rem !important;
  }
  /* 19.7 NAV ACTIONS */
  .nav-actions .btn-icon {
    font-size: 0.75rem;
    padding: 3px 4px;
  }
  .nav-actions .auth-buttons .btn-primary {
    padding: 3px 8px;
    font-size: 0.5rem;
  }
  /* 19.8 NOTIFICATION */
  .notification-dropdown {
    top: 50px;
  }
  /* 19.9 AVATAR */
  .avatar-dropdown {
    top: 48px;
  }
}
