/* Rasta Academy — حساب کاربری */

.rasta-acc-page { direction: rtl; padding: 14px 0 40px; color: var(--t-ink); }
.rasta-acc-page *, .rasta-acc-page *::before, .rasta-acc-page *::after { box-sizing: border-box; }
.rasta-acc-page a { text-decoration: none; }

/* ================= چیدمان ================= */
.rasta-acc { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 24px; }
.rasta-acc__side { display: grid; gap: 12px; min-width: 0; }
.rasta-acc__main { display: grid; gap: 22px; min-width: 0; }

/* کارت پروفایل */
.rasta-acc__profile { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px; overflow: hidden; border: 1px solid rgba(220, 230, 255, .9); border-radius: 26px; background: radial-gradient(80% 120% at 100% 0%, rgba(47, 107, 255, .14), transparent 60%), linear-gradient(180deg, #F2F6FF, #fff); isolation: isolate; }
.rasta-acc__profile::after { content: ""; position: absolute; inset: 8px; z-index: -1; border: 1.5px dashed rgba(47, 107, 255, .16); border-radius: 20px; }
.rasta-acc__avatar { flex: 0 0 56px; width: 56px; height: 56px; overflow: hidden; border-radius: 18px; background: var(--t-blue-50); box-shadow: 0 0 0 3px #fff, 0 12px 22px -12px rgba(47, 107, 255, .7); }
.rasta-acc__avatar img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.rasta-acc__who { display: flex; flex-direction: column; min-width: 0; }
.rasta-acc__who b { overflow: hidden; color: var(--t-ink); font-size: 15.5px; font-weight: 700; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
.rasta-acc__who small { color: var(--t-muted); font-size: 12px; line-height: 1.7; }

/* منو */
.rasta-acc__nav { padding: 8px; border: 1px solid var(--t-line); border-radius: 22px; background: #fff; }
.rasta-acc__nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.rasta-acc__nav li { margin: 0; padding: 0; }
.rasta-acc__nav a, .rasta-acc__nav a:visited { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; color: var(--t-ink-2); font-size: 14px; font-weight: 600; transition: background .2s ease, color .2s ease; }
.rasta-acc__nav a svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--t-muted); transition: color .2s ease; }
.rasta-acc__nav a:hover { background: var(--t-soft); color: var(--t-blue); }
.rasta-acc__nav a:hover svg { color: var(--t-blue); }
.rasta-acc__nav li.is-active a { background: var(--t-blue); color: #fff; box-shadow: 0 12px 24px -14px rgba(47, 107, 255, .9); }
.rasta-acc__nav li.is-active a svg { color: #fff; }
.rasta-acc__nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--t-line); }
.rasta-acc__nav li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #B42318; }
.rasta-acc__nav li.woocommerce-MyAccount-navigation-link--customer-logout a svg { color: #F04438; }
.rasta-acc__nav li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #FEF3F2; }

/* ================= پیشخوان ================= */
.rasta-dash__hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; padding: clamp(22px, 3vw, 34px); overflow: hidden; border-radius: 28px; background: radial-gradient(60% 120% at 0% 0%, rgba(141, 178, 255, .4), transparent 60%), linear-gradient(135deg, #1F4FD8 0%, var(--t-blue) 100%); color: #fff; isolation: isolate; }
.rasta-dash__hero::before { content: ""; position: absolute; inset: 10px; z-index: -1; border: 1.5px dashed rgba(255, 255, 255, .25); border-radius: 20px; }
.rasta-dash__hi { display: block; color: rgba(255, 255, 255, .8); font-size: 13.5px; font-weight: 600; }
.rasta-dash__hero h2 { margin: 4px 0 4px; padding: 0; color: #fff; font-family: inherit; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.6; }
.rasta-dash__hero p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 13.5px; line-height: 1.9; }
.rasta-dash__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rasta-dash__stats li { display: flex; flex-direction: column; align-items: center; min-width: 96px; margin: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: rgba(255, 255, 255, .12); text-align: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rasta-dash__stats svg { width: 20px; height: 20px; margin-bottom: 4px; color: #BFD3FF; }
.rasta-dash__stats b { font-size: 20px; font-weight: 700; line-height: 1.4; }
.rasta-dash__stats span { color: rgba(255, 255, 255, .75); font-size: 11.5px; line-height: 1.7; white-space: nowrap; }

/* ================= سربرگ بخش‌ها و تب‌ها ================= */
.rasta-acc__head h2 { margin: 0; padding: 0; color: var(--t-ink); font-family: inherit; font-size: 19px; font-weight: 700; line-height: 1.6; }
.rasta-acc__head p { margin: 2px 0 0; color: var(--t-muted); font-size: 13.5px; line-height: 1.9; }
.rasta-acc__head.is-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -8px; }
.rasta-acc__head.is-row a, .rasta-acc__head.is-row a:visited { display: inline-flex; align-items: center; gap: 6px; color: var(--t-blue); font-size: 13.5px; font-weight: 600; }
.rasta-acc__head.is-row a svg { width: 16px; height: 16px; }

.rasta-acc__tabs { display: flex; gap: 6px; padding: 6px; overflow-x: auto; border: 1px solid var(--t-line); border-radius: 18px; background: #fff; scrollbar-width: none; }
.rasta-acc__tabs::-webkit-scrollbar { display: none; }
.rasta-acc__tabs a, .rasta-acc__tabs a:visited { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 13px; color: var(--t-ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.rasta-acc__tabs a small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 8px; background: var(--t-soft); color: var(--t-muted); font-size: 11.5px; }
.rasta-acc__tabs a:hover { color: var(--t-blue); }
.rasta-acc__tabs a.is-active { background: var(--t-blue); color: #fff; }
.rasta-acc__tabs a.is-active small { background: rgba(255, 255, 255, .2); color: #fff; }

/* ================= کارت دوره ================= */
.rasta-acc__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.rasta-mc { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--t-line); border-radius: 24px; background: #fff; transition: transform .4s var(--t-ease), box-shadow .4s var(--t-ease), border-color .3s ease; }
.rasta-mc:hover { border-color: var(--t-blue-100); box-shadow: 0 30px 50px -38px rgba(16, 24, 40, .5); transform: translateY(-3px); }
.rasta-mc__media { position: relative; display: block; aspect-ratio: 16 / 10; margin: 8px 8px 0; overflow: hidden; border-radius: 18px; background: var(--t-blue-50); }
.rasta-mc__media img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; transition: transform .8s var(--t-ease); }
.rasta-mc:hover .rasta-mc__media img { transform: scale(1.05); }
.rasta-mc__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(47, 107, 255, .35); }
.rasta-mc__ph svg { width: 40px; height: 40px; }
.rasta-mc__state { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--t-ink-2); font-size: 11.5px; font-weight: 600; line-height: 1.8; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rasta-mc__state svg { width: 13px; height: 13px; }
.rasta-mc.is-doing .rasta-mc__state { color: var(--t-blue); }
.rasta-mc.is-done .rasta-mc__state { background: #12B76A; color: #fff; }
.rasta-mc__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.rasta-mc__eyebrow { color: var(--t-blue); font-size: 12.5px; font-weight: 600; }
.rasta-mc__title { display: -webkit-box; margin: 0; padding: 0; overflow: hidden; font-family: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rasta-mc__title a, .rasta-mc__title a:visited { color: var(--t-ink); transition: color .2s ease; }
.rasta-mc__title a:hover { color: var(--t-blue); }
.rasta-mc__progress { display: flex; align-items: center; gap: 10px; }
.rasta-mc__bar { position: relative; flex: 1; height: 6px; overflow: hidden; border-radius: 6px; background: var(--t-blue-50); }
.rasta-mc__bar i { position: absolute; inset-block: 0; right: 0; border-radius: 6px; background: linear-gradient(to left, var(--t-blue), #8DB2FF); }
.rasta-mc.is-done .rasta-mc__bar i { background: #12B76A; }
.rasta-mc__progress b { flex: 0 0 auto; color: var(--t-ink); font-size: 12.5px; font-weight: 700; }
.rasta-mc__meta { display: flex; flex-direction: column; gap: 2px; margin: 0; color: var(--t-muted); font-size: 12.5px; line-height: 1.8; }
.rasta-mc__next { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rasta-mc__btn, .rasta-mc__btn:visited { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: auto; padding: 0 16px; border-radius: 14px; background: var(--t-blue-50); color: var(--t-blue); font-size: 13.5px; font-weight: 700; transition: background .2s ease, color .2s ease; }
.rasta-mc__btn svg { width: 15px; height: 15px; }
.rasta-mc__btn:hover, .rasta-mc.is-doing .rasta-mc__btn { background: var(--t-blue); color: #fff; }
.rasta-mc.is-doing .rasta-mc__btn:hover { background: var(--t-blue-600); }

/* کارت بزرگ «آخرین دوره» */
.rasta-mc.is-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border-radius: 28px; }
.rasta-mc.is-wide .rasta-mc__media { aspect-ratio: auto; min-height: 220px; margin: 10px; border-radius: 22px; }
.rasta-mc.is-wide .rasta-mc__media img { position: absolute; inset: 0; }
.rasta-mc.is-wide .rasta-mc__body { justify-content: center; gap: 10px; padding: 22px 26px 22px 14px; }
.rasta-mc.is-wide .rasta-mc__title { font-size: clamp(17px, 1.8vw, 21px); }
.rasta-mc.is-wide .rasta-mc__btn { align-self: flex-start; height: 48px; margin-top: 6px; padding: 0 22px; background: var(--t-blue); color: #fff; box-shadow: 0 14px 26px -14px rgba(47, 107, 255, .9); }
.rasta-mc.is-wide .rasta-mc__btn:hover { background: var(--t-blue-600); }

/* حالت خالی */
.rasta-acc__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: clamp(36px, 6vw, 60px) 20px; border: 1px dashed var(--t-blue-100); border-radius: 26px; background: #fff; text-align: center; }
.rasta-acc__empty-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 24px; background: var(--t-blue-50); color: var(--t-blue); box-shadow: 0 0 0 10px rgba(47, 107, 255, .05); }
.rasta-acc__empty-icon svg { width: 32px; height: 32px; }
.rasta-acc__empty h3 { margin: 0; padding: 0; color: var(--t-ink); font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.6; }
.rasta-acc__empty p { max-width: 420px; margin: 0; color: var(--t-muted); font-size: 14px; line-height: 2; }
.rasta-acc__btn, .rasta-acc__btn:visited { display: inline-flex; align-items: center; gap: 8px; height: 48px; margin-top: 10px; padding: 0 22px; border-radius: 15px; background: var(--t-blue); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 14px 26px -14px rgba(47, 107, 255, .9); transition: background .2s ease; }
.rasta-acc__btn:hover { background: var(--t-blue-600); color: #fff; }
.rasta-acc__btn svg { width: 18px; height: 18px; }

/* ================= سفارش‌ها و جزئیات سفارش ================= */
.rasta-acc__main table.shop_table { width: 100%; margin: 0; overflow: hidden; border: 1px solid var(--t-line); border-collapse: separate; border-spacing: 0; border-radius: 22px; background: #fff; font-size: 14px; }
.rasta-acc__main table.shop_table th, .rasta-acc__main table.shop_table td { padding: 14px 16px; border: 0; border-top: 1px solid var(--t-line); background: none; color: var(--t-ink-2); line-height: 1.8; text-align: right; vertical-align: middle; }
.rasta-acc__main table.shop_table thead th { border-top: 0; background: var(--t-soft); color: var(--t-muted); font-size: 12.5px; font-weight: 600; }
.rasta-acc__main table.shop_table tbody tr:first-child td, .rasta-acc__main table.shop_table tbody tr:first-child th { border-top: 0; }
.rasta-acc__main table.shop_table thead + tbody tr:first-child td, .rasta-acc__main table.shop_table thead + tbody tr:first-child th { border-top: 1px solid var(--t-line); }
.rasta-acc__main table.shop_table a { color: var(--t-blue); font-weight: 600; }
.rasta-acc__main table.shop_table tfoot th { color: var(--t-muted); font-weight: 400; }
.rasta-acc__main table.shop_table tfoot tr:last-child th, .rasta-acc__main table.shop_table tfoot tr:last-child td { color: var(--t-ink); font-weight: 700; }
.rasta-acc__main .woocommerce-orders-table__cell-order-status { font-weight: 600; }
.rasta-acc__main .woocommerce-orders-table__cell-order-actions { text-align: left; white-space: nowrap; }
.rasta-acc__main .woocommerce-orders-table thead th:last-child { text-align: left; }

.rasta-acc__main .button, .rasta-acc__main a.button, .rasta-acc__main button.button { display: inline-flex; align-items: center; justify-content: center; height: 38px; margin: 2px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--t-blue-50); color: var(--t-blue); font: inherit; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.rasta-acc__main .button:hover { background: var(--t-blue); color: #fff; }
.rasta-acc__main .button.pay { background: var(--t-blue); color: #fff; }
.rasta-acc__main .button.cancel { background: #FEF3F2; color: #B42318; }

.rasta-acc__main .woocommerce-message, .rasta-acc__main .woocommerce-info, .rasta-acc__main .woocommerce-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 14px 18px; border: 1px solid var(--t-line); border-inline-start: 4px solid var(--t-blue); border-radius: 16px; background: #fff; color: var(--t-ink-2); font-size: 14px; line-height: 1.9; list-style: none; }
.rasta-acc__main .woocommerce-message::before, .rasta-acc__main .woocommerce-info::before, .rasta-acc__main .woocommerce-error::before { content: none; }
.rasta-acc__main .woocommerce-message { border-inline-start-color: #12B76A; }
.rasta-acc__main .woocommerce-error { border-inline-start-color: #F04438; }

.rasta-acc__main .woocommerce-pagination { display: flex; justify-content: center; gap: 8px; }
.rasta-acc__main .woocommerce-order-details, .rasta-acc__main .woocommerce-customer-details { margin: 0; }
.rasta-acc__main .woocommerce-order-details__title, .rasta-acc__main .woocommerce-column__title { margin: 0 0 12px; padding: 0; color: var(--t-ink); font-family: inherit; font-size: 17px; font-weight: 700; }
.rasta-acc__main .woocommerce-customer-details address { padding: 16px 18px; border: 1px solid var(--t-line); border-radius: 18px; background: #fff; font-style: normal; line-height: 2; }
.rasta-acc__main mark { padding: 0 6px; border-radius: 6px; background: var(--t-blue-50); color: var(--t-blue); font-weight: 600; }

/* ================= واکنش‌گرا ================= */
@media (max-width: 960px) {
    .rasta-acc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .rasta-acc__nav { padding: 6px; overflow-x: auto; border-radius: 18px; scrollbar-width: none; }
    .rasta-acc__nav::-webkit-scrollbar { display: none; }
    .rasta-acc__nav ul { display: flex; gap: 4px; }
    .rasta-acc__nav a { height: 42px; padding: 0 14px; white-space: nowrap; }
    .rasta-acc__nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0 auto 0 0; padding: 0; border: 0; }
}

@media (max-width: 720px) {
    .rasta-acc-page { padding-top: 8px; }
    .rasta-acc__nav { overflow: visible; }
    .rasta-acc__nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
    .rasta-acc__nav a { flex-direction: column; justify-content: center; gap: 4px; height: auto; padding: 9px 4px; font-size: 12px; white-space: nowrap; }
    .rasta-acc__nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; }
    .rasta-acc__profile { padding: 16px; border-radius: 22px; }
    .rasta-dash__hero { border-radius: 24px; }
    .rasta-dash__stats { width: 100%; }
    .rasta-dash__stats li { flex: 1 1 0; min-width: 0; padding: 10px 6px; }
    .rasta-dash__stats span { white-space: normal; }
    .rasta-mc.is-wide { grid-template-columns: minmax(0, 1fr); }
    .rasta-mc.is-wide .rasta-mc__media { aspect-ratio: 16 / 10; min-height: 0; margin: 8px 8px 0; }
    .rasta-mc.is-wide .rasta-mc__media img { position: static; }
    .rasta-mc.is-wide .rasta-mc__body { padding: 16px; }
    .rasta-mc.is-wide .rasta-mc__btn { align-self: stretch; }

    /* جدول سفارش‌ها به شکل کارت */
    .rasta-acc__main table.shop_table_responsive thead { display: none; }
    .rasta-acc__main table.shop_table_responsive tr { display: block; padding: 8px 0; border-top: 1px solid var(--t-line); }
    .rasta-acc__main table.shop_table_responsive tbody tr:first-child { border-top: 0; }
    .rasta-acc__main table.shop_table_responsive td, .rasta-acc__main table.shop_table_responsive th { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 16px; border: 0 !important; text-align: left; }
    .rasta-acc__main table.shop_table_responsive td::before { content: attr(data-title); color: var(--t-muted); font-size: 12.5px; font-weight: 600; text-align: right; }
    .rasta-acc__main table.shop_table_responsive td.woocommerce-orders-table__cell-order-actions { justify-content: flex-end; }
    .rasta-acc__main table.shop_table_responsive td.woocommerce-orders-table__cell-order-actions::before { content: none; }
}


/* ================= اطلاعات حساب ================= */
.rasta-prof { display: grid; gap: 16px; margin: 0; }
.rasta-prof__card { padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--t-line); border-radius: 24px; background: #fff; }

.rasta-prof__photo { display: flex; align-items: center; gap: 20px; background: radial-gradient(70% 140% at 100% 0%, rgba(47, 107, 255, .1), transparent 60%), #fff; }
.rasta-prof__pic { position: relative; flex: 0 0 96px; width: 96px; height: 96px; overflow: hidden; border-radius: 28px; background: var(--t-blue-50); box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px rgba(47, 107, 255, .18), 0 18px 30px -18px rgba(47, 107, 255, .8); }
.rasta-prof__pic img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.rasta-prof__photo-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rasta-prof__photo-body b { color: var(--t-ink); font-size: 15px; font-weight: 700; line-height: 1.7; }
.rasta-prof__photo-body small { color: var(--t-muted); font-size: 12.5px; line-height: 1.9; }
.rasta-prof__photo-body small.is-error { color: #B42318; font-weight: 600; }
.rasta-prof__photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.rasta-prof__file { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 40px; margin: 0; padding: 0 16px; overflow: hidden; border-radius: 13px; background: var(--t-blue-50); color: var(--t-blue); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease; }
.rasta-prof__file:hover { background: var(--t-blue); color: #fff; }
.rasta-prof__file svg { flex: 0 0 18px; width: 18px; height: 18px; }
.rasta-prof__file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rasta-prof__file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rasta-prof__remove { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #B42318; font-size: 13px; font-weight: 600; cursor: pointer; }
.rasta-prof__remove input { width: 16px; height: 16px; margin: 0; accent-color: #D92D20; }

.rasta-prof__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rasta-prof__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.rasta-prof__field.is-full { grid-column: 1 / -1; }
.rasta-prof__field > span { color: var(--t-ink-2); font-size: 13px; font-weight: 600; line-height: 1.6; }
.rasta-prof__field > span i { color: #D92D20; font-style: normal; }
.rasta-prof__field > span small { color: var(--t-muted); font-size: 12px; font-weight: 400; }
.rasta-prof__field input { width: 100%; height: 50px; margin: 0; padding: 0 16px; border: 1px solid var(--t-line); border-radius: 15px; background: var(--t-soft); color: var(--t-ink); box-shadow: none; font: inherit; font-size: 15px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.rasta-prof__field input[dir="ltr"] { text-align: left; }
.rasta-prof__field input:focus { border-color: var(--t-blue); outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); }
.rasta-prof__field em { color: var(--t-muted); font-size: 12px; font-style: normal; line-height: 1.8; }
.rasta-prof__ro { display: flex; align-items: center; height: 50px; padding: 0 16px; border: 1.5px dashed var(--t-line); border-radius: 15px; color: var(--t-ink-2); font-size: 15px; font-weight: 600; letter-spacing: .04em; }

.rasta-prof__btn, .rasta-prof__btn:hover, .rasta-prof__btn:focus { display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: start; height: 50px; margin: 0; padding: 0 28px; border: 0; border-radius: 15px; background: var(--t-blue); color: #fff; box-shadow: 0 18px 32px -18px rgba(47, 107, 255, .95); font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1; cursor: pointer; transition: background .2s ease, transform .3s ease; }
.rasta-prof__btn:hover { background: var(--t-blue-600, #1E4FD8); transform: translateY(-1px); }
.rasta-prof__btn svg { width: 18px; height: 18px; }

@media (max-width: 720px) {
    .rasta-acc__nav ul { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
    .rasta-acc__nav a { padding: 9px 2px; font-size: 11px; }
    .rasta-prof__photo { flex-direction: column; text-align: center; }
    .rasta-prof__photo-actions { justify-content: center; }
    .rasta-prof__grid { grid-template-columns: minmax(0, 1fr); }
    .rasta-prof__btn { justify-self: stretch; }
}


/* خنثی کردن عرض و float پیش‌فرض ووکامرس برای منو و محتوا */
.rasta-acc-page .rasta-acc .woocommerce-MyAccount-navigation,
.rasta-acc-page .rasta-acc .woocommerce-MyAccount-content { float: none; width: auto; margin: 0; }



/* ================= جزئیات سفارش ================= */
.rasta-ov__back, .rasta-ov__back:visited { display: inline-flex; align-items: center; justify-self: start; gap: 6px; margin-bottom: -8px; color: var(--t-muted); font-size: 13px; font-weight: 600; transition: color .2s ease; }
.rasta-ov__back:hover { color: var(--t-blue); }
.rasta-ov__back svg { width: 16px; height: 16px; }

.rasta-ov__hero { position: relative; display: grid; gap: 20px; padding: clamp(20px, 2.8vw, 30px); overflow: hidden; border: 1px solid rgba(220, 230, 255, .9); border-radius: 28px; background: radial-gradient(70% 120% at 100% 0%, rgba(47, 107, 255, .12), transparent 60%), linear-gradient(180deg, #F5F8FF, #fff); isolation: isolate; }
.rasta-ov__hero::before { content: ""; position: absolute; inset: 9px; z-index: -1; border: 1.5px dashed rgba(47, 107, 255, .14); border-radius: 21px; pointer-events: none; }
.rasta-ov__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.rasta-ov__eyebrow { display: block; color: var(--t-blue); font-size: 12.5px; font-weight: 600; }
.rasta-ov__title { margin: 2px 0 0; padding: 0; color: var(--t-ink); font-family: inherit; font-size: clamp(19px, 2vw, 23px); font-weight: 700; line-height: 1.5; }
.rasta-ov__status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: #FFFAEB; color: #B54708; font-size: 13px; font-weight: 700; line-height: 1.6; }
.rasta-ov__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(181, 71, 8, .15); }
.rasta-ov__status.is-paid { background: #ECFDF3; color: #067647; }
.rasta-ov__status.is-paid::before { box-shadow: 0 0 0 3px rgba(6, 118, 71, .15); }
.rasta-ov__status.is-failed { background: #FEF3F2; color: #B42318; }
.rasta-ov__status.is-failed::before { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.rasta-ov__status.is-closed { background: #F2F4F7; color: #475467; }
.rasta-ov__status.is-closed::before { box-shadow: none; }

.rasta-ov__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rasta-ov__meta li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 0 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--t-line); border-radius: 18px; background: rgba(255, 255, 255, .8); }
.rasta-ov__meta svg { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--t-blue-50); color: var(--t-blue); }
.rasta-ov__meta span { color: var(--t-muted); font-size: 12px; line-height: 1.7; }
.rasta-ov__meta b { overflow: hidden; color: var(--t-ink); font-size: 13.5px; font-weight: 700; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }

.rasta-ov__steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 0; padding: 0; list-style: none; }
.rasta-ov__steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; padding: 0 4px; text-align: center; }
.rasta-ov__steps li + li::before { content: ""; position: absolute; top: 19px; right: calc(-50% + 26px); left: calc(50% + 26px); border-top: 2px dashed var(--t-line); }
.rasta-ov__steps li.is-done + li::before { border-top-style: solid; border-color: var(--t-blue); }
.rasta-ov__dot { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border: 2px solid var(--t-line); border-radius: 14px; background: #fff; color: var(--t-muted); }
.rasta-ov__dot svg { width: 18px; height: 18px; }
.rasta-ov__steps li.is-done .rasta-ov__dot { border-color: var(--t-blue); background: var(--t-blue); color: #fff; box-shadow: 0 10px 20px -10px rgba(47, 107, 255, .9); }
.rasta-ov__steps li.is-now .rasta-ov__dot { border-color: #F79009; background: #FFFAEB; color: #B54708; box-shadow: 0 0 0 5px rgba(247, 144, 9, .12); }
.rasta-ov__steps li.is-fail .rasta-ov__dot { border-color: #F04438; background: #FEF3F2; color: #B42318; }
.rasta-ov__steps b { color: var(--t-ink); font-size: 13.5px; font-weight: 700; line-height: 1.7; }
.rasta-ov__steps small { color: var(--t-muted); font-size: 12px; line-height: 1.7; }
.rasta-ov__steps li.is-now small { color: #B54708; font-weight: 600; }
.rasta-ov__steps li.is-fail small { color: #B42318; font-weight: 600; }

.rasta-ov__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px dashed var(--t-line); }
.rasta-ov__act, .rasta-ov__act:visited { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; background: var(--t-blue-50); color: var(--t-blue); font-size: 14px; font-weight: 700; transition: background .2s ease, color .2s ease; }
.rasta-ov__act svg { width: 18px; height: 18px; }
.rasta-ov__act:hover { background: var(--t-blue); color: #fff; }
.rasta-ov__act.is-pay { background: var(--t-blue); color: #fff; box-shadow: 0 14px 26px -14px rgba(47, 107, 255, .9); }
.rasta-ov__act.is-pay:hover { background: var(--t-blue-600); }
.rasta-ov__act.is-cancel { background: #FEF3F2; color: #B42318; }
.rasta-ov__act.is-cancel:hover { background: #FEE4E2; color: #912018; }

.rasta-ov__card { padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--t-line); border-radius: 24px; background: #fff; }
.rasta-ov__h { margin: 0 0 14px; padding: 0; color: var(--t-ink); font-family: inherit; font-size: 16.5px; font-weight: 700; line-height: 1.6; }

.rasta-ov__items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rasta-ov__item { display: flex; align-items: center; gap: 14px; margin: 0; padding: 10px; border: 1px solid var(--t-line); border-radius: 20px; background: var(--t-soft); }
.rasta-ov__thumb { display: grid; flex: 0 0 76px; place-items: center; width: 76px; height: 76px; overflow: hidden; border-radius: 15px; background: var(--t-blue-50); color: rgba(47, 107, 255, .4); }
.rasta-ov__thumb img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.rasta-ov__thumb svg { width: 28px; height: 28px; }
.rasta-ov__info { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.rasta-ov__info b { color: var(--t-ink); font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.rasta-ov__info b a, .rasta-ov__info b a:visited { color: inherit; transition: color .2s ease; }
.rasta-ov__info b a:hover { color: var(--t-blue); }
.rasta-ov__price { color: var(--t-muted); font-size: 13px; }
.rasta-ov__prog { display: flex; align-items: center; gap: 10px; max-width: 320px; }
.rasta-ov__prog .rasta-mc__bar { background: #fff; }
.rasta-ov__prog small { flex: 0 0 auto; color: var(--t-muted); font-size: 12px; }
.rasta-ov__go, .rasta-ov__go:visited { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 14px; background: var(--t-blue); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 12px 22px -14px rgba(47, 107, 255, .9); transition: background .2s ease; }
.rasta-ov__go:hover { background: var(--t-blue-600); color: #fff; }
.rasta-ov__go svg { width: 15px; height: 15px; }
.rasta-ov__lock { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #B54708; font-size: 12.5px; font-weight: 600; }
.rasta-ov__lock svg { width: 16px; height: 16px; }

.rasta-ov__totals { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--t-line); }
.rasta-ov__totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--t-ink-2); font-size: 14px; line-height: 1.8; }
.rasta-ov__totals > div span { color: var(--t-muted); }
.rasta-ov__totals > div.is-total { margin-top: 4px; padding: 12px 16px; border-radius: 16px; background: var(--t-blue-50); color: var(--t-ink); font-size: 15.5px; }
.rasta-ov__totals > div.is-total span { color: var(--t-ink); font-weight: 600; }
.rasta-ov__totals > div.is-total b { color: var(--t-blue); font-weight: 800; }
.rasta-ov__totals small { font-weight: 400; }

.rasta-ov__notes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rasta-ov__notes li { display: flex; gap: 12px; margin: 0; }
.rasta-ov__note-ico { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--t-blue-50); color: var(--t-blue); }
.rasta-ov__note-ico svg { width: 18px; height: 18px; }
.rasta-ov__notes small { color: var(--t-muted); font-size: 12px; }
.rasta-ov__note-text { color: var(--t-ink-2); font-size: 14px; line-height: 2; }
.rasta-ov__note-text p { margin: 0; }

@media (max-width: 600px) {
    .rasta-ov__item { flex-wrap: wrap; }
    .rasta-ov__thumb { flex-basis: 60px; width: 60px; height: 60px; border-radius: 13px; }
    .rasta-ov__info { flex-basis: calc(100% - 74px); }
    .rasta-ov__go, .rasta-ov__lock { justify-content: center; width: 100%; }
    .rasta-ov__steps b { font-size: 12.5px; }
    .rasta-ov__steps small { font-size: 11px; }
    .rasta-ov__steps li + li::before { right: calc(-50% + 22px); left: calc(50% + 22px); }
    .rasta-ov__act { flex: 1 1 auto; justify-content: center; }
}