/* ================================================================================
   SHAZDEH — MY-ACCOUNT DESKTOP (دور ۱۱۹) — v=AC1
   چیدمان دوستونه طبق موکاپ account-v1: سایدبار چسبان (پروفایل + ناوبری + خروج)
   راست، محتوا (کیف پول/سکه/آمار/رهگیری/سفارش‌ها) چپ. موبایل دست‌نخورده.
   ================================================================================ */
@media (min-width:992px){
body#my-account{
  --ak-ink:#3D2C2E; --ak-ink2:#5A4A4C; --ak-ink3:#8B7B7D;
  --ak-pink:#F478A9; --ak-pink-dk:#E0568B; --ak-pale:#FFF0F5; --ak-cream:#FFF8F5;
  --ak-line:#F6E9EF; --ak-line2:#F3D9E4; --ak-mint:#E9F7F1; --ak-mint-dk:#2FA37C;
  --ak-sh:0 10px 30px rgba(176,58,110,.08), 0 3px 8px rgba(0,0,0,.03);
}

/* ضدفلش: تا JS چیدمان دسکتاپ را نساخته، نسخه موبایل دیده نشود */
body#my-account .szd-acc:not(.szd-acc--desk){visibility:hidden}

/* ستون لینک‌های قدیمی تم حذف؛ ستون اصلی تمام‌عرض ۱۱۸۰ وسط */
body#my-account .my_account_left_column{display:none !important}
body#my-account #content > .col-lg-9,
body#my-account .szd-acct-full{
  flex:0 0 100% !important; max-width:1180px !important; width:100% !important;
  margin:0 auto !important; float:none !important; padding:0 16px !important;
}

/* گرید دوستونه — سایدبار ۳۰۰ راست (RTL: ستون اول)؛ سقف عرض موبایلی آزاد */
body#my-account .szd-acc.szd-acc--desk{
  display:grid !important; grid-template-columns:300px minmax(0,1fr) !important;
  gap:22px !important; align-items:start !important;
  max-width:none !important; width:100% !important; margin:0 !important; padding:0 !important;
}
body#my-account .szd-acct-main > *{max-width:none !important; width:auto !important; margin-inline:0 !important}
/* هیرو: لایه بک‌گراند موبایل حذف، محتوا وسط‌چین ستونی */
body#my-account .szd-acct-side .szd-acc__hero-bg{display:none !important}
body#my-account .szd-acct-side .szd-acc__user{
  position:static !important; display:flex !important; flex-direction:column !important;
  align-items:center !important; gap:10px !important; padding:0 !important; margin:0 !important;
}
body#my-account .szd-acct-side .szd-acc__avatar{
  width:80px !important; height:80px !important; border-radius:50% !important;
  background:linear-gradient(135deg,#FFE3EE,#FFD3E4) !important; border:2.5px solid #fff !important;
  box-shadow:0 8px 20px rgba(224,86,139,.2) !important; display:flex !important;
  align-items:center !important; justify-content:center !important; color:var(--ak-pink-dk) !important;
}
body#my-account .szd-acct-side .szd-acc__avatar svg{width:36px !important; height:36px !important}
body#my-account .szd-acct-side .szd-acc__user-info{text-align:center !important}
body#my-account .szd-acct-side .szd-acc__name{font-size:15.5px !important; font-weight:900 !important; color:var(--ak-ink) !important}
body#my-account .szd-acct-side .szd-acc__edit{
  display:inline-block; margin-top:8px; font-size:10.5px; font-weight:800; color:var(--ak-pink-dk) !important;
  background:var(--ak-pale); border:1px solid var(--ak-line2); border-radius:999px; padding:4px 14px; text-decoration:none;
}
body#my-account .szd-acct-side{position:sticky; top:16px; display:flex; flex-direction:column; gap:14px; min-width:0}
body#my-account .szd-acct-main{min-width:0; display:flex; flex-direction:column; gap:18px}
body#my-account .szd-acct-main > *{margin-top:0 !important; margin-bottom:0 !important}

/* ─── سایدبار: هیرو پروفایل = کارت ─── */
body#my-account .szd-acct-side .szd-acc__hero{
  background:#fff !important; border:1px solid var(--ak-line) !important; border-radius:22px !important;
  box-shadow:var(--ak-sh) !important; padding:20px 18px 22px !important; text-align:center;
  height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important;
}

/* ─── سایدبار: تایل‌های مدیریت → لیست ناوبری ─── */
body#my-account .szd-acct-side .szd-acc__grid{
  display:flex !important; flex-direction:column !important; gap:2px !important;
  background:#fff !important; border:1px solid var(--ak-line) !important; border-radius:22px !important;
  box-shadow:var(--ak-sh) !important; padding:10px !important;
}
body#my-account .szd-acct-side .szd-acc__tile{
  display:flex !important; flex-direction:row !important; align-items:center !important; gap:12px !important;
  background:transparent !important; border:0 !important; box-shadow:none !important;
  border-radius:14px !important; padding:11px 14px !important; margin:0 !important;
  font-size:13px !important; font-weight:700 !important; color:var(--ak-ink2) !important;
  text-align:right !important; min-height:0 !important; aspect-ratio:auto !important;
  transition:background .15s,color .15s;
}
body#my-account .szd-acct-side .szd-acc__tile:hover{background:var(--ak-cream) !important; color:var(--ak-ink) !important; transform:none !important}
body#my-account .szd-acct-side .szd-acc__tile > :is(svg, img, span[class*=ic], i){
  width:20px !important; height:20px !important; flex:0 0 auto !important; margin:0 !important;
}
body#my-account .szd-acct-side .szd-acc__tile *{font-size:13px !important}
body#my-account .szd-acct-side .szd-acc__tile small,
body#my-account .szd-acct-side .szd-acc__tile [class*=sub]{display:none !important}

/* ردیف خروج ته سایدبار */
body#my-account .szd-acct-side .szd-acc__rows--exit{
  background:#fff !important; border:1px solid var(--ak-line) !important; border-radius:18px !important;
  box-shadow:var(--ak-sh) !important; padding:6px 10px !important; margin:0 !important;
}
body#my-account .szd-acct-side .szd-acc__row--danger{border:0 !important; box-shadow:none !important}

/* ─── محتوا: کارت‌های موجود v5 ─── */
body#my-account .szd-acct-main > :is(.szd-acc__wallet, .szd-coinw, .szd-coins2, .tmx-stack, .szd-acc__orders, .szd-acc__mkt2){
  background:#fff; border:1px solid var(--ak-line); border-radius:22px;
  box-shadow:var(--ak-sh);
}
body#my-account .szd-acct-main .szd-acc__stats{
  display:grid !important; grid-template-columns:repeat(3,1fr) !important; gap:14px !important;
}
body#my-account .szd-acct-main .szd-acc__stat{
  border-radius:20px !important; padding:16px 18px !important; min-height:0 !important;
}
body#my-account .szd-acct-main .szd-acc__sec-title{
  display:flex; align-items:center; justify-content:space-between; padding:4px 6px 0;
}
body#my-account .szd-acct-main .szd-acc__sec-title h3{
  font-family:'DigiSarvenaz','Vazirmatn',Tahoma,sans-serif !important; font-size:19px !important; font-weight:400 !important;
  color:var(--ak-ink) !important; padding:0 4px 8px !important; margin:0 !important; display:inline-block;
  background:linear-gradient(to left,#F7A8C4,rgba(253,225,236,0) 74%) no-repeat bottom right/58% 3px !important;
  border:0 !important;
}
/* سفارش‌های اخیر: ردیف‌های افقی تمام‌عرض */
body#my-account .szd-acct-main .szd-acc__orders{padding:8px 18px}
body#my-account .szd-acct-main .szd-acc__order{
  display:flex !important; align-items:center !important; gap:14px !important;
  border:0 !important; border-bottom:2px dotted var(--ak-line) !important; border-radius:0 !important;
  box-shadow:none !important; padding:13px 4px !important; margin:0 !important; background:transparent !important;
}
body#my-account .szd-acct-main .szd-acc__order:last-child{border-bottom:0 !important}

/* اسکرول‌بار احتمالی سایدبار */
body#my-account .szd-acct-side{max-height:calc(100vh - 24px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:#F3D9E4 transparent}
}

/* ================================================================================
   AC2 — زیرصفحه‌های حساب در دسکتاپ (identity/addresses/history/wallet/ماژول‌ها)
   ================================================================================ */
@media (min-width:992px){
body#identity .my_account_left_column, body#addresses .my_account_left_column,
body#history .my_account_left_column, body#order-slip .my_account_left_column,
body#discount .my_account_left_column, body#order-follow .my_account_left_column,
body#order-detail .my_account_left_column,
body[id^=module-wkcustomerwallet] .my_account_left_column,
body[id^=module-rainmaster] .my_account_left_column,
body[id^=module-reviewmaster] .my_account_left_column,
body[id^=module-stlovedproduct] .my_account_left_column,
body[id^=module-allinone_rewards] .my_account_left_column{display:none !important}

body#identity #content > .col-lg-9, body#addresses #content > .col-lg-9,
body#history #content > .col-lg-9, body#order-slip #content > .col-lg-9,
body#discount #content > .col-lg-9, body#order-follow #content > .col-lg-9,
body#order-detail #content > .col-lg-9,
body[id^=module-wkcustomerwallet] #content > .col-lg-9,
body[id^=module-rainmaster] #content > .col-lg-9,
body[id^=module-reviewmaster] #content > .col-lg-9,
body[id^=module-stlovedproduct] #content > .col-lg-9,
body[id^=module-allinone_rewards] #content > .col-lg-9{
  flex:0 0 100% !important; max-width:1180px !important; width:100% !important;
  margin:0 auto !important; float:none !important; padding:0 16px !important;
}

/* اطلاعات حساب: فرم پهن‌تر و دوستونه (دکمه/تیترها تمام‌عرض) */
body#identity .szd-cform{max-width:880px !important; margin:0 auto !important;
  display:grid; grid-template-columns:1fr 1fr; gap:0 20px; align-items:start}
body#identity .szd-cform > *{grid-column:1 / -1}
body#identity .szd-cform > .form-group{grid-column:auto}

/* آدرس‌ها: گرید دوستونه؛ هدر/دکمه افزودن تمام‌عرض */
body#addresses .szd-addr{max-width:1000px !important; margin:0 auto !important;
  display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start}
body#addresses .szd-addr > *{grid-column:1 / -1}
body#addresses .szd-addr > :is(article, .address, .szd-addr-card){grid-column:auto}

/* تاریخچه سفارش و بقیه لیست‌ها: پهن‌تر و وسط */
body#history .szd-hist{max-width:960px !important; margin:0 auto !important}
body#order-detail #content [class*=szd-]{max-width:none}
}
