/* ==========================================================================
   AUDIKUNG Luxury Glass Navigator Bar (Single Source of Craft)
   - Menu: 👤 รู้จักออดี้, 📈 การเงิน · ลงทุน, 🤖 ความรู้ + AI, 🌿 พัก & โฟกัส, 🎧 สิ่งที่ชอบ, 💬 ติดต่องาน
   - Dynamic World Colors on Hover/Active (Gold, Mint, Cyan, Lime, Purple, Coral)
   - iOS-Style Switch Theme Toggle with Sliding Sun/Moon Knob
   - Clean Contained Motion Toggle with Zero Overflow / Leakage
   - Dedicated User Account Dropdown Capsule
   ========================================================================== */

/* ── 1. HEADER CONTAINER & LIQUID GLASS ── */
body .header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 80px !important;
  height: auto !important;
  padding: 0 clamp(14px, 3.5vw, 32px) !important;
  background: rgba(8, 14, 30, 0.85) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-bottom: 1px solid rgba(229, 197, 134, 0.22) !important;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  box-sizing: border-box !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html[data-theme="light"] body .header {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-bottom: 1px solid rgba(20, 32, 50, 0.08) !important;
  box-shadow: 0 10px 30px rgba(20, 32, 50, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.is-scrolled .header,
body .header.is-compact {
  width: min(1440px, calc(100% - 24px)) !important;
  max-width: 1440px !important;
  top: 8px !important;
  margin: 0 auto !important;
  border-radius: 9999px !important;
  min-height: 72px !important;
  height: auto !important;
  padding: 6px clamp(12px, 2.5vw, 22px) !important;
  background: rgba(6, 10, 24, 0.92) !important;
  border: 1px solid rgba(229, 197, 134, 0.32) !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

html[data-theme="light"] body.is-scrolled .header,
html[data-theme="light"] body .header.is-compact {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(20, 32, 50, 0.09) !important;
  box-shadow: 0 14px 36px -8px rgba(20, 32, 50, 0.08), 0 2px 6px rgba(20, 32, 50, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* ── 2. ZONE 1: BRAND LOGO (ซ้าย) ── */
body .header .logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: inherit !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  border-radius: 999px !important;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.brand-avatar-wrap {
  position: relative !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  padding: 1.5px !important;
  background: linear-gradient(135deg, #e5c586, rgba(201, 168, 76, 0.4)) !important;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.4) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  flex-shrink: 0 !important;
}

.brand-avatar-wrap .brand-face,
body .header .logo .brand-face {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.brand-name {
  font-family: 'Outfit', 'Mitr', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  color:#f4ecd8 !important;
  background:none !important;
  -webkit-text-fill-color:currentColor !important;
  transition: all 0.25s ease !important;
}

html[data-theme="light"] .brand-name {
  color: #0f172a !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #0f172a !important;
}

html[data-theme="light"] .brand-avatar-wrap {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25) !important;
}

body .header .logo .logo-dot {
  width: 7px !important;
  height: 7px !important;
  background-color: #e5c586 !important;
  border-radius: 50% !important;
  display: inline-block !important;
  box-shadow: 0 0 8px #c9a84c !important;
  animation: pulseBrandDot 2.8s infinite ease-in-out !important;
  flex-shrink: 0 !important;
}

html[data-theme="light"] body .header .logo .logo-dot {
  background-color: #f59e0b !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55) !important;
}

@keyframes pulseBrandDot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 0.55; box-shadow: 0 0 14px #e5c586; }
}

body .header .logo:hover .brand-avatar-wrap {
  transform: scale(1.08) rotate(4deg) !important;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.6) !important;
}

/* ── 3. ZONE 2: CENTER MENU ISLAND & DYNAMIC WORLD COLORS ── */
.nav-indicator,
body .header .nav-indicator,
body .nav-island .nav-indicator,
body .nav-indicator {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body .header nav a::before,
body .header nav a::after,
body .header nav a.nav-item::before,
body .header nav a.nav-item::after {
  display: none !important;
  content: none !important;
}

.nav-wrap { min-width: 0; }
.nav-scroll-cue { display:none; }
body .header nav.nav-island {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(229, 197, 134, 0.2) !important;
  border-radius: 999px !important;
  padding: 3px 5px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  overflow: visible !important;
  transition: all 0.25s ease !important;
}

html[data-theme="light"] body .header nav.nav-island {
  background: rgba(20, 32, 50, 0.04) !important;
  border: 1px solid rgba(20, 32, 50, 0.08) !important;
  box-shadow: inset 0 1px 2px rgba(20, 32, 50, 0.03), 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

body .header nav a.nav-item,
body .header nav a {
  position: relative !important;
  z-index: 1 !important;
  font-family: 'Mitr', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: rgba(240, 240, 245, 0.8) !important;
  text-decoration: none !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html[data-theme="light"] body .header nav a.nav-item,
html[data-theme="light"] body .header nav a {
  color: #334155 !important;
}
html[data-theme="light"] body .header nav a.nav-item:hover,
html[data-theme="light"] body .header nav a:hover {
  color: #0f172a !important;
}

/* ✦ DYNAMIC WORLD COLORS ✦ */

/* 01. About (👤 รู้จักออดี้): Warm Gold */
body .header nav a.nav-item-about:hover,
body .header nav a[data-world="about"]:hover,
body .header nav a.nav-item-about.is-active {
  color: #f4e1b2 !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(226, 201, 143, 0.22), rgba(201, 168, 76, 0.08)) !important;
  border-color: rgba(226, 201, 143, 0.5) !important;
  box-shadow: 0 4px 18px -2px rgba(226, 201, 143, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1.5px) !important;
}
html[data-theme="light"] body .header nav a.nav-item-about:hover,
html[data-theme="light"] body .header nav a[data-world="about"]:hover,
html[data-theme="light"] body .header nav a.nav-item-about.is-active {
  color: #92400e !important;
  font-weight: 600 !important;
  background: rgba(254, 243, 199, 0.9) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 3px 12px -2px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* 02. Finance (📈 การเงิน · ลงทุน): Mint / Emerald Green */
body .header nav a.nav-item-finance:hover,
body .header nav a[data-world="finance"]:hover,
body .header nav a.nav-item-finance.is-active {
  color: #6ee7b7 !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.08)) !important;
  border-color: rgba(16, 185, 129, 0.55) !important;
  box-shadow: 0 4px 18px -2px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1.5px) !important;
}
html[data-theme="light"] body .header nav a.nav-item-finance:hover,
html[data-theme="light"] body .header nav a[data-world="finance"]:hover,
html[data-theme="light"] body .header nav a.nav-item-finance.is-active {
  color: #065f46 !important;
  font-weight: 600 !important;
  background: rgba(209, 250, 229, 0.9) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 3px 12px -2px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* 03. AI / Knowledge (🤖 ความรู้ + AI): Electric Sky Cyan */
body .header nav a.nav-item-ai:hover,
body .header nav a[data-world="knowledge"]:hover,
body .header nav a.nav-item-ai.is-active {
  color: #7dd3fc !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.08)) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 4px 18px -2px rgba(56, 189, 248, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1.5px) !important;
}
html[data-theme="light"] body .header nav a.nav-item-ai:hover,
html[data-theme="light"] body .header nav a[data-world="knowledge"]:hover,
html[data-theme="light"] body .header nav a.nav-item-ai.is-active {
  color: #0369a1 !important;
  font-weight: 600 !important;
  background: rgba(224, 242, 254, 0.9) !important;
  border-color: rgba(14, 165, 233, 0.35) !important;
  box-shadow: 0 3px 12px -2px rgba(14, 165, 233, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* 04. Focus (🌿 พัก & โฟกัส): Fresh Sage / Lime */
body .header nav a.nav-item-focus:hover,
body .header nav a[data-world="focus"]:hover,
body .header nav a.nav-item-focus.is-active {
  color: #bef264 !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(190, 242, 100, 0.22), rgba(132, 204, 22, 0.08)) !important;
  border-color: rgba(190, 242, 100, 0.5) !important;
  box-shadow: 0 4px 18px -2px rgba(190, 242, 100, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1.5px) !important;
}
html[data-theme="light"] body .header nav a.nav-item-focus:hover,
html[data-theme="light"] body .header nav a[data-world="focus"]:hover,
html[data-theme="light"] body .header nav a.nav-item-focus.is-active {
  color: #3f6212 !important;
  font-weight: 600 !important;
  background: rgba(236, 252, 203, 0.9) !important;
  border-color: rgba(132, 204, 22, 0.35) !important;
  box-shadow: 0 3px 12px -2px rgba(132, 204, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* 05. Interests (🎧 สิ่งที่ชอบ): Lavender / Royal Purple */
body .header nav a.nav-item-interests:hover,
body .header nav a[data-world="interests"]:hover,
body .header nav a.nav-item-interests.is-active {
  color: #d8b4fe !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(216, 180, 254, 0.22), rgba(168, 85, 247, 0.08)) !important;
  border-color: rgba(216, 180, 254, 0.55) !important;
  box-shadow: 0 4px 18px -2px rgba(216, 180, 254, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1.5px) !important;
}
html[data-theme="light"] body .header nav a.nav-item-interests:hover,
html[data-theme="light"] body .header nav a[data-world="interests"]:hover,
html[data-theme="light"] body .header nav a.nav-item-interests.is-active {
  color: #6b21a8 !important;
  font-weight: 600 !important;
  background: rgba(243, 232, 255, 0.9) !important;
  border-color: rgba(168, 85, 247, 0.35) !important;
  box-shadow: 0 3px 12px -2px rgba(168, 85, 247, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* 06. Contact (💬 ติดต่องาน): Vibrant LINE Green / Emerald */
body .header nav a.nav-item-contact:hover,
body .header nav a[data-world="contact"]:hover,
body .header nav a.nav-item-contact.is-active {
  color: #86efac !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.22), rgba(5, 150, 105, 0.08)) !important;
  border-color: rgba(6, 199, 85, 0.55) !important;
  box-shadow: 0 4px 18px -2px rgba(6, 199, 85, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1.5px) !important;
}
html[data-theme="light"] body .header nav a.nav-item-contact:hover,
html[data-theme="light"] body .header nav a[data-world="contact"]:hover,
html[data-theme="light"] body .header nav a.nav-item-contact.is-active {
  color: #065f46 !important;
  font-weight: 600 !important;
  background: rgba(220, 252, 231, 0.9) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 3px 12px -2px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body .header nav a.nav-item:active {
  transform: translateY(0.5px) scale(0.98) !important;
}

/* ── 4. ZONE 3: ACTIONS & UTILITIES (ขวา) ── */
body .view-controls {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

/* iOS-Style Theme Toggle Switch with Sliding Knob */
body .theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 136px !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: none !important;
  padding: 0 10px 0 5px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  color: #f0f0f5 !important;
  font-family: 'Mitr', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  transition: all 0.22s ease !important;
}

html[data-theme="light"] body .theme-toggle {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(20, 32, 50, 0.1) !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(20, 32, 50, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body .theme-toggle:hover {
  background: rgba(201, 168, 76, 0.12) !important;
  border-color: rgba(201, 168, 76, 0.5) !important;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.2) !important;
  transform: translateY(-1px) !important;
}

html[data-theme="light"] body .theme-toggle:hover {
  background: #ffffff !important;
  border-color: rgba(20, 32, 50, 0.18) !important;
  box-shadow: 0 3px 10px rgba(20, 32, 50, 0.08) !important;
  transform: translateY(-1px) !important;
}

/* The Sliding Track */
body .theme-track {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 52px !important;
  height: 28px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  background: #233451 !important;
  border: 1px solid #9bacc5 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

html[data-theme="light"] body .theme-track {
  background: #52657e !important;
  border: 1px solid #42556e !important;
  box-shadow: inset 0 1px 2px rgba(20, 32, 50, 0.08) !important;
}

body .theme-sun,
body .theme-moon {
  font-size: 11px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  pointer-events: none !important;
  user-select: none !important;
}

body .theme-sun {
  color: #fef08a !important;
}

body .theme-moon {
  color: #fcd34d !important;
}

html[data-theme="light"] body .theme-sun {
  color: #fff1a6 !important;
}

html[data-theme="light"] body .theme-moon {
  color: #dbe5f2 !important;
}

/* The Smooth Sliding Knob */
body .theme-knob {
  position: absolute !important;
  left: 2px !important;
  top: 2px !important;
  width: 22px !important;
  height: 22px !important;
  transform: translateX(0) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: grid !important;
  place-items: center !important;
  font-style: normal !important;
  pointer-events: none !important;
}

html[data-theme="light"] body .theme-knob {
  background: #ffffff !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.18), 0 0 1px rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="dark"] body .theme-knob {
  transform: translateX(24px) !important;
  background: #f8fafc !important;
}

body .theme-icon {
  display: none !important;
}

body .theme-text {
  position: static !important;
  display: inline-block !important;
  width: 4em !important;
  height: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
  font-family: 'Mitr', sans-serif !important;
  font-size: 14px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

/* Contained Motion Toggle Button (Zero Leakage) */
body .motion,
body .motion-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 120px !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: none !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f0f0f5 !important;
  font-family: 'Mitr', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  position: relative !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  transition: all 0.22s ease !important;
}

html[data-theme="light"] body .motion,
html[data-theme="light"] body .motion-toggle {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(20, 32, 50, 0.1) !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(20, 32, 50, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body .motion .motion-icon,
body .motion-toggle .motion-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  color: #38bdf8 !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}

html[data-theme="light"] body .motion .motion-icon,
html[data-theme="light"] body .motion-toggle .motion-icon {
  color: #0284c7 !important;
}

body .motion .motion-icon svg,
body .motion-toggle .motion-icon svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  fill: currentColor !important;
}

body .motion .motion-text,
body .motion-toggle .motion-text {
  font-size: 14px !important;
  position: static !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  font-family: 'Mitr', sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

body .motion:hover,
body .motion-toggle:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25) !important;
  transform: translateY(-1px) !important;
}

html[data-theme="light"] body .motion:hover,
html[data-theme="light"] body .motion-toggle:hover {
  background: #ffffff !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
  color: #0284c7 !important;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.12) !important;
  transform: translateY(-1px) !important;
}

body .motion:active,
body .motion-toggle:active {
  transform: translateY(0.5px) scale(0.97) !important;
}

.header-divider {
  display: none !important;
}

/* ── 5. ZONE 4: USER ACCOUNT & AUTH BUTTON (ขวาสุด) ── */
.auth-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  z-index: 102 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
}

.auth-nav-login {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.18), rgba(201, 168, 76, 0.06)) !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  color: #e5c586 !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  font-family: 'Mitr', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
}

html[data-theme="light"] .auth-nav-login {
  background: #0f172a !important;
  border: 1px solid #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="light"] .auth-nav-login:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.auth-nav-login:hover {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0.14)) !important;
  border-color: #c9a84c !important;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* User Account Capsule when Logged-in */
.auth-nav-account {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 3px 10px 3px 4px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(201, 168, 76, 0.42) !important;
  color: #f0f0f5 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html[data-theme="light"] .auth-nav-account {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(20, 32, 50, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(20, 32, 50, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .auth-nav-account:hover {
  background: #ffffff !important;
  border-color: rgba(20, 32, 50, 0.22) !important;
  box-shadow: 0 3px 12px rgba(20, 32, 50, 0.08) !important;
  transform: translateY(-1px) !important;
}

html[data-theme="light"] .auth-nav-account .auth-nav-avatar {
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1) !important;
}

.auth-nav-account:hover {
  background: rgba(201, 168, 76, 0.15) !important;
  border-color: rgba(201, 168, 76, 0.75) !important;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
}

.auth-nav-account .auth-nav-avatar {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: 1.5px solid #e5c586 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.35) !important;
  overflow: hidden !important;
}

.auth-nav-avatar img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.auth-notif-dot {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 7px !important;
  height: 7px !important;
  background: #10b981 !important;
  border: 1.5px solid #050b18 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 6px #10b981 !important;
}

.auth-nav-username {
  font-family: 'Mitr', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #f0f0f5 !important;
  max-width: 90px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  letter-spacing: 0.3px !important;
}

html[data-theme="light"] .auth-nav-username {
  color: #0f172a !important;
}

.auth-nav-chevron {
  color: rgba(229, 197, 134, 0.85) !important;
  transition: transform 0.2s ease !important;
  flex-shrink: 0 !important;
  margin-left: 1px !important;
}

html[data-theme="light"] .auth-nav-chevron {
  color: #64748b !important;
}

.auth-nav-btn:hover .auth-nav-chevron {
  transform: translateY(1px) !important;
  color: #e5c586 !important;
}

html[data-theme="light"] .auth-nav-btn:hover .auth-nav-chevron {
  color: #0f172a !important;
}

/* Profile dropdown light/dark pair now lives in auth.js (2026-10-18), matched to the shell nav. */

/* ── 6. RESPONSIVE OPTIMIZATIONS ── */
.pd-wrap {
  top:calc(var(--header-size,80px) + 8px) !important;
  max-height:calc(100dvh - var(--header-size,80px) - 24px);
  max-width:calc(100vw - 24px);
  overflow-y:auto;
}
body .header nav a:hover,
body .header nav a:focus-visible { translate:0 -2px !important; }
body .header nav a:focus-visible,
body .theme-toggle:focus-visible,
body .motion-toggle:focus-visible {
  outline:2px solid #e2c98f !important;
  outline-offset:-3px !important;
}
html[data-theme="light"] body .header nav a:focus-visible,
html[data-theme="light"] body .theme-toggle:focus-visible,
html[data-theme="light"] body .motion-toggle:focus-visible {
  outline-color:#334155 !important;
}
@media (max-width:1600px) {
  .auth-nav-username { display:none !important; }
}
@media (max-width: 1280px) {
  body.is-scrolled .header,
  body .header.is-compact {
    width: min(1280px, calc(100% - 16px)) !important;
    padding: 5px 12px !important;
  }
  body .theme-text,
  body .motion .motion-text,
  body .motion-toggle .motion-text {
    display: none !important;
  }
  body .theme-toggle {
    width:60px !important;
    padding:0 3px !important;
  }
  body .motion,
  body .motion-toggle {
    width:44px !important;
    padding:0 !important;
  }
  .auth-nav-username {
    display: none !important;
  }
  body .header nav a.nav-item,
  body .header nav a {
    padding:8px 10px !important;
    font-size:14px !important;
  }
  .auth-nav-login { width:44px !important; padding:0 !important; justify-content:center !important; }
  .auth-nav-login span {
    position:absolute !important; width:1px !important; height:1px !important;
    overflow:hidden !important; clip-path:inset(50%) !important;
  }
}

@media (max-width: 1180px) {
  body .header {
    flex-wrap:wrap !important;
    min-height:0 !important;
    padding:8px 16px !important;
    gap:6px 12px !important;
  }
  body .view-controls { margin-left:auto !important; }
  .nav-wrap { order:3; width:100%; }
  body .header nav.nav-island {
    width:100% !important;
    justify-content:center !important;
    gap:2px !important;
    padding:3px 4px !important;
  }
  body.is-scrolled .header,
  body .header.is-compact {
    border-radius:20px !important;
    padding:8px 12px !important;
  }
}

@media (max-width: 820px) {
  body .header {
    flex-wrap: wrap !important;
    padding:8px 12px !important;
    gap:6px 8px !important;
    min-height: auto !important;
    border-radius: 20px !important;
  }
  body.is-scrolled .header,
  body .header.is-compact {
    width: calc(100% - 16px) !important;
    border-radius: 20px !important;
  }
  body .header nav.nav-island {
    order: 3 !important;
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding:3px 24px 3px 4px !important;
    scroll-padding-inline:8px 26px;
    scroll-snap-type:x proximity;
  }
  body .header nav.nav-island::-webkit-scrollbar {
    display: none !important;
  }
  body .header nav a.nav-item,
  body .header nav a {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding:8px 10px !important;
    font-size:14px !important;
    scroll-snap-align:start;
  }
  .nav-wrap { position:relative; }
  .nav-scroll-cue {
    position:absolute; right:0; top:1px; bottom:1px;
    width:24px; display:grid; place-items:center; border-radius:0 24px 24px 0;
    background:linear-gradient(90deg,transparent,#172033 40%);
    color:#e2c98f; font:24px/1 system-ui,sans-serif; pointer-events:none;
  }
  html[data-theme="light"] .nav-scroll-cue {
    background:linear-gradient(90deg,transparent,#e9edf3 40%); color:#334155;
  }
  body .header .logo { gap:7px !important; padding:0 !important; min-width:0 !important; width:auto !important; }
  .brand-avatar-wrap { width:30px !important; height:30px !important; }
  body .header .logo .brand-name { min-width:0 !important; width:auto !important; font-size:15px !important; letter-spacing:1px !important; }
  body .header .logo .logo-dot { display:none !important; }
  .auth-nav-account { width:44px !important; padding:3px !important; gap:0 !important; justify-content:center !important; }
  .auth-nav-account .auth-nav-chevron { display:none !important; }
}

@media (max-width: 480px) {
  body .header .logo .brand-name {
    font-size: 15px !important;
  }
  body .view-controls {
    gap: 4px !important;
  }
  body .motion,
  body .motion-toggle {
    padding:0 !important;
  }
}
@media (max-width:360px) {
  body .header { padding:8px !important; column-gap:6px !important; }
  body.is-scrolled .header, body .header.is-compact { width:calc(100% - 8px) !important; padding:8px !important; }
  body .header .logo .brand-name { font-size:14px !important; }
  body .theme-toggle { width:56px !important; padding:0 !important; }
}

html[data-theme] body.paused .header,
html[data-theme] body.paused .header *,
html[data-theme] body.paused .header *::before,
html[data-theme] body.paused .header *::after { animation:none !important; transition:none !important; }
body.paused .header nav a { translate:none !important; }
html[data-theme] body.paused .header .logo,
html[data-theme] body.paused .header .logo .brand-avatar-wrap,
html[data-theme] body.paused .header nav a.nav-item,
html[data-theme] body.paused .header .view-controls *:not(.theme-knob) {
  transform:none !important; translate:none !important; animation:none !important; transition:none !important;
}
@media (prefers-reduced-motion:reduce) {
  body .header, body .header *, body .header *::before, body .header *::after {
    animation:none !important; transition:none !important;
  }
  body .header nav a { translate:none !important; }
  html[data-theme] body .header .logo:is(:hover,:active,:focus-visible),
  html[data-theme] body .header .logo-dot,
  html[data-theme] body .header .logo:is(:hover,:active,:focus-visible) .brand-avatar-wrap,
  html[data-theme] body .header nav a.nav-item:is(:hover,:active,:focus-visible),
  html[data-theme] body .header .view-controls *:not(.theme-knob) {
    transform:none !important; translate:none !important; animation:none !important; transition:none !important;
  }
}


