/* ============================================================
   accnew.css — «نمای جدید» لیست اکانت‌ها (مود انتخابی کاربر)
   ساختار HTML همان ساختار کلاسیک است؛ این فایل فقط وقتی کلاس
   accview-modern روی #accsell باشد ظاهر را عوض می‌کند.
   انتخاب کاربر در localStorage (کلید accview) ذخیره می‌شود.
   ============================================================ */

/* ---------- دکمه تغییر نما (همیشه دیده می‌شود) ---------- */
.accviewswitch-wrap a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: linear-gradient(135deg, #f4b700, #ffd55e);
    color: #503408 !important;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(244, 183, 0, .35);
    transition: transform .15s ease, box-shadow .15s ease;
    user-select: none;
}

.accviewswitch-wrap a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 183, 0, .5);
}

.accviewswitch-wrap a i {
    font-size: 13px;
}

.accviewswitch-wrap a label {
    cursor: pointer;
}

/* ---------- کارت ---------- */
#accsell.accview-modern > ul > li > div {
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(20, 24, 40, .07);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#accsell.accview-modern > ul > li > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(20, 24, 40, .14);
}

/* کارت اکانت‌های VIP (قاب طلایی در نمای کلاسیک) با حاشیه طلایی مشخص می‌شود */
#accsell.accview-modern > ul > li > div:has(.divdynamictemplate1_gold) {
    border-color: rgba(244, 183, 0, .65);
    box-shadow: 0 4px 18px rgba(244, 183, 0, .18);
}

/* ---------- تصویر ---------- */
#accsell.accview-modern .accimg_new_a_mother {
    position: relative;
    height: 200px;
    background: #f3f4f7;
}

/* قاب‌های گرافیکی (چوبی/نقره‌ای/طلایی) و لایه تزئینی مخفی می‌شوند.
   لودر بعد از لود data-src را حذف می‌کند، پس هر دو حالت پوشش داده شده */
#accsell.accview-modern .accimg_new1[data-src*="newtemplate/design"],
#accsell.accview-modern .accimg_new1[src*="newtemplate/design"],
#accsell.accview-modern .accimg_new3 {
    display: none;
}

/* اسکرین‌شات اکانت: تمام‌کادر */
#accsell.accview-modern .accimg_new2 {
    position: absolute;
    top: 0 !important;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    transition: transform .3s ease;
}

#accsell.accview-modern .accimg_new_a_mother:hover .accimg_new2 {
    transform: scale(1.05);
}

/* حالت بدون تصویر (no-pictures.png) */
#accsell.accview-modern .accimg_new1:not([data-src*="newtemplate/design"]):not([src*="newtemplate/design"]) {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: contain;
    padding: 30px;
    box-sizing: border-box;
    opacity: .65;
}

/* ---------- چیپ‌های روی تصویر (لول / شماره / ویدیو) ---------- */
#accsell.accview-modern .divdynamictemplate {
    position: absolute;
    z-index: 500;
    transform: none;
    font-size: 12px;
    font-weight: 700;
    color: #fff !important;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 2px 10px;
    line-height: 1.8;
    backdrop-filter: blur(4px);
}

/* لول: بالا-راست */
#accsell.accview-modern .divdynamictemplate1 {
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
}

#accsell.accview-modern .divdynamictemplate1::before {
    content: 'Lvl ';
    font-weight: 400;
    opacity: .8;
}

/* لول طلایی/نقره‌ای برای اکانت‌های ویژه */
#accsell.accview-modern .divdynamictemplate1_gold {
    background: linear-gradient(135deg, #f4b700, #ffd55e);
    border-color: #f4b700;
    color: #503408 !important;
}

#accsell.accview-modern .divdynamictemplate1_silver {
    background: linear-gradient(135deg, #e3e7ee, #b9c0cc);
    border-color: #cfd4dc;
    color: #2c2f36 !important;
}

/* شماره آگهی: بالا-چپ */
#accsell.accview-modern .divdynamictemplate2 {
    top: 10px;
    left: 10px;
    right: auto;
    bottom: auto;
}

#accsell.accview-modern .divdynamictemplate2::before {
    content: '#';
    opacity: .8;
}

/* ویدیو / تعداد ممبر: پایین-چپ */
#accsell.accview-modern .divdynamictemplate4 {
    top: auto;
    bottom: 10px;
    left: 10px;
    right: auto;
}

#accsell.accview-modern .divdynamictemplate4 .success_color {
    color: #4be3b0;
}

#accsell.accview-modern .divdynamictemplate4 .danger_color {
    color: #ff8a84;
}

/* ---------- قیمت ---------- */
#accsell.accview-modern .accprice {
    height: auto;
    line-height: 2;
    padding: 10px 14px 2px;
    box-sizing: border-box;
}

#accsell.accview-modern .accprice > div {
    background: transparent;
    height: auto;
    color: #7a7f8c;
    font-size: 13px;
}

#accsell.accview-modern .accprice > div > label {
    font-size: 16px;
    font-weight: 900;
}

#accsell.accview-modern .accprice .pageaccountlabel2 {
    color: #0e8c6f;
}

/* ---------- دکمه خرید ---------- */
#accsell.accview-modern .accpay {
    display: block;
    float: none;
    width: auto;
    height: auto;
    min-height: 42px;
    line-height: 2.8;
    margin: 8px 14px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0e8c6f, #16a786) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(14, 140, 111, .25);
    padding: 0 8px;
    overflow: hidden;
    transition: filter .2s ease, box-shadow .2s ease;
}

#accsell.accview-modern .accpay:hover {
    background: linear-gradient(135deg, #0b7a60, #119173) !important;
    color: #fff !important;
    padding-left: 8px;
    box-shadow: 0 8px 18px rgba(14, 140, 111, .4);
}

#accsell.accview-modern .accpay:hover div {
    color: #fff !important;
}
