/* === Bazeh User Panel - Ultra Modern Design === */
:root {
    --bazeh-orange: #F05823;
    --bazeh-green: #1a5d3a;
    --bazeh-bg: #fff7f3;
    --bazeh-text: #1a1a1a;
    --bazeh-text-light: #666;
    --bazeh-text-lighter: #999;
    --bazeh-border: rgba(0, 0, 0, 0.08);
    --bazeh-border-light: rgba(0, 0, 0, 0.05);
    --bazeh-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --bazeh-shadow-hover: 0 12px 40px rgba(240, 88, 35, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    --bazeh-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

.bazeh-panel,
.bazeh-panel-auth-wrapper {
    font-family: "Vazirmatn", "Vazir", "IRANSans", "IRANSansX", Tahoma, system-ui, -apple-system, sans-serif;
    direction: rtl;
}

.bazeh-panel input,
.bazeh-panel select,
.bazeh-panel textarea,
.bazeh-panel button {
    font-family: inherit;
}

/* === Main Panel Layout === */
.bazeh-panel {
    position: relative;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Hide mobile menu elements globally */
.bazeh-mobile-menu-toggle,
.bazeh-mobile-menu-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* === Sidebar ===
 * Sidebar is sticky but MUST NEVER grow its own vertical scrollbar —
 * the browser's natural scroll is enough. If the sidebar becomes taller
 * than the viewport we simply let it extend, not scroll internally.
 */
.bazeh-panel-sidebar {
    width: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 28px;
    border-radius: 28px;
    box-shadow: var(--bazeh-shadow);
    border: 1px solid var(--bazeh-border);
    position: sticky;
    top: 24px;
    height: fit-content;
    max-height: none;
    overflow: visible;
}

.bazeh-panel-user {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 2px solid var(--bazeh-border-light);
}

.bazeh-avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bazeh-orange) 0%, var(--bazeh-green) 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(240, 88, 35, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bazeh-avatar-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bazeh-avatar-circle:hover::before {
    opacity: 1;
}

.bazeh-avatar-circle:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 10px 30px rgba(240, 88, 35, 0.45);
}

.bazeh-avatar-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

.bazeh-avatar-initial {
    position: relative;
    z-index: 1;
}

.bazeh-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
        flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.bazeh-avatar-overlay svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.bazeh-avatar-overlay span {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.bazeh-avatar-circle:hover .bazeh-avatar-overlay {
    opacity: 1;
}

/* Avatar Upload Modal */
.bazeh-avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.bazeh-avatar-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.bazeh-avatar-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    overflow: hidden;
}

.bazeh-avatar-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bazeh-avatar-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.bazeh-avatar-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.bazeh-avatar-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.bazeh-avatar-modal-body {
    padding: 28px;
    flex: 1;
    overflow: auto;
}

.bazeh-avatar-cropper-wrapper {
    width: 100%;
    border-radius: 12px;
    background: #f9fafb;
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#bazeh-avatar-canvas {
    width: 320px;
    height: 320px;
    max-width: 100%;
    max-height: 60vh;
    background: #f2f4f7;
    border-radius: 14px;
    touch-action: none;
    cursor: grab;
    user-select: none;
    display: block;
}

#bazeh-avatar-canvas:active {
    cursor: grabbing;
}

.bazeh-avatar-hint {
    margin: 0;
    font-size: 12.5px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

.bazeh-avatar-zoom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    color: #4b5563;
    font-weight: 700;
}

.bazeh-avatar-zoom-row input[type="range"] {
    flex: 1;
    accent-color: var(--bazeh-orange, #f59e0b);
    height: 4px;
    cursor: pointer;
}

.bazeh-avatar-modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.bazeh-avatar-modal-footer .bazeh-button {
    min-width: 120px;
}

.bazeh-avatar-success-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 10002;
    font-weight: 600;
    font-size: 14px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.bazeh-panel-user-name {
    display: block;
    font-weight: 800;
    font-size: 20px;
    color: var(--bazeh-text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.bazeh-panel-user-email {
    display: block;
        font-size: 13px;
    color: var(--bazeh-text-light);
    word-break: break-word;
}

/* Tabs, accordions, dashboard numbers — scoped to panel only. */
.bazeh-panel-nav li a,
.bazeh-mobile-tab,
.bazeh-mobile-tab .bazeh-nav-label,
.bazeh-nav-accordion__summary,
.bazeh-dashboard-card-value,
.bazeh-dashboard-card-label,
.bazeh-panel-content h2,
.bazeh-panel-content h3,
.bazeh-panel-sidebar .bazeh-panel-user-name {
    font-family: "Vazirmatn", "Vazir", Tahoma, system-ui, -apple-system, sans-serif;
}

.bazeh-panel-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bazeh-panel-nav li {
    margin-bottom: 6px;
}

.bazeh-panel-nav li a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bazeh-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bazeh-panel-nav li a::before {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;
    background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%) !important;
    transform: scaleY(0) !important;
    transform-origin: bottom !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 0 4px 4px 0 !important;
}

.bazeh-panel-nav li a::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(30, 64, 175, 0.05) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.bazeh-panel-nav li a:hover::after {
    opacity: 1 !important;
}

.bazeh-panel-nav li a:hover {
    color: #3b82f6 !important;
    transform: translateX(-4px) !important;
}

.bazeh-panel-nav li a:hover::before {
    transform: scaleY(1) !important;
}

.bazeh-panel-nav li.active a {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(30, 64, 175, 0.08) 100%) !important;
    color: #1e40af !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15) !important;
}

.bazeh-panel-nav li.active a::before {
    transform: scaleY(1) !important;
}

.bazeh-panel-nav li.active a::after {
    opacity: 0 !important;
}

/* ── Sidebar: گروه‌های تاشو (مدیریت حساب / سفارشات / کسب درآمد) ── */
.bazeh-panel-nav--grouped .bazeh-panel-nav-group {
    margin-bottom: 4px;
}

.bazeh-nav-accordion {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
}

.bazeh-nav-accordion__summary {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--bazeh-text);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    min-width: 0;
}

.bazeh-nav-accordion__summary > .bazeh-nav-icon {
    flex-shrink: 0;
}

.bazeh-nav-accordion__summary > .bazeh-nav-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* بج‌ها + فلش در یک بلوک انتهایی (جلوگیری از شکستن عنوان) */
.bazeh-nav-accordion__summary-end {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-inline-start: auto;
}

/* بج‌های سرگروه «اعلان و تیکت» — گروه فشرده */
.bazeh-nav-accordion__summary-badges {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.bazeh-nav-sublink__badges {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* بج اعلان / تیکت — همیشه با panel.css (نه فقط تب اعلانات) */
.bazeh-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    margin-inline-start: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff !important;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    font-family: "Vazirmatn", "Vazir", Tahoma, sans-serif;
    font-feature-settings: normal !important;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.35);
    -webkit-text-fill-color: #fff !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
}
.bazeh-panel-badge--green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.35);
}
.bazeh-nav-accordion__summary-badges .bazeh-panel-badge {
    margin-inline-start: 0;
}
.bazeh-panel-badge--compact {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
    letter-spacing: -0.02em;
    box-shadow: none;
}
.bazeh-nav-accordion__summary-badges .bazeh-panel-badge--compact {
    animation: none;
}
.bazeh-nav-sublink__badges .bazeh-panel-badge {
    margin-inline-start: 0;
}
.bazeh-panel-nav li a .bazeh-nav-sublink__badges,
.bazeh-nav-accordion__link .bazeh-nav-sublink__badges {
    z-index: 2;
}

.bazeh-nav-accordion__summary::-webkit-details-marker {
    display: none;
}

.bazeh-nav-accordion__summary::marker {
    content: '';
}

.bazeh-nav-accordion__summary:hover {
    color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(30, 64, 175, 0.04) 100%);
}

.bazeh-nav-accordion__chev {
    margin-inline-start: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease;
}

.bazeh-nav-accordion__summary:hover .bazeh-nav-accordion__chev {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.bazeh-nav-accordion[open] > .bazeh-nav-accordion__summary .bazeh-nav-accordion__chev {
    transform: rotate(-180deg);
    color: #3b82f6;
}

.bazeh-nav-accordion[open] > .bazeh-nav-accordion__summary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(30, 64, 175, 0.05) 100%);
    color: #1e40af;
}

/* گروه «اعلان و تیکت»: پاسخ جدید پشتیبان — پس‌زمینه ملایم + پالس ظریف (فقط وقتی آکوردئون بسته است) */
.bazeh-nav-accordion--ticket-reply:not([open]) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.07) 0%, rgba(59, 130, 246, 0.04) 100%);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.16);
}
.bazeh-nav-accordion--ticket-reply:not([open]) > .bazeh-nav-accordion__summary {
    animation: bzh-support-ticket-pulse 2.8s ease-in-out infinite;
}
@keyframes bzh-support-ticket-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.07);
    }
}
.bazeh-nav-accordion--ticket-reply[open] > .bazeh-nav-accordion__summary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(59, 130, 246, 0.06) 100%);
}

.bazeh-nav-accordion__panel {
    padding: 2px 0 8px;
}

.bazeh-nav-accordion__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bazeh-nav-accordion__list li {
    margin-bottom: 2px;
}

.bazeh-nav-accordion__link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

.bazeh-nav-accordion__link::before {
    width: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
    .bazeh-nav-accordion__chev {
        transition: none;
    }
    .bazeh-nav-accordion--ticket-reply:not([open]) > .bazeh-nav-accordion__summary {
        animation: none !important;
    }
}

.bazeh-panel-shop-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bazeh-border-light);
}

.bazeh-panel-shop-link a {
    color: #3b82f6 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.bazeh-panel-shop-link a::after {
    content: '↗' !important;
    font-size: 14px !important;
    opacity: 0.7 !important;
}

.bazeh-panel-shop-link a:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #1e40af !important;
}

.bazeh-panel-logout {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--bazeh-border-light);
}

.bazeh-panel-logout a {
    color: #dc2626;
}

.bazeh-panel-logout a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* === Content Area === */
.bazeh-panel-content {
    flex: 1;
    background: #ffffff;
    padding: 40px;
    border-radius: 28px;
    box-shadow: var(--bazeh-shadow);
    border: 1px solid var(--bazeh-border);
    min-height: 600px;
}

.bazeh-panel-content h2 {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 32px 0;
    line-height: 1.3;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

.bazeh-panel-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Welcome Message */
.bazeh-welcome-message {
    font-size: 18px;
    color: #6b7280;
    margin: -16px 0 40px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    line-height: 1.6;
    font-weight: 500;
}

.bazeh-welcome-message .bazeh-user-name {
    font-weight: 700;
    color: #1e40af;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 4px;
}

/* داشبورد — خلاصهٔ ترافیک امروز + لینک آمار (فقط برای مدیر فروشگاه) */
.bzh-panel-admin-stats {
    font-family: "Vazirmatn", "Vazir", Tahoma, system-ui, sans-serif;
    direction: rtl;
    margin: 0 0 28px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(125deg, #fffbeb 0%, #ffffff 45%, #eff6ff 100%);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.bzh-panel-admin-stats__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}
.bzh-panel-admin-stats__sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}
.bzh-panel-admin-stats__sub--compact {
    margin: 0 0 10px;
    font-size: 12px;
}
.bzh-panel-admin-stats__section-title {
    margin: 20px 0 0;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}
.bzh-panel-admin-stats__grid--shop {
    margin-bottom: 16px;
}
.bzh-panel-admin-stats__cell--link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bzh-panel-admin-stats__cell--link:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.bzh-panel-admin-stats__cell-value--price {
    font-size: 17px;
    line-height: 1.25;
}
.bzh-panel-admin-stats__cell-value--price .woocommerce-Price-amount {
    font-weight: inherit;
}
.bzh-panel-admin-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.bzh-panel-admin-stats__cell {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: right;
}
.bzh-panel-admin-stats__cell-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 4px;
    text-transform: none;
}
.bzh-panel-admin-stats__cell-value {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}
.bzh-panel-admin-stats__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.bzh-panel-admin-stats__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.bzh-panel-admin-stats__btn--primary {
    background: linear-gradient(135deg, #f05823, #ff7a3d);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(240, 88, 35, 0.25);
}
.bzh-panel-admin-stats__btn--primary:hover {
    filter: brightness(1.05);
    color: #fff;
}
.bzh-panel-admin-stats__btn--ghost {
    background: #fff;
    color: #2563eb;
    border-color: #dbeafe;
}
.bzh-panel-admin-stats__btn--ghost:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* جدول میزبان‌های منتخب + مقایسهٔ دوره — Bazeh_Admin_Marketing_Alerts::render_dashboard_widget( user_panel ) */
.bzh-panel-admin-stats .bzh-mkt-dash-ref__toolbar {
    margin-bottom: 10px;
}
.bzh-panel-admin-stats .bzh-mkt-dash-ref__ranges {
    margin-bottom: 12px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.65;
}
.bzh-panel-admin-stats .bzh-mkt-dash-ref__caption-dates {
    unicode-bidi: plaintext;
    direction: ltr;
}
.bzh-panel-admin-stats .bzh-panel-hosts-wrap {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #e5e7eb;
}
.bzh-panel-admin-stats .bzh-panel-hosts-wrap__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}
.bzh-panel-admin-stats .bzh-panel-hosts-wrap__hint {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.65;
    color: #64748b;
}
.bzh-panel-admin-stats .bzh-panel-hosts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.bzh-panel-admin-stats .bzh-panel-hosts-table thead th {
    text-align: right;
    padding: 10px 12px;
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
.bzh-panel-admin-stats .bzh-panel-hosts-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-variant-numeric: tabular-nums;
}
.bzh-panel-admin-stats .bzh-panel-hosts-table tbody tr:last-child td {
    border-bottom: 0;
}
.bzh-panel-admin-stats .bzh-panel-hosts-table tbody td:first-child {
    font-weight: 600;
    color: #1e293b;
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
}

/* جدول آمار ورودی‌ها — اسکرول افقی مثل جدول سفارش‌ها */
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll {
    margin-top: 4px;
    border-radius: 12px;
}
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll .bzh-panel-hosts-table,
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll .bzh-mkt-dash-ref__table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    border-radius: 12px;
}
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll .bzh-panel-hosts-table th,
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll .bzh-panel-hosts-table td,
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll .bzh-mkt-dash-ref__table th,
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll .bzh-mkt-dash-ref__table td {
    white-space: nowrap;
    vertical-align: middle;
}
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll .bzh-panel-hosts-table thead th[rowspan],
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll .bzh-mkt-dash-ref__table thead th[rowspan] {
    min-width: 96px;
}
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll .bzh-panel-hosts-table tbody td:first-child {
    min-width: 128px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bzh-panel-admin-stats .bzh-mkt-dash-ref__scroll .bzh-mkt-th-stack {
    flex-wrap: nowrap;
}

.bazeh-panel-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--bazeh-text);
    margin: 32px 0 20px 0;
    letter-spacing: -0.01em;
}

.bazeh-panel-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bazeh-text);
    margin: 28px 0 16px 0;
}

.bazeh-panel-content p {
    color: var(--bazeh-text-light);
    line-height: 1.9;
    margin: 0 0 20px 0;
    font-size: 15px;
}

/* === Auth Forms === */
.bazeh-panel-auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 60px 24px;
    background: radial-gradient(1200px 600px at 80% -20%, rgba(240, 88, 35, 0.08), transparent 60%), #ffffff;
    min-height: 80vh;
}

.bazeh-panel-auth {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: var(--bazeh-shadow);
    border: 1px solid var(--bazeh-border);
    padding: 48px;
}

.bazeh-auth-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
    width: 100% !important;
    align-items: stretch !important;
}

.bazeh-auth-subtitle {
    margin: 1.25rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bazeh-text, #1e293b);
}

/* Hide any br tags and empty p tags in auth grid */
.bazeh-auth-grid br,
.bazeh-auth-grid p:empty,
.bazeh-auth-grid > p:empty,
.bazeh-auth-grid > p {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

/* Ensure auth cards are direct children and display properly */
.bazeh-auth-grid > .bazeh-auth-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    grid-column: auto !important;
}

/* Hide br tags inside forms and cards */
.bazeh-auth-card br,
.bazeh-auth-form br,
.bazeh-form-row br {
    display: none !important;
}

.bazeh-auth-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--bazeh-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bazeh-auth-card:first-child::before {
    transform: scaleX(1);
}

.bazeh-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bazeh-orange), var(--bazeh-green));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.bazeh-auth-card:hover::before {
    transform: scaleX(1);
}

.bazeh-auth-card:hover {
    box-shadow: var(--bazeh-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(240, 88, 35, 0.2);
}

.bazeh-auth-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--bazeh-green) 0%, var(--bazeh-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.bazeh-auth-desc {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: var(--bazeh-text-light);
    line-height: 1.8;
}

/* === Forms === */
.bazeh-auth-form,
.bazeh-profile-form {
    margin-top: 8px;
}

.bazeh-auth-form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.bazeh-auth-form .bazeh-form-row:last-child {
    margin-top: auto !important;
}

.bazeh-profile-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 24px !important;
    margin-bottom: 32px !important;
}

.bazeh-profile-form-grid-password {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 24px !important;
    margin-bottom: 32px !important;
    margin-top: 28px !important;
}

.bazeh-profile-divider {
    border: none !important;
    border-top: 2px solid rgba(59, 130, 246, 0.15) !important;
    margin: 32px 0 !important;
}

.bazeh-form-row {
    margin-bottom: 28px !important;
    display: flex !important;
    flex-direction: column !important;
}

.bazeh-profile-form-grid .bazeh-form-row {
    margin-bottom: 0 !important;
}

.bazeh-profile-form-grid .bazeh-form-row:last-child {
    margin-bottom: 0 !important;
}

.bazeh-profile-form-grid-password {
    margin-top: 20px !important;
}

.bazeh-profile-form h3 {
    margin-top: 32px !important;
    margin-bottom: 16px !important;
}

.bazeh-form-note {
    margin-bottom: 24px !important;
}

.bazeh-form-row label {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: #1f2937 !important;
    letter-spacing: -0.01em !important;
}

.bazeh-required {
    color: #ef4444;
    font-weight: 800;
    margin-inline-start: 4px;
}

.bazeh-tip-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-inline-start: 6px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
}

.bazeh-tip-content {
    position: absolute;
    inset-inline-end: 0;
    top: 24px;
    z-index: 35;
    min-width: 250px;
    max-width: 340px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.75;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all .2s ease;
}

.bazeh-tip-icon:hover .bazeh-tip-content,
.bazeh-tip-icon:focus .bazeh-tip-content,
.bazeh-tip-icon:focus-within .bazeh-tip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bazeh-form-row input[type="text"],
.bazeh-form-row input[type="email"],
.bazeh-form-row input[type="password"],
.bazeh-form-row input[type="tel"] {
    border-radius: 14px !important;
    border: 2px solid rgba(59, 130, 246, 0.2) !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #ffffff !important;
    color: #1f2937 !important;
}

.bazeh-auth-form .bazeh-form-row input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.bazeh-form-row input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    transform: translateY(-1px) !important;
    background: #ffffff !important;
}

.bazeh-form-note {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin-top: 8px !important;
    margin-bottom: 24px !important;
    line-height: 1.6 !important;
}

.bazeh-profile-form h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e40af !important;
    margin-bottom: 16px !important;
    margin-top: 32px !important;
}

.bazeh-form-row-inline {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 10px;
}

/* Login "remember me" must stick to the right edge in RTL. */
.bazeh-auth-form .bazeh-form-row-inline {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: right !important;
    direction: rtl !important;
    width: 100% !important;
}

.bazeh-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--bazeh-text);
    cursor: pointer;
    user-select: none;
}

.bazeh-auth-form .bazeh-checkbox {
    width: max-content !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
    text-align: right !important;
    justify-content: flex-start !important;
}

.bazeh-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--bazeh-orange);
}

/* === Buttons === */
.bazeh-button,
.bazeh-button-small {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 28px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #3b82f6 0%, rgba(59, 130, 246, 0.95) 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
    position: relative !important;
    overflow: hidden !important;
    letter-spacing: -0.01em !important;
}

.bazeh-auth-form .bazeh-button {
    width: 100%;
    min-height: 52px;
}

.bazeh-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    transition: left 0.6s ease !important;
}

.bazeh-button:hover::before {
    left: 100% !important;
}

.bazeh-button:hover,
.bazeh-button-small:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.45) !important;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
}

.bazeh-button:active {
    transform: translateY(-1px) !important;
}

.bazeh-button-small {
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3) !important;
}

.bazeh-button-small:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4) !important;
}

.bazeh-button-secondary {
    background: linear-gradient(135deg, #6b7280 0%, rgba(107, 114, 128, 0.95) 100%) !important;
    box-shadow: 0 4px 14px rgba(107, 114, 128, 0.35) !important;
}

.bazeh-button-secondary:hover {
    box-shadow: 0 10px 28px rgba(107, 114, 128, 0.45) !important;
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%) !important;
}

.bazeh-link {
    color: var(--bazeh-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bazeh-link:hover {
    color: var(--bazeh-green);
    gap: 10px;
}

/* === Dashboard Cards === */
.bazeh-dashboard-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 32px !important;
}

/* Card layout — uses CSS grid internally so label / value / link
   always align and never clip. `overflow: hidden` is kept on the
   card itself so the ::before top-bar stays rounded, but we give
   the value a safe horizontal padding and let it wrap gracefully
   when the content is long (e.g. "572,000 تومان"). */
.bazeh-dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
    border-radius: 22px !important;
    padding: 22px 20px !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 170px !important;
}

.bazeh-dashboard-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #3b82f6, #1e40af) !important;
    transform: scaleX(0) !important;
    transform-origin: right !important;
    transition: transform 0.4s ease !important;
}

.bazeh-dashboard-card:hover::before {
    transform: scaleX(1) !important;
}

.bazeh-dashboard-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 34px rgba(59, 130, 246, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
}

.bazeh-dashboard-card-label {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 0 0 4px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    line-height: 1.5 !important;
    text-transform: none !important;
}

.bazeh-dashboard-card-value {
    /* Responsive: shrinks on narrow cards so long numbers + unit
       (e.g. "572,000 تومان") stay on one line whenever possible. */
    font-size: clamp(20px, 2.4vw, 32px) !important;
    font-weight: 800 !important;
    margin: 10px 0 !important;
    padding: 0 4px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    min-width: 0 !important;
}

.bazeh-dashboard-card-value .woocommerce-Price-amount {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    white-space: normal !important;
}

.bazeh-dashboard-card-value .woocommerce-Price-currencySymbol {
    font-size: 0.5em !important;
    font-weight: 600 !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    vertical-align: baseline !important;
    margin-inline-start: 4px !important;
}

/* Last Order Date - Smaller font + numeric-friendly slashes */
.bazeh-last-order-date {
    font-size: clamp(18px, 2vw, 24px) !important;
    margin: 10px 0 4px !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0 !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

/* Last Order Product */
.bazeh-last-order-product {
    margin: 12px 0 !important;
    text-align: center !important;
}

.bazeh-product-link {
    display: inline-block !important;
    color: #1e40af !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.bazeh-product-link:hover {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.15) !important;
    text-decoration: underline !important;
}

.bazeh-no-product {
    color: #9ca3af !important;
    font-size: 14px !important;
    font-style: italic !important;
}

.bazeh-dashboard-card a {
    font-size: 14px !important;
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 12px !important;
    transition: all 0.3s ease !important;
}

.bazeh-dashboard-card a:hover {
    color: #1e40af !important;
    gap: 10px !important;
}

.bazeh-dashboard-card-link-disabled {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: #f1f5f9 !important;
    padding: 9px 18px !important;
    border-radius: 12px !important;
    margin-top: 12px !important;
    align-self: center !important;
    cursor: default !important;
    letter-spacing: 0.1px !important;
}

/* =======================================================================
   Dashboard card CTA button
   A pill-shaped gradient button for every dashboard card. The gradient
   defaults to the same blue as the card accent; per-variant overrides
   below tint credit (orange) and tier (green/silver/gold) cards to
   match their data. `align-self: center` docks the button to the bottom
   of the flex card regardless of how long the label/value text is.

   NOTE on selectors: we nest these under `.bazeh-dashboard-card` so the
   selector has higher specificity than the legacy `.bazeh-dashboard-card a`
   rule above. Without the nesting, that older rule would keep forcing
   the link color to blue (#3b82f6), turning the button text invisible
   against the gradient background.
   ======================================================================= */
.bazeh-dashboard-card .bazeh-dashboard-card-btn,
a.bazeh-dashboard-card-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 14px !important;
    align-self: center !important;
    padding: 10px 22px !important;
    min-height: 40px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    text-decoration: none !important;
    border: 0 !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, filter 0.25s ease !important;
    white-space: nowrap !important;
}

.bazeh-dashboard-card .bazeh-dashboard-card-btn::after,
a.bazeh-dashboard-card-btn::after {
    content: '‹' !important; /* RTL chevron pointing in the reading flow */
    font-size: 15px !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
    transition: transform 0.3s ease !important;
    color: #ffffff !important;
}

.bazeh-dashboard-card .bazeh-dashboard-card-btn:hover,
.bazeh-dashboard-card .bazeh-dashboard-card-btn:focus-visible,
a.bazeh-dashboard-card-btn:hover,
a.bazeh-dashboard-card-btn:focus-visible {
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    filter: saturate(1.1) brightness(1.04) !important;
    text-decoration: none !important;
    gap: 6px !important; /* cancel the global `.bazeh-dashboard-card a:hover { gap: 10px }` */
}

.bazeh-dashboard-card .bazeh-dashboard-card-btn:hover::after,
.bazeh-dashboard-card .bazeh-dashboard-card-btn:focus-visible::after,
a.bazeh-dashboard-card-btn:hover::after,
a.bazeh-dashboard-card-btn:focus-visible::after {
    transform: translate(-3px, -1px) !important;
}

.bazeh-dashboard-card .bazeh-dashboard-card-btn:active,
a.bazeh-dashboard-card-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28) !important;
}

.bazeh-dashboard-card .bazeh-dashboard-card-btn:focus-visible,
a.bazeh-dashboard-card-btn:focus-visible {
    outline: 2px solid #1e40af !important;
    outline-offset: 3px !important;
}

/* Child text elements (spans, strong) — inherit the white color so any
   theme stylesheet painting spans blue (Astra etc.) stays overridden. */
.bazeh-dashboard-card .bazeh-dashboard-card-btn,
.bazeh-dashboard-card .bazeh-dashboard-card-btn *,
a.bazeh-dashboard-card-btn,
a.bazeh-dashboard-card-btn * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* =======================================================================
   Dashboard card — Credit & Tier variants
   These cards surface the Bazeh rewards state directly on the panel
   dashboard so customers never need to hunt for their balance. The
   gradient accents also help them stand out from the "count" cards.
   ======================================================================= */
.bazeh-dashboard-card-sub {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin: 2px 0 0 !important;
    line-height: 1.55 !important;
    padding: 0 4px !important;
}

.bazeh-dashboard-card-sub strong {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums !important;
}

.bazeh-dashboard-card-unit {
    font-size: 0.48em !important;
    font-weight: 700 !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    letter-spacing: 0.2px !important;
    margin-inline-start: 2px !important;
}

/* Credit card — warm orange accent. Layered backgrounds only (no clipped
   ::after blob) so overflow:hidden on the card never cuts a hard vertical edge. */
.bazeh-dashboard-card--credit {
    background:
        radial-gradient(ellipse 120% 100% at 100% 0%, rgba(255, 237, 213, 0.9) 0%, transparent 55%),
        radial-gradient(ellipse 95% 85% at 0% 100%, rgba(254, 215, 170, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse 70% 55% at 85% 75%, rgba(251, 191, 36, 0.12) 0%, transparent 60%),
        linear-gradient(155deg, #fffdfb 0%, #fff7ed 42%, #fff4e6 72%, #fffbeb 100%) !important;
    border-color: rgba(240, 88, 35, 0.22) !important;
}

.bazeh-dashboard-card--credit::after {
    content: none !important;
}

.bazeh-dashboard-card--credit > * {
    position: relative !important;
    z-index: 1 !important;
}

.bazeh-dashboard-card--credit::before {
    background: linear-gradient(90deg, #f59e0b 0%, #f05823 100%) !important;
}

.bazeh-dashboard-card--credit:hover {
    background:
        radial-gradient(ellipse 120% 100% at 100% 0%, rgba(255, 228, 196, 0.95) 0%, transparent 56%),
        radial-gradient(ellipse 95% 85% at 0% 100%, rgba(254, 200, 150, 0.5) 0%, transparent 52%),
        radial-gradient(ellipse 75% 58% at 82% 78%, rgba(249, 115, 22, 0.14) 0%, transparent 62%),
        linear-gradient(155deg, #fff8f0 0%, #ffedd5 40%, #ffe4c7 78%, #fff4e6 100%) !important;
    border-color: rgba(240, 88, 35, 0.4) !important;
    box-shadow: 0 12px 34px rgba(240, 88, 35, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.bazeh-dashboard-card--credit .bazeh-dashboard-card-value {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.bazeh-dashboard-card--credit .bazeh-dashboard-card-unit {
    color: #b45309 !important;
    -webkit-text-fill-color: #b45309 !important;
}

.bazeh-dashboard-card--credit .bazeh-dashboard-card-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #f05823 100%) !important;
    box-shadow: 0 4px 14px rgba(240, 88, 35, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.bazeh-dashboard-card--credit .bazeh-dashboard-card-btn:hover,
.bazeh-dashboard-card--credit .bazeh-dashboard-card-btn:focus-visible {
    box-shadow: 0 10px 24px rgba(240, 88, 35, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

/* Tier card — neutral base; the inner accent colour follows the current
   tier so gold customers get a golden card and silver get silver, etc. */
.bazeh-dashboard-card--tier {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
}

.bazeh-dashboard-card--tier::before {
    background: linear-gradient(90deg, #22c55e 0%, #14532d 100%) !important;
}

.bazeh-dashboard-card--tier:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
    box-shadow: 0 12px 34px rgba(34, 197, 94, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.bazeh-dashboard-card--tier .bazeh-dashboard-card-value {
    background: linear-gradient(135deg, #22c55e 0%, #14532d 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: clamp(22px, 2.4vw, 30px) !important;
}

.bazeh-dashboard-card--tier .bazeh-dashboard-card-btn {
    background: linear-gradient(135deg, #22c55e 0%, #14532d 100%) !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.bazeh-dashboard-card--tier .bazeh-dashboard-card-btn:hover,
.bazeh-dashboard-card--tier .bazeh-dashboard-card-btn:focus-visible {
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* Silver tier override */
.bazeh-dashboard-card--tier-silver::before {
    background: linear-gradient(90deg, #94a3b8 0%, #475569 100%) !important;
}
.bazeh-dashboard-card--tier-silver .bazeh-dashboard-card-value {
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.bazeh-dashboard-card--tier-silver .bazeh-dashboard-card-btn {
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%) !important;
    box-shadow: 0 4px 14px rgba(100, 116, 139, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.bazeh-dashboard-card--tier-silver:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border-color: rgba(100, 116, 139, 0.35) !important;
}

/* Gold tier override */
.bazeh-dashboard-card--tier-gold::before {
    background: linear-gradient(90deg, #fbbf24 0%, #b45309 100%) !important;
}
.bazeh-dashboard-card--tier-gold .bazeh-dashboard-card-value {
    background: linear-gradient(135deg, #d97706 0%, #78350f 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.bazeh-dashboard-card--tier-gold .bazeh-dashboard-card-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%) !important;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.bazeh-dashboard-card--tier-gold:hover {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-color: rgba(180, 83, 9, 0.35) !important;
}

/* Bronze tier override */
.bazeh-dashboard-card--tier-bronze::before {
    background: linear-gradient(90deg, #d97706 0%, #7c2d12 100%) !important;
}
.bazeh-dashboard-card--tier-bronze .bazeh-dashboard-card-value {
    background: linear-gradient(135deg, #a16207 0%, #7c2d12 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.bazeh-dashboard-card--tier-bronze .bazeh-dashboard-card-btn {
    background: linear-gradient(135deg, #d97706 0%, #7c2d12 100%) !important;
    box-shadow: 0 4px 14px rgba(124, 45, 18, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.bazeh-dashboard-card--tier-bronze:hover {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
    border-color: rgba(124, 45, 18, 0.35) !important;
}

/* === Affiliate Dashboard Widgets ============================== */
/* Sits under the customer widgets, separated by a labeled divider.
   Uses the same card skeleton so alignment/spacing stays perfect,
   but each card carries its own accent gradient so the section
   reads as a distinct "affiliate" block at a glance. */

.bazeh-dashboard-divider {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 28px 0 16px !important;
    color: #6b7280 !important;
    font-family: 'Vazirmatn', sans-serif !important;
}
.bazeh-dashboard-divider__line {
    flex: 1 !important;
    height: 1px !important;
    background: linear-gradient(90deg, rgba(37,99,235,0) 0%, #cbd5e1 50%, rgba(37,99,235,0) 100%) !important;
}
.bazeh-dashboard-divider__label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    white-space: nowrap !important;
}

.bazeh-dashboard-cards--affiliate { margin-top: 0 !important; }

/* Bazeh Sliders [bazeh_recently_viewed_panel] — below affiliate KPIs when present */
.bazeh-dashboard-recent-viewed {
    margin-top: 28px;
}

/* Swiper nav: neutralize theme/Woo `button` borders (red square frames) */
.bazeh-panel .bazeh-dashboard-recent-viewed button.bzh-nav {
    appearance: none !important;
    -webkit-appearance: none !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    outline: none !important;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.12),
        0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

/* 1) Payout card — greenish (money) */
.bazeh-dashboard-card--aff-payout {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%) !important;
    border-color: rgba(16, 185, 129, 0.22) !important;
}
.bazeh-dashboard-card--aff-payout::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%) !important;
}
.bazeh-dashboard-card--aff-payout .bazeh-dashboard-card-value {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.bazeh-dashboard-card--aff-payout .bazeh-dashboard-card-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 2) Clicks card — blue (traffic) */
.bazeh-dashboard-card--aff-clicks {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%) !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
}
.bazeh-dashboard-card--aff-clicks::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%) !important;
}
.bazeh-dashboard-card--aff-clicks .bazeh-dashboard-card-value {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.bazeh-dashboard-card--aff-clicks .bazeh-dashboard-card-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 3) Earned card — purple (reward) */
.bazeh-dashboard-card--aff-earned {
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%) !important;
    border-color: rgba(139, 92, 246, 0.22) !important;
}
.bazeh-dashboard-card--aff-earned::before {
    background: linear-gradient(90deg, #a855f7 0%, #7c3aed 100%) !important;
}
.bazeh-dashboard-card--aff-earned .bazeh-dashboard-card-value {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.bazeh-dashboard-card--aff-earned .bazeh-dashboard-card-btn {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 4) Tier card — matches affiliate tier key: bronze/silver/gold/platinum */
.bazeh-dashboard-card--aff-tier {
    background: linear-gradient(135deg, #fff7ed 0%, #fefce8 100%) !important;
    border-color: rgba(217, 119, 6, 0.22) !important;
}
.bazeh-dashboard-card--aff-tier::before {
    background: linear-gradient(90deg, #d97706 0%, #b45309 100%) !important;
}
.bazeh-dashboard-card--aff-tier .bazeh-dashboard-card-btn {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.bazeh-dashboard-card--aff-tier-silver::before   { background: linear-gradient(90deg, #94a3b8 0%, #475569 100%) !important; }
.bazeh-dashboard-card--aff-tier-silver .bazeh-dashboard-card-btn   { background: linear-gradient(135deg, #94a3b8 0%, #475569 100%) !important; }
.bazeh-dashboard-card--aff-tier-gold::before     { background: linear-gradient(90deg, #eab308 0%, #a16207 100%) !important; }
.bazeh-dashboard-card--aff-tier-gold .bazeh-dashboard-card-btn     { background: linear-gradient(135deg, #eab308 0%, #a16207 100%) !important; }
.bazeh-dashboard-card--aff-tier-platinum::before { background: linear-gradient(90deg, #60a5fa 0%, #1e40af 100%) !important; }
.bazeh-dashboard-card--aff-tier-platinum .bazeh-dashboard-card-btn { background: linear-gradient(135deg, #60a5fa 0%, #1e40af 100%) !important; }

/* Mobile tightening */
@media (max-width: 640px) {
    .bazeh-dashboard-divider { margin: 22px 0 12px !important; gap: 10px !important; }
    .bazeh-dashboard-divider__label { font-size: 12px !important; padding: 5px 10px !important; }
}

/* === Table Controls (Sort & Pagination) === */
/* ══════════════════════════════════════════════════════════════════
   Table toolbar — left: icon + title + record count, right: sort.
   Designed to feel like a proper data-table chrome rather than an
   empty strip with just a dropdown. The info block fills the free
   space so the bar reads nicely on both mobile and desktop.
   ══════════════════════════════════════════════════════════════════ */
.bazeh-table-controls {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(59, 130, 246, 0.18) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.bazeh-table-controls__info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.bazeh-table-controls__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px -6px rgba(59, 130, 246, 0.6) !important;
}

.bazeh-table-controls__text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.3 !important;
    min-width: 0 !important;
}

.bazeh-table-controls__text strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.bazeh-table-controls__count {
    font-size: 12.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
}

.bazeh-table-sort {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.bazeh-table-sort label {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e40af !important;
    white-space: nowrap !important;      /* keeps "مرتب‌سازی:" on one line */
    flex-shrink: 0 !important;
}

.bazeh-select-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.bazeh-sort-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding: 9px 36px 9px 16px !important;   /* extra right padding reserves space for the custom caret in RTL */
    border-radius: 12px !important;
    border: 1.5px solid rgba(59, 130, 246, 0.25) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease !important;
    font-family: inherit !important;
    min-width: 180px !important;
}

.bazeh-sort-select:hover {
    border-color: rgba(59, 130, 246, 0.55) !important;
    background: #f8fbff !important;
}

.bazeh-sort-select:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
}

.bazeh-select-caret {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;                /* RTL-aware: caret on the left (visual right of text) */
    transform: translateY(-50%) !important;
    color: #3b82f6 !important;
    pointer-events: none !important;
}

.bazeh-pagination-info {
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* === Pagination === */
.bazeh-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 32px !important;
    flex-wrap: wrap !important;
}

.bazeh-pagination-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 2px solid rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2) !important;
    touch-action: manipulation !important;
    user-select: none !important;
}

.bazeh-pagination-link:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

.bazeh-pagination-current {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    cursor: default !important;
}

.bazeh-pagination-current:hover {
    transform: none !important;
    box-shadow: none !important;
}

.bazeh-pagination-dots {
    color: #9ca3af !important;
    padding: 0 8px !important;
    font-weight: 600 !important;
}

.bazeh-pagination-prev,
.bazeh-pagination-next {
    min-width: 80px !important;
}

/* ══════════════════════════════════════════════════════════════════
   AJAX Loading State — dim-backdrop overlay + centered ring spinner.

   Both pseudo-elements are kept in the DOM permanently (opacity 0)
   and only FADE IN / OUT via class toggle. This avoids the old
   "flash a blank white area" bug where the overlay was removed
   before the new content was painted. The JS side now calls
   `removeClass('bazeh-loading')` AFTER injecting the new HTML, so
   the content is already there when the overlay fades out.
   ══════════════════════════════════════════════════════════════════ */
.bazeh-orders-content,
.bazeh-panel-content {
    position: relative !important;
    min-height: 200px !important;
}

.bazeh-orders-content::before,
.bazeh-panel-content::before,
.bazeh-orders-content::after,
.bazeh-panel-content::after {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.28s ease, visibility 0.28s ease !important;
}

.bazeh-orders-content.bazeh-loading,
.bazeh-panel-content.bazeh-loading {
    pointer-events: none !important;
}

/* Dim backdrop — sits on top of the content while loading, blurring
   the stale rows behind it for a crisp "swap in progress" feel. */
.bazeh-orders-content.bazeh-loading::before,
.bazeh-panel-content.bazeh-loading::before {
    content: '' !important;
    position: absolute !important;
    inset: -6px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 5 !important;
    border-radius: 14px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dual-ring spinner — outer blue ring + inner counter-rotating
   accent drawn with a conic gradient. Using an inline conic gradient
   gives us a nice trailing-fade look without needing a second DOM
   element or SVG file. */
.bazeh-orders-content.bazeh-loading::after,
.bazeh-panel-content.bazeh-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 58px !important;
    height: 58px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background:
        conic-gradient(from 90deg, rgba(59, 130, 246, 0) 0deg, #3b82f6 270deg, #1e40af 360deg) !important;
    -webkit-mask: radial-gradient(circle, transparent 19px, #000 20px) !important;
            mask: radial-gradient(circle, transparent 19px, #000 20px) !important;
    z-index: 6 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
    animation: bazeh-spin-loader 0.9s linear infinite !important;
    will-change: transform !important;
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.55) !important;
}

@keyframes bazeh-spin-loader {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* While loading, fade the stale content slightly so it's obvious the
   view is in a transitional state. No transforms / no pixel-size
   overrides — the old implementation zeroed out widths/radii which
   broke horizontal scroll on mobile. */
.bazeh-orders-content.bazeh-loading > *,
.bazeh-panel-content.bazeh-loading > * {
    opacity: 0.55 !important;
    transition: opacity 0.28s ease !important;
    pointer-events: none !important;
    user-select: none !important;
}

/* === Logout Popup === */
.bazeh-logout-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.bazeh-logout-popup-overlay.active {
    opacity: 1 !important;
}

.bazeh-logout-popup {
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-width: 480px !important;
    width: 90% !important;
    transform: scale(0.9) translateY(20px) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.bazeh-logout-popup-overlay.active .bazeh-logout-popup {
    transform: scale(1) translateY(0) !important;
}

.bazeh-logout-popup-header {
    padding: 24px 28px !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 64, 175, 0.08) 100%) !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15) !important;
}

.bazeh-logout-popup-header h3 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1e40af !important;
    text-align: right !important;
}

.bazeh-logout-popup-body {
    padding: 28px !important;
}

.bazeh-logout-popup-body p {
    margin: 0 !important;
    font-size: 15px !important;
    color: #374151 !important;
    line-height: 1.8 !important;
    text-align: right !important;
}

.bazeh-logout-popup-footer {
    padding: 20px 28px !important;
    background: #f8fafc !important;
    border-top: 1px solid rgba(59, 130, 246, 0.1) !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

.bazeh-logout-cancel {
    padding: 12px 24px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 2px solid rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.bazeh-logout-cancel:hover {
    background: #f0f9ff !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
    transform: translateY(-2px) !important;
}

.bazeh-logout-confirm {
    padding: 12px 24px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.bazeh-logout-confirm:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* === Table Wrapper + horizontal scroll (همه جداول پنل) === */
.bazeh-scroll-x,
.bazeh-table-wrapper,
.bazeh-order-products-wrapper,
.bazeh-panel .bazeh-np-table-scroll,
.bazeh-panel .bazeh-np-suggest-table-wrap,
.bazeh-panel .bzh-mkt-dash-ref__scroll {
    position: relative;
    padding-bottom: 6px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 rgba(148, 163, 184, 0.25);
}

.bazeh-scroll-x::-webkit-scrollbar,
.bazeh-table-wrapper::-webkit-scrollbar,
.bazeh-order-products-wrapper::-webkit-scrollbar,
.bazeh-panel .bazeh-np-table-scroll::-webkit-scrollbar,
.bazeh-panel .bazeh-np-suggest-table-wrap::-webkit-scrollbar,
.bazeh-panel .bzh-mkt-dash-ref__scroll::-webkit-scrollbar {
    height: 10px;
}

.bazeh-scroll-x::-webkit-scrollbar-track,
.bazeh-table-wrapper::-webkit-scrollbar-track,
.bazeh-order-products-wrapper::-webkit-scrollbar-track,
.bazeh-panel .bazeh-np-table-scroll::-webkit-scrollbar-track,
.bazeh-panel .bazeh-np-suggest-table-wrap::-webkit-scrollbar-track,
.bazeh-panel .bzh-mkt-dash-ref__scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    margin: 0 4px;
}

.bazeh-scroll-x::-webkit-scrollbar-thumb,
.bazeh-table-wrapper::-webkit-scrollbar-thumb,
.bazeh-order-products-wrapper::-webkit-scrollbar-thumb,
.bazeh-panel .bazeh-np-table-scroll::-webkit-scrollbar-thumb,
.bazeh-panel .bazeh-np-suggest-table-wrap::-webkit-scrollbar-thumb,
.bazeh-panel .bzh-mkt-dash-ref__scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

/* لبهٔ محو + راهنمای اسکرول (موبایل) */
.bazeh-scroll-x__fade {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 52px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 15%, transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.bazeh-scroll-x.is-scrollable .bazeh-scroll-x__fade {
    opacity: 1;
    animation: bazeh-scroll-edge-pulse 2.4s ease-in-out infinite;
}

.bazeh-scroll-x.is-scrolled .bazeh-scroll-x__fade,
.bazeh-scroll-x.is-scroll-end .bazeh-scroll-x__fade {
    opacity: 0;
    animation: none;
}

.bazeh-scroll-x__hint {
    position: absolute;
    inset-inline-start: 10px;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bazeh-scroll-x.is-scrollable .bazeh-scroll-x__hint {
    opacity: 1;
    transform: translateX(0);
    animation: bazeh-scroll-hint-bob 2s ease-in-out infinite;
}

.bazeh-scroll-x.is-scrolled .bazeh-scroll-x__hint,
.bazeh-scroll-x.is-scroll-end .bazeh-scroll-x__hint {
    opacity: 0;
    animation: none;
    pointer-events: none;
}

.bazeh-scroll-x__hint-arrow {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    animation: bazeh-scroll-arrow-nudge 1.5s ease-in-out infinite;
}

@keyframes bazeh-scroll-edge-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes bazeh-scroll-hint-bob {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

@keyframes bazeh-scroll-arrow-nudge {
    0%, 100% { transform: translateX(0); opacity: 0.75; }
    50% { transform: translateX(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .bazeh-scroll-x__fade,
    .bazeh-scroll-x__hint,
    .bazeh-scroll-x__hint-arrow {
        animation: none !important;
    }
}

/* === Modern Tables === */
.bazeh-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin-top: 28px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    table-layout: fixed !important;
}

.bazeh-table th,
.bazeh-table td {
    padding: 18px 20px !important;
    text-align: right !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.bazeh-table th:nth-child(1),
.bazeh-table td:nth-child(1) {
    width: 15% !important;
}

.bazeh-table th:nth-child(2),
.bazeh-table td:nth-child(2) {
    width: 15% !important;
}

.bazeh-table th:nth-child(3),
.bazeh-table td:nth-child(3) {
    width: 20% !important;
}

.bazeh-table th:nth-child(4),
.bazeh-table td:nth-child(4) {
    width: 25% !important;
    text-align: right !important;
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', 'IRANSansX', Tahoma, system-ui, -apple-system, sans-serif !important;
}

.bazeh-price-cell {
    direction: rtl !important;
    text-align: right !important;
}

.bazeh-price-cell .woocommerce-Price-amount {
    direction: rtl !important;
    display: inline-block !important;
    unicode-bidi: embed !important;
}

.bazeh-price-cell .woocommerce-Price-currencySymbol {
    margin-right: 4px !important;
}

.bazeh-table th:nth-child(5),
.bazeh-table td:nth-child(5) {
    width: 15% !important;
    text-align: center !important;
}

.bazeh-table th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(30, 64, 175, 0.08) 100%) !important;
    font-weight: 700 !important;
    color: #1e40af !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2) !important;
}

.bazeh-table tbody tr {
    transition: background-color 0.2s ease !important;
    position: relative !important;
    background: #ffffff !important;
    will-change: background-color !important;
}

.bazeh-table tbody tr td:first-child {
    border-right: 4px solid transparent !important;
    transition: border-color 0.2s ease !important;
}

.bazeh-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(30, 64, 175, 0.04) 100%) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1) !important;
}

.bazeh-table tbody tr:hover td:first-child {
    border-right-color: #3b82f6 !important;
}

.bazeh-table tbody tr:hover td {
    color: #1e40af !important;
}

.bazeh-table tbody tr:last-child td {
    border-bottom: none !important;
}

.bazeh-table tbody td {
    color: #374151 !important;
    font-weight: 500 !important;
}

.bazeh-table-inner {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    width: 100% !important;
}

.bazeh-accordion-body .bazeh-table-inner {
    padding: 0 !important;
    margin: 0 !important;
}

.bazeh-table-inner th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 64, 175, 0.08) 100%) !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.bazeh-table-inner tbody tr {
    background: transparent !important;
}

.bazeh-table-inner tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(30, 64, 175, 0.04) 100%) !important;
}

.bazeh-table-inner tbody tr:hover td {
    color: #1e40af !important;
}

.bazeh-table-inner tbody tr:hover .bazeh-button-small {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4) !important;
}

.bazeh-table-inner td {
    padding: 12px 16px !important;
    vertical-align: middle !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.bazeh-table-inner td:first-child {
    white-space: normal !important;
    max-width: 300px !important;
    min-width: 150px !important;
}

.bazeh-table-inner td:nth-child(2),
.bazeh-table-inner td:nth-child(3) {
    white-space: nowrap !important;
    text-align: center !important;
}

.bazeh-table-inner td:last-child {
    width: auto !important;
    text-align: center !important;
    padding: 8px 16px !important;
    white-space: nowrap !important;
}

.bazeh-table-inner .bazeh-button-small {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 8px 20px !important;
    background: linear-gradient(135deg, #3b82f6 0%, rgba(59, 130, 246, 0.95) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3) !important;
    border: none !important;
}

.bazeh-table-inner .bazeh-button-small:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* === Table Cell Enhancements === */
.bazeh-table td:first-child {
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.bazeh-table .bazeh-link {
    color: #3b82f6 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.bazeh-table .bazeh-link:hover {
    color: #1e40af !important;
    text-decoration: underline !important;
}

.bazeh-table tbody tr:hover .bazeh-link {
    color: #1e40af !important;
}

/* === Download Button in Tables === */
.bazeh-table .bazeh-button-small {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    background: linear-gradient(135deg, #3b82f6 0%, rgba(59, 130, 246, 0.95) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3) !important;
}

.bazeh-table .bazeh-button-small:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4) !important;
}

.bazeh-table tbody tr:hover .bazeh-button-small {
    transform: translateY(-2px) scale(1.05) !important;
}

/* === Empty State === */
.bazeh-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--bazeh-text-light);
}

.bazeh-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.bazeh-empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bazeh-text);
    margin-bottom: 10px;
}

.bazeh-empty-state-desc {
    font-size: 15px;
    line-height: 1.8;
}

/* === Focus States for Accessibility === */
.bazeh-accordion-header:focus-visible {
    outline: 3px solid var(--bazeh-orange);
    outline-offset: 2px;
    border-radius: 20px;
}

.bazeh-button:focus-visible,
.bazeh-button-small:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.5) !important;
    outline-offset: 3px !important;
}

.bazeh-panel-nav li a:focus-visible {
    outline: 3px solid var(--bazeh-orange);
    outline-offset: 2px;
}

.bazeh-form-row input:focus-visible {
    outline: 3px solid rgba(240, 88, 35, 0.3);
    outline-offset: 2px;
}

/* === Loading States === */
.bazeh-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(240, 88, 35, 0.2);
    border-top-color: var(--bazeh-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Prevent generic loading class from affecting tables */
.bazeh-table .bazeh-loading,
.bazeh-table-wrapper .bazeh-loading,
.bazeh-table tbody tr .bazeh-loading,
.bazeh-table tbody tr td .bazeh-loading {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    vertical-align: middle !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Smooth Scroll Behavior === */
html {
    scroll-behavior: smooth;
}

/* === Print Styles === */
@media print {
    .bazeh-panel-sidebar {
        display: none;
    }

    .bazeh-panel-content {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .bazeh-button,
    .bazeh-button-small {
        display: none;
    }
}

/* === Alerts === */
.bazeh-alert {
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.8;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.bazeh-alert::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.3;
}

.bazeh-alert ul {
    margin: 10px 0 0 0;
    padding-right: 24px;
}

.bazeh-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.bazeh-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* === Order Details === */
/* === Order Details Page === */
.bazeh-order-details {
    margin-top: 32px !important;
}

.bazeh-order-details h3 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1e40af !important;
    margin: 0 0 24px 0 !important;
    padding-bottom: 16px !important;
    border-bottom: 3px solid rgba(59, 130, 246, 0.2) !important;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.bazeh-order-details h4 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 32px 0 20px 0 !important;
}

/* Order Meta Card */
.bazeh-order-meta-card {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%) !important;
    padding: 24px 28px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    margin-bottom: 32px !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08) !important;
}

.bazeh-order-meta-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 1 !important;
    min-width: 150px !important;
}

.bazeh-order-meta-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.bazeh-order-meta-value {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
}

.bazeh-order-status {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    width: fit-content !important;
}

.bazeh-order-total {
    color: #1e40af !important;
    font-size: 18px !important;
}

/* Order Products Wrapper */
.bazeh-order-products-wrapper {
    margin-top: 24px !important;
}

.bazeh-order-products-table {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
}

.bazeh-order-products-table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
}

.bazeh-order-products-table thead th {
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 16px !important;
    text-align: right !important;
    font-size: 15px !important;
}

.bazeh-order-products-table tbody tr {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1) !important;
    transition: all 0.2s ease !important;
}

.bazeh-order-products-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.03) 100%) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08) !important;
}

.bazeh-order-product-cell {
    padding: 16px !important;
}

.bazeh-order-product-info {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.bazeh-order-product-image-link {
    display: block !important;
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 2px solid rgba(59, 130, 246, 0.15) !important;
    transition: all 0.3s ease !important;
    background: #f9fafb !important;
}

.bazeh-order-product-image-link:hover {
    border-color: #3b82f6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

.bazeh-order-product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.bazeh-order-product-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.bazeh-order-product-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    display: block !important;
    transition: color 0.2s ease !important;
}

.bazeh-order-product-name:hover {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

.bazeh-order-quantity-cell {
    text-align: center !important;
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 15px !important;
}

.bazeh-order-total-cell {
    font-weight: 700 !important;
    color: #1e40af !important;
    font-size: 16px !important;
}

/* Back Link */
.bazeh-order-details + p {
    margin-top: 32px !important;
    margin-bottom: 0 !important;
}

.bazeh-order-details + p a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    transition: all 0.3s ease !important;
}

.bazeh-order-details + p a:hover {
    color: #1e40af !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%) !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

/* === Modern Accordion Downloads === */
.bazeh-accordion {
    margin-top: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

.bazeh-accordion-item {
    width: 100% !important;
    border-radius: 18px !important;
    border: 1px solid var(--bazeh-border) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
    overflow: hidden !important;
    box-shadow: var(--bazeh-shadow-soft) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bazeh-accordion-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%) !important;
    transform: scaleY(0) !important;
    transform-origin: bottom !important;
    transition: transform 0.4s ease !important;
    z-index: 1 !important;
}

.bazeh-accordion-item:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    transform: translateY(-2px) !important;
}

.bazeh-accordion-item.active {
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    background: linear-gradient(135deg, #e0f2fe 0%, #cbd5e1 100%) !important;
}

.bazeh-accordion-item.active::before {
    transform: scaleY(1) !important;
}

.bazeh-accordion-header {
    width: 100% !important;
    text-align: right !important;
    padding: 18px 22px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    gap: 16px !important;
    min-height: 64px !important;
    margin: 0 !important;
}

.bazeh-accordion-header::after {
    content: '▼' !important;
    font-size: 12px !important;
    color: #4b5563 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

.bazeh-accordion-item.active .bazeh-accordion-header::after {
    transform: rotate(180deg) !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
}

.bazeh-accordion-header:hover {
    background: rgba(59, 130, 246, 0.05) !important;
}

.bazeh-accordion-item:hover .bazeh-accordion-header {
    color: #1e40af !important;
}

.bazeh-accordion-product-image {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    margin-left: 16px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f0f9ff !important;
    border: 2px solid rgba(59, 130, 246, 0.2) !important;
    transition: all 0.3s ease !important;
}

.bazeh-accordion-product-image:hover {
    border-color: #3b82f6 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.bazeh-accordion-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.bazeh-accordion-header-title {
    flex: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding-left: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    transition: color 0.3s ease !important;
    line-height: 1.6 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    max-height: 3.2em !important;
}

.bazeh-accordion-item.active .bazeh-accordion-header-title {
    color: #1e40af !important;
    font-weight: 700 !important;
}

.bazeh-accordion-item:hover .bazeh-accordion-header-title {
    color: #1e40af !important;
}

.bazeh-accordion-header-meta {
    flex-shrink: 0 !important;
    font-size: 13px !important;
    color: #374151 !important;
    margin-right: 0 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 64, 175, 0.08) 100%) !important;
    padding: 6px 14px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.bazeh-accordion-item.active .bazeh-accordion-header-meta {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.bazeh-accordion-item:hover .bazeh-accordion-header-meta {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(30, 64, 175, 0.12) 100%) !important;
    color: #1e40af !important;
}

.bazeh-accordion-body {
    display: none;
    padding: 0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-top: 1px solid rgba(59, 130, 246, 0.1) !important;
    animation: accordionSlideDown 0.3s ease-out !important;
    margin: 0 !important;
    width: 100% !important;
}

.bazeh-accordion-item.active .bazeh-accordion-body {
    display: block !important;
}

@keyframes accordionSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bazeh-accordion-item.active .bazeh-accordion-body {
    display: block;
}

/* === Password Input Row ===
 * Desktop (>= 901px): input + «نمایش» + «کپی» on a single row.
 * Tablet / mobile (<= 900px): the buttons squeeze the input down to
 * ~30px wide — totally unusable. Stack the input on its own line and
 * drop both buttons into a separate 2-column grid below it so the
 * password field always has full width to type / paste into, and
 * each action button gets 50% of the remaining width.
 */
.bazeh-password-input-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.bazeh-password-input-row input {
    flex: 1 1 240px;
    min-width: 0;
}

.bazeh-password-input-row .bazeh-button-small {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .bazeh-password-input-row {
        gap: 8px;
    }
    .bazeh-password-input-row input {
        flex: 1 1 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .bazeh-password-input-row .bazeh-button-small {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* === Responsive === */
/* === Mobile Menu Toggle Button === */
.bazeh-mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

.bazeh-mobile-menu-toggle span {
    width: 24px !important;
    height: 3px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.bazeh-mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px) !important;
}

.bazeh-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
}

.bazeh-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px) !important;
}

.bazeh-mobile-menu-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
}

.bazeh-mobile-menu-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.bazeh-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
}

/* Ensure body is normal when menu is closed */
body:not(.bazeh-menu-open) {
    overflow: auto !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
}

/* Ensure sidebar is above overlay and clickable. */
.bazeh-panel-sidebar {
    pointer-events: auto !important;
}

/* Global kill-switch for any vertical scroll inside the sidebar. The
 * user explicitly does not want the right-hand column to ever show its
 * own scrollbar — the normal page scroll is enough. */
.bazeh-panel-sidebar,
.bazeh-panel-sidebar * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.bazeh-panel-sidebar::-webkit-scrollbar,
.bazeh-panel-sidebar *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.bazeh-panel-sidebar {
    overflow: visible !important;
    max-height: none !important;
}

/* When menu is open, allow clicks on sidebar but block content area */
body.bazeh-menu-open .bazeh-panel-content {
    pointer-events: none !important;
}

body.bazeh-menu-open .bazeh-panel-sidebar {
    pointer-events: auto !important;
}

/* === Mobile Tabs Bar (Always Visible) === */
.bazeh-mobile-tabs-bar {
    display: none !important;
}

.bazeh-mobile-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    background: #f0f9ff !important;
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    flex-shrink: 0 !important;
}

.bazeh-mobile-tab:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(30, 64, 175, 0.08) 100%) !important;
    color: #1e40af !important;
    transform: translateY(-2px) !important;
}

.bazeh-mobile-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* موبایل/تم والد: لینک‌های تب تا قبل از لود کامل CSS تم، رنگ روشن نگیرند */
.bazeh-panel a.bazeh-mobile-tab:not(.active),
.bazeh-panel a.bazeh-mobile-tab:not(.active) .bazeh-nav-label {
    color: #1e40af !important;
    -webkit-text-fill-color: #1e40af !important;
}
.bazeh-panel a.bazeh-mobile-tab:not(.active) .bazeh-nav-icon {
    color: #2563eb !important;
}
.bazeh-panel a.bazeh-mobile-tab.active .bazeh-nav-label {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.bazeh-panel a.bazeh-mobile-tab.active .bazeh-nav-icon {
    color: #ffffff !important;
}

/* Sidebar + mobile nav icons.
 * Inline SVGs get a predictable box so the flex row stays vertically
 * centred whatever the icon's own proportions are. Using currentColor
 * for stroke means the existing hover/.active colour rules Just Work
 * without separate per-state fills. */
.bazeh-nav-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    color: currentColor !important;
}

.bazeh-nav-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    stroke: currentColor !important;
}

.bazeh-panel-nav li a .bazeh-nav-label,
.bazeh-mobile-tab .bazeh-nav-label {
    display: inline !important;
}

.bazeh-mobile-tab {
    gap: 6px !important;
}

.bazeh-mobile-tab .bazeh-nav-icon {
    width: 18px !important;
    height: 18px !important;
}

/* === Tablet (1024px and below) === */
@media (max-width: 1024px) {
    .bazeh-panel {
        flex-direction: column !important;
        gap: 24px !important;
        padding: 0 20px !important;
    }

    .bazeh-panel-content,
    .bazeh-orders-content {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .bazeh-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .bazeh-table {
        table-layout: auto !important;
        min-width: 520px !important;
    }

    .bazeh-panel-sidebar {
        width: 100% !important;
        position: static !important;
        max-height: none !important;
    }

    .bazeh-panel-content {
        width: 100% !important;
    }

    .bazeh-dashboard-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .bazeh-table-controls {
        flex-direction: column !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    .bazeh-table-controls__info {
        justify-content: flex-start !important;
    }

    .bazeh-table-sort {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .bazeh-select-wrap {
        flex: 1 1 auto !important;
    }

    .bazeh-sort-select {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* === Auth Forms - Stack on smaller tablets and mobile only === */
@media (max-width: 900px) {
    .bazeh-auth-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* Ensure auth grid is 2 columns on desktop (above 900px); SMS layout uses modifier for 3 cols */
@media (min-width: 901px) {
    .bazeh-auth-grid:not(.bazeh-auth-grid--sms) {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px !important;
    }
    .bazeh-auth-grid--sms {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px !important;
    }
}

@media (min-width: 1200px) {
    .bazeh-auth-grid--sms {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* === Mobile (768px and below) === */
@media (max-width: 768px) {
    /* Completely hide mobile menu toggle and overlay */
    .bazeh-mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
    }

    .bazeh-mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Completely hide sidebar on mobile */
    .bazeh-panel-sidebar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Full-bleed mobile layout: no horizontal page sway from negative margins
     * or overflowing children (e.g. Swiper, tooltips). */
    .bazeh-panel {
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 auto 24px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: clip !important;
        box-sizing: border-box !important;
    }

    /* Mobile: نوار ناوبری — حالت گروهی (ارتفاع کمتر از لیست تخت) */
    .bazeh-mobile-tabs-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        position: relative !important;
        z-index: 1 !important;
        background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
        border-bottom: 2px solid rgba(59, 130, 246, 0.15) !important;
        padding: 12px 16px !important;
        margin: 0 0 24px 0 !important;
        gap: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .bazeh-mobile-tabs-bar--grouped .bazeh-nav-accordion--mobile {
        width: 100% !important;
        border-radius: 12px !important;
        background: #fff !important;
        border: 1px solid rgba(59, 130, 246, 0.12) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
        overflow: hidden !important;
    }

    .bazeh-mobile-tabs-bar--grouped .bazeh-nav-accordion--mobile.bazeh-nav-accordion--ticket-reply:not([open]) {
        background: linear-gradient(135deg, rgba(248, 253, 250, 1) 0%, rgba(239, 246, 255, 1) 100%) !important;
        border-color: rgba(16, 185, 129, 0.22) !important;
    }
    .bazeh-mobile-tabs-bar--grouped .bazeh-nav-accordion--mobile.bazeh-nav-accordion--ticket-reply:not([open]) > .bazeh-nav-accordion__summary {
        animation: bzh-support-ticket-pulse 2.8s ease-in-out infinite !important;
    }

    .bazeh-mobile-tabs-bar--grouped .bazeh-nav-accordion__summary {
        padding: 12px 14px !important;
        font-size: 13px !important;
        gap: 8px !important;
    }
    .bazeh-mobile-tabs-bar--grouped .bazeh-nav-accordion__summary-end {
        margin-inline-start: auto !important;
        flex-shrink: 0 !important;
        gap: 6px !important;
    }
    .bazeh-mobile-tabs-bar--grouped .bazeh-nav-accordion__summary-badges {
        margin-inline-start: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        flex-shrink: 0 !important;
    }
    .bazeh-mobile-tabs-bar--grouped .bazeh-nav-accordion__summary > .bazeh-nav-label {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .bazeh-mobile-tabs-bar--grouped .bazeh-nav-accordion__panel {
        padding: 4px 6px 8px !important;
        background: rgba(248, 250, 252, 0.9) !important;
        border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
    }

    .bazeh-mobile-tabs-bar--grouped .bazeh-mobile-tab--sub {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 10px 12px !important;
        margin: 0 0 4px 0 !important;
        border-radius: 10px !important;
        font-size: 13px !important;
        text-align: right !important;
        box-sizing: border-box !important;
        min-height: 0 !important;
    }

    .bazeh-mobile-tabs-bar--grouped .bazeh-mobile-tab--dashboard,
    .bazeh-mobile-tabs-bar--grouped .bazeh-mobile-tab--shop {
        width: 100% !important;
    }
    
    /* Hide any br tags inside tabs bar */
    .bazeh-mobile-tabs-bar br {
        display: none !important;
    }
    
    /* Remove any whitespace/newlines that might cause issues */
    .bazeh-mobile-tabs-bar > * {
        display: block !important;
    }
    
    .bazeh-mobile-tabs-bar::-webkit-scrollbar {
        display: none !important;
    }

    .bazeh-mobile-tab {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        border-radius: 12px !important;
        background: #f0f9ff !important;
        color: #3b82f6 !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        transition: all 0.3s ease !important;
        border: 2px solid transparent !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    .bazeh-mobile-tab-logout {
        background: #fef2f2 !important;
        color: #dc2626 !important;
    }
    
    .bazeh-mobile-tab-logout:hover {
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.12) 0%, rgba(185, 28, 28, 0.08) 100%) !important;
        color: #b91c1c !important;
    }

    .bazeh-mobile-tab:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(30, 64, 175, 0.08) 100%) !important;
        color: #1e40af !important;
        transform: translateY(-2px) !important;
    }

    .bazeh-mobile-tab.active {
        background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
        color: #ffffff !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    }

    .bazeh-panel-content {
        --bzh-inline: 16px;
        padding: 24px var(--bzh-inline) !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Full-bleed dark medals band to the screen edge (cancels content padding). */
    .bazeh-panel-content .bzh-medals-card {
        margin-left: calc(-1 * var(--bzh-inline)) !important;
        margin-right: calc(-1 * var(--bzh-inline)) !important;
        width: calc(100% + 2 * var(--bzh-inline)) !important;
        max-width: none !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    .bazeh-panel-content h2 {
        font-size: 28px !important;
        margin-bottom: 24px !important;
        padding-bottom: 16px !important;
        /* گرادیان + text-fill شفاف تا قبل از رندر کامل گاهی «سفید/نامرئی» می‌شود */
        background: none !important;
        -webkit-background-clip: border-box !important;
        background-clip: border-box !important;
        -webkit-text-fill-color: #1e3a8a !important;
        color: #1e3a8a !important;
        animation: none !important;
    }

    .bazeh-panel-content h2::after {
        width: 60px !important;
        height: 3px !important;
    }

    .bazeh-welcome-message {
        font-size: 16px !important;
        margin: -12px 0 32px 0 !important;
        padding: 16px 20px !important;
    }

    .bazeh-panel-content h3 {
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }

    .bazeh-panel-auth {
        padding: 28px 20px !important;
    }

    .bazeh-auth-card {
        padding: 24px 20px !important;
    }

    .bazeh-panel-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .bazeh-panel-nav li {
        margin-bottom: 0 !important;
    }

    .bazeh-panel-nav li a {
        font-size: 14px !important;
        padding: 14px 16px !important;
    }

    .bazeh-dashboard-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .bazeh-dashboard-card {
        padding: 18px 16px !important;
        min-height: 150px !important;
    }

    .bazeh-dashboard-card-value {
        font-size: 26px !important;
    }

    .bazeh-last-order-date {
        font-size: 20px !important;
    }

    .bazeh-product-link {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }

    .bazeh-profile-form-grid,
    .bazeh-profile-form-grid-password {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    /* جداول: اسکرول افقی — ساختار جدول حفظ می‌شود */
    .bazeh-table-wrapper,
    .bazeh-order-products-wrapper,
    .bazeh-orders-content {
        overflow-x: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .bazeh-table,
    .bazeh-order-products-table {
        display: table !important;
        table-layout: auto !important;
        min-width: 580px !important;
        width: max-content !important;
        margin-top: 0 !important;
    }

    .bazeh-order-products-table {
        min-width: 520px !important;
    }

    .bazeh-table thead,
    .bazeh-table tbody,
    .bazeh-order-products-table thead,
    .bazeh-order-products-table tbody {
        display: table-row-group !important;
    }

    .bazeh-table tr,
    .bazeh-order-products-table tr {
        display: table-row !important;
    }

    .bazeh-table th,
    .bazeh-table td,
    .bazeh-order-products-table th,
    .bazeh-order-products-table td {
        display: table-cell !important;
        white-space: nowrap !important;
    }

    .bazeh-order-product-cell {
        white-space: normal !important;
        min-width: 220px !important;
    }

    .bazeh-order-npv-subrow td {
        white-space: normal !important;
        line-height: 1.6 !important;
    }

    .bazeh-table tbody tr td::before,
    .bazeh-order-products-table tbody tr td::before {
        display: none !important;
        content: none !important;
    }

    .bazeh-table tbody tr {
        margin-bottom: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .bazeh-table tbody tr:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .bazeh-panel .bazeh-np-suggest-table.bazeh-np-table,
    .bazeh-panel .bazeh-np-table {
        min-width: 680px !important;
    }

    .bazeh-table-controls {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 14px !important;
        align-items: stretch !important;
    }

    .bazeh-table-controls__info {
        justify-content: flex-start !important;
    }

    .bazeh-table-controls__icon {
        width: 36px !important;
        height: 36px !important;
    }

    .bazeh-table-controls__text strong { font-size: 14px !important; }
    .bazeh-table-controls__count       { font-size: 12px !important; }

    .bazeh-table-sort {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .bazeh-select-wrap {
        flex: 1 1 auto !important;
    }

    .bazeh-sort-select {
        width: 100% !important;
        min-width: 0 !important;
    }

    .bazeh-pagination {
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-top: 24px !important;
    }

    .bazeh-pagination-link {
        min-width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
        padding: 0 10px !important;
    }

    .bazeh-pagination-prev,
    .bazeh-pagination-next {
        min-width: 70px !important;
}

.bazeh-accordion-header {
        padding: 16px 18px !important;
        font-size: 14px !important;
        min-height: auto !important;
        flex-wrap: wrap !important;
    }

.bazeh-accordion-product-image {
        width: 55px !important;
        height: 55px !important;
        margin-left: 14px !important;
    }

.bazeh-accordion-header-title {
        flex: 1 1 100% !important;
        margin-bottom: 8px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        padding-left: 14px !important;
    }

.bazeh-accordion-header-meta {
        margin-right: auto !important;
        font-size: 12px !important;
    }

    .bazeh-accordion-body {
        padding: 16px !important;
    }

    .bazeh-accordion-body {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .bazeh-table-inner {
        display: table !important;
        min-width: 480px !important;
        width: max-content !important;
    }

    .bazeh-table-inner tbody tr td::before {
        display: none !important;
        content: none !important;
    }

    /* Order Details Responsive */
    .bazeh-order-details h3 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
        padding-bottom: 12px !important;
    }

    .bazeh-order-details h4 {
        font-size: 20px !important;
        margin: 24px 0 16px 0 !important;
    }

    .bazeh-order-meta-card {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 20px !important;
    }

    .bazeh-order-meta-item {
        min-width: 100% !important;
    }

    .bazeh-order-product-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .bazeh-order-product-image-link {
        width: 100% !important;
        height: 200px !important;
        max-width: 200px !important;
    }

    .bazeh-order-products-table {
        font-size: 14px !important;
    }

    .bazeh-order-product-cell {
        padding: 12px !important;
    }

    .bazeh-order-details + p a {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
}

/* === Small Mobile (480px and below) === */
@media (max-width: 480px) {
    /* Completely hide mobile menu toggle */
    .bazeh-mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Hide sidebar completely */
    .bazeh-panel-sidebar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
    }

    .bazeh-mobile-tabs-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        position: relative !important;
        padding: 10px 12px !important;
        margin: 0 -12px 20px -12px !important;
        gap: 6px !important;
        width: calc(100% + 24px) !important;
    }

    .bazeh-mobile-tab {
        padding: 8px 12px !important;
        font-size: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .bazeh-panel {
        padding: 0 12px !important;
        margin: 0 auto 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .bazeh-panel-content {
        padding: 20px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .bazeh-panel-content {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    .bazeh-panel-content h2 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
        padding-bottom: 14px !important;
    }

    .bazeh-panel-content h2::after {
        width: 50px !important;
        height: 3px !important;
    }

    .bazeh-welcome-message {
        font-size: 15px !important;
        margin: -10px 0 28px 0 !important;
        padding: 14px 18px !important;
    }

    .bazeh-panel-content h3 {
        font-size: 18px !important;
        margin-bottom: 14px !important;
    }

    .bazeh-panel-auth-wrapper {
        padding: 30px 12px !important;
    }

    .bazeh-panel-auth {
        padding: 20px 16px !important;
        border-radius: 20px !important;
    }

    .bazeh-auth-title {
        font-size: 20px !important;
    }

    .bazeh-button,
    .bazeh-button-small {
        font-size: 13px !important;
        padding: 12px 20px !important;
        width: 100% !important;
    }

    .bazeh-dashboard-card {
        padding: 16px 14px !important;
        min-height: 140px !important;
    }

    .bazeh-dashboard-card-label {
        font-size: 12px !important;
    }

    .bazeh-dashboard-card-value {
        font-size: 22px !important;
    }

    .bazeh-last-order-date {
        font-size: 20px !important;
    }

    .bazeh-product-link {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    .bazeh-dashboard-card a {
        font-size: 12px !important;
    }

    .bazeh-accordion-header {
        padding: 14px 16px !important;
    }

    .bazeh-accordion-product-image {
        width: 50px !important;
        height: 50px !important;
        margin-left: 12px !important;
    }

    .bazeh-accordion-header-title {
        font-size: 13px !important;
        line-height: 1.4 !important;
        padding-left: 12px !important;
    }

    .bazeh-accordion-header-meta {
        font-size: 11px !important;
        padding: 4px 8px !important;
}

.bazeh-accordion-body {
        padding: 14px !important;
    }

    .bazeh-profile-form-grid,
    .bazeh-profile-form-grid-password {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .bazeh-form-row label {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .bazeh-form-row input[type="text"],
    .bazeh-form-row input[type="email"],
    .bazeh-form-row input[type="password"],
    .bazeh-form-row input[type="tel"] {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .bazeh-table-controls {
        padding: 12px !important;
    }

    .bazeh-table-controls__text strong { font-size: 13px !important; }
    .bazeh-table-controls__count       { font-size: 11.5px !important; }

    .bazeh-table-sort label {
        font-size: 12.5px !important;
    }

    .bazeh-sort-select {
        padding: 8px 32px 8px 14px !important;
        font-size: 12.5px !important;
    }

    .bazeh-select-caret { left: 10px !important; }

    .bazeh-pagination {
        gap: 4px !important;
        margin-top: 20px !important;
    }

    .bazeh-pagination-link {
        min-width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
        padding: 0 8px !important;
    }

    .bazeh-pagination-prev,
    .bazeh-pagination-next {
        min-width: 60px !important;
        font-size: 12px !important;
    }

    .bazeh-pagination-info {
        font-size: 12px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .bazeh-table th,
    .bazeh-table td,
    .bazeh-order-products-table th,
    .bazeh-order-products-table td {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    .bazeh-panel-user {
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
    }

    .bazeh-avatar-circle {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }

    .bazeh-panel-user-name {
        font-size: 18px !important;
    }

    .bazeh-panel-user-email {
        font-size: 12px !important;
    }

    .bazeh-panel-nav li a {
        font-size: 13px !important;
        padding: 12px 14px !important;
    }

    .bazeh-logout-popup {
        max-width: 90% !important;
        margin: 20px !important;
    }

    .bazeh-logout-popup-header {
        padding: 20px !important;
    }

    .bazeh-logout-popup-header h3 {
        font-size: 18px !important;
    }

    .bazeh-logout-popup-body {
        padding: 20px !important;
    }

    .bazeh-logout-popup-body p {
        font-size: 14px !important;
    }

    .bazeh-logout-popup-footer {
        padding: 16px 20px !important;
        flex-direction: column !important;
    }

    .bazeh-logout-cancel,
    .bazeh-logout-confirm {
        width: 100% !important;
        padding: 12px !important;
    }

    /* Avatar Modal Responsive */
    .bazeh-avatar-modal-content {
        width: 95% !important;
        max-height: 85vh !important;
        border-radius: 16px !important;
    }

    .bazeh-avatar-modal-header {
        padding: 20px !important;
    }

    .bazeh-avatar-modal-header h3 {
        font-size: 18px !important;
    }

    .bazeh-avatar-modal-body {
        padding: 20px !important;
    }

    .bazeh-avatar-cropper-wrapper {
        padding: 12px !important;
        gap: 10px !important;
    }

    #bazeh-avatar-canvas {
        width: 260px !important;
        height: 260px !important;
    }

    .bazeh-avatar-modal-footer {
        padding: 16px 20px !important;
        flex-direction: column !important;
    }

    .bazeh-avatar-modal-footer .bazeh-button {
        width: 100% !important;
        min-width: auto !important;
    }

    /* Order Details Mobile */
    .bazeh-order-details h3 {
        font-size: 22px !important;
        margin-bottom: 16px !important;
        padding-bottom: 10px !important;
    }

    .bazeh-order-details h4 {
        font-size: 18px !important;
        margin: 20px 0 14px 0 !important;
    }

    .bazeh-order-meta-card {
        padding: 16px !important;
        gap: 14px !important;
    }

    .bazeh-order-meta-label {
        font-size: 12px !important;
    }

    .bazeh-order-meta-value {
        font-size: 14px !important;
    }

    .bazeh-order-status {
        padding: 5px 12px !important;
        font-size: 12px !important;
    }

    .bazeh-order-total {
        font-size: 16px !important;
    }

    .bazeh-order-product-image-link {
        width: 100% !important;
        height: 180px !important;
        max-width: 180px !important;
    }

    .bazeh-order-product-name {
        font-size: 14px !important;
    }

    .bazeh-order-product-cell {
        padding: 10px !important;
    }

    .bazeh-order-quantity-cell,
    .bazeh-order-total-cell {
        font-size: 14px !important;
    }

    .bazeh-order-details + p a {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        font-size: 13px !important;
    }

    .bazeh-order-products-table thead th {
        padding: 12px 10px !important;
        font-size: 13px !important;
    }
}

/* ================================================================
 * Responsive safety-net (applied at every breakpoint)
 *
 * Ensures the panel never overflows horizontally on any viewport,
 * long words wrap, images never burst out of their cards, and data
 * tables become horizontally scrollable instead of pushing the page.
 * These rules are intentionally defensive and use high specificity
 * so theme CSS cannot re-introduce horizontal scroll on small screens.
 * ================================================================ */
.bazeh-panel,
.bazeh-panel * {
    box-sizing: border-box;
}

.bazeh-panel img,
.bazeh-panel canvas,
.bazeh-panel video,
.bazeh-panel iframe {
    max-width: 100%;
    height: auto;
}

.bazeh-panel .bazeh-panel-content {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* تب‌های Growth (علاقه‌مندی / دعوت / پرسش) — هماهنگ با فونت پنل و عرض محتوا */
.bazeh-panel-content.bazeh-panel-content--growth {
    font-family: "Vazirmatn", "Vazir", Tahoma, system-ui, sans-serif;
}
.bazeh-panel-content.bazeh-panel-content--growth .bzh-qa-panel {
    font-family: inherit;
    max-width: none;
    width: 100%;
}
.bazeh-panel-content.bazeh-panel-content--growth .bzh-qa-panel__list {
    padding: 0;
    margin: 0;
    list-style: none;
}
.bazeh-panel-content.bazeh-panel-content--growth .bzh-qa-panel__list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.65;
}

.bazeh-panel .bazeh-table-wrapper,
.bazeh-panel .bazeh-scroll-x {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* جدول محصولات جدید: اسکرول افقی حتی با زوم — والد clip نکند */
.bazeh-panel .bazeh-np-wrap {
    max-width: 100%;
    overflow-x: visible;
}
.bazeh-panel .bazeh-np-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.bazeh-panel .bazeh-np-table-scroll .bazeh-np-table {
    overflow-wrap: normal;
    word-break: normal;
}
.bazeh-panel .bazeh-np-table td,
.bazeh-panel .bazeh-np-table th {
    overflow-wrap: normal;
}

@media (max-width: 1200px) {
    .bazeh-panel {
        padding: 0 20px !important;
    }
}

@media (max-width: 640px) {
    .bazeh-panel {
        padding: 0 !important;
        margin-top: 16px !important;
        overflow-x: visible !important;
    }

    .bazeh-panel-content {
        --bzh-inline: 14px;
        padding: 20px var(--bzh-inline) !important;
        border-radius: 0 !important;
        min-height: auto !important;
    }

    .bazeh-panel-content h2 {
        font-size: 22px !important;
    }

    .bazeh-dashboard-cards,
    .bazeh-dashboard-cards--affiliate {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Any flex row of buttons should wrap */
    .bazeh-panel .bazeh-actions,
    .bazeh-panel form .bazeh-actions,
    .bazeh-panel .bazeh-button-row {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .bazeh-panel .bazeh-button,
    .bazeh-panel button.bazeh-button {
        font-size: 14px !important;
    }
}

/* Extra-narrow phones (≤ 380px) — clamp padding/typography even further
 * so fields and buttons never clip off the edge. */
@media (max-width: 380px) {
    .bazeh-panel {
        padding: 0 !important;
    }

    .bazeh-panel-content {
        --bzh-inline: 12px;
        padding: 14px var(--bzh-inline) !important;
        border-radius: 0 !important;
    }

    .bazeh-panel-content h2 {
        font-size: 20px !important;
        background: none !important;
        -webkit-background-clip: border-box !important;
        background-clip: border-box !important;
        -webkit-text-fill-color: #1e3a8a !important;
        color: #1e3a8a !important;
        animation: none !important;
    }

    .bazeh-avatar-modal-content {
        width: 98% !important;
    }

    #bazeh-avatar-canvas {
        width: 240px !important;
        height: 240px !important;
    }
}

/* Profile edit — avatar upload block */
.bazeh-profile-avatar-block {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 0 0 24px;
}
.bazeh-profile-avatar-block .bazeh-avatar-circle.bazeh-profile-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    aspect-ratio: 1 / 1;
    margin: 0;
    flex: 0 0 88px;
    overflow: hidden;
    align-self: center;
}
.bazeh-profile-avatar-meta h3 { margin: 0 0 4px; font-size: 15px; color: #1f2937; font-weight: 700; }
.bazeh-profile-avatar-meta p  { margin: 0; font-size: 12px; color: #6b7280; line-height: 1.8; }

@media (max-width: 640px) {
    .bazeh-profile-avatar-block { flex-direction: column; text-align: center; }
}

/* --- Full-width panel toggle (logged-in shell) --- */
.bazeh-panel.bazeh-panel--fullwidth {
    max-width: none;
    width: 100%;
    margin-inline: 0;
    padding-inline: clamp(12px, 2.5vw, 32px);
}

.bazeh-panel.bazeh-panel--fullwidth .bazeh-notif-panel {
    max-width: none;
    width: 100%;
    margin-inline: 0;
}

.bazeh-panel-width-toggle {
    position: fixed;
    z-index: 10050;
    left: auto;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(22px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
    line-height: 0;
    /* تم/لینک والد گاهی رنگ دکمه را تیره می‌کند — برای خوانایی روی نارنجی/سرمه‌ای ثابت می‌ماند */
    color: #fff !important;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.26), 0 2px 6px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bazeh-panel-width-toggle:hover,
.bazeh-panel-width-toggle:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3), 0 3px 10px rgba(240, 88, 35, 0.12);
    color: #fff !important;
}
.bazeh-panel-width-toggle:active {
    transform: translateY(0);
    color: #fff !important;
}
.bazeh-panel-width-toggle.is-active {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4), 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #fff !important;
}
.bazeh-panel-width-toggle.is-active:hover,
.bazeh-panel-width-toggle.is-active:focus-visible {
    color: #fff !important;
}
.bazeh-panel-width-toggle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.bazeh-panel-width-toggle__icon svg {
    display: block;
    stroke: #fff !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .bazeh-panel-width-toggle {
        display: none !important;
    }
}

/* چت بازه: بالاتر از دکمهٔ تمام‌عرض پنل (فقط دسکتاپ، صفحهٔ پنل) */
@media (min-width: 769px) {
    body:has(.bazeh-panel[data-bazeh-panel-root]) .bzh-live-chat {
        bottom: max(96px, env(safe-area-inset-bottom)) !important;
    }
}

/* شخصی‌سازی بازه — بنر داشبورد و آیکون‌های دسته */
.bzh-persona-banners {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.bazeh-panel.bazeh-panel--fullwidth .bzh-persona-banners {
    max-width: none;
    width: 100%;
}
.bzh-persona-banners--slider .swiper-slide {
    height: auto;
}
.bzh-persona-banner {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(240, 88, 35, 0.2);
    background: linear-gradient(135deg, rgba(255, 247, 243, 0.95), #fff);
    font-size: 0.9rem;
    line-height: 1.65;
    color: #334155;
}
.bzh-persona-banner--soft {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.bzh-persona-banner--calm {
    border-color: rgba(59, 130, 246, 0.22);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), #fff);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.bzh-persona-banner--vivid {
    border-color: rgba(234, 88, 12, 0.35);
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.98), #fff8f1);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.12);
}
.bzh-persona-banner--vivid .bzh-persona-banner__kicker {
    color: #ea580c;
}
.bzh-persona-banner--night {
    border-color: rgba(51, 65, 85, 0.5);
    background: linear-gradient(145deg, #1e293b, #0f172a);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.35);
    color: #e2e8f0;
}
.bzh-persona-banner--night .bzh-persona-banner__kicker {
    color: #94a3b8;
}
.bzh-persona-banner--night .bzh-persona-banner__title {
    color: #f8fafc;
}
.bzh-persona-banner--night .bzh-persona-banner__text {
    color: #cbd5e1;
}
.bzh-persona-banner--sand {
    border-color: rgba(180, 83, 9, 0.22);
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.55), #fffbeb);
    box-shadow: 0 2px 12px rgba(180, 83, 9, 0.08);
}
.bzh-persona-banner--sand .bzh-persona-banner__kicker {
    color: #b45309;
}
.bzh-persona-banner--forest {
    border-color: rgba(22, 101, 52, 0.28);
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.9), #f0fdf4);
    box-shadow: 0 2px 12px rgba(22, 101, 52, 0.08);
}
.bzh-persona-banner--forest .bzh-persona-banner__kicker {
    color: #15803d;
}
.bzh-persona-banner--ocean {
    border-color: rgba(14, 165, 233, 0.3);
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), #f0f9ff);
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.1);
}
.bzh-persona-banner--ocean .bzh-persona-banner__kicker {
    color: #0284c7;
}
.bzh-persona-banner--rose {
    border-color: rgba(219, 39, 119, 0.28);
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.95), #fdf2f8);
    box-shadow: 0 2px 12px rgba(219, 39, 119, 0.1);
}
.bzh-persona-banner--rose .bzh-persona-banner__kicker {
    color: #db2777;
}
.bzh-persona-banner--mint {
    border-color: rgba(13, 148, 136, 0.28);
    background: linear-gradient(135deg, rgba(204, 251, 241, 0.85), #f0fdfa);
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.1);
}
.bzh-persona-banner--mint .bzh-persona-banner__kicker {
    color: #0d9488;
}
.bzh-persona-banner--gold {
    border-color: rgba(202, 138, 4, 0.35);
    background: linear-gradient(135deg, rgba(254, 249, 195, 0.75), #fffbeb);
    box-shadow: 0 3px 14px rgba(202, 138, 4, 0.14);
}
.bzh-persona-banner--gold .bzh-persona-banner__kicker {
    color: #b45309;
}
.bzh-persona-banner__kicker {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f97316;
    letter-spacing: 0.02em;
}
.bzh-persona-banner__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}
.bzh-persona-banner__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #475569;
}
.bzh-persona-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0 0 1.25rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--bazeh-border-light);
}
.bzh-persona-icons-wrap {
    margin: 0 0 1.25rem;
}
.bzh-persona-icons__title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}
.bzh-persona-icons--slider {
    overflow: hidden;
    padding-bottom: 6px;
}
.bzh-persona-icons--slider .swiper-wrapper {
    align-items: stretch;
}
.bzh-persona-icons__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    text-align: center;
}
.bzh-persona-icons__thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bzh-persona-icons__thumb svg {
    width: 36px;
    height: 36px;
    display: block;
}
.bzh-persona-icons__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    max-width: 100px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bzh-persona-icons__dl {
    font-size: 0.7rem;
    color: var(--bazeh-orange);
    text-decoration: none;
}
.bzh-persona-icons__dl:hover {
    text-decoration: underline;
}

/* پروفایل — دسته‌های علاقه‌مندی داخل <details> */
.bazeh-fav-cats-details {
    margin: 0 0 0.5rem;
}
.bazeh-fav-cats-details summary.bazeh-fav-cats-summary {
    list-style: none;
    cursor: pointer;
    width: fit-content;
    max-width: 100%;
}
.bazeh-fav-cats-details summary::-webkit-details-marker {
    display: none;
}
.bazeh-persona-cat-tree {
    margin-top: 12px;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.bazeh-persona-cat-group {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 14px 12px;
    background: #fff;
}
.bazeh-persona-cat-group__title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.bazeh-persona-cat-group__children {
    margin: 14px 0 0;
    padding: 12px 10px 4px 0;
    border-right: 3px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px 14px;
}
.bazeh-persona-cat-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
}
.bazeh-persona-cat-item--parent {
    margin: 0 0 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
}
.bazeh-persona-cat-item--child {
    color: #475569;
}
.bazeh-persona-cat-item--child .bazeh-persona-cat-label::before {
    content: "↳ ";
    color: #94a3b8;
}

/* اعلانات: هم‌راستا با پالت نارنجی bazeh-notifications.css */
.bazeh-panel .bazeh-notif-panel .bazeh-notif-archive-all:not([disabled]):hover,
.bazeh-panel .bazeh-notif-panel .bazeh-notif-archive-all:not([disabled]):focus-visible {
    color: #0f172a !important;
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}
.bazeh-panel .bazeh-notif-panel .bazeh-notif-mark-all:not([disabled]):hover,
.bazeh-panel .bazeh-notif-panel .bazeh-notif-mark-all:not([disabled]):focus-visible {
    color: #c2410c !important;
    background: rgba(240, 88, 35, 0.1) !important;
    border-color: #f05823 !important;
}

