/* ========== ZANAAT USER PROFILE - MODERN DESIGN SYSTEM ========== */
/* Colour palette now supplied by the central theme bridge (theme.css) */
:root {
  /* Smooth Transitions */
  --zanaat-transition-fast: all 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
  --zanaat-transition-base: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  --zanaat-transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  --zanaat-transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Typography Scale */
  --zanaat-text-xs: 0.75rem;
  --zanaat-text-sm: 0.875rem;
  --zanaat-text-base: 1rem;
  --zanaat-text-lg: 1.125rem;
  --zanaat-text-xl: 1.25rem;

  /* Spacing System */
  --zanaat-space-1: 0.25rem;
  --zanaat-space-2: 0.5rem;
  --zanaat-space-3: 0.75rem;
  --zanaat-space-4: 1rem;
  --zanaat-space-5: 1.25rem;
  --zanaat-space-6: 1.5rem;
  --zanaat-space-8: 2rem;

  /* Border Radius */
  --zanaat-radius-sm: 0.375rem;
  --zanaat-radius-md: 0.5rem;
  --zanaat-radius-lg: 0.75rem;
  --zanaat-radius-xl: 1rem;
  --zanaat-radius-2xl: 1.5rem;
  --zanaat-radius-full: 9999px;
}

/* =====================================================================
   NAVBAR COMPACT PROFESSIONAL ALIGNMENT
   Refines previous overrides to better match navbar dark glass + gold accent
   ===================================================================== */
/* Profile gold/glass colours now from theme bridge */

#mainNavbar .zanaat-user-profile-btn {
  /* Compact sizing aligned with other icon buttons */
  min-width: unset;
  max-width: 200px;
  padding: 6px 10px 6px 6px;
  background: var(--profile-glass-bg) !important;
  border-color: var(--profile-glass-border) !important;
  box-shadow: none !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 14px !important;
}

#mainNavbar .zanaat-user-profile-btn:hover,
#mainNavbar .zanaat-user-profile-btn[aria-expanded="true"] {
  background: var(--profile-glass-bg-hover) !important;
  border-color: var(--profile-glass-border-hover) !important;
  box-shadow: 0 0 0 1px rgba(var(--profile-gold-accent-rgb),0.25),0 4px 14px -4px rgba(0,0,0,0.55) !important;
}

#mainNavbar .zanaat-user-profile-btn::before {
  background: radial-gradient(circle at 70% 25%,rgba(var(--profile-gold-accent-rgb),0.18),transparent 70%),linear-gradient(140deg,rgba(255,255,255,0.1),rgba(255,255,255,0));
  opacity: .45;
}

#mainNavbar .zanaat-user-profile-btn:hover::before { opacity: .7; }

/* Accent shifts to site gold on hover */
#mainNavbar .zanaat-user-profile-btn:hover .zanaat-user-profile-name,
#mainNavbar .zanaat-user-profile-btn[aria-expanded="true"] .zanaat-user-profile-name { color: var(--profile-gold-accent) !important; text-shadow: 0 0 6px rgba(var(--profile-gold-accent-rgb),0.45); }

/* Avatar border integrates gold accent subtly */
#mainNavbar .zanaat-user-profile-btn .zanaat-user-profile-avatar { border-color: rgba(var(--profile-gold-accent-rgb),0.35); background: linear-gradient(135deg,rgba(var(--profile-gold-accent-rgb),0.18),rgba(255,255,255,0.04)); }
#mainNavbar .zanaat-user-profile-btn:hover .zanaat-user-profile-avatar { border-color: rgba(var(--profile-gold-accent-rgb),0.55); }

/* Level & balance pills updated to neutral / accent pair */
#mainNavbar .zanaat-user-profile-level { background: rgba(var(--profile-gold-accent-rgb),0.15); border-color: rgba(var(--profile-gold-accent-rgb),0.55); color: var(--profile-gold-accent); }
#mainNavbar .zanaat-user-profile-balance { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.45); }

/* Arrow adopts gold accent on interaction */
#mainNavbar .zanaat-user-profile-arrow { color: rgba(255,255,255,0.6); transition: color .35s ease, transform .45s var(--navbar-spring,cubic-bezier(.34,1.56,.64,1)); }
#mainNavbar .zanaat-user-profile-btn:hover .zanaat-user-profile-arrow,
#mainNavbar .zanaat-user-profile-btn[aria-expanded="true"] .zanaat-user-profile-arrow { color: var(--profile-gold-accent); }

/* Reduce motion = remove ring/glow spin */
@media (prefers-reduced-motion: reduce) {
  #mainNavbar .zanaat-user-avatar-ring { animation: none !important; }
  #mainNavbar .zanaat-user-profile-btn::after { animation: none !important; }
}

/* Truncation & safe overflow */
#mainNavbar .zanaat-user-profile-name { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }

/* Ultra-compact breakpoint: hide stats to conserve space */
@media (max-width: 1300px) {
  #mainNavbar .zanaat-user-profile-stats { display: none !important; }
  #mainNavbar .zanaat-user-profile-btn { max-width: 160px; }
}
@media (max-width: 1199px) {
  #mainNavbar .zanaat-user-profile-name { display: none !important; }
  #mainNavbar .zanaat-user-profile-btn { padding: 6px; }
}

/* High contrast mode: strengthen borders */
@media (prefers-contrast: more) {
  #mainNavbar .zanaat-user-profile-btn { border-color: var(--profile-gold-accent) !important; }
}


/* ========== MAIN PROFILE CONTAINER ========== */
.zanaat-user-nav-profile {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0;
  z-index: 1000;
}

/* ========== ENHANCED PROFILE BUTTON ========== */
.zanaat-user-profile-btn {
  display: flex;
  align-items: center !important;
  gap: var(--zanaat-space-3);
  padding: var(--zanaat-space-2) var(--zanaat-space-4) var(--zanaat-space-2) var(--zanaat-space-2);
  background: var(--zanaat-profile-btn-bg) !important;
  backdrop-filter: blur(26px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(160%) !important;
  border: 1px solid var(--zanaat-profile-btn-border) !important;
  border-radius: var(--zanaat-radius-2xl);
  box-shadow: var(--zanaat-profile-btn-shadow) !important;

  cursor: pointer;
  justify-content: flex-start;
  transition: var(--zanaat-transition-smooth);
  text-decoration: none;
  color: rgba(255,255,255,0.92) !important;
  position: relative;
  overflow: hidden;
  outline: none;
  box-sizing: border-box;
   line-height: 1;   
  width: auto !important;
  min-height: 60px;
  min-width: 180px;  /* Prevent width collapse */
  max-width: 220px; /* Prevent excessive width */
  width: auto; /* Allow natural width */
  transform-style: preserve-3d;
  isolation: isolate;
  box-sizing: border-box; /* Ensure consistent box model */
  flex-shrink: 0; /* Prevent flex shrinking */
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  /* Prevent button distortion on click */
  will-change: transform, box-shadow;
  transform-origin: center center;
}

/* Profile Button Background Gradient */
.zanaat-user-profile-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: normal;
  background: radial-gradient(circle at 65% 30%, var(--z-accent-glow), transparent 70%),
              linear-gradient(150deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) !important;
  opacity: 0;
  transition: var(--zanaat-transition-smooth);
  border-radius: inherit;
  z-index: -2;
  pointer-events: none; /* Prevent interference */
}

/* Profile Button Hover Effects */
.zanaat-user-profile-btn:hover {
  background: var(--zanaat-profile-btn-bg-hover) !important;
  border-color: var(--zanaat-profile-btn-border-hover) !important;
  transform: translateY(-2px); /* keep stable (no scale) */
  box-shadow: var(--zanaat-profile-btn-shadow-hover) !important;
}

.zanaat-user-profile-btn:hover::before {
  opacity: 1;
}

.zanaat-user-profile-btn:active {
  transform: translateY(-1px) scale(1.005); /* Minimal scale change */
  transition: var(--zanaat-transition-fast);
   background: var(--zanaat-profile-btn-bg-active) !important;
  box-shadow: 0 2px 10px -2px rgba(0,0,0,0.5) !important;
  border-color: var(--zanaat-profile-btn-border-hover) !important;
}

.zanaat-user-profile-btn:focus-visible {
  outline: 2px solid var(--zanaat-accent);
  outline-offset: 4px;
  border-color: var(--zanaat-profile-btn-border-hover) !important;
  box-shadow: var(--zanaat-profile-btn-shadow-focus) !important;
}

/* Profile Button Shimmer Effect */
.zanaat-user-profile-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, /* Reduced opacity */
    transparent 100%);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.zanaat-user-profile-btn:hover::after {
  left: 100%;
}

/* ========== ADVANCED AVATAR SYSTEM ========== */
.zanaat-user-profile-avatar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Prevent shrinking */
  width: 48px; /* Fixed width */
  height: 48px; /* Fixed height */
}

.zanaat-user-profile-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--zanaat-radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, 
    var(--z-accent-glow) 0%, 
    var(--z-accent-glow) 100%);
  border: 2px solid var(--zanaat-glass-border);
  transition: var(--zanaat-transition-smooth);
  box-shadow: var(--zanaat-shadow-md);
  transform-style: preserve-3d;
  box-sizing: border-box; /* Include border in dimensions */
  z-index: 1;
  overflow: visible; /* allow badge to extend outside avatar bounds */
  z-index: 20; /* create stacking context below badge */
}
.zanaat-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--zanaat-transition-smooth);
  transform: scale(1);
  border-radius: var(--zanaat-radius-full); /* keep image circular even with overflow visible */
}

.zanaat-user-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    var(--z-accent-glow) 0%, 
    var(--z-accent-glow) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 600;
  transition: var(--zanaat-transition-smooth);
  border-radius: var(--zanaat-radius-full);
}

/* Avatar Hover Effects */
.zanaat-user-profile-btn:hover .zanaat-user-profile-avatar {
  border-color: var(--z-border-accent);
  transform: scale(1.05) rotateY(8deg); /* Reduced rotation and scale */
  box-shadow: var(--zanaat-shadow-xl), 
              0 0 30px var(--z-accent-glow);
}

.zanaat-user-profile-btn:hover .zanaat-user-avatar-img,
.zanaat-user-profile-btn:hover .zanaat-user-avatar-placeholder {
  transform: scale(1.08) rotateY(-8deg); /* Reduced scale and rotation */
}

/* ========== STATUS INDICATOR SYSTEM ========== */
.zanaat-user-status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: rgba(148, 163, 184, 0.8);
  border: 3px solid var(--z-overlay-heavy);
  border-radius: var(--zanaat-radius-full);
  transition: var(--zanaat-transition-smooth);
  z-index: 3;
  box-shadow: var(--zanaat-shadow-sm);
}

.zanaat-user-status-indicator.online {
  background: linear-gradient(135deg, var(--z-success), #15803d);
  border-color: var(--z-overlay-heavy);
  animation: zanatStatusOnlinePulse 2s infinite;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4),
              var(--zanaat-shadow-sm);
}

.zanaat-user-status-indicator.away {
  background: linear-gradient(135deg, var(--z-accent), var(--z-accent-dark));
  animation: zanatStatusAwayBlink 3s infinite;
}

.zanaat-user-status-indicator.offline {
  background: linear-gradient(135deg, var(--z-text-muted), #4b5563);
}

.zanaat-user-status-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid rgba(34, 197, 94, 0.5);
  border-radius: var(--zanaat-radius-full);
  animation: zanatStatusPulseRing 2s infinite;
  opacity: 0;
}

/* Status Animations */
@keyframes zanatStatusOnlinePulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.3);
    opacity: 0.8;
  }
}

@keyframes zanatStatusAwayBlink {
  0%, 90%, 100% { opacity: 1; }
  45%, 55% { opacity: 0.3; }
}

@keyframes zanatStatusPulseRing {
  0% { 
    transform: scale(0.8);
    opacity: 1;
  }
  100% { 
    transform: scale(2.5);
    opacity: 0;
  }
}

/* ========== ACHIEVEMENT BADGE SYSTEM ========== */
.zanaat-user-achievement-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #1e40af, var(--z-info));
  border: 3px solid var(--z-overlay-heavy);
  border-radius: var(--zanaat-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
  z-index: 25; /* elevated above avatar ring & glow */
  transition: var(--zanaat-transition-smooth);
  animation: zanatAchievementFloat 3s ease-in-out infinite;
  box-shadow: var(--zanaat-shadow-md);
}

.zanaat-user-achievement-badge.verified {
  background: linear-gradient(135deg, var(--zanaat-accent), var(--zanaat-accent-dark));
}

@keyframes zanatAchievementFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
  }
  50% { 
    transform: translateY(-4px) rotate(10deg);
  }
}

/* ========== AVATAR DECORATIVE ELEMENTS ========== */
.zanaat-user-avatar-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 3px solid transparent;
  border-radius: var(--zanaat-radius-full);
  background: linear-gradient(135deg, var(--zanaat-accent), var(--z-accent-glow)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: var(--zanaat-transition-smooth);
  animation: zanatAvatarRingRotate 4s linear infinite;
  z-index: 5; /* below badge (25) but above base avatar */
}

.zanaat-user-profile-btn:hover .zanaat-user-avatar-ring {
  opacity: 1;
}

@keyframes zanatAvatarRingRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.zanaat-user-avatar-glow {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  background: radial-gradient(circle, 
    var(--z-accent-glow) 0%, 
    var(--z-accent-glow) 30%,
    transparent 70%);
  border-radius: var(--zanaat-radius-full);
  opacity: 0;
  transition: var(--zanaat-transition-smooth);
  animation: zanatAvatarGlowPulse 3s ease-in-out infinite;
  z-index: 4; /* sits below ring and badge */
}

.zanaat-user-profile-btn:hover .zanaat-user-avatar-glow {
  opacity: 1;
}

@keyframes zanatAvatarGlowPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.6;
  }
  50% { 
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ========== PROFILE INFORMATION SECTION ========== */
.zanaat-user-profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--zanaat-space-1);
  min-width: 0;
  flex: 1;
  position: relative;
  white-space: nowrap; /* Prevent text wrapping */
  overflow: hidden; /* Hide overflow */
}

.zanaat-user-profile-name-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-width: 0; /* Allow shrinking if needed */
}

.zanaat-user-profile-name {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--zanaat-text-sm);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  transition: var(--zanaat-transition-base);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0; /* Prevent shrinking */
}

.zanaat-user-profile-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--zanaat-accent), var(--zanaat-primary));
  transition: width var(--zanaat-transition-smooth);
  border-radius: 1px;
}

.zanaat-user-profile-btn:hover .zanaat-user-profile-name {
  color: var(--zanaat-accent);
  text-shadow: 0 0 12px var(--z-accent-glow);
}

.zanaat-user-profile-btn:hover .zanaat-user-profile-name::after {
  width: 100%;
}

.zanaat-user-profile-stats {
  display: flex;
  align-items: center;
  gap: var(--zanaat-space-2);
  font-size: var(--zanaat-text-xs);
}

.zanaat-user-profile-level {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  padding: 3px 8px;
  background: var(--z-accent-glow);
  border-radius: var(--zanaat-radius-md);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--zanaat-transition-base);
  border: 1px solid var(--z-border-accent);
}

.zanaat-user-profile-balance {
  color: rgba(34, 197, 94, 0.9);
  font-weight: 600;
  font-size: 11px;
  background: rgba(34, 197, 94, 0.1);
  padding: 3px 8px;
  border-radius: var(--zanaat-radius-md);
  border: 1px solid rgba(34, 197, 94, 0.3);
  transition: var(--zanaat-transition-base);
}

.zanaat-user-profile-btn:hover .zanaat-user-profile-level {
  background: var(--z-accent-glow);
  border-color: var(--z-border-accent);
  transform: scale(1.05) translateY(-1px);
}

.zanaat-user-profile-btn:hover .zanaat-user-profile-balance {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  transform: scale(1.05) translateY(-1px);
}

/* ========== DROPDOWN ARROW SECTION ========== */
.zanaat-user-profile-arrow-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0; /* Prevent shrinking */
}

.zanaat-user-profile-arrow {
  font-size: var(--zanaat-text-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--zanaat-transition-smooth);
  position: relative;
  z-index: 2;
  transform-origin: center center; /* Center transformation */
}

.zanaat-user-arrow-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, 
    var(--z-accent-glow) 0%, 
    transparent 70%);
  border-radius: var(--zanaat-radius-full);
  opacity: 0;
  transition: var(--zanaat-transition-smooth);
  animation: zanatArrowPulse 2.5s infinite;
}

.zanaat-user-profile-btn:hover .zanaat-user-profile-arrow {
  color: var(--zanaat-accent);
  transform: scale(1.2); /* Reduced scale */
}

.zanaat-user-profile-btn:hover .zanaat-user-arrow-pulse {
  opacity: 1;
}
/* When dropdown is open - Prevent distortion */
.zanaat-user-profile-btn[aria-expanded="true"] {
  background: var(--zanaat-glass-active);
  border-color: var(--z-border-accent);
  transform: translateY(-2px) scale(1.01); /* Consistent with hover */
  box-shadow: var(--zanaat-shadow-glow), var(--zanaat-shadow-xl);
}
.zanaat-user-profile-btn[aria-expanded="true"] .zanaat-user-profile-arrow {
  transform: rotate(180deg) scale(1.2); /* Reduced scale */
  color: var(--zanaat-accent);
}

@keyframes zanatArrowPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: scale(1.4);
    opacity: 0.8;
  }
}

/* ========== INTERACTION EFFECTS ========== */
.zanaat-user-profile-hover-effect {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    var(--z-accent-glow) 0%, 
    var(--z-accent-glow) 50%,
    var(--z-accent-glow) 100%);
  opacity: 0;
  transition: var(--zanaat-transition-smooth);
  border-radius: inherit;
  z-index: -1;
}

.zanaat-user-profile-btn:hover .zanaat-user-profile-hover-effect {
  opacity: 1;
}

.zanaat-user-profile-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--z-accent-glow);
  border-radius: var(--zanaat-radius-full);
  transform: translate(-50%, -50%);
  transition: all var(--zanaat-transition-fast);
  pointer-events: none;
  z-index: 1;
}

.zanaat-user-profile-btn:active .zanaat-user-profile-ripple {
  width: 120px;
  height: 120px;
  opacity: 0;
}
/* ========== ULTRA-MODERN USER DROPDOWN MENU ========== */
.zanaat-user-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 420px;
  max-width: 95vw;
  background: linear-gradient(145deg, var(--z-surface-1) 0%, var(--z-bg) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--zanaat-glass-border);
  border-radius: var(--zanaat-radius-2xl);
  box-shadow: var(--zanaat-shadow-2xl);
  z-index: 1200;  /* above navbar (1100) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-30px) scale(0.85);
  transition: var(--zanaat-transition-smooth);
  overflow: hidden;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.zanaat-user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ========== DROPDOWN BACKGROUND EFFECTS ========== */
.zanaat-user-dropdown-bg-effects {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
}

.zanaat-user-dropdown-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    var(--z-accent-glow) 0%, 
    var(--z-accent-glow) 50%,
    var(--z-accent-glow) 100%);
  animation: zanatGradientShift 12s ease-in-out infinite;
}

.zanaat-user-dropdown-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--z-accent-glow) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, var(--z-accent-glow) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, var(--z-accent-glow) 0%, transparent 50%);
  opacity: 0.6;
  animation: zanatPatternFloat 15s ease-in-out infinite;
}

.zanaat-user-dropdown-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle, 
    var(--z-accent-glow) 0%, 
    transparent 70%);
  animation: zanatGlowRotate 25s linear infinite;
  opacity: 0.8;
}

@keyframes zanatGradientShift {
  0%, 100% { transform: translateX(0) translateY(0) scale(1); }
  25% { transform: translateX(-8px) translateY(-8px) scale(1.02); }
  50% { transform: translateX(8px) translateY(8px) scale(0.98); }
  75% { transform: translateX(-5px) translateY(5px) scale(1.01); }
}

@keyframes zanatPatternFloat {
  0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(5deg); }
}

@keyframes zanatGlowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== ULTRA-MODERN DROPDOWN HEADER ========== */
.zanaat-user-dropdown-header {
  padding: var(--zanaat-space-4);
  border-bottom: 1px solid var(--zanaat-glass-border);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  
}

.zanaat-user-header-bg-animation {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, 
    var(--z-accent-glow) 0%, 
    var(--z-accent-glow) 50%,
    var(--z-accent-glow) 100%);
  animation: zanatHeaderBgFlow 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes zanatHeaderBgFlow {
  0%, 100% { transform: translateX(-15px) translateY(-15px); opacity: 0.5; }
  50% { transform: translateX(15px) translateY(15px); opacity: 1; }
}

/* ========== ENHANCED USER INFO SECTION ========== */
.zanaat-user-info {
  display: flex;
  align-items: center;
  gap: var(--zanaat-space-3);
  position: relative;
  z-index: 1;
  margin-bottom: var(--zanaat-space-2);
  opacity: 0;
  transform: translateY(10px);
  animation: zanatUserInfoSlideIn 0.6s ease-out 0.2s forwards;
}

@keyframes zanatUserInfoSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.zanaat-user-avatar-large {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--zanaat-radius-full);
  overflow: visible;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--zanaat-shadow-md);
  transition: var(--zanaat-transition-smooth);
  background: linear-gradient(135deg, 
    var(--z-accent-glow) 0%, 
    var(--z-accent-glow) 100%);
}

.zanaat-user-avatar-large:hover {
  transform: scale(1.05);
  border-color: var(--z-border-accent);
  box-shadow: var(--zanaat-shadow-lg);
}

.zanaat-user-avatar-img-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--zanaat-radius-full);
  transition: var(--zanaat-transition-smooth);
}

.zanaat-user-avatar-placeholder-large {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    var(--z-accent-glow) 0%, 
    var(--z-accent-glow) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  font-weight: 600;
  transition: var(--zanaat-transition-smooth);
  border-radius: var(--zanaat-radius-full);
}

.zanaat-user-status-indicator-large {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  background: rgba(148, 163, 184, 0.8);
  border: 2px solid var(--z-overlay-heavy);
  border-radius: var(--zanaat-radius-full);
  transition: var(--zanaat-transition-smooth);
  z-index: 3;
  box-shadow: var(--zanaat-shadow-sm);
}

.zanaat-user-status-indicator-large.online {
  background: linear-gradient(135deg, var(--z-success), #15803d);
  animation: zanatStatusOnlinePulse 2s infinite;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4);
}

.zanaat-user-status-pulse-large {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 3px solid rgba(34, 197, 94, 0.5);
  border-radius: var(--zanaat-radius-full);
  animation: zanatStatusPulseRing 2s infinite;
  opacity: 0;
}

.zanaat-user-edit-avatar-btn {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--zanaat-accent), var(--z-accent-glow));
  border: 2px solid var(--z-overlay-heavy);
  border-radius: var(--zanaat-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--zanaat-transition-smooth);
  z-index: 4;
  opacity: 0;
  transform: scale(0.7);
  box-shadow: var(--zanaat-shadow-sm);
}

.zanaat-user-avatar-large:hover .zanaat-user-edit-avatar-btn {
  opacity: 1;
  transform: scale(1);
}

.zanaat-user-edit-avatar-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--zanaat-shadow-lg);
}

/* ========== ENHANCED USER DETAILS ========== */
.zanaat-user-details {
  flex: 1;
  min-width: 0;
}

.zanaat-user-name {
  font-size: var(--zanaat-text-base);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: var(--zanaat-space-1);
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.zanaat-user-verified-icon {
  color: var(--zanaat-info);
  font-size: 14px;
  animation: zanatVerifiedGlow 3s ease-in-out infinite;
}

@keyframes zanatVerifiedGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.zanaat-user-email {
  font-size: var(--zanaat-text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--zanaat-space-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.9;
}

.zanaat-user-level-container {
  display: flex;
  align-items: center;
  gap: var(--zanaat-space-2);
}

.zanaat-user-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  color: var(--z-success);
  padding: 3px var(--zanaat-space-2);
  border-radius: var(--zanaat-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: var(--zanaat-shadow-xs);
  border: 1px solid rgba(34, 197, 94, 0.3);
  transition: var(--zanaat-transition-smooth);
  align-self: flex-start;
}

.zanaat-user-level:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.2));
  border-color: rgba(34, 197, 94, 0.5);
  transform: scale(1.05) translateY(-1px);
  box-shadow: var(--zanaat-shadow-sm);
}

.zanaat-user-creator-stats {
  display: flex;
  gap: var(--zanaat-space-2);
  margin-top: var(--zanaat-space-1);
}

.zanaat-user-stat-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: var(--zanaat-transition-base);
  cursor: pointer;
}

.zanaat-user-stat-item:hover {
  color: var(--zanaat-accent);
  transform: scale(1.05) translateY(-1px);
}

.zanaat-user-stat-item i {
  color: var(--zanaat-accent);
  opacity: 0.8;
  font-size: 10px;
}
.zanaat-user-language-flag {
  width:32px;
  height:24px;
  border-radius:6px;
  overflow:hidden;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  background:rgba(255,255,255,0.08);
}
.flag-icon {
  width:100%;
  height:100%;
  display:block;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
/* ========== HEADER QUICK ACTIONS ========== */
.zanaat-user-header-quick-actions {
  display: flex;
  gap: var(--zanaat-space-1);
  position: absolute;
  top: var(--zanaat-space-2);
  right: var(--zanaat-space-3);
  opacity: 0;
  z-index: 300;
  transform: translateY(-10px);
  animation: zanatQuickActionsDropIn 0.5s ease-out 0.6s forwards;
}

@keyframes zanatQuickActionsDropIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.zanaat-user-quick-action-btn {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--zanaat-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--zanaat-transition-smooth);
  font-size: 11px;
  position: relative;
  overflow: hidden;
  transform: scale(0);
  animation: zanatQuickActionPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.zanaat-user-quick-action-btn.profile-view { animation-delay: 0.7s; }
.zanaat-user-quick-action-btn.profile-edit { animation-delay: 0.8s; }
.zanaat-user-quick-action-btn.profile-settings { animation-delay: 0.9s; }

@keyframes zanatQuickActionPop {
  0% {
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.zanaat-user-quick-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--zanaat-accent);
  opacity: 0;
  transition: var(--zanaat-transition-base);
  border-radius: inherit;
  z-index: -1;
}

.zanaat-user-quick-action-btn:hover {
  color: #fff;
  border-color: var(--zanaat-accent);
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--zanaat-shadow-md);
}

.zanaat-user-quick-action-btn:hover::before {
  opacity: 1;
}

.zanaat-user-quick-action-btn.profile-view:hover {
  --zanaat-accent: var(--zanaat-info);
}

.zanaat-user-quick-action-btn.profile-edit:hover {
  --zanaat-accent: var(--zanaat-warning);
}

.zanaat-user-quick-action-btn.profile-settings:hover {
  --zanaat-accent: var(--zanaat-success);
}

/* ========== ADVANCED LANGUAGE SELECTOR ========== */
.zanaat-user-menu-category {
  margin-bottom: var(--zanaat-space-4);
  padding: 0 var(--zanaat-space-4);
}

.zanaat-user-category-title {
  display: flex;
  align-items: center;
  gap: var(--zanaat-space-2);
  font-size: var(--zanaat-text-xs);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--zanaat-space-3);
  position: relative;
}

.zanaat-user-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, 
    var(--z-accent-glow) 0%, 
    transparent 100%);
  margin-left: var(--zanaat-space-3);
}

.zanaat-user-category-title i {
  font-size: var(--zanaat-text-sm);
  color: var(--z-accent);
}

.zanaat-user-language-form {
  margin-top: var(--zanaat-space-2);
}

.zanaat-user-language-options {
  display: flex;
  gap: var(--zanaat-space-2);
  justify-content: space-between;
}

.zanaat-user-language-option-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--zanaat-radius-lg);
  padding: var(--zanaat-space-2) var(--zanaat-space-3);
  cursor: pointer;
  transition: var(--zanaat-transition-smooth);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zanaat-user-language-option-card.active {
  background: var(--z-accent-glow);
  border-color: var(--z-border-accent);
  box-shadow: var(--zanaat-shadow-md);
}

.zanaat-user-language-option-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--zanaat-shadow-lg);
}

.zanaat-user-language-card-content {
  display: flex;
  align-items: center;
  gap: var(--zanaat-space-3);
  position: relative;
  z-index: 1;
}

.zanaat-user-language-flag {
  width: 32px;
  height: 24px;
  border-radius: var(--zanaat-radius-sm);
  overflow: hidden;
  box-shadow: var(--zanaat-shadow-sm);
}

.flag-icon {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.flag-us {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Crect width='512' height='512' fill='%23B22234'/%3E%3Cpath d='M0,58.67H512v38.67H0zm0,77.33H512v38.67H0zm0,77.33H512v38.67H0zm0,77.33H512v38.67H0zm0,77.33H512v38.67H0zm0,77.33H512v38.67H0zm0,77.33H512v38.67H0z' fill='white'/%3E%3Crect width='245.76' height='201.14' fill='%233C3B6E'/%3E%3C/svg%3E");
}

.flag-tr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Crect width='512' height='512' fill='%23E30A17'/%3E%3Ccircle cx='180' cy='256' r='60' fill='white'/%3E%3Ccircle cx='200' cy='256' r='48' fill='%23E30A17'/%3E%3Cpath d='M280,220 L300,240 L320,220 L310,250 L330,270 L300,265 L280,285 L285,255 L265,235 L295,240 Z' fill='white'/%3E%3C/svg%3E");
}

.zanaat-user-language-details {
  flex: 1;
}

.language-name {
  display: block;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--zanaat-text-sm);
  margin-bottom: 2px;
}

.language-code {
  display: block;
  font-size: var(--zanaat-text-xs);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zanaat-user-language-active-mark {
  color: var(--zanaat-accent);
  font-size: 18px;
  animation: zanatActiveMarkPulse 2s infinite;
}

@keyframes zanatActiveMarkPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.zanaat-user-card-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--z-accent-glow);
  border-radius: var(--zanaat-radius-full);
  transform: translate(-50%, -50%);
  transition: all var(--zanaat-transition-fast);
  pointer-events: none;
}

.zanaat-user-language-option-card:active .zanaat-user-card-ripple {
  width: 100px;
  height: 100px;
  opacity: 0;
}

/* ========== ENHANCED DROPDOWN BODY ========== */
.zanaat-user-dropdown-body {
  padding: var(--zanaat-space-4) 0;
  overflow-y: auto;
  max-height: 450px;
  scrollbar-width: thin;
  scrollbar-color: var(--z-accent) rgba(0, 0, 0, 0.1);
}

.zanaat-user-dropdown-body::-webkit-scrollbar {
  width: 10px;
}

.zanaat-user-dropdown-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--zanaat-radius-full);
  margin: var(--zanaat-space-2);
}
.zanaat-user-header-quick-actions .zanaat-user-quick-action-btn {
  pointer-events: auto;
  width: 30px;              /* Daha büyük hit area */
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  line-height: 1;
  font-size: 14px;
  border-radius: var(--zanaat-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}
.zanaat-user-dropdown-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, 
    var(--z-accent-glow) 0%, 
    var(--z-accent-glow) 100%);
  border-radius: var(--zanaat-radius-full);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.zanaat-user-dropdown-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, 
    var(--z-accent-glow) 0%, 
    var(--z-accent-glow) 100%);
}

/* ========== PREMIUM MENU ITEMS ========== */
.zanaat-user-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zanaat-user-menu-items li a {
  display: flex;
  align-items: center;
  padding: var(--zanaat-space-3) var(--zanaat-space-4);
  transition: var(--zanaat-transition-base);
  text-decoration: none;
  position: relative;
  border-radius: var(--zanaat-radius-lg);
  margin: 0 var(--zanaat-space-2);
  overflow: hidden;
}

.zanaat-user-menu-items li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, 
    var(--zanaat-accent) 0%, 
    var(--z-accent-glow) 100%);
  transition: width var(--zanaat-transition-base);
}

.zanaat-user-menu-items li a:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(8px);
}

.zanaat-user-menu-items li a:hover::before {
  width: 4px;
}

.zanaat-user-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--zanaat-radius-lg);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--zanaat-space-4);
  flex-shrink: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--zanaat-transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zanaat-user-menu-items li a:hover .zanaat-user-menu-icon {
  background: var(--z-accent-glow);
  border-color: var(--z-border-accent);
  transform: translateY(-3px) scale(1.05);
  color: var(--zanaat-accent);
  box-shadow: var(--zanaat-shadow-lg);
}

.zanaat-user-menu-content {
  flex-grow: 1;
  min-width: 0;
}

.zanaat-user-menu-label {
  display: block;
  font-size: var(--zanaat-text-base);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3px;
  font-weight: 600;
  transition: var(--zanaat-transition-base);
}

.zanaat-user-menu-description {
  display: block;
  font-size: var(--zanaat-text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

.zanaat-user-menu-items li a:hover .zanaat-user-menu-label {
  color: rgba(255, 255, 255, 1);
}

.zanaat-user-menu-items li a:hover .zanaat-user-menu-description {
  color: rgba(255, 255, 255, 0.7);
}

.zanaat-user-menu-badge {
  align-self: flex-start;
  margin-top: 4px;
}

.zanaat-user-menu-badge .badge {
  background: linear-gradient(135deg, var(--z-danger), var(--z-danger));
  color: white;
  font-size: var(--zanaat-text-xs);
  padding: 4px 8px;
  border-radius: var(--zanaat-radius-full);
  font-weight: 700;
  box-shadow: var(--zanaat-shadow-sm);
  animation: zanatBadgePulse 2s infinite;
}

@keyframes zanatBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
/* ========== ENHANCED DROPDOWN FOOTER (REVAMP) ========== */
.zanaat-user-dropdown-footer {
  --footer-bg1: var(--z-overlay);
  --footer-bg2: var(--z-overlay);
  --footer-border: rgba(255,255,255,0.08);
  --footer-glow: var(--z-accent-glow);
  --footer-accent: var(--profile-gold-accent, #f6c12d);
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(1rem,2vw,2rem);
  padding: clamp(1rem,1.4rem,1.6rem) clamp(1.25rem,2vw,2rem);
  background:
    linear-gradient(155deg,var(--footer-bg1) 0%,var(--footer-bg2) 100%),
    radial-gradient(circle at 85% 15%,var(--z-accent-glow),transparent 60%),
    radial-gradient(circle at 10% 85%,var(--z-border-accent),transparent 65%);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-top: 1px solid var(--footer-border);
  box-shadow: 0 -1px 0 0 rgba(255,255,255,0.04),0 -8px 24px -6px rgba(0,0,0,0.55),0 0 0 1px rgba(255,255,255,0.02),0 0 0 0 transparent;
  border-image: linear-gradient(90deg,transparent,var(--footer-accent),transparent) 1;
  isolation: isolate;
  min-height: 96px;
  overflow: hidden;
  margin-top:-40px;
}
.zanaat-user-dropdown-footer::before, .zanaat-user-dropdown-footer::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.55; transition:opacity .6s ease, transform 1.2s ease;
}
.zanaat-user-dropdown-footer::before { background: linear-gradient(125deg,rgba(255,255,255,0.08) 0%,rgba(255,255,255,0) 60%); mix-blend-mode: overlay; }
.zanaat-user-dropdown-footer::after { background: radial-gradient(circle at 50% 50%,rgba(255,255,255,0.12),transparent 70%); filter: blur(28px); opacity:.35; }
.zanaat-user-dropdown-footer:hover::after { opacity:.5; transform: scale(1.08); }

/* Footer inner sections (theme + actions) */
.zanaat-user-dropdown-footer .zanaat-user-theme-toggle-container, 
.zanaat-user-dropdown-footer .zanaat-user-logout-btn { position:relative; z-index:2; }

/* Theme toggle (if present) refined */
.zanaat-user-theme-toggle-btn { display:flex; align-items:center; gap:.7rem; font-weight:600; letter-spacing:.3px; background:linear-gradient(135deg,rgba(255,255,255,0.06),rgba(255,255,255,0.02)); border:1px solid rgba(255,255,255,0.15); padding:.85rem 1.1rem; border-radius:14px; color:rgba(255,255,255,0.9); position:relative; overflow:hidden; transition:all .35s var(--navbar-spring,cubic-bezier(.34,1.56,.64,1)); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.zanaat-user-theme-toggle-btn::before { content:""; position:absolute; inset:0; background:linear-gradient(155deg,rgba(255,255,255,0.08),rgba(255,255,255,0)); opacity:0; transition:opacity .4s ease; }
.zanaat-user-theme-toggle-btn:hover { transform:translateY(-3px); border-color:rgba(255,255,255,0.35); box-shadow:0 6px 20px -6px rgba(0,0,0,0.55),0 4px 14px -4px var(--footer-glow); }
.zanaat-user-theme-toggle-btn:hover::before { opacity:1; }
.zanaat-user-theme-toggle-btn:active { transform:translateY(-1px) scale(.97); }
.zanaat-user-theme-toggle-btn:focus-visible { outline:2px solid var(--footer-accent); outline-offset:3px; }
.zanaat-user-theme-toggle-btn i { font-size:1.05rem; color:var(--footer-accent); text-shadow:0 0 8px var(--z-accent-glow); transition:transform .6s ease; }
.zanaat-user-theme-toggle-btn:hover i { transform:rotate(25deg); }

/* Logout button premium style */
.zanaat-user-logout-btn { --logout-accent: var(--footer-accent); display:flex; align-items:center; gap:.8rem; font-weight:600; letter-spacing:.4px; background:linear-gradient(135deg,var(--z-border-accent),var(--z-accent-glow)); border:1px solid var(--z-border-accent); color:var(--logout-accent); padding:.9rem 1.25rem; border-radius:16px; position:relative; overflow:hidden; text-decoration:none; box-shadow:0 4px 18px -6px var(--z-accent-glow),0 2px 8px -4px rgba(0,0,0,0.55); transition:all .45s var(--navbar-spring,cubic-bezier(.34,1.56,.64,1)); }
.zanaat-user-logout-btn::before { content:""; position:absolute; inset:0; background:linear-gradient(150deg,var(--z-border-accent),var(--z-accent-glow) 55%); opacity:.35; mix-blend-mode:overlay; transition:opacity .5s ease; }
.zanaat-user-logout-btn::after { content:""; position:absolute; top:50%; left:50%; width:0; height:0; background:radial-gradient(circle at center,var(--z-accent-glow),transparent 70%); transform:translate(-50%,-50%); opacity:0; border-radius:50%; transition:width .6s ease, height .6s ease, opacity .6s ease; }
.zanaat-user-logout-btn:hover { transform:translateY(-4px); border-color: var(--z-border-accent); box-shadow:0 10px 28px -10px var(--z-accent-glow),0 6px 20px -8px rgba(0,0,0,0.65); color:#fff; text-shadow:0 2px 10px var(--z-accent-glow); }
.zanaat-user-logout-btn:hover::before { opacity:.65; }
.zanaat-user-logout-btn:hover::after { width:180%; height:180%; opacity:.08; }
.zanaat-user-logout-btn i { font-size:1.05rem; text-shadow:0 0 10px var(--z-accent-glow); }
.zanaat-user-logout-btn span { position:relative; z-index:1; }
.zanaat-user-logout-btn:active { transform:translateY(-1px) scale(.975); }
.zanaat-user-logout-btn:focus-visible { outline:2px solid var(--footer-accent); outline-offset:4px; }

/* Compact layout when only logout present */
.zanaat-user-dropdown-footer:has(.zanaat-user-logout-btn):not(:has(.zanaat-user-theme-toggle-container)) { justify-content:flex-end; }

/* Adaptive: stack on narrow widths */
@media (max-width:520px){
  .zanaat-user-dropdown-footer { flex-direction:column; align-items:stretch; gap:.9rem; padding:1rem 1.1rem 1.15rem; min-height:unset; }
  .zanaat-user-theme-toggle-btn, .zanaat-user-logout-btn { width:100%; justify-content:center; }
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce){
  .zanaat-user-dropdown-footer, .zanaat-user-dropdown-footer * { transition: none !important; animation: none !important; }
  .zanaat-user-logout-btn:hover, .zanaat-user-theme-toggle-btn:hover { transform:none; }
}

/* High contrast support */
@media (prefers-contrast: more){
  .zanaat-user-dropdown-footer { box-shadow:0 0 0 2px rgba(255,255,255,0.7); }
  .zanaat-user-logout-btn { border-color:#fff; }
}
/* ...existing code... */
/* ========== END OF USER PROFILE STYLES ========== */

/* =============================================================
   PROFILE INFO HOVER CLEANUP
   Removes distracting hover effects for the inline profile info
   section inside the compact navbar profile button.
   ============================================================= */
#mainNavbar .zanaat-user-profile-btn:hover .zanaat-user-profile-name,
#mainNavbar .zanaat-user-profile-btn[aria-expanded="true"] .zanaat-user-profile-name {
  color: var(--profile-text-strong, var(--zanaat-profile-accent,#fff)) !important;
  text-shadow: none !important;
  filter: none !important;
}

#mainNavbar .zanaat-user-profile-btn:hover .zanaat-user-profile-level,
#mainNavbar .zanaat-user-profile-btn:hover .zanaat-user-profile-balance,
#mainNavbar .zanaat-user-profile-btn[aria-expanded="true"] .zanaat-user-profile-level,
#mainNavbar .zanaat-user-profile-btn[aria-expanded="true"] .zanaat-user-profile-balance {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Neutralize avatar/name container hover lift for cleaner look */
#mainNavbar .zanaat-user-profile-btn:hover .zanaat-user-profile-name-container,
#mainNavbar .zanaat-user-profile-btn[aria-expanded="true"] .zanaat-user-profile-name-container {
  transform: none !important;
}

/* Optional: soften overall button hover translation for stability */
#mainNavbar .zanaat-user-profile-btn:hover { transform: none !important; }

/* Keep arrow animation but prevent aggressive glow */
#mainNavbar .zanaat-user-profile-btn:hover .zanaat-user-profile-arrow { text-shadow: none !important; }
/* Premium crown badge on avatar (improved) */
#mainNavbar .zanaat-user-profile-avatar { position: relative; }
#mainNavbar .zanaat-user-premium-badge {
  position: absolute;
  top: 24px;
  left: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--z-accent-light) 0%, var(--z-accent-light) 45%, var(--z-accent) 100%);
  color: #1f2937;
  border: 2px solid var(--z-overlay);
  box-shadow:
    0 6px 18px var(--z-border-accent),
    inset 0 1px 0 rgba(255,255,255,0.6);
  z-index: 9999;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
  isolation: isolate; /* contain pseudo elements */
}
#mainNavbar .zanaat-user-premium-badge i { font-size: 0.9rem; position: relative; z-index: 1; }
#mainNavbar .zanaat-user-premium-badge:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow:
    0 10px 24px var(--z-accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.8);
  filter: saturate(1.05);
}
#mainNavbar .zanaat-user-premium-badge:focus {
  outline: none;
  box-shadow:
    0 0 0 3px var(--z-accent-glow),
    0 6px 18px var(--z-border-accent);
}
#mainNavbar .zanaat-user-premium-badge .badge-ring { display: none !important; }
#mainNavbar .zanaat-user-premium-badge::before {
  content: '';
  position: absolute;
  inset: -6px;                  /* ring extends slightly outside */
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--z-accent-light),
    var(--z-accent),
    var(--z-info),
    var(--z-purple-light),
    #06b6d4,
    var(--z-success),
    var(--z-accent-light)
  );
  filter: saturate(1.1) brightness(1.04);
  animation: premiumRingSpin 6s linear infinite;
  /* Make it a ring: mask out the center using XOR on content-box vs border-box */
  padding: 3px; /* ring thickness */
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1; /* sit behind the badge surface */
  will-change: transform, filter;
  transform-origin: 50% 50%;
}
/* Soft glow aura */
#mainNavbar .zanaat-user-premium-badge::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(251,191,36,0.25), transparent 70%);
  filter: blur(6px);
  opacity: .55;
  pointer-events: none;
  z-index: -2;
}
/* Hover/focus: subtle speed up and stronger glow */
#mainNavbar .zanaat-user-premium-badge:hover::before,
#mainNavbar .zanaat-user-premium-badge:focus-visible::before {
  animation-duration: 4s;
  filter: saturate(1.15) brightness(1.06);
}
#mainNavbar .zanaat-user-premium-badge:hover::after,
#mainNavbar .zanaat-user-premium-badge:focus-visible::after {
  opacity: .75;
}
@keyframes crownPulse {
  0%,100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes premiumRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Ensure badge doesn’t block dropdown elsewhere */
#mainNavbar .zanaat-user-profile-btn { position: relative; }
@media (prefers-reduced-motion: reduce) {
  #mainNavbar .zanaat-user-premium-badge::before { animation: none; }
}

/* ============================================================================
   TECHNICAL POLISH — profile dropdown
   ----------------------------------------------------------------------------
   Mevcut yapıyı silmeden, hero/site-genel teknik teması ile uyumlu hale getirir:
   - daha keskin köşeler (lg/md → 12-14px)
   - parıltı / pattern animasyonlarını subtle hale indir
   - sol kenarda accent stripe (HUD vurgusu)
   - kategori başlıklarında JetBrains Mono + nokta indicator
   - menu item hover'da translateX yerine sol accent border + arkaplan tonu
   - icon kutuları "tech chip" görünümü
   ============================================================================ */

/* Köşeler & gölge (daha "panel" görünüm) */
#mainNavbar .zanaat-user-dropdown {
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--z-text) 10%, transparent);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .45),
    0 8px 22px rgba(0, 0, 0, .25),
    inset 0 1px 0 color-mix(in oklab, var(--z-text) 6%, transparent);
  overflow: hidden;
}

/* Üst kenarda HUD-style accent çizgisi */
#mainNavbar .zanaat-user-dropdown::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--z-accent) 50%,
    transparent 100%);
  z-index: 3;
  opacity: .85;
  pointer-events: none;
}

/* Dropdown background efektlerini sakinleştir (parıltı çok yoğundu) */
#mainNavbar .zanaat-user-dropdown-gradient,
#mainNavbar .zanaat-user-dropdown-pattern,
#mainNavbar .zanaat-user-dropdown-glow {
  opacity: .35 !important;
  animation-duration: 30s !important;
}

/* Header bölümü: alt kenarda dotted ayırıcı, hafif tonlu zemin */
#mainNavbar .zanaat-user-dropdown-header {
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--z-surface-1) 80%, transparent),
      color-mix(in oklab, var(--z-bg) 75%, transparent));
  border-bottom: 1px dashed color-mix(in oklab, var(--z-text) 12%, transparent);
  padding: 18px 20px;
}

#mainNavbar .zanaat-user-header-bg-animation {
  opacity: .25 !important;
  animation-duration: 18s !important;
}

/* Header'da sol-üst köşeye küçük "ID" göstergesi */
#mainNavbar .zanaat-user-dropdown-header::before {
  content: "USR-PROFILE";
  position: absolute;
  top: 10px; right: 14px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 9.5px;
  letter-spacing: 1.2px;
  color: var(--z-text-muted);
  opacity: .55;
  pointer-events: none;
  text-transform: uppercase;
}

/* Kullanıcı adı / e-posta tipografi rafine */
#mainNavbar .zanaat-user-name {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}

#mainNavbar .zanaat-user-email {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--z-text-muted);
  letter-spacing: .1px;
  word-break: break-all;
}

/* Level chip'i tech-chip görünümünde */
#mainNavbar .zanaat-user-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--z-accent);
  background: color-mix(in oklab, var(--z-accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--z-accent) 32%, transparent);
  border-radius: 8px;
}

#mainNavbar .zanaat-user-level i {
  font-size: 10px;
}

/* Creator stats: 3 sütun grid, mono değer */
#mainNavbar .zanaat-user-creator-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding: 8px;
  background: color-mix(in oklab, var(--z-bg) 80%, transparent);
  border: 1px solid color-mix(in oklab, var(--z-text) 8%, transparent);
  border-radius: 10px;
}

#mainNavbar .zanaat-user-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--z-text-sec);
  text-align: center;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease;
}

#mainNavbar .zanaat-user-stat-item:hover {
  background: color-mix(in oklab, var(--z-accent) 10%, transparent);
  color: var(--z-text);
}

#mainNavbar .zanaat-user-stat-item i {
  font-size: 12px;
  color: var(--z-accent);
  margin-bottom: 2px;
}

/* Quick action butonları — tech chip stili */
#mainNavbar .zanaat-user-quick-action-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: color-mix(in oklab, var(--z-bg) 85%, transparent) !important;
  border: 1px solid color-mix(in oklab, var(--z-text) 12%, transparent) !important;
  color: var(--z-text-sec) !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease !important;
}

#mainNavbar .zanaat-user-quick-action-btn:hover {
  background: color-mix(in oklab, var(--z-accent) 14%, var(--z-bg)) !important;
  border-color: color-mix(in oklab, var(--z-accent) 45%, transparent) !important;
  color: var(--z-accent) !important;
  transform: translateY(-1px) !important;
}

#mainNavbar .zanaat-user-quick-action-btn.logout:hover {
  background: color-mix(in oklab, #f43f5e 14%, var(--z-bg)) !important;
  border-color: color-mix(in oklab, #f43f5e 45%, transparent) !important;
  color: #fb7185 !important;
}

/* Dropdown body padding/spacing */
#mainNavbar .zanaat-user-dropdown-body {
  padding: 14px 0;
}

/* Kategori başlıkları: mono + accent dot */
#mainNavbar .zanaat-user-menu-category {
  margin-bottom: 14px;
  padding: 0 16px;
}

#mainNavbar .zanaat-user-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--z-text-muted);
  padding-bottom: 6px;
  margin-bottom: 8px;
  position: relative;
}

#mainNavbar .zanaat-user-category-title::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--z-accent);
  display: inline-block;
  flex-shrink: 0;
}

#mainNavbar .zanaat-user-category-title i {
  color: var(--z-accent);
  font-size: 11px;
}

#mainNavbar .zanaat-user-category-title::after {
  background: linear-gradient(90deg,
    color-mix(in oklab, var(--z-text) 12%, transparent) 0%,
    transparent 100%) !important;
  margin-left: 8px !important;
}

/* Menu item: hover'da translateX yerine sol-accent stripe + bg ton */
#mainNavbar .zanaat-user-menu-items li a {
  border-radius: 10px;
  margin: 0 8px;
  padding: 10px 14px;
  transition: background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  position: relative;
}

#mainNavbar .zanaat-user-menu-items li a::before {
  background: var(--z-accent) !important;
  width: 0 !important;
  border-radius: 0 2px 2px 0;
}

#mainNavbar .zanaat-user-menu-items li a:hover {
  background: color-mix(in oklab, var(--z-accent) 8%, transparent) !important;
  border-color: color-mix(in oklab, var(--z-accent) 25%, transparent);
  transform: none !important;
}

#mainNavbar .zanaat-user-menu-items li a:hover::before {
  width: 3px !important;
}

/* Menu icon: square tech chip */
#mainNavbar .zanaat-user-menu-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: color-mix(in oklab, var(--z-bg) 85%, transparent) !important;
  border: 1px solid color-mix(in oklab, var(--z-text) 10%, transparent) !important;
  color: var(--z-text-sec) !important;
  font-size: 14px !important;
  margin-right: 12px !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease !important;
}

#mainNavbar .zanaat-user-menu-items li a:hover .zanaat-user-menu-icon {
  background: color-mix(in oklab, var(--z-accent) 18%, var(--z-bg)) !important;
  border-color: color-mix(in oklab, var(--z-accent) 45%, transparent) !important;
  color: var(--z-accent) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Menu label/description tipografi */
#mainNavbar .zanaat-user-menu-label {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--z-text) !important;
  margin-bottom: 1px !important;
  letter-spacing: -.005em;
}

#mainNavbar .zanaat-user-menu-description {
  font-size: 11.5px !important;
  color: var(--z-text-muted) !important;
  line-height: 1.35 !important;
}

/* Language section: tech card grid */
#mainNavbar .zanaat-user-language-options {
  gap: 8px;
}

#mainNavbar .zanaat-user-language-option-card {
  border-radius: 10px !important;
  background: color-mix(in oklab, var(--z-bg) 85%, transparent) !important;
  border: 1px solid color-mix(in oklab, var(--z-text) 10%, transparent) !important;
  min-height: 50px !important;
  padding: 10px !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease !important;
}

#mainNavbar .zanaat-user-language-option-card:hover {
  background: color-mix(in oklab, var(--z-accent) 8%, var(--z-bg)) !important;
  border-color: color-mix(in oklab, var(--z-accent) 35%, transparent) !important;
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}

#mainNavbar .zanaat-user-language-option-card.active {
  background: color-mix(in oklab, var(--z-accent) 18%, var(--z-bg)) !important;
  border-color: color-mix(in oklab, var(--z-accent) 50%, transparent) !important;
  box-shadow: 0 4px 14px color-mix(in oklab, var(--z-accent) 22%, transparent) !important;
}

/* Profile button (toggle) — küçük teknik dokunuşlar */
#mainNavbar .zanaat-user-profile-btn {
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--z-text) 8%, transparent);
  transition: border-color .2s ease, background .2s ease;
}

#mainNavbar .zanaat-user-profile-btn:hover {
  border-color: color-mix(in oklab, var(--z-accent) 35%, transparent);
}

#mainNavbar .zanaat-user-profile-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.005em;
}

#mainNavbar .zanaat-user-profile-level {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--z-text-muted);
}

/* Mobile (≤600px): dropdown full-width, padding sıkı */
@media (max-width: 600px) {
  #mainNavbar .zanaat-user-dropdown {
    width: calc(100vw - 16px);
    right: 8px;
    left: 8px;
    max-width: none;
  }
  #mainNavbar .zanaat-user-dropdown-header { padding: 14px 16px; }
  #mainNavbar .zanaat-user-creator-stats { gap: 4px; padding: 6px; }
  #mainNavbar .zanaat-user-stat-item { font-size: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #mainNavbar .zanaat-user-dropdown-gradient,
  #mainNavbar .zanaat-user-dropdown-pattern,
  #mainNavbar .zanaat-user-dropdown-glow,
  #mainNavbar .zanaat-user-header-bg-animation,
  #mainNavbar .zanaat-user-menu-items li a,
  #mainNavbar .zanaat-user-menu-icon,
  #mainNavbar .zanaat-user-quick-action-btn {
    animation: none !important;
    transition: none !important;
  }
}