/* ============================================================
   حساب کاربری — طراحی اپلیکیشنی (مطابق طرح فداکار گلد)
   فونت از قالب به ارث می‌رود (IRANYekanX) — عرض کانتینر سایت: 1320px
   ============================================================ */

:root {
    --cs-green: #17664f;
    --cs-green-dark: #104b3a;
    --cs-green-soft: #eaf4ef;
    --cs-gold: #b99854;
    --cs-ink: #202923;
    --cs-muted: #7a857e;
    --cs-line: #e9eee9;
    --cs-bg: #f7f9f7;
    --cs-white: #fff;
    --cs-red: #c45b55;
    --cs-radius: 18px;
    --cs-shadow: 0 8px 28px rgba(29, 66, 48, 0.045);
}

/* ---------- ریشه اپلیکیشن ---------- */
.cs-app {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.8;
    color: var(--cs-ink);
    margin: 0 0 30px;
}

.cs-app *,
.cs-app *::before,
.cs-app *::after {
    box-sizing: border-box;
}

.cs-app a {
    color: inherit;
    text-decoration: none;
}

.cs-app button,
.cs-app input,
.cs-app select,
.cs-app textarea {
    font: inherit;
    color: inherit;
}

.cs-app .cs-ico {
    flex-shrink: 0;
    display: block;
}

/* ---------- دکمه‌ها ---------- */
.cs-app .btn {
    border: 0;
    border-radius: 11px;
    padding: 10px 15px;
    background: var(--cs-green);
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
    cursor: pointer;
    box-shadow: none;
}

.cs-app .btn:hover {
    background: var(--cs-green-dark);
    transform: translateY(-1px);
    color: #fff;
}

.cs-app .btn.outline {
    background: #fff;
    color: var(--cs-green);
    border: 1px solid #d9e7de;
}

.cs-app .btn.outline:hover {
    background: var(--cs-green-soft);
}

.cs-app .btn.small {
    padding: 7px 11px;
    font-size: 11px;
    border-radius: 9px;
}

.cs-app .cs-full-btn {
    width: 100%;
    margin-top: 4px;
}

/* ---------- توپ‌بار ---------- */
.cs-topbar {
    height: 76px;
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 22px;
    position: sticky;
    top: 10px;
    z-index: 40;
    box-shadow: var(--cs-shadow);
    margin-bottom: 22px;
}

.cs-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 19px;
    color: var(--cs-green);
}

.cs-brand-mark {
    width: 38px;
    height: 38px;
    border: 1px solid #d9c58e;
    color: var(--cs-gold);
    display: grid;
    place-items: center;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.cs-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cs-brand-text {
    line-height: 1.25;
}

.cs-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cs-icon-btn {
    position: relative;
    border: 1px solid var(--cs-line);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #53645a;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: 0.2s;
}

.cs-icon-btn:hover {
    border-color: #c9dfd1;
    color: var(--cs-green);
    background: #f8fbf8;
}

.cs-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #d35f55;
    border-radius: 50%;
    top: 8px;
    right: 8px;
    border: 1.5px solid #fff;
}

.cs-menu-toggle {
    display: none;
    border: 1px solid var(--cs-line);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #53645a;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ---------- لایه‌بندی دوستونه (عرض استاندارد سایت) ---------- */
.cs-layout {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* سایدبار = نویگیشن ووکامرس */
.cs-layout > .woocommerce-MyAccount-navigation {
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
    padding: 17px 13px;
    position: sticky;
    top: 108px;
    width: auto;
    float: none;
    margin: 0;
    box-shadow: var(--cs-shadow);
}

.cs-layout .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cs-layout .woocommerce-MyAccount-navigation li {
    margin: 3px 0;
    border-bottom: 0;
    padding: 0;
}

.cs-layout .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 12px;
    color: #66736a;
    transition: 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.cs-layout .woocommerce-MyAccount-navigation li a::before {
    content: "";
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: var(--cs-nav-ico) center / contain no-repeat;
    mask: var(--cs-nav-ico) center / contain no-repeat;
}

.cs-layout .woocommerce-MyAccount-navigation li a:hover {
    background: #f6f9f6;
    color: var(--cs-green);
}

.cs-layout .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-item--active a {
    background: var(--cs-green-soft);
    color: var(--cs-green);
    font-weight: 700;
}

.cs-layout .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-item--customer-logout a {
    color: #a3564f;
}

.cs-layout .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-item--customer-logout a:hover {
    background: #fdf3f2;
    color: #c45b55;
}

/* آیکن‌های ماسکی هر آیتم منو */
.cs-layout .woocommerce-MyAccount-navigation-link--dashboard a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.cs-layout .woocommerce-MyAccount-navigation-link--orders a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.cs-layout .woocommerce-MyAccount-navigation-link--downloads a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }
.cs-layout .woocommerce-MyAccount-navigation-link--edit-address a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.cs-layout .woocommerce-MyAccount-navigation-link--edit-account a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.cs-layout .woocommerce-MyAccount-navigation-link--payment-methods a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E"); }
.cs-layout .woocommerce-MyAccount-navigation-link--customer-logout a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E"); }
.cs-layout .woocommerce-MyAccount-navigation-link--support-tickets a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 1 0 6v3a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3a3 3 0 0 1 0-6V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2z'/%3E%3Cpath d='M13 5v2M13 11v2M13 17v2'/%3E%3C/svg%3E"); }
.cs-layout .woocommerce-MyAccount-navigation-link--notifications a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }
.cs-layout .woocommerce-MyAccount-navigation-link--account-security a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.cs-layout .woocommerce-MyAccount-navigation-link--yith_wcwl_myaccount a,
.cs-layout .woocommerce-MyAccount-navigation-link--wishlist a { --cs-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }

/* محتوای اصلی */
.cs-layout > .woocommerce-MyAccount-content {
    min-width: 0;
    float: none;
    width: auto;
    margin: 0;
    font-size: 13px;
}

/* سلام و معرفی پیش‌فرض ووکامرس در همه تب‌ها پنهان می‌شود (جایگزین: سربرگ طراحی جدید) */
body.woocommerce-account .woocommerce-MyAccount-content > h2,
body.woocommerce-account .woocommerce-MyAccount-content > p,
.cs-layout .woocommerce-MyAccount-content > h2,
.cs-layout .woocommerce-MyAccount-content > p {
    display: none;
}

/* اعلان‌های ووکامرس (موفقیت/خطا) با زبان بصری جدید */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
    border-radius: 12px;
    border: 1px solid #d9e7de;
    background: #f8fbf8;
    color: var(--cs-green);
    font-size: 12px;
}

.cs-layout > .woocommerce-MyAccount-content > .cs-app-page {
    min-width: 0;
}

/* ---------- سربرگ صفحه ---------- */
.cs-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 21px;
}

.cs-page-head h1 {
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 4px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--cs-ink);
}

.cs-page-head p {
    margin: 0;
    color: var(--cs-muted);
    font-size: 12px;
}

.cs-head-date {
    color: var(--cs-muted);
    background: #fff;
    border: 1px solid var(--cs-line);
    padding: 9px 12px;
    border-radius: 11px;
    white-space: nowrap;
    font-size: 11px;
}

/* ---------- بنر خوش‌آمد ---------- */
.cs-hero {
    background: linear-gradient(115deg, #104b3a 0%, #17664f 64%, #28765d 100%);
    color: #fff;
    border-radius: 20px;
    padding: 23px 25px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.cs-hero::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    left: -75px;
    top: -145px;
    box-shadow: 0 0 0 25px rgba(255, 255, 255, 0.025), 0 0 0 55px rgba(255, 255, 255, 0.02);
}

.cs-hero-copy,
.cs-hero-side {
    position: relative;
    z-index: 1;
}

.cs-hero h2 {
    font-size: 21px;
    margin: 5px 0 7px;
    font-weight: 700;
}

.cs-hero p {
    font-size: 12px;
    color: #d5e7dd;
    margin: 0 0 16px;
}

.cs-hero .btn {
    background: #fff;
    color: var(--cs-green);
}

.cs-hero .btn:hover {
    background: #f0f6f2;
}

.cs-hero-side {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-right: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    min-width: 205px;
}

.cs-profile-pic {
    width: 67px;
    height: 67px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    background: #e7f0e9;
    color: var(--cs-green);
    display: grid;
    place-items: center;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.cs-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
}

.cs-profile-pic--bordered {
    border: 1px solid var(--cs-line);
    width: 80px;
    height: 80px;
}

.cs-avatar-btn {
    position: absolute;
    bottom: -3px;
    left: -3px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--cs-green);
    background: #fff;
    color: var(--cs-green);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.cs-hero-user strong {
    font-size: 13px;
    display: block;
}

.cs-hero-user small {
    display: block;
    color: #c7ded2;
    font-size: 10px;
}

.cs-member-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #f2e5bd;
    font-size: 10px;
    margin-top: 7px;
}

/* ---------- کارت‌های آمار ---------- */
.cs-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.cs-stat {
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 16px;
    padding: 16px;
    min-width: 0;
    box-shadow: var(--cs-shadow);
}

.cs-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.cs-stat-label {
    font-size: 11px;
    color: var(--cs-muted);
}

.cs-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #edf5f0;
    color: var(--cs-green);
}

.cs-stat-value {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.4;
    margin: 12px 0 4px;
    letter-spacing: -0.5px;
}

.cs-stat-foot {
    font-size: 10px;
    color: #8a958d;
}

/* ---------- شبکه داشبورد ---------- */
.cs-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr);
    gap: 18px;
    align-items: start;
}

.cs-dash-main,
.cs-dash-side {
    min-width: 0;
}

/* ---------- پنل‌ها ---------- */
.cs-panel {
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 17px;
    padding: 19px;
    box-shadow: var(--cs-shadow);
    margin-bottom: 18px;
    min-width: 0;
}

.cs-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cs-panel-head h3 {
    font-size: 14px;
    margin: 0;
    font-weight: 800;
    color: var(--cs-ink);
}

.cs-panel-head p {
    font-size: 10px;
    color: var(--cs-muted);
    margin: 3px 0 0;
}

.cs-text-link {
    font-size: 11px;
    color: var(--cs-green);
    font-weight: 700;
    white-space: nowrap;
}

.cs-text-link:hover {
    color: var(--cs-green-dark);
}

/* ---------- ردیف سفارش ---------- */
.cs-order-list {
    display: flex;
    flex-direction: column;
}

.cs-order-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2ef;
    transition: 0.15s;
}

.cs-order-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cs-order-row:first-child {
    padding-top: 0;
}

.cs-order-row:hover {
    opacity: 0.82;
}

.cs-product-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8f6ef, #eee8d9);
    display: grid;
    place-items: center;
    font-size: 23px;
    color: #b59858;
    overflow: hidden;
}

.cs-product-thumb .cs-ico {
    color: #b59858;
}

.cs-product-thumb img.cs-thumb-img,
.cs-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.cs-order-info {
    min-width: 0;
}

.cs-order-name {
    font-weight: 700;
    font-size: 12px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-order-meta {
    color: var(--cs-muted);
    font-size: 10px;
    display: block;
    margin-top: 3px;
}

.cs-order-end {
    text-align: left;
    display: block;
}

.cs-price {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    display: block;
    margin-bottom: 5px;
}

/* ---------- بج وضعیت ---------- */
.cs-status {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.cs-status--green {
    background: #e8f5ec;
    color: #2b8154;
}

.cs-status--orange {
    background: #fff3df;
    color: #a56a17;
}

.cs-status--blue {
    background: #eaf1fb;
    color: #5077b0;
}

.cs-status--gray {
    background: #f0f2f0;
    color: #778079;
}

/* ---------- کارت پیشرفت پروفایل ---------- */
.cs-progress-card {
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 17px;
    padding: 19px;
    box-shadow: var(--cs-shadow);
    margin-bottom: 18px;
}

.cs-progress-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cs-ring {
    width: 67px;
    height: 67px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
}

.cs-ring::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #fff;
}

.cs-ring strong {
    position: relative;
    font-size: 15px;
    color: var(--cs-green);
}

.cs-progress-head h3 {
    font-size: 13px;
    margin: 0 0 3px;
    color: var(--cs-ink);
}

.cs-progress-head p {
    font-size: 10px;
    color: var(--cs-muted);
    margin: 0;
}

.cs-progress-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 16px;
}

.cs-progress-item {
    font-size: 10px;
    color: #66736a;
    display: flex;
    gap: 7px;
    align-items: center;
}

.cs-progress-item.is-done {
    color: var(--cs-green);
    font-weight: 600;
}

.cs-progress-item .cs-todo-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #c0a46b;
    display: inline-block;
    flex-shrink: 0;
    margin: 0 2px;
}

.cs-progress-card .btn {
    width: 100%;
    margin-top: 15px;
}

/* ---------- فعالیت / اعلان‌ها ---------- */
.cs-activity-list {
    display: block;
}

.cs-activity {
    display: flex;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2ef;
    align-items: flex-start;
}

.cs-activity:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cs-activity.is-unread {
    background: #f8fbf8;
    border-radius: 12px;
    padding: 10px;
    margin: 0 -10px;
}

.cs-activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.cs-activity-icon--green {
    background: #eaf5ee;
    color: var(--cs-green);
}

.cs-activity-icon--gold {
    background: #f8f2e5;
    color: #a9853e;
}

.cs-activity-icon--blue {
    background: #edf3fb;
    color: #6284b8;
}

.cs-activity-body {
    min-width: 0;
    flex: 1;
}

.cs-activity-body strong {
    font-size: 11px;
    display: block;
    margin-bottom: 2px;
}

.cs-activity-body p {
    margin: 0;
    color: var(--cs-muted);
    font-size: 10px;
}

.cs-activity-body time {
    display: block;
    font-size: 9px;
    color: #a0a8a1;
    margin-top: 4px;
}

.cs-dot-badge {
    display: inline-block;
    background: #d35f55;
    color: #fff;
    font-size: 8px;
    border-radius: 6px;
    padding: 1px 6px;
    margin-right: 5px;
    vertical-align: 1px;
}

.cs-activity--row {
    align-items: center;
}

.cs-markall-form {
    display: inline-block;
}

/* ---------- کارت تیکت ---------- */
.cs-ticket-card {
    display: block;
    background: #f8fbf8;
    border: 1px solid #e8f0e9;
    border-radius: 13px;
    padding: 13px;
    margin-bottom: 10px;
    transition: 0.2s;
}

.cs-ticket-card:hover {
    border-color: #c9dfd1;
    background: #f3f9f5;
}

.cs-ticket-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cs-ticket-top strong {
    font-size: 11px;
}

.cs-ticket-meta {
    display: block;
    font-size: 10px;
    color: var(--cs-muted);
    margin: 5px 0;
}

.cs-ticket-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    color: #8a958d;
}

/* ---------- خالی / هشدار ---------- */
.cs-empty-note {
    padding: 26px;
    text-align: center;
    color: var(--cs-muted);
    background: #fafcfa;
    border-radius: 13px;
    font-size: 11px;
}

.cs-empty-note strong {
    display: block;
    color: var(--cs-ink);
    font-size: 12px;
    margin-bottom: 4px;
}

.cs-empty-note p {
    margin: 0 0 10px;
}

.cs-empty-icon {
    display: grid;
    place-items: center;
    color: var(--cs-gold);
    margin-bottom: 8px;
}

.cs-alert {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
}

.cs-alert--success {
    background: #e8f5ec;
    color: #2b8154;
    border: 1px solid #cfe8d8;
}

.cs-alert--error {
    background: #fdf1f0;
    color: #a5443e;
    border: 1px solid #f2d3d0;
}

.cs-alert--info {
    background: #eaf1fb;
    color: #5077b0;
    border: 1px solid #d3e1f4;
}

/* ---------- فرم‌ها (دقیقاً مطابق طرح) ---------- */
.cs-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cs-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #56645a;
}

.cs-field .req {
    color: var(--cs-red);
}

.cs-field input,
.cs-field select,
.cs-field textarea {
    width: 100%;
    border: 1px solid #e3e9e3;
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
    outline: none;
    color: var(--cs-ink);
    transition: 0.2s;
}

.cs-field input:focus,
.cs-field select:focus,
.cs-field textarea:focus {
    border-color: #8ab49d;
    box-shadow: 0 0 0 3px #eaf4ee;
}

.cs-field--full {
    grid-column: 1 / -1;
}

.cs-field textarea {
    min-height: 105px;
    resize: vertical;
}

.cs-form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 9px;
    margin-top: 18px;
}

/* آواتار در پنل پروفایل */
.cs-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cs-avatar-hint {
    color: var(--cs-muted);
    font-size: 10px;
    margin: 8px 0 0;
}

/* فیلتر سفارش‌ها */
.cs-orders-filter {
    border: 1px solid var(--cs-line);
    border-radius: 9px;
    padding: 8px 10px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* صفحه‌بندی */
.cs-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}

.cs-pagination__link {
    border: 1px solid var(--cs-line);
    background: #fff;
    border-radius: 9px;
    padding: 6px 13px;
    font-size: 11px;
    color: var(--cs-green);
    font-weight: 600;
    transition: 0.2s;
}

.cs-pagination__link:hover {
    background: var(--cs-green-soft);
}

.cs-pagination__info {
    font-size: 10px;
    color: var(--cs-muted);
}

/* آدرس ذخیره‌شده */
.cs-saved-address {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f8fbf8;
    border: 1px solid #e8f0e9;
    border-radius: 13px;
    padding: 13px;
}

.cs-saved-address strong {
    font-size: 12px;
    display: block;
    margin-bottom: 3px;
}

.cs-saved-address p {
    margin: 0;
    font-size: 11px;
    color: var(--cs-muted);
}

/* ---------- فوتر ساده ---------- */
.cs-account-footer {
    text-align: center;
    color: #a0a8a1;
    font-size: 11px;
    padding: 22px 0 6px;
}

.cs-account-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.cs-account-footer__brand {
    font-weight: 700;
    color: var(--cs-green);
}

.cs-account-footer__links {
    display: flex;
    gap: 14px;
}

.cs-account-footer__links a:hover {
    color: var(--cs-green);
}

.cs-account-footer__copy {
    margin: 0;
}

/* ---------- ریسپانسیو ---------- */
@media screen and (max-width: 1100px) {
    .cs-layout {
        grid-template-columns: 215px minmax(0, 1fr);
        gap: 16px;
    }

    .cs-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-dash-grid {
        grid-template-columns: 1fr;
    }

    .cs-hero-side {
        min-width: 190px;
    }
}

@media screen and (max-width: 720px) {
    .cs-topbar {
        height: 64px;
        padding: 0 14px;
        border-radius: 14px;
        top: 6px;
    }

    .cs-brand {
        font-size: 16px;
    }

    .cs-brand-mark {
        width: 34px;
        height: 34px;
    }

    .cs-menu-toggle {
        display: inline-flex;
    }

    .cs-layout {
        display: block;
        margin: 0 auto;
    }

    .cs-layout > .woocommerce-MyAccount-navigation {
        display: none;
        position: fixed;
        top: 84px;
        right: 12px;
        left: 12px;
        z-index: 45;
        box-shadow: 0 15px 45px rgba(24, 58, 37, 0.15);
        max-height: calc(100vh - 100px);
        overflow: auto;
    }

    .cs-layout > .woocommerce-MyAccount-navigation.is-open {
        display: block;
    }

    .cs-layout > .woocommerce-MyAccount-content {
        margin-top: 16px;
    }

    .cs-page-head {
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .cs-page-head h1 {
        font-size: 20px;
    }

    .cs-head-date {
        font-size: 9px;
        padding: 7px 8px;
    }

    .cs-hero {
        grid-template-columns: 1fr;
        padding: 19px;
        gap: 17px;
    }

    .cs-hero h2 {
        font-size: 19px;
    }

    .cs-hero-side {
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        padding: 14px 0 0;
        min-width: 0;
    }

    .cs-stats {
        gap: 10px;
    }

    .cs-stat {
        padding: 13px;
    }

    .cs-stat-value {
        font-size: 22px;
        margin-top: 8px;
    }

    .cs-stat-icon {
        width: 32px;
        height: 32px;
    }

    .cs-panel,
    .cs-progress-card {
        padding: 15px;
    }

    .cs-form-grid {
        grid-template-columns: 1fr;
    }

    .cs-field--full {
        grid-column: auto;
    }

    .cs-order-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 9px;
    }

    .cs-product-thumb {
        width: 40px;
        height: 40px;
    }

    .cs-order-name {
        font-size: 11px;
    }

    .cs-price {
        font-size: 10px;
    }

    .cs-status {
        font-size: 8px;
        padding: 3px 6px;
    }
}

@media screen and (max-width: 380px) {
    .cs-stats {
        grid-template-columns: 1fr 1fr;
    }

    .cs-hero h2 {
        font-size: 17px;
    }
}

/* ---------- سازگاری با ماژول‌های قبلی ---------- */
body.woocommerce-account.cs-simple-footer .elementor-location-footer {
    display: none !important;
}

.cs-nudge {
    background: #fffbe8;
    border: 1px solid #f0e4b0;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.cs-nudge__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cs-nudge__title {
    margin: 0 0 4px;
    font-size: 14px;
    color: #7a5c12;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs-nudge__text {
    margin: 0;
    font-size: 12px;
    color: #8a7433;
}

.cs-nudge__dismiss {
    font-size: 20px;
    color: #b39a4a;
    line-height: 1;
}

.cs-nudge__bar {
    height: 7px;
    background: #f3ecc9;
    border-radius: 6px;
    margin: 12px 0 6px;
    overflow: hidden;
}

.cs-nudge__bar span {
    display: block;
    height: 100%;
    background: var(--cs-gold);
    border-radius: 6px;
}

.cs-nudge__percent {
    margin: 0 0 8px;
    font-size: 11px;
    color: #8a7433;
}

.cs-nudge__list {
    margin: 0 0 10px;
    padding-right: 18px;
    font-size: 12px;
    color: #8a7433;
}

.cs-nudge__btn {
    display: inline-block;
    background: #fff;
    border: 1px solid #e3d49a;
    color: #7a5c12;
    border-radius: 9px;
    padding: 6px 12px;
    font-size: 12px;
    margin-left: 6px;
}

.cs-nudge__btn--primary {
    background: var(--cs-gold);
    border-color: var(--cs-gold);
    color: #fff;
}

/* ==========================================================
   پیشنهادات ویژه (offers)
   ========================================================== */
.cs-offer-list {
    display: grid;
    gap: 12px;
}

.cs-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
    background: var(--cs-white);
}

.cs-offer.is-expired {
    opacity: 0.55;
}

.cs-offer-main {
    flex: 1;
    min-width: 0;
}

.cs-offer-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cs-offer-title {
    font-size: 14.5px;
    color: var(--cs-green-900);
}

.cs-offer-badge {
    background: var(--cs-danger-bg);
    color: var(--cs-danger);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
}

.cs-offer-code {
    display: inline-block;
    direction: ltr;
    background: var(--cs-green-50);
    border: 1px dashed var(--cs-green-500);
    color: var(--cs-green-700);
    border-radius: var(--cs-radius-sm);
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.cs-offer-desc {
    margin: 0 0 8px;
    font-size: 12.5px;
    color: var(--cs-muted);
    line-height: 1.9;
}

.cs-offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 11.5px;
    color: var(--cs-muted);
}

.cs-offer-meta strong {
    color: var(--cs-ink);
}

.cs-offer-copy {
    border: 1px solid var(--cs-green-500);
    background: var(--cs-white);
    color: var(--cs-green-700);
    border-radius: var(--cs-radius-sm);
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.cs-offer-copy:hover,
.cs-offer-copy.is-done {
    background: var(--cs-green-600);
    border-color: var(--cs-green-600);
    color: #fff;
}

.cs-offer-more {
    flex-shrink: 0;
    background: var(--cs-green-900);
    color: #fff !important;
    border-radius: var(--cs-radius-sm);
    padding: 8px 16px;
    font-size: 12.5px;
    text-decoration: none;
}

.cs-offer--detail {
    display: block;
}

.cs-offer-hint {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--cs-muted);
    background: var(--cs-green-50);
    border-radius: var(--cs-radius-sm);
    padding: 10px 14px;
}

/* ==========================================================
   مشاهده‌های اخیر (recently viewed)
   ========================================================== */
.cs-rv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.cs-rv-item {
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
    background: var(--cs-white);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cs-rv-item:hover {
    box-shadow: var(--cs-shadow);
    transform: translateY(-2px);
}

.cs-rv-item img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: var(--cs-green-50);
}

.cs-rv-body {
    padding: 10px 12px 12px;
}

.cs-rv-body strong {
    display: block;
    font-size: 12.5px;
    color: var(--cs-ink);
    line-height: 1.8;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cs-rv-price {
    font-size: 12.5px;
    color: var(--cs-green-700);
    font-weight: 700;
}

/* ---------- سربرگ صفحه: تاریخ + زنگوله اعلان‌ها ---------- */
.cs-page-head__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cs-page-head__right .cs-head-bell {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--cs-green);
    background: var(--cs-green-50);
    border-color: transparent;
}

.cs-page-head__right .cs-head-bell:hover {
    background: var(--cs-green);
    color: #fff;
}

/* ---------- گوشه‌های گرد دکمه‌های پیشفرض ووکامرس/قالب ---------- */
.cs-layout .woocommerce-MyAccount-content .button,
.cs-layout .woocommerce-MyAccount-content button:not(.cs-icon-btn):not(.cs-avatar-btn):not(.cs-menu-toggle),
.cs-layout .woocommerce-MyAccount-content input[type="submit"],
.cs-layout .woocommerce-MyAccount-content input[type="button"],
.cs-tickets .button,
.cs-tickets button:not(.cs-icon-btn):not(.cs-menu-toggle) {
    border-radius: 10px;
}

/* ---------- لیست علاقه‌مندی‌ها (وودمارت/افزونه ویش‌لیست) ---------- */
.cs-layout .woocommerce-MyAccount-content .wishlist_table,
.cs-layout .woocommerce-MyAccount-content .woodmart-wishlist-table,
.cs-layout .woocommerce-MyAccount-content .cs-wishlist-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 14px;
    overflow: hidden;
    margin: 0;
}

.cs-layout .woocommerce-MyAccount-content .wishlist_table thead th,
.cs-layout .woocommerce-MyAccount-content .woodmart-wishlist-table thead th,
.cs-layout .woocommerce-MyAccount-content .cs-wishlist-table thead th {
    background: #f6faf7;
    color: var(--cs-muted);
    font-size: 11.5px;
    font-weight: 700;
    padding: 13px 15px;
    border-bottom: 1px solid var(--cs-line);
    white-space: nowrap;
}

.cs-layout .woocommerce-MyAccount-content .wishlist_table tbody td,
.cs-layout .woocommerce-MyAccount-content .woodmart-wishlist-table tbody td,
.cs-layout .woocommerce-MyAccount-content .cs-wishlist-table tbody td {
    padding: 14px 15px;
    border-bottom: 1px solid #eef4ef;
    font-size: 12.5px;
    color: var(--cs-ink);
    vertical-align: middle;
}

.cs-layout .woocommerce-MyAccount-content .wishlist_table tbody tr:last-child td,
.cs-layout .woocommerce-MyAccount-content .woodmart-wishlist-table tbody tr:last-child td,
.cs-layout .woocommerce-MyAccount-content .cs-wishlist-table tbody tr:last-child td {
    border-bottom: 0;
}

.cs-layout .woocommerce-MyAccount-content .wishlist_table tbody tr:hover,
.cs-layout .woocommerce-MyAccount-content .woodmart-wishlist-table tbody tr:hover {
    background: #fbfdfb;
}

.cs-layout .woocommerce-MyAccount-content .wishlist_table td img,
.cs-layout .woocommerce-MyAccount-content .woodmart-wishlist-table td img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--cs-green-50);
}

.cs-layout .woocommerce-MyAccount-content .wishlist_table td.product-name a,
.cs-layout .woocommerce-MyAccount-content .woodmart-wishlist-table td.product-name a {
    color: var(--cs-ink);
    font-weight: 700;
    text-decoration: none;
}

.cs-layout .woocommerce-MyAccount-content .wishlist_table td.product-name a:hover,
.cs-layout .woocommerce-MyAccount-content .woodmart-wishlist-table td.product-name a:hover {
    color: var(--cs-green);
}

.cs-layout .woocommerce-MyAccount-content .wishlist_table .button,
.cs-layout .woocommerce-MyAccount-content .woodmart-wishlist-table .button {
    border-radius: 9px;
    padding: 7px 13px;
    font-size: 11.5px;
}

/* ---------- مخفی‌سازی بازنویسی منوی woodmart-plus (آواتار/منوی پیشفرض) ---------- */
.cs-layout > .dashboard_side,
.cs-layout .dashboard_side,
.cs-layout .dashboard_avatar,
.cs-layout .dashboard_menu {
    display: none !important;
}
