/* =====================================
   1) تنظیمات کلی
===================================== */
header, header *, .vud-ui-menu, .venus-menu, .site-header {
    overflow: visible !important;
}

/* =====================================
   2) دکمه پروفایل - افکت شیشه‌ای
===================================== */

/* === حالت اول: هدر تیره (بدون sticky/stuck) === */
.header-inner:not(.sticky):not(.stuck) .vud-ui-avatar {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
    
    transition: all 0.3s ease !important;
}

.header-inner:not(.sticky):not(.stuck) .vud-ui-avatar:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
}

.header-inner:not(.sticky):not(.stuck) .vud-ui-avatar img {
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* === متن سفید در هدر تیره === */
.header-inner:not(.sticky):not(.stuck) .vud-ui-avatar * {
    color: #ffffff !important;
    background: transparent !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    -webkit-text-fill-color: #ffffff !important;
}

.header-inner:not(.sticky):not(.stuck) .vud-ui-avatar svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    fill: rgba(255, 255, 255, 0.85) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* === حالت دوم: هدر روشن (با sticky/stuck) === */
.header-inner.sticky .vud-ui-avatar,
.header-inner.stuck .vud-ui-avatar {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    
    background: rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    
    transition: all 0.3s ease !important;
}

.header-inner.sticky .vud-ui-avatar:hover,
.header-inner.stuck .vud-ui-avatar:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.header-inner.sticky .vud-ui-avatar img,
.header-inner.stuck .vud-ui-avatar img {
    border-radius: 50% !important;
    border: 2px solid rgba(0, 0, 0, 0.15) !important;
}

/* === متن تیره در هدر روشن === */
.header-inner.sticky .vud-ui-avatar *,
.header-inner.stuck .vud-ui-avatar * {
    color: #1e293b !important;
    background: transparent !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #1e293b !important;
}

.header-inner.sticky .vud-ui-avatar svg,
.header-inner.stuck .vud-ui-avatar svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    fill: #475569 !important;
    color: #475569 !important;
}

/* =====================================
   2-1) اصلاح دکمه ورود/ثبت نام
===================================== */
.vud-ui-username {
    white-space: nowrap !important;
    min-width: auto !important;
    width: auto !important;
    flex-shrink: 0 !important;
    text-align: center !important;
}

/* =====================================
   3) ساختار دراپ‌داون (دسکتاپ)
===================================== */
li.menu-item.venus-profile-links .vud-ui-links {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: 340px !important;
    padding: 12px 8px 8px 8px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    z-index: 999999 !important;
    
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
    transition: all 0.2s ease !important;
}

li.menu-item.venus-profile-links .vud-ui-links::before {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: -8px;
    height: 8px;
}

li.menu-item.venus-profile-links:hover .vud-ui-links,
li.menu-item.venus-profile-links:focus-within .vud-ui-links {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* =====================================
   4) چیدمان آیتم‌ها
===================================== */
li.menu-item.venus-profile-links .vud-ui-links > li {
    order: 99 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

li.menu-item.venus-profile-links .vud-ui-links-username { 
    order: 1 !important; 
    margin-bottom: 16px !important;
}

li.menu-item.venus-profile-links .vud-ui-wallet-balance { 
    order: 2 !important; 
}

li.menu-item.venus-profile-links .vud-ui-wallet-balance::after {
    content: "";
    display: block;
    width: calc(100% - 20px);
    margin: 14px auto 0 auto;
    border-bottom: 1px dashed #e2e8f0;
}

li.menu-item.venus-profile-links .vud-ui-dashboard { 
    order: 3 !important; 
    margin-top: 14px !important;
}

li.menu-item.venus-profile-links .vud-ui-notification { 
    order: 4 !important; 
    margin-top: 2px !important;
}

li.menu-item.venus-profile-links .vud-ui-ticket { 
    order: 5 !important; 
    margin-top: 2px !important;
}

li.menu-item.venus-profile-links .vud-ui-ticket::after {
    content: "";
    display: block;
    width: calc(100% - 20px);
    margin: 14px auto 0 auto;
    border-bottom: 1px dashed #e2e8f0;
}

li.menu-item.venus-profile-links .vud-ui-logout { 
    order: 6 !important; 
    margin-top: 14px !important;
}

/* =====================================
   4-1) مخفی کردن آیتم‌های اضافی
===================================== */
.vud-ui-wallet-origin,
li.menu-item.venus-profile-links .vud-ui-wishlist {
    display: none !important;
}

/* =====================================
   5) استایل لینک‌ها
===================================== */
li.menu-item.venus-profile-links .vud-ui-links > li > a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: background 0.15s ease !important;
    box-sizing: border-box !important;
}

li.menu-item.venus-profile-links .vud-ui-links > li > a:hover {
    background: #f1f5f9 !important;
}

.vud-ui-links svg {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    flex-shrink: 0 !important;
    fill: currentColor !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* =====================================
   6) کیف پول
===================================== */
li.menu-item.venus-profile-links .vud-ui-wallet-balance a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    
    min-height: 52px !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 14px 16px !important;
    
    border-radius: 0 10px 10px 0 !important;
    border-left: 4px solid #22c55e !important;
    border-top: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%) !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1) !important;
    
    color: #334155 !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

li.menu-item.venus-profile-links .vud-ui-wallet-balance a:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #f1f5f9 100%) !important;
    border-left-color: #16a34a !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
}

li.menu-item.venus-profile-links .vud-ui-wallet-balance a::before {
    content: "💳 کیف پول :";
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1 !important;
}

.vud-ui-wallet-balance .woo-wallet-icon-wallet {
    display: none !important;
}

.vud-ui-wallet-balance .woocommerce-Price-amount {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1 !important;
    padding: 6px 10px !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border-radius: 6px !important;
}

.vud-ui-wallet-balance .woocommerce-Price-currencySymbol {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
}

.vud-ui-wallet-balance bdi {
    display: flex !important;
    align-items: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #15803d !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

/* =====================================
   7) خروج
===================================== */
li.menu-item.venus-profile-links .vud-ui-logout > a {
    color: #ef4444 !important;
}

li.menu-item.venus-profile-links .vud-ui-logout > a:hover {
    background: #fee2e2 !important;
}

li.menu-item.venus-profile-links .vud-ui-logout svg {
    fill: #ef4444 !important;
}

/* =====================================
   8) حذف افکت هاور (یکپارچه)
===================================== */
.menu-item,
.menu-item *,
.vud-ui-links li,
.vud-ui-links li a,
.vud-ui-avatar,
.vud-ui-avatar *,
.vud-ui-wallet-balance a {
    transform: none !important;
    -webkit-transform: none !important;
}

/*بخش 9 موبایل */
/*بخش 9 موبایل */
@media (max-width: 768px) {
  li.menu-item.venus-profile-links {
    display: none !important;
  }
}