.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 20px;
    background: #fcfcfc;
    border-radius: 35px;
}

/* --- منوی کناری (Sidebar Navigation) --- */
.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    background: #ffffff;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 12px;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #777;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* افکت هاور منو */
.woocommerce-MyAccount-navigation li a:hover {
    background: #f8f8f8;
    color: #000;
    transform: translateX(-5px);
}

/* تب فعال (Active State) */
.woocommerce-MyAccount-navigation li.is-active a {
    background: #F32B56; /* مطابق با تم مشکی لوگوی Dhyana */
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- محتوای اصلی (Content Area) --- */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 600px;
    background: #ffffff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.02);
    border: 1px solid #f5f5f5;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- بخش نشانی‌ها (Addresses Card View) --- */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.woocommerce-Address {
    background: #ffffff !important;
    border: 1.5px solid #f0f0f0 !important;
    border-radius: 22px !important;
    padding: 30px !important;
    position: relative;
    transition: 0.3s;
}

.woocommerce-Address:hover {
    border-color: #000 !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05) !important;
}

.woocommerce-Address header {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.woocommerce-Address header h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #111;
}

.woocommerce-Address .edit {
    font-size: 13px;
    background: #f5f5f5;
    padding: 6px 15px;
    border-radius: 10px;
    color: #555 !important;
    text-decoration: none !important;
}

/* --- فرم جزئیات حساب (Account Details) --- */
.woocommerce-EditAccountForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.woocommerce-EditAccountForm p:not(.woocommerce-form-row--first):not(.woocommerce-form-row--last) {
    grid-column: span 2;
}

.woocommerce-EditAccountForm fieldset {
    grid-column: span 2;
    border: 1px solid #f0f0f0;
    padding: 25px;
    border-radius: 20px;
    margin-top: 20px;
}

.woocommerce-EditAccountForm legend {
    font-weight: 700;
    font-size: 17px;
    padding: 0 15px;
}

/* استایل ورودی‌ها */
.woocommerce-Input, input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 14px 18px !important;
    border-radius: 14px !important;
    border: 1px solid #eee !important;
    background: #f9f9f9 !important;
    font-size: 14px !important;
    transition: 0.3s !important;
}

.woocommerce-Input:focus {
    background: #fff !important;
    border-color: #000 !important;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04) !important;
    outline: none;
}

/* --- دکمه‌ها --- */
button.button {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 35px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button.button:hover {
    background: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- جداول سفارشات (Orders Table) --- */
.shop_table_responsive {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0 !important;
}

.shop_table thead th {
    background: #fcfcfc !important;
    padding: 20px !important;
    color: #999 !important;
    font-size: 13px !important;
    text-transform: uppercase;
}

.shop_table td {
    padding: 20px !important;
    border-bottom: 1px solid #f8f8f8 !important;
    font-size: 14px;
}

/* --- موبایل (Responsive) --- */
@media (max-width: 992px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    .woocommerce-MyAccount-navigation {
        flex: 1 1 100%;
    }
    .woocommerce-MyAccount-content {
        min-width: 100%;
    }
}

.col-1{
    width: 100%!important;
}
/* تنظیم ردیف اصلی برای فاصله گرفتن باکس‌ها */
.woocommerce-Addresses.addresses .row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin: 0 !important;
}

/* استایل کارت‌های نشانی */
.woocommerce-Address {
    flex: 1 !important;
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important;

    /* هم‌تراز کردن محتوای داخلی به صورت عمودی */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* تراز افقی محتوا در مرکز */
    text-align: center !important;
}

/* هم‌تراز کردن هدر (عنوان و دکمه) */
.woocommerce-Address-title {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important; /* قرارگیری دکمه زیر عنوان برای تقارن بیشتر */
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #f8f8f8;
    padding-bottom: 20px;
}

.woocommerce-Address-title h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #111;
}

/* استایل دکمه ویرایش/افزودن */
.woocommerce-Address .edit {
    order: 2; /* اطمینان از قرارگیری دکمه در جای درست */
    background: #000 !important;
    color: #fff !important;
    padding: 10px 25px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: 0.3s;
    display: inline-block !important;
}

.woocommerce-Address .edit:hover {
    background: #333 !important;
    transform: translateY(-2px);
}

/* استایل متن آدرس */
address {
    font-style: normal !important;
    line-height: 1.8 !important;
    color: #777 !important;
    font-size: 14px !important;
    margin: 0 !important;
    min-height: 50px; /* ایجاد ارتفاع ثابت برای هم‌تراز ماندن باکس‌ها */
    display: flex;
    align-items: center;
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .woocommerce-Addresses.addresses .row {
        flex-direction: column !important;
    }
    .woocommerce-Address {
        width: 100% !important;
        margin-bottom: 20px;
    }
}
/* ایجاد فضا برای آیکون‌ها در منو */
.woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* افزودن آیکون قبل از متن هر آیتم */
.woocommerce-MyAccount-navigation ul li a::before {
    font-family: "Font Awesome 5 Free"; /* مطمئن شوید این فونت در قالب فعال است */
    font-weight: 900;
    font-size: 18px;
    opacity: 0.7;
    transition: 0.3s;
}

/* اختصاص آیکون به هر بخش */
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f009"; }      /* آیکون داشبورد */
.woocommerce-MyAccount-navigation-link--orders a::before { content: "\f291"; }         /* آیکون سبد خرید */
.woocommerce-MyAccount-navigation-link--downloads a::before { content: "\f019"; }      /* آیکون دانلود */
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f3c5"; }   /* آیکون لوکیشن */
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f4ff"; }   /* آیکون کاربر */
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f2f5"; }/* آیکون خروج */

/* تغییر رنگ آیکون در حالت فعال */
.woocommerce-MyAccount-navigation li.is-active a::before {
    color: #fff;
    opacity: 1;
}
/*this is for  avatar style*/
.dhyana-avatar-upload-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    border: 2px dashed #eee;
    margin-bottom: 25px !important;
}

.dhyana-avatar-upload-section label {
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

.dhyana-avatar-upload-section input[type="file"] {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

/* نمایش دایره‌ای آواتار در بالای منو */
.user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/*this is for  avatar*/
/* کانتینر آواتار در بالاترین نقطه */
.dhyana-avatar-absolute-top {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.avatar-outer-ring {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

#avatar-preview-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.camera-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #000;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 2px solid #fff;
    transition: 0.3s;
}

.camera-overlay:hover { transform: scale(1.1); }
.camera-overlay input { display: none; }

.avatar-title-text h3 {
    margin: 0 0 5px 0 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}

.avatar-title-text p {
    margin: 0 !important;
    font-size: 13px;
    color: #888;
}

.dhyana-spacer {
    width: 100%;
    height: 1px;
    background: #f0f0f0;
    margin-bottom: 35px;
}
/* کانتینر آواتار در بالاترین نقطه با پوشش تمام عرض */
.dhyana-avatar-absolute-top {
    grid-column: 1 / -1; /* کل عرض ردیف را در فرم دو ستونه می‌گیرد */
    display: flex;
    align-items: center;
    gap: 25px;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    width: 100%; /* اطمینان از پر شدن عرض */
}

/* جداکننده بعد از آواتار که تمام عرض را پوشش می‌دهد */
.dhyana-spacer {
    grid-column: 1 / -1; /* این خط هم باید تمام عرض باشد */
    width: 100%;
    height: 1px;
    background: #f0f0f0;
    margin-bottom: 35px;
}
/*this for avatr innav bar*/
/* تنظیم کانتینر ناوبری برای دربرگرفتن صحیح آواتار */
.woocommerce-MyAccount-navigation {
    display: flex !important;
    flex-direction: column !important; /* چیدمان ستونی برای قرارگیری آواتار بالای لیست */
    background: #fff !important;
    border-radius: 30px !important;
    padding: 25px 15px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
}

/* استایل بخش آواتار که حالا داخل nav قرار گرفته است */
.sidebar-avatar-header {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f9f9f9 !important;
}

.sidebar-avatar-header img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #fff !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
    display: inline-block !important;
}

/* حذف فواصل اضافی از لیست برای چسبیدن به آواتار */
.woocommerce-MyAccount-navigation ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
/*this is  for notification*/
.dhyana-pro-container { margin-bottom: 30px; display: grid; gap: 15px; }

.dhyana-notif-card {
    background: #fff;
    border-radius: 30px; /* لبه‌های گرد ۳۰ پیکسلی برند شما */
    padding: 25px;
    display: flex;
    gap: 20px;
    border: 1px solid #f2f2f2;
    box-shadow: 0 12px 35px rgba(0,0,0,0.04);
    position: relative;
}

.notif-icon-box {
    width: 55px; height: 55px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}

.notif-content h5 { margin: 0 0 8px 0; font-size: 16px; font-weight: 900; color: #222; }
.notif-text { font-size: 13.5px; color: #555; line-height: 1.7; margin-bottom: 12px; }

.notif-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #222;
    color: #fff !important;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
}

.notif-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* رنگ‌های اختصاصی */
.style-info .notif-icon-box { background: #eef2ff; color: #5e72e4; }
.style-success .notif-icon-box { background: #f0fdf4; color: #2dce89; }
.style-warning .notif-icon-box { background: #fff9e6; color: #fb6340; }
.style-danger .notif-icon-box { background: #fff5f5; color: #f5365c; }
/* ظرف اصلی اعلانات */
.dhyana-notif-wrapper,
.dhyana-notifications-archive {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

/* کارت اعلان حرفه‌ای */
.dhyana-notif-card,
.notif-page-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px; /* هماهنگ با لبه‌های گرد برند شما */
    padding: 25px;
    border: 1px solid rgba(230, 230, 230, 0.5);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s ease-out forwards;
}

/* افکت هاور کارت */
.dhyana-notif-card:hover,
.notif-page-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #5e72e4;
}

/* باکس آیکون */
.notif-icon-box,
.notif-page-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* استایل‌های رنگی اختصاصی بر اساس نوع اعلان */
.style-info, .notif-info { border-right: 6px solid #5e72e4; }
.style-info .notif-icon-box { background: #eef2ff; color: #5e72e4; }

.style-success, .notif-success { border-right: 6px solid #2dce89; }
.style-success .notif-icon-box { background: #f0fdf4; color: #2dce89; }

.style-warning, .notif-warning { border-right: 6px solid #fb6340; }
.style-warning .notif-icon-box { background: #fff9e6; color: #fb6340; }

.style-danger, .notif-danger { border-right: 6px solid #f5365c; }
.style-danger .notif-icon-box { background: #fff5f5; color: #f5365c; }

/* محتوای متنی */
.notif-content h5,
.notif-page-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 800;
    color: #1a1f36;
}

.notif-text,
.notif-page-content {
    font-size: 14px;
    color: #4f566b;
    line-height: 1.7;
}

/* دکمه عملیاتی (CTA) */
.notif-btn,
.notif-page-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #5e72e4 0%, #825ee4 100%);
    color: #ffffff !important;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(94, 114, 228, 0.3);
}

.notif-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(94, 114, 228, 0.4);
}

/* متای تاریخ */
.notif-page-date {
    font-size: 11px;
    color: #adb5bd;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* انیمیشن ورودی */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* استفاده از انتخابگر دقیق‌تر برای غلبه بر استایل قالب */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--user-notifications a::before {
    content: "\f488" !important; /* کد زنگوله در Dashicons */
    font-family: "dashicons" !important;
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
    color: #555;
}

/* استایل عدد اعلان در منو */
.notif-menu-badge {
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-right: 5px;
    vertical-align: middle;
}

.woocommerce-MyAccount-navigation-link--user-notifications a {
    display: flex !important;
    align-items: center;
}

.is-unread { border-right: 4px solid #ff4757 !important; background: #fff9f9 !important; }
.new-badge { background: #ff4757; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 10px; margin-right: 10px; }
woocommerce-MyAccount-navigation-link--direct-messages a::before { content: "\f466" !important; font-family: dashicons !important; margin-left: 8px; }
.dm-menu-badge { background: #ff4757; color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 10px; margin-right: 5px; }
.dm-modal-overlay { display:none; position:fixed; z-index:99999; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.6); align-items:center; justify-content:center; backdrop-filter: blur(3px); }
.dm-modal-card { background:#fff; width:55%; padding:40px; border-radius:15px; position:relative; direction:rtl; text-align:right; max-height:80vh; overflow-y:auto; }
.dm-close-btn { position:absolute; top:10px; left:15px; font-size:25px; cursor:pointer; color:#999; }
.new-label-dm { background:#ff4757; color:#fff; font-size:10px; padding:2px 8px; border-radius:10px; margin-left:10px; }
.is-unread { border-right: 4px solid #ff4757 !important; background: #fffafa !important; }
.is-read { border-right: 4px solid #5e72e4 !important; opacity: 0.8; }
.woocommerce-MyAccount-navigation-link--direct-messages a::before {
    content: "\f466" !important;
    font-family: dashicons !important;
    margin-left: 10px;
}

/* آیکون اعلانات (زنگوله) */
.woocommerce-MyAccount-navigation-link--user-notifications a::before {
    content: "\f467" !important;
    font-family: dashicons !important;
    margin-left: 10px;
}

/* استایل نشانگر عدد */
.dm-count-badge {
    background: #ff4757;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 12px;
    line-height: 1;
    margin-right: 5px;
}

.woocommerce-MyAccount-navigation-link--direct-messages a,
.woocommerce-MyAccount-navigation-link--user-notifications a {
    display: flex !important;
    align-items: center;
}

.dhyana-badge { background:#ff4757; color:#fff; font-size:10px; padding:2px 7px; border-radius:10px; margin-right:5px; }
.woocommerce-MyAccount-navigation-link--direct-messages a::before { content: "\f466" !important; font-family: dashicons !important; margin-left: 10px; vertical-align: middle; }

.dhyana-modal-overlay { display:none; position:fixed; z-index:99999; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); backdrop-filter:blur(5px); align-items:center; justify-content:center; }
.dhyana-modal-content { background:#fff; width:60%; max-width:90%; padding:30px; border-radius:20px; position:relative; direction:rtl; text-align:right; box-shadow:0 20px 50px rgba(0,0,0,0.3); }
.dhyana-close-modal { position:absolute; top:15px; left:20px; font-size:28px; cursor:pointer; color:#aaa; }

.dm-item-card { background:#f8f9fa; padding:20px; border-radius:15px; border-right:5px solid #5e72e4; margin-bottom:15px; transition: all 0.3s; }
.dm-item-card.is-read { border-right-color: #cbd5e0; opacity: 0.7; }
.open-dhyana-modal { background:#5e72e4; color:#fff; border:none; padding:8px 20px; border-radius:30px; cursor:pointer; margin-top:10px; }