/* ============================================
   NATIVE APP STYLE MOBILE MENU & USER PROFILE
   Modern, smooth, iOS/Android inspired design
   ============================================ */

/* Font override for better Azerbaijani character support */
.native-menu-container,
.native-menu-items,
.native-menu-item,
.native-menu-item-text,
.native-menu-section-title,
.native-search-input,
.native-menu-badge {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ==========================================
   MOBILE MENU STYLES
   ========================================== */

/* Native Menu Base */
.native-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0s 0.35s;
  pointer-events: none;
}

.native-menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0s 0s;
  pointer-events: auto;
}

/* Backdrop - Blur senkronize menü ile */
.native-menu-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.native-menu.open .native-menu-backdrop {
  opacity: 1;
}

/* Menu Container - Bottom Sheet Style (Profil gibi) */
.native-menu-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 90vh;
  background: var(--modal-bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.native-menu.open .native-menu-container {
  transform: translateY(0);
}

/* Menu Header & Search Combined */
.native-menu-header {
  padding: 16px 16px;
  background: linear-gradient(135deg, rgba(76, 203, 112, 0.1) 0%, rgba(76, 203, 112, 0.02) 100%);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

/* Header Top Row - Not needed anymore */
.native-menu-header-top {
  display: none;
}

.native-menu-handle {
  width: 36px;
  height: 4px;
  background: var(--entry-info);
  border-radius: 2px;
  opacity: 0.3;
  margin: 12px auto 8px;
  display: block;
}

/* Close Button - Kompakt */
.native-menu-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: var(--entry-info);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.native-menu-close:active {
  transform: scale(0.88);
  background: rgba(255, 0, 0, 0.1);
  color: #ff4444;
}

.native-menu-close i {
  font-size: 16px;
  transition: all 0.2s ease;
}

/* Search Box (now inline with close button) */
.native-search {
  flex: 1;
  min-width: 0;
}

.native-search::before {
  display: none;
}

.native-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--form-control-bg);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  flex: 1;
  min-width: 0;
}

.native-search-box:focus-within {
  border-color: var(--lcolor);
  box-shadow: 0 4px 16px rgba(76, 203, 112, 0.2), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  background: var(--block-bg);
}

.native-search-icon {
  color: var(--lcolor);
  font-size: 16px;
  margin-right: 10px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 0.8;
}

.native-search-box:focus-within .native-search-icon {
  transform: scale(1.1);
  animation: search-pulse 2s infinite;
  opacity: 1;
}

@keyframes search-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.native-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--tcolor);
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 0;
  width: 100%;
  padding: 0;
}

.native-search-input::placeholder {
  color: var(--entry-info);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.native-search-input:focus::placeholder {
  opacity: 0.4;
}

/* Search Submit Button */
.native-search-submit {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #4CCB70 0%, #3DBA60 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-left: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(76, 203, 112, 0.25);
}

.native-search-submit:active {
  transform: scale(0.92);
  box-shadow: 0 1px 4px rgba(76, 203, 112, 0.3);
}

.native-search-submit i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.native-search-box:focus-within .native-search-submit {
  animation: search-submit-pulse 1.5s infinite;
}

@keyframes search-submit-pulse {
  0%, 100% { 
    box-shadow: 0 2px 8px rgba(76, 203, 112, 0.25);
  }
  50% { 
    box-shadow: 0 4px 16px rgba(76, 203, 112, 0.4);
  }
}

/* Menu Items Container */
.native-menu-items {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 80px;
  position: relative;
}

/* Custom Scrollbar */
.native-menu-items::-webkit-scrollbar {
  width: 6px;
}

.native-menu-items::-webkit-scrollbar-track {
  background: transparent;
}

.native-menu-items::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--lcolor) 0%, #3dba60 100%);
  border-radius: 3px;
  opacity: 0.3;
}

.native-menu-items::-webkit-scrollbar-thumb:hover {
  opacity: 0.6;
}

/* Scroll fade gradient */
.native-menu-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(0deg, var(--modal-bg) 0%, var(--modal-bg) 40%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

.native-menu.open .native-menu-item {
    --i: 0;
    animation: slideInLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(0.35s + var(--i) * 0.05s);
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
/* Menu Item */
.native-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: var(--tcolor);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.native-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--lcolor);
  transform: translateX(-4px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.native-menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 76px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, transparent 100%);
}

.native-menu-item:last-child::after {
  display: none;
}

.native-menu-item:active {
  background: linear-gradient(90deg, rgba(76, 203, 112, 0.05) 0%, transparent 100%);
  transform: translateX(4px);
}

.native-menu-item:active::before {
  transform: translateX(0);
}

.native-menu-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.native-menu-item-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
}

.native-menu-item:active .native-menu-item-icon {
  transform: scale(0.95) rotate(-5deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.native-menu-item-icon i {
  font-size: 22px;
  color: white;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.native-menu-item:active .native-menu-item-icon i {
  transform: scale(1.1);
}

.native-menu-item-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  transition: transform 0.3s ease;
}

.native-menu-item:active .native-menu-item-text {
  transform: translateX(2px);
}

.native-menu-item-arrow {
  font-size: 14px;
  color: var(--lcolor);
  opacity: 0.5;
  margin-left: 8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.native-menu-item:active .native-menu-item-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Menu Icon Color Classes */
.native-menu-item-icon.s-yellow {
  background: linear-gradient(135deg, #FEDE4A 0%, #F8B035 100%);
}

.native-menu-item-icon.s-blue {
  background: linear-gradient(135deg, #38B9E6 0%, #368BE1 100%);
}

.native-menu-item-icon.s-red {
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%);
}

.native-menu-item-icon.s-green {
  background: linear-gradient(135deg, #4CCB70 0%, #3DBA60 100%);
}

.native-menu-item-icon.s-purple {
  background: linear-gradient(135deg, #9B54E8 0%, #7C3AED 100%);
}

/* Special Item */
.native-menu-item-special {
  background: linear-gradient(135deg, rgba(76, 203, 112, 0.15) 0%, rgba(76, 203, 112, 0.05) 100%);
  margin: 16px 24px;
  border-radius: 16px;
  padding: 16px 18px;
  border: 2px solid rgba(76, 203, 112, 0.25);
  box-shadow: 0 4px 16px rgba(76, 203, 112, 0.2), 
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.native-menu-item-special::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(76, 203, 112, 0.1) 0%, transparent 70%);
  animation: special-glow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes special-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.native-menu-item-special::after {
  display: none;
}

.native-menu-item-special:active {
  background: linear-gradient(135deg, rgba(76, 203, 112, 0.25) 0%, rgba(76, 203, 112, 0.1) 100%);
  transform: scale(0.97) translateX(0);
  box-shadow: 0 2px 8px rgba(76, 203, 112, 0.25), 
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.native-menu-item-special .native-menu-item-text {
  color: var(--lcolor);
  font-weight: 700;
  font-size: 16px;
}

.native-menu-item-special .native-menu-item-icon {
  box-shadow: 0 4px 12px rgba(76, 203, 112, 0.3), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.native-menu-item-special .native-menu-item-arrow {
  color: var(--lcolor);
  opacity: 1;
}

/* Special Badge */
.native-menu-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.5);
  }
}

/* PWA Install Badge Pulse */
.native-menu-badge-pulse {
  animation: pwa-badge-pulse 2s ease-in-out infinite;
}

@keyframes pwa-badge-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
  }
  50% { 
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
  }
}

/* PWA Install Button - Matches PWA Banner Style */
.native-menu-item-pwa {
  background: var(--block-bg);
  margin: 0 24px 16px;
  border-radius: 16px;
  padding: 16px 18px;
  border: 2px solid var(--lcolor);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(76, 203, 112, 0.15);
}

.native-menu-item-pwa::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(76, 203, 112, 0.08) 0%, transparent 70%);
  animation: pwa-glow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pwa-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.native-menu-item-pwa::after {
  display: none;
}

.native-menu-item-pwa:active {
  background: var(--block-bg);
  transform: scale(0.97) translateX(0);
  box-shadow: 0 2px 8px rgba(76, 203, 112, 0.25);
  border-color: var(--lhcolor);
}

.native-menu-item-pwa .native-menu-item-text {
  color: var(--lcolor);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.native-menu-item-pwa .native-menu-item-icon {
  background: linear-gradient(135deg, var(--lcolor) 0%, #3DBA60 100%);
  box-shadow: 0 4px 12px rgba(76, 203, 112, 0.3), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.native-menu-item-pwa .native-menu-item-arrow {
  color: var(--lcolor);
  opacity: 1;
}

/* Dark theme adjustments */
html.darktheme .native-menu-item-pwa {
  box-shadow: 0 4px 16px rgba(76, 203, 112, 0.2);
}

html.darktheme .native-menu-item-pwa:active {
  box-shadow: 0 2px 8px rgba(76, 203, 112, 0.3);
}

/* Small Menu Items */
.native-menu-item-small {
  padding: 12px 24px;
  padding-left: 24px;
  font-size: 14px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.native-menu-item-small::before {
  display: none;
}

.native-menu-item-small::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 56px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, transparent 100%);
  opacity: 0.5;
}

.native-menu-item-small:last-child::after {
  display: none;
}

.native-menu-small-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--spoiler);
  border-radius: 10px;
  color: var(--lcolor);
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.8;
}

.native-menu-item-small:active .native-menu-small-icon {
  transform: scale(0.95);
  background: var(--lcolor);
  color: white;
  opacity: 1;
}

.native-menu-item-small .native-menu-item-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.native-menu-item-small:active .native-menu-item-text {
  opacity: 1;
  color: var(--tcolor);
}

/* Menu Divider - Premium Style */
.native-menu-divider {
  height: 1px;
  margin: 20px 24px;
  position: relative;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(76, 203, 112, 0.15) 20%, 
    rgba(76, 203, 112, 0.4) 50%, 
    rgba(76, 203, 112, 0.15) 80%, 
    transparent 100%
  );
  box-shadow: 0 1px 3px rgba(76, 203, 112, 0.1);
}

/* Subtle glow effect */
.native-menu-divider::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(180deg, 
    rgba(76, 203, 112, 0.08) 0%, 
    transparent 100%
  );
  pointer-events: none;
}

/* Bottom glow */
.native-menu-divider::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(0deg, 
    rgba(76, 203, 112, 0.08) 0%, 
    transparent 100%
  );
  pointer-events: none;
}

/* Menu Section */
.native-menu-section {
  margin-top: 8px;
  position: relative;
}

.native-menu-section:first-child {
  margin-top: 0;
}

.native-menu-section::before {
  display: none;
}

.native-menu-section-title {
  padding: 16px 24px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--entry-info);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: system-ui;
}

.native-menu-section-title i {
  font-size: 12px;
  color: var(--lcolor);
  opacity: 0.7;
}

.native-menu-section-title span {
  flex: 1;
}

.native-menu-section-title::before {
  display: none;
}

/* ==========================================
   USER PROFILE BOTTOM SHEET
   ========================================== */

/* Native User Panel */
.native-user-panel {
  position: relative;
  display: none; /* Hidden by default, shown via media queries */
  flex-shrink: 0;
}

.native-user-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  position: relative;
  transition: transform 0.2s ease;
}

.native-user-btn:active {
  transform: scale(0.95);
}

.native-user-btn .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--lcolor);
  box-shadow: 0 2px 8px rgba(76, 203, 112, 0.3);
}

.native-user-btn .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom Sheet */
.native-bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  display: none; /* Hidden by default, shown via media queries */
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.native-bottom-sheet.open {
  opacity: 1;
  visibility: visible;
}

/* Sheet Backdrop */
.native-sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.native-bottom-sheet.open .native-sheet-backdrop {
  opacity: 1;
}

/* Sheet Container */
.native-sheet-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 90vh;
  background: var(--modal-bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.native-bottom-sheet.open .native-sheet-container {
  transform: translateY(0);
}

/* Sheet Handle */
.native-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--entry-info);
  border-radius: 2px;
  opacity: 0.3;
  margin: 12px auto 8px;
}

/* Profile Header */
.native-profile-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(76, 203, 112, 0.1) 0%, rgba(76, 203, 112, 0.02) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.native-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--lcolor);
  box-shadow: 0 4px 12px rgba(76, 203, 112, 0.3);
  flex-shrink: 0;
}

.native-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.native-profile-info {
  flex: 1;
  margin-left: 16px;
  min-width: 0;
}

.native-profile-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--tcolor);
  text-decoration: none;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.native-profile-status {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--lcolor);
  font-weight: 600;
}

.native-profile-status i {
  font-size: 8px;
  margin-right: 6px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.native-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--spoiler);
  color: var(--tcolor);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.native-sheet-close:active {
  transform: scale(0.95);
  background: var(--entry-info-sep);
}

/* Quick Stats */
.native-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  background: var(--bgcolor);
  border-bottom: 1px solid var(--line);
}

.native-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: var(--block-bg);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.native-stat-item i {
  font-size: 20px;
  color: var(--lcolor);
  margin-bottom: 8px;
}

.native-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--tcolor);
  margin-bottom: 4px;
}

.native-stat-label {
  font-size: 11px;
  color: var(--entry-info);
  text-align: center;
  font-weight: 500;
}

/* Profile Menu */
.native-profile-menu {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 60px;
  position: relative;
}

/* Bottom fade gradient */
.native-profile-menu::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(0deg, var(--modal-bg) 0%, var(--modal-bg) 40%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

/* Custom Scrollbar */
.native-profile-menu::-webkit-scrollbar {
  width: 6px;
}

.native-profile-menu::-webkit-scrollbar-track {
  background: transparent;
}

.native-profile-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--lcolor) 0%, #3dba60 100%);
  border-radius: 3px;
  opacity: 0.3;
}

.native-profile-menu::-webkit-scrollbar-thumb:hover {
  opacity: 0.6;
}

/* Profile Menu Item */
.native-profile-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: var(--tcolor);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.native-profile-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 72px;
  right: 20px;
  height: 1px;
  background: var(--line);
}

.native-profile-item:last-child::after {
  display: none;
}

.native-profile-item:active {
  background: var(--spoiler);
  transform: scale(0.98);
}

.native-profile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.native-profile-icon i {
  font-size: 18px;
  color: white;
}

/* Profile Icon Color Classes */
.native-profile-icon.s-yellow {
  background: linear-gradient(135deg, #FEDE4A 0%, #F8B035 100%);
}

.native-profile-icon.s-blue {
  background: linear-gradient(135deg, #38B9E6 0%, #368BE1 100%);
}

.native-profile-icon.s-red {
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%);
}

.native-profile-icon.s-green {
  background: linear-gradient(135deg, #4CCB70 0%, #3DBA60 100%);
}

.native-profile-icon.s-purple {
  background: linear-gradient(135deg, #9B54E8 0%, #7C3AED 100%);
}

.native-profile-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.native-profile-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--entry-info);
  background: var(--spoiler);
  padding: 4px 10px;
  border-radius: 12px;
  margin-right: 8px;
}

.native-profile-arrow {
  font-size: 14px;
  color: var(--entry-info);
  opacity: 0.4;
  margin-left: 8px;
}

/* Danger Item */
.native-profile-item-danger .native-profile-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.native-profile-item-danger .native-profile-text {
  color: #ff6b6b;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (min-width: 768px) and (max-width: 1199px) {
  /* iPad - Burger menüyü tam genişlik yap (profil gibi) */
  .native-menu-container {
    max-width: 100%;
    left: 0;
    right: 0;
  }
  
  /* iPad - Full width bottom sheet */
  .native-sheet-container {
    left: 0;
    right: 0;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
  }
  
  .native-bottom-sheet.open .native-sheet-container {
    transform: translateY(0);
  }
}

@media (min-width: 1200px) {
  /* Desktop - Burger menüyü tam genişlik yap (profil gibi) */
  .native-menu-container {
    max-width: 100%;
    left: 0;
    right: 0;
  }
  
  .native-sheet-container {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    max-width: 480px;
    border-radius: 24px;
  }
  
  .native-bottom-sheet.open .native-sheet-container {
    transform: translateX(-50%) translateY(0);
  }
}

/* Desktop (real desktop only - not tablets) */
@media (min-width: 1200px) {
  /* Hide native components on real desktop */
  .native-menu,
  .native-bottom-sheet,
  .native-user-panel,
  .menu-butter {
    display: none !important;
  }
  
  /* Show desktop menu and user dropdown */
  .desktop-menu,
  .hmenu,
  .dropdown.userpanel {
    display: flex !important;
  }
  
  .head-right {
    display: flex !important;
  }
}

/* Tablets (iPad, etc) - Show native components */
@media (min-width: 768px) and (max-width: 1199px) {
  /* Show native mobile components on tablets */
  .native-menu,
  .native-bottom-sheet,
  .native-user-panel,
  .menu-butter {
    display: block !important;
  }
  
  /* Hide desktop menu on tablets */
  .desktop-menu,
  .hmenu:not(.native-menu-items),
  .dropdown.userpanel {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  /* Hide desktop menu on mobile and tablets */
  .desktop-menu,
  .hmenu.desktop-menu,
  .dropdown.userpanel {
    display: none !important;
  }
  
  /* Show native components on mobile and tablets */
  .native-menu,
  .native-bottom-sheet {
    display: block !important;
  }
  
  .native-user-panel {
    display: block !important;
  }
  
  .menu-butter {
    display: block !important;
  }
}

/* ==========================================
   DARK THEME ADJUSTMENTS
   ========================================== */

html.darktheme .native-menu-container,
html.darktheme .native-sheet-container {
  box-shadow: 8px 0 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(76, 203, 112, 0.1);
}

html.darktheme .native-menu-backdrop,
html.darktheme .native-sheet-backdrop {
  background: rgba(0, 0, 0, 0.8);
}

html.darktheme .native-menu-item:active,
html.darktheme .native-profile-item:active {
  background: linear-gradient(90deg, rgba(76, 203, 112, 0.08) 0%, transparent 100%);
}

html.darktheme .native-profile-header {
  background: linear-gradient(135deg, rgba(76, 203, 112, 0.15) 0%, rgba(76, 203, 112, 0.03) 100%);
}

html.darktheme .native-menu-header {
  background: linear-gradient(135deg, rgba(76, 203, 112, 0.08) 0%, transparent 100%);
}

html.darktheme .native-menu-divider {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(76, 203, 112, 0.25) 20%, 
    rgba(76, 203, 112, 0.5) 50%, 
    rgba(76, 203, 112, 0.25) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(76, 203, 112, 0.2);
}

html.darktheme .native-menu-divider::before {
  background: linear-gradient(180deg, 
    rgba(76, 203, 112, 0.12) 0%, 
    transparent 100%
  );
}

html.darktheme .native-menu-divider::after {
  background: linear-gradient(0deg, 
    rgba(76, 203, 112, 0.12) 0%, 
    transparent 100%
  );
}

html.darktheme .native-menu-item-icon {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

html.darktheme .native-search-box {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

html.darktheme .native-search-box:focus-within {
  box-shadow: 0 4px 16px rgba(76, 203, 112, 0.3), 
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

html.darktheme .native-search-input {
  color: rgba(255, 255, 255, 0.95);
}

html.darktheme .native-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

html.darktheme .native-menu-small-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--lcolor);
}

html.darktheme .native-menu-item-small:active .native-menu-small-icon {
  background: var(--lcolor);
  color: white;
}

/* Light Theme Improvements for Better Visibility */
html:not(.darktheme) .native-menu-container {
  background: #ffffff;
}

html:not(.darktheme) .native-menu-header {
  background: linear-gradient(135deg, rgba(76, 203, 112, 0.08) 0%, rgba(76, 203, 112, 0.02) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html:not(.darktheme) .native-search-box {
  background: rgba(0, 0, 0, 0.03);
  border: 2px solid rgba(0, 0, 0, 0.06);
}

html:not(.darktheme) .native-search-box:focus-within {
  background: #ffffff;
  border-color: var(--lcolor);
}

html:not(.darktheme) .native-search-input {
  color: #2c3e50;
}

html:not(.darktheme) .native-search-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

html:not(.darktheme) .native-menu-item {
  color: #2c3e50;
}

html:not(.darktheme) .native-menu-item::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
}

html:not(.darktheme) .native-menu-item:active {
  background: linear-gradient(90deg, rgba(76, 203, 112, 0.08) 0%, transparent 100%);
}

html:not(.darktheme) .native-menu-item-text {
  color: #2c3e50;
}

html:not(.darktheme) .native-menu-close {
  background: rgba(0, 0, 0, 0.05);
  color: #2c3e50;
}

html:not(.darktheme) .native-menu-close:active {
  background: rgba(0, 0, 0, 0.1);
}

html:not(.darktheme) .native-menu-section-title {
  color: rgba(0, 0, 0, 0.5);
}

html:not(.darktheme) .native-menu-small-icon {
  background: rgba(0, 0, 0, 0.04);
  color: var(--lcolor);
}

html:not(.darktheme) .native-menu-item-small .native-menu-item-text {
  color: rgba(0, 0, 0, 0.7);
}

html:not(.darktheme) .native-menu-item-small::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, transparent 100%);
}

html.darktheme .native-menu-item-special {
  background: linear-gradient(135deg, rgba(76, 203, 112, 0.15) 0%, rgba(76, 203, 112, 0.05) 100%);
  border-color: rgba(76, 203, 112, 0.3);
  box-shadow: 0 4px 16px rgba(76, 203, 112, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

/* Smooth scroll */
.native-menu-items,
.native-profile-menu {
  scroll-behavior: smooth;
}

/* Touch feedback */
@keyframes tap-feedback {
  0% { transform: scale(1); }
  50% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.native-menu-item:active,
.native-profile-item:active {
  animation: tap-feedback 0.2s ease;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.native-prevent-scroll {
  overflow: hidden;
  height: 100vh;
}
