/* =========================================
   XCO.IR - Design Tokens
   ========================================= */
:root {
    --xco-font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;

    /* رنگ سازمانی برند اکسکو */
    --xco-primary: #003087;
    --xco-primary-dark: #001f5c;
    --xco-primary-light: #1a4bb8;
    --xco-primary-soft: #eaf0fb;

    --xco-secondary: #ff6200;
    --xco-secondary-dark: #d94f00;
    --xco-secondary-light: #ff8a3d;
    --xco-secondary-soft: #fff1e6;

    --xco-ink: #0f172a;
    --xco-body-bg: #f3f5f9;
    --xco-card-border: #eaedf3;

    --xco-sidebar-bg: #0f1729;
    --xco-sidebar-bg-2: #16213a;
    --xco-sidebar-border: rgba(255, 255, 255, .08);
    --xco-sidebar-text: #c7cede;
    --xco-sidebar-text-muted: #8791a8;
    --xco-sidebar-hover: rgba(255, 255, 255, .06);
    --xco-sidebar-active-bg: linear-gradient(90deg, rgba(0, 48, 135, .85), rgba(0, 48, 135, .55));

    --xco-navbar-h: 4.2rem;
    --xco-radius: .9rem;
    --xco-radius-sm: .6rem;
    --xco-radius-lg: 1.5rem;
    --xco-shadow-sm: 0 .15rem .6rem rgba(15, 23, 42, .06);
    --xco-shadow-md: 0 .5rem 1.5rem rgba(15, 23, 42, .08);
    --xco-shadow-lg: 0 1.5rem 3rem rgba(0, 24, 68, .14);
}

:root,
[data-bs-theme="light"] {
    --bs-primary: var(--xco-primary);
    --bs-primary-rgb: 0, 48, 135;
    --bs-link-color: var(--xco-primary);
    --bs-link-color-rgb: 0, 48, 135;
    --bs-link-hover-color: var(--xco-primary-dark);
    --bs-link-hover-color-rgb: 0, 31, 92;
}

.btn-primary {
    --bs-btn-bg: var(--xco-primary);
    --bs-btn-border-color: var(--xco-primary);
    --bs-btn-hover-bg: var(--xco-primary-dark);
    --bs-btn-hover-border-color: var(--xco-primary-dark);
    --bs-btn-active-bg: var(--xco-primary-dark);
    --bs-btn-active-border-color: var(--xco-primary-dark);
    box-shadow: 0 .25rem .6rem rgba(0, 48, 135, .25);
}

.btn-xco-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--xco-secondary);
    --bs-btn-border-color: var(--xco-secondary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--xco-secondary-dark);
    --bs-btn-hover-border-color: var(--xco-secondary-dark);
    --bs-btn-active-bg: var(--xco-secondary-dark);
    --bs-btn-active-border-color: var(--xco-secondary-dark);
    box-shadow: 0 .25rem .6rem rgba(255, 98, 0, .3);
}

.text-primary {
    color: var(--xco-primary) !important;
}

.text-xco-accent {
    color: var(--xco-secondary) !important;
}

.bg-primary-subtle {
    background-color: var(--xco-primary-soft) !important;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--xco-font);
    background-color: var(--xco-body-bg);
    color: var(--xco-ink);
}

a, button {
    font-family: inherit;
}

::selection {
    background: var(--xco-primary);
    color: #fff;
}

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, .18);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, .32);
}

:focus-visible {
    outline: 2px solid var(--xco-primary);
    outline-offset: 2px;
}

/* ---------- Global Site Navbar ---------- */
.site-navbar {
    background: linear-gradient(180deg, var(--xco-primary-dark) 0%, var(--xco-primary) 100%);
    box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .1);
    padding-block: .65rem;
    z-index: 1035;
    transition: box-shadow .2s ease;
}

.site-navbar.site-navbar-scrolled {
    box-shadow: 0 .35rem 1.1rem rgba(0, 0, 0, .22);
}

.site-navbar .navbar-brand {
    font-size: 1.15rem;
}

.site-brand-logo {
    height: 2.3rem;
    width: auto;
    background: #fff;
    border-radius: .55rem;
    padding: .3rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

.dash-sidebar-logo {
    height: 2.1rem;
    width: auto;
    background: #fff;
    border-radius: .5rem;
    padding: .25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

.auth-logo {
    height: 3.5rem;
    width: auto;
}

/* فیلد تله‌ی ربات (honeypot) - از دید کاربر واقعی و صفحه‌خوان کاملاً مخفی
   است؛ فقط پرکننده‌های خودکار فرم (ربات) آن را «می‌بینند» و پر می‌کنند. */
.xco-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.xco-captcha-row {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.xco-captcha-box {
    display: inline-flex;
    border: 1px solid var(--xco-card-border);
    border-radius: var(--xco-radius-sm);
    overflow: hidden;
    line-height: 0;
}

.xco-captcha-box svg {
    display: block;
}

.xco-captcha-refresh {
    flex-shrink: 0;
}

.referral-promo-card {
    transition: box-shadow .15s ease, transform .15s ease;
}

.referral-promo-card:hover {
    box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, .08) !important;
    transform: translateY(-1px);
}

.site-brand-badge {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .6rem;
    background: var(--xco-primary-soft);
    color: var(--xco-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.site-icon-link {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease;
}

.site-icon-link:hover {
    background-color: rgba(255, 255, 255, .08);
}

.site-user-link {
    border-radius: 2rem;
    padding-inline: .5rem .9rem !important;
    transition: background-color .15s ease;
}

.site-user-link:hover {
    background-color: rgba(255, 255, 255, .08);
}

.notif-dropdown {
    width: 340px;
    max-width: calc(100vw - 2rem);
    border-radius: var(--xco-radius);
    overflow: hidden;
}

.notif-dropdown-list {
    max-height: 340px;
    overflow-y: auto;
}

.site-footer {
    background: linear-gradient(180deg, var(--xco-primary-dark) 0%, #000f2e 100%);
    color: #cbd2e1;
    border-top: 1px solid var(--xco-sidebar-border);
}

.site-footer-logo {
    height: 2.5rem;
    width: auto;
    background: #fff;
    border-radius: .6rem;
    padding: .35rem;
    box-shadow: 0 .2rem .6rem rgba(0, 0, 0, .25);
}

.site-footer-divider {
    width: 3rem;
    height: 2px;
    margin-inline: auto;
    background: var(--xco-primary);
    opacity: .6;
    border-radius: 1px;
}

.site-footer-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem 1rem;
    border-radius: 2rem;
    background: rgba(0, 48, 135, .16);
    border: 1px solid rgba(0, 48, 135, .35);
    color: #e7ecff !important;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.site-footer-link:hover {
    background: var(--xco-primary);
    border-color: var(--xco-primary);
    color: #fff !important;
    transform: translateY(-1px);
}

/* ---------- Order Status Timeline ---------- */
.order-timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-timeline li {
    position: relative;
    padding-inline-start: 2rem;
    padding-bottom: 1.25rem;
}

.order-timeline li:last-child {
    padding-bottom: 0;
}

.order-timeline li::before {
    content: '';
    position: absolute;
    inset-inline-start: .3rem;
    top: .3rem;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--bs-primary);
}

.order-timeline li::after {
    content: '';
    position: absolute;
    inset-inline-start: .55rem;
    top: 1rem;
    bottom: 0;
    width: 1px;
    background: #e2e5ea;
}

.order-timeline li:last-child::after {
    display: none;
}

/* ---------- Dashboard Layout ---------- */
.dash-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---------- Main پنل‌ها (پنل مشتری/تکنسین) ----------
   روی موبایل ناوبری عمومی سایت مخفی است و App Bar خودِ پنل جایگزین آن
   می‌شود، پس نیازی به پدینگ بالای صفحات معمولی (py-5) نیست؛ همین باعث
   می‌شد یک فاصله‌ی خالی بزرگ بین بالای صفحه و نوار «پنل مشتری» بیفتد. */
.dash-main {
    padding: 0 0 2rem;
}

@media (min-width: 992px) {
    .dash-main {
        padding: 2rem 0 3rem;
    }
}

.dash-row {
    align-items: flex-start;
}

.dash-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--xco-card-border);
    border-radius: var(--xco-radius);
    padding: .7rem 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--xco-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 20;
}

.dash-mobile-bar .btn {
    border-radius: .6rem;
    font-weight: 600;
    font-size: .875rem;
}

/* ---------- App Bar موبایل (پنل تکنسین - داشبورد) ---------- */
.dash-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    background: #fff;
    border-bottom: 1px solid var(--xco-card-border);
    padding: .65rem 1rem;
    margin: 0 -.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 25;
}

.dash-appbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--xco-ink);
    font-size: 1.25rem;
    flex-shrink: 0;
    padding: 0;
}

.dash-appbar-icon-btn:active {
    background: var(--xco-body-bg);
}

.dash-appbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
}

.dash-appbar-logo img {
    width: 1.9rem;
    height: 1.9rem;
    object-fit: contain;
}

.dash-appbar-logo:active {
    opacity: .75;
}

.dash-appbar-icon-btn .dash-avatar {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
}

.dash-appbar-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--xco-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-mobile-welcome {
    font-size: .9rem;
}

/* ---------- Sidebar ---------- */
.dash-sidebar {
    background: var(--xco-sidebar-bg);
    background-image: linear-gradient(160deg, var(--xco-sidebar-bg-2) 0%, var(--xco-sidebar-bg) 55%);
    border-radius: var(--xco-radius);
    box-shadow: var(--xco-shadow-md);
    position: sticky;
    top: calc(var(--xco-navbar-h) + 1rem);
}

.dash-sidebar-inner {
    padding-top: .75rem;
}

.offcanvas .dash-sidebar-inner {
    padding-top: .5rem;
    max-height: none;
}

.offcanvas-start.d-lg-none {
    background: var(--xco-sidebar-bg);
    background-image: linear-gradient(160deg, var(--xco-sidebar-bg-2) 0%, var(--xco-sidebar-bg) 55%);
    max-width: 300px;
}

.offcanvas-start.d-lg-none .offcanvas-header {
    border-bottom: 1px solid var(--xco-sidebar-border) !important;
}

.offcanvas-start.d-lg-none .offcanvas-title {
    color: #fff;
    font-size: 1rem;
}

.offcanvas-start.d-lg-none .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.dash-sidebar-brand {
    border-bottom: 1px solid var(--xco-sidebar-border);
    color: #fff;
}

.dash-sidebar-brand .text-primary {
    color: #6d8fff !important;
}

.dash-sidebar-user {
    background-color: rgba(255, 255, 255, .05);
    border: 1px solid var(--xco-sidebar-border);
    padding: .65rem !important;
}

.dash-sidebar-user .fw-bold {
    color: #fff;
}

.dash-role-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    padding: .1rem .55rem;
    border-radius: 1rem;
    margin-top: .15rem;
}

.dash-role-badge-admin {
    background: rgba(255, 193, 7, .16);
    color: #ffca4b;
}

.dash-role-badge-customer {
    background: rgba(0, 48, 135, .18);
    color: #8aa4ff;
}

.dash-role-badge-technician {
    background: rgba(25, 135, 84, .2);
    color: #4fd393;
}

.dash-nav-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--xco-sidebar-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .7rem .85rem .3rem;
}

.dash-nav-label:first-child {
    padding-top: .3rem;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .5rem .85rem;
    border-radius: var(--xco-radius-sm);
    color: var(--xco-sidebar-text);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: .15rem;
    position: relative;
    transition: background-color .15s ease, color .15s ease;
}

.dash-nav-link i {
    font-size: 1.05rem;
    width: 1.3rem;
    text-align: center;
    flex-shrink: 0;
}

.dash-nav-link:hover {
    background-color: var(--xco-sidebar-hover);
    color: #fff;
}

.dash-nav-link.active {
    background: var(--xco-sidebar-active-bg);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 .25rem .75rem rgba(0, 48, 135, .35);
}

.dash-nav-link.text-danger {
    color: #ff8a8a !important;
}

.dash-nav-link.text-danger:hover {
    background-color: rgba(220, 53, 69, .15);
    color: #ff9d9d !important;
}

.dash-nav-link-soon {
    opacity: .55;
    cursor: default;
}

.dash-nav-link-soon:hover {
    background-color: transparent;
    color: var(--xco-sidebar-text);
}

.dash-soon-badge {
    font-size: .62rem;
    font-weight: 600;
    color: var(--xco-sidebar-text-muted);
    background: rgba(255, 255, 255, .08);
    border-radius: 1rem;
    padding: .1rem .45rem;
    flex-shrink: 0;
}

/* ---------- Content ---------- */
.dash-content {
    padding-block: .25rem 2rem;
}

@media (min-width: 992px) {
    .dash-content {
        padding-inline-start: 1.25rem;
    }
}

/* ---------- نوار پایین موبایل (Bottom Nav) - پنل مشتری ---------- */
@media (max-width: 991.98px) {
    .dash-content {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
}

.dash-bottom-nav {
    display: flex;
    align-items: stretch;
    gap: .25rem;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    background: #fff;
    border-top: 1px solid var(--xco-card-border);
    padding: .4rem .6rem calc(.4rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -.35rem 1rem rgba(20, 25, 40, .08);
}

.dash-bottom-nav-btn {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 600;
    border-radius: .9rem;
    padding: .4rem .25rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.dash-bottom-nav-btn i {
    font-size: 1.15rem;
}

.dash-bottom-nav-btn:active {
    background: var(--xco-body-bg);
}

.dash-bottom-nav-btn.active {
    color: var(--xco-primary);
}

.dash-bottom-nav-btn-main {
    position: relative;
    color: #fff;
    background: var(--xco-primary);
    margin-top: -1.1rem;
    padding-top: .55rem;
    box-shadow: 0 .4rem .9rem rgba(0, 48, 135, .35);
}

.dash-bottom-nav-btn-main i {
    font-size: 1.35rem;
}

.dash-bottom-nav-btn-main:active,
.dash-bottom-nav-btn-main.active {
    color: #fff;
    background: var(--xco-primary-dark, var(--xco-primary));
}

.dash-bottom-nav-badge {
    position: absolute;
    top: .35rem;
    inset-inline-end: .95rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 .25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    line-height: 1;
}

.dash-topbar {
    background: #fff;
    border: 1px solid var(--xco-card-border);
    border-radius: var(--xco-radius);
    padding: 1.15rem 1.5rem;
    box-shadow: var(--xco-shadow-sm);
}

.dash-topbar h4 {
    letter-spacing: -.01em;
}

/* ---------- Avatar ---------- */
.dash-avatar {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: var(--xco-primary-soft);
    color: var(--xco-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-avatar-sm {
    width: 1.9rem;
    height: 1.9rem;
    font-size: .9rem;
}

.dash-avatar-lg {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--xco-primary), #6d8fff);
    color: #fff;
}

/* ---------- Stat Cards ---------- */
.dash-stat-card {
    border-radius: .75rem;
    transition: transform .15s ease;
}

.dash-stat-card:hover {
    transform: translateY(-3px);
}

.dash-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* ---------- Quick Services ---------- */
.dash-quick-service {
    border: 1px solid #eef0f3;
    border-radius: .65rem;
    padding: 1rem .5rem;
    color: #343a40;
    transition: box-shadow .15s ease, border-color .15s ease;
    height: 100%;
}

.dash-quick-service:hover {
    border-color: var(--xco-primary);
    box-shadow: 0 .25rem .6rem rgba(13, 110, 253, .12);
    color: var(--xco-primary);
}

.dash-quick-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #f1f3f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--xco-primary);
}

/* ---------- Cards general ---------- */
.card {
    border-radius: var(--xco-radius);
}

.card-header {
    border-radius: var(--xco-radius) var(--xco-radius) 0 0 !important;
    font-weight: 600;
}

.dash-stat-card {
    border-radius: var(--xco-radius) !important;
}

/* ---------- Offer comparison tiles (order details page) ---------- */
.offer-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: .75rem;
    padding: 1rem;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.offer-tile:hover {
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.offer-tile .min-w-0 {
    min-width: 0;
}

.offer-tile-accepted {
    border-color: #198754;
    background-color: #f4fbf7;
}

.offer-tile-muted {
    opacity: .6;
}

.offer-badge-best {
    position: absolute;
    top: -.6rem;
    inset-inline-end: 1rem;
    background: #fd7e14;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 1rem;
    box-shadow: 0 .15rem .4rem rgba(253, 126, 20, .35);
}

.offer-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--xco-primary);
}

/* ---------- Offer comparison TABLE (side-by-side, order details page) ---------- */
.offer-compare-insight {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    background: linear-gradient(135deg, #eef6ff 0%, #f3edff 100%);
    border: 1px solid #dce8fb;
    border-radius: .75rem;
    padding: .75rem 1rem;
    margin: 0 .25rem .9rem;
    font-size: .875rem;
    color: #33415c;
}

.offer-compare-insight i {
    color: #6f42c1;
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.offer-compare-scroll {
    overflow-x: auto;
    border-radius: .75rem;
    border: 1px solid #eef0f3;
    -webkit-overflow-scrolling: touch;
}

.offer-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 640px;
}

.offer-compare-table th,
.offer-compare-table td {
    padding: .75rem .9rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f1f2f5;
    white-space: nowrap;
}

.offer-compare-table tbody tr:last-child th,
.offer-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.offer-compare-label-col {
    text-align: start;
    white-space: nowrap;
    font-weight: 600;
    font-size: .85rem;
    color: #495057;
    background: #fafbfc;
    position: sticky;
    inset-inline-start: 0;
    z-index: 2;
    min-width: 170px;
}

.offer-compare-table thead th.offer-compare-label-col {
    background: #fafbfc;
    z-index: 3;
}

.offer-compare-tech-col {
    position: relative;
    min-width: 190px;
    background: #fff;
    padding-top: 1.5rem !important;
}

.offer-compare-tech-col.is-recommended {
    background: #fbf7ff;
    box-shadow: inset 0 0 0 1px #e2d3fb;
}

.offer-compare-crown {
    position: absolute;
    top: .35rem;
    inset-inline-start: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 1rem;
    white-space: nowrap;
    box-shadow: 0 .2rem .5rem rgba(124, 58, 237, .35);
}

.offer-compare-tech-name {
    font-weight: 700;
    font-size: .9rem;
    white-space: normal;
    margin-bottom: .35rem;
}

.offer-compare-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem;
    white-space: normal;
}

.offer-compare-badges .badge {
    font-size: .65rem;
    font-weight: 600;
}

.offer-compare-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #212529;
}

.offer-compare-price-unit {
    font-size: .7rem;
    font-weight: 400;
    color: #6c757d;
}

.offer-compare-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .68rem;
    font-weight: 700;
    padding: .12rem .5rem;
    border-radius: 1rem;
    margin-top: .3rem;
    white-space: nowrap;
}

.tag-green {
    background: #e7f7ee;
    color: #198754;
}

.tag-amber {
    background: #fff4e0;
    color: #b8730a;
}

.offer-compare-bar {
    width: 84px;
    height: 6px;
    border-radius: 1rem;
    background: #eef0f3;
    margin: 0 auto .3rem;
    overflow: hidden;
}

.offer-compare-bar-fill {
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(90deg, var(--xco-primary), #6f42c1);
}

.offer-compare-desc-cell {
    white-space: normal;
    max-width: 220px;
    font-size: .82rem;
    color: #495057;
    text-align: start;
}

td.is-best-value,
th.offer-compare-tech-col.is-recommended {
    background-color: #f4fbf7;
}

td.is-best-value .offer-compare-price {
    color: #198754;
}

.offer-compare-col-hover {
    background-color: #f1f6ff !important;
}

@media (max-width: 767.98px) {
    .offer-compare-label-col {
        min-width: 130px;
        font-size: .78rem;
    }
    .offer-compare-tech-col {
        min-width: 160px;
    }
}

/* ---------- Utility ---------- */
.ltr-inline {
    direction: ltr;
    unicode-bidi: isolate;
}

/* ---------- Profile hero (technician profile page) ---------- */
.profile-hero .min-w-0 {
    min-width: 0;
}

/* ---------- Specialty toggle chips ---------- */
.specialty-chip {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: .6rem .75rem;
    border: 1px solid #dee2e6;
    border-radius: .6rem;
    background: #fff;
    color: #495057;
    font-size: .9rem;
    text-align: start;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.specialty-chip:hover {
    border-color: var(--xco-primary);
    color: var(--xco-primary);
}

.specialty-chip-check {
    display: none;
    margin-inline-start: auto;
}

.btn-check:checked + .specialty-chip {
    border-color: var(--xco-primary);
    background-color: #eef4ff;
    color: var(--xco-primary);
    font-weight: 600;
}

.btn-check:checked + .specialty-chip .specialty-chip-check {
    display: inline-block;
}

.btn-check:focus-visible + .specialty-chip {
    outline: 2px solid var(--xco-primary);
    outline-offset: 2px;
}

/* ---------- File upload dropzone ---------- */
.dropzone {
    display: flex;
    border: 2px dashed #dee2e6;
    border-radius: .75rem;
    padding: 1.1rem 1.25rem;
    background-color: #f8f9fb;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
    margin: 0;
}

.dropzone:hover,
.dropzone.dropzone-dragover {
    border-color: var(--xco-primary);
    background-color: #eef4ff;
}

.dropzone-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #eef4ff;
    color: var(--xco-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ---------- مودال برش/چرخش ساده‌ی تصویر مشکل (فرم ثبت درخواست) ---------- */
.image-crop-modal-content {
    border: none;
    border-radius: var(--xco-radius);
    overflow: hidden;
}

.image-crop-stage {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    background: repeating-conic-gradient(#f1f3f5 0% 25%, #f8f9fb 0% 50%) 50% / 18px 18px;
    border-radius: .5rem;
    overflow: hidden;
    touch-action: none;
    line-height: 0;
}

.image-crop-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.image-crop-box {
    position: absolute;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1000px rgba(15, 23, 42, .45);
    cursor: move;
    touch-action: none;
}

.image-crop-handle {
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    background: #fff;
    border: 2px solid var(--xco-primary);
    border-radius: 50%;
    touch-action: none;
}

@media (max-width: 575.98px), (hover: none) {
    .image-crop-handle {
        width: 1.7rem;
        height: 1.7rem;
    }
}

.image-crop-handle[data-handle="tl"] { top: -.6rem; inset-inline-start: -.6rem; cursor: nwse-resize; }
.image-crop-handle[data-handle="tr"] { top: -.6rem; inset-inline-end: -.6rem; cursor: nesw-resize; }
.image-crop-handle[data-handle="bl"] { bottom: -.6rem; inset-inline-start: -.6rem; cursor: nesw-resize; }
.image-crop-handle[data-handle="br"] { bottom: -.6rem; inset-inline-end: -.6rem; cursor: nwse-resize; }

.image-crop-modal-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

@media (max-width: 575.98px) {
    .image-crop-modal-footer .btn {
        flex: 1 1 auto;
    }
}

/* ---------- Coverage scope cards (محدوده‌ی پذیرش سفارش) ---------- */
.coverage-scope-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.coverage-scope-card:hover {
    border-color: var(--xco-primary);
}

.coverage-scope-icon {
    font-size: 1.4rem;
    color: var(--xco-primary);
    margin-bottom: .5rem;
}

.btn-check:checked + .coverage-scope-card {
    border-color: var(--xco-primary);
    background-color: #eef4ff;
    box-shadow: 0 0 0 1px var(--xco-primary) inset;
}

.btn-check:focus-visible + .coverage-scope-card {
    outline: 2px solid var(--xco-primary);
    outline-offset: 2px;
}

/* ---------- Birth date group (روز/ماه/سال) ---------- */
.birth-date-group .form-select {
    text-align: center;
}

/* ---------- Service chip grid (نوع خدمت در فرم ثبت درخواست / تخصص‌های تکنسین) ---------- */
#serviceChipGrid,
#specialtyChipGrid {
    max-height: 320px;
    overflow-y: auto;
    padding-inline-end: 4px;
}

/* ---------- Specialty search box ---------- */
.specialty-search-box {
    position: relative;
}

.specialty-search-box i.bi-search {
    position: absolute;
    top: 50%;
    inset-inline-start: .9rem;
    transform: translateY(-50%);
    color: #adb5bd;
    pointer-events: none;
}

.specialty-search-box .form-control {
    padding-inline-start: 2.4rem;
    /* اندازه‌ی فونت حداقل ۱۶px تا مرورگرهای موبایل (به‌خصوص iOS Safari) با
       فوکوس روی این فیلد صفحه را زوم نکنند. */
    font-size: 1rem;
}

.specialty-search-done {
    position: absolute;
    top: 50%;
    inset-inline-end: .35rem;
    transform: translateY(-50%);
    border: none;
    background: var(--xco-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: .5rem;
    line-height: 1.4;
}

.specialty-results-scroll {
    max-height: 48vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: .5rem;
}

@media (min-width: 992px) {
    .specialty-results-scroll {
        max-height: none;
        overflow-y: visible;
    }
}

/* ---------- Existing uploaded documents list ---------- */
.existing-document-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .8rem;
    border: 1px solid #e9ecef;
    border-radius: .6rem;
    background-color: #f8f9fb;
    margin-bottom: .5rem;
    font-size: .9rem;
}

.existing-document-item:last-child {
    margin-bottom: 0;
}

.existing-document-item a {
    color: #212529;
    text-decoration: none;
}

.existing-document-item a:hover {
    color: var(--xco-primary);
    text-decoration: underline;
}

/* ---------- Technician portfolio (نمونه‌کار) management gallery ---------- */
.portfolio-item {
    border: 1px solid #e9ecef;
    border-radius: .6rem;
    padding: .5rem;
    background-color: #f8f9fb;
}

.portfolio-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: .4rem;
    display: block;
}

.portfolio-delete-form {
    position: absolute;
    top: .7rem;
    left: .7rem;
    margin: 0;
}

.portfolio-delete-form .btn {
    padding: .15rem .4rem;
    line-height: 1;
}

/* ---------- Dynamic "add document" rows ---------- */
.document-upload-row {
    position: relative;
    padding: 1rem 2.5rem 1rem 1rem;
    margin-bottom: .75rem;
    border: 1px dashed #dee2e6;
    border-radius: .65rem;
    background-color: #fbfbfd;
}

.document-row-remove {
    position: absolute;
    top: .6rem;
    inset-inline-end: .6rem;
}

/* ---------- Sticky-ish action bar on mobile ---------- */
@media (max-width: 575.98px) {
    .form-actions-bar .btn {
        width: 100%;
    }
}

/* ---------- Responsive refinements ---------- */
@media (max-width: 991.98px) {
    .dash-wrapper {
        padding: 0 .75rem;
    }

    .dash-topbar {
        padding: 1rem 1.1rem;
        border-radius: var(--xco-radius-sm);
    }

    .dash-stat-card .card-body {
        padding: .9rem;
    }

    .chat-thread-body {
        min-height: 240px;
        max-height: 56vh;
        max-height: 56dvh;
    }

    .chat-bubble {
        max-width: 84%;
    }
}

@media (max-width: 767.98px) {
    .dash-topbar h4 {
        font-size: 1.15rem;
    }

    .dash-stat-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
    }

    .dash-stat-card .fs-4 {
        font-size: 1.15rem !important;
    }

    .table-responsive {
        font-size: .85rem;
    }

    .site-navbar .navbar-collapse {
        background: var(--xco-sidebar-bg-2);
        border-radius: var(--xco-radius-sm);
        padding: .5rem .25rem;
        margin-top: .6rem;
    }

    .site-user-link,
    .site-icon-link {
        width: auto;
        border-radius: var(--xco-radius-sm);
        padding-inline: .6rem !important;
    }
}

@media (max-width: 575.98px) {
    .orders-toolbar-search,
    .orders-toolbar-filter {
        width: 100%;
        max-width: none !important;
        min-width: 0 !important;
    }

    .dash-quick-service {
        padding: .75rem .4rem;
    }

    .dash-quick-icon {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1.05rem;
    }

    .dash-sidebar-brand {
        padding-block: 1rem !important;
    }

    .chat-thread-body {
        min-height: 220px;
        max-height: 50vh;
        max-height: 50dvh;
        padding: 1rem .75rem;
    }

    .chat-bubble {
        max-width: 88%;
        font-size: .88rem;
    }

    .chat-avatar.dash-avatar-sm {
        width: 1.6rem;
        height: 1.6rem;
        font-size: .7rem;
    }

    .chat-thread-form {
        padding: .65rem .75rem;
    }
}

/* Prevent accidental horizontal scroll on small screens */
html, body {
    overflow-x: hidden;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* =========================================
   XCO.IR - Home / Landing Page Styles
   ========================================= */

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    padding-block: 3.75rem 5.5rem;
    background: linear-gradient(160deg, var(--xco-primary-dark) 0%, var(--xco-primary) 46%, var(--xco-primary-light) 100%);
    overflow: hidden;
    isolation: isolate;
}

.home-hero::before,
.home-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    z-index: -1;
    opacity: .55;
}

.home-hero::before {
    width: 26rem;
    height: 26rem;
    background: radial-gradient(circle at 30% 30%, rgba(255, 98, 0, .55), rgba(255, 98, 0, 0) 70%);
    top: -8rem;
    inset-inline-end: -6rem;
}

.home-hero::after {
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 70%);
    bottom: -6rem;
    inset-inline-start: -4rem;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-hero .display-5 {
    color: #fff;
    letter-spacing: -.01em;
}

.home-hero .display-5 .text-xco-accent {
    -webkit-text-fill-color: initial;
}

.home-hero-lead {
    color: rgba(255, 255, 255, .82);
    max-width: 42rem;
}

.home-hero-stats {
    color: #fff;
}

.home-hero-stats .home-stat-num {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}

.home-hero-stats .home-stat-label {
    color: rgba(255, 255, 255, .68);
}

/* --- Glass search card --- */
.home-search-card {
    background: rgba(255, 255, 255, .96);
    border-radius: var(--xco-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--xco-shadow-lg);
    border: 1px solid rgba(255, 255, 255, .5);
}

.home-search-card .specialty-search-box .form-control,
.home-search-card select {
    border-radius: .75rem;
    background: #f6f7fb;
    border: 1px solid #eaedf3;
}

.home-search-card .specialty-search-box .form-control:focus,
.home-search-card select:focus {
    background: #fff;
    border-color: var(--xco-primary);
    box-shadow: 0 0 0 .2rem rgba(0, 48, 135, .12);
}

/* --- Hero visual: CSS-only layered illustration (no external images) --- */
.home-hero-visual {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
}

.home-hero-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 1.5rem 3rem rgba(0, 12, 40, .35), inset 0 0 0 1px rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: #fff;
}

.home-hero-icon {
    position: absolute;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 .6rem 1.5rem rgba(0, 12, 40, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--xco-primary);
    z-index: 2;
    animation: home-float 5s ease-in-out infinite;
}

.home-hero-icon-1 { top: 3%; inset-inline-start: -6%; color: var(--xco-secondary); animation-delay: 0s; }
.home-hero-icon-2 { bottom: 14%; inset-inline-end: -8%; color: #16a34a; animation-delay: 1.2s; }
.home-hero-icon-3 { bottom: -3%; inset-inline-start: 20%; color: var(--xco-primary); animation-delay: 2.4s; }

@keyframes home-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-.6rem); }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-icon { animation: none; }
}

/* ---------- Section heading ---------- */
.home-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--xco-secondary);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.home-section-eyebrow::before {
    content: '';
    width: 1.6rem;
    height: 2px;
    background: var(--xco-secondary);
    display: inline-block;
}

/* ---------- Services Grid ---------- */
.home-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    text-align: center;
    padding: 1.6rem 1rem;
    height: 100%;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: var(--xco-radius);
    text-decoration: none;
    color: #343a40;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--xco-primary-soft), transparent 60%);
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 0;
}

.home-service-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--xco-shadow-md);
    color: var(--xco-primary);
}

.home-service-card:hover::after {
    opacity: 1;
}

.home-service-card > * {
    position: relative;
    z-index: 1;
}

.home-service-icon {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1rem;
    background-color: var(--xco-primary-soft);
    color: var(--xco-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.home-service-card:hover .home-service-icon {
    background-color: var(--xco-secondary);
    color: #fff;
    transform: scale(1.06) rotate(-4deg);
}

/* Popular-services quick strip (chips above the category grid) */
.home-popular-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.1rem;
    border-radius: 2rem;
    background: #fff;
    border: 1px solid #eaedf3;
    color: var(--xco-ink);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.home-popular-chip i {
    color: var(--xco-primary);
    transition: color .2s ease;
}

.home-popular-chip:hover {
    background: var(--xco-primary);
    border-color: var(--xco-primary);
    color: #fff;
    transform: translateY(-2px);
}

.home-popular-chip:hover i {
    color: #fff;
}

/* ---------- Steps ---------- */
.home-steps-wrap {
    position: relative;
}

.home-steps-wrap::before {
    content: '';
    position: absolute;
    top: 2.1rem;
    inset-inline-start: 12%;
    inset-inline-end: 12%;
    height: 2px;
    background: repeating-linear-gradient(to left, var(--xco-card-border) 0 10px, transparent 10px 18px);
    display: none;
}

@media (min-width: 992px) {
    .home-steps-wrap::before { display: block; }
}

.home-step {
    position: relative;
    background: #fff;
    border-radius: var(--xco-radius);
    padding: 1.85rem 1.25rem 1.6rem;
    text-align: center;
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--xco-shadow-md);
}

.home-step-number {
    position: absolute;
    top: -.7rem;
    inset-inline-start: 50%;
    transform: translateX(50%);
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--xco-secondary);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .3rem .7rem rgba(255, 98, 0, .35);
}

.home-step-icon {
    width: 3.4rem;
    height: 3.4rem;
    margin: .6rem auto 1rem;
    border-radius: 1rem;
    background-color: var(--xco-primary-soft);
    color: var(--xco-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

/* ---------- Feature cards ---------- */
.home-feature-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: var(--xco-radius);
    padding: 1.85rem 1.25rem;
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.home-feature-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--xco-shadow-md);
}

.home-feature-icon {
    width: 3.4rem;
    height: 3.4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: var(--xco-primary-soft);
    color: var(--xco-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

/* ---------- Cities ---------- */
.home-city-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .8rem .5rem;
    border-radius: var(--xco-radius-sm);
    background: #fff;
    border: 1px solid #eef0f3;
    color: var(--xco-ink);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    text-align: center;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-city-chip i {
    color: var(--xco-secondary);
}

.home-city-chip:hover {
    background: var(--xco-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--xco-shadow-sm);
}

.home-city-chip:hover i {
    color: #fff;
}

/* ---------- Articles ---------- */
.home-article-card {
    display: block;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: var(--xco-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--xco-shadow-md);
    color: inherit;
}

.home-article-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--xco-primary-soft);
    overflow: hidden;
}

.home-article-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-article-card:hover .home-article-img-wrap img {
    transform: scale(1.05);
}

.home-article-img-wrap .home-article-fallback-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--xco-primary);
    opacity: .35;
}

.home-article-meta {
    display: flex;
    align-items: center;
    gap: .9rem;
    color: #8a93a6;
    font-size: .8rem;
}

/* ---------- Testimonials ---------- */
.home-testimonial-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: var(--xco-radius);
    padding: 1.6rem 1.4rem;
    height: 100%;
    position: relative;
}

.home-testimonial-quote-icon {
    color: var(--xco-primary-soft);
    font-size: 2.2rem;
    line-height: 1;
}

.home-testimonial-stars {
    color: var(--xco-secondary);
    font-size: .85rem;
    letter-spacing: .1em;
}

.home-testimonial-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--xco-primary-soft);
    color: var(--xco-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.home-faq .accordion-item {
    border: 1px solid #eef0f3;
    border-radius: var(--xco-radius-sm) !important;
    overflow: hidden;
    margin-bottom: .75rem;
}

.home-faq .accordion-button {
    font-weight: 700;
    background: #fff;
    padding: 1.1rem 1.25rem;
}

.home-faq .accordion-button:not(.collapsed) {
    color: var(--xco-primary);
    background: var(--xco-primary-soft);
    box-shadow: none;
}

.home-faq .accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(0, 48, 135, .12);
}

.home-faq .accordion-button::after {
    background-size: 1.1rem;
}

.home-faq .accordion-body {
    color: #4b5568;
    line-height: 1.9;
}

/* ---------- CTA banner ---------- */
.home-cta {
    position: relative;
    background: linear-gradient(135deg, var(--xco-primary) 0%, var(--xco-primary-dark) 100%);
    border-radius: var(--xco-radius-lg);
    padding: 3.25rem 1.5rem;
    overflow: hidden;
    isolation: isolate;
}

.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 98, 0, .35), transparent 55%);
    z-index: -1;
}

/* ---------- نوار CTA چسبان (فقط موبایل) - هوم‌پیج و پروفایل تکنسین ----------
   بعد از عبور از هیرو نمایان می‌شود (ر.ک main.js، بخش «نوار CTA چسبان»)،
   تا کاربری که وسط صفحه اسکرول کرده مجبور به بازگشت به بالا/پایین صفحه نباشد. */
.sticky-mobile-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid var(--xco-card-border);
    padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -.35rem 1rem rgba(20, 25, 40, .12);
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
}

.sticky-mobile-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sticky-mobile-cta .btn {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .sticky-mobile-cta {
        transition: none;
    }
}

/* ---------- Scroll-reveal ---------- */
.home-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .home-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Skeleton loading (for lazily-revealed image areas) ---------- */
.home-skeleton {
    position: relative;
    overflow: hidden;
    background: #eef0f3;
}

.home-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    animation: home-skeleton-sheen 1.4s infinite;
}

@keyframes home-skeleton-sheen {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ---------- Footer (redesigned) ---------- */
.site-footer {
    text-align: start;
    padding-block: 3.5rem 1.5rem;
}

.site-footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 1rem;
}

.site-footer-col a {
    color: #b7c0d6;
    text-decoration: none;
    font-size: .88rem;
    display: block;
    padding-block: .3rem;
    transition: color .15s ease, transform .15s ease;
}

.site-footer-col a:hover {
    color: #fff;
    transform: translateX(-2px);
}

[dir="rtl"] .site-footer-col a:hover {
    transform: translateX(2px);
}

.site-footer-about {
    color: #b7c0d6;
    font-size: .88rem;
    line-height: 1.9;
    max-width: 22rem;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}
/* ---------- Avatar image variant (تصویر پروفایل واقعی به‌جای حرف اول نام) ---------- */
.dash-avatar-img {
    background: none;
    object-fit: cover;
}

/* ---------- Public technician profile hero (صفحه‌ی عمومی پروفایل تکنسین) ---------- */
.profile-hero-avatar-wrap {
    width: 7.5rem;
    height: 7.5rem;
}

.profile-hero-avatar {
    width: 7.5rem;
    height: 7.5rem;
    font-size: 2.6rem;
    border: 3px solid #fff;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .08);
}

.profile-hero-featured-badge {
    position: absolute;
    bottom: -.15rem;
    left: -.15rem;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb020, #ff8a20);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    border: 2px solid #fff;
    box-shadow: 0 .1rem .35rem rgba(0, 0, 0, .15);
}

.profile-featured-text-badge {
    background: linear-gradient(135deg, #ffb020, #ff8a20);
    color: #fff;
}

.profile-stats-grid .profile-stat-num {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--xco-primary);
    line-height: 1.3;
}

.profile-stats-grid .profile-stat-label {
    font-size: .78rem;
    color: #6c757d;
}

.profile-stats-grid > .col-6 {
    padding-block: .5rem;
    border-bottom: 1px solid #f1f3f5;
}

.profile-stats-grid > .col-6:nth-last-child(-n+2) {
    border-bottom: none;
}

/* ---------- پیشنهاد متن سریع شرح مشکل (بر اساس خدمت انتخابی) ---------- */
.quick-phrase-box {
    background: var(--xco-primary-soft);
    border: 1px dashed rgba(0, 48, 135, .25);
    border-radius: .7rem;
    padding: .65rem .75rem;
}

.quick-phrase-head {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--xco-primary);
    font-weight: 600;
    margin-bottom: .5rem;
}

.quick-phrase-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.quick-phrase-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1px solid rgba(0, 48, 135, .25);
    background: #fff;
    color: var(--xco-primary);
    border-radius: 2rem;
    padding: .3rem .75rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.quick-phrase-chip:hover {
    background: var(--xco-primary);
    color: #fff;
    border-color: var(--xco-primary);
}

.quick-phrase-chip i {
    font-size: .7rem;
}

.quick-phrase-chip.is-used {
    opacity: .5;
    cursor: default;
    background: #fff;
    color: var(--xco-primary);
}

.quick-phrase-chip:disabled {
    pointer-events: none;
}

/* ---------- Order image upload preview grid (تصویر مشکل در فرم ثبت درخواست) ---------- */
.order-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .6rem;
}

.order-image-thumb {
    position: relative;
    border-radius: .6rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid #dee2e6;
    background: #f8f9fb;
}

.order-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-image-thumb .order-image-remove {
    position: absolute;
    top: .3rem;
    inset-inline-end: .3rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    border: none;
    background: rgba(20, 20, 25, .65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.order-image-thumb .order-image-remove:hover {
    background: #dc3545;
}

.order-image-thumb .order-image-size {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: rgba(20, 20, 25, .55);
    color: #fff;
    font-size: .65rem;
    text-align: center;
    padding: .1rem 0;
}

/* ---------- دکمه‌های چرخش/برش روی هر بندانگشتی تصویر مشکل ---------- */
.order-image-actions {
    position: absolute;
    top: .3rem;
    inset-inline-start: .3rem;
    display: flex;
    gap: .3rem;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity .15s ease, transform .15s ease;
}

.order-image-thumb:hover .order-image-actions,
.order-image-thumb:focus-within .order-image-actions {
    opacity: 1;
    transform: none;
}

/* در موبایل (بدون hover)، دکمه‌ها همیشه قابل مشاهده باشند تا کاربر لمسی هم به آن‌ها دسترسی داشته باشد. */
@media (hover: none) {
    .order-image-actions {
        opacity: 1;
        transform: none;
    }
}

.order-image-action-btn {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    border: none;
    background: rgba(20, 20, 25, .65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background-color .15s ease;
}

.order-image-action-btn:hover {
    background: var(--xco-primary);
}

.order-image-action-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.order-image-action-btn:disabled:hover {
    background: rgba(20, 20, 25, .65);
}

/* ---------- نمای جایگزین برای فرمت‌هایی که مرورگر نمی‌تواند پیش‌نمایش دهد (مثل HEIC) ---------- */
.order-image-nopreview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    background: #eef1f6;
    color: #6c757d;
    font-size: 1.6rem;
}

.order-image-nopreview span {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .03em;
}

/* ---------- Address pick cards (انتخاب آدرس ذخیره‌شده در فرم ثبت درخواست) ---------- */
.address-pick-card {
    display: block;
    height: 100%;
    padding: .85rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.address-pick-card:hover {
    border-color: var(--xco-primary);
}

.btn-check:checked + .address-pick-card {
    border-color: var(--xco-primary);
    background-color: #eef4ff;
    box-shadow: 0 0 0 1px var(--xco-primary) inset;
}

.btn-check:focus-visible + .address-pick-card {
    outline: 2px solid var(--xco-primary);
    outline-offset: 2px;
}

/* ---------- Urgency cards (سطح فوریت درخواست) ---------- */
.urgency-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .9rem .5rem;
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    background: #fff;
    color: #495057;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.urgency-card i {
    font-size: 1.3rem;
}

.urgency-card:hover {
    border-color: var(--xco-primary);
}

.btn-check:checked + .urgency-card {
    border-color: var(--xco-primary);
    background-color: #eef4ff;
    color: var(--xco-primary);
}

.btn-check:checked + .urgency-card-urgent {
    border-color: #fd7e14;
    background-color: #fff4e8;
    color: #fd7e14;
}

.btn-check:focus-visible + .urgency-card {
    outline: 2px solid var(--xco-primary);
    outline-offset: 2px;
}

/* ---------- Profile page: avatar uploader ---------- */
.avatar-uploader {
    position: relative;
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
}

.avatar-uploader .dash-avatar {
    width: 6rem;
    height: 6rem;
    font-size: 2.1rem;
}

.avatar-uploader .avatar-edit-btn {
    position: absolute;
    bottom: -.15rem;
    inset-inline-end: -.15rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--xco-primary);
    color: #fff;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
}

.avatar-uploader .avatar-edit-btn:hover {
    background: #0a58ca;
}

/* ---------- Profile page: tabs ---------- */
.profile-tabs .nav-link {
    color: #495057;
    font-weight: 600;
    font-size: .9rem;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: .75rem 1.1rem;
}

.profile-tabs .nav-link.active {
    color: var(--xco-primary);
    border-bottom-color: var(--xco-primary);
    background: transparent;
}

/* ---------- Address book cards (پروفایل من - آدرس‌ها) ---------- */
.address-book-card {
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    padding: 1rem 1.1rem;
    background: #fff;
    height: 100%;
}

.address-book-card.is-default {
    border-color: var(--xco-primary);
    background-color: #f7faff;
}

/* ---------- Review stars (نظرات و امتیازها) ---------- */
.review-stars i {
    color: #dee2e6;
    font-size: 1rem;
}

.review-stars i.filled {
    color: #ffc107;
}

/* ---------- Tagged service chips (نمایش چند خدمت انتخابی روی جزئیات سفارش) ---------- */
.service-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .7rem;
    border-radius: 2rem;
    background: #eef4ff;
    color: var(--xco-primary);
    font-size: .8rem;
    font-weight: 600;
}

/* ---------- Order attachment gallery (تصاویر پیوست‌شده به سفارش) ---------- */
.order-attachment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .6rem;
}

@media (min-width: 576px) {
    .order-attachment-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.order-attachment-thumb {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border-radius: .6rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid #dee2e6;
    background: #f1f3f5;
    cursor: pointer;
    position: relative;
}

.order-attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s ease;
}

.order-attachment-thumb::after {
    content: "\f52b"; /* bootstrap-icons: zoom-in */
    font-family: "bootstrap-icons";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    background: rgba(15, 23, 42, 0);
    opacity: 0;
    transition: background .2s ease, opacity .2s ease;
}

.order-attachment-thumb:hover img,
.order-attachment-thumb:focus-visible img {
    transform: scale(1.06);
}

.order-attachment-thumb:hover::after,
.order-attachment-thumb:focus-visible::after {
    background: rgba(15, 23, 42, .35);
    opacity: 1;
}

.order-attachment-thumb:focus-visible {
    outline: 2px solid var(--xco-primary);
    outline-offset: 2px;
}

/* ---------- Order attachment lightbox (نمایش بزرگ‌شده‌ی تصاویر) ---------- */
.order-lightbox-modal .modal-content {
    background: rgba(10, 14, 22, .96);
    border: none;
    border-radius: .8rem;
    overflow: hidden;
}

.order-lightbox-modal .modal-dialog {
    max-width: min(96vw, 980px);
    margin: 1rem auto;
}

.order-lightbox-close {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 5;
    opacity: .9;
}

.order-lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 2.75rem .5rem 1rem;
    min-height: 40vh;
}

.order-lightbox-stage {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    max-height: 78vh;
}

.order-lightbox-stage img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: .4rem;
    transition: opacity .15s ease;
}

.order-lightbox-stage.loading img {
    opacity: 0;
}

.order-lightbox-spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.order-lightbox-stage.loading .order-lightbox-spinner {
    display: flex;
}

.order-lightbox-nav {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .15s ease;
}

.order-lightbox-nav:hover {
    background: rgba(255, 255, 255, .22);
}

.order-lightbox-footer {
    text-align: center;
    color: rgba(255, 255, 255, .75);
    font-size: .85rem;
    padding-bottom: 1rem;
}

@media (max-width: 575.98px) {
    .order-lightbox-body {
        padding: 2.5rem .25rem .5rem;
        gap: .25rem;
    }

    .order-lightbox-nav {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1rem;
    }
}

/* ---------- Public Technician Cards ---------- */
.tech-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(13, 110, 253, .12) !important;
}

/* ---------- Spotlight Cards (سه متخصص برگزیده - صفحه‌ی عمومی متخصصان) ---------- */
.spotlight-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    border-top: 3px solid var(--xco-primary) !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, .12) !important;
}

.spotlight-ribbon {
    position: absolute;
    top: .85rem;
    inset-inline-start: .85rem;
    background: linear-gradient(135deg, #f5a623, #f7c948);
    color: #7a4a00;
    font-size: .7rem;
    font-weight: 700;
    padding: .3rem .65rem;
    border-radius: 2rem;
    box-shadow: 0 .25rem .6rem rgba(245, 166, 35, .35);
    z-index: 2;
}

.spotlight-avatar-wrap {
    width: 5rem;
    height: 5rem;
}

.spotlight-avatar {
    width: 5rem;
    height: 5rem;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--xco-primary), #6d8fff);
    color: #fff;
    box-shadow: 0 .4rem 1rem rgba(0, 48, 135, .25);
    border: 3px solid #fff;
}

.spotlight-verify-badge {
    background: var(--xco-primary-soft);
    color: var(--xco-primary);
    font-weight: 600;
    font-size: .72rem;
    padding: .35rem .6rem;
    border-radius: .5rem;
}

.spotlight-slogan {
    min-height: 2.4em;
    line-height: 1.4;
}

.spotlight-stats {
    background: var(--xco-body-bg);
    border-radius: .65rem;
    padding: .6rem .25rem .5rem;
}

.spotlight-stat-num {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--xco-ink);
    line-height: 1.3;
}

.spotlight-stat-label {
    font-size: .68rem;
    color: #8791a8;
}
/* ---------- Jalali Datepicker (تقویم شمسی) ---------- */
[data-jalali-picker] {
    cursor: pointer;
    background-color: #fff;
}

.xco-jdp {
    z-index: 3000;
    background: #fff;
    border: 1px solid var(--xco-card-border, #eaedf3);
    border-radius: var(--xco-radius-sm, .6rem);
    box-shadow: var(--xco-shadow-md, 0 .5rem 1.5rem rgba(15, 23, 42, .12));
    padding: .75rem;
    font-family: var(--xco-font, inherit);
    direction: rtl;
}

.xco-jdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.xco-jdp-title {
    font-weight: 700;
    font-size: .95rem;
}

.xco-jdp-nav {
    border: none;
    background: var(--xco-primary-soft, #eef2ff);
    color: var(--xco-primary, var(--xco-primary));
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.xco-jdp-nav:hover {
    background: var(--xco-primary, var(--xco-primary));
    color: #fff;
}

.xco-jdp-weekrow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: .72rem;
    color: #8791a8;
    margin-bottom: .25rem;
}

.xco-jdp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.xco-jdp-day {
    border: none;
    background: transparent;
    padding: .4rem 0;
    border-radius: .4rem;
    font-size: .82rem;
    cursor: pointer;
    color: var(--xco-ink, #0f172a);
}

.xco-jdp-day:hover:not(.xco-jdp-disabled):not(.xco-jdp-empty) {
    background: var(--xco-primary-soft, #eef2ff);
    color: var(--xco-primary, var(--xco-primary));
}

.xco-jdp-day.xco-jdp-today {
    font-weight: 700;
    box-shadow: inset 0 0 0 1.5px var(--xco-primary, var(--xco-primary));
}

.xco-jdp-day.xco-jdp-disabled {
    color: #cbd2e0;
    cursor: not-allowed;
}

.xco-jdp-day.xco-jdp-empty {
    cursor: default;
}

.xco-jdp-footer {
    display: flex;
    justify-content: space-between;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--xco-card-border, #eaedf3);
}

.xco-jdp-today-btn,
.xco-jdp-clear-btn {
    border: none;
    background: transparent;
    font-size: .78rem;
    padding: .2rem .4rem;
    cursor: pointer;
}

.xco-jdp-today-btn {
    color: var(--xco-primary, var(--xco-primary));
    font-weight: 600;
}

.xco-jdp-clear-btn {
    color: #8791a8;
}

/* ---------- ردیف‌های قابل‌کلیک جدول (مثلاً «درخواست‌های من») ---------- */
.table-row-link {
    cursor: pointer;
}

.table-row-link:hover {
    background-color: var(--xco-primary-soft, #eef2ff);
}

/* ---------- بلوک تماس (شماره‌ی تلفن + دکمه‌ی تماس) در صفحه‌ی جزئیات سفارش ---------- */
.order-contact-phone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.order-contact-phone-number {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .02em;
    color: var(--xco-ink, #0f172a);
}

.order-contact-call-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    box-shadow: 0 .25rem .6rem rgba(25, 135, 84, .2);
}

@media (max-width: 991.98px) {
    .order-contact-phone {
        flex-direction: column;
        align-items: stretch;
        gap: .6rem;
        background: var(--xco-primary-soft, #eef2ff);
        border: 1px solid var(--xco-card-border);
        border-radius: var(--xco-radius-sm);
        padding: .75rem .9rem;
    }

    .order-contact-phone-number {
        justify-content: center;
        font-size: 1.2rem;
    }

    .order-contact-call-btn {
        justify-content: center;
        width: 100%;
        padding-block: .65rem;
        font-size: 1.02rem;
    }
}

/* ---------- پیام‌ها / گفتگوی مستقیم مشتری-تکنسین ---------- */
.chat-conversation-list .chat-conversation-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1.1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--xco-card-border, #eaedf3);
    transition: background-color .15s ease;
}

.chat-conversation-list .chat-conversation-item:last-child {
    border-bottom: none;
}

.chat-conversation-list .chat-conversation-item:hover {
    background-color: var(--xco-primary-soft, #eef2ff);
}

.chat-conversation-list .chat-conversation-item.unread .chat-conversation-name,
.chat-conversation-list .chat-conversation-item.unread .chat-conversation-preview {
    font-weight: 700;
    color: #1a1f36;
}

.chat-conversation-preview {
    color: #8791a8;
    font-size: .85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* کارت گفتگو: چیدمان ستونی تا فرم ارسال همیشه ته کارت بچسبد و فقط ناحیه‌ی پیام‌ها اسکرول بخورد */
.chat-thread-topbar .chat-thread-order-chip {
    max-width: 100%;
}

.chat-thread-topbar .chat-thread-order-chip span.text-truncate {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .chat-thread-topbar {
        padding: 1rem;
    }

    .chat-thread-topbar .chat-thread-order-chip {
        width: 100%;
    }
}

.chat-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-thread-body {
    flex: 1 1 auto;
    min-height: 260px;
    max-height: 60vh;
    max-height: 60dvh; /* در موبایل با باز شدن کیبورد درست‌تر از vh رفتار می‌کند */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.25rem;
    background: #f8f9fc;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #c7cede transparent;
}

.chat-thread-body::-webkit-scrollbar {
    width: 6px;
}

.chat-thread-body::-webkit-scrollbar-thumb {
    background-color: #c7cede;
    border-radius: 1rem;
}

.chat-date-sep {
    display: flex;
    justify-content: center;
    margin: .35rem 0 .65rem;
}

.chat-date-sep span {
    background: #fff;
    border: 1px solid var(--xco-card-border, #eaedf3);
    color: #8791a8;
    font-size: .74rem;
    font-weight: 600;
    padding: .3rem .9rem;
    border-radius: 1rem;
    box-shadow: var(--xco-shadow-sm, 0 .15rem .6rem rgba(15, 23, 42, .06));
}

.chat-msg-row {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    width: 100%;
}

.chat-msg-row.chat-msg-mine {
    justify-content: flex-start;
}

.chat-msg-row.chat-msg-theirs {
    justify-content: flex-end;
}

.chat-avatar {
    align-self: flex-end;
    margin-bottom: .15rem;
    font-weight: 700;
    font-size: .78rem;
}

.chat-bubble {
    position: relative;
    max-width: 72%;
    padding: .55rem .9rem;
    border-radius: 1rem;
    font-size: .92rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.chat-msg-mine .chat-bubble {
    background: var(--xco-primary, var(--xco-primary));
    color: #fff;
    border-bottom-right-radius: .3rem;
}

.chat-msg-theirs .chat-bubble {
    background: #fff;
    color: #1a1f36;
    border: 1px solid var(--xco-card-border, #eaedf3);
    border-bottom-left-radius: .3rem;
}

.chat-bubble-time {
    display: block;
    margin-top: .25rem;
    font-size: .7rem;
    opacity: .7;
}

.chat-thread-form {
    border-top: 1px solid var(--xco-card-border, #eaedf3);
    padding: .85rem 1rem;
    background: #fff;
    flex-shrink: 0;
}

.chat-thread-form textarea.form-control {
    resize: none;
    max-height: 150px;
    overflow-y: auto;
}

.chat-thread-form .btn {
    align-self: flex-end;
}

.chat-thread-form .btn:disabled {
    opacity: .65;
}

.chat-char-count {
    font-size: .72rem;
    color: #8791a8;
    margin-top: .3rem;
}

.chat-empty-state {
    margin: auto;
    text-align: center;
    color: #8791a8;
}

/* =========================================
   بهبودهای UI پنل مشتری (ریسپانسیو موبایل)
   ========================================= */

/* ---------- جدول‌های مشتری روی موبایل: نمایش کارتی به‌جای اسکرول افقی ---------- */
@media (max-width: 767.98px) {
    .table-mobile-cards {
        border: 0;
    }

    .table-mobile-cards thead {
        display: none;
    }

    .table-mobile-cards,
    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td {
        display: block;
        width: 100%;
    }

    .table-mobile-cards tbody {
        display: flex;
        flex-direction: column;
        gap: .65rem;
        padding: .85rem;
    }

    .table-mobile-cards tr {
        border: 1px solid var(--xco-card-border);
        border-radius: var(--xco-radius-sm);
        background: #fff;
        padding: .4rem .9rem;
        box-shadow: var(--xco-shadow-sm);
    }

    .table-mobile-cards tr.table-row-link:active {
        background-color: var(--xco-primary-soft);
    }

    .table-mobile-cards td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: .5rem 0;
        border-top: 1px dashed var(--xco-card-border) !important;
        border-bottom: 0 !important;
        text-align: end;
        font-size: .9rem;
    }

    .table-mobile-cards td:first-child {
        border-top: 0 !important;
    }

    .table-mobile-cards td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        color: #8791a8;
        font-size: .78rem;
        flex-shrink: 0;
        text-align: start;
    }

    .table-mobile-cards td:not([data-label]),
    .table-mobile-cards td[data-label=""] {
        justify-content: flex-end;
        padding-top: .65rem;
    }

    .table-mobile-cards td:empty {
        display: none;
    }
}

/* ---------- تایم‌لاین وضعیت سفارش: نسخه‌ی بصری‌تر با آیکون و مرحله‌ی فعال ---------- */
.order-timeline {
    --xco-timeline-dot: 1.9rem;
}

.order-timeline li {
    padding-inline-start: calc(var(--xco-timeline-dot) + .75rem);
    min-height: var(--xco-timeline-dot);
}

.order-timeline li::before {
    inset-inline-start: .35rem;
    top: .35rem;
    width: .85rem;
    height: .85rem;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--xco-card-border);
}

.order-timeline li::after {
    inset-inline-start: calc(.35rem + .85rem / 2 - .5px);
    top: 1.35rem;
}

.order-timeline li.timeline-current::before {
    width: 1.1rem;
    height: 1.1rem;
    inset-inline-start: .225rem;
    background: var(--xco-primary);
    box-shadow: 0 0 0 4px var(--xco-primary-soft);
}

.order-timeline li.timeline-cancelled::before {
    background: #dc3545;
    box-shadow: 0 0 0 1px #f8d7da;
}

/* ---------- دکمه‌ی شناور ثبت درخواست (موبایل) ---------- */
.dash-fab {
    position: fixed;
    inset-inline-end: 1.1rem;
    bottom: 1.1rem;
    z-index: 1030;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--xco-primary), var(--xco-primary-dark));
    box-shadow: 0 .6rem 1.4rem rgba(0, 48, 135, .4);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.dash-fab:active {
    transform: scale(.94);
    color: #fff;
}

@media (min-width: 992px) {
    .dash-fab {
        display: none;
    }
}

/* ---------- نوار پیشرفت فرم ثبت درخواست (Endowed Progress Effect) ---------- */
.order-progress-wrap {
    margin-bottom: .6rem;
}

.order-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: .35rem;
}

.order-progress-percent {
    color: var(--xco-primary);
    font-weight: 700;
}

.order-progress-track {
    height: .45rem;
    border-radius: 1rem;
    background: #e9ecf3;
    overflow: hidden;
}

.order-progress-fill {
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(90deg, var(--xco-primary-light), var(--xco-primary));
    transition: width .35s ease;
}

.order-progress-fill.is-complete {
    background: linear-gradient(90deg, #198754, #20c997);
}

/* ---------- نوار مراحل فرم ثبت درخواست (استپر) ---------- */
.order-steps-nav {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding: .35rem;
    margin: 0 0 1rem;
    background: #fff;
    border: 1px solid var(--xco-card-border);
    border-radius: var(--xco-radius);
    box-shadow: var(--xco-shadow-sm);
    position: sticky;
    top: 3.7rem;
    z-index: 15;
    scrollbar-width: none;
}

.order-steps-nav::-webkit-scrollbar {
    display: none;
}

@media (min-width: 992px) {
    .order-steps-nav {
        top: calc(var(--xco-navbar-h) + .5rem);
    }
}

.order-steps-nav .order-step-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    padding: .5rem .9rem;
    border-radius: .6rem;
    font-size: .82rem;
    font-weight: 600;
    color: #6c757d;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.order-steps-nav .order-step-link .order-step-num {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #eef0f3;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    flex-shrink: 0;
}

.order-steps-nav .order-step-link.active {
    background: var(--xco-primary-soft);
    color: var(--xco-primary);
}

.order-steps-nav .order-step-link.active .order-step-num {
    background: var(--xco-primary);
    color: #fff;
}

.order-steps-nav .order-step-link.done .order-step-num {
    background: #198754;
    color: #fff;
}

@media (max-width: 575.98px) {
    .order-steps-nav .order-step-link span:not(.order-step-num) {
        display: none;
    }

    .order-steps-nav .order-step-link {
        padding: .5rem;
    }
}
/* ---------- کارت سفارش (نمایش موبایل به‌جای جدول) ---------- */
.order-card-mobile {
    display: block;
    background: #fff;
    border: 1px solid var(--xco-card-border);
    border-radius: var(--xco-radius);
    padding: 1rem;
    box-shadow: var(--xco-shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, transform .15s ease;
}

.order-card-mobile:hover,
.order-card-mobile:active {
    box-shadow: var(--xco-shadow-md);
    color: inherit;
    transform: translateY(-1px);
}

.order-card-mobile + .order-card-mobile {
    margin-top: .75rem;
}

.order-card-mobile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .55rem;
}

.order-card-mobile-id {
    font-size: .76rem;
    color: #8791a8;
    font-weight: 600;
}

.order-card-mobile-service {
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .1rem;
}

.order-card-mobile-service i {
    color: var(--xco-primary);
}

.order-card-mobile-tech {
    font-size: .82rem;
    color: #6c757d;
}

.order-card-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .9rem;
    font-size: .8rem;
    color: #6c757d;
    margin-top: .55rem;
    padding-top: .55rem;
    border-top: 1px dashed var(--xco-card-border);
}

.order-card-mobile-meta i {
    color: #adb5bd;
}

.order-card-mobile-arrow {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--xco-primary-soft);
    color: var(--xco-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    margin-inline-start: auto;
}

/* ---------- استپر ثبت درخواست: ظرف مرحله + انیمیشن ورود ---------- */
.order-step-pane {
    animation: xco-fade-in .3s ease;
}

@keyframes xco-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.order-step-review dt {
    font-size: .8rem;
    color: #8791a8;
    font-weight: 600;
}

.order-step-review dd {
    font-size: .9rem;
    margin-bottom: .6rem;
}

/* ---------- استپر ثبت درخواست: نوار عملیات ثابت پایین (قبلی/بعدی/ثبت) ---------- */
/* در موبایل، این نوار به‌جای منوی عمومی پایین صفحه (که در وسط پرکردن یک فرم
   چندمرحله‌ای معنایی ندارد و دکمه‌ی «ثبت سفارش» آن حتی گمراه‌کننده هم هست)
   نمایش داده می‌شود و با visualViewport همیشه درست بالای صفحه‌کلید می‌ماند. */
.order-action-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.order-action-bar-step {
    font-size: .78rem;
    font-weight: 600;
    color: #8791a8;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .order-new-page .dash-content {
        /* ارتفاع نوار عملیات کمی بیشتر از منوی عمومی پایین است (به‌خاطر برچسب مرحله)،
           بنابراین فاصله‌ی پایینِ محتوا هم مطابق آن تنظیم می‌شود. */
        padding-bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
    }

    .order-action-bar {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 35;
        background: #fff;
        border-top: 1px solid var(--xco-card-border);
        padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -.35rem 1rem rgba(20, 25, 40, .08);
        /* جابه‌جایی نرم به‌سمت بالا وقتی صفحه‌کلید باز است (با JS کنترل می‌شود) */
        transition: transform .15s ease;
        will-change: transform;
    }

    .order-action-bar .btn {
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .order-action-bar {
        margin-top: 1.25rem;
    }
}

/* وقتی صفحه‌کلید موبایل باز است (مثلاً هنگام جستجوی خدمت)، نوار مراحلِ
   چسبان کمی جمع‌وجورتر می‌شود تا فضای بیشتری برای نتایج آزاد شود. */
body.order-kb-open .order-steps-nav {
    position: static;
}

/* ---------- اسکلتون لودینگ (Skeleton Loading) ---------- */
@keyframes xco-skeleton-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.xco-img-skeleton {
    background-image: linear-gradient(100deg, #eef0f3 30%, #f8f9fb 50%, #eef0f3 70%);
    background-size: 300% 100%;
    animation: xco-skeleton-shine 1.4s ease-in-out infinite;
}

.xco-img-skeleton.is-loaded {
    animation: none;
    background-image: none;
}

.xco-skeleton-block {
    border-radius: .5rem;
    background-image: linear-gradient(100deg, #eef0f3 30%, #f8f9fb 50%, #eef0f3 70%);
    background-size: 300% 100%;
    animation: xco-skeleton-shine 1.4s ease-in-out infinite;
}

.xco-skeleton-text {
    height: .8rem;
    margin-bottom: .5rem;
}

.xco-skeleton-text:last-child {
    margin-bottom: 0;
    width: 60%;
}

/* پوسته‌ی اسکلتونی کارت‌های آماری/لیست هنگام بارگذاری اولیه‌ی صفحه؛
   با کلاس is-ready (که فوراً توسط JS بعد از رندر افزوده می‌شود) محو می‌شود. */
.xco-skeleton-fade {
    position: relative;
}

.xco-skeleton-fade::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(100deg, #eef0f3 30%, #f8f9fb 50%, #eef0f3 70%);
    background-size: 300% 100%;
    animation: xco-skeleton-shine .9s ease-in-out;
    opacity: 1;
    transition: opacity .35s ease .05s;
    pointer-events: none;
}

.xco-skeleton-fade.is-ready::after {
    opacity: 0;
}

/* ---------- ابزار کمکی عمومی ---------- */
.min-w-0 {
    min-width: 0;
}

/* ---------- کارت‌های آماری قابل کلیک (لینک) ---------- */
a.dash-stat-card {
    color: inherit;
    display: block;
}

a.dash-stat-card:hover {
    box-shadow: var(--xco-shadow-md) !important;
}

/* ---------- ویجت درصد تکمیل پروفایل ---------- */
.profile-completion-card {
    border-inline-start: 3px solid var(--xco-primary) !important;
    transition: box-shadow .15s ease, transform .15s ease;
}

.profile-completion-card:hover {
    box-shadow: var(--xco-shadow-md) !important;
    transform: translateY(-2px);
}

.profile-completion-ring {
    --pct: 0;
    --ring-size: 3.4rem;
    width: var(--ring-size);
    height: var(--ring-size);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .82rem;
    color: var(--xco-primary);
    background:
        radial-gradient(closest-side, #fff 68%, transparent 69% 100%),
        conic-gradient(var(--xco-primary) calc(var(--pct) * 1%), var(--xco-primary-soft) 0);
}

.profile-completion-bar {
    height: .45rem;
    border-radius: 1rem;
    background-color: var(--xco-primary-soft);
    max-width: 420px;
}

/* ---------- ستاره‌های امتیاز ---------- */
.star-rating {
    display: inline-flex;
    gap: .1rem;
    font-size: .85rem;
    color: #dfe3ea;
}

.star-rating .filled {
    color: #ffc107;
}

/* ---------- ورودی امتیاز ستاره‌ای تعاملی (فرم ثبت نظر) ---------- */
.star-rating-input {
    display: inline-flex;
    gap: .25rem;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.star-rating-input .star-rating-star {
    color: #dfe3ea;
    transition: color .12s ease, transform .12s ease;
}

.star-rating-input .star-rating-star:hover {
    transform: scale(1.12);
}

.star-rating-input .star-rating-star.active {
    color: #ffc107;
}

/* ---------- بخش دیدگاه خوانندگان (content_show.php) ---------- */

/* تله‌ی ربات: از دید کاربر واقعی و صفحه‌خوان کاملاً مخفی است، ولی برای
   ربات‌های ساده که همه‌ی اینپوت‌ها را پر می‌کنند قابل‌مشاهده باقی می‌ماند. */
.comment-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
}

.rating-bar-track {
    height: .5rem;
    border-radius: 1rem;
    background-color: var(--xco-primary-soft, #eef2ff);
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 1rem;
    background-color: #ffc107;
    transition: width .4s ease;
}

.js-comment-form textarea {
    resize: vertical;
}

.js-comment-submit {
    min-width: 9rem;
}

.js-comment-submit.is-loading {
    pointer-events: none;
    opacity: .75;
}

.js-comment-submit .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: .15em;
}

/* هر ردیفِ یک بعد از امتیازدهی چندبعدی (کیفیت کار/وقت‌شناسی/برخورد/قیمت) */
.review-dimensions {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.review-dimension-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: .75rem;
    border-bottom: 1px dashed #e9ecef;
}

.review-dimension-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-dimension-label {
    font-weight: 600;
    font-size: .92rem;
    flex: 1 1 220px;
}

.review-dimension-help {
    font-weight: 400;
    font-size: .76rem;
    margin-top: .1rem;
}

/* نمایش ریز-امتیازهای یک نظرِ ازقبل‌ثبت‌شده (فقط‌خواندنی) */
.review-dimension-breakdown {
    background: #f8f9fb;
    border-radius: .6rem;
    padding: .75rem 1rem;
}

.review-dimension-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .3rem 0;
    font-size: .82rem;
}

.review-dimension-breakdown-row + .review-dimension-breakdown-row {
    border-top: 1px solid #edf0f4;
}

/* ---------- نوار پیشرفتِ میانگین هر بعد (پروفایل عمومی/داشبورد تکنسین/ادمین) ---------- */
.rating-dimension-bars {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.rating-dimension-bar-row .rating-dimension-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    margin-bottom: .25rem;
}

.rating-dimension-bar-row .rating-dimension-bar-top .label {
    color: #495057;
    font-weight: 600;
}

.rating-dimension-bar-row .rating-dimension-bar-top .value {
    color: #6c757d;
    font-weight: 700;
}

.rating-dimension-bar-track {
    height: .45rem;
    border-radius: 1rem;
    background: #edf0f4;
    overflow: hidden;
}

.rating-dimension-bar-fill {
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(90deg, #ffc107, #ff9f1c);
}

/* =========================================================================
   صفحه‌ی «نظرات و امتیازها»ی پنل تکنسین (technician/reviews.php)
   ========================================================================= */

/* ---- کارت آمار کلی بالای صفحه ---- */
.reviews-summary-card {
    background: linear-gradient(135deg, #fff8e6 0%, #ffffff 55%);
    border: 1px solid #fbe8c6;
}

.reviews-summary-score {
    font-size: 2.6rem;
    font-weight: 800;
    color: #2b2f38;
    line-height: 1;
}

/* ---- توزیع ستاره‌ای (۵ تا ۱ ستاره) ---- */
.review-star-dist {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.review-star-dist-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
}

.review-star-dist-row .review-star-dist-label {
    flex: 0 0 3.4rem;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .2rem;
    justify-content: flex-end;
}

.review-star-dist-row .review-star-dist-label i {
    color: #ffc107;
    font-size: .72rem;
}

.review-star-dist-track {
    flex: 1 1 auto;
    height: .5rem;
    border-radius: 1rem;
    background: #edf0f4;
    overflow: hidden;
}

.review-star-dist-fill {
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(90deg, #ffc107, #ff9f1c);
    transition: width .5s ease;
}

.review-star-dist-row .review-star-dist-count {
    flex: 0 0 1.9rem;
    color: #6c757d;
    font-weight: 700;
    text-align: left;
}

/* ---- چیپ‌های فیلتر (امتیاز/بی‌پاسخ) و مرتب‌سازی ---- */
.review-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.review-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .38rem .85rem;
    border-radius: 2rem;
    border: 1px solid #e1e5eb;
    background: #fff;
    color: #495057;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}

.review-filter-chip:hover {
    border-color: var(--xco-primary, #5b4dfd);
    color: var(--xco-primary, #5b4dfd);
}

.review-filter-chip.active {
    background: var(--xco-primary, #5b4dfd);
    border-color: var(--xco-primary, #5b4dfd);
    color: #fff;
}

.review-filter-chip .badge {
    font-size: .68rem;
}

/* ---- هر ردیف/کارت نظر ---- */
.review-item-card {
    border: 1px solid #eef0f4;
    border-radius: .85rem;
    padding: 1.1rem 1.25rem;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.review-item-card:hover {
    box-shadow: 0 .35rem 1rem rgba(20, 25, 40, .06);
    border-color: #e3e6ec;
}

.review-item-card + .review-item-card {
    margin-top: 1rem;
}

.review-item-card.needs-reply {
    border-color: #ffe1a8;
    background: #fffdf7;
}

.review-item-customer {
    font-weight: 700;
    font-size: .95rem;
    color: #2b2f38;
}

.review-item-meta {
    font-size: .78rem;
    color: #8a8f98;
}

.review-item-comment {
    font-size: .9rem;
    color: #3c4049;
    line-height: 1.85;
    white-space: pre-line;
}

/* ---- پاسخ ثبت‌شده‌ی تکنسین ---- */
.review-reply-block {
    background: #f3f6ff;
    border-inline-start: 3px solid var(--xco-primary, #5b4dfd);
    border-radius: .5rem;
    padding: .75rem 1rem;
    margin-top: .85rem;
}

.review-reply-block .review-reply-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--xco-primary, #5b4dfd);
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .25rem;
}

.review-reply-block .review-reply-text {
    font-size: .87rem;
    color: #3c4049;
    line-height: 1.8;
    white-space: pre-line;
}

/* ---- فرم پاسخ‌دهی ---- */
.review-reply-form {
    margin-top: .85rem;
    border-top: 1px dashed #e9ecef;
    padding-top: .85rem;
}

.review-reply-form textarea {
    resize: vertical;
    font-size: .87rem;
}

.js-review-reply-submit.is-loading {
    pointer-events: none;
    opacity: .75;
}

.js-review-reply-submit .spinner-border {
    width: .9rem;
    height: .9rem;
    border-width: .15em;
}

.review-reply-alert {
    font-size: .8rem;
    border-radius: .5rem;
}

@media (max-width: 575.98px) {
    .reviews-summary-score {
        font-size: 2.1rem;
    }
    .review-item-card {
        padding: .9rem 1rem;
    }
}

/* ---------- نشان تعداد روی دکمه شناور ---------- */
.dash-fab-badge {
    position: absolute;
    top: -.15rem;
    inset-inline-end: -.15rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 .3rem;
    border-radius: 1rem;
    background: #dc3545;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}
/* ============================================================
   PWA - بنرهای «نصب اکسکو» و «فعال‌سازی اعلان‌ها»
   یک کارت ثابتِ پایین صفحه، بالای نوار پایینِ موبایل (اگر باشد)،
   با انیمیشن ورود ساده و بدون وابستگی به main.js.
   ============================================================ */
.xco-pwa-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    padding-bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, .08);
    box-shadow: var(--xco-shadow-md);
    transform: translateY(110%);
    transition: transform .28s ease;
}

.xco-pwa-banner.is-visible {
    transform: translateY(0);
}

.xco-pwa-banner-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--xco-primary-soft);
    color: var(--xco-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.xco-pwa-banner-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.xco-pwa-banner-text strong {
    font-size: .9rem;
    color: #0f172a;
}

.xco-pwa-banner-text span {
    font-size: .78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xco-pwa-banner-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.xco-pwa-btn {
    border: none;
    border-radius: var(--xco-radius-sm);
    padding: .5rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}

.xco-pwa-btn-primary {
    background: var(--xco-primary);
    color: #fff;
}

.xco-pwa-btn-primary:active {
    background: var(--xco-primary-dark);
}

.xco-pwa-btn-ghost {
    background: transparent;
    color: #94a3b8;
    padding: .5rem .55rem;
    font-size: 1rem;
    line-height: 1;
}

/* اگر هر دو بنر هم‌زمان لازم شوند (به‌ندرت)، بنر دوم کمی بالاتر بنشیند */
#xcoPushBanner.is-visible ~ #xcoInstallBanner.is-visible {
    bottom: 4.2rem;
}

/* ============================================================
   PWA - بنرِ پیش‌نویس آفلاینِ فرم سفارش (assets/js/offline-order-draft.js)
   از همان کلاس پایه‌ی .xco-pwa-banner استفاده می‌کند، فقط رنگ آیکن با
   وضعیت (هشدار هنگام ذخیره‌ی آفلاین / موفقیت هنگام ارسال خودکار) هماهنگ می‌شود.
   ============================================================ */
.xco-pwa-banner-icon-warning {
    background: #fef3c7;
    color: #b45309;
}

.xco-pwa-banner-icon-success {
    background: #dcfce7;
    color: #15803d;
}

/* بنرهای اطلاع‌رسانیِ خودکار (بدون دکمه‌ی اقدام دوتایی) کمی جمع‌وجورتر باشند */
.xco-pwa-banner-actions .xco-pwa-btn-outline {
    background: transparent;
    color: var(--xco-primary);
    border: 1px solid var(--xco-primary);
}

/* دکمه‌ی متنیِ کم‌رنگ (مثلاً «حذف پیش‌نویس») - کنار دکمه‌ی اصلیِ بازیابی */
.xco-pwa-banner-actions .xco-pwa-btn-text {
    font-size: .78rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding-inline: .3rem;
}

/* حالت اجراشده به‌عنوان اپ نصب‌شده (standalone) - فاصله‌ی امن بالای صفحه برای notch/status bar */
body.xco-standalone .navbar.sticky-top,
body.xco-standalone header.sticky-top {
    padding-top: env(safe-area-inset-top, 0px);
}
/* =========================================================================
   XCO.IR - تایمر شمارش معکوس درخواست‌ها در پنل تکنسین
   (مهلت پاسخ‌گویی به سفارش + بازه‌ی نمایش «در انتظار تایید مشتری»)
   ========================================================================= */

/* ---------- نشان (badge) شمارش معکوسِ مهلت پاسخ‌گویی ---------- */
.order-timer {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .7rem;
    border-radius: 2rem;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}

.order-timer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}

.order-timer-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}

.order-timer-label {
    font-weight: 600;
    opacity: .85;
    font-size: .72rem;
}

/* فاز عادی: بیش از ۶۰ دقیقه تا مهلت - آرام، خنثی */
.order-timer-normal {
    background: var(--xco-primary-soft);
    color: var(--xco-primary);
    border-color: rgba(0, 48, 135, .12);
}

/* فاز هشدار: بین ۱۵ تا ۶۰ دقیقه تا مهلت - نارنجی */
.order-timer-warning {
    background: #fff4e5;
    color: #b45309;
    border-color: rgba(180, 83, 9, .18);
}

/* فاز بحرانی: کمتر از ۱۵ دقیقه تا مهلت - قرمز با ضربان ملایم */
.order-timer-critical {
    background: #fdecec;
    color: #c81e1e;
    border-color: rgba(200, 30, 30, .25);
    animation: xco-timer-pulse-soft 1.6s ease-in-out infinite;
}

/* فاز فرصتِ اضافه (grace): مهلت گذشته اما هنوز ۱۰ دقیقه فرصت باقیست - آخرین هشدار */
.order-timer-grace {
    background: #c81e1e;
    color: #fff;
    border-color: #a51414;
    animation: xco-timer-pulse-strong 1s ease-in-out infinite;
    box-shadow: 0 .2rem .6rem rgba(200, 30, 30, .35);
}

/* فاز منقضی: فقط برای لحظه‌ی خیلی کوتاه پیش از حذف کامل ردیف با جاوااسکریپت */
.order-timer-expired {
    background: #e9ecef;
    color: #6c757d;
    border-color: #dee2e6;
}

@keyframes xco-timer-pulse-soft {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.035); }
}

@keyframes xco-timer-pulse-strong {
    0%, 100%   { transform: scale(1);    box-shadow: 0 .2rem .6rem rgba(200, 30, 30, .35); }
    50%        { transform: scale(1.06); box-shadow: 0 .3rem 1rem rgba(200, 30, 30, .55); }
}

/* پیام کوچکِ زیرِ عنوانِ سفارش، توضیح‌دهنده‌ی نوعِ زمان (پایان بازه‌ی ترجیحی / پیش‌فرض) */
.order-timer-caption {
    font-size: .7rem;
    color: #8791a8;
    margin-top: .15rem;
}

/* ---------- افکت حذف نرم ردیف/کارتِ منقضی‌شده از فهرست ---------- */
.js-order-timer-row {
    transition: opacity .55s ease, transform .55s ease, max-height .55s ease, margin .55s ease, padding .55s ease;
}

.js-order-expiring-out {
    opacity: 0;
    transform: scale(.97) translateY(-6px);
    pointer-events: none;
}

.js-order-row-collapsing {
    max-height: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
    overflow: hidden;
}

/* هشدار توست کوچکِ گوشه‌ی صفحه - وقتی سفارشی در همان لحظه از پنل حذف می‌شود */
.xco-timer-toast-stack {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: min(92vw, 360px);
}

.xco-timer-toast {
    background: #1f2937;
    color: #fff;
    border-radius: var(--xco-radius-sm);
    padding: .75rem 1rem;
    font-size: .82rem;
    box-shadow: var(--xco-shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    animation: xco-toast-in .25s ease;
}

.xco-timer-toast i { color: #f87171; margin-top: .1rem; }

@keyframes xco-toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- نشان‌های بازه‌ی زمانی ترجیحی مشتری (صبح/عصر/...) روی کارت/جدول ---------- */
.order-slot-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    color: #6c757d;
    background: #f3f5f9;
    border: 1px solid var(--xco-card-border);
    border-radius: 1rem;
    padding: .2rem .55rem;
}

/* ---------- کارتِ سفارشِ «در انتظار تایید مشتری» (پیشنهاد ثبت‌شده، منتظر پاسخ) ---------- */
.awaiting-offer-card {
    background: linear-gradient(135deg, #fffaf3 0%, #fff 60%);
    border: 1px solid #f5deb3;
    border-radius: var(--xco-radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--xco-shadow-sm);
    position: relative;
    overflow: hidden;
}

.awaiting-offer-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--xco-secondary);
}

.awaiting-offer-card + .awaiting-offer-card {
    margin-top: .75rem;
}

.awaiting-offer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6rem;
}

.awaiting-offer-price {
    font-weight: 800;
    color: var(--xco-primary);
    font-size: 1.05rem;
}

.awaiting-offer-visibility {
    margin-top: .6rem;
}

.awaiting-offer-visibility-bar {
    height: .35rem;
    background: #f1e6cf;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: .3rem;
}

.awaiting-offer-visibility-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--xco-secondary), var(--xco-secondary-light));
    border-radius: 1rem;
    transition: width .4s ease;
}

.awaiting-offer-visibility-label {
    font-size: .74rem;
    color: #92722a;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.section-divider-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
    font-weight: 700;
    color: #6c757d;
    margin: 1.5rem 0 .75rem;
}

.section-divider-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--xco-card-border);
}

/* ---------- حالت خالی/عادی برای کانتینر بعد از حذف تمام کارت‌های منقضی ---------- */
.xco-empty-state-injected {
    text-align: center;
    color: #8791a8;
    padding: 3rem 1rem;
}

.xco-empty-state-injected i {
    font-size: 2rem;
    display: block;
    margin-bottom: .5rem;
    opacity: .5;
}

/* ---------- سازگاری کارت موبایل با wrapper جدید تایمر (data-order-row) ---------- */
.order-card-mobile-wrap + .order-card-mobile-wrap {
    margin-top: .75rem;
}

.order-card-mobile-wrap .order-card-mobile-head {
    flex-wrap: wrap;
}

.order-card-mobile-wrap .order-timer {
    flex-shrink: 0;
}
