/* Public storefront component styles.
   Extracted from component-level <style> blocks so the browser parses and caches them once
   instead of re-inserting identical style tags for every rendered component instance. */

/* ===== Client/Shared/MainLayout.razor ===== */
/* Skeleton Loading Animation */
    .skeleton {
        background: linear-gradient(90deg, var(--app-border) 25%, var(--app-bg) 50%, var(--app-border) 75%);
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
        border-radius: 8px;
    }

    @keyframes skeleton-loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .skeleton-card {
        background: var(--app-surface);
        border-radius: 20px;
        padding: 16px;
        margin-bottom: 16px;
        border: 1px solid var(--app-border);
    }

    .skeleton-img { height: 160px; width: 100%; margin-bottom: 12px; border-radius: 16px; }
    .skeleton-title { height: 20px; width: 80%; margin-bottom: 8px; }
    .skeleton-text { height: 14px; width: 60%; }

    .btn, .nav-item, .quick-link, .suggest-item {
        position: relative;
        overflow: hidden;
    }

    .ripple-effect {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: scale(0);
        animation: ripple-animation 0.6s linear;
        pointer-events: none;
    }

    @keyframes ripple-animation {
        to { transform: scale(4); opacity: 0; }
    }

    .app-wrapper {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background-color: var(--app-bg);
        color: var(--app-text);
        padding-bottom: 80px;
        padding-top: 124px;
        font-family: 'Vazirmatn', sans-serif !important;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .app-search-bar {
        display: flex;
        align-items: center;
        height: 64px;
        padding: 0 20px;
        background: transparent;
    }

    .app-search-bar .search-input-wrapper {
        width: 100%;
        max-width: 1120px;
        margin-inline: auto;
    }

    .app-quick-links {
        position: relative;
        background: transparent;
        padding: 0;
        border-bottom: 0;
    }

    .quick-links-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        min-height: 52px;
        padding: 0 4px;
    }

    .quick-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 13px;
        border-radius: 999px;
        border: 1px solid transparent;
        background: rgba(15, 23, 42, 0.04);
        color: var(--app-text-secondary);
        text-decoration: none;
        font-weight: 700;
        font-size: 0.86rem;
        box-shadow: none;
        transition: background-color 0.18s ease, color 0.18s ease;
        user-select: none;
        white-space: nowrap;
    }

    .quick-link .oi {
        font-size: 0.95rem;
        color: inherit;
        opacity: 0.7;
    }

    .quick-link:hover {
        background: rgba(37, 99, 235, 0.09);
        color: var(--app-primary);
    }

    .quick-link:active { transform: none; }

    .app-search-input {
        width: 100%;
        height: 46px;
        border-radius: 999px;
        border: 1px solid transparent;
        background: rgba(15, 23, 42, 0.05);
        color: var(--app-text);
        padding: 0 46px 0 18px;
        font-size: 0.92rem;
        box-shadow: none;
        outline: none;
        transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .app-search-input:hover { background: rgba(15, 23, 42, 0.07); }

    .app-search-input::placeholder {
        font-size: 0.88rem;
        color: #94a3b8;
    }

    .app-search-input:focus {
        background: var(--app-surface);
        border-color: rgba(37, 99, 235, 0.45);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

    .search-icon {
        right: 18px;
        font-size: 1rem;
        color: var(--app-primary) !important;
        opacity: 0.8;
        pointer-events: none;
    }

    @media (min-width: 992px) and (max-width: 1199.98px) {
        .quick-link { padding: 7px 10px; font-size: 0.79rem; gap: 5px; }
        .quick-links-row { gap: 6px; }
    }

    [data-theme="dark"] .quick-link { background: rgba(148, 163, 184, 0.1); color: #cbd5e1; }
    [data-theme="dark"] .quick-link:hover { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
    [data-theme="dark"] .app-search-input { background: rgba(148, 163, 184, 0.12); color: #e2e8f0; }
    [data-theme="dark"] .app-search-input:hover { background: rgba(148, 163, 184, 0.16); }
    [data-theme="dark"] .app-search-input:focus { background: rgba(15, 23, 42, 0.9); border-color: rgba(96, 165, 250, 0.55); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16); }

    /* ── Notification bell ── */
    .hdr-bell-wrap {
        position: relative;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .hdr-bell {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        border-radius: 10px;
        color: #64748b;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }

    .hdr-bell:hover { background: rgba(0,0,0,0.04); color: #1a1a1a; }
    .hdr-bell:active { transform: scale(0.92); }

    .hdr-bell__badge {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 2px var(--app-surface, #fff);
        pointer-events: none;
    }

    .notif-overlay {
        position: fixed;
        inset: 0;
        z-index: 2090;
        background: transparent;
    }

    .notif-panel {
        position: fixed;
        top: 66px;
        left: 16px;
        width: min(360px, calc(100vw - 32px));
        max-height: min(480px, calc(100vh - 90px));
        background: var(--app-surface, #fff);
        border: 1px solid var(--app-border, #e5e7eb);
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.14);
        z-index: 2100;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: hdrMenuIn 0.18s ease-out;
    }

    .notif-panel__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 12px 16px;
        border-bottom: 1px solid var(--app-border, #eee);
    }

    .notif-panel__title {
        font-weight: 800;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .notif-panel__readall {
        border: none;
        background: transparent;
        color: #0d6efd;
        font-size: 0.78rem;
        font-weight: 700;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 8px;
    }

    .notif-panel__readall:hover { background: rgba(13,110,253,0.08); }

    .notif-panel__list {
        overflow-y: auto;
        padding: 6px;
        flex: 1;
        min-height: 0;
    }

    .notif-panel__empty {
        text-align: center;
        color: #94a3b8;
        font-size: 0.85rem;
        padding: 28px 12px;
    }

    .notif-panel__foot {
        border-top: 1px solid var(--app-border, #eee);
        padding: 10px;
        text-align: center;
    }

    .notif-panel__foot a {
        color: #0d6efd;
        font-size: 0.85rem;
        font-weight: 700;
        text-decoration: none;
    }

    .notif-panel__foot a:hover { text-decoration: underline; }

    .notif-mini {
        display: flex;
        gap: 10px;
        width: 100%;
        text-align: right;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 10px;
        border-radius: 12px;
        transition: background 0.15s;
    }

    .notif-mini:hover { background: rgba(0,0,0,0.04); }
    .notif-mini.is-read { opacity: 0.6; }

    .notif-mini__dot {
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin-top: 6px;
    }

    .notif-mini__body {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

    .notif-mini__title {
        font-weight: 800;
        font-size: 0.85rem;
        color: var(--app-text, #1a1a1a);
    }

    .notif-mini__desc {
        font-size: 0.78rem;
        color: #64748b;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .notif-mini__time {
        font-size: 0.7rem;
        color: #94a3b8;
    }

    .search-discovery { padding: 16px; direction: rtl; }
    .search-discovery__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
    .search-discovery__title { display: flex; align-items: center; gap: 8px; color: var(--app-text); font-size: .9rem; font-weight: 900; }
    .search-discovery__title .oi { color: var(--app-primary); }
    .search-clear-btn { border: 0; background: transparent; color: var(--app-text-muted); font-size: .72rem; font-weight: 700; cursor: pointer; padding: 5px 7px; border-radius: 8px; }
    .search-clear-btn:hover { color: #ef4444; background: rgba(239,68,68,.08); }
    .search-chip-section { margin-top: 12px; }
    .search-chip-title { display: flex; align-items: center; gap: 6px; color: var(--app-text-muted); font-size: .75rem; font-weight: 900; margin-bottom: 9px; }
    .search-chip-title .oi { color: #f59e0b; }
    .search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .search-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--app-border); background: var(--app-bg); color: var(--app-text); border-radius: 999px; padding: 8px 11px; font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .15s ease; }
    .search-chip:hover { border-color: rgba(37,99,235,.35); color: var(--app-primary); background: rgba(37,99,235,.07); transform: translateY(-1px); }
    .search-chip .oi { font-size: .65rem; color: var(--app-text-muted); }
    .search-chip--recent { background: var(--app-surface); }
    .search-discovery__hint { border-top: 1px solid var(--app-border); color: var(--app-text-muted); font-size: .72rem; line-height: 1.7; margin-top: 16px; padding-top: 12px; }
    @media (max-width: 575.98px) {
        .search-discovery { padding: 13px; }
        .search-chip { padding: 8px 10px; font-size: .74rem; }
        .search-discovery__head { align-items: flex-start; }
    }

    .search-suggest-overlay {
        position: fixed;
        inset: 0;
        z-index: 998;
        background: transparent;
    }

    .search-suggest {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        z-index: 999;
        border-radius: 20px;
        border: 1px solid var(--app-border);
        background: var(--app-surface);
        overflow: hidden;
    }

    .suggest-section { padding: 10px 10px 0 10px; }
    .suggest-title {
        font-size: 0.78rem;
        font-weight: 900;
        color: var(--app-text-muted);
        padding: 8px 10px;
    }

    .suggest-item {
        width: 100%;
        border: 0;
        background: transparent;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        text-align: right;
        color: var(--app-text);
    }

    .suggest-item:hover { background: var(--app-bg); }
    .suggest-item .oi { font-size: 1rem; }

    .suggest-item {
        animation: suggestIn 0.16s ease;
    }

    @keyframes suggestIn {
        from { opacity: 0; transform: translateY(3px); }
        to { opacity: 1; transform: none; }
    }

    .suggest-progress {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 2px;
        overflow: hidden;
        pointer-events: none;
    }

    .suggest-progress::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 45%;
        background: linear-gradient(90deg, transparent, var(--app-primary, #0d6efd), transparent);
        animation: suggestLoad 0.9s ease-in-out infinite;
    }

    @keyframes suggestLoad {
        from { right: -45%; }
        to { right: 100%; }
    }

    .suggest-thumb {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
        background: var(--app-bg);
    }

    .suggest-item .suggest-ico {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: var(--app-bg);
        flex-shrink: 0;
        font-size: 1rem;
    }

    .suggest-meta {
        flex-grow: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .suggest-item-title {
        font-size: 0.87rem;
        font-weight: 800;
        color: var(--app-text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .suggest-item-sub {
        font-size: 0.73rem;
        color: var(--app-text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 1px;
    }

    .suggest-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        border-top: 1px solid var(--app-border);
        background: rgba(0,0,0,0.02);
    }

    .app-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--app-surface);
        color: var(--app-text);
        z-index: 1100;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        display: flex;
        flex-direction: column;
    }

    .drawer-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .drawer-body .list-group-item {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        border-radius: 12px;
        margin: 2px 12px;
        width: auto;
    }

    .drawer-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        font-size: 0.9rem;
    }

    .bg-primary-subtle { background: rgba(37, 99, 235, 0.1); }
    .bg-success-subtle { background: rgba(16, 185, 129, 0.1); }
    .bg-warning-subtle { background: rgba(245, 158, 11, 0.1); }
    .bg-info-subtle { background: rgba(6, 182, 212, 0.1); }
    .bg-danger-subtle { background: rgba(239, 68, 68, 0.1); }

    .app-header-group {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        will-change: transform;
        background: var(--app-surface);
        border-bottom: 1px solid var(--app-border);
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    }

    .app-header {
        position: relative;
        z-index: 2;
        height: 60px;
        background: transparent;
        will-change: opacity;
        transition: background-color 0.3s ease;
    }

    .app-header-wrapper {
        height: 100%;
        background: transparent;
        border-bottom: 0;
    }

    .nav-progress-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--app-primary), #10b981);
        z-index: 1001;
        animation: nav-load 2s ease-in-out infinite;
    }

    @keyframes nav-load {
        0% { width: 0; left: 0; }
        50% { width: 70%; left: 15%; }
        100% { width: 0; left: 100%; }
    }

    /* ── App Header: RTL, minimal, premium ── */
    .app-header-inner {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 20px;
        direction: rtl;
        user-select: none;
    }

    /* Hamburger — rightmost */
    .hdr-menu-btn {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        display: grid;
        place-items: center;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 12px;
        transition: background 0.15s;
        padding: 0;
    }
    .hdr-menu-btn:hover { background: rgba(0,0,0,0.04); }
    .hdr-menu-btn:active { background: rgba(0,0,0,0.08); transform: scale(0.92); }

    .hdr-menu-icon {
        display: block;
        width: 22px;
        height: 2px;
        background: #1a1a1a;
        border-radius: 2px;
        position: relative;
        transition: background 0.2s;
    }
    .hdr-menu-icon::before,
    .hdr-menu-icon::after {
        content: "";
        position: absolute;
        right: 0;
        width: 22px;
        height: 2px;
        background: #1a1a1a;
        border-radius: 2px;
        transition: transform 0.2s;
    }
    .hdr-menu-icon::before { top: -7px; }
    .hdr-menu-icon::after { top: 7px; }

    /* Title — center */
    .hdr-title {
        flex: 1;
        text-align: center;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 4px 0;
        position: relative;
    }

    .hdr-title__text {
        font-size: 20px;
        font-weight: 800;
        font-family: 'Vazirmatn', system-ui, sans-serif;
        position: relative;
        letter-spacing: 0.4px;
        transition: transform 0.2s;
        background: linear-gradient(180deg, #ffffff 0%, #93c5fd 30%, #3b82f6 60%, #1e3a8a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 1px 4px rgba(59,130,246,0.2));
    }
    .hdr-title__text::before {
        content: "";
        position: absolute;
        top: -2px; left: 0; right: 0;
        height: 55%;
        background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
        border-radius: 4px 4px 0 0;
        -webkit-mask: linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0);
        pointer-events: none;
    }
    .hdr-title__text::after {
        content: "";
        position: absolute;
        inset: -10px;
        background: radial-gradient(ellipse at 50% -20%, rgba(255,255,255,0.15) 0%, transparent 60%);
        border-radius: 50%;
        pointer-events: none;
        animation: hdrFrost 4s ease-in-out infinite;
    }
    .hdr-title:active .hdr-title__text { transform: scale(0.96); }

    /* ❄️ Snowflakes */
    .hdr-title__snow {
        position: absolute;
        inset: 0;
        pointer-events: none;
        overflow: hidden;
        border-radius: 6px;
    }
    .hdr-title__snow::before,
    .hdr-title__snow::after,
    .hdr-title__snow i {
        position: absolute;
        top: -8px;
        width: 4px;
        height: 4px;
        background: rgba(255,255,255,0.7);
        border-radius: 50%;
        animation: hdrSnowFall linear infinite;
    }
    .hdr-title__snow i:nth-child(1) { left: 5%; animation-duration: 2.4s; animation-delay: 0s; width: 3px; height: 3px; }
    .hdr-title__snow i:nth-child(2) { left: 20%; animation-duration: 3s; animation-delay: 0.6s; width: 5px; height: 5px; }
    .hdr-title__snow i:nth-child(3) { left: 38%; animation-duration: 2s; animation-delay: 1.2s; width: 3px; height: 3px; }
    .hdr-title__snow i:nth-child(4) { left: 55%; animation-duration: 2.8s; animation-delay: 0.3s; width: 4px; height: 4px; }
    .hdr-title__snow i:nth-child(5) { left: 70%; animation-duration: 2.2s; animation-delay: 1.6s; width: 3px; height: 3px; }
    .hdr-title__snow i:nth-child(6) { left: 85%; animation-duration: 3.2s; animation-delay: 0.8s; width: 5px; height: 5px; }
    .hdr-title__snow i:nth-child(7) { left: 95%; animation-duration: 2.6s; animation-delay: 0.1s; width: 3px; height: 3px; }
    .hdr-title__snow i:nth-child(8) { left: 12%; animation-duration: 3.6s; animation-delay: 2s; width: 4px; height: 4px; }

    @keyframes hdrSnowFall {
        0% { transform: translateY(-8px) scale(1); opacity: 1; }
        80% { opacity: 0.6; }
        100% { transform: translateY(80px) scale(0.4); opacity: 0; }
    }

    @keyframes hdrFrost {
        0%, 100% { opacity: 0.4; transform: scale(1); }
        50% { opacity: 1; transform: scale(1.06); }
    }

    /* Seasonal glow pulse */
    .hdr-title__glow {
        position: absolute;
        inset: -8px;
        border-radius: 12px;
        background: radial-gradient(ellipse at 50% 0%, rgba(147,197,253,0.08) 0%, transparent 70%);
        animation: hdrGlowPulse 3s ease-in-out infinite;
        pointer-events: none;
    }

    @keyframes hdrGlowPulse {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.8; }
    }

    .app-dark .hdr-title__text {
        background: linear-gradient(180deg, #e0f2fe 0%, #7dd3fc 30%, #38bdf8 60%, #1e3a8a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* ── Cart icon in header ── */
    .hdr-cart {
        flex-shrink: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        color: #64748b;
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
    }
    .hdr-cart:hover { background: rgba(0,0,0,0.04); color: #1a1a1a; }
    .hdr-cart:active { background: rgba(0,0,0,0.08); transform: scale(0.92); }

    .hdr-cart__icon { display: block; line-height: 0; }

    .hdr-cart__badge {
        position: absolute;
        top: 2px;
        right: 2px;
        min-width: 16px;
        height: 16px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        box-shadow: 0 1px 4px rgba(239,68,68,0.3);
        line-height: 1;
        direction: ltr;
    }

    .app-dark .hdr-cart { color: #a1a1aa; }
    .app-dark .hdr-cart:hover { background: rgba(255,255,255,0.06); color: #e4e4e7; }

    /* Avatar wrap — leftmost */
    .hdr-avatar-wrap {
        position: relative;
        flex-shrink: 0;
    }

    .hdr-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #4a6cf7, #6a8cff);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        display: grid;
        place-items: center;
        cursor: pointer;
        user-select: none;
        transition: transform 0.15s, box-shadow 0.15s;
        box-shadow: 0 2px 8px rgba(74,108,247,0.2);
    }
    .hdr-avatar:active { transform: scale(0.92); }

    /* Login button when not authorized */
    .hdr-login-btn {
        flex-shrink: 0;
        font-size: 14px;
        font-weight: 600;
        color: #4a6cf7;
        text-decoration: none;
        padding: 6px 16px;
        border-radius: 100px;
        border: 1.5px solid #4a6cf7;
        transition: background 0.15s, color 0.15s;
    }
    .hdr-login-btn:hover {
        background: #4a6cf7;
        color: #fff;
    }

    /* User dropdown menu (appears below avatar) */
    .hdr-usermenu {
        position: fixed;
        top: 66px;
        left: 16px;
        min-width: 200px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        z-index: 2100;
        overflow: hidden;
        animation: hdrMenuIn 0.18s ease-out;
    }
    @keyframes hdrMenuIn {
        from { opacity: 0; transform: translateY(-6px) scale(0.96); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .hdr-usermenu__head {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    .hdr-usermenu__avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, #4a6cf7, #6a8cff);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }
    .hdr-usermenu__name {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a1a;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .hdr-usermenu__body { padding: 6px; }
    .hdr-usermenu__item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
        text-decoration: none;
        cursor: pointer;
        background: none;
        border: none;
        width: 100%;
        text-align: right;
        transition: background 0.12s;
        font-family: inherit;
    }
    .hdr-usermenu__item:hover { background: #f5f5f5; }
    .hdr-usermenu__item:active { background: #eee; }
    .hdr-usermenu__item--danger { color: #ef4444; }
    .hdr-usermenu__divider {
        height: 1px;
        background: #f0f0f0;
        margin: 4px 8px;
    }

    /* Dark mode overrides */
    .app-dark .hdr-menu-icon,
    .app-dark .hdr-menu-icon::before,
    .app-dark .hdr-menu-icon::after { background: #e4e4e7; }
    .app-dark .hdr-usermenu { background: #1e1e2e; }
    .app-dark .hdr-usermenu__head { border-color: rgba(255,255,255,0.06); }
    .app-dark .hdr-usermenu__name { color: #e4e4e7; }
    .app-dark .hdr-usermenu__item { color: #e4e4e7; }
    .app-dark .hdr-usermenu__item:hover { background: rgba(255,255,255,0.06); }
    .app-dark .hdr-usermenu__item:active { background: rgba(255,255,255,0.1); }
    .app-dark .hdr-usermenu__divider { background: rgba(255,255,255,0.06); }
    .app-dark .hdr-login-btn {
        color: #6a8cff;
        border-color: #6a8cff;
    }
    .app-dark .hdr-login-btn:hover {
        background: #6a8cff;
        color: #fff;
    }

    .app-main { 
        flex: 1;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* ── Theme toggle ── */
    .hdr-theme {
        display: none;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        place-items: center;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 12px;
        color: #52525b;
        padding: 0;
        transition: background 0.15s, color 0.15s, transform 0.15s;
    }
    .hdr-theme:hover { background: rgba(0,0,0,0.04); color: #1a1a1a; }
    .hdr-theme:active { transform: scale(0.92); }
    .hdr-theme svg { display: block; }
    .app-dark .hdr-theme,
    [data-theme="dark"] .hdr-theme { color: #a1a1aa; }
    .app-dark .hdr-theme:hover,
    [data-theme="dark"] .hdr-theme:hover { background: rgba(255,255,255,0.06); color: #e4e4e7; }

    .drawer-theme {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 24px;
        border-bottom: 1px solid var(--app-border);
        color: var(--app-text);
    }
    .drawer-theme__label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem;
        font-weight: 700;
    }
    .drawer-theme__label .oi { color: var(--app-primary); }

    .theme-switch {
        position: relative;
        width: 48px;
        height: 26px;
        flex-shrink: 0;
        border-radius: 999px;
        border: 1px solid var(--app-border-strong);
        background: var(--app-bg);
        cursor: pointer;
        padding: 0;
        transition: background 0.2s, border-color 0.2s;
    }
    .theme-switch__knob {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--app-surface);
        box-shadow: 0 1px 4px rgba(0,0,0,0.25);
        transition: transform 0.2s;
    }
    .theme-switch.is-on { background: var(--app-primary); border-color: var(--app-primary); }
    .theme-switch.is-on .theme-switch__knob { transform: translateX(-22px); }

    @media (min-width: 992px) {
        .hdr-theme { display: grid; }
    }

    .app-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: var(--app-nav-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid var(--app-border);
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
        transition: background-color 0.3s ease;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--app-text-muted);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 8px 16px;
        border-radius: 18px;
    }

    .nav-item .oi { 
        font-size: 1.4rem; 
        margin-bottom: 4px; 
        transition: transform 0.2s ease;
    }
    .nav-label { font-size: 0.75rem; font-weight: 700; }

    .nav-item.active {
        color: var(--app-primary);
    }
    
    .nav-item.active .oi {
        transform: translateY(-2px);
    }

    .list-group-item {
        background: transparent !important;
        color: var(--app-text) !important;
    }
    .list-group-item:hover {
        background: var(--app-bg) !important;
    }

    .drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(4px);
        z-index: 1050;
    }

    @media (min-width: 992px) {
        .app-bottom-nav {
            display: none;
        }
        .app-wrapper { 
            padding-bottom: 0;
            padding-top: 176px;
            width: 100%;
            margin: 0;
        }
        .container, .container-fluid {
            max-width: 100% !important;
            padding-left: 20px !important;
            padding-right: 20px !important;
        }
    }

.page-content {
        animation: pageFadeIn 0.35s ease-out;
    }
    @keyframes pageFadeIn {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .empty-state-box {
        text-align: center;
        padding: 60px 20px;
        background: rgba(255,255,255,0.6);
        border-radius: 24px;
        border: 2px dashed rgba(0,0,0,0.08);
    }
    .empty-state-box .empty-icon {
        font-size: 3.5rem;
        color: rgba(0,0,0,0.12);
        margin-bottom: 16px;
        display: block;
    }
    .empty-state-box h4 {
        font-weight: 700;
        color: #333;
        margin-bottom: 8px;
    }
    .empty-state-box p {
        color: #888;
        margin-bottom: 20px;
    }
    .skip-link {
        position: fixed;
        top: -100%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        padding: 8px 24px;
        background: #0d6efd;
        color: #fff;
        border-radius: 0 0 12px 12px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.9rem;
        transition: top 0.2s;
    }
    .skip-link:focus {
        top: 0;
    }
    .offline-banner {
        position: sticky;
        top: 0;
        z-index: 9998;
        background: #fff3cd;
        color: #856404;
        padding: 10px 16px;
        text-align: center;
        font-size: 0.85rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-bottom: 1px solid #ffc107;
        cursor: pointer;
    }
    .offline-banner-close {
        background: none;
        border: none;
        font-size: 1.3rem;
        font-weight: 700;
        color: #856404;
        cursor: pointer;
        padding: 0 4px;
        line-height: 1;
    }

    /* ────────────── بنر ادامهٔ سفارش نیمه‌تمام ────────────── */
    .resume-banner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 16px;
        padding: 14px 22px;
        color: #fff;
        text-shadow: 0 1px 2px rgba(120, 53, 15, 0.20);
        background: linear-gradient(115deg, #f59e0b 0%, #f97316 45%, #ef4444 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.30);
        box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
        overflow: hidden;
        font-size: 0.9rem;
    }
    .resume-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(220px 90px at 90% -30%, rgba(255, 255, 255, 0.38), transparent 70%),
            radial-gradient(200px 90px at 6% 130%, rgba(255, 255, 255, 0.24), transparent 70%);
        pointer-events: none;
    }
    .resume-banner > * { position: relative; }
    .resume-banner__icon {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.22);
        border: 1.5px solid rgba(255, 255, 255, 0.55);
        animation: resumeIconPulse 2s ease-in-out infinite;
    }
    .resume-banner__icon svg { display: block; }
    .resume-banner__text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3px;
        min-width: 0;
    }
    .resume-banner__title {
        font-size: 1.02rem;
        font-weight: 800;
        letter-spacing: -0.01em;
        text-shadow: 0 1px 3px rgba(120, 53, 15, 0.28);
    }
    .resume-banner__sub {
        font-size: 0.82rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.96);
    }
    .resume-banner__timer {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 999px;
        border: 1px dashed rgba(255, 255, 255, 0.85);
        background: rgba(255, 255, 255, 0.20);
        color: #fff;
        font-size: 0.78rem;
        font-weight: 800;
        white-space: nowrap;
        text-shadow: none;
        animation: resumeTimerBlink 1.6s ease-in-out infinite;
    }
    .resume-banner__cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        color: #c2410c;
        text-decoration: none;
        text-shadow: none;
        border-radius: 999px;
        padding: 11px 24px;
        font-size: 0.9rem;
        font-weight: 800;
        white-space: nowrap;
        box-shadow: 0 5px 16px rgba(120, 53, 15, 0.38);
        transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    }
    .resume-banner__cta:hover {
        background: #fff7ed;
        color: #c2410c;
        transform: translateY(-2px);
        box-shadow: 0 9px 22px rgba(120, 53, 15, 0.45);
    }
    .resume-banner__cta .oi { font-size: 0.8rem; }
    .resume-banner__close {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        flex: 0 0 auto;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.45);
        color: #fff;
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        transition: background 0.15s;
    }
    .resume-banner__close:hover { background: rgba(255, 255, 255, 0.38); }

    @keyframes resumeIconPulse {
        0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
        50% { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
    }
    @keyframes resumeTimerBlink {
        0%, 100% { background: rgba(255, 255, 255, 0.16); }
        50% { background: rgba(255, 255, 255, 0.40); }
    }

    @media (max-width: 767.98px) {
        .resume-banner {
            justify-content: flex-start;
            padding: 12px 14px;
            gap: 10px;
        }
        .resume-banner__icon { order: 0; width: 36px; height: 36px; }
        .resume-banner__text { order: 1; flex: 1 1 auto; align-items: flex-start; text-align: start; }
        .resume-banner__close { order: 2; width: 30px; height: 30px; }
        .resume-banner__timer { order: 3; padding: 5px 12px; font-size: 0.75rem; }
        .resume-banner__cta {
            order: 4;
            flex: 1 1 auto;
            justify-content: center;
            padding: 12px 16px;
            font-size: 0.95rem;
        }
        .resume-banner__title { font-size: 0.95rem; }
        .resume-banner__sub { font-size: 0.78rem; }
    }

    .rl-commitment-drawer-btn {
        display: flex; align-items: center; gap: 12px;
        padding: 14px 16px; border-radius: 16px;
        background: linear-gradient(135deg, #1e40af, #2563eb);
        color: #fff; text-decoration: none; transition: all 0.2s;
        box-shadow: 0 4px 15px rgba(37,99,235,0.25);
    }
    .rl-commitment-drawer-btn:hover {
        background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
        color: #fff; transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37,99,235,0.35);
    }
    .rl-commitment-drawer-icon {
        width: 42px; height: 42px; border-radius: 12px;
        background: rgba(255,255,255,0.15);
        display: grid; place-items: center; font-size: 1.2rem;
        flex-shrink: 0;
    }
    .rl-commitment-drawer-title {
        font-weight: 950; font-size: 0.85rem; line-height: 1.3;
    }
    .rl-commitment-drawer-desc {
        font-size: 0.65rem; opacity: 0.75; font-weight: 700; margin-top: 1px;
    }
    .rl-commitment-drawer-arrow {
        margin-right: auto; font-size: 0.8rem; opacity: 0.6;
    }

    .pwa-banner {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 8px auto 0;
        max-width: 720px;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1.5px dashed #93c5fd;
        background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
        color: #1e293b;
    }
    .pwa-banner__icon {
        flex: 0 0 auto;
        width: 38px; height: 38px;
        display: grid; place-items: center;
        border-radius: 12px;
        background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
        color: #fff;
    }
    .pwa-banner__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
    .pwa-banner__title { font-size: 0.85rem; font-weight: 800; color: #0f172a; }
    .pwa-banner__sub { font-size: 0.72rem; color: #475569; line-height: 1.6; }
    .pwa-banner__cta {
        flex: 0 0 auto;
        display: inline-flex; align-items: center; gap: 6px;
        border: 0; border-radius: 999px;
        padding: 8px 16px;
        font-weight: 800; font-size: 0.78rem;
        color: #fff;
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.5);
        cursor: pointer;
    }
    .pwa-banner__cta:active { transform: scale(0.97); }
    .pwa-banner__close {
        flex: 0 0 auto;
        border: 0; background: transparent;
        color: #64748b; font-size: 1.1rem; line-height: 1;
        padding: 4px 6px; cursor: pointer;
    }
    @media (max-width: 480px) {
        .pwa-banner__sub { display: none; }
        .pwa-banner { margin: 6px auto 0; }
    }

/* ===== Client/Shared/Footer.razor ===== */
.site-footer {
        position: relative;
        background: #0b1220;
        color: #e2e8f0;
        margin-top: auto;
        overflow: hidden;
        width: 100%;
        font-size: 0.92rem;
    }

    .site-footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #3b82f6, #22d3ee, #10b981);
    }

    .site-footer::after {
        content: "";
        position: absolute;
        top: -140px;
        right: -140px;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(59,130,246,0.14), transparent 70%);
        pointer-events: none;
    }

    /* Newsletter band */
    .footer-newsletter {
        padding: 30px 0;
        background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(16,185,129,0.08));
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nl-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        flex-wrap: wrap;
    }

    .nl-info {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 260px;
    }

    .nl-icon {
        font-size: 2rem;
        line-height: 1;
    }

    .nl-title {
        font-size: 1.05rem;
        font-weight: 800;
        color: #f8fafc;
        margin: 0 0 4px;
    }

    .nl-sub {
        color: #94a3b8;
        font-size: 0.85rem;
        margin: 0;
    }

    .nl-form-wrap {
        flex: 1 1 320px;
        max-width: 460px;
        min-width: 260px;
    }

    .nl-input-group {
        display: flex;
        background: #0f172a;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 50px;
        padding: 5px;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

    .nl-input-group:focus-within {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    }

    .nl-input {
        flex: 1;
        background: transparent;
        border: 0;
        outline: 0;
        padding: 8px 18px;
        color: #f8fafc;
        min-width: 0;
    }

    .nl-input::placeholder {
        color: #64748b;
    }

    .nl-btn {
        border: 0;
        border-radius: 50px;
        padding: 8px 26px;
        background: linear-gradient(90deg, #3b82f6, #22d3ee);
        color: #fff;
        font-weight: 700;
        white-space: nowrap;
        transition: filter .2s ease, transform .2s ease;
    }

    .nl-btn:hover:not(:disabled) {
        filter: brightness(1.1);
        transform: translateY(-1px);
    }

    .nl-btn:disabled {
        opacity: .7;
    }

    .nl-msg {
        font-size: 0.82rem;
    }

    /* Main columns */
    .footer-main {
        position: relative;
        padding: 56px 0 44px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: minmax(280px, 1.5fr) repeat(3, 1fr);
        gap: 44px 36px;
        align-items: start;
    }

    .footer-brand {
        margin-bottom: 22px;
    }

    .footer-logo {
        height: 48px;
        margin-bottom: 14px;
        filter: brightness(0) invert(1);
    }

    .footer-logo-text {
        font-size: 1.7rem;
        font-weight: 800;
        color: #fff;
        margin-bottom: 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .footer-desc {
        color: #94a3b8;
        line-height: 1.9;
        max-width: 320px;
        margin: 0;
    }

    /* Social links */
    .footer-social {
        margin-top: 26px;
        padding-top: 20px;
        border-top: 1px dashed rgba(255,255,255,0.12);
    }

    .social-label {
        display: block;
        color: #94a3b8;
        font-size: 0.82rem;
        margin-bottom: 12px;
    }

    .social-links {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .social-link {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        display: grid;
        place-items: center;
        color: #cbd5e1;
        text-decoration: none;
        transition: all .25s ease;
        position: relative;
        overflow: hidden;
    }

    .social-link svg {
        width: 19px;
        height: 19px;
    }

    .social-link:hover {
        transform: translateY(-4px) scale(1.06);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 10px 22px rgba(0,0,0,0.4);
    }

    .social-link.instagram:hover {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    }

    .social-link.telegram:hover {
        background: #0088cc;
    }

    .social-link.youtube:hover {
        background: #ff0000;
    }

    .social-link.linkedin:hover {
        background: #0077b5;
    }

    .social-link.whatsapp:hover {
        background: #25d366;
    }

    /* Link groups */
    .footer-links-col {
        min-width: 0;
    }

    .footer-title {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        padding: 0 0 12px;
        margin-bottom: 20px;
        background: none;
        border: 0;
        text-align: right;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        cursor: default;
    }

    .footer-title::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 34px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, #3b82f6, #22d3ee);
    }

    .title-chev {
        display: none;
        font-size: 0.7rem;
        color: #94a3b8;
        transition: transform .3s ease;
    }

    .footer-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-list li {
        margin-bottom: 12px;
    }

    .footer-list a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all .2s ease;
    }

    .footer-list a:hover {
        color: #60a5fa;
        padding-right: 6px;
    }

    .footer-list a:hover .link-chev {
        opacity: 1;
        transform: translateX(-2px);
    }

    .link-chev {
        font-size: 1rem;
        opacity: 0;
        transform: translateX(2px);
        transition: all .2s ease;
        color: #22d3ee;
    }

    /* Quick contact cards */
    .footer-contact-strip {
        padding: 34px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        background: linear-gradient(180deg, rgba(59,130,246,0.05), transparent);
    }

    .contact-cards {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .contact-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 16px;
        color: #e2e8f0;
        text-decoration: none;
        min-width: 0;
        transition: all .25s ease;
    }

    .contact-card:hover {
        transform: translateY(-3px);
        background: rgba(59,130,246,0.09);
        border-color: rgba(59,130,246,0.4);
        box-shadow: 0 12px 26px rgba(0,0,0,0.35);
    }

    .cc-icon {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        border-radius: 13px;
        display: grid;
        place-items: center;
        font-size: 1rem;
    }

    .cc-icon.phone { background: rgba(59,130,246,0.18); color: #60a5fa; }
    .cc-icon.whatsapp { background: rgba(37,211,102,0.15); color: #4ade80; }
    .cc-icon.mail { background: rgba(251,146,60,0.16); color: #fb923c; }
    .cc-icon.pin { background: rgba(236,72,153,0.16); color: #f472b6; }

    .cc-body {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

    .cc-body small {
        color: #94a3b8;
        font-size: 0.72rem;
    }

    .cc-body b {
        color: #f1f5f9;
        font-size: 0.85rem;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

    .cc-arrow {
        margin-right: auto;
        font-size: 0.7rem;
        color: #64748b;
        opacity: 0;
        transition: all .2s ease;
    }

    .contact-card:hover .cc-arrow {
        opacity: 1;
        color: #60a5fa;
    }

    /* Trust badges */
    .footer-trust {
        padding: 30px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .trust-badges {
        display: flex;
        gap: 16px;
        justify-content: center;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .trust-badge {
        min-height: 78px;
        padding: 8px 20px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 8px 22px rgba(0,0,0,0.25);
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .trust-badge:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(0,0,0,0.32);
    }

    .trust-badge img {
        height: 54px;
        width: auto;
    }

    .trust-badge--brand {
        padding: 10px 22px;
    }

    .trust-badge--brand .trust-brand-logo {
        height: 46px;
        width: 46px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .trust-brand-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        line-height: 1.35;
        text-align: right;
    }

    .trust-brand-text b {
        font-size: 1rem;
        font-weight: 800;
        color: #0f172a;
    }

    .trust-brand-text small {
        font-size: 0.72rem;
        color: #64748b;
    }

    .trust-badge--seal {
        text-decoration: none;
        background: #ffffff;
        padding: 8px 24px;
    }

    .trust-badge--seal img {
        height: 62px;
        width: auto;
        display: block;
    }

    .eta-badge {
        flex-direction: column;
        gap: 4px;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: #fff;
        min-width: 130px;
    }

    .badge-icon {
        font-size: 0.7rem;
        opacity: 0.9;
    }

    .badge-code {
        font-size: 0.85rem;
        font-weight: 700;
        font-family: monospace;
    }

    /* Bottom bar */
    .footer-bottom {
        padding: 22px 0;
        background: rgba(2,6,23,0.6);
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .bottom-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
    }

    .copyright-text {
        color: #64748b;
        font-size: 0.84rem;
        margin: 0;
    }

    .bottom-actions {
        display: flex;
        align-items: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .copyright-links {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .copyright-links a {
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.84rem;
        transition: color .2s ease;
    }

    .copyright-links a:hover {
        color: #60a5fa;
    }

    .separator {
        color: #475569;
        font-size: .6rem;
    }

    .back-top {
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 12px;
        background: linear-gradient(135deg, #3b82f6, #22d3ee);
        color: #fff;
        display: grid;
        place-items: center;
        cursor: pointer;
        box-shadow: 0 6px 16px rgba(59,130,246,0.35);
        transition: all .2s ease;
    }

    .back-top:hover {
        transform: translateY(-3px);
        filter: brightness(1.1);
    }

    /* Dark mode */
    [data-theme="dark"] .site-footer {
        background: #020617;
    }

    [data-theme="dark"] .trust-badge {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.12);
    }

    [data-theme="dark"] .trust-badge--seal {
        background: #f8fafc;
        border-color: rgba(255,255,255,0.16);
    }

    [data-theme="dark"] .trust-brand-text b {
        color: #f1f5f9;
    }

    [data-theme="dark"] .trust-brand-text small {
        color: #94a3b8;
    }

    /* Responsive */
    @media (max-width: 1199px) {
        .footer-grid {
            grid-template-columns: 1.3fr repeat(2, 1fr);
        }

        .contact-cards {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 991px) {
        .footer-grid {
            grid-template-columns: 1fr 1fr;
            gap: 36px 24px;
        }
    }

    @media (max-width: 767px) {
        .footer-main {
            padding: 36px 0 30px;
        }

        .nl-row {
            justify-content: center;
            text-align: center;
        }

        .nl-info {
            justify-content: center;
            text-align: right;
        }

        .nl-form-wrap {
            max-width: 100%;
            flex-basis: 100%;
        }

        .footer-grid {
            grid-template-columns: 1fr;
            gap: 4px;
        }

        .footer-brand-col {
            margin-bottom: 26px;
        }

        .footer-social {
            margin-top: 20px;
            padding-top: 16px;
        }

        .social-links {
            gap: 12px;
        }

        .social-link {
            width: 46px;
            height: 46px;
        }

        /* Accordion link groups */
        .footer-links-col {
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

        .footer-links-col:last-child {
            border-bottom: 0;
        }

        .footer-title {
            margin: 0;
            padding: 16px 0;
            cursor: pointer;
        }

        .footer-title::after {
            display: none;
        }

        .title-chev {
            display: inline-block;
        }

        .footer-links-col.open .title-chev {
            transform: rotate(180deg);
        }

        .footer-list-wrap {
            display: none;
            padding-bottom: 16px;
        }

        .footer-links-col.open .footer-list-wrap {
            display: block;
            animation: footFade .25s ease;
        }

        @keyframes footFade {
            from { opacity: 0; transform: translateY(-6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Contact cards */
        .footer-contact-strip {
            padding: 26px 0;
        }

        .contact-cards {
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .contact-card {
            padding: 13px;
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        .cc-arrow {
            display: none;
        }

        /* Trust */
        .footer-trust {
            padding: 24px 0;
        }

        .trust-badges {
            gap: 12px;
        }

        .trust-badge {
            flex: 1 1 100%;
            max-width: 100%;
        }

        .trust-badge--brand {
            padding: 12px 18px;
        }

        .trust-badge--brand .trust-brand-logo {
            height: 44px;
            width: 44px;
        }

        .trust-badge--seal {
            padding: 10px 18px;
        }

        .trust-badge--seal img {
            height: 66px;
        }

        /* Bottom */
        .bottom-bar {
            justify-content: center;
            text-align: center;
        }

        .bottom-actions {
            justify-content: center;
        }
    }

/* ===== Client/Shared/HomeStats.razor ===== */
.hs {
        padding: 0.45rem 0 1.5rem;
    }

    .hs-grid {
        position: relative;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
        padding: 0.85rem;
        border-radius: 22px;
        border: 1px solid var(--app-border, rgba(15, 23, 42, 0.08));
        background: linear-gradient(120deg,
            rgba(37, 99, 235, 0.10),
            rgba(139, 92, 246, 0.08) 35%,
            rgba(16, 185, 129, 0.10) 70%,
            rgba(37, 99, 235, 0.10));
        background-size: 260% 260%;
        animation: hs-drift 18s ease-in-out infinite;
    }

    .hs-card {
        --hs-accent: #2563eb;
        --hs-glow: rgba(37, 99, 235, 0.16);
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.2rem;
        padding: 0.85rem 0.55rem 0.8rem;
        border-radius: 16px;
        background: var(--app-surface, #fff);
        border: 1px solid var(--app-border, rgba(15, 23, 42, 0.07));
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
        text-align: center;
        overflow: hidden;
        transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    }

    .hs-card::before {
        content: "";
        position: absolute;
        top: 0;
        inset-inline: 22%;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: linear-gradient(90deg, transparent, var(--hs-accent), transparent);
        opacity: 0.9;
        pointer-events: none;
    }

    .hs-card::after {
        content: "";
        position: absolute;
        top: -64px;
        inset-inline-end: -48px;
        width: 132px;
        height: 132px;
        border-radius: 50%;
        background: radial-gradient(circle, var(--hs-glow), transparent 70%);
        opacity: 0.85;
        pointer-events: none;
    }

    .hs-card--monitor { --hs-accent: #2563eb; --hs-glow: rgba(37, 99, 235, 0.18); }
    .hs-card--errors { --hs-accent: #d97706; --hs-glow: rgba(245, 158, 11, 0.20); }
    .hs-card--learning { --hs-accent: #7c3aed; --hs-glow: rgba(139, 92, 246, 0.20); }
    .hs-card--services { --hs-accent: #059669; --hs-glow: rgba(16, 185, 129, 0.20); }

    .hs-icon {
        position: relative;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        font-size: 1.12rem;
        color: #fff;
        margin-bottom: 0.2rem;
        transition: transform 0.3s ease;
    }

    .hs-icon--pulse {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        box-shadow: 0 7px 16px rgba(37, 99, 235, 0.32);
    }

    .hs-card--monitor .hs-icon::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        border: 2px solid rgba(59, 130, 246, 0.5);
        animation: hs-ping 2.8s cubic-bezier(0, 0, 0.2, 1) infinite;
        pointer-events: none;
    }

    .hs-icon--search {
        background: linear-gradient(135deg, #fbbf24, #d97706);
        box-shadow: 0 7px 16px rgba(245, 158, 11, 0.30);
    }

    .hs-icon--book {
        background: linear-gradient(135deg, #a78bfa, #7c3aed);
        box-shadow: 0 7px 16px rgba(139, 92, 246, 0.30);
    }

    .hs-icon--wrench {
        background: linear-gradient(135deg, #34d399, #059669);
        box-shadow: 0 7px 16px rgba(16, 185, 129, 0.30);
    }

    .hs-value {
        font-size: 1.42rem;
        font-weight: 900;
        letter-spacing: -0.01em;
        color: var(--app-text, #0f172a);
        font-variant-numeric: tabular-nums;
        line-height: 1.35;
    }

    .hs-label {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 2.6em;
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1.4;
        color: var(--app-text-muted, #64748b);
    }

    @media (hover: hover) and (pointer: fine) {
        .hs-card:hover {
            transform: translateY(-3px);
            border-color: var(--hs-glow);
            box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
        }

        .hs-card:hover .hs-icon {
            transform: translateY(-2px) rotate(-5deg) scale(1.05);
        }
    }

    @keyframes hs-drift {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }

    @keyframes hs-ping {
        0% { transform: scale(1); opacity: 0.5; }
        70%, 100% { transform: scale(1.6); opacity: 0; }
    }

    @media (max-width: 767.98px) {
        .hs { padding-bottom: 1.1rem; }
        .hs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.55rem; gap: 0.5rem; border-radius: 18px; animation: none; }
        .hs-card { padding: 0.65rem 0.35rem 0.6rem; border-radius: 14px; }
        .hs-icon { width: 34px; height: 34px; font-size: 0.95rem; border-radius: 11px; }
        .hs-value { font-size: 1.1rem; }
        .hs-label { min-height: 2.7em; font-size: 0.67rem; line-height: 1.4; }
    }

    @media (max-width: 359.98px) {
        .hs-icon { width: 30px; height: 30px; font-size: 0.85rem; }
        .hs-value { font-size: 1rem; }
        .hs-label { font-size: 0.62rem; }
    }

    [data-theme="dark"] .hs-grid {
        background: linear-gradient(120deg,
            rgba(59, 130, 246, 0.16),
            rgba(139, 92, 246, 0.12) 35%,
            rgba(16, 185, 129, 0.14) 70%,
            rgba(59, 130, 246, 0.16));
        background-size: 260% 260%;
        border-color: rgba(148, 163, 184, 0.16);
    }

    [data-theme="dark"] .hs-card {
        background: rgba(30, 41, 59, 0.82);
        border-color: rgba(148, 163, 184, 0.16);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
    }

    [data-theme="dark"] .hs-value { color: #f8fafc; }
    [data-theme="dark"] .hs-label { color: #94a3b8; }

    @media (prefers-reduced-motion: reduce) {
        .hs-grid { animation: none; }
        .hs-icon,
        .hs-card { transition: none; }
        .hs-card--monitor .hs-icon::after { animation: none; }
    }

/* ===== Client/Shared/HomeErrorCodeSearch.razor ===== */
.hes { padding: 0.2rem 0 1.4rem; }

    .hes-card {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.4rem 2.6rem;
        max-width: 1000px;
        margin-inline: auto;
        padding: 1.5rem 1.75rem;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(14, 165, 233, 0.06));
        border: 1px solid var(--app-border, rgba(15, 23, 42, 0.08));
    }

    .hes-copy { flex: 0 1 auto; max-width: 430px; }

    .hes-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.72rem;
        font-weight: 900;
        color: var(--app-primary, #2563eb);
        background: rgba(37, 99, 235, 0.1);
        border-radius: 999px;
        padding: 0.18rem 0.6rem;
    }

    .hes-title {
        margin: 0.45rem 0 0.2rem;
        font-size: 1.4rem;
        font-weight: 900;
        color: var(--app-text, #0f172a);
    }

    .hes-sub {
        margin: 0;
        font-size: 0.88rem;
        line-height: 1.9;
        color: var(--app-text-secondary, #475569);
    }

    .hes-panel { position: relative; flex: 0 1 430px; min-width: 300px; }

    .hes-box {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.3rem 0.9rem;
        background: var(--app-surface, #fff);
        border: 1px solid var(--app-border-strong, rgba(15, 23, 42, 0.16));
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        transition: border-color 0.15s, box-shadow 0.15s;
    }

    .hes-box:focus-within {
        border-color: var(--app-primary, #2563eb);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    }

    .hes-chips {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-top: 0.6rem;
        padding-inline-start: 0.15rem;
    }

    .hes-chips__label {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--app-text-muted, #64748b);
        margin-inline-end: 0.15rem;
    }

    .hes-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        background: var(--app-surface, #fff);
        border: 1px solid var(--app-border, rgba(15, 23, 42, 0.1));
        color: var(--app-text-secondary, #475569);
        font-size: 0.72rem;
        text-decoration: none;
        transition: border-color 0.15s, color 0.15s, transform 0.15s;
    }

    .hes-chip:hover {
        border-color: var(--app-primary, #2563eb);
        color: var(--app-primary, #2563eb);
        transform: translateY(-1px);
    }

    .hes-chip__code {
        font-weight: 800;
        direction: ltr;
        unicode-bidi: isolate;
    }

    .hes-chip__brand { opacity: 0.7; }

    .hes-icon { color: #64748b; font-size: 0.95rem; }

    .hes-input {
        flex: 1 1 auto;
        min-width: 0;
        border: none;
        outline: none;
        background: transparent;
        padding: 0.7rem 0;
        font-size: 0.95rem;
        color: var(--app-text, #0f172a);
    }

    .hes-input::placeholder { color: #94a3b8; }

    .hes-clear {
        border: none;
        background: transparent;
        color: #94a3b8;
        padding: 0.2rem;
        display: grid;
        place-items: center;
        cursor: pointer;
        border-radius: 6px;
    }

    .hes-clear:hover { color: #dc2626; background: rgba(239, 68, 68, 0.08); }

    .hes-spinner {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
        border-radius: 50%;
        border: 2px solid rgba(37, 99, 235, 0.25);
        border-top-color: #2563eb;
        animation: hes-spin 0.7s linear infinite;
    }

    @keyframes hes-spin { to { transform: rotate(360deg); } }

    .hes-results {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: 0;
        z-index: 1200;
        padding: 0.35rem;
        background: var(--app-surface, #fff);
        border: 1px solid var(--app-border, rgba(15, 23, 42, 0.1));
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
        max-height: 340px;
        overflow-y: auto;
    }

    .hes-item {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.5rem 0.55rem;
        border-radius: 10px;
        text-decoration: none;
        color: inherit;
    }

    .hes-item:hover,
    .hes-item.is-selected { background: rgba(37, 99, 235, 0.08); }

    .hes-item.is-selected { outline: 1px solid rgba(37, 99, 235, 0.25); }

    .hes-code {
        flex: 0 0 auto;
        min-width: 48px;
        padding: 0.22rem 0.5rem;
        border-radius: 8px;
        background: rgba(37, 99, 235, 0.1);
        color: var(--app-primary, #2563eb);
        font-size: 0.78rem;
        font-weight: 900;
        text-align: center;
        font-variant-numeric: tabular-nums;
        direction: ltr;
    }

    .hes-item-body {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .hes-item-title {
        font-size: 0.8rem;
        font-weight: 800;
        color: var(--app-text, #0f172a);
    }

    .hes-item-desc {
        font-size: 0.72rem;
        color: var(--app-text-muted, #64748b);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hes-item-arrow { color: #94a3b8; font-size: 0.7rem; }

    .hes-all {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        margin-top: 0.2rem;
        padding: 0.5rem;
        border-top: 1px solid var(--app-border, rgba(15, 23, 42, 0.08));
        font-size: 0.76rem;
        font-weight: 800;
        color: var(--app-primary, #2563eb);
        text-decoration: none;
    }

    .hes-all:hover { text-decoration: underline; }

    .hes-all-count {
        font-size: 0.68rem;
        padding: 0.08rem 0.4rem;
        border-radius: 999px;
        background: rgba(37, 99, 235, 0.1);
    }

    .hes-empty {
        margin-top: 0.4rem;
        padding: 0.6rem 0.8rem;
        border-radius: 12px;
        background: var(--app-surface, #fff);
        border: 1px dashed var(--app-border-strong, rgba(15, 23, 42, 0.2));
        font-size: 0.78rem;
        color: var(--app-text-muted, #64748b);
    }

    .hes-empty a { color: var(--app-primary, #2563eb); font-weight: 800; text-decoration: none; margin-right: 0.3rem; }
    .hes-empty a:hover { text-decoration: underline; }

    [data-theme="dark"] .hes-card {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.08));
    }

    [data-theme="dark"] .hes-input { color: #e2e8f0; }
    [data-theme="dark"] .hes-item-title { color: #f1f5f9; }
    [data-theme="dark"] .hes-code { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
    [data-theme="dark"] .hes-chip { background: rgba(15, 23, 42, 0.45); border-color: rgba(148, 163, 184, 0.22); }
    [data-theme="dark"] .hes-results,
    [data-theme="dark"] .hes-empty { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4); }

    @media (max-width: 991.98px) {
        /* زیر این عرض، دو ستون برای متن و جستجو تنگ می‌شود؛ چیدمان عمودی. */
        .hes-card {
            flex-direction: column;
            align-items: stretch;
            gap: 1rem;
            max-width: none;
            padding: 1.2rem 1.25rem;
        }
        .hes-copy { max-width: none; }
        .hes-panel { flex: 1 1 auto; min-width: 0; }
        .hes-title { font-size: 1.15rem; }
    }

    @media (max-width: 767.98px) {
        .hes-card { gap: 0.8rem; padding: 0.95rem; }
        .hes-title { font-size: 1rem; }
        .hes-sub { font-size: 0.82rem; }
        .hes-box { padding: 0.25rem 0.75rem; }
        .hes-input { padding: 0.55rem 0; font-size: 0.9rem; }
        .hes-results { max-height: 300px; }
        .hes-chips {
            margin-top: 0.5rem;
            gap: 0.3rem;
            flex-wrap: nowrap;
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 2px;
            -webkit-mask-image: linear-gradient(to left, transparent 0, #000 14px);
            mask-image: linear-gradient(to left, transparent 0, #000 14px);
        }
        .hes-chips::-webkit-scrollbar { display: none; }
        .hes-chip { flex: 0 0 auto; font-size: 0.68rem; padding: 0.16rem 0.5rem; }
    }

    @media (prefers-reduced-motion: reduce) {
        .hes-spinner { animation: none; }
    }

/* ===== Client/Shared/HomeCategories.razor ===== */
.home-categories {
        position: relative;
        overflow: hidden;
        padding: 6px 0;
    }

    .categories-scroll-wrapper {
        display: flex;
        justify-content: center;
        overflow-x: auto;
        overflow-y: hidden;
        cursor: grab;
        padding: 6px 6px 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        max-width: 100%;
        width: 100%;
    }

    .categories-scroll-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .categories-scroll-wrapper:active {
        cursor: grabbing;
    }

    .categories-grid {
        display: flex;
        align-items: flex-start;
        gap: clamp(16px, 2.2vw, 36px);
        width: fit-content;
        justify-content: center;
        padding: 0 6px;
        max-width: 100%;
        margin: 0 auto;
    }

    .category-item-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: inherit;
        width: clamp(80px, 7.4vw, 94px);
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .category-item-link:hover {
        transform: translateY(-5px);
    }

    .category-circle-wrapper {
        position: relative;
        width: clamp(64px, 6.6vw, 84px);
        height: clamp(64px, 6.6vw, 84px);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .category-circle {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid rgba(15, 23, 42, 0.06);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: clamp(8px, 0.9vw, 11px);
        font-size: clamp(1.2rem, 1.8vw, 1.8rem);
        color: #1e293b;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 10px 22px rgba(15, 23, 42, 0.07);
        transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
        overflow: hidden;
    }

    .category-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: contain;
    }

    .category-item-link:hover .category-circle {
        border-color: rgba(37, 99, 235, 0.32);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 14px 28px rgba(37, 99, 235, 0.16);
    }

    .category-name {
        display: block;
        min-height: 2.9em;
        font-size: clamp(0.78rem, 0.9vw, 0.86rem);
        font-weight: 700;
        line-height: 1.45;
        text-align: center;
        text-wrap: pretty;
        color: #334155;
        transition: color 0.25s ease;
    }

    .category-item-link:hover .category-name {
        color: var(--app-primary, #2563eb);
    }

    [data-theme="dark"] .category-circle {
        border-color: rgba(148, 163, 184, 0.16);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), 0 10px 22px rgba(0, 0, 0, 0.35);
    }

    [data-theme="dark"] .category-item-link:hover .category-circle {
        border-color: rgba(96, 165, 250, 0.45);
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12), 0 14px 28px rgba(37, 99, 235, 0.3);
    }

    [data-theme="dark"] .category-name { color: #cbd5e1; }
    [data-theme="dark"] .category-item-link:hover .category-name { color: #93c5fd; }

    @media (max-width: 991.98px) {
        .categories-scroll-wrapper {
            justify-content: flex-start;
            /* لبهٔ محو، نشانهٔ ادامه‌دار بودن ردیف */
            -webkit-mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
        }

        .categories-grid { justify-content: flex-start; }
    }

    @media (max-width: 768px) {
        .categories-scroll-wrapper { padding: 4px 16px 10px; }

        .categories-grid {
            gap: 16px;
            padding: 0 2px;
        }

        .category-item-link { width: 78px; }
        .category-circle-wrapper { width: 62px; height: 62px; margin-bottom: 8px; }
        .category-circle { padding: 8px; }
        .category-name { font-size: 0.72rem; }
    }

/* ===== Client/Shared/FeatureCardsRow.razor ===== */
.feature-cards {
        margin-top: 10px;
    }

    .feature-cards__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 0 20px;
    }

    .feature-card {
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
        padding: 24px 20px;
        text-decoration: none;
        color: #1a202c;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        min-height: 160px;
        transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(0,0,0,0.04);
        position: relative;
        overflow: hidden;
    }

    .feature-card::before {
        content: "";
        position: absolute;
        inset: -2px;
        opacity: 0;
        transition: opacity 300ms ease;
        border-radius: 18px;
        z-index: 0;
    }

    .feature-card__icon,
    .feature-card__text {
        position: relative;
        z-index: 1;
    }

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.16);
    }

    .feature-card.expertise {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0ea5e9 100%);
        color: #ffffff;
        border-color: rgba(37, 99, 235, 0.18);
    }

    .feature-card.repair {
        background: linear-gradient(135deg, #ea580c 0%, #f97316 40%, #eab308 100%);
        color: #ffffff;
        border-color: rgba(234, 88, 12, 0.18);
    }

    .feature-card.expertise:hover { border-color: rgba(37, 99, 235, 0.35); }
    .feature-card.repair:hover { border-color: rgba(234, 88, 12, 0.35); }

    .feature-card.expertise::before {
        background: radial-gradient(1200px 300px at 50% 0%, rgba(255, 255, 255, 0.20), transparent 55%),
                    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
    }
    .feature-card.repair::before {
        background: radial-gradient(1200px 300px at 50% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
                    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
    }
    .feature-card:hover::before { opacity: 1; }

    .feature-card.expertise .feature-card__icon {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
    }
    .feature-card.expertise:hover .feature-card__icon {
        background: rgba(255, 255, 255, 0.28);
        color: #ffffff;
    }

    .feature-card.repair .feature-card__icon {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
    }
    .feature-card.repair:hover .feature-card__icon {
        background: rgba(255, 255, 255, 0.28);
        color: #ffffff;
    }

    .feature-card__icon {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(47, 178, 106, 0.1), rgba(47, 178, 106, 0.2));
        color: #2fb26a;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 300ms;
    }

    .feature-card:hover .feature-card__icon {
        transform: scale(1.1) rotate(5deg);
        background: rgba(255, 255, 255, 0.28);
        color: #ffffff;
    }

    .feature-card:active {
        transform: translateY(-2px) scale(0.985);
    }

    .feature-card__icon ::deep .oi {
        font-size: 1.8rem;
    }

    .feature-card__title {
        font-weight: 800;
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.4;
    }

    .feature-card__desc {
        font-size: 0.9rem;
        color: rgba(255,255,255,0.88);
        margin: 0;
    }

    @media (max-width: 899.98px) {
        .feature-cards {
            margin-top: 15px;
        }

        .feature-cards__grid {
            padding: 0 8px;
            gap: 10px;
        }

        .feature-card {
            padding: 16px 10px;
            min-height: 120px;
            gap: 8px;
            border-radius: 12px;
        }

        .feature-card__icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
        }

        .feature-card__icon ::deep .oi {
            font-size: 1.2rem;
        }

        .feature-card__title {
            font-size: 0.9rem;
        }

        .feature-card__desc {
            font-size: 0.78rem;
        }
    }

    @media (min-width: 900px) {
        .feature-cards__grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 28px;
            padding: 0 40px;
        }

        .feature-card {
            padding: 36px 28px;
            min-height: 220px;
            border-radius: 22px;
        }

        .feature-card__icon {
            width: 72px;
            height: 72px;
            border-radius: 22px;
        }

        .feature-card__title {
            font-size: 1.25rem;
        }

        .feature-card__desc {
            font-size: 0.95rem;
        }
    }

/* ===== Client/Shared/SpecialOffers.razor ===== */
.special-offers {
        background: #fff;
        padding: 40px 0 !important;
    }

    [data-theme="dark"] .special-offers {
        background: var(--app-bg);
    }

    @media (min-width: 900px) {
        .special-offers {
            padding: 24px 0 !important;
        }

        .special-offers__wrapper {
            padding: 18px !important;
        }

        .products-scroll-container {
            padding: 8px 10px 18px 10px;
        }
    }

    .special-offers__wrapper {
        background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    }

    .products-scroll-container {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding: 10px 10px 30px 10px;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
    }

    .products-scroll-container::-webkit-scrollbar { display: none; }
    .products-scroll-container.active { cursor: grabbing; }

    .product-scroll-item {
        flex: 0 0 280px;
        min-width: 280px;
        display: flex;
    }

    @media (max-width: 768px) {
        .product-scroll-item { flex: 0 0 220px; min-width: 220px; }
        .products-scroll-container { gap: 15px; padding: 10px 8px 30px 8px; }
        .special-offers__wrapper { border-radius: 16px !important; margin: 0 8px; }
    }

    .discount-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: #ef4444;
        color: white;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: bold;
        z-index: 2;
    }

    .discount-timer {
        color: #fff;
        font-size: 0.75rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(135deg, #ef4444, #b91c1c);
        padding: 6px 10px;
        border-radius: 8px;
        width: 100%;
        justify-content: center;
    }

    .timer-text { font-family: 'Vazirmatn', sans-serif; white-space: nowrap; }

    .product-card {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
        border-radius: 24px !important;
    }

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    }

    .product-card__img-wrap {
        height: 180px;
        overflow: hidden;
        border-radius: 24px 24px 0 0;
    }

    .product-card__img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 15px;
        transition: transform 0.5s ease;
    }

    .product-card:hover .product-card__img { transform: scale(1.08); }

    .product-card__title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.8em;
        line-height: 1.4;
        font-size: 0.9rem;
    }

    .product-card__actions {
        position: absolute;
        bottom: 10px;
        right: 10px;
        opacity: 1;
        transform: none;
        transition: all 0.3s ease;
        z-index: 3;
    }

/* ===== Client/Shared/LatestProducts.razor ===== */
.latest-products {
        padding: 60px 0 !important;
        overflow: hidden;
    }

    @media (min-width: 900px) {
        .latest-products {
            padding: 32px 0 !important;
        }

        .products-scroll-container {
            padding: 8px 8px 18px 8px;
        }
    }

    .products-scroll-container {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding: 10px 8px 30px 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: none;
        -webkit-overflow-scrolling: touch;
    }
    .products-scroll-container::-webkit-scrollbar {
        display: none;
    }
    .product-scroll-item {
        flex: 0 0 280px;
        min-width: 280px;
        display: flex;
    }
    @media (max-width: 768px) {
        .product-scroll-item {
            flex: 0 0 220px;
            min-width: 220px;
        }
        .products-scroll-container {
            gap: 15px;
        }
    }

    .discount-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: #ef4444;
        color: white;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: bold;
        z-index: 2;
    }

    .discount-badge--perm {
        background: #2563eb;
    }

    .discount-timer-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .discount-timer-label {
        color: #64748b;
        font-size: 0.7rem;
    }

    .discount-timer {
        color: #fff;
        font-size: 0.75rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(135deg, #ef4444, #b91c1c);
        padding: 4px 10px;
        border-radius: 6px;
        width: 100%;
        justify-content: center;
    }

    .timer-text {
        font-family: 'Vazirmatn', sans-serif;
        letter-spacing: 0.5px;
    }

    .product-card {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
        border: 1px solid #f1f5f9 !important;
        border-radius: 24px !important;
    }
    .product-card--unavailable {
        opacity: 0.65;
        filter: grayscale(0.35);
    }
    .product-card--unavailable .product-card__img-wrap {
        background: #f3f4f6 !important;
    }
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.06) !important;
    }
    .product-card__img-wrap {
        height: 200px;
        overflow: hidden;
        border-radius: 24px 24px 0 0;
    }
    .product-card__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    .product-card:hover .product-card__img {
        transform: scale(1.08);
    }
    .product-card__title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.8em;
        line-height: 1.4;
    }
    .btn-white {
        background: #fff;
        color: #333;
    }
    .product-card__actions {
        position: absolute;
        bottom: 10px;
        right: 10px;
        opacity: 1;
        transform: none;
        transition: all 0.3s ease;
    }

    /* Skeleton Styles */
    .product-card-skeleton .skeleton-img {
        height: 160px;
        background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
    }
    .skeleton-text {
        height: 15px;
        background: #f0f0f0;
        border-radius: 4px;
        animation: skeleton-loading 1.5s infinite;
    }
    @keyframes skeleton-loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

/* ===== Client/Shared/LatestCourses.razor ===== */
.academy-section {
        background: #fff;
        padding: 80px 0 !important;
    }

    @media (min-width: 900px) {
        .academy-section {
            padding: 28px 0 !important;
        }

        .academy-scroll-container {
            padding: 6px 8px 4px 8px;
        }

        .academy-card__content {
            padding: 18px !important;
        }

        .academy-card__title {
            margin-bottom: 10px !important;
        }

        .academy-card__footer {
            margin-top: 14px !important;
            padding-top: 10px !important;
        }
    }

    .h3-sm { font-size: 1.75rem; }

    @media (max-width: 576px) {
        .h3-sm { font-size: 1.4rem; line-height: 1.35; }
    }

    .fw-black { font-weight: 900; }

    .academy-scroll-container {
        display: flex;
        gap: 24px;
        overflow-x: auto;
        padding: 10px 8px 40px 8px;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
    }

    .academy-scroll-container::-webkit-scrollbar { display: none; }
    .academy-scroll-container.active { cursor: grabbing; }

    .academy-scroll-item {
        flex: 0 0 340px;
        min-width: 340px;
    }

    @media (max-width: 768px) {
        .academy-scroll-item {
            flex: 0 0 280px;
            min-width: 280px;
        }
        .academy-scroll-container { 
            gap: 16px; 
            padding: 10px 8px 40px 8px;
        }
    }

    .academy-card {
        background: #fff;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid #f1f5f9 !important;
        border-radius: 24px !important;
    }

    .academy-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08) !important;
        border-color: var(--bs-primary) !important;
    }

    .academy-card__thumb {
        height: 190px;
        overflow: hidden;
        border-radius: 24px 24px 0 0;
    }

    .academy-card__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .academy-card:hover .academy-card__thumb img {
        transform: scale(1.1);
    }

    .academy-card__badge {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 6px 14px;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 800;
        color: #fff;
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .academy-card__badge--course {
        background: rgba(37, 99, 235, 0.85);
    }

    .academy-card__title {
        line-height: 1.6;
        height: 2.8em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 3em;
    }

    /* Skeleton */
    .academy-item-skeleton .skeleton-thumb {
        height: 180px;
        background: #f1f5f9;
        border-radius: 12px;
    }
    .skeleton-line {
        height: 14px;
        background: #f1f5f9;
        border-radius: 4px;
    }

/* ===== Client/Shared/LatestLessons.razor ===== */
.academy-section {
        background: #fff;
        padding: 80px 0 !important;
    }

    @media (min-width: 900px) {
        .academy-section {
            padding: 28px 0 !important;
        }

        .academy-scroll-container {
            padding: 6px 8px 4px 8px;
        }

        .academy-card__content {
            padding: 18px !important;
        }

        .academy-card__title {
            margin-bottom: 10px !important;
        }

        .academy-card__footer {
            margin-top: 14px !important;
            padding-top: 10px !important;
        }
    }

    .h3-sm { font-size: 1.75rem; }

    @media (max-width: 576px) {
        .h3-sm { font-size: 1.4rem; line-height: 1.35; }
    }

    .fw-black { font-weight: 900; }

    .academy-scroll-container {
        display: flex;
        gap: 24px;
        overflow-x: auto;
        padding: 10px 8px 40px 8px;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
    }

    .academy-scroll-container::-webkit-scrollbar { display: none; }
    .academy-scroll-container.active { cursor: grabbing; }

    .academy-scroll-item {
        flex: 0 0 340px;
        min-width: 340px;
    }

    @media (max-width: 768px) {
        .academy-scroll-item {
            flex: 0 0 280px;
            min-width: 280px;
        }
        .academy-scroll-container { 
            gap: 16px; 
            padding: 10px 8px 40px 8px;
        }
    }

    .academy-card {
        background: #fff;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid #f1f5f9 !important;
        border-radius: 24px !important;
    }

    .academy-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08) !important;
        border-color: var(--bs-primary) !important;
    }

    .academy-card__thumb {
        height: 190px;
        overflow: hidden;
        border-radius: 24px 24px 0 0;
    }

    .academy-card__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .academy-card:hover .academy-card__thumb img {
        transform: scale(1.1);
    }

    .academy-card__badge {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 6px 14px;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 800;
        color: #fff;
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .academy-card__badge--course {
        background: rgba(37, 99, 235, 0.85); /* blue */
    }

    .academy-card__badge--article {
        background: rgba(16, 185, 129, 0.85); /* green */
    }

    .academy-card__title {
        line-height: 1.6;
        height: 2.8em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 3em;
    }

    /* Skeleton */
    .academy-item-skeleton .skeleton-thumb {
        height: 180px;
        background: #f1f5f9;
        border-radius: 12px;
    }
    .skeleton-line {
        height: 14px;
        background: #f1f5f9;
        border-radius: 4px;
    }

/* ===== Client/Shared/LatestArticles.razor ===== */
.academy-section {
        background: #fff;
        padding: 30px 0 !important;
    }

    @media (min-width: 900px) {
        .academy-section {
            padding: 28px 0 !important;
        }

        .academy-scroll-container {
            padding: 6px 8px 4px 8px;
        }

        .academy-card__content {
            padding: 18px !important;
        }

        .academy-card__title {
            margin-bottom: 10px !important;
        }

        .academy-card__footer {
            margin-top: 14px !important;
            padding-top: 10px !important;
        }
    }

    .h3-sm { font-size: 1.75rem; }

    @media (max-width: 576px) {
        .h3-sm { font-size: 1.4rem; line-height: 1.35; }
    }

    .fw-black { font-weight: 900; }

    .academy-scroll-container {
        display: flex;
        gap: 24px;
        overflow-x: auto;
        padding: 10px 8px 40px 8px;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
    }

    .academy-scroll-container::-webkit-scrollbar { display: none; }
    .academy-scroll-container.active { cursor: grabbing; }

    .academy-scroll-item {
        flex: 0 0 340px;
        min-width: 340px;
    }

    @media (max-width: 768px) {
        .academy-scroll-item {
            flex: 0 0 280px;
            min-width: 280px;
        }
        .academy-scroll-container { 
            gap: 16px; 
            padding: 10px 8px 40px 8px;
        }
    }

    .academy-card {
        background: #fff;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid #f1f5f9 !important;
        border-radius: 24px !important;
    }

    .academy-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08) !important;
        border-color: var(--bs-primary) !important;
    }

    .academy-card__thumb {
        height: 190px;
        overflow: hidden;
        border-radius: 24px 24px 0 0;
    }

    .academy-card__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .academy-card:hover .academy-card__thumb img {
        transform: scale(1.1);
    }

    .academy-card__badge {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 6px 14px;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 800;
        color: #fff;
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .academy-card__badge--article {
        background: rgba(16, 185, 129, 0.85);
    }

    .academy-card__title {
        line-height: 1.6;
        height: 2.8em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 3em;
    }

    /* Skeleton */
    .academy-item-skeleton .skeleton-thumb {
        height: 180px;
        background: #f1f5f9;
        border-radius: 12px;
    }
    .skeleton-line {
        height: 14px;
        background: #f1f5f9;
        border-radius: 4px;
    }

/* ===== Client/Shared/TechnicalGuide.razor ===== */
.tg-section {
        padding: 20px 0;
        background: #fff;
    }
    .tg-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 16px;
    }

    /* 2-column grid */
    .tg-grid-2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    @media (min-width: 768px) {
        .tg-grid-2 {
            grid-template-columns: 1fr 1fr;
            gap: 32px;
        }
        .tg-section { padding: 28px 0; }
        .tg-container { padding: 0 24px; }
    }

    /* Column */
    .tg-col {
        min-width: 0;
    }
    .tg-col-title {
        font-size: 1rem;
        font-weight: 900;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .tg-col-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        font-size: 0.9rem;
    }
    .tg-col-icon--blue {
        background: rgba(37, 99, 235, 0.1);
        color: #2563eb;
    }
    .tg-col-icon--green {
        background: rgba(16, 185, 129, 0.1);
        color: #059669;
    }
    /* List */
    .tg-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    /* Row item */
    .tg-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 12px;
        text-decoration: none;
        transition: background 0.2s;
        background: #fff;
        border: 1px solid transparent;
        overflow: hidden;
    }
    .tg-row:hover {
        background: #f8fafc;
        border-color: #f1f5f9;
    }
    .tg-row:active {
        background: #f1f5f9;
    }

    .tg-row-icon {
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        font-weight: 800;
        overflow: hidden;
    }
    .tg-row-icon--code {
        background: linear-gradient(135deg, #2563eb, #6366f1);
        color: #fff;
    }
    .tg-row-icon--sensor {
        background: #f1f5f9;
        color: #64748b;
    }
    .tg-row-icon--sensor img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
    }
    .tg-row-icon--sensor .oi {
        font-size: 1rem;
    }

    .tg-row-body {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    .tg-row-title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.82rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 2px;
        line-height: 1.4;
    }
    .tg-desc-text {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1;
        min-width: 0;
    }
    .tg-solution-text {
        font-size: 0.72rem;
        color: #065f46;
        background: #ecfdf5;
        border: 1px dashed #a7f3d0;
        border-radius: 6px;
        padding: 4px 8px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        box-sizing: border-box;
    }
    .tg-row-arrow {
        flex-shrink: 0;
        color: #cbd5e1;
        font-size: 0.7rem;
        transition: transform 0.2s;
    }
    .tg-row:hover .tg-row-arrow {
        transform: translateX(-2px);
    }

    .tg-badge {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 6px;
        font-size: 0.65rem;
        font-weight: 700;
        line-height: 1.5;
        white-space: nowrap;
    }
    .tg-badge--brand {
        background: rgba(37, 99, 235, 0.1);
        color: #2563eb;
    }
    .tg-badge--sensor {
        background: rgba(139, 92, 246, 0.1);
        color: #7c3aed;
    }
    .tg-row-desc {
        font-size: 0.75rem;
        color: #94a3b8;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tg-size-tag {
        display: inline-block;
        background: rgba(245, 158, 11, 0.12);
        color: #d97706;
        padding: 1px 7px;
        border-radius: 4px;
        font-size: 0.65rem;
        font-weight: 700;
        margin-right: 4px;
    }

    /* Skeleton */
    .tg-skel-section {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .tg-sk-head {
        height: 32px;
        width: 120px;
        background: #f1f5f9;
        border-radius: 8px;
    }
    .tg-sk-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .tg-sk-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
    }
    .tg-sk-icon {
        width: 42px;
        height: 42px;
        background: #f1f5f9;
        border-radius: 10px;
        flex-shrink: 0;
    }
    .tg-sk-line {
        height: 11px;
        background: #f1f5f9;
        border-radius: 4px;
    }
    .tg-sk-line.w-50 { width: 50%; }
    .tg-sk-line.w-75 { width: 75%; }
    .mb-1 { margin-bottom: 4px; }

    [data-theme="dark"] .tg-section { background: var(--app-bg, #0b1220); }
    [data-theme="dark"] .tg-col-title { color: #e2e8f0; }
    [data-theme="dark"] .tg-row { background: var(--app-surface, #1e293b); }
    [data-theme="dark"] .tg-row:hover { background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.16); }
    [data-theme="dark"] .tg-row:active { background: rgba(148, 163, 184, 0.14); }
    [data-theme="dark"] .tg-row-title { color: #e2e8f0; }
    [data-theme="dark"] .tg-row-icon--sensor { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }
    [data-theme="dark"] .tg-solution-text { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.28); color: #6ee7b7; }
    [data-theme="dark"] .tg-row-arrow { color: #64748b; }
    [data-theme="dark"] .tg-sk-head,
    [data-theme="dark"] .tg-sk-icon,
    [data-theme="dark"] .tg-sk-line { background: rgba(148, 163, 184, 0.12); }

/* ===== Client/Shared/MegaMenu.razor ===== */
.mega-item { position: relative; }

    .mega-caret {
        font-size: 0.6rem !important;
        opacity: 0.55;
        transition: transform 0.18s ease;
    }

    .mega-item:hover .mega-caret,
    .mega-item:focus-within .mega-caret { transform: rotate(180deg); }

    .mega-panel {
        position: absolute;
        top: calc(100% + 7px);
        right: 0;
        z-index: 1200;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 190px;
        gap: 1.1rem;
        width: 640px;
        padding: 1rem 1.1rem;
        background: var(--app-surface, #fff);
        color: var(--app-text, #0f172a);
        border: 1px solid var(--app-border, rgba(15, 23, 42, 0.1));
        border-radius: 16px;
        box-shadow: 0 24px 50px rgba(2, 6, 23, 0.18);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
        direction: rtl;
        cursor: default;
    }

    .mega-panel--sm {
        grid-template-columns: 1fr;
        width: 300px;
        padding: 0.8rem 0.85rem 0.75rem;
    }

    .mega-item:hover .mega-panel,
    .mega-item:focus-within .mega-panel {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* Set by the panel click handler in index.html: keeps the panel shut
       until the pointer leaves the item, even though hover/focus persist. */
    .mega-item.mega-item--closed .mega-panel {
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
    }

    .mega-panel::before {
        content: "";
        position: absolute;
        top: -8px;
        right: 0;
        left: 0;
        height: 8px;
    }

    .mega-head {
        font-size: 0.71rem;
        font-weight: 900;
        color: var(--app-text-muted, #64748b);
        margin-bottom: 0.55rem;
        letter-spacing: 0.02em;
    }

    .mega-links {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.25rem 0.7rem;
        max-height: 250px;
        overflow-y: auto;
    }

    .mega-panel .mega-head {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        margin: 0 0 0.3rem;
        padding: 0 0.4rem 0.6rem;
        border-bottom: 1px solid var(--app-border, rgba(15, 23, 42, 0.08));
    }

    .mega-panel .mega-head::before {
        content: "";
        flex: 0 0 auto;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--app-primary, #2563eb);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

    .mega-panel--sm .mega-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-height: 316px;
        scrollbar-width: thin;
    }

    .mega-panel--sm .mega-links a {
        justify-content: flex-start;
        padding: 0.34rem 0.4rem;
        border-radius: 8px;
        border-bottom: 1px solid var(--app-border, rgba(15, 23, 42, 0.06));
    }

    .mega-panel--sm .mega-links a:last-of-type { border-bottom: 0; }

    .mega-panel--brands .mega-all {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.4rem;
        margin-top: 0.45rem;
        padding: 0.55rem 0.4rem 0.1rem;
        border-top: 1px solid var(--app-border, rgba(15, 23, 42, 0.1));
        border-radius: 0;
        color: var(--app-primary, #2563eb);
        font-size: 0.74rem;
        font-weight: 900;
        text-decoration: none;
    }

    .mega-panel--brands .mega-all .oi { font-size: 0.6rem; opacity: 0.7; }

    .mega-links a.mega-brand { justify-content: flex-start; gap: 0.55rem; }

    .mega-brand__logo {
        flex: 0 0 auto;
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        border: 1px solid rgba(37, 99, 235, 0.14);
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        color: #1d4ed8;
        font-size: 0.78rem;
        font-weight: 900;
        line-height: 1;
        font-variant-numeric: tabular-nums;
    }

    .mega-brand__name {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mega-brand__arrow {
        flex: 0 0 auto;
        font-size: 0.56rem;
        color: var(--app-primary, #2563eb);
        opacity: 0.3;
        transform: translateX(0);
        transition: opacity 0.14s ease, transform 0.14s ease;
    }

    .mega-links a.mega-brand:hover .mega-brand__arrow,
    .mega-links a.mega-brand:focus-visible .mega-brand__arrow { opacity: 0.9; transform: translateX(-2px); }

    .mega-panel--store .mega-links { gap: 0 0.9rem; }

    .mega-panel--store .mega-links a {
        min-width: 0;
        padding: 0.38rem 0.45rem;
        border-radius: 8px;
        border-bottom: 1px solid var(--app-border, rgba(15, 23, 42, 0.06));
    }

    .mega-panel--store .mega-col--narrow .mega-links { grid-template-columns: minmax(0, 1fr); }

    .mega-count { flex: 0 0 auto; }

    .mega-panel--store .mega-links .mega-all { border-bottom: 0; }

    .mega-panel--store .mega-links a.mega-cat { justify-content: flex-start; gap: 0.5rem; }

    .mega-cat__img {
        flex: 0 0 auto;
        width: 26px;
        height: 26px;
        border-radius: 8px;
        object-fit: cover;
        background: #f1f5f9;
    }

    .mega-cat__ico {
        flex: 0 0 auto;
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        background: rgba(37, 99, 235, 0.08);
        color: var(--app-primary, #2563eb);
        font-size: 0.72rem;
    }

    .mega-cat__name {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mega-panel--store .mega-col--narrow .mega-links a {
        justify-content: flex-start;
        gap: 0.45rem;
    }

    .mega-quick__ico {
        flex: 0 0 auto;
        font-size: 0.72rem;
        color: var(--app-primary, #2563eb);
        opacity: 0.55;
    }

    .mega-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.4rem;
        padding: 0.4rem 0.55rem;
        border-radius: 9px;
        color: var(--app-text, #0f172a);
        font-size: 0.79rem;
        font-weight: 700;
        text-decoration: none;
        transition: background 0.14s ease, color 0.14s ease;
    }

    .mega-links a:hover {
        background: rgba(37, 99, 235, 0.08);
        color: var(--app-primary, #2563eb);
    }

    .mega-count {
        font-size: 0.66rem;
        font-weight: 800;
        color: var(--app-text-muted, #64748b);
        background: rgba(15, 23, 42, 0.05);
        border-radius: 999px;
        padding: 0.05rem 0.4rem;
    }

    .mega-links .mega-all {
        grid-column: 1 / -1;
        justify-content: flex-start;
        font-weight: 900;
        color: var(--app-primary, #2563eb);
        border-top: 1px solid var(--app-border, rgba(15, 23, 42, 0.1));
        border-radius: 0;
        margin-top: 0.25rem;
        padding-top: 0.5rem;
    }

    [data-theme="dark"] .mega-panel { box-shadow: 0 26px 56px rgba(0, 0, 0, 0.5); }
    [data-theme="dark"] .mega-brand__logo {
        background: rgba(37, 99, 235, 0.16);
        border-color: rgba(59, 130, 246, 0.26);
        color: #93c5fd;
    }
    [data-theme="dark"] .mega-cat__img { background: #0f172a; }
    [data-theme="dark"] .mega-cat__ico {
        background: rgba(59, 130, 246, 0.16);
        color: #93c5fd;
    }

    @media (max-width: 1199.98px) {
        .mega-panel { width: 560px; grid-template-columns: minmax(0, 1fr) 170px; }
        .mega-panel--sm { width: 300px; grid-template-columns: minmax(0, 1fr); }
        .mega-panel--store .mega-cat__name { white-space: normal; line-height: 1.5; }
    }

/* ===== Client/Shared/GlobalSearch.razor ===== */
.global-search {
        position: relative;
        width: 100%;
    }
    .global-search__input {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255,255,255,0.92);
        border-radius: 999px;
        padding: 6px 10px;
    }
    .global-search__textbox {
        border: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        font-size: 0.9rem;
    }
    .global-search__textbox:focus {
        outline: none;
        box-shadow: none;
    }
    .global-search__clear {
        border: 0;
        background: transparent;
        padding: 2px 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #6b7280;
    }
    .global-search__panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        background: #fff;
        border-radius: 14px;
        border: 1px solid rgba(0,0,0,0.08);
        overflow: hidden;
        z-index: 2000;
    }
    .global-search__backdrop {
        position: fixed;
        inset: 0;
        background: transparent;
        border: 0;
        padding: 0;
        margin: 0;
        z-index: 1990;
    }
    .global-search__section {
        padding: 10px;
    }
    .global-search__section + .global-search__section {
        border-top: 1px solid rgba(0,0,0,0.06);
    }
    .global-search__section-title {
        font-size: 0.75rem;
        font-weight: 800;
        color: #6b7280;
        margin-bottom: 8px;
    }
    .global-search__item {
        width: 100%;
        text-align: right;
        border: 0;
        background: transparent;
        padding: 8px 10px;
        border-radius: 10px;
    }
    .global-search__item:hover {
        background: rgba(13,110,253,0.06);
    }
    .global-search__item.is-selected {
        background: rgba(13,110,253,0.12);
        outline: 2px solid rgba(13,110,253,0.25);
    }
    .global-search__item-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: #111827;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .global-search__item-subtitle {
        font-size: 0.78rem;
        color: #6b7280;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 2px;
    }

/* ===== Client/Shared/GlobalBreadcrumb.razor ===== */
.gb {
        padding: 0.7rem 0 0.1rem;
    }

    .gb ol {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.3rem;
        margin: 0;
        padding: 0;
        list-style: none;
        font-size: 0.76rem;
        color: var(--app-text-muted, #64748b);
    }

    .gb li {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        line-height: 1.7;
    }

    .gb li + li::before {
        content: "‹";
        color: var(--app-text-muted, #94a3b8);
        font-size: 0.85rem;
        opacity: 0.7;
    }

    .gb a {
        color: var(--app-text-muted, #64748b);
        text-decoration: none;
        transition: color 0.15s ease;
    }

    .gb a:hover {
        color: var(--app-primary, #2563eb);
    }

    .gb-current {
        color: var(--app-text, #0f172a);
        font-weight: 800;
        max-width: 60vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ===== Client/Pages/Index.razor ===== */
/* ── Home SEO intro (under hero) ── */
    .home-seo-intro {
        margin-top: 10px;
        margin-bottom: 6px;
    }

    .home-seo-intro__card {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 16px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid rgba(37, 99, 235, 0.10);
        border-radius: 20px;
        padding: 22px 22px 20px;
        box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .home-seo-intro__card::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #2563eb, #38bdf8);
    }

    .home-seo-intro__card::after {
        content: "";
        position: absolute;
        inset-inline-end: -70px;
        top: -70px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.10), rgba(37, 99, 235, 0) 70%);
        pointer-events: none;
    }

    .home-seo-intro__icon {
        flex: 0 0 auto;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: rgba(37, 99, 235, 0.10);
        color: #2563eb;
        font-size: 1.35rem;
        margin-top: 2px;
        z-index: 1;
    }

    .home-seo-intro__body {
        flex: 1 1 auto;
        min-width: 0;
        z-index: 1;
    }

    .home-seo-intro__eyebrow {
        display: inline-block;
        font-size: 0.72rem;
        font-weight: 700;
        color: #2563eb;
        background: rgba(37, 99, 235, 0.08);
        border: 1px dashed rgba(37, 99, 235, 0.40);
        border-radius: 999px;
        padding: 3px 12px;
        margin-bottom: 9px;
    }

    .home-seo-intro__body h2 {
        font-size: 1.15rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.9;
        margin: 0 0 12px;
        padding-bottom: 11px;
        border-bottom: 1px dashed rgba(15, 23, 42, 0.16);
    }

    .home-seo-intro__text p {
        font-size: 0.93rem;
        line-height: 2.15;
        color: #475569;
        text-align: justify;
        margin: 0 0 11px;
    }

    .home-seo-intro__text p:last-child {
        margin-bottom: 0;
    }

    .home-seo-intro__text a.home-seo-intro__chip {
        display: inline-block;
        padding: 1px 12px;
        margin: 2px 2px;
        border: 1px dashed #93c5fd;
        background: #eff6ff;
        color: #1d4ed8;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 700;
        line-height: 1.9;
        text-decoration: none;
        white-space: nowrap;
        transition: all 0.18s ease;
    }

    .home-seo-intro__text a.home-seo-intro__chip:hover,
    .home-seo-intro__text a.home-seo-intro__chip:focus {
        background: #2563eb;
        border-color: #2563eb;
        border-style: solid;
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    }

    @media (max-width: 575.98px) {
        .home-seo-intro {
            margin-top: 6px;
        }

        .home-seo-intro__card {
            flex-direction: column;
            gap: 12px;
            padding: 16px 16px 15px;
            border-radius: 16px;
        }

        .home-seo-intro__icon {
            width: 40px;
            height: 40px;
            font-size: 1.15rem;
            border-radius: 12px;
            margin-top: 0;
        }

        .home-seo-intro__eyebrow {
            font-size: 0.7rem;
            padding: 2px 10px;
            margin-bottom: 7px;
        }

        .home-seo-intro__body h2 {
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 10px;
            padding-bottom: 9px;
        }

        .home-seo-intro__text p {
            font-size: 0.88rem;
            line-height: 2.05;
            text-align: start;
            margin-bottom: 9px;
        }

        .home-seo-intro__text a.home-seo-intro__chip {
            font-size: 0.8rem;
            padding: 1px 10px;
        }
    }

    /* ── Quick entries (replaces the old 6-pill nav) ── */
    .home-entries {
        margin-top: 16px;
        margin-bottom: 4px;
    }

    .home-entries__grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .home-entry {
        --entry-accent: #2563eb;
        --entry-soft: rgba(37, 99, 235, 0.10);
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 16px;
        background: var(--app-surface);
        border: 1px solid var(--app-border);
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
        text-decoration: none;
        color: var(--app-text);
        overflow: hidden;
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .home-entry::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--entry-accent);
    }

    .home-entry:hover,
    .home-entry:focus-visible {
        transform: translateY(-3px);
        border-color: var(--entry-accent);
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
        color: var(--app-text);
        outline: none;
    }

    .home-entry__icon {
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        border-radius: 13px;
        background: var(--entry-soft);
        color: var(--entry-accent);
        font-size: 1.2rem;
    }

    .home-entry__body {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .home-entry__title {
        font-size: 0.92rem;
        font-weight: 800;
        line-height: 1.5;
    }

    .home-entry__desc {
        font-size: 0.72rem;
        color: var(--app-text-muted);
        line-height: 1.6;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-entry__arrow {
        color: var(--entry-accent);
        font-size: 0.8rem;
        opacity: 0.55;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .home-entry:hover .home-entry__arrow {
        opacity: 1;
        transform: translateX(-3px);
    }

    .home-entry--shop { --entry-accent: #2563eb; --entry-soft: rgba(37, 99, 235, 0.10); }
    .home-entry--error { --entry-accent: #dc2626; --entry-soft: rgba(220, 38, 38, 0.10); }
    .home-entry--repair { --entry-accent: #d97706; --entry-soft: rgba(217, 119, 6, 0.12); }
    .home-entry--consult { --entry-accent: #0d9488; --entry-soft: rgba(13, 148, 136, 0.12); }

    /* ── Collapsible SEO intro ── */
    .home-seo-intro__details {
        flex: 1 1 auto;
        min-width: 0;
        z-index: 1;
    }

    .home-seo-intro__summary {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        cursor: pointer;
        list-style: none;
    }

    .home-seo-intro__summary::-webkit-details-marker { display: none; }

    .home-seo-intro__summary:focus-visible {
        outline: 2px solid var(--app-primary);
        outline-offset: 4px;
        border-radius: 10px;
    }

    .home-seo-intro__summary-text {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-width: 0;
    }

    .home-seo-intro__summary-text h2 {
        font-size: 1.08rem;
        font-weight: 800;
        color: var(--app-text);
        line-height: 1.8;
        margin: 0;
    }

    .home-seo-intro__toggle {
        flex: 0 0 auto;
        color: var(--app-text-muted);
        font-size: 0.8rem;
        margin-top: 10px;
        transition: transform 0.2s ease;
    }

    details[open] .home-seo-intro__toggle { transform: rotate(180deg); }

    .home-seo-intro__body {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px dashed var(--app-border);
    }

    [data-theme="dark"] .home-seo-intro__card {
        background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
        border-color: rgba(59, 130, 246, 0.18);
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
    }

    [data-theme="dark"] .home-seo-intro__icon {
        background: rgba(59, 130, 246, 0.18);
        color: #93c5fd;
    }

    [data-theme="dark"] .home-seo-intro__eyebrow {
        color: #93c5fd;
        background: rgba(59, 130, 246, 0.14);
        border-color: rgba(147, 197, 253, 0.35);
    }

    [data-theme="dark"] .home-seo-intro__text p { color: #cbd5e1; }

    [data-theme="dark"] .home-seo-intro__text a.home-seo-intro__chip {
        background: rgba(37, 99, 235, 0.2);
        border-color: rgba(147, 197, 253, 0.4);
        color: #bfdbfe;
    }

    [data-theme="dark"] .home-entry { box-shadow: none; }

    @media (max-width: 991.98px) {
        .home-entries__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 575.98px) {
        .home-entries { margin-top: 10px; }
        .home-entry { padding: 12px; gap: 10px; }
        .home-entry__icon { width: 38px; height: 38px; font-size: 1.05rem; }
        .home-entry__title { font-size: 0.84rem; }
        .home-entry__desc { font-size: 0.68rem; }
        .home-seo-intro__summary-text h2 { font-size: 0.98rem; }
    }

/* ===== Client/Pages/Products.razor ===== */
.sp{--pri:#1e40af;--pri2:#1e3a8a;--pri-l:#eff6ff;--pri-g:rgba(30,64,175,.12);--sale:#ef4444;--sale-bg:#fef2f2;--ok:#059669;--ok-bg:#ecfdf5;--warn:#d97706;--warn-bg:#fffbeb;--new:#059669;--new-bg:#ecfdf5;--bg:#f0f2f5;--sf:#fff;--sf2:#f8fafc;--bd:rgba(0,0,0,.08);--tx:#111827;--mt:#6b7280;--radius:16px;background:var(--bg);color:var(--tx);min-height:100vh;font-family:'Vazirmatn',system-ui,sans-serif;padding-bottom:4rem}
    .sp .container{max-width:1320px}

    .sp-crumb ol{list-style:none;display:flex;align-items:center;gap:.4rem;padding:0;margin:0 0 1rem;font-size:.8rem;color:var(--mt)}
    .sp-crumb li{display:flex;align-items:center}
    .sp-crumb li+li::before{content:"";margin:0 .35rem;width:4px;height:4px;background:#d1d5db;border-radius:50%;flex-shrink:0}
    .sp-crumb a{color:var(--pri);text-decoration:none;font-weight:700;display:inline-flex;align-items:center;gap:.3rem}
    .sp-crumb a:hover{text-decoration:underline}

    .sp-hero{position:relative;border-radius:20px;overflow:hidden;margin-bottom:2rem;height:280px}
    .sp-hero__slides{position:relative;width:100%;height:100%}
    .sp-hero__slide{position:absolute;inset:0;opacity:0;transition:opacity .6s ease;pointer-events:none}
    .sp-hero__slide.is-active{opacity:1;pointer-events:auto}
    .sp-hero__slide-bg{position:absolute;inset:0}
    .sp-hero__slide-content{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;height:100%;padding:2.5rem 3rem 2.5rem 10rem;color:#fff}
    .sp-hero__badge{display:inline-flex;align-items:center;gap:.4rem;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:.35rem 1rem;font-size:.72rem;font-weight:800;margin-bottom:.8rem;backdrop-filter:blur(4px);width:fit-content}
    .sp-hero__title{font-size:clamp(1.3rem,3.5vw,2rem);font-weight:900;margin:0 0 .5rem;line-height:1.4}
    .sp-hero__sub{font-size:.85rem;margin:0 0 1rem;opacity:.88;font-weight:600;line-height:1.7;max-width:480px}
    .sp-hero__tags{display:flex;flex-wrap:wrap;gap:.4rem}
    .sp-hero__tag{display:inline-flex;align-items:center;gap:.3rem;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:.3rem .8rem;font-size:.7rem;font-weight:700;backdrop-filter:blur(4px)}
    .sp-hero__dots{position:absolute;bottom:1.2rem;left:50%;transform:translateX(-50%);z-index:3;display:flex;gap:.5rem}
    .sp-hero__dot{width:10px;height:10px;border-radius:50%;border:2px solid rgba(255,255,255,.5);background:transparent;cursor:pointer;transition:all .3s;padding:0}
    .sp-hero__dot.is-active{background:#fff;border-color:#fff;width:28px;border-radius:5px}
    .sp-hero__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:40px;height:40px;border-radius:50%;border:none;background:rgba(255,255,255,.2);backdrop-filter:blur(4px);color:#fff;cursor:pointer;display:grid;place-items:center;transition:all .2s}
    .sp-hero__nav:hover{background:rgba(255,255,255,.35)}
    .sp-hero__nav--prev{right:1rem}
    .sp-hero__nav--next{left:1rem}
    .sp-hero__svg-deco{position:absolute;z-index:1;opacity:.06;pointer-events:none}
    .sp-hero__svg-deco--1{top:-20px;right:12rem;width:180px;height:180px;animation:sp-float 6s ease-in-out infinite}
    .sp-hero__svg-deco--2{bottom:-30px;right:5rem;width:120px;height:120px;animation:sp-float 8s ease-in-out infinite reverse}
    .sp-hero__svg-deco--3{top:1rem;right:28rem;width:60px;height:60px;animation:sp-float 5s ease-in-out infinite 1s}
    @keyframes sp-float{0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-12px) rotate(5deg)}}

    .sp-hero__slide--product{overflow:hidden}
    .sp-hero__slide--product .sp-hero__slide-content{max-width:48%;padding:2rem 3rem 1.7rem 2rem;z-index:3}
    .sp-hero__product{position:absolute;top:0;bottom:0;left:0;width:55%;z-index:2;pointer-events:none;-webkit-mask-image:linear-gradient(to right,#000 40%,rgba(0,0,0,.7) 65%,transparent 92%);mask-image:linear-gradient(to right,#000 40%,rgba(0,0,0,.7) 65%,transparent 92%)}
    .sp-hero__product-img{width:100%;height:100%;object-fit:cover;object-position:center;animation:sp-kenburns 10s ease-in-out infinite alternate}
    @keyframes sp-kenburns{from{transform:scale(1.05)}to{transform:scale(1.16) translateX(-2%)}}
    .sp-hero__chip{display:inline-flex;align-items:center;gap:.3rem;background:#ef4444;color:#fff;border-radius:999px;padding:.18rem .6rem;font-size:.66rem;font-weight:900;box-shadow:0 4px 12px rgba(239,68,68,.4)}
    .sp-hero__price{display:flex;align-items:baseline;gap:.7rem;flex-wrap:wrap;margin-bottom:.85rem}
    .sp-hero__price-old{font-size:.85rem;color:rgba(255,255,255,.72);text-decoration:line-through;text-decoration-color:#fecaca;text-decoration-thickness:2px}
    .sp-hero__price-new{font-size:1.7rem;font-weight:900;color:#fff}
    .sp-hero__price-new small{font-size:.72rem;font-weight:700;opacity:.85}
    .sp-hero__actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
    .sp-hero__btn{display:inline-flex;align-items:center;gap:.45rem;border-radius:999px;padding:.62rem 1.5rem;font-size:.85rem;font-weight:800;text-decoration:none;border:none;cursor:pointer;transition:all .2s;line-height:1}
    .sp-hero__btn--primary{background:#fff;color:#1e3a8a;box-shadow:0 10px 24px rgba(0,0,0,.2)}
    .sp-hero__btn--primary:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.26)}
    .sp-hero__btn--ghost{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);color:#fff;backdrop-filter:blur(4px)}
    .sp-hero__btn--ghost:hover{background:rgba(255,255,255,.28)}
    @media(max-width:767.98px){
        .sp-hero__slide--product{display:block}
        .sp-hero__slide--product .sp-hero__slide-content{max-width:none;padding:1.2rem 1rem .6rem;z-index:3}
        .sp-hero__product{width:auto;inset:0 42% 0 0}
        .sp-hero__slide--product .sp-hero__title{font-size:1.05rem;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:.25rem}
        .sp-hero__slide--product .sp-hero__sub{display:none}
        .sp-hero__price{margin-bottom:.45rem;gap:.5rem}
        .sp-hero__chip{font-size:.6rem;padding:.15rem .5rem}
        .sp-hero__price-new{font-size:1.15rem}
        .sp-hero__price-old{font-size:.7rem}
        .sp-hero__actions{gap:.45rem}
        .sp-hero__btn{padding:.45rem .9rem;font-size:.72rem}
        .sp-hero__slide--product .sp-hero__badge{font-size:.6rem;padding:.2rem .55rem;margin-bottom:.4rem}
    }
    @media(max-width:575.98px){
        .sp-hero__product{inset:0 38% 0 0}
        .sp-hero__slide--product .sp-hero__slide-content{padding:1.1rem .6rem .5rem}
        .sp-hero__btn--ghost{display:none}
    }

    .sp-subcats-wrap{display:flex;justify-content:center;margin-bottom:.75rem}
    .sp-subcats{display:flex;gap:.5rem;overflow-x:auto;padding:.2rem 0 1rem;max-width:100%;min-width:0;scrollbar-width:none;scroll-padding-inline:1rem}
    .sp-subcats::-webkit-scrollbar{display:none}
    .sp-subcat{display:flex;flex-direction:column;align-items:center;gap:.4rem;text-decoration:none;color:var(--tx);background:var(--sf);border:1.5px solid var(--bd);border-radius:14px;padding:.7rem .6rem;min-width:80px;flex-shrink:0;transition:all .2s}
    .sp-subcat:hover{border-color:var(--pri);color:var(--pri);transform:translateY(-2px);box-shadow:0 4px 12px rgba(30,64,175,.1)}
    .sp-subcat.is-active{background:var(--pri);border-color:var(--pri);color:#fff;box-shadow:0 4px 16px rgba(30,64,175,.3)}
    .sp-subcat__icon{width:40px;height:40px;border-radius:12px;background:var(--pri-l);display:grid;place-items:center;transition:all .2s}
    .sp-subcat.is-active .sp-subcat__icon{background:rgba(255,255,255,.2)}
    .sp-subcat__icon--all{background:var(--sale-bg)}
    .sp-subcat__name{font-size:.7rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:80px}

    .sp-filters{background:var(--sf);border:1px solid var(--bd);border-radius:var(--radius);padding:1rem 1.25rem;margin-bottom:1.25rem;box-shadow:0 2px 8px rgba(0,0,0,.03)}
    .sp-filters__toggle{width:100%;border:none;background:linear-gradient(135deg,var(--pri),var(--pri2));color:#fff;border-radius:14px;padding:.7rem 1.1rem;font-size:.85rem;font-weight:800;margin-bottom:.9rem;display:flex;align-items:center;justify-content:center;gap:.5rem;box-shadow:0 6px 16px rgba(30,64,175,.25)}
    .sp-filters__top{display:grid;grid-template-columns:1fr;gap:.85rem}
    .sp-search{display:flex;align-items:center;gap:.5rem;background:var(--sf2);border:1.5px solid var(--bd);border-radius:12px;padding:.5rem 1rem;transition:border-color .2s;min-width:0}
    .sp-search:focus-within{border-color:var(--pri);box-shadow:0 0 0 3px var(--pri-g)}
    .sp-search__ico{color:var(--mt);flex-shrink:0}
    .sp-search__input{flex:1;min-width:0;border:none;outline:none;background:transparent;color:var(--tx);font-size:.88rem}
    .sp-search__input::placeholder{color:var(--mt)}
    .sp-search__clear{border:none;background:rgba(30,64,175,.1);color:var(--pri);width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;cursor:pointer}
    .sp-tools{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
    .sp-sort{border:1.5px solid var(--bd);background:var(--sf2);color:var(--tx);border-radius:10px;padding:.45rem 2rem .45rem .75rem;font-size:.8rem;font-weight:700;outline:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left .6rem center;min-width:120px}
    .sp-toggle{display:inline-flex;align-items:center;gap:.4rem;background:var(--sf2);border:1.5px solid var(--bd);border-radius:10px;padding:.45rem .75rem;font-size:.78rem;font-weight:800;color:var(--tx);user-select:none;cursor:pointer}
    .sp-toggle input{width:14px;height:14px;accent-color:var(--pri);margin:0}
    .sp-btn-apply,.sp-btn-clear{border:none;border-radius:10px;padding:.45rem 1rem;font-size:.8rem;font-weight:800;cursor:pointer;transition:transform .15s;display:flex;align-items:center;gap:.3rem}
    .sp-btn-apply{background:var(--pri);color:#fff;box-shadow:0 4px 12px rgba(30,64,175,.25)}
    .sp-btn-apply:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(30,64,175,.3)}
    .sp-btn-clear{background:var(--sf2);color:var(--mt);border:1.5px solid var(--bd)}
    .sp-btn-clear:hover{color:var(--sale);border-color:rgba(239,68,68,.3)}
    .sp-price{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:.7rem;margin-top:.85rem}
    .sp-price__box{display:grid;gap:.25rem}
    .sp-price__box label{font-size:.7rem;font-weight:700;color:var(--mt)}
    .sp-price__input{display:flex;align-items:center;gap:.4rem;border:1.5px solid var(--bd);background:var(--sf2);border-radius:10px;padding:.45rem .75rem}
    .sp-price__input:focus-within{border-color:var(--pri);box-shadow:0 0 0 3px var(--pri-g)}
    .sp-price__unit{color:var(--mt);font-size:.7rem;font-weight:700;padding-right:.4rem;border-right:1px solid var(--bd);white-space:nowrap}
    .sp-price__input input{border:none;outline:none;background:transparent;width:100%;color:var(--tx);font-size:.82rem;font-weight:700}
    .sp-price__sep{color:var(--mt);font-size:.78rem;padding-bottom:.55rem}

    .sp-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
    .sp-meta__count{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;color:var(--tx);font-weight:700;background:var(--sf);border:1px solid var(--bd);border-radius:999px;padding:.4rem 1rem}
    .sp-meta__count b{font-weight:900;color:var(--pri)}
    .sp-meta__count-icon{display:inline-flex;color:var(--pri)}
    .sp-meta__hint{font-size:.72rem;color:var(--mt)}

    .sp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
    .sp-grid__item{min-width:0}
    @media(min-width:768px){.sp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
    @media(min-width:992px){.sp-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}}
    @media(min-width:1400px){.sp-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:.8rem}}


    .sp-sk{border-radius:var(--radius);background:var(--sf);border:1px solid var(--bd);overflow:hidden;padding-bottom:.8rem}
    .sp-sk__img{aspect-ratio:1/1;background:linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%);background-size:200% 100%;animation:sp-sh 1.5s infinite}
    .sp-sk__line{height:12px;border-radius:6px;background:linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%);background-size:200% 100%;animation:sp-sh 1.5s infinite;margin:.6rem .8rem 0}
    .sp-sk__line.w40{width:40%}.sp-sk__line.w80{width:80%}.sp-sk__line.w50{width:50%}
    @keyframes sp-sh{0%{background-position:200% 0}100%{background-position:-200% 0}}

    .sp-empty{text-align:center;padding:60px 20px;background:var(--sf);border:2px dashed var(--bd);border-radius:20px}
    .sp-empty svg{display:block;margin:0 auto 1rem}
    .sp-empty h4{font-weight:800;color:var(--tx);margin-bottom:.4rem}
    .sp-empty p{color:var(--mt);font-size:.85rem;margin-bottom:1.2rem}
    .sp-empty__btn{border:1.5px solid var(--pri);background:transparent;color:var(--pri);border-radius:999px;padding:.6rem 2rem;font-size:.85rem;font-weight:800;cursor:pointer;transition:all .2s}
    .sp-empty__btn:hover{background:var(--pri);color:#fff}

    .sp-pager{display:flex;align-items:center;justify-content:center;gap:.4rem;margin:2.5rem 0 1rem;padding:0}
    .sp-pager__pages{display:flex;align-items:center;gap:.3rem}
    .sp-pager__btn{display:inline-flex;align-items:center;gap:.3rem;border:1.5px solid var(--bd);background:var(--sf);color:var(--tx);border-radius:10px;padding:.5rem .9rem;font-size:.82rem;font-weight:800;cursor:pointer;transition:all .2s;user-select:none}
    .sp-pager__btn:hover:not(:disabled):not(.is-active){border-color:var(--pri);color:var(--pri);background:var(--pri-l)}
    .sp-pager__btn.is-active{background:var(--pri);border-color:var(--pri);color:#fff;box-shadow:0 4px 12px rgba(30,64,175,.25);pointer-events:none}
    .sp-pager__btn:disabled{opacity:.35;cursor:not-allowed}
    .sp-pager__btn--nav{font-size:.78rem;padding:.45rem .8rem}
    .sp-pager__ellipsis{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;font-size:.85rem;font-weight:800;color:var(--mt)}

    @media(max-width:575.98px){
        .sp-hero{height:200px;border-radius:14px;margin-bottom:1.25rem}
        .sp-hero__slide-content{padding:1.2rem 1rem 1.2rem 1rem}
        .sp-hero__title{font-size:1.1rem}
        .sp-hero__sub{font-size:.75rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:.6rem}
        .sp-hero__tags{display:none}
        .sp-hero__badge{font-size:.65rem;padding:.25rem .7rem;margin-bottom:.5rem}
        .sp-hero__nav{display:none}
        .sp-hero__svg-deco{display:none}
        .sp-filters{padding:.8rem}
        .sp-tools{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}
        .sp-sort{grid-column:1/-1;width:100%;min-width:0}
        .sp-toggle{justify-content:center;text-align:center}
        .sp-price{grid-template-columns:1fr}
        .sp-price__sep{display:none}
        .sp-meta__hint{display:none}
        .sp-subcats{gap:.35rem}
        .sp-subcat{min-width:68px;padding:.5rem .4rem}
        .sp-subcat__icon{width:34px;height:34px}
        .sp-subcat__name{font-size:.62rem}
        .sp-pager__btn{padding:.4rem .65rem;font-size:.75rem;border-radius:8px}
        .sp-pager__btn--nav svg{width:12px;height:12px}
        .sp-pager__ellipsis{width:26px;height:26px;font-size:.75rem}
    }
    @media(min-width:992px){
        .sp-filters__top{grid-template-columns:1.2fr 1fr;align-items:center}
        .sp-tools{justify-content:flex-end}
    }
    html[data-theme="dark"] .sp{--bg:#0b1220;--sf:#131c2e;--sf2:#0f172a;--bd:rgba(148,163,184,.12);--tx:#e2e8f0;--mt:#94a3b8;--pri-l:#1e3a5f;--new-bg:#0f2940}
    html[data-theme="dark"] .sp-sk__img,html[data-theme="dark"] .sp-sk__line{background:linear-gradient(90deg,#1c2740 25%,#24364f 50%,#1c2740 75%);background-size:200% 100%;animation:sp-sh 1.5s infinite}
    html[data-theme="dark"] .sp-subcat{background:var(--sf);border-color:var(--bd)}
    html[data-theme="dark"] .sp-pager__btn{background:var(--sf);border-color:var(--bd);color:var(--tx)}
    html[data-theme="dark"] .sp-pager__btn.is-active{background:var(--pri);color:#fff}
    html[data-theme="dark"] .sp-meta__count{background:var(--sf);border-color:var(--bd)}

/* ===== Client/Pages/ProductDetails.razor ===== */
.pd-wrap *, .pd-wrap *::before, .pd-wrap *::after { box-sizing: border-box; }
    .pd-wrap { font-family: 'Vazirmatn', system-ui, sans-serif; color: #212529; line-height: 1.6; }
    .pd-container { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem; }

    /* ===== Skeleton ===== */
    @keyframes pd-shimmer { 0%{background-position:-400px 0}100%{background-position:400px 0} }
    .pd-skeleton { padding: 1rem 0; }
    .pd-sk-grid { display:grid; grid-template-columns:1fr 1fr; gap:2rem; }
    .pd-sk-gallery { height:420px; background:#e9ecef; border-radius:1.25rem; }
    .pd-sk-info { display:flex; flex-direction:column; gap:1rem; }
    .pd-sk-line { height:20px; border-radius:0.5rem; background: linear-gradient(90deg,#e9ecef 25%,#f8f9fa 50%,#e9ecef 75%); background-size:800px 100%; animation:pd-shimmer 1.8s infinite linear; }
    .pd-sk-line.h2 { height:32px; }
    .pd-sk-line.h4 { height:28px; }
    .pd-sk-line.w-25 { width:25%; }
    .pd-sk-line.w-50 { width:50%; }
    .pd-sk-line.w-75 { width:75%; }
    .pd-sk-line.w-100 { width:100%; }
    .pd-sk-details { margin-top:2rem; }
    @media (max-width:767.98px) { .pd-sk-grid { grid-template-columns:1fr; } .pd-sk-gallery { height:280px; } }

    .pd-notfound { text-align:center;padding:4rem 1rem;background:#fff;border-radius:1.25rem;box-shadow:0 1px 3px rgba(0,0,0,.06);max-width:400px;margin:3rem auto; }
    .pd-notfound h3 { font-size:1.15rem;color:#343a40;margin:1rem 0 1.5rem; }
    .pd-back-btn { display:inline-block;padding:.6rem 1.75rem;background:#0d6efd;color:#fff;border-radius:2rem;text-decoration:none;font-weight:600;font-size:.9rem;transition:background .2s; }
    .pd-back-btn:hover { background:#0b5ed7; }

    .pd-breadcrumb { margin-bottom:1.5rem; }
    .pd-breadcrumb ol { list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;padding:0;margin:0;font-size:.85rem;color:#6c757d; }
    .pd-breadcrumb li { display:flex;align-items:center; }
    .pd-breadcrumb li+li::before { content:"/";color:#adb5bd;margin:0 .35rem; }
    .pd-breadcrumb a { color:#0d6efd;text-decoration:none; }
    .pd-breadcrumb a:hover { text-decoration:underline; }

    /* Mobile Header Sticky */
    .pd-header-sticky {
        position: sticky;
        top: 0;
        z-index: 1020;
        min-height: 56px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(0,0,0,0.06);
        display: flex;
        align-items: center;
        margin: -0.75rem -0.6rem 0.75rem;
        padding: 0 0.6rem;
        padding-top: env(safe-area-inset-top, 0px);
    }
    .pd-header-inner {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        min-height: 56px;
    }
    .pd-header-back {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #f8fafc;
        color: #475569;
        text-decoration: none;
        transition: all 0.2s;
        border: 1px solid rgba(0,0,0,0.04);
        flex-shrink: 0;
    }
    .pd-header-back:active { transform: scale(0.92); background: #f1f5f9; }
    .pd-header-title {
        flex: 1;
        text-align: center;
        font-weight: 700;
        font-size: 0.85rem;
        color: #0f172a;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .pd-header-action {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #f8fafc;
        color: #475569;
        border: 1px solid rgba(0,0,0,0.04);
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .pd-header-action:active { transform: scale(0.92); background: #f1f5f9; }

    .pd-main { display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start; }

    .pd-gallery-view { position:relative;background:#fff;border:1px solid #eef2f7;border-radius:18px;overflow:hidden;user-select:none;touch-action:none; }
    .pd-gallery-track { display:flex;transition:transform .4s cubic-bezier(.25,1,.5,1); }
    .pd-gallery-slide { min-width:100%;height:320px;display:flex;align-items:center;justify-content:center;padding:1.25rem; }
    .pd-img-wrap { width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:12px; }
    .pd-main-img { display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:8px;cursor:zoom-in; }

    .pd-discount-ribbon { position:absolute;top:.75rem;right:.75rem;background:linear-gradient(135deg,#dc3545,#e4606d);color:#fff;padding:.45rem .9rem;border-radius:.65rem;z-index:5;box-shadow:0 4px 14px rgba(220,53,69,.35);text-align:center;min-width:100px;font-size:.8rem; }
    .pd-discount-label { font-weight:700;font-size:.7rem;opacity:.95;display:block; }
    .pd-discount-timer { font-family:'Courier New',monospace;font-weight:700;font-size:.95rem;direction:ltr; }

    .pd-dots { position:absolute;bottom:.75rem;left:50%;transform:translateX(-50%);display:flex;gap:.4rem; }
    .pd-dot { width:7px;height:7px;border-radius:50%;border:none;background:rgba(15,23,42,.18);cursor:pointer;transition:all .3s;padding:0; }
    .pd-dot--active { background:#2563eb;width:22px;border-radius:4px; }

    .pd-thumbs { display:flex;gap:.55rem;justify-content:center;margin-top:.8rem;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:none; }
    .pd-thumbs::-webkit-scrollbar { display:none; }
    .pd-thumb { width:66px;height:66px;flex:0 0 66px;border-radius:13px;overflow:hidden;border:1.5px solid #e9edf2;background:#fff;cursor:pointer;transition:border-color .2s,box-shadow .2s;padding:0;display:flex;align-items:center;justify-content:center; }
    .pd-thumb img { width:100%;height:100%;object-fit:contain;padding:5px; }
    .pd-thumb--active { border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14); }

    .pd-info { display:flex;flex-direction:column;gap:1.1rem; }
    .pd-head { display:flex;flex-direction:column;gap:.5rem; }
    .pd-category { display:inline-flex;align-self:flex-start;background:#eff6ff;color:#1d4ed8;font-size:.7rem;font-weight:800;padding:.28rem .75rem;border-radius:999px;letter-spacing:.2px; }
    .pd-title { font-size:1.5rem;font-weight:800;color:#0f172a;margin:0;line-height:1.55;letter-spacing:-.2px;word-break:break-word; }
    .pd-extra { display:flex;flex-wrap:wrap;gap:.45rem 1.25rem;font-size:.78rem;color:#64748b;padding-bottom:.9rem;border-bottom:1px solid #eef2f7; }
    .pd-extra-item { display:inline-flex;align-items:center;gap:.35rem; }
    .pd-extra-item svg { flex-shrink:0; }
    .pd-code-copy { cursor:pointer;transition:color .2s; }
    .pd-code-copy:hover { color:#2563eb; }
    .pd-instock { color:#15803d;font-weight:700; }
    .pd-outstock { color:#dc2626;font-weight:700; }

    .pd-statcard { display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid #e9edf2;border-radius:16px;overflow:hidden; }
    .pd-stat { position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;padding:.85rem .5rem;text-align:center;min-width:0; }
    .pd-stat + .pd-stat::before { content:"";position:absolute;top:20%;bottom:20%;right:0;width:1px;background:#eef2f7; }
    .pd-stat b { font-size:1.02rem;font-weight:800;color:#0f172a;line-height:1.3; }
    .pd-stat span { font-size:.7rem;color:#64748b;white-space:nowrap; }
    .pd-stat-stars { display:flex;gap:1px;margin-bottom:.1rem; }
    .pd-stat-stars svg { display:block; }

    .pd-buy { display:flex;flex-direction:column;gap:1rem;background:#fff;border:1px solid #e9edf2;border-radius:18px;padding:1.15rem 1.2rem 1.2rem;box-shadow:0 24px 48px -40px rgba(15,23,42,.5); }
    .pd-pricebox { background:transparent;padding:0;border-radius:0; }
    .pd-price-row { display:flex;align-items:center;gap:.6rem;margin-bottom:.3rem; }
    .pd-price-old { font-size:.85rem;color:#94a3b8;text-decoration:line-through; }
    .pd-price-badge { font-size:.65rem;font-weight:800;background:#fee2e2;color:#b91c1c;padding:.18rem .55rem;border-radius:999px; }
    .pd-price-current { display:flex;align-items:baseline;gap:.4rem; }
    .pd-price-num { font-size:1.95rem;font-weight:800;color:#0f172a;line-height:1.15;letter-spacing:-.5px; }
    .pd-price-unit { font-size:.82rem;color:#64748b;font-weight:600; }

    .pd-highlights { display:flex;flex-direction:column;background:#fff;border:1px solid #e9edf2;border-radius:16px;overflow:hidden; }
    .pd-hl { display:flex;align-items:center;gap:.75rem;font-size:.8rem;font-weight:600;color:#334155;padding:.8rem 1rem;transition:background .18s; }
    .pd-hl + .pd-hl { border-top:1px solid #f1f5f9; }
    .pd-hl:hover { background:#f8fafc; }
    .pd-hl-icon { width:38px;height:38px;flex-shrink:0;border-radius:12px;display:grid;place-items:center;background:#eff6ff;color:#2563eb; }
    .pd-hl-icon svg { stroke:currentColor; }
    .pd-hl-text { display:flex;flex-direction:column;gap:.05rem;min-width:0; }
    .pd-hl-text b { font-size:.82rem;font-weight:700;color:#0f172a; }
    .pd-hl-text small { font-size:.72rem;color:#64748b;font-weight:400;line-height:1.6; }
    .pd-highlights .pd-hl:nth-child(3n+1) .pd-hl-icon { background:#ecfdf5;color:#059669; }
    .pd-highlights .pd-hl:nth-child(3n+2) .pd-hl-icon { background:#eff6ff;color:#2563eb; }
    .pd-highlights .pd-hl:nth-child(3n) .pd-hl-icon { background:#fffbeb;color:#d97706; }

    .pd-actions { display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap; }
    .pd-qty { display:flex;align-items:center;gap:.55rem;flex-shrink:0; }
    .pd-qty-label { font-weight:600;color:#475569;font-size:.82rem; }
    .pd-qty-box { display:flex;align-items:center;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#f8fafc; }
    .pd-qty-btn { display:flex;align-items:center;justify-content:center;width:40px;height:44px;border:none;background:transparent;color:#475569;cursor:pointer;transition:background .15s,color .15s;padding:0;min-width:44px;min-height:44px; }
    .pd-qty-btn:hover:not(:disabled) { background:#eef2f7;color:#2563eb; }
    .pd-qty-btn:disabled { opacity:.3;cursor:not-allowed; }
    .pd-qty-val { min-width:40px;text-align:center;font-weight:700;font-size:1rem;color:#0f172a;user-select:none; }

    .pd-share { display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:.5rem .85rem;border:1px solid #e2e8f0;border-radius:12px;cursor:pointer;font-size:.78rem;font-weight:600;color:#475569;transition:all .2s;min-height:44px;background:#f8fafc; }
    .pd-share:hover { background:#eff6ff;border-color:#bfdbfe;color:#2563eb; }
    .pd-price-drop--on { background:#fffbeb;border-color:#fcd34d;color:#b45309; }
    .pd-price-drop--on:hover { background:#fef3c7;border-color:#f59e0b;color:#92400e; }
    .pd-wishlist-active { background:#fff1f2;border-color:#fecdd3;color:#dc2626; }
    .pd-wishlist-active:hover { background:#ffe4e6;border-color:#fda4af;color:#dc2626; }
    .pd-actions-tools { display:flex;gap:.5rem;flex-wrap:wrap; }

    .pd-add-cart { display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;padding:.85rem 1.5rem;border:none;border-radius:14px;background:#2563eb;color:#fff;font-size:1rem;font-weight:800;cursor:pointer;transition:background .2s,transform .1s,box-shadow .2s;box-shadow:0 14px 28px -16px rgba(37,99,235,.75);min-height:52px;white-space:nowrap; }
    .pd-add-cart svg { flex-shrink:0; }
    .pd-add-cart:hover:not(:disabled) { background:#1d4ed8;box-shadow:0 18px 32px -16px rgba(37,99,235,.8);transform:translateY(-1px); }
    .pd-add-cart:active:not(:disabled) { transform:translateY(0); }
    .pd-add-cart:disabled { opacity:.5;cursor:not-allowed; }
    .pd-add-cart.pd-cart-done { background:#198754 !important;box-shadow:0 14px 28px -16px rgba(25,135,84,.7); }

    @keyframes pd-cart-spin { to { transform:rotate(360deg); } }
    .pd-cart-spinner { display:inline-block;width:18px;height:18px;border:2.5px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:pd-cart-spin .6s linear infinite; }

    /* ===== Back-in-stock notify button ===== */
    .pd-notify-btn { display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;padding:.85rem 1.5rem;border:2px dashed #fd7e14;border-radius:.85rem;background:#fff7e6;color:#d9480f;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s;min-height:48px;white-space:nowrap; }
    .pd-notify-btn svg { flex-shrink:0; }
    .pd-notify-btn:hover:not(:disabled) { background:#fd7e14;border-style:solid;border-color:#fd7e14;color:#fff;box-shadow:0 4px 14px rgba(253,126,20,.3); }
    .pd-notify-btn:disabled { opacity:.6;cursor:not-allowed; }
    .pd-notify-btn.pd-notify-subscribed { border-style:solid;border-color:#198754;background:#e8f5ee;color:#146c43; }
    .pd-notify-btn.pd-notify-subscribed:hover:not(:disabled) { background:#198754;border-color:#198754;color:#fff;box-shadow:0 4px 14px rgba(25,135,84,.3); }
    .pd-sticky-notify { display:flex;align-items:center;justify-content:center;gap:.4rem;flex:1;padding:.7rem 1rem;border:2px dashed #fd7e14;border-radius:.75rem;background:#fff7e6;color:#d9480f;font-size:.9rem;font-weight:700;cursor:pointer;transition:all .2s;min-height:44px;white-space:nowrap; }
    .pd-sticky-notify svg { flex-shrink:0; }
    .pd-sticky-notify:hover:not(:disabled) { background:#fd7e14;border-style:solid;border-color:#fd7e14;color:#fff; }
    .pd-sticky-notify:disabled { opacity:.6;cursor:not-allowed; }
    .pd-sticky-notify.pd-notify-subscribed { border-style:solid;border-color:#198754;background:#e8f5ee;color:#146c43; }
    .pd-sticky-notify.pd-notify-subscribed:hover:not(:disabled) { background:#198754;border-color:#198754;color:#fff; }
/* Out-of-stock: notify gets its own full-width row at the bottom of the bar */
.pd-sticky-bar > .pd-sticky-notify { margin:.55rem auto 0;max-width:1200px;width:100%; }

    /* ===== Messenger connect modal ===== */
    .pd-connect-overlay { position:fixed;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:1080;animation:pd-fade-in .2s ease; }
    @keyframes pd-fade-in { from { opacity:0; } to { opacity:1; } }
    .pd-connect-modal { position:relative;background:#fff;border-radius:1rem;padding:1.75rem 1.5rem 1.25rem;width:100%;max-width:520px;max-height:88vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);animation:pd-modal-up .25s ease; }
    @keyframes pd-modal-up { from { opacity:0; transform:translateY(24px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
    .pd-connect-close { position:absolute;top:.75rem;left:.75rem;width:34px;height:34px;border:none;border-radius:50%;background:#f1f3f5;color:#6c757d;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s; }
    .pd-connect-close:hover { background:#e9ecef;color:#212529; }
    .pd-connect-head { text-align:center;margin-bottom:1.1rem; }
    .pd-connect-icon { width:56px;height:56px;margin:0 auto .6rem;border-radius:50%;background:#fff7e6;color:#fd7e14;display:flex;align-items:center;justify-content:center; }
    .pd-connect-head h3 { margin:0 0 .35rem;font-size:1.1rem;font-weight:800;color:#212529; }
    .pd-connect-head p { margin:0;font-size:.85rem;color:#6c757d;line-height:1.7; }
    .pd-connect-loading { display:flex;justify-content:center;padding:1.25rem; }
    .pd-connect-loading .pd-cart-spinner { border-color:rgba(13,110,253,.2);border-top-color:#0d6efd; }
    .pd-connect-list { display:flex;flex-direction:column;gap:.65rem;margin-bottom:1.1rem; }
    .pd-connect-item { display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.8rem .9rem;border:1px solid #e9ecef;border-radius:.75rem;background:#fafbfc;flex-wrap:wrap; }
    .pd-connect-item-info { flex:1;min-width:180px; }
    .pd-connect-item-info b { display:block;font-size:.92rem;color:#212529;margin-bottom:.2rem; }
    .pd-connect-item-info p { margin:0;font-size:.78rem;color:#6c757d;line-height:1.7; }
    .pd-connect-item-btn { display:inline-flex;align-items:center;gap:.35rem;padding:.5rem .9rem;border-radius:.6rem;background:#0d6efd;color:#fff;font-size:.82rem;font-weight:700;text-decoration:none;white-space:nowrap;transition:background .15s; }
    .pd-connect-item-btn:hover { background:#0b5ed7;color:#fff; }
    .pd-connect-footer { display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;border-top:1px solid #f1f3f5;padding-top:.9rem; }
    .pd-connect-guide { display:inline-flex;align-items:center;gap:.35rem;font-size:.8rem;color:#0d6efd;text-decoration:none; }
    .pd-connect-guide:hover { text-decoration:underline; }
    .pd-connect-done { padding:.55rem 1.4rem;border:none;border-radius:.6rem;background:#212529;color:#fff;font-size:.85rem;font-weight:700;cursor:pointer;font-family:inherit;transition:background .15s; }
    .pd-connect-done:hover { background:#000; }

    /* ===== Tabs ===== */
    @keyframes pd-tab-fade-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
    .pd-tabs-wrap { margin-top:2rem;background:#fff;border:1px solid #e9edf2;border-radius:18px;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.03); }
    .pd-tabs-header { display:flex;align-items:stretch;gap:.15rem;padding:0 .6rem;border-bottom:1px solid #e9edf2;background:#fff;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch; }
    .pd-tabs-header::-webkit-scrollbar { display:none; }
    .pd-tab-btn { position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;flex:0 0 auto;padding:1rem .85rem 1.05rem;border:0;background:transparent;color:#64748b;font-size:.9rem;font-weight:600;cursor:pointer;white-space:nowrap;font-family:inherit;transition:color .18s; }
    .pd-tab-btn:hover { color:#2563eb; }
    .pd-tab-btn::after { content:"";position:absolute;right:.55rem;left:.55rem;bottom:0;height:3px;border-radius:3px 3px 0 0;background:transparent;transition:background .18s; }
    .pd-tab-active { color:#2563eb !important;font-weight:800; }
    .pd-tab-active::after { background:#2563eb; }
    .pd-tab-ico { display:inline-flex;align-items:center;justify-content:center;color:inherit;opacity:.9; }
    .pd-tab-ico svg { width:18px;height:18px; }
    .pd-tab-count { display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 .4rem;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.68rem;font-weight:800;line-height:1; }
    .pd-tab-active .pd-tab-count { background:#dbeafe;color:#1d4ed8; }
    .pd-tab-content { padding:1.5rem 1.6rem 1.75rem;animation:pd-tab-fade-in .3s ease; }
    .pd-tab-fade-in { animation:pd-tab-fade-in .3s ease; }
    .pd-tab-fade-out { animation:none; }
    .pd-tab-empty { text-align:center;padding:2.5rem 1rem;color:#94a3b8;font-size:.9rem;background:#f8fafc;border:1px dashed #e2e8f0;border-radius:14px; }

    /* ===== Description typography ===== */
    .pd-desc { color:#334155;font-size:.94rem;line-height:2.05;overflow-wrap:anywhere; }
    .pd-desc > :first-child { margin-top:0; }
    .pd-desc > :last-child { margin-bottom:0; }
    .pd-desc p { margin:0 0 1rem; }
    .pd-desc h1,.pd-desc h2,.pd-desc h3,.pd-desc h4,.pd-desc h5,.pd-desc h6 { color:#0f172a;font-weight:800;line-height:1.7;margin:1.7rem 0 .7rem; }
    .pd-desc h1 { font-size:1.25rem; }
    .pd-desc h2 { font-size:1.15rem; }
    .pd-desc h3 { font-size:1.05rem; }
    .pd-desc h4,.pd-desc h5,.pd-desc h6 { font-size:.98rem; }
    .pd-desc ul,.pd-desc ol { margin:0 0 1rem;padding-inline-start:1.35rem; }
    .pd-desc li { margin-bottom:.45rem; }
    .pd-desc li::marker { color:#2563eb;font-weight:700; }
    .pd-desc a { color:#2563eb;text-decoration:none;border-bottom:1px dashed rgba(37,99,235,.45); }
    .pd-desc a:hover { border-bottom-style:solid; }
    .pd-desc img { max-width:100%;height:auto;display:block;margin:1rem auto;border-radius:14px; }
    .pd-desc blockquote { margin:1.1rem 0;padding:.8rem 1.1rem;background:#f8fafc;border-inline-start:3px solid #2563eb;border-radius:0 12px 12px 0;color:#475569; }
    .pd-desc table { width:100%;border-collapse:collapse;margin:1.1rem 0;font-size:.88rem; }
    .pd-desc th,.pd-desc td { border:1px solid #e9edf2;padding:.55rem .75rem;text-align:right; }
    .pd-desc th { background:#f8fafc;color:#0f172a;font-weight:700; }
    .pd-desc code { background:#f1f5f9;color:#0f172a;padding:.1rem .38rem;border-radius:6px;font-size:.86em;direction:ltr;unicode-bidi:isolate; }
    .pd-desc hr { border:0;border-top:1px solid #eef2f7;margin:1.5rem 0; }

    /* ===== Specs sheet ===== */
    .pd-specs { display:flex;flex-direction:column; }
    .pd-specs--sheet { display:flex;flex-direction:column;background:#fff;border:1px solid #e9edf2;border-radius:16px;overflow:hidden;padding:0;box-shadow:0 1px 2px rgba(15,23,42,.03); }
    .pd-specs--sheet .pd-spec { display:grid;grid-template-columns:minmax(105px,32%) 1fr;align-items:center;gap:1rem;padding:.78rem 1.1rem;border-bottom:1px solid #f1f5f9;transition:background .15s; }
    .pd-specs--sheet .pd-spec:nth-child(even) { background:#fbfcfe; }
    .pd-specs--sheet .pd-spec:hover { background:#f5f8ff; }
    .pd-specs--sheet .pd-spec:last-child { border-bottom:0; }
    .pd-spec-chip { justify-self:start;display:inline-flex;align-items:center;gap:.4rem;border:0;border-radius:0;padding:0;background:transparent !important;color:#64748b !important;font-size:.8rem;font-weight:600;white-space:normal;line-height:1.6; }
    .pd-spec-chip::before { content:"";width:6px;height:6px;border-radius:50%;background:#cbd5e1;flex-shrink:0; }
    .pd-spec-val { min-width:0;color:#0f172a;font-weight:700;font-size:.88rem;text-align:start;overflow-wrap:anywhere;line-height:1.8; }
    .pd-spec-val--mono { direction:ltr;unicode-bidi:isolate;font-family:'Courier New',monospace;font-weight:800;letter-spacing:.5px;color:#334155; }
    .pd-spec-val--price { color:#1d4ed8;font-weight:900;font-size:.95rem; }
    .pd-spec-status { display:inline-flex;align-items:center;gap:.4rem;border-radius:999px;padding:.28rem .9rem;font-size:.76rem;font-weight:800;white-space:nowrap;justify-self:start; }
    .pd-spec-status i { width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px rgba(0,0,0,.05); }
    .pd-spec-status.is-ok { background:#ecfdf5;color:#047857;border:1px solid #a7f3d0; }
    .pd-spec-status.is-no { background:#fff1f2;color:#be123c;border:1px solid #fecdd3; }
    .pd-green { color:#198754 !important; }
    .pd-red { color:#dc3545 !important; }

    .pd-tech-card { display:flex;align-items:flex-start;gap:.75rem;padding:.9rem 1rem;margin-top:.8rem;background:#f8fafc;border:1px solid #eef2f7;border-radius:14px;transition:background .18s,border-color .18s,box-shadow .18s; }
    .pd-tech-card:hover { background:#fff;border-color:#dbeafe;box-shadow:0 10px 24px -20px rgba(15,23,42,.4); }
    .pd-tech-card.pd-tech-link { text-decoration:none;color:inherit;cursor:pointer;align-items:center; }
    .pd-tech-card.pd-tech-link:hover { border-color:#bfdbfe;background:#f5f8ff; }
    .pd-tech-icon { width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex-shrink:0;background:#eef2f7;color:#475569;font-size:.9rem; }
    .pd-tech-card.pd-tech-link .pd-tech-icon { background:#dbeafe;color:#2563eb; }
    .pd-tech-body { flex:1;min-width:0; }
    .pd-tech-label { font-weight:700;font-size:.76rem;color:#64748b;margin-bottom:4px; }
    .pd-tech-text { font-size:.85rem;color:#0f172a;line-height:1.8;overflow-wrap:anywhere; }
    .pd-tech-text--link { color:#2563eb;font-weight:600;font-size:.8rem; }
    .pd-tech-ext { color:#2563eb;font-size:.75rem;flex-shrink:0; }

    /* ===== Related ===== */
    .pd-sug {
        margin-top: 2.25rem;
        background: #fff;
        border: 1px solid #e9edf2;
        border-radius: 18px;
        padding: 1.1rem 1.15rem 1.15rem;
        box-shadow: 0 1px 2px rgba(15,23,42,.03);
    }
    .pd-sug-head { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; margin-bottom:.95rem; }
    .pd-sug-title { display:flex; align-items:center; gap:.65rem; min-width:0; }
    .pd-sug-ico { width:38px; height:38px; border-radius:12px; background:#eff6ff; color:#2563eb; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .pd-sug-title-text b { display:block; font-size:1rem; font-weight:800; color:#0f172a; }
    .pd-sug-title-text small { display:block; font-size:.73rem; color:#64748b; margin-top:2px; }
    .pd-sug-tabs { display:inline-flex; padding:3px; background:#f1f5f9; border:1px solid #e9edf2; border-radius:999px; gap:2px; }
    .pd-sug-tab { display:inline-flex; align-items:center; gap:.35rem; border:0; background:transparent; color:#64748b; font-size:.75rem; font-weight:800; padding:.38rem .7rem; border-radius:999px; cursor:pointer; transition:color .15s, background .15s, box-shadow .15s; white-space:nowrap; }
    .pd-sug-tab:hover { color:#2563eb; }
    .pd-sug-tab--on { background:#fff; color:#1d4ed8; box-shadow:0 1px 3px rgba(15,23,42,.12); }
    .pd-sug-count { min-width:18px; height:18px; padding:0 .3rem; display:inline-flex; align-items:center; justify-content:center; background:#e2e8f0; color:#475569; border-radius:999px; font-size:.65rem; font-weight:900; }
    .pd-sug-tab--on .pd-sug-count { background:#dbeafe; color:#1d4ed8; }
    .pd-sug-track { display:flex; gap:.8rem; overflow-x:auto; padding:.15rem .1rem .55rem; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:#cbd5e1 transparent; }
    @media (min-width: 768px) { .pd-sug-track { scroll-snap-type:none; } }
    .pd-sug-track::-webkit-scrollbar { height:5px; }
    .pd-sug-track::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:3px; }
    .pd-sug-track::-webkit-scrollbar-track { background:transparent; }
    .pd-sug-card { flex:0 0 172px; scroll-snap-align:start; display:flex; flex-direction:column; background:#fff; border:1px solid #eef2f7; border-radius:16px; overflow:hidden; text-decoration:none; color:inherit; transition:transform .2s, box-shadow .2s, border-color .2s; }
    .pd-sug-card:hover { transform:translateY(-3px); border-color:#dbeafe; box-shadow:0 16px 30px -22px rgba(15,23,42,.45); }
    .pd-sug-media { position:relative; display:block; aspect-ratio:1 / 1; background:#f8fafc; overflow:hidden; }
    .pd-sug-media img { width:100%; height:100%; object-fit:contain; padding:.55rem; transition:transform .25s; }
    .pd-sug-card:hover .pd-sug-media img { transform:scale(1.05); }
    .pd-sug-placeholder { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#cbd5e1; }
    .pd-sug-off { position:absolute; inset-inline-start:.5rem; top:.5rem; background:#ef4444; color:#fff; font-size:.65rem; font-weight:900; padding:.16rem .42rem; border-radius:999px; line-height:1.5; }
    .pd-sug-body { display:flex; flex-direction:column; gap:.4rem; padding:.6rem .7rem .75rem; flex:1; }
    .pd-sug-name { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:.78rem; font-weight:700; line-height:1.7; color:#0f172a; min-height:2.55em; }
    .pd-sug-price { display:flex; align-items:baseline; gap:.28rem; flex-wrap:wrap; margin-top:auto; }
    .pd-sug-price b { font-size:.9rem; font-weight:900; color:#2563eb; }
    .pd-sug-price small { font-size:.66rem; color:#64748b; }
    .pd-sug-price del { font-size:.68rem; color:#94a3b8; }

    /* ===== Lightbox ===== */
    .pd-lightbox { position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem;backdrop-filter:blur(4px);animation:pd-lb-in .25s ease;outline:none; }
    @keyframes pd-lb-in { from { opacity:0; } to { opacity:1; } }
    .pd-lightbox-content { position:relative;max-width:90vw;max-height:90vh;display:flex;flex-direction:column;align-items:center; }
    .pd-lightbox-close { position:absolute;top:-2.5rem;left:50%;transform:translateX(-50%);background:rgba(255,255,255,.15);border:none;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s;z-index:10; }
    .pd-lightbox-close:hover { background:rgba(255,255,255,.3); }
    .pd-lightbox-img-wrap { display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:.75rem;max-height:80vh;cursor:zoom-in; }
    .pd-lightbox-img-wrap.is-zoomed { cursor:zoom-out;touch-action:none; }
    .pd-lightbox-img { max-width:100%;max-height:80vh;object-fit:contain;border-radius:.5rem;pointer-events:none;transition:transform .22s ease;will-change:transform; }
    .pd-lightbox-img.is-zoomed { transform:scale(2.5); }
    .pd-lightbox-counter { margin-top:.75rem;color:rgba(255,255,255,.6);font-size:.8rem; }
    .pd-lightbox-nav { position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.15);border:none;border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s;z-index:10; }
    .pd-lightbox-nav:hover { background:rgba(255,255,255,.3); }
    .pd-lightbox-prev { right:calc(100% + .75rem); }
    .pd-lightbox-next { left:calc(100% + .75rem); }

    /* ===== Toast ===== */
    .pd-toast { position:fixed;bottom:80px;left:50%;transform:translateX(-50%);background:#212529;color:#fff;padding:.7rem 1.5rem;border-radius:2rem;font-size:.9rem;font-weight:600;z-index:9999;box-shadow:0 4px 20px rgba(0,0,0,.2);animation:pd-fade 2.5s ease forwards;white-space:nowrap; }
    @keyframes pd-fade { 0%{opacity:0;transform:translateX(-50%) translateY(10px)}15%{opacity:1;transform:translateX(-50%) translateY(0)}75%{opacity:1}100%{opacity:0;transform:translateX(-50%) translateY(-10px)} }

    /* ===== Sticky Bar ===== */
    .pd-sticky-bar { display:none;position:fixed;bottom:0;left:0;right:0;background:rgba(255,255,255,.98);border-top:1px solid #e9edf2;box-shadow:0 -12px 32px -24px rgba(15,23,42,.55);z-index:1000;padding:.6rem 1rem;padding-bottom:calc(.6rem + env(safe-area-inset-bottom,0px));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px); }
    .pd-sticky-inner { display:flex;align-items:center;gap:.75rem;max-width:1200px;margin:0 auto; }
    .pd-sticky-price { flex-shrink:0;display:flex;flex-direction:column;align-items:center;line-height:1.2; }
    .pd-sticky-old { font-size:.65rem;color:#adb5bd;text-decoration:line-through;line-height:1; }
    .pd-sticky-current { font-size:.95rem;font-weight:800;color:#2563eb; }
    .pd-sticky-label { font-size:.6rem;color:#94a3b8;font-weight:600; }
    .pd-sticky-actions { display:flex;align-items:center;gap:.5rem;flex:1;min-width:0; }
    .pd-sticky-qty { display:flex;align-items:center;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#f8fafc;flex-shrink:0; }
    .pd-sticky-qty-btn { display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:none;background:transparent;color:#475569;cursor:pointer;padding:0;min-width:42px;min-height:42px; }
    .pd-sticky-qty-btn:hover:not(:disabled) { background:#eef2f7;color:#2563eb; }
    .pd-sticky-qty-btn:disabled { opacity:.3;cursor:not-allowed; }
    .pd-sticky-qty-val { min-width:36px;text-align:center;font-weight:700;font-size:.95rem;color:#0f172a;user-select:none; }
    .pd-sticky-cart { display:flex;align-items:center;justify-content:center;gap:.4rem;flex:1;padding:.7rem 1rem;border:none;border-radius:12px;background:#2563eb;color:#fff;font-size:.9rem;font-weight:800;cursor:pointer;transition:background .2s;min-height:46px;white-space:nowrap;box-shadow:0 10px 22px -14px rgba(37,99,235,.7); }
    .pd-sticky-cart:hover:not(:disabled) { background:#1d4ed8; }
    .pd-sticky-cart:disabled { opacity:.5;cursor:not-allowed; }
    .pd-sticky-cart.pd-cart-done { background:#198754 !important; }
    .pd-sticky-cart svg { flex-shrink:0; }

    /* ===== Scroll to Top ===== */
    .pd-scroll-top { position:fixed;bottom:80px;left:1rem;right:auto;width:44px;height:44px;border-radius:50%;border:none;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(37,99,235,.3);transition:all .25s ease;z-index:999;opacity:0;visibility:hidden;transform:translateY(10px); }
    .pd-scroll-top.pd-scroll-visible { opacity:1;visibility:visible;transform:translateY(0); }
    .pd-scroll-top:hover { background:#0b5ed7;transform:translateY(-2px);box-shadow:0 6px 20px rgba(13,110,253,.4); }
    .pd-scroll-top.pd-scroll-visible:hover { transform:translateY(-2px); }

    @media (min-width:992px) {
        .pd-container { padding:2rem 1.5rem; }
        .pd-main { display:flex;align-items:flex-start;gap:2.5rem; }
        .pd-side { flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:1.1rem; }
        .pd-side .pd-chart { margin-top:0; }
        .pd-info { flex:1 1 0;min-width:0; }
        .pd-title { font-size:1.65rem; }
        .pd-price-num { font-size:2.1rem; }
        .pd-stat { padding:1rem .5rem; }
        .pd-stat b { font-size:1.12rem; }
        .pd-stat span { font-size:.74rem; }
        .pd-gallery-view { border-radius:20px; }
        .pd-gallery-slide { padding:1.5rem;height:500px; }
        .pd-thumb { width:72px;height:72px;flex-basis:72px; }
        .pd-sticky-bar { display:none !important; }
        .pd-sug-card { flex:0 0 190px; }
        .pd-header-sticky { display: none; }
    }

    @media (max-width:991.98px) {
        .pd-main { grid-template-columns:1fr;gap:1.5rem; }
        .pd-side,.pd-info { display:contents; }
        .pd-gallery { order:1; }
        .pd-head,.pd-extra,.pd-statcard,.pd-buy { order:2; }
        .pd-chart { order:3; }
        .pd-highlights { order:4; }
        .pd-gallery-slide { height:400px; }
        .pd-container { padding:1rem .75rem; }
        .pd-header-sticky { margin: -1rem -0.75rem 0.75rem; padding: 0 0.75rem; }
    }

    @media (max-width:767.98px) {
        .pd-container { padding:.75rem .6rem; }
        .pd-breadcrumb { margin-bottom:.75rem; }
        .pd-breadcrumb ol { font-size:.78rem; }
        .pd-gallery-slide { height:320px;padding:.75rem; }
        .pd-thumbs { gap:.4rem; }
        .pd-thumb { width:54px;height:54px;flex-basis:54px;border-radius:11px; }
        .pd-info { gap:.9rem; }
        .pd-title { font-size:1.2rem; }
        .pd-extra { font-size:.74rem;gap:.4rem 1rem;padding-bottom:.75rem; }
        .pd-stat { padding:.7rem .35rem; }
        .pd-stat b { font-size:.96rem; }
        .pd-stat span { font-size:.64rem; }
        .pd-stat-stars svg { width:10px;height:10px; }
        .pd-buy { padding:.95rem 1rem 1rem;gap:.85rem;border-radius:16px; }
        .pd-price-num { font-size:1.6rem; }
        .pd-price-unit { font-size:.76rem; }
        .pd-price-old { font-size:.78rem; }
        .pd-hl { padding:.7rem .85rem;gap:.6rem; }
        .pd-hl-icon { width:34px;height:34px;border-radius:10px; }
        .pd-hl-text b { font-size:.78rem; }
        .pd-hl-text small { font-size:.68rem; }
        .pd-actions { gap:.6rem; }
        .pd-qty { gap:.45rem; }
        .pd-qty-label { font-size:.78rem; }
        .pd-qty-box { max-width:none; }
        .pd-share { padding:0;width:44px;min-width:44px; }
        .pd-share span { display:none; }
        .pd-add-cart { min-height:50px;font-size:.94rem;padding:.8rem 1rem; }
        .pd-notify-btn { min-height:50px;font-size:.94rem;padding:.8rem 1rem; }
        .pd-tabs-wrap { margin-top:1.5rem;border-radius:16px; }
        .pd-tabs-header { padding:0 .35rem;gap:0; }
        .pd-tab-btn { font-size:.82rem;padding:.9rem .6rem .95rem;gap:.35rem; }
        .pd-tab-ico svg { width:16px;height:16px; }
        .pd-tab-count { min-width:20px;height:18px;font-size:.64rem; }
        .pd-tab-content { padding:1.05rem 1rem 1.25rem; }
        .pd-specs--sheet { border-radius:14px; }
        .pd-specs--sheet .pd-spec { padding:.68rem .85rem;gap:.7rem;grid-template-columns:minmax(92px,32%) 1fr; }
        .pd-spec-chip { font-size:.74rem; }
        .pd-spec-val { font-size:.82rem; }
        .pd-spec-status { font-size:.7rem;padding:.24rem .75rem; }
        .pd-tech-card { padding:.8rem .85rem;border-radius:12px; }
        .pd-desc { font-size:.9rem;line-height:1.95; }
        .pd-desc h1 { font-size:1.15rem; }
        .pd-desc h2 { font-size:1.08rem; }
        .pd-desc h3 { font-size:1rem; }
        .pd-sug { padding:.9rem .85rem 1rem; border-radius:16px; margin-top:1.75rem; }
        .pd-sug-head { align-items:flex-start; }
        .pd-sug-ico { width:34px;height:34px;border-radius:10px; }
        .pd-sug-title-text b { font-size:.93rem; }
        .pd-sug-title-text small { font-size:.7rem; }
        .pd-sug-card { flex:0 0 150px; }
        .pd-sug-name { font-size:.75rem; }
        .pd-lightbox-prev { right:auto;left:.5rem;top:50%; }
        .pd-lightbox-next { left:auto;right:.5rem;top:50%; }
        .pd-sticky-bar { display:block; }
        .pd-scroll-top { bottom:72px;left:.75rem;right:auto;width:40px;height:40px; }
    }

    @media (max-width:400px) {
        .pd-gallery-slide { height:260px; }
        .pd-price-num { font-size:1.42rem; }
        .pd-tab-btn { font-size:.76rem;padding:.85rem .45rem .9rem;gap:.28rem; }
        .pd-tab-ico svg { width:15px;height:15px; }
        .pd-specs--sheet .pd-spec { grid-template-columns:1fr;gap:.25rem;padding:.65rem .8rem; }
        .pd-spec-chip::before { width:5px;height:5px; }
        .pd-qty-box { max-width:140px; }
        .pd-sug-card { flex:0 0 138px; }
        .pd-sug-body { padding:.5rem .6rem .65rem; }
        .pd-sug-tab { font-size:.72rem; padding:.34rem .6rem; }
        .pd-add-cart { font-size:.86rem;padding:.7rem .75rem;gap:.35rem; }
        .pd-notify-btn { font-size:.86rem;padding:.7rem .75rem;gap:.35rem; }
        .pd-sticky-price { display:none; }
        .pd-sticky-inner { gap:.5rem; }
        .pd-sticky-qty-btn { min-width:38px;min-height:38px;width:34px;height:34px; }
        .pd-sticky-qty-val { min-width:30px;font-size:.85rem; }
        .pd-sticky-cart { font-size:.82rem;padding:.6rem .75rem;gap:.3rem;min-height:40px; }
        .pd-sticky-notify { font-size:.78rem;padding:.6rem .6rem;gap:.3rem;min-height:40px; }
    }

    @media (max-width:360px) {
        .pd-sticky-cart { font-size:.75rem;padding:.5rem .6rem;gap:.25rem;min-height:38px; }
        .pd-sticky-notify { font-size:.72rem;padding:.5rem .5rem;gap:.25rem;min-height:38px; }
        .pd-sticky-qty-btn { min-width:34px;min-height:34px;width:30px;height:30px; }
        .pd-sticky-qty-val { min-width:26px;font-size:.8rem; }
        .pd-sticky-inner { gap:.35rem; }
    }

    @media (prefers-reduced-motion: reduce) {
        .pd-skeleton, .pd-sk-line, .pd-cart-spinner, .pd-tab-content, .pd-lightbox, .pd-toast, .pd-share-modal {
            animation: none !important;
            transition: none !important;
        }
        .pd-scroll-top, .pd-share, .pd-add-cart, .pd-sug-card, .pd-hl, .pd-main-img {
            transition: none !important;
        }
    }


.pd-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: .5rem 0 0; }
    .pd-badge {
        font-size: .7rem;
        font-weight: 800;
        padding: 3px 10px;
        border-radius: 999px;
        border: 1px solid transparent;
    }
    .pd-badge--new { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
    .pd-badge--sale { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
    .pd-badge--low { background: #fef3c7; color: #b45309; border-color: #fde68a; }
    .pd-badge--hot { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }

    .pd-chart {
        margin-top: .9rem;
        background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        padding: .9rem 1rem .8rem;
    }
    .pd-chart__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
    .pd-chart__title b { display: block; font-size: .86rem; font-weight: 800; color: #0f172a; }
    .pd-chart__title small { display: block; margin-top: 2px; font-size: .64rem; color: #64748b; line-height: 1.7; }
    .pd-chart__legend { display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; padding-top: 2px; font-size: .64rem; color: #64748b; white-space: nowrap; }
    .pd-chart__legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: #2563eb; }
    .pd-chart__body {
        position: relative;
        height: 150px;
        margin-top: .95rem;
        padding: 0 4px;
        direction: ltr;
    }
    .pd-chart__plot { position: relative; height: 100%; }
    .pd-chart__plot::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image: linear-gradient(#e2e8f0, #e2e8f0), linear-gradient(#e2e8f0, #e2e8f0), linear-gradient(#e2e8f0, #e2e8f0);
        background-size: 100% 1px;
        background-repeat: no-repeat;
        background-position: 0 12%, 0 50%, 0 88%;
    }
    .pd-chart__svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        overflow: visible;
    }
    .pd-chart__cols {
        position: absolute;
        inset: 0;
        direction: ltr;
    }
    .pd-chart__col {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 34px;
        margin-left: -17px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .pd-chart__col:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 4px; }
    .pd-chart__col > span { pointer-events: none; }
    .pd-chart__xline {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        border-left: 1px dashed #2563eb;
        opacity: 0;
        transition: opacity .15s;
    }
    .pd-chart__dot {
        position: absolute;
        left: 50%;
        width: 9px;
        height: 9px;
        margin: -4.5px 0 0 -4.5px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid #2563eb;
        box-shadow: 0 2px 6px rgba(37,99,235,.35);
        transition: transform .15s, box-shadow .15s;
    }
    .pd-chart__col:last-child .pd-chart__dot {
        width: 12px;
        height: 12px;
        margin: -6px 0 0 -6px;
        background: #2563eb;
        border-color: #fff;
        box-shadow: 0 0 0 4px rgba(37,99,235,.16);
    }
    .pd-chart__col:hover .pd-chart__dot,
    .pd-chart__col.is-active .pd-chart__dot { transform: scale(1.35); }
    .pd-chart__tip {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1px;
        background: #0f172a;
        color: #fff;
        padding: .38rem .55rem;
        border-radius: .5rem;
        font-size: .68rem;
        line-height: 1.6;
        white-space: nowrap;
        direction: rtl;
        opacity: 0;
        visibility: hidden;
        transition: opacity .15s;
        box-shadow: 0 8px 20px rgba(15,23,42,.3);
        z-index: 6;
    }
    .pd-chart__tip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border: 5px solid transparent;
        border-top-color: #0f172a;
    }
    .pd-chart__tip b { font-weight: 800; color: #86efac; }
    .pd-chart__tip i { font-style: normal; color: #cbd5e1; font-size: .64rem; direction: ltr; }
    .pd-chart__col:hover .pd-chart__xline,
    .pd-chart__col.is-active .pd-chart__xline { opacity: .7; }
    .pd-chart__col:hover .pd-chart__tip { opacity: 1; visibility: visible; }
    .pd-chart__col:first-child .pd-chart__tip { left: 17px; transform: none; }
    .pd-chart__col:first-child .pd-chart__tip::after { left: 5px; margin-left: 0; }
    .pd-chart__col:last-child .pd-chart__tip { left: auto; right: 17px; transform: none; }
    .pd-chart__col:last-child .pd-chart__tip::after { left: auto; right: 5px; margin-left: 0; }
    .pd-chart__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem .75rem;
        flex-wrap: wrap;
        margin-top: .75rem;
        padding: .55rem .7rem;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: .75rem;
    }
    .pd-chart__sum { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
    .pd-chart__sum-label { font-size: .68rem; color: #64748b; }
    .pd-chart__sum b { font-size: 1rem; font-weight: 900; color: #0f172a; font-variant-numeric: tabular-nums; }
    .pd-chart__sum b small { font-size: .6rem; font-weight: 700; color: #64748b; }
    .pd-chart__sum-date { font-size: .64rem; color: #94a3b8; direction: ltr; font-variant-numeric: tabular-nums; }
    .pd-chart__foot {
        display: flex;
        justify-content: space-between;
        margin-top: 6px;
        font-size: .66rem;
        color: #94a3b8;
        direction: ltr;
        font-variant-numeric: tabular-nums;
    }
    @media (max-width: 575.98px) {
        .pd-chart { padding: .75rem .7rem .7rem; }
        .pd-chart__legend { display: none; }
        .pd-chart__title small { font-size: .58rem; }
        .pd-chart__body { height: 128px; margin-top: .75rem; padding: 0 2px; }
        .pd-chart__col { width: 30px; margin-left: -15px; }
        .pd-chart__summary { padding: .5rem .55rem; }
        .pd-chart__sum b { font-size: .9rem; }
    }

    .pd-chart--empty { background: #f8fafc; border-style: dashed; border-color: #cbd5e1; }
    .pd-chart__empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
        padding: 1.4rem 1rem .6rem;
    }
    .pd-chart__empty .oi { font-size: 1.7rem; color: #94a3b8; }
    .pd-chart__empty b { font-size: .82rem; color: #475569; }
    .pd-chart__empty span:last-child { font-size: .72rem; color: #94a3b8; line-height: 1.9; max-width: 340px; }

    .pd-subs {
        margin-top: 1rem;
        padding: .9rem 1rem;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 1rem;
    }
    .pd-subs__head { display: flex; align-items: center; gap: .5rem; color: #1d4ed8; font-size: .85rem; font-weight: 800; margin-bottom: .7rem; }
    .pd-subs__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
    .pd-subs__item { display: flex; flex-direction: column; gap: .4rem; padding: .6rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .8rem; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
    .pd-subs__item:hover { box-shadow: 0 6px 16px rgba(29,78,216,.12); transform: translateY(-2px); }
    .pd-subs__img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: .6rem; background: #f8fafc; }
    .pd-subs__img img { width: 100%; height: 100%; object-fit: contain; }
    .pd-subs__name { font-size: .74rem; font-weight: 700; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
    .pd-subs__price { display: flex; align-items: baseline; gap: .3rem; font-size: .78rem; color: #16a34a; }
    .pd-subs__price b { font-weight: 800; }
    .pd-subs__price span { font-size: .68rem; color: #6b7280; }
    .pd-subs__old { font-size: .68rem; color: #9ca3af; text-decoration: line-through; }
    @media (max-width: 576px) { .pd-subs__list { grid-template-columns: repeat(2, 1fr); } }

    .pd-qna { padding-top: .25rem; }
    .pd-qna-form {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        padding: 1rem;
        margin-bottom: 1.25rem;
    }
    .pd-qna-form-head b { display: block; font-size: .95rem; }
    .pd-qna-form-head span { font-size: .75rem; color: #64748b; }
    .pd-qna-fields { display: grid; gap: .6rem; margin-top: .8rem; }
    .pd-qna-input {
        width: 100%;
        border: 1px solid #e2e8f0;
        border-radius: .75rem;
        padding: .65rem .8rem;
        font-size: .85rem;
        background: #fff;
    }
    .pd-qna-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
    .pd-qna-textarea { min-height: 90px; resize: vertical; }
    .pd-qna-submit {
        justify-self: start;
        border: 0;
        background: #2563eb;
        color: #fff;
        font-weight: 800;
        font-size: .85rem;
        padding: .6rem 1.4rem;
        border-radius: .75rem;
        cursor: pointer;
    }
    .pd-qna-submit:disabled { opacity: .6; cursor: not-allowed; }
    .pd-qna-list { display: flex; flex-direction: column; gap: .9rem; }
    .pd-qna-item {
        display: flex;
        align-items: flex-start;
        gap: .9rem;
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        padding: .9rem 1rem;
        background: #fff;
    }
    .pd-qna-item-main { flex: 1; min-width: 0; }
    .pd-qna-item-head { display: flex; align-items: center; gap: .6rem; font-size: .82rem; }
    .pd-qna-date { color: #94a3b8; font-size: .7rem; }
    .pd-qna-q { margin: .4rem 0 0; font-size: .9rem; color: #0f172a; }
    .pd-qna-answer {
        margin-top: .7rem;
        background: #f0f9ff;
        border: 1px solid #e0f2fe;
        border-radius: .75rem;
        padding: .6rem .8rem;
    }
    .pd-qna-answer-label { font-size: .7rem; font-weight: 900; color: #0369a1; }
    .pd-qna-answer p { margin: .3rem 0 0; font-size: .85rem; color: #0c4a6e; }
    .pd-qna-vote {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        border: 1px solid #e2e8f0;
        background: #fff;
        border-radius: .75rem;
        padding: .45rem .6rem;
        font-size: .75rem;
        color: #64748b;
        cursor: pointer;
        transition: all .15s;
    }
    .pd-qna-vote:hover { border-color: #2563eb; color: #2563eb; }
    .pd-qna-vote--on { background: #eff6ff; border-color: #2563eb; color: #2563eb; }

    .pd-qna-topbar {
        display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between;
        background: #fff; border: 1px solid #e8edf3; border-radius: 1rem; padding: .7rem .85rem; margin-bottom: 1rem;
        box-shadow: 0 1px 2px rgba(15,23,42,.04);
    }
    .pd-qna-stats { display: flex; gap: .4rem; flex-wrap: wrap; }
    .pd-qna-stat { font-size: .72rem; font-weight: 900; padding: .3rem .6rem; border-radius: 999px; }
    .pd-qna-stat--q { background: #eff6ff; color: #1d4ed8; }
    .pd-qna-stat--a { background: #ecfdf5; color: #047857; }
    .pd-qna-stat--w { background: #fffbeb; color: #b45309; }
    .pd-qna-filters { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
    .pd-qna-chip {
        border: 1px solid #e2e8f0; background: #fff; color: #475569;
        font-size: .74rem; font-weight: 800; padding: .32rem .7rem; border-radius: 999px;
        cursor: pointer; transition: all .15s;
    }
    .pd-qna-chip:hover { border-color: #bfdbfe; color: #1d4ed8; }
    .pd-qna-chip--on { background: #2563eb; border-color: #2563eb; color: #fff; }
    .pd-qna-search {
        border: 1px solid #e2e8f0; border-radius: 999px; padding: .34rem .85rem;
        font-size: .78rem; font-weight: 700; min-width: 175px; outline: none; transition: all .15s;
    }
    .pd-qna-search:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }

    .pd-qna-empty {
        display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center;
        padding: 2.2rem 1rem; color: #64748b; background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 1rem;
    }
    .pd-qna-empty .oi { font-size: 1.9rem; color: #bfdbfe; }
    .pd-qna-empty b { color: #334155; font-size: .9rem; }
    .pd-qna-empty span:last-child { font-size: .78rem; }

    .pd-qna-item {
        display: flex; gap: .7rem; align-items: flex-start;
        background: #fff; border: 1px solid #e8edf3; border-right: 4px solid #e2e8f0;
        border-radius: .9rem; padding: .85rem .9rem;
        transition: box-shadow .15s, border-color .15s;
    }
    .pd-qna-item:hover { box-shadow: 0 6px 18px rgba(15,23,42,.07); }
    .pd-qna-item--answered { border-right-color: #10b981; background: linear-gradient(180deg,#ffffff 0%,#f7fffd 100%); }
    .pd-qna-avatar {
        width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
        background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe;
        font-weight: 900; font-size: 1rem; display: flex; align-items: center; justify-content: center;
    }
    .pd-qna-item--answered .pd-qna-avatar { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
    .pd-qna-item-head b { font-size: .85rem; color: #0f172a; }
    .pd-qna-tag { font-size: .65rem; font-weight: 900; padding: .14rem .5rem; border-radius: 999px; }
    .pd-qna-tag--ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
    .pd-qna-tag--wait { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

    .pd-qna-answer {
        margin-top: .55rem; background: #f0fdfa; border: 1px solid #99f6e4;
        border-right: 3px solid #14b8a6; border-radius: .7rem; padding: .6rem .75rem;
    }
    .pd-qna-answer-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
    .pd-qna-answer-label { font-size: .7rem; font-weight: 900; color: #0f766e; display: inline-flex; align-items: center; gap: .25rem; }
    .pd-qna-answer p { margin: .35rem 0 0; font-size: .85rem; color: #134e4a; line-height: 1.9; white-space: pre-wrap; }

    .pd-qna-replies { margin-top: .6rem; border-top: 1px dashed #e2e8f0; padding-top: .55rem; display: flex; flex-direction: column; gap: .5rem; }
    .pd-qna-reply { display: flex; gap: .5rem; align-items: flex-start; background: #f8fafc; border: 1px solid #eef2f7; border-radius: .65rem; padding: .5rem .6rem; }
    .pd-qna-reply--admin { background: #eff6ff; border-color: #dbeafe; }
    .pd-qna-reply-avatar {
        width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
        background: #fff; border: 1px solid #e2e8f0; color: #475569;
        font-size: .8rem; font-weight: 900; display: flex; align-items: center; justify-content: center;
    }
    .pd-qna-reply--admin .pd-qna-reply-avatar { background: #2563eb; color: #fff; border-color: #2563eb; }
    .pd-qna-reply-head { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .76rem; }
    .pd-qna-reply-head b { color: #0f172a; font-size: .78rem; }
    .pd-qna-reply-body p { margin: .2rem 0 0; font-size: .82rem; color: #334155; line-height: 1.85; white-space: pre-wrap; }
    .pd-qna-badge-admin { background: #2563eb; color: #fff; font-size: .62rem; font-weight: 900; padding: .1rem .45rem; border-radius: 999px; }

    .pd-qna-reply-btn {
        margin-top: .55rem; background: transparent; border: 1px dashed #bfdbfe; color: #2563eb;
        font-size: .75rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px;
        cursor: pointer; transition: all .15s;
    }
    .pd-qna-reply-btn:hover { background: #eff6ff; border-style: solid; }
    .pd-qna-reply-form { margin-top: .55rem; display: flex; flex-direction: column; gap: .45rem; }
    .pd-qna-reply-actions { display: flex; gap: .5rem; align-items: center; }
    .pd-qna-link { background: none; border: 0; color: #64748b; font-size: .76rem; font-weight: 800; cursor: pointer; }
    .pd-qna-link:hover { color: #0f172a; }
    .pd-qna-submit--sm { padding: .45rem .95rem; font-size: .78rem; }

    @media (max-width: 575.98px) {
        .pd-qna-topbar { flex-direction: column; align-items: stretch; }
        .pd-qna-search { min-width: 0; width: 100%; }
        .pd-qna-item { flex-wrap: wrap; }
    }


/* ===== Client/Shared/CommentSection.razor ===== */
.cs-wrapper { font-family: inherit; }
    .cs-wrapper * { box-sizing: border-box; }

    .cs-dark { --cs-bg: #0f172a; --cs-surface: #1e293b; --cs-border: #334155; --cs-text: #f1f5f9; --cs-muted: #94a3b8; --cs-input-bg: #1e293b; --cs-input-border: #334155; --cs-shadow: 0 4px 24px rgba(0,0,0,.3); }
    :root { --cs-bg: transparent; --cs-surface: #fff; --cs-border: #e2e8f0; --cs-text: #0f172a; --cs-muted: #64748b; --cs-input-bg: #fff; --cs-input-border: #cbd5e1; --cs-shadow: 0 4px 24px rgba(15,23,42,.08); }

    .cs-summary { display:flex; align-items:center; gap:1.25rem; padding:1.25rem; background:var(--cs-surface); border-radius:18px; box-shadow:var(--cs-shadow); margin-bottom:1.5rem; }
    .cs-summary__score { text-align:center; min-width:90px; }
    .cs-summary__number { font-size:2rem; font-weight:800; color:#2563eb; line-height:1; }
    .cs-summary__label { font-size:.8rem; color:var(--cs-muted); margin-top:2px; }
    .cs-summary__stars-col { flex:1; }
    .cs-summary__stars { display:flex; gap:2px; margin-bottom:4px; }
    .cs-summary__sub { font-size:.8rem; color:var(--cs-muted); }

    .cs-list { display:flex; flex-direction:column; gap:1rem; margin-bottom:1.5rem; }

    .cs-empty { text-align:center; padding:3rem 1rem; background:var(--cs-surface); border-radius:18px; box-shadow:var(--cs-shadow); margin-bottom:1.5rem; }
    .cs-empty__icon { width:56px;height:56px;border-radius:18px;background:rgba(37,99,235,.1);color:#2563eb;display:grid;place-items:center;margin:0 auto 1rem; }
    .cs-empty__title { font-weight:700;color:var(--cs-text);margin-bottom:4px; }
    .cs-empty__sub { font-size:.88rem;color:var(--cs-muted); }

    .cs-form { padding:1.5rem; background:var(--cs-surface); border-radius:18px; box-shadow:var(--cs-shadow); }
    .cs-form__title { font-weight:700; font-size:1.1rem; margin-bottom:1.25rem; color:var(--cs-text); }
    .cs-form__actions { display:flex; align-items:center; gap:1rem; margin-top:1rem; flex-wrap:wrap; }
    .cs-field { margin-bottom:1rem; }
    .cs-field--half { flex:1; min-width:0; }
    .cs-row { display:flex; gap:1rem; }
    .cs-label { display:block; font-size:.82rem; font-weight:600; color:var(--cs-text); margin-bottom:6px; }
    .cs-input { display:block; width:100%; padding:.65rem .85rem; font-size:.92rem; border:1px solid var(--cs-input-border); border-radius:12px; background:var(--cs-input-bg); color:var(--cs-text); transition:border-color .2s; font-family:inherit; }
    .cs-input:focus { outline:none;border-color:#2563eb; }
    .cs-input[readonly] { background:#f1f5f9; color:#475569; cursor:not-allowed; }
    .cs-input--error { border-color:#ef4444 !important; }
    .cs-hint { display:block;color:#64748b;font-size:.72rem;margin-top:4px; }
    .cs-textarea { resize:vertical;min-height:90px; }
    .cs-error { display:block;color:#ef4444;font-size:.78rem;margin-top:4px; }
    .cs-alert { padding:.75rem 1rem; border-radius:12px; font-size:.88rem; margin-top:1rem; }
    .cs-alert--success { background:rgba(16,185,129,.12); color:#059669; border:1px solid rgba(16,185,129,.25); }
    .cs-alert--danger { background:rgba(239,68,68,.12); color:#dc2626; border:1px solid rgba(239,68,68,.25); }

    .cs-stars-input { display:flex;gap:4px; }
    .cs-star-btn { background:none;border:none;padding:2px;cursor:pointer;transition:transform .15s;line-height:0; }
    .cs-star-btn:hover { transform:scale(1.15); }
    .cs-star-btn--active svg { filter:drop-shadow(0 2px 6px rgba(245,158,11,.35)); }
    @media(prefers-reduced-motion:reduce) { .cs-star-btn { transition:none; } }

    .cs-btn { display:inline-flex;align-items:center;gap:6px;padding:.6rem 1.5rem;border:none;border-radius:999px;font-size:.9rem;font-weight:600;cursor:pointer;transition:opacity .2s,transform .15s;font-family:inherit; }
    .cs-btn:disabled { opacity:.55;cursor:not-allowed; }
    .cs-btn:hover:not(:disabled) { transform:translateY(-1px); }
    .cs-btn--primary { background:#2563eb; color:#fff; }
    .cs-btn--sm { padding:.4rem 1rem;font-size:.82rem; }
    .cs-spinner { display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:cs-spin .5s linear infinite; }
    @keyframes cs-spin { to { transform:rotate(360deg); } }

    .cs-comment { background:var(--cs-surface); border-radius:16px; box-shadow:0 2px 12px rgba(15,23,42,.06); overflow:hidden; transition:box-shadow .2s; }
    .cs-comment:hover { box-shadow:0 4px 20px rgba(15,23,42,.1); }
    .cs-comment__inner { padding:1rem 1.1rem; }
    .cs-comment__head { display:flex;align-items:center;gap:10px;margin-bottom:8px; }
    .cs-comment__avatar { width:40px;height:40px;border-radius:999px;display:grid;place-items:center;font-weight:800;font-size:.9rem;color:#fff;flex-shrink:0;background:linear-gradient(135deg,#3b82f6,#1d4ed8); }
    .cs-comment:nth-child(2n) .cs-comment__avatar { background:linear-gradient(135deg,#34d399,#059669); }
    .cs-comment--reply { border-right:3px solid #2563eb; }
    .cs-comment--reply .cs-comment__inner { background:rgba(37,99,235,.03); }
    .cs-reply-badge { display:inline-flex;align-items:center;gap:3px;font-size:.7rem;font-weight:600;color:#2563eb;background:rgba(37,99,235,.1);padding:1px 8px;border-radius:999px;margin-right:6px;vertical-align:middle; }
    .cs-reply-badge::before { content:"↩";font-size:.75rem; }
    .cs-comment__meta { flex:1;min-width:0; }
    .cs-comment__name { font-weight:700;font-size:.9rem;color:var(--cs-text); }
    .cs-comment__time { font-size:.75rem;color:var(--cs-muted);display:flex;align-items:center;gap:4px;margin-top:1px; }
    .cs-comment__body { color:var(--cs-text);font-size:.92rem;line-height:1.8;white-space:pre-wrap; }
    .cs-comment__footer { display:flex;align-items:center;gap:1rem;margin-top:10px; }
    .cs-comment__stars { display:flex;gap:1px; }
    .cs-comment__stars svg { display:block; }
    .cs-comment__reply-btn { background:none;border:none;padding:4px 0;font-size:.8rem;font-weight:600;color:#2563eb;cursor:pointer;transition:opacity .15s;font-family:inherit; }
    .cs-comment__reply-btn:hover { opacity:.75; }

    .cs-reply-form { padding:.75rem 1rem 0; }
    .cs-reply-form .cs-field { margin-bottom:.75rem; }
    .cs-reply-form .cs-row { gap:.75rem; }
    .cs-reply-form .cs-label { font-size:.78rem; }
    .cs-reply-form .cs-input { padding:.5rem .75rem; font-size:.88rem; border-radius:10px; }
    .cs-reply-form .cs-textarea { min-height:60px; }
    .cs-reply-form .cs-form__actions { margin-top:0; }

    .cs-replies { padding-right:1.25rem; margin-top:.5rem; border-right:2px solid var(--cs-border); }
    .cs-replies .cs-comment { box-shadow:none; background:transparent; margin:5px; }
    .cs-replies .cs-comment__inner { padding:.75rem .75rem .75rem 0; }
    .cs-replies .cs-comment__avatar { width:32px;height:32px;font-size:.75rem; }

    @media(max-width:576px) {
        .cs-row { flex-direction:column; gap:0; }
        .cs-summary { flex-direction:column; text-align:center; }
        .cs-summary__stars { justify-content:center; }
        .cs-replies { padding-right:.75rem; }
        .cs-form { padding:1.25rem; }
    }

    .cs-media { max-width: 260px; }
    .cs-comment__media { margin-top: .75rem; }
    .cs-comment__media img, .cs-comment__media video {
        max-width: 320px;
        width: 100%;
        border-radius: .75rem;
        border: 1px solid rgba(148, 163, 184, .35);
        display: block;
        background: #0f172a0d;
    }

    .cs-verified {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-size: .68rem;
        font-weight: 700;
        color: #047857;
        background: rgba(16, 185, 129, .13);
        border: 1px solid rgba(16, 185, 129, .28);
        padding: 1px 7px;
        border-radius: 999px;
        margin-right: 6px;
        vertical-align: middle;
        white-space: nowrap;
    }

    .cs-verified svg { flex: 0 0 auto; }

    .cs-gallery { background:var(--cs-surface); border-radius:16px; box-shadow:var(--cs-shadow); padding:.9rem 1rem; margin-bottom:1.25rem; }
    .cs-gallery__head { display:flex; align-items:center; gap:.45rem; font-size:.86rem; color:var(--cs-text); margin-bottom:.6rem; }
    .cs-gallery__icon { width:26px; height:26px; display:grid; place-items:center; border-radius:8px; background:rgba(37,99,235,.1); color:#2563eb; }
    .cs-gallery__count { font-size:.7rem; font-weight:800; color:#2563eb; background:rgba(37,99,235,.1); border-radius:999px; padding:1px 8px; }
    .cs-gallery__track { display:flex; gap:.55rem; overflow-x:auto; padding-bottom:.25rem; }
    .cs-gallery__item { flex:0 0 88px; width:88px; height:88px; padding:0; border:1px solid var(--cs-border); border-radius:12px; overflow:hidden; background:var(--cs-input-bg); cursor:zoom-in; transition:transform .15s, border-color .15s; }
    .cs-gallery__item:hover { transform:translateY(-2px); border-color:#2563eb; }
    .cs-gallery__item img { width:100%; height:100%; object-fit:cover; display:block; }

    .cs-lightbox { position:fixed; inset:0; z-index:2100; background:rgba(2,6,23,.85); display:grid; place-items:center; padding:1.5rem; }
    .cs-lightbox img { max-width:min(920px, 92vw); max-height:86vh; border-radius:14px; box-shadow:0 24px 60px rgba(0,0,0,.45); }
    .cs-lightbox__close { position:absolute; top:18px; left:18px; width:42px; height:42px; border-radius:50%; border:none; background:rgba(255,255,255,.14); color:#fff; font-size:1.4rem; line-height:1; cursor:pointer; display:grid; place-items:center; }
    .cs-lightbox__close:hover { background:rgba(255,255,255,.26); }

    [data-theme="dark"] .cs-gallery__item { border-color:#334155; }

    @media(max-width:576px) {
        .cs-gallery__item { flex-basis:76px; width:76px; height:76px; }
    }

/* ── Product page dark mode (follows the app theme, not the OS) ── */
html[data-theme="dark"] .pd-wrap { color: #cbd5e1; }
html[data-theme="dark"] .pd-container { background: transparent; }
html[data-theme="dark"] .pd-title { color: #f1f5f9; }
html[data-theme="dark"] .pd-category { background: rgba(59,130,246,.16); color: #93c5fd; }
html[data-theme="dark"] .pd-extra { color: #94a3b8; border-bottom-color: #1e293b; }
html[data-theme="dark"] .pd-extra-item { color: #94a3b8; }
html[data-theme="dark"] .pd-instock { color: #34d399; }
html[data-theme="dark"] .pd-outstock { color: #f87171; }
html[data-theme="dark"] .pd-gallery-view { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-thumb { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-thumb--active { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
html[data-theme="dark"] .pd-statcard { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-stat + .pd-stat::before { background: #1e293b; }
html[data-theme="dark"] .pd-stat b { color: #f1f5f9; }
html[data-theme="dark"] .pd-stat span { color: #94a3b8; }
html[data-theme="dark"] .pd-buy { background: #0f172a; border-color: #1e293b; box-shadow: none; }
html[data-theme="dark"] .pd-price-old { color: #64748b; }
html[data-theme="dark"] .pd-price-num { color: #f1f5f9; }
html[data-theme="dark"] .pd-price-unit { color: #94a3b8; }
html[data-theme="dark"] .pd-price-badge { background: rgba(244,63,94,.16); color: #fb7185; }
html[data-theme="dark"] .pd-highlights { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-hl { color: #94a3b8; }
html[data-theme="dark"] .pd-hl + .pd-hl { border-top-color: #1e293b; }
html[data-theme="dark"] .pd-hl:hover { background: #1e293b; }
html[data-theme="dark"] .pd-hl-text b { color: #f1f5f9; }
html[data-theme="dark"] .pd-hl-text small { color: #94a3b8; }
html[data-theme="dark"] .pd-qty-box { border-color: #1e293b; background: #0f172a; }
html[data-theme="dark"] .pd-qty-btn { color: #94a3b8; }
html[data-theme="dark"] .pd-qty-btn:hover:not(:disabled) { background: #1e293b; color: #60a5fa; }
html[data-theme="dark"] .pd-qty-val { color: #f1f5f9; }
html[data-theme="dark"] .pd-share { background: #1e293b; border-color: #334155; color: #94a3b8; }
html[data-theme="dark"] .pd-share:hover { background: #334155; border-color: #3b82f6; color: #60a5fa; }
html[data-theme="dark"] .pd-price-drop--on { background: rgba(245,158,11,.12); border-color: #b45309; color: #fbbf24; }
html[data-theme="dark"] .pd-price-drop--on:hover { background: rgba(245,158,11,.18); border-color: #f59e0b; color: #fcd34d; }
html[data-theme="dark"] .pd-wishlist-active { background: rgba(244,63,94,.14); border-color: rgba(251,113,133,.35); color: #fb7185; }
html[data-theme="dark"] .pd-wishlist-active:hover { background: rgba(244,63,94,.2); border-color: rgba(251,113,133,.5); color: #fb7185; }
html[data-theme="dark"] .pd-tabs-wrap { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-tabs-header { background: #0f172a; border-bottom-color: #1e293b; }
html[data-theme="dark"] .pd-tab-btn { color: #94a3b8; }
html[data-theme="dark"] .pd-tab-btn:hover { color: #60a5fa; }
html[data-theme="dark"] .pd-tab-active { color: #60a5fa !important; }
html[data-theme="dark"] .pd-tab-active::after { background: #3b82f6; }
html[data-theme="dark"] .pd-tab-count { background: #1e293b; color: #94a3b8; }
html[data-theme="dark"] .pd-tab-active .pd-tab-count { background: rgba(59,130,246,.2); color: #93c5fd; }
html[data-theme="dark"] .pd-tab-empty { background: #0f172a; border-color: #1e293b; color: #64748b; }
html[data-theme="dark"] .pd-desc { color: #cbd5e1; }
html[data-theme="dark"] .pd-desc h1, html[data-theme="dark"] .pd-desc h2, html[data-theme="dark"] .pd-desc h3, html[data-theme="dark"] .pd-desc h4, html[data-theme="dark"] .pd-desc h5, html[data-theme="dark"] .pd-desc h6 { color: #f1f5f9; }
html[data-theme="dark"] .pd-desc a { color: #60a5fa; border-bottom-color: rgba(96,165,250,.45); }
html[data-theme="dark"] .pd-desc blockquote { background: #1e293b; color: #cbd5e1; border-inline-start-color: #3b82f6; }
html[data-theme="dark"] .pd-desc th, html[data-theme="dark"] .pd-desc td { border-color: #1e293b; }
html[data-theme="dark"] .pd-desc th { background: #1e293b; color: #f1f5f9; }
html[data-theme="dark"] .pd-desc code { background: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] .pd-desc hr { border-top-color: #1e293b; }
html[data-theme="dark"] .pd-specs--sheet { background:#0f172a;border-color:#1e293b;box-shadow:none; }
html[data-theme="dark"] .pd-specs--sheet .pd-spec { border-bottom-color:#1e293b; }
html[data-theme="dark"] .pd-specs--sheet .pd-spec:nth-child(even) { background:rgba(148,163,184,.04); }
html[data-theme="dark"] .pd-specs--sheet .pd-spec:hover { background:rgba(59,130,246,.08); }
html[data-theme="dark"] .pd-spec-chip { color:#94a3b8 !important; }
html[data-theme="dark"] .pd-spec-chip::before { background:#475569; }
html[data-theme="dark"] .pd-spec-val { color:#f1f5f9; }
html[data-theme="dark"] .pd-spec-val--mono { color:#cbd5e1; }
html[data-theme="dark"] .pd-spec-val--price { color:#60a5fa; }
html[data-theme="dark"] .pd-spec-status.is-ok { background:rgba(16,185,129,.15);color:#34d399;border-color:rgba(52,211,153,.35); }
html[data-theme="dark"] .pd-spec-status.is-no { background:rgba(244,63,94,.15);color:#fb7185;border-color:rgba(251,113,133,.35); }
html[data-theme="dark"] .pd-tech-card { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-tech-card:hover { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .pd-tech-label { color: #94a3b8; }
html[data-theme="dark"] .pd-tech-text { color: #cbd5e1; }
html[data-theme="dark"] .pd-tech-icon { background: #1e293b; color: #94a3b8; }
html[data-theme="dark"] .pd-tech-card.pd-tech-link .pd-tech-icon { background: rgba(59,130,246,.18); color: #60a5fa; }
html[data-theme="dark"] .pd-sug { background: #0f172a; border-color: #1e293b; box-shadow: none; }
html[data-theme="dark"] .pd-sug-ico { background: rgba(59,130,246,.16); color: #60a5fa; }
html[data-theme="dark"] .pd-sug-title-text b { color: #f1f5f9; }
html[data-theme="dark"] .pd-sug-title-text small { color: #94a3b8; }
html[data-theme="dark"] .pd-sug-tabs { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .pd-sug-tab { color: #94a3b8; }
html[data-theme="dark"] .pd-sug-tab:hover { color: #60a5fa; }
html[data-theme="dark"] .pd-sug-tab--on { background: #0f172a; color: #93c5fd; box-shadow: none; }
html[data-theme="dark"] .pd-sug-count { background: #334155; color: #cbd5e1; }
html[data-theme="dark"] .pd-sug-tab--on .pd-sug-count { background: rgba(59,130,246,.22); color: #93c5fd; }
html[data-theme="dark"] .pd-sug-card { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-sug-card:hover { border-color: #334155; box-shadow: 0 16px 30px -22px rgba(0,0,0,.6); }
html[data-theme="dark"] .pd-sug-media { background: #111c33; }
html[data-theme="dark"] .pd-sug-placeholder { color: #475569; }
html[data-theme="dark"] .pd-sug-name { color: #f1f5f9; }
html[data-theme="dark"] .pd-sug-price b { color: #60a5fa; }
html[data-theme="dark"] .pd-sug-price small { color: #94a3b8; }
html[data-theme="dark"] .pd-sug-price del { color: #64748b; }
html[data-theme="dark"] .pd-reviews { --cs-bg: #0f172a; --cs-surface: #1e293b; --cs-border: #334155; --cs-text: #f1f5f9; --cs-muted: #94a3b8; --cs-input-bg: #1e293b; --cs-input-border: #334155; --cs-shadow: 0 4px 24px rgba(0,0,0,.3); }
html[data-theme="dark"] .pd-chart { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-chart__title b { color: #f1f5f9; }
html[data-theme="dark"] .pd-chart__title small, html[data-theme="dark"] .pd-chart__legend, html[data-theme="dark"] .pd-chart__foot { color: #94a3b8; }
html[data-theme="dark"] .pd-chart__plot::before { background-image: linear-gradient(#1e293b, #1e293b), linear-gradient(#1e293b, #1e293b), linear-gradient(#1e293b, #1e293b); }
html[data-theme="dark"] .pd-chart__dot { background: #0f172a; }
html[data-theme="dark"] .pd-chart__summary { background: #111c2e; border-color: #1e293b; }
html[data-theme="dark"] .pd-chart__sum b { color: #f1f5f9; }
html[data-theme="dark"] .pd-chart--empty { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .pd-chart__empty b { color: #cbd5e1; }
html[data-theme="dark"] .pd-sticky-bar { background: rgba(15,23,42,.98); border-top-color: #1e293b; }
html[data-theme="dark"] .pd-sticky-current { color: #60a5fa; }
html[data-theme="dark"] .pd-sticky-old { color: #64748b; }
html[data-theme="dark"] .pd-sticky-qty { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-sticky-qty-btn { background: transparent; color: #94a3b8; }
html[data-theme="dark"] .pd-sticky-qty-btn:hover:not(:disabled) { background: #1e293b; color: #60a5fa; }
html[data-theme="dark"] .pd-sticky-qty-val { color: #f1f5f9; }
html[data-theme="dark"] .pd-header-sticky { background: rgba(15,23,42,0.98); border-bottom-color: #1e293b; }
html[data-theme="dark"] .pd-header-back { background: #1e293b; color: #94a3b8; border-color: #334155; }
html[data-theme="dark"] .pd-header-action { background: #1e293b; color: #94a3b8; border-color: #334155; }
html[data-theme="dark"] .pd-header-title { color: #f1f5f9; }
html[data-theme="dark"] .pd-breadcrumb a { color: #60a5fa; }
html[data-theme="dark"] .pd-breadcrumb li, html[data-theme="dark"] .pd-breadcrumb li+li::before { color: #64748b; }
html[data-theme="dark"] .pd-lightbox { background: rgba(0,0,0,0.92); }
html[data-theme="dark"] .pd-toast { background: #334155; }
html[data-theme="dark"] .pd-scroll-top { box-shadow: 0 4px 14px rgba(59,130,246,0.3); }
html[data-theme="dark"] .pd-discount-ribbon { background: linear-gradient(135deg, #dc2626, #ef4444); }
html[data-theme="dark"] .pd-notfound { background: #1e293b; }
html[data-theme="dark"] .pd-notfound h3 { color: #f1f5f9; }

html[data-theme="dark"] .pd-qna-form { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-qna-form-head b { color: #f1f5f9; }
html[data-theme="dark"] .pd-qna-form-head span { color: #94a3b8; }
html[data-theme="dark"] .pd-qna-input { background: #1e293b; border-color: #334155; color: #f1f5f9; }
html[data-theme="dark"] .pd-qna-input::placeholder { color: #64748b; }
html[data-theme="dark"] .pd-qna-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
html[data-theme="dark"] .pd-qna-topbar { background: #0f172a; border-color: #1e293b; box-shadow: none; }
html[data-theme="dark"] .pd-qna-stat--q { background: rgba(59,130,246,.18); color: #93c5fd; }
html[data-theme="dark"] .pd-qna-stat--a { background: rgba(16,185,129,.16); color: #34d399; }
html[data-theme="dark"] .pd-qna-stat--w { background: rgba(245,158,11,.16); color: #fbbf24; }
html[data-theme="dark"] .pd-qna-chip { background: #0f172a; border-color: #334155; color: #94a3b8; }
html[data-theme="dark"] .pd-qna-chip:hover { border-color: rgba(96,165,250,.5); color: #60a5fa; }
html[data-theme="dark"] .pd-qna-chip--on { background: #2563eb; border-color: #2563eb; color: #fff; }
html[data-theme="dark"] .pd-qna-search { background: #1e293b; border-color: #334155; color: #f1f5f9; }
html[data-theme="dark"] .pd-qna-search:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
html[data-theme="dark"] .pd-qna-empty { background: #0f172a; border-color: #334155; color: #94a3b8; }
html[data-theme="dark"] .pd-qna-empty .oi { color: #475569; }
html[data-theme="dark"] .pd-qna-empty b { color: #cbd5e1; }
html[data-theme="dark"] .pd-qna-item { background: #0f172a; border-color: #1e293b; border-right-color: #334155; }
html[data-theme="dark"] .pd-qna-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.35); }
html[data-theme="dark"] .pd-qna-item--answered { background: linear-gradient(180deg,#0f172a 0%,#0d1f1c 100%); border-right-color: #10b981; }
html[data-theme="dark"] .pd-qna-avatar { background: rgba(59,130,246,.18); color: #60a5fa; border-color: #1e3a8a; }
html[data-theme="dark"] .pd-qna-item--answered .pd-qna-avatar { background: rgba(16,185,129,.16); color: #34d399; border-color: rgba(52,211,153,.35); }
html[data-theme="dark"] .pd-qna-item-head b { color: #f1f5f9; }
html[data-theme="dark"] .pd-qna-date { color: #64748b; }
html[data-theme="dark"] .pd-qna-q { color: #e2e8f0; }
html[data-theme="dark"] .pd-qna-tag--ok { background: rgba(16,185,129,.15); color: #34d399; border-color: rgba(52,211,153,.35); }
html[data-theme="dark"] .pd-qna-tag--wait { background: rgba(245,158,11,.15); color: #fbbf24; border-color: rgba(251,191,36,.35); }
html[data-theme="dark"] .pd-qna-answer { background: rgba(20,184,166,.1); border-color: rgba(45,212,191,.3); border-right-color: #14b8a6; }
html[data-theme="dark"] .pd-qna-answer-label { color: #5eead4; }
html[data-theme="dark"] .pd-qna-answer p { color: #ccfbf1; }
html[data-theme="dark"] .pd-qna-vote { background: #1e293b; border-color: #334155; color: #94a3b8; }
html[data-theme="dark"] .pd-qna-vote:hover { border-color: #3b82f6; color: #60a5fa; }
html[data-theme="dark"] .pd-qna-vote--on { background: rgba(59,130,246,.18); border-color: #3b82f6; color: #93c5fd; }
html[data-theme="dark"] .pd-qna-replies { border-top-color: #1e293b; }
html[data-theme="dark"] .pd-qna-reply { background: #111c33; border-color: #1e293b; }
html[data-theme="dark"] .pd-qna-reply--admin { background: rgba(59,130,246,.12); border-color: #1e3a8a; }
html[data-theme="dark"] .pd-qna-reply-avatar { background: #1e293b; border-color: #334155; color: #cbd5e1; }
html[data-theme="dark"] .pd-qna-reply--admin .pd-qna-reply-avatar { background: #2563eb; border-color: #2563eb; color: #fff; }
html[data-theme="dark"] .pd-qna-reply-head b { color: #f1f5f9; }
html[data-theme="dark"] .pd-qna-reply-body p { color: #cbd5e1; }
html[data-theme="dark"] .pd-qna-reply-btn { border-color: rgba(96,165,250,.4); color: #60a5fa; }
html[data-theme="dark"] .pd-qna-reply-btn:hover { background: rgba(59,130,246,.14); }
html[data-theme="dark"] .pd-qna-link { color: #94a3b8; }
html[data-theme="dark"] .pd-qna-link:hover { color: #f1f5f9; }

/* Product page — sections added after the original dark block */
html[data-theme="dark"] .pd-badge--new { background: rgba(59,130,246,.18); color: #93c5fd; border-color: rgba(96,165,250,.35); }
html[data-theme="dark"] .pd-badge--sale { background: rgba(244,63,94,.16); color: #fb7185; border-color: rgba(251,113,133,.35); }
html[data-theme="dark"] .pd-badge--low { background: rgba(245,158,11,.16); color: #fbbf24; border-color: rgba(251,191,36,.35); }
html[data-theme="dark"] .pd-badge--hot { background: rgba(16,185,129,.16); color: #34d399; border-color: rgba(52,211,153,.35); }

html[data-theme="dark"] .pd-dot { background: rgba(255,255,255,.28); }
html[data-theme="dark"] .pd-dot--active { background: #60a5fa; }

html[data-theme="dark"] .pd-sk-gallery { background: #1e293b; }
html[data-theme="dark"] .pd-sk-line { background: linear-gradient(90deg,#1c2740 25%,#24364f 50%,#1c2740 75%); background-size: 800px 100%; }

html[data-theme="dark"] .pd-notify-btn,
html[data-theme="dark"] .pd-sticky-notify { background: rgba(253,126,20,.12); color: #fdba74; border-color: #c2410c; }
html[data-theme="dark"] .pd-notify-btn:hover:not(:disabled),
html[data-theme="dark"] .pd-sticky-notify:hover:not(:disabled) { background: #ea580c; border-color: #ea580c; color: #fff; }
html[data-theme="dark"] .pd-notify-btn.pd-notify-subscribed,
html[data-theme="dark"] .pd-sticky-notify.pd-notify-subscribed { background: rgba(16,185,129,.16); border-color: #059669; color: #6ee7b7; }

html[data-theme="dark"] .pd-chart { background: linear-gradient(180deg,#0f172a 0%,#111c2e 100%); border-color: #1e293b; }
html[data-theme="dark"] .pd-chart__sum-label,
html[data-theme="dark"] .pd-chart__sum b small,
html[data-theme="dark"] .pd-chart__sum-date,
html[data-theme="dark"] .pd-chart__empty span:last-child,
html[data-theme="dark"] .pd-sticky-label { color: #94a3b8; }
html[data-theme="dark"] .pd-chart__empty .oi { color: #475569; }

html[data-theme="dark"] .pd-subs { background: rgba(59,130,246,.10); border-color: rgba(96,165,250,.28); }
html[data-theme="dark"] .pd-subs__head { color: #93c5fd; }
html[data-theme="dark"] .pd-subs__item { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .pd-subs__item:hover { box-shadow: 0 6px 16px rgba(0,0,0,.45); }
html[data-theme="dark"] .pd-subs__img { background: #111c33; }
html[data-theme="dark"] .pd-subs__name { color: #e2e8f0; }
html[data-theme="dark"] .pd-subs__price span,
html[data-theme="dark"] .pd-subs__old { color: #94a3b8; }

html[data-theme="dark"] .pd-header-back:active,
html[data-theme="dark"] .pd-header-action:active { background: #334155; }
/* ===== Client/Pages/Compare.razor ===== */
.cmp {
        --cmp-bg: #f8fafc;
        --cmp-card: #fff;
        --cmp-border: rgba(15, 23, 42, 0.09);
        --cmp-text: #0f172a;
        --cmp-muted: #64748b;
        --cmp-primary: #2563eb;
        background: var(--cmp-bg);
        padding: 1.4rem 0 3rem;
        min-height: 60vh;
    }

    .cmp-container { max-width: 1240px; }

    .cmp-crumb {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.78rem;
        color: var(--cmp-muted);
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .cmp-crumb a { color: var(--cmp-muted); text-decoration: none; }
    .cmp-crumb a:hover { color: var(--cmp-primary); }
    .cmp-crumb .active { color: var(--cmp-text); font-weight: 800; }
    .cmp-crumb .oi { font-size: 0.6rem; }

    .cmp-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 1.2rem;
    }

    .cmp-title { font-size: 1.45rem; font-weight: 900; color: var(--cmp-text); margin: 0 0 0.3rem; }
    .cmp-sub { font-size: 0.85rem; color: var(--cmp-muted); margin: 0; }

    .cmp-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

    .cmp-count {
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--cmp-primary);
        background: rgba(37, 99, 235, 0.09);
        border-radius: 999px;
        padding: 0.35rem 0.75rem;
    }

    .cmp-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        border-radius: 11px;
        border: 1px solid transparent;
        padding: 0.55rem 0.95rem;
        font-size: 0.8rem;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
        line-height: 1.4;
    }

    .cmp-btn--primary { background: var(--cmp-primary); color: #fff; }
    .cmp-btn--primary:hover { background: #1d4ed8; color: #fff; transform: translateY(-1px); }
    .cmp-btn--ghost {
        background: transparent;
        border-color: var(--cmp-border);
        color: var(--cmp-muted);
    }
    .cmp-btn--ghost:hover { border-color: #dc2626; color: #dc2626; background: rgba(220, 38, 38, 0.05); }
    .cmp-btn--full { width: 100%; }

    .cmp-scroll {
        overflow-x: auto;
        background: var(--cmp-card);
        border: 1px solid var(--cmp-border);
        border-radius: 18px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
        -webkit-overflow-scrolling: touch;
    }

    .cmp-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 0.82rem;
        color: var(--cmp-text);
    }

    .cmp-table th,
    .cmp-table td {
        border-bottom: 1px solid var(--cmp-border);
        padding: 0.85rem 0.9rem;
        text-align: center;
        vertical-align: middle;
    }

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

    .cmp-row-head,
    .cmp-table tbody th {
        position: sticky;
        right: 0;
        z-index: 2;
        background: #f8fafc;
        font-size: 0.76rem;
        font-weight: 800;
        color: var(--cmp-muted);
        text-align: right;
        width: 150px;
        min-width: 150px;
    }

    .cmp-table thead th { background: var(--cmp-card); border-bottom: 1px solid var(--cmp-border); }
    .cmp-row-head { border-top-right-radius: 18px; }

    .cmp-prod { position: relative; display: flex; flex-direction: column; gap: 0.45rem; align-items: center; }

    .cmp-prod__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.45rem;
        text-decoration: none;
        color: var(--cmp-text);
    }

    .cmp-prod__link img {
        width: 92px;
        height: 92px;
        object-fit: contain;
        border-radius: 12px;
        background: #f8fafc;
        padding: 0.35rem;
    }

    .cmp-prod__name {
        font-size: 0.8rem;
        font-weight: 800;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.6em;
    }

    .cmp-x {
        position: absolute;
        top: -0.35rem;
        left: -0.35rem;
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        border: none;
        border-radius: 50%;
        background: #fee2e2;
        color: #dc2626;
        font-size: 0.8rem;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .cmp-x:hover { background: #dc2626; color: #fff; }

    .cmp-price { font-size: 0.95rem; font-weight: 900; color: var(--cmp-primary); }
    .cmp-price small { font-size: 0.62rem; font-weight: 700; }
    .cmp-price__was { font-size: 0.7rem; color: #94a3b8; text-decoration: line-through; margin-top: 0.15rem; }

    .cmp-chip {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
        font-weight: 800;
    }

    .cmp-chip--ok { background: rgba(16, 185, 129, 0.12); color: #047857; }
    .cmp-chip--low { background: rgba(245, 158, 11, 0.15); color: #b45309; }
    .cmp-chip--oos { background: #e2e8f0; color: #475569; }

    .cmp-unavailable { font-size: 0.74rem; color: var(--cmp-muted); }

    .cmp-hint {
        margin-top: 0.9rem;
        font-size: 0.78rem;
        color: var(--cmp-muted);
        text-align: center;
    }

    .cmp-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        text-align: center;
        background: var(--cmp-card);
        border: 2px dashed var(--cmp-border);
        border-radius: 20px;
        padding: 3.2rem 1.2rem;
        color: var(--cmp-muted);
    }

    .cmp-state h2 { font-size: 1.05rem; font-weight: 900; color: var(--cmp-text); margin: 0; }
    .cmp-state p { font-size: 0.84rem; margin: 0 0 0.4rem; max-width: 420px; }
    .cmp-state__icon { font-size: 2.2rem; color: #cbd5e1; }

    @media (max-width: 767.98px) {
        .cmp { padding-top: 1rem; }
        .cmp-title { font-size: 1.2rem; }
        .cmp-table th, .cmp-table td { padding: 0.7rem 0.65rem; }
        .cmp-row-head, .cmp-table tbody th { width: 118px; min-width: 118px; font-size: 0.7rem; }
        .cmp-prod__link img { width: 70px; height: 70px; }
        .cmp-prod__name { font-size: 0.75rem; }
        .cmp-prod__link img { width: 68px; height: 68px; }
    }

    [data-theme="dark"] .cmp {
        --cmp-bg: #0b1220;
        --cmp-card: #131c2e;
        --cmp-border: rgba(148, 163, 184, 0.14);
        --cmp-text: #e2e8f0;
        --cmp-muted: #94a3b8;
        --cmp-primary: #60a5fa;
    }

    [data-theme="dark"] .cmp-row-head,
    [data-theme="dark"] .cmp-table tbody th { background: #0f1729; color: #94a3b8; }

    [data-theme="dark"] .cmp-prod__link img { background: #0f1729; }
    [data-theme="dark"] .cmp-x { background: rgba(220, 38, 38, 0.18); color: #f87171; }
    [data-theme="dark"] .cmp-chip--oos { background: #1e293b; color: #94a3b8; }
    [data-theme="dark"] .cmp-btn--primary { color: #0b1220; }

/* ===== Client/Pages/Cart.razor ===== */
.cart-page {
        background: var(--shop-bg, #f8fafc);
        min-height: 100vh;
    }

    .btn-back {
        width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0;
        background: var(--shop-surface, #fff); color: var(--shop-text, #1e293b);
        text-decoration: none; border: 1px solid var(--shop-border, #e2e8f0); border-radius: 12px;
        transition: transform 0.15s;
    }
    .btn-back:active { transform: scale(0.95); }

    .page-title { font-size: 1.25rem; font-weight: 800; margin: 0; color: var(--shop-text, #0f172a); }
    .page-subtitle { font-size: 0.8rem; color: #94a3b8; margin: 2px 0 0; }

    .cart-alert {
        display: flex; align-items: flex-start; gap: 12px;
        background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
        border-radius: 16px; padding: 14px 16px; margin-bottom: 16px;
    }
    .cart-alert .oi { font-size: 1.2rem; margin-top: 2px; }
    .cart-alert strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
    .cart-alert p { margin: 0; font-size: 0.8rem; opacity: 0.9; }

    .empty-state {
        text-align: center; padding: 60px 24px;
        background: var(--shop-surface, #fff); border: 1px solid var(--shop-border, #e2e8f0);
        border-radius: 24px;
    }
    .empty-icon { width: 80px; height: 80px; margin: 0 auto 20px; background: #f1f5f9; border-radius: 24px; display: grid; place-items: center; font-size: 2rem; color: #94a3b8; }
    .empty-title { font-size: 1.1rem; font-weight: 800; color: var(--shop-text, #0f172a); margin-bottom: 8px; }
    .empty-desc { font-size: 0.85rem; color: #94a3b8; margin-bottom: 28px; }

    .items-list { display: flex; flex-direction: column; gap: 12px; }

    .item-card {
        background: var(--shop-surface, #fff); border: 1px solid var(--shop-border, #f1f5f9);
        border-radius: 16px; padding: 16px; transition: box-shadow 0.2s;
    }
    .item-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.04); }

    .item-card--unavailable {
        border-color: #fecaca;
        background: #fffafa;
        opacity: 0.92;
    }
    .item-card--unavailable .item-img,
    .item-card--unavailable .item-name,
    .item-card--unavailable .item-price {
        opacity: 0.55;
        filter: grayscale(0.6);
    }

    .item-unavailable-badge {
        display: inline-flex; align-items: center; gap: 6px;
        background: #fee2e2; color: #b91c1c;
        border-radius: 8px; padding: 4px 10px;
        font-size: 0.72rem; font-weight: 800;
        margin-bottom: 10px;
    }

    .item-unavailable-badge--info {
        background: #eff6ff; color: #1d4ed8;
    }

    .item-img {
        width: 72px; height: 72px; flex-shrink: 0; background: #f8fafc;
        border-radius: 14px; overflow: hidden; display: grid; place-items: center; padding: 6px;
    }
    .item-img img { width: 100%; height: 100%; object-fit: contain; }

    .item-name { font-size: 0.88rem; font-weight: 700; color: var(--shop-text, #1e293b); margin: 0 0 4px; line-height: 1.5; }
    .item-price { font-size: 0.95rem; font-weight: 800; color: var(--shop-primary, #4f46e5); }
    .item-price .currency { font-size: 0.7rem; font-weight: 600; opacity: 0.7; }

    .summary-card {
        background: var(--shop-surface, #fff); border: 1px solid var(--shop-border, #e2e8f0);
        border-radius: 20px; padding: 24px; top: 90px;
    }

    .auth-banner {
        display: flex; align-items: flex-start; gap: 12px; padding: 14px; margin-bottom: 20px;
        background: #f0f4ff; border-radius: 14px; font-size: 0.82rem;
    }
    .auth-banner--ok { align-items: center; background: #f0fdf4; }
    .auth-banner-icon { width: 36px; height: 36px; flex-shrink: 0; background: #fff; border-radius: 10px; display: grid; place-items: center; color: var(--shop-primary, #4f46e5); font-size: 0.9rem; }
    .auth-banner-title { font-weight: 700; color: var(--shop-text, #0f172a); margin-bottom: 2px; }
    .auth-banner-desc { color: #64748b; line-height: 1.6; }

    .summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
    .summary-label { font-size: 0.82rem; color: #94a3b8; }
    .summary-value { font-size: 0.85rem; font-weight: 700; color: var(--shop-text, #1e293b); }
    .summary-row--warn .summary-label,
    .summary-row--warn .summary-value { color: #dc2626; }

    .summary-divider { height: 1px; background: var(--shop-border, #f1f5f9); margin: 12px 0; }

    .summary-total { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
    .summary-total span:first-child { font-size: 0.85rem; font-weight: 700; color: var(--shop-text, #0f172a); }
    .total-amount { font-size: 1.3rem; font-weight: 900; color: var(--shop-primary, #4f46e5); }
    .total-currency { font-size: 0.7rem; font-weight: 600; opacity: 0.7; }

    .btn-primary-custom {
        background: linear-gradient(135deg, var(--shop-primary, #4f46e5), var(--shop-primary-2, #6366f1));
        color: #fff; border: none; border-radius: 14px; font-weight: 800; font-size: 0.9rem;
        transition: transform 0.15s, box-shadow 0.15s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    }
    .btn-primary-custom:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79,70,229,0.25); color: #fff; }
    .btn-primary-custom:active { transform: scale(0.98); }

    .btn-outline-custom {
        background: transparent; border: 1px solid var(--shop-border, #e2e8f0); border-radius: 10px;
        font-weight: 700; font-size: 0.78rem; color: var(--shop-text, #475569); text-decoration: none;
        display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s;
    }
    .btn-outline-custom:hover { background: #f8fafc; }

    .btn-ghost-custom {
        background: transparent; border: 1px solid var(--shop-border, #e2e8f0); border-radius: 14px;
        font-weight: 700; font-size: 0.85rem; color: #94a3b8; text-decoration: none;
        transition: background 0.15s;
    }
    .btn-ghost-custom:hover { background: #f8fafc; color: #64748b; }

    @media (max-width: 768px) {
        .item-img { width: 60px; height: 60px; }
        .summary-card { padding: 20px; border-radius: 20px; margin-top: 12px; }
        .total-amount { font-size: 1.15rem; }
    }
    .fs-banner {
        display: flex;
        align-items: center;
        gap: .85rem;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: .9rem;
        padding: .85rem 1rem;
        margin-bottom: 1.25rem;
        color: #1e40af;
    }
    .fs-banner .oi { font-size: 1.4rem; color: #2563eb; }
    .fs-banner__body { flex: 1; }
    .fs-banner strong { display: block; font-size: .87rem; }
    .fs-banner__track {
        margin-top: .5rem;
        height: 7px;
        background: #dbeafe;
        border-radius: 999px;
        overflow: hidden;
    }
    .fs-banner__fill {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, #2563eb, #22d3ee);
        border-radius: 999px;
        transition: width .4s ease;
    }
    .fs-banner--done { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
    .fs-banner--done .oi { color: #16a34a; }

/* ===== Client/Pages/NewsDetails.razor ===== */
.news-details-page {
        background-color: #f1f5f9 !important;
    }
    .fw-black { font-weight: 950; }
    .x-small { font-size: 0.72rem; }

    /* Mobile Header Sticky */
    .news-header-sticky {
        position: sticky;
        top: 0;
        z-index: 1020;
        min-height: 64px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(0,0,0,0.08);
        display: flex;
        align-items: center;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    /* Mobile Header Navigation Buttons */
    .nav-btn-mobile {
        width: auto;
        min-width: 48px;
        height: 48px;
        border-radius: 14px;
        background: #f8fafc;
        color: #475569;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 4px;
        text-decoration: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(0,0,0,0.04);
        flex-shrink: 0;
    }
    .nav-btn-mobile:active { transform: scale(0.92); background: #f1f5f9; }
    .nav-btn-mobile__img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.05);
    }
    .nav-btn-mobile__img img { width: 100%; height: 100%; object-fit: cover; }
    .nav-btn-mobile__icon { font-size: 0.9rem; font-weight: bold; }

    .nav-placeholder-mini {
        width: 100%;
        height: 100%;
        background: #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        font-size: 1rem;
    }

    .header-title-text { 
        font-weight: 800; 
        font-size: 0.85rem; 
        color: #0f172a; 
        flex: 1; 
        text-align: center; 
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
        padding: 0 8px;
    }

    /* Modern Share Buttons */
    .btn-share-modern {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid rgba(0,0,0,0.06);
        background: #fff;
        display: grid;
        place-items: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        padding: 0;
    }
    .btn-share-modern:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); }
    .btn-share-modern.link { color: #475569; }
    .btn-share-modern.tg { color: #fff; background: linear-gradient(135deg, #37aee2 0%, #1e96c8 100%); border: none; }
    .btn-share-modern.wa { color: #fff; background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); border: none; }
    
    .btn-share-modern svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }


    .badge-tag {
        background: #eff6ff;
        color: #2563eb;
        padding: 6px 14px;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 800;
        border: 1px solid #dbeafe;
    }
    .article-title { font-size: 2.5rem; line-height: 1.3; color: #0f172a; }

    .news-article-modern {
        background: #fff;
        border-radius: 28px;
        border: 1px solid rgba(15, 23, 42, 0.06);
        padding: 34px 34px;
    }

    .author-avatar {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        font-size: 1.2rem;
    }
    .btn-action-sm {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        background: #fff;
        color: #64748b;
        display: grid;
        place-items: center;
        transition: all 0.2s;
    }
    .btn-action-sm:hover { border-color: #cbd5e1; background: #f8fafc; color: #1e293b; }

    .article-featured-image {
        height: 480px;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    .news-featured-img-wrap img {
        height: 100%;
        object-fit: cover;
    }
    .news-placeholder-details {
        height: 400px;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        color: #cbd5e1;
        border-radius: 24px;
        border: 2px dashed #e2e8f0;
    }
    .news-placeholder-icon-lg {
        font-size: 5rem;
        opacity: 0.4;
    }
    .news-placeholder-text-lg {
        font-size: 1.1rem;
        color: #94a3b8;
    }
    .article-summary-box {
        display: flex;
        gap: 20px;
        background: #f8fafc;
        padding: 24px;
        border-radius: 20px;
        border-right: 6px solid #2563eb;
    }
    .summary-icon {
        width: 44px;
        height: 44px;
        background: #2563eb;
        color: #fff;
        border-radius: 12px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        font-size: 1.2rem;
    }
    .summary-text { font-weight: 700; color: #334155; line-height: 1.7; margin: 0; }

    .article-content-card {
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.06);
        border-radius: 24px;
        padding: 26px 22px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    }

    .article-content-body {
        font-size: 1.15rem;
        line-height: 2;
        color: #1e293b;
        text-align: right; /* Default to right for RTL */
    }

    .news-sidebar {
        position: sticky;
        top: 92px;
    }
    .sidebar-card {
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(15, 23, 42, 0.06);
        border-radius: 22px;
        padding: 18px 16px;
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
    }
    .sidebar-card__title {
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .sidebar-info__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
    }
    .sidebar-info__row:last-child { border-bottom: none; }
    
    /* Quill Alignment Classes */
    .article-content-body .ql-align-center { text-align: center !important; }
    .article-content-body .ql-align-right { text-align: right !important; }
    .article-content-body .ql-align-left { text-align: left !important; }
    .article-content-body .ql-align-justify { text-align: right !important; }
    .article-content-body [style*="text-align: justify"],
    .article-content-body [style*="text-align:justify"] { text-align: right !important; }

    .article-content-body ol,
    .article-content-body ul {
        padding-right: 1.5em;
        padding-left: 0 !important;
        margin-right: 0;
        margin-left: 0;
    }
    .article-content-body li {
        padding-right: 0.5em;
        padding-left: 0 !important;
    }
    .article-content-body li::before {
        right: 0.3em !important;
        left: auto !important;
        text-align: right !important;
    }
    .article-content-body li.ql-indent-1 { padding-right: 3em !important; padding-left: 0 !important; }
    .article-content-body li.ql-indent-2 { padding-right: 5em !important; padding-left: 0 !important; }
    .article-content-body li.ql-indent-3 { padding-right: 7em !important; padding-left: 0 !important; }

    .article-content-body [data-callout],
    .article-content-body p[data-callout],
    .article-content-body [class*="article-callout--"],
    .article-content-body p[class*="article-callout--"] {
        padding: 18px 22px !important;
        border-radius: 16px !important;
        margin: 1.5rem 0 !important;
        border-right: 5px solid #2563eb !important;
        border-left: none !important;
        background-color: #f8fafc !important;
        font-weight: 500 !important;
        font-size: 0.95em !important;
        line-height: 1.7 !important;
        position: relative !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    }
    .article-content-body [data-callout="info"],
    .article-content-body p[data-callout="info"],
    .article-content-body .article-callout--info,
    .article-content-body p.article-callout--info { border-right-color: #2563eb !important; background-color: #eff6ff !important; }
    .article-content-body [data-callout="note"],
    .article-content-body p[data-callout="note"] {
        border-right-color: #f59e0b !important;
        background-color: #fffbeb !important;
        color: #92400e !important;
    }
    .article-content-body [data-callout="warning"],
    .article-content-body p[data-callout="warning"] {
        border-right-color: #f97316 !important;
        background-color: #fff7ed !important;
        color: #9a3412 !important;
    }
    .article-content-body [data-callout="danger"],
    .article-content-body p[data-callout="danger"],
    .article-content-body .article-callout--danger,
    .article-content-body p.article-callout--danger { border-right-color: #ef4444 !important; background-color: #fff1f2 !important; }
    .article-content-body [data-callout="success"],
    .article-content-body p[data-callout="success"],
    .article-content-body .article-callout--success,
    .article-content-body p.article-callout--success { border-right-color: #10b981 !important; background-color: #ecfdf5 !important; }

    .article-content-body [data-callout="quote"],
    .article-content-body p[data-callout="quote"],
    .article-content-body .article-callout--quote,
    .article-content-body p.article-callout--quote {
        margin: 2.5rem 0 !important;
        padding: 2rem !important;
        background-color: #fffbeb !important;
        border-right: 6px solid #f59e0b !important;
        border-left: none !important;
        border-radius: 16px !important;
        font-style: italic !important;
        position: relative !important;
        box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08) !important;
        font-size: 1.25rem !important;
        display: block !important;
    }

    /* کارت «بیشتر مطالعه کنید» */
    .article-content-body [data-callout="readmore"],
    .article-content-body p[data-callout="readmore"] {
        padding: 14px 18px !important;
        background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%) !important;
        border: 1px solid #bfdbfe !important;
        border-inline-start: 5px solid #2563eb !important;
        color: #1e3a8a !important;
        border-radius: 16px !important;
        font-weight: 800 !important;
        box-shadow: none !important;
    }
    .article-content-body [data-callout="readmore"] a {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        color: #1d4ed8 !important;
        text-decoration: none !important;
        font-weight: 800 !important;
        line-height: 1.7;
    }
    .article-content-body [data-callout="readmore"] a::after {
        content: "←";
        margin-inline-start: auto;
        font-size: 1.15em;
        line-height: 1;
        transition: transform .18s ease;
    }
    .article-content-body [data-callout="readmore"][data-readmore] a::after { content: none; }
    .article-content-body [data-callout="readmore"][data-readmore-custom] a { color: #1e40af !important; }
    .article-content-body [data-callout="readmore"][data-readmore-custom] a::after { margin-inline-start: auto; }
    .article-content-body [data-callout="readmore"] a:hover::after,
    .article-content-body [data-callout="readmore"] a:hover .nd-readmore__arrow { transform: translateX(-5px); }

    .nd-readmore__tag {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        background: #dbeafe;
        color: #1d4ed8;
        border-radius: 999px;
        padding: 3px 10px;
        font-size: .7rem;
        font-weight: 800;
        line-height: 1.8;
    }
    .nd-readmore__title {
        flex: 1 1 220px;
        min-width: 0;
        color: #0f172a;
        font-size: .98rem;
        font-weight: 800;
        line-height: 1.75;
    }
    .nd-readmore__arrow {
        flex: 0 0 auto;
        margin-inline-start: auto;
        color: #2563eb;
        font-size: 1.15rem;
        line-height: 1;
        transition: transform .18s ease;
    }
    [data-readmore="product"] .nd-readmore__tag { background: #dcfce7; color: #15803d; }
    [data-readmore="course"] .nd-readmore__tag { background: #ede9fe; color: #6d28d9; }
    [data-readmore="news"] .nd-readmore__tag { background: #e0f2fe; color: #0369a1; }
    [data-readmore="errorcode"] .nd-readmore__tag { background: #fef3c7; color: #b45309; }
    [data-readmore="external"] .nd-readmore__tag,
    [data-readmore="page"] .nd-readmore__tag { background: #f1f5f9; color: #475569; }
    
    .article-content-body blockquote, 
    .article-content-body .large-quote,
    .article-content-body p.large-quote {
        margin: 2.5rem 0 !important;
        padding: 2rem !important;
        background-color: #fffafa !important;
        border-right: 6px solid #ef4444 !important;
        border-left: none !important;
        border-radius: 16px !important;
        font-style: italic !important;
        position: relative !important;
        box-shadow: 0 10px 30px rgba(239, 68, 68, 0.05) !important;
        font-size: 1.25rem !important;
        display: block !important;
    }
    .article-content-body blockquote::before, 
    .article-content-body .large-quote::before,
    .article-content-body p.large-quote::before {
        content: "\201D";
        position: absolute;
        top: -15px;
        left: 25px;
        font-size: 5rem;
        color: #ef4444;
        opacity: 0.15;
        font-family: serif;
    }
    
    /* Font family mappings for the website */
    .ql-font-vazirmatn { font-family: 'Vazirmatn', sans-serif !important; }
    .ql-font-vazir { font-family: 'Vazir', sans-serif !important; }
    .ql-font-shabnam { font-family: 'Shabnam', sans-serif !important; }
    .ql-font-sahel { font-family: 'Sahel', sans-serif !important; }

    .article-content-body img {
        max-width: 100%;
        height: auto !important;
        border-radius: 20px;
        margin: 2rem 0;
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    }
    
    /* Table styling for website */
    .article-content-body table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 2rem 0 !important;
    }
    .article-content-body td, .article-content-body th {
        border: 1px solid #e2e8f0 !important;
        padding: 12px !important;
        vertical-align: top !important;
        text-align: start;
    }
    .article-content-body th {
        background-color: #f8fafc;
        font-weight: 800;
        color: #0f172a;
    }
    [data-theme="dark"] .article-content-body th {
        background-color: #0f172a;
        color: #f1f5f9;
    }

    .article-content-body p { margin: 0 0 1.15em; }
    .article-content-body > p:first-of-type { font-size: 1.06em; color: #1e293b; font-weight: 500; }

    .article-content-body h1 {
        margin: 2.2rem 0 1.1rem;
        padding: 12px 18px;
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1.8;
        color: #0f172a;
        text-align: right;
        background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
        border: 1px solid #dbeafe;
        border-inline-start: 5px solid #2563eb;
        border-radius: 14px;
        box-shadow: none;
    }

    /* سازگاری با محتوای قدیمی که با اندازه‌های Quill نوشته شده */
    .article-content-body .ql-size-large { font-size: 1.3em !important; font-weight: 800; }
    .article-content-body .ql-size-huge { font-size: 1.55em !important; font-weight: 900; }

    .article-content-body h2 {
        margin: 2rem 0 .9rem;
        padding-block: 2px;
        padding-inline-start: 14px;
        font-size: 1.22rem;
        font-weight: 800;
        line-height: 1.8;
        color: #0f172a;
        text-align: right;
        background: transparent;
        border: 0;
        border-inline-start: 4px solid #2563eb;
        border-radius: 0;
        box-shadow: none;
    }

    .article-content-body h3 {
        margin: 1.7rem 0 .7rem;
        padding: 0;
        font-size: 1.08rem;
        font-weight: 800;
        line-height: 1.8;
        color: #1d4ed8;
        text-align: right;
        background: transparent;
        border: 0;
        border-radius: 0;
    }
    .article-content-body h3::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-inline-end: 8px;
        border-radius: 3px;
        background: #2563eb;
        vertical-align: middle;
    }

    .article-content-body strong { color: #0f172a; font-weight: 800; }
    .article-content-body a { color: #1d4ed8; text-underline-offset: 3px; }

    /* نشانه‌های پیش‌نویس دستی استودیو محتوا */
    .article-content-body ul.md-list,
    .article-content-body ol.md-list {
        margin: 0 0 1.2rem;
        padding-inline-start: 1.5rem;
    }
    .article-content-body ul.md-list > li::marker { color: #2563eb; }
    .article-content-body ol.md-list--ordered {
        list-style: none;
        padding-inline-start: 0;
        counter-reset: article-ol;
    }
    .article-content-body ol.md-list--ordered > li {
        counter-increment: article-ol;
        position: relative;
        padding-inline-start: 2.4rem;
        margin-bottom: .55rem;
    }
    .article-content-body ol.md-list--ordered > li::before {
        content: counter(article-ol);
        position: absolute;
        inset-inline-start: 0;
        right: 0 !important;
        left: auto !important;
        top: .3rem;
        width: 1.7rem;
        height: 1.7rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: transparent;
        border: 1px solid #bfdbfe;
        color: #1d4ed8;
        font-size: .8rem;
        font-weight: 800;
        line-height: 1;
        text-align: center !important;
    }
    .article-content-body blockquote.md-quote {
        margin: 1.8rem 0 !important;
        padding: 1.2rem 1.4rem !important;
        background-color: #fffbeb !important;
        border: 1px solid #fde68a !important;
        border-right: 5px solid #f59e0b !important;
        border-left: none !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 24px rgba(245, 158, 11, .07) !important;
        color: #92400e !important;
        font-size: 1.02em !important;
        font-style: normal !important;
        display: block !important;
    }
    .article-content-body blockquote.md-quote::before { content: none !important; }
    .article-content-body blockquote.md-quote p { margin: 0; }
    .article-content-body hr.md-divider {
        border: 0 !important;
        height: 1px;
        margin: 2.4rem 0;
        background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    }
    .article-content-body figure.md-figure { margin: 2rem 0; }
    .article-content-body figure.md-figure img { width: 100%; margin: 0; }
    .article-content-body figure.md-figure figcaption {
        margin-top: .6rem;
        font-size: .82rem;
        color: #64748b;
        text-align: center;
    }

    [data-theme="dark"] .article-content-card {
        background-color: #131c2e;
        border-color: rgba(148, 163, 184, 0.12);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }
    [data-theme="dark"] .article-content-body { color: #cbd5e1; }
    [data-theme="dark"] .article-content-body h2 {
        background: transparent;
        color: #f1f5f9;
        border-inline-start-color: #3b82f6;
    }
    [data-theme="dark"] .article-content-body h3,
    [data-theme="dark"] .article-content-body a { color: #93c5fd; }
    [data-theme="dark"] .article-content-body h3 { background: transparent; }
    [data-theme="dark"] .article-content-body h3::before { background: #3b82f6; }
    [data-theme="dark"] .article-content-body h1 {
        background: linear-gradient(135deg, rgba(37, 99, 235, .2) 0%, rgba(30, 64, 175, .08) 100%);
        color: #eff6ff;
        border-color: #1e3a8a;
        border-inline-start-color: #3b82f6;
    }
    [data-theme="dark"] .article-content-body [data-callout],
    [data-theme="dark"] .article-content-body [class*="article-callout--"] {
        background-color: #0f172a !important;
        color: #cbd5e1 !important;
    }
    [data-theme="dark"] .article-content-body [data-callout="info"] {
        background-color: rgba(37, 99, 235, 0.14) !important;
        border-right-color: #60a5fa !important;
        color: #bfdbfe !important;
    }
    [data-theme="dark"] .article-content-body [data-callout="note"],
    [data-theme="dark"] .article-content-body [data-callout="quote"] {
        background-color: rgba(245, 158, 11, 0.12) !important;
        border-right-color: #f59e0b !important;
        color: #fcd34d !important;
    }
    [data-theme="dark"] .article-content-body [data-callout="warning"] {
        background-color: rgba(249, 115, 22, 0.14) !important;
        border-right-color: #fb923c !important;
        color: #fdba74 !important;
    }
    [data-theme="dark"] .article-content-body [data-callout="danger"] {
        background-color: rgba(239, 68, 68, 0.12) !important;
        border-right-color: #f87171 !important;
        color: #fecaca !important;
    }
    [data-theme="dark"] .article-content-body [data-callout="success"] {
        background-color: rgba(16, 185, 129, 0.12) !important;
        border-right-color: #34d399 !important;
        color: #a7f3d0 !important;
    }
    [data-theme="dark"] .article-content-body [data-callout="readmore"] {
        background: linear-gradient(135deg, rgba(37, 99, 235, .18) 0%, rgba(17, 28, 46, .9) 100%) !important;
        border-color: rgba(96, 165, 250, 0.3) !important;
        border-inline-start-color: #60a5fa !important;
        color: #bfdbfe !important;
    }
    [data-theme="dark"] .article-content-body [data-callout="readmore"] a { color: #93c5fd !important; }
    [data-theme="dark"] .nd-readmore__tag { background: rgba(96, 165, 250, .18); color: #bfdbfe; }
    [data-theme="dark"] .nd-readmore__title { color: #e2e8f0; }
    [data-theme="dark"] .nd-readmore__arrow { color: #93c5fd; }
    [data-theme="dark"] [data-readmore="product"] .nd-readmore__tag { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
    [data-theme="dark"] [data-readmore="course"] .nd-readmore__tag { background: rgba(139, 92, 246, .18); color: #c4b5fd; }
    [data-theme="dark"] [data-readmore="errorcode"] .nd-readmore__tag { background: rgba(245, 158, 11, .16); color: #fcd34d; }
    [data-theme="dark"] [data-readmore="external"] .nd-readmore__tag,
    [data-theme="dark"] [data-readmore="page"] .nd-readmore__tag { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
    [data-theme="dark"] .article-content-body > p:first-of-type { color: #e2e8f0; }
    [data-theme="dark"] .article-content-body strong { color: #f1f5f9; }
    [data-theme="dark"] .article-content-body ol.md-list--ordered > li::before {
        border-color: rgba(96, 165, 250, 0.45);
        color: #93c5fd;
    }
    [data-theme="dark"] .article-content-body blockquote.md-quote {
        background-color: rgba(245, 158, 11, 0.12) !important;
        border-color: rgba(245, 158, 11, 0.3) !important;
        border-right-color: #f59e0b !important;
        border-left: none !important;
        color: #fcd34d !important;
    }
    [data-theme="dark"] .article-content-body hr.md-divider {
        background: linear-gradient(90deg, transparent, #334155, transparent);
    }

    /* Share Buttons */
    .btn-share-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        background: #fff;
        color: #475569;
        display: grid;
        place-items: center;
        transition: all 0.2s;
    }
    .btn-share-icon:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.05); }
    .btn-share-icon.tg { color: #0088cc; }
    .btn-share-icon.wa { color: #25d366; }

    .btn-return-news {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 24px;
        background: #f1f5f9;
        color: #475569;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 800;
        font-size: 0.9rem;
        transition: all 0.2s;
    }
    .btn-return-news:hover { background: #2563eb; color: #fff; }

    /* Related News Modern */
    .head-line { width: 8px; height: 24px; background: #2563eb; border-radius: 50px; }
    .related-card-modern {
        background: #fff;
        border-radius: 24px;
        border: 1px solid rgba(0,0,0,0.04);
        overflow: hidden;
        transition: all 0.3s;
    }
    .related-card-modern:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
    .related-horizontal-scroll { margin: 0 -15px; padding: 0 15px; }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .news-article-modern { padding: 24px 20px; border-radius: 0; margin: 0 -15px; border: none; }
        .article-title { font-size: 1.6rem; }
        .article-featured-image { height: 220px; border-radius: 16px; }
        .article-content-body { font-size: 1.05rem; line-height: 1.8; }
        .article-summary-box { padding: 18px; }
        .article-content-body blockquote { padding: 1.2rem; }
        .related-horizontal-scroll .row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
        .related-horizontal-scroll .row::-webkit-scrollbar { display: none; }
        .related-horizontal-scroll .col-9 { scroll-snap-align: start; }
        .article-content-card { border-radius: 18px; padding: 18px 16px; }
    }

    .breadcrumb-item + .breadcrumb-item::before {
        float: right;
        padding-left: 0.5rem;
    }

    @media (prefers-reduced-motion: reduce) {
        .news-details-page, .header-title-text, .nav-btn-mobile, .btn-share-modern, .related-card-modern {
            animation: none !important;
            transition: none !important;
        }
    }

/* Dark-theme styling for this page lives in the News Details V2 (nd-*) block. */

/* ===== Client/Pages/Academy/AcademyArticleViewer.razor ===== */
.fw-black { font-weight: 900; }
    .italic { font-style: italic; }
    .article-hero-img { width: 100%; height: auto; max-height: 500px; object-fit: contain; background-color: #000; }
    .article-summary { border-right: 5px solid var(--bs-primary); background-color: #f8f9fa; }
    .article-summary p { text-align: justify; font-size: 1rem; line-height: 2; }
    .text-content { font-size: 1rem; line-height: 2; text-align: justify; }
    .text-content p { margin-bottom: 1rem; }
    @media (min-width: 768px) {
        .article-summary p { font-size: 1.05rem; }
        .text-content { font-size: 1.05rem; line-height: 2.05; }
    }
    
    .download-box-wrapper { position: relative; }
    .download-box {
        position: relative; overflow: hidden;
        background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
        border: 1.5px solid #dbeafe; border-radius: 1rem;
        box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .download-box:hover {
        border-color: #93c5fd;
        box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
        transform: translateY(-2px);
    }
    .download-box__shine {
        position: absolute; top: 0; left: 0; right: 0; height: 3px;
        background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
        background-size: 200% 100%;
        animation: dl-shine 3s linear infinite;
    }
    @keyframes dl-shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
    .download-box__content {
        padding: 1.25rem; display: flex; align-items: center; gap: 1rem;
    }
    .download-box__icon {
        width: 56px; height: 56px; flex-shrink: 0;
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        border-radius: 0.875rem; display: grid; place-items: center;
        color: #2563eb; font-size: 1.5rem;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    }
    .download-box__info { flex: 1; min-width: 0; }
    .download-box__title {
        font-size: 0.95rem; font-weight: 800; color: #0f172a;
        margin: 0 0 0.35rem; line-height: 1.4;
    }
    .download-box__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .download-box__tag {
        display: inline-flex; align-items: center; gap: 0.3rem;
        font-size: 0.75rem; color: #64748b; background: #f1f5f9;
        padding: 0.2rem 0.6rem; border-radius: 1rem; font-weight: 500;
    }
    .download-box__tag .oi { font-size: 0.7rem; }
    .download-box__btn {
        display: inline-flex; align-items: center; gap: 0.5rem;
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: #fff; border: none; border-radius: 0.75rem;
        padding: 0.65rem 1.25rem; font-size: 0.85rem; font-weight: 700;
        text-decoration: none; white-space: nowrap; flex-shrink: 0;
        box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
        transition: all 0.25s ease; cursor: pointer;
    }
    .download-box__btn:hover {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
        transform: translateY(-1px);
    }
    .download-box__btn:active { transform: translateY(0); }
    .download-box__btn-icon { font-size: 1.1rem; }
    
    .content-block video, .content-block iframe { max-width: 100%; aspect-ratio: 16/9; }
    .embed-wrapper iframe { width: 100% !important; aspect-ratio: 16/9; border-radius: 12px; }
    .plyr-wrapper { background: #000; }

    .text-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
    .text-content th, .text-content td { border: 1px solid #dee2e6; padding: 12px; text-align: right; }
    .text-content th { background-color: #f8f9fa; }
    .text-content pre { background: #1e293b; color: #e2e8f0; padding: 1.25rem; border-radius: 0.75rem; overflow-x: auto; direction: ltr; text-align: left; position: relative; }
    .text-content .code-copy-btn { position: absolute; top: 0.5rem; left: 0.5rem; background: rgba(255,255,255,0.15); border: none; color: #fff; border-radius: 0.4rem; padding: 0.25rem 0.6rem; font-size: 0.75rem; cursor: pointer; transition: background 0.2s; }
    .text-content .code-copy-btn:hover { background: rgba(255,255,255,0.3); }

    .image-block img { max-width: 100%; height: auto; border-radius: 1rem; }

    .media-card {
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
    }
    .media-card__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex-wrap: wrap;
        padding: 0.65rem 1rem;
        color: #fff;
    }
    .media-card--image .media-card__header { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
    .media-card--video .media-card__header { background: linear-gradient(135deg, #dc2626, #b91c1c); }
    .media-card--audio .media-card__header { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
    .media-card--file .media-card__header { background: linear-gradient(135deg, #d97706, #b45309); }
    .media-card--embed .media-card__header { background: linear-gradient(135deg, #0f766e, #115e59); }
    .media-card__badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.85rem;
        font-weight: 700;
    }
    .media-card__badge .oi { font-size: 0.95rem; }
    .media-card__title {
        font-size: 0.8rem;
        font-weight: 500;
        opacity: 0.92;
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .media-card__dl {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        color: #fff;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 0.65rem;
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
        font-weight: 700;
        text-decoration: none;
        transition: background 0.2s ease;
    }
    .media-card__dl:hover { background: rgba(255, 255, 255, 0.3); color: #fff; }
    .media-card__body { padding: 1rem; background: #f8fafc; }
    .media-card__body--stack { display: flex; flex-direction: column; gap: 1rem; }
    .media-card__body--stack .download-box-wrapper { margin: 0 !important; }

    .media-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
    .media-grid--multi { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .media-stack { display: flex; flex-direction: column; gap: 1.25rem; }
    .media-cell__title {
        font-size: 0.9rem;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 0.5rem;
    }
    .media-cell__dl {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-top: 0.5rem;
        font-size: 0.8rem;
        font-weight: 700;
        color: #2563eb;
        text-decoration: none;
    }
    .media-cell__dl:hover { text-decoration: underline; color: #1d4ed8; }

    .article-gallery {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    @media (min-width: 768px) {
        .article-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (min-width: 1200px) {
        .article-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }
    .article-gallery__item {
        margin: 0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        transition: transform 140ms ease, box-shadow 140ms ease;
        position: relative;
    }
    .article-gallery__item:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    }
    .article-gallery__btn {
        border: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        background: transparent;
        cursor: zoom-in;
        display: block;
        position: relative;
        overflow: hidden;
    }
    .article-gallery__img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .article-gallery__btn:hover .article-gallery__img { transform: scale(1.05); }
    .article-gallery__zoom {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        background: rgba(15, 23, 42, 0.35);
        color: #fff;
        font-size: 1.4rem;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    .article-gallery__btn:hover .article-gallery__zoom { opacity: 1; }
    .article-gallery__caption {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.5rem 0.65rem;
        background: #fff;
        border-top: 1px solid #f1f5f9;
        min-height: 2.25rem;
    }
    .article-gallery__caption-text {
        font-size: 0.75rem;
        color: #64748b;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .article-gallery__dl {
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        background: #eff6ff;
        color: #2563eb;
        text-decoration: none;
        font-size: 0.85rem;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .article-gallery__dl:hover { background: #2563eb; color: #fff; }
    @media (max-width: 575.98px) {
        .article-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
        .article-gallery__caption { padding: 0.4rem 0.5rem; }
    }

    .embed-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 1rem;
        background: #0f172a;
        width: 100%;
    }
    .embed-wrapper .h_iframe-aparat_embed_frame { position: relative; width: 100%; }
    .embed-wrapper .h_iframe-aparat_embed_frame span { display: block; width: 100%; }
    .embed-wrapper iframe {
        display: block;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        border: 0;
        border-radius: 1rem;
        background: #0f172a;
    }
    .embed-wrapper .h_iframe-aparat_embed_frame iframe {
        position: absolute;
        inset: 0;
        height: 100% !important;
        aspect-ratio: auto;
    }

    @media (min-width: 992px) {
        .embed-wrapper { max-width: 740px; margin-inline: auto; }
    }

    @media (max-width: 575.98px) {
        .media-card--embed { margin-inline: -0.75rem; border: 0; border-radius: 0; box-shadow: none; }
        .media-card--embed .media-card__body { padding: 0; background: transparent; }
        .embed-wrapper { border-radius: 0; }
        .embed-wrapper .h_iframe-aparat_embed_frame > span { padding-top: 75% !important; }
        .embed-wrapper .h_iframe-aparat_embed_frame iframe { border-radius: 0; }
        .embed-wrapper iframe { aspect-ratio: 4 / 3; border-radius: 0; }
    }

    .cs-wrapper { margin-top: 1.5rem; }



    .toc-nav { display: flex; flex-direction: column; gap: 0.125rem; counter-reset: toc-counter; }
    .toc-link { display: block; padding: 0.3rem 0.75rem; border-radius: 0.35rem; font-size: 0.82rem; color: #334155; text-decoration: none; transition: all 0.12s; border-right: 3px solid transparent; font-weight: 500; counter-increment: toc-counter; }
    .toc-link::before { content: counter(toc-counter) ". "; font-weight: 700; color: #2563eb; margin-left: 0.35rem; }
    .toc-link:hover { background: #f0f4ff; color: #2563eb; border-right-color: #2563eb; }
    .toc-link--h3 { padding-right: 1.5rem; font-size: 0.78rem; font-weight: 400; color: #475569; }
    .toc-link--h3::before { content: counter(toc-counter) ". "; font-weight: 700; color: #2563eb; margin-left: 0.35rem; }

    .toc-mobile { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
    .toc-mobile-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; font-weight: 700; font-size: 0.9rem; color: #0f172a; cursor: pointer; user-select: none; background: #f8fafc; border-bottom: 1px solid #e2e8f0; transition: background 0.15s; }
    .toc-mobile-header:hover { background: #f1f5f9; }
    .toc-mobile-arrow { margin-right: auto; transition: transform 0.2s; display: flex; align-items: center; color: #94a3b8; }
    .toc-mobile-arrow.open { transform: rotate(180deg); }
    .toc-mobile-body { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.125rem; counter-reset: toc-mobile-counter; }
    .toc-mobile-link { display: block; padding: 0.35rem 0.75rem; border-radius: 0.35rem; font-size: 0.82rem; color: #334155; text-decoration: none; transition: all 0.12s; border-right: 3px solid transparent; font-weight: 500; counter-increment: toc-mobile-counter; }
    .toc-mobile-link::before { content: counter(toc-mobile-counter) ". "; font-weight: 700; color: #2563eb; margin-left: 0.35rem; }
    .toc-mobile-link:hover { background: #f0f4ff; color: #2563eb; border-right-color: #2563eb; }
    .toc-mobile-link--h3 { padding-right: 1.5rem; font-size: 0.78rem; font-weight: 400; color: #475569; }
    .toc-mobile-link--h3::before { content: counter(toc-mobile-counter) ". "; font-weight: 700; color: #2563eb; margin-left: 0.35rem; }

    .block-sidebar-item { background: #f8f9fa; transition: background 0.15s; }
    .block-sidebar-item:hover { background: #e9ecef; }
    .block-sidebar-icon { width: 28px; height: 28px; display: grid; place-items: center; background: #e9ecef; border-radius: 0.5rem; flex-shrink: 0; }

    .pd-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); animation: pd-lb-in .25s ease; }
    @keyframes pd-lb-in { from { opacity: 0; } to { opacity: 1; } }
    .pd-lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
    .pd-lightbox-close { position: absolute; top: -2.5rem; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.15); border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; z-index: 10; }
    .pd-lightbox-close:hover { background: rgba(255,255,255,.3); }
    .pd-lightbox-img-wrap { display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: .75rem; max-height: 80vh; }
    .pd-lightbox-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: .5rem; }

    .article-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #212529; color: #fff; padding: .7rem 1.5rem; border-radius: 2rem; font-size: .9rem; font-weight: 600; z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,.2); animation: article-fade 2.5s ease forwards; white-space: nowrap; }
    @keyframes article-fade { 0%{opacity:0;transform:translateX(-50%) translateY(10px)}15%{opacity:1;transform:translateX(-50%) translateY(0)}75%{opacity:1}100%{opacity:0;transform:translateX(-50%) translateY(-10px)} }

    .article-scroll-top { position: fixed; bottom: 80px; left: 1rem; width: 44px; height: 44px; border-radius: 50%; border: none; background: #0d6efd; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(13,110,253,.3); transition: all .25s ease; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(10px); }
    .article-scroll-top.scroll-visible { opacity: 1; visibility: visible; transform: translateY(0); }
    .article-scroll-top:hover { background: #0b5ed7; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,110,253,.4); }
    .article-scroll-top.scroll-visible:hover { transform: translateY(-2px); }

    /* Article Mobile Header Sticky */
    .article-header-sticky {
        position: sticky;
        top: 0;
        z-index: 1020;
        min-height: 64px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(0,0,0,0.08);
        display: flex;
        align-items: center;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .nav-btn-mobile {
        width: auto;
        min-width: 48px;
        height: 48px;
        border-radius: 14px;
        background: #f8fafc;
        color: #475569;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 4px;
        text-decoration: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(0,0,0,0.04);
        flex-shrink: 0;
        cursor: pointer;
    }
    .nav-btn-mobile:active { transform: scale(0.92); background: #f1f5f9; }
    .nav-btn-mobile__icon { font-size: 0.9rem; font-weight: bold; }
    .nav-btn-mobile__icon.ms-0 { margin-right: 0 !important; }
    .nav-btn-mobile__icon.me-0 { margin-left: 0 !important; }

    .header-title-text { 
        font-weight: 800; 
        font-size: 0.85rem; 
        color: #0f172a; 
        flex: 1; 
        text-align: center; 
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
        padding: 0 8px;
    }

    @media (max-width: 576px) {
        .cs-wrapper { margin-top: 1rem; }
        .article-scroll-top { bottom: 72px; left: .75rem; width: 40px; height: 40px; }
        .download-box__content { flex-direction: column; text-align: center; padding: 1.5rem 1.25rem; gap: 1rem; }
        .download-box__icon { width: 64px; height: 64px; font-size: 1.75rem; border-radius: 1rem; }
        .download-box__title { font-size: 1.05rem; }
        .download-box__meta { justify-content: center; }
        .download-box__btn { width: 100%; justify-content: center; padding: 0.8rem 1.5rem; font-size: 0.95rem; border-radius: 0.875rem; }
        .download-box__btn-icon { font-size: 1.2rem; }
    }

    @media (prefers-reduced-motion: reduce) {
        .text-content .code-copy-btn, .pd-lightbox, .article-toast, .download-box__shine {
            animation: none !important;
            transition: none !important;
        }
        .article-scroll-top { transition: none !important; }
    }

    @media (prefers-color-scheme: dark) {
        .article-viewer-page { background: #0f172a !important; }
        .article-viewer-page .card, .article-viewer-page .card-body,
        .toc-mobile, .toc-mobile-header { background: #1e293b; border-color: #334155; }
        .article-viewer-page h1, .article-viewer-page h4,
        .article-viewer-page .fw-bold, .article-viewer-page .text-dark { color: #f1f5f9 !important; }
        .article-viewer-page .text-muted { color: #94a3b8 !important; }
        .article-summary { background: #1e293b; border-right-color: #3b82f6; }
        .article-summary p { color: #cbd5e1 !important; }
        .text-content { color: #cbd5e1; }
        .text-content pre { background: #0f172a; }
        .cs-wrapper { --cs-bg: #0f172a; --cs-surface: #1e293b; --cs-border: #334155; --cs-text: #f1f5f9; --cs-muted: #94a3b8; --cs-input-bg: #1e293b; --cs-input-border: #334155; --cs-shadow: 0 4px 24px rgba(0,0,0,.3); }
        .block-sidebar-item { background: #1e293b; }
        .block-sidebar-item:hover { background: #334155; }
        .block-sidebar-icon { background: #334155; }
        .download-box { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-color: #334155; }
        .download-box__title { color: #f1f5f9; }
        .download-box__tag { background: #334155; color: #94a3b8; }
        .article-header-sticky { background: rgba(15,23,42,0.98); border-bottom-color: #334155; }
        .nav-btn-mobile { background: #1e293b; color: #94a3b8; border-color: #334155; }
        .nav-btn-mobile:active { background: #334155; }
        .header-title-text { color: #f1f5f9; }
        .pd-toast { background: #334155; }
        .article-scroll-top { box-shadow: 0 4px 14px rgba(59,130,246,0.3); }
        .card-header.bg-white { background: #1e293b !important; }
        .sidebar-card, .card.border-0.shadow-sm { background: #1e293b !important; border-color: #334155 !important; }
        .toc-link { color: #94a3b8; }
        .toc-link:hover { background: #1e293b; color: #60a5fa; }
        .toc-mobile-link { color: #94a3b8; }
        .toc-mobile-link:hover { background: #1e293b; color: #60a5fa; }
        .media-card { background: #1e293b; border-color: #334155; }
        .media-card__body { background: #0f172a; }
        .media-cell__title { color: #f1f5f9; }
        .article-gallery__item { background: #1e293b; border-color: #334155; }
        .article-gallery__caption { background: #1e293b; border-top-color: #334155; }
        .article-gallery__caption-text { color: #94a3b8; }
        .article-gallery__dl { background: #1e3a5f; color: #60a5fa; }
        .article-gallery__dl:hover { background: #2563eb; color: #fff; }
        .media-cell__dl { color: #60a5fa; }
        .media-cell__dl:hover { color: #93c5fd; }
    }

/* ===== Client/Shared/Components/ProductCard.razor ===== */
.pc {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--app-card-bg, #fff);
    border: 1px solid var(--app-border, rgba(15, 23, 42, 0.07));
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 30px -22px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pc:hover,
.pc:focus-within {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 44px -26px rgba(37, 99, 235, 0.55);
}

.pc-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}

.pc-link:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: -2px;
}

.pc-media {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 0;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 62%),
        linear-gradient(160deg, #fbfdff 0%, #f1f5f9 100%);
    overflow: hidden;
}

.pc-media::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% -20%;
    height: 62%;
    background: radial-gradient(closest-side, rgba(37, 99, 235, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pc:hover .pc-media::after { opacity: 1; }

.pc-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: drop-shadow(0 12px 14px rgba(15, 23, 42, 0.1));
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.3s ease;
}

.pc:hover .pc-img { transform: scale(1.045); }

.pc--oos .pc-img {
    filter: grayscale(0.55) opacity(0.72);
}

.pc-badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.24rem 0.55rem;
    border-radius: 9px;
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1.6;
    color: #e11d48;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(225, 29, 72, 0.18);
    box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
    pointer-events: none;
}

.pc-badge--sale { color: #e11d48; border-color: rgba(225, 29, 72, 0.22); }
.pc-badge--perm { color: #7c3aed; border-color: rgba(124, 58, 237, 0.22); }
.pc-badge--star { color: #0369a1; border-color: rgba(3, 105, 161, 0.22); }

.pc-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 0.85rem 0.9rem;
}

.pc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-height: 26px;
}

.pc-cat {
    min-width: 0;
    font-size: 0.7rem;
    line-height: 1.6;
    color: var(--app-text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-tools {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    margin-inline-start: auto;
    flex: 0 0 auto;
}

.pc-tool {
    position: relative;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--app-text-muted, #94a3b8);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pc-tool::after {
    content: "";
    position: absolute;
    inset: -4px;
}

.pc-tool:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--app-primary, #2563eb);
}

.pc-tool:active { transform: scale(0.92); }

.pc-tool:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: 1px;
}

.pc-wish.is-on { color: #dc2626; }
.pc-wish.is-on:hover { background: rgba(220, 38, 38, 0.08); color: #dc2626; }
.pc-compare.is-on { color: #2563eb; }

.pc-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.65;
    color: var(--app-text, #0f172a);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.97em;
    transition: color 0.15s ease;
}

.pc:hover .pc-title { color: var(--app-primary-hover, #1d4ed8); }

.pc-flags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.pc-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.12rem 0.5rem;
    border-radius: 7px;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.7;
    white-space: nowrap;
}

.pc-flag--low { color: #b45309; background: rgba(245, 158, 11, 0.12); }
.pc-flag--oos { color: #64748b; background: rgba(100, 116, 139, 0.12); }
.pc-flag--new { color: #047857; background: rgba(16, 185, 129, 0.12); }
.pc-flag--timer { color: #dc2626; background: rgba(239, 68, 68, 0.1); font-variant-numeric: tabular-nums; }
.pc-flag--timer .oi { font-size: 0.72rem; }

.pc-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.2rem;
}

.pc-now {
    font-size: 1.02rem;
    font-weight: 900;
    color: var(--app-text, #0f172a);
    letter-spacing: -0.01em;
}

.pc-now small {
    margin-inline-start: 0.15rem;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--app-text-muted, #64748b);
}

.pc-was {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--app-text-muted, #94a3b8);
    text-decoration: line-through;
}

.pc-cart {
    position: relative;
    z-index: 3;
    margin-top: 0.5rem;
}

.pc-cart .qc {
    display: flex;
    width: 100%;
}

.pc-cart .qc-add,
.pc-cart .qc-badge,
.pc-cart .qc-qty {
    width: 100%;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    min-height: 36px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 11px;
    background: rgba(37, 99, 235, 0.07);
    color: var(--app-primary-hover, #1d4ed8);
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: none;
}

.pc-cart .qc-add {
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.pc-cart .qc-add:hover {
    background: var(--app-primary, #2563eb);
    border-color: var(--app-primary, #2563eb);
    color: #fff;
}

.pc-cart .qc-badge {
    color: #64748b;
    background: rgba(100, 116, 139, 0.08);
    border-color: rgba(100, 116, 139, 0.12);
}

.pc-cart .qc-qty {
    justify-content: space-between;
    padding: 0.28rem 0.3rem;
    background: rgba(37, 99, 235, 0.06);
}

.pc-cart .qc-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    color: var(--app-primary, #2563eb);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.pc-cart .qc-btn:disabled {
    background: rgba(100, 116, 139, 0.08);
    color: #94a3b8;
    box-shadow: none;
}

.pc-cart .qc-val {
    min-width: 22px;
    color: var(--app-primary, #2563eb);
    font-weight: 900;
}

.pc-cta {
    width: 100%;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 116, 139, 0.12);
    border-radius: 11px;
    background: rgba(100, 116, 139, 0.08);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: default;
}

.pc-notify {
    width: 100%;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 11px;
    background: rgba(37, 99, 235, 0.07);
    color: var(--app-primary-hover, #1d4ed8);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.pc-notify:hover {
    background: var(--app-primary, #2563eb);
    border-color: var(--app-primary, #2563eb);
    color: #fff;
}

.pc-notify.is-on {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.22);
    color: #047857;
}

.pc-notify:disabled { opacity: 0.65; cursor: default; }

.pc-notify:focus-visible,
.pc-cart .qc-add:focus-visible,
.pc-cart .qc-btn:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .pc-media { padding: 0; }
    .pc-body { padding: 0.6rem 0.65rem 0.75rem; gap: 0.3rem; }
    .pc-badge { top: 0.5rem; right: 0.5rem; font-size: 0.62rem; padding: 0.18rem 0.45rem; }
    .pc-cat { font-size: 0.64rem; }
    .pc-tool { width: 24px; height: 24px; }
    .pc-title { font-size: 0.84rem; min-height: 3em; }
    .pc-now { font-size: 0.95rem; }
    .pc-was { font-size: 0.68rem; }
    .pc-cart { margin-top: 0.4rem; }
    .pc-cart .qc-add,
    .pc-cart .qc-badge,
    .pc-cart .qc-qty,
    .pc-cta,
    .pc-notify { min-height: 34px; font-size: 0.72rem; padding: 0.45rem 0.4rem; }
    .pc-flag { font-size: 0.62rem; }
}

[data-theme="dark"] .pc {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 16px 32px -24px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .pc:hover,
[data-theme="dark"] .pc:focus-within {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 24px 44px -26px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .pc-media {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(96, 165, 250, 0.1), transparent 62%),
        linear-gradient(160deg, #1b2536 0%, #141d2e 100%);
}

[data-theme="dark"] .pc-img { filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.4)); }

[data-theme="dark"] .pc-badge {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.9);
}
[data-theme="dark"] .pc-badge--sale { color: #fb7185; border-color: rgba(251, 113, 133, 0.28); }
[data-theme="dark"] .pc-badge--perm { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.28); }
[data-theme="dark"] .pc-badge--star { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.28); }

[data-theme="dark"] .pc-tool { color: #94a3b8; }
[data-theme="dark"] .pc-tool:hover { background: rgba(96, 165, 250, 0.14); color: #93c5fd; }
[data-theme="dark"] .pc-wish.is-on { color: #f87171; }
[data-theme="dark"] .pc-wish.is-on:hover { background: rgba(248, 113, 113, 0.14); color: #f87171; }
[data-theme="dark"] .pc-compare.is-on { color: #60a5fa; }

[data-theme="dark"] .pc:hover .pc-title { color: #93c5fd; }

[data-theme="dark"] .pc-flag--low { color: #fbbf24; background: rgba(245, 158, 11, 0.16); }
[data-theme="dark"] .pc-flag--oos { color: #94a3b8; background: rgba(148, 163, 184, 0.14); }
[data-theme="dark"] .pc-flag--new { color: #34d399; background: rgba(16, 185, 129, 0.16); }
[data-theme="dark"] .pc-flag--timer { color: #fca5a5; background: rgba(239, 68, 68, 0.16); }

[data-theme="dark"] .pc-cart .qc-add,
[data-theme="dark"] .pc-cart .qc-badge,
[data-theme="dark"] .pc-cart .qc-qty,
[data-theme="dark"] .pc-notify {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.24);
    color: #93c5fd;
}

[data-theme="dark"] .pc-cart .qc-add:hover,
[data-theme="dark"] .pc-notify:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

[data-theme="dark"] .pc-cart .qc-btn {
    background: #0f172a;
    color: #93c5fd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .pc-cart .qc-btn:disabled {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    box-shadow: none;
}

[data-theme="dark"] .pc-cart .qc-val { color: #93c5fd; }

[data-theme="dark"] .pc-notify.is-on {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

[data-theme="dark"] .pc-cta {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.14);
    color: #94a3b8;
}

/* ===== Home section rhythm & shared headers ===== */
.home-section { padding: 2.25rem 0 !important; }

.home-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.home-head--compact { margin-bottom: 0.55rem; }

.home-head__heading { min-width: 0; }

.home-head__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.55;
    color: var(--app-text, #0f172a);
}

.home-head__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.home-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--app-primary, #2563eb);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.7;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.home-more .oi { font-size: 0.68rem; transition: transform 0.18s ease; }
.home-more:hover { background: rgba(37, 99, 235, 0.15); color: var(--app-primary, #2563eb); }
.home-more:hover .oi { transform: translateX(-3px); }
.home-more:focus-visible { outline: 2px solid var(--app-primary, #2563eb); outline-offset: 2px; }

.home-more--sm { padding: 0.28rem 0.7rem; font-size: 0.74rem; gap: 0.3rem; }

.home-more--light { background: rgba(255, 255, 255, 0.16); color: #fff; }
.home-more--light:hover { background: #fff; color: var(--app-primary, #2563eb); }

.home-head-wrap { margin-bottom: 0.9rem; }

.home-news-block { padding-block: 2.25rem; }

[data-theme="dark"] .home-head__title { color: #e2e8f0; }
[data-theme="dark"] .home-more { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
[data-theme="dark"] .home-more:hover { background: rgba(59, 130, 246, 0.26); color: #bfdbfe; }
[data-theme="dark"] .home-more--light { background: rgba(255, 255, 255, 0.16); color: #fff; }
[data-theme="dark"] .home-more--light:hover { background: #fff; color: #1d4ed8; }

@media (max-width: 767.98px) {
    .home-section { padding: 1.75rem 0 !important; }
    .home-head { align-items: center; margin-bottom: 0.85rem; }
    .home-head__title { font-size: 1.05rem; }
    .home-more { padding: 0.32rem 0.72rem; font-size: 0.74rem; gap: 0.3rem; }
    .home-news-block { padding-block: 1.75rem; }
}

/* ===== Client/Shared/Components/ProductRow.razor ===== */
    .pr-row__scroll { display: flex; gap: 1rem; overflow-x: auto; padding: .25rem .5rem 1rem; scroll-snap-type: x proximity; scroll-padding-inline-start: .5rem; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
    .pr-row__scroll::-webkit-scrollbar { display: none; }
    .pr-row__item { flex: 0 0 250px; min-width: 250px; scroll-snap-align: start; display: flex; }
    @media (min-width: 768px) { .pr-row__scroll { scroll-snap-type: none; } }

    .hps-tabs {
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
        padding: 0.25rem 0.5rem 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .hps-tabs::-webkit-scrollbar { display: none; }

    .hps-tab {
        flex: 0 0 auto;
        appearance: none;
        border: 1px solid var(--app-border, rgba(15, 23, 42, 0.12));
        background: var(--app-surface, #fff);
        color: var(--app-text-secondary, #475569);
        border-radius: 999px;
        padding: 0.42rem 1.05rem;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.6;
        cursor: pointer;
        transition: background 0.18s, border-color 0.18s, color 0.18s;
    }

    .hps-tab:hover:not(.is-active) {
        border-color: rgba(37, 99, 235, 0.45);
        color: var(--app-primary, #2563eb);
    }

    .hps-tab.is-active {
        background: var(--app-primary, #2563eb);
        border-color: var(--app-primary, #2563eb);
        color: #fff;
    }

    [data-theme="dark"] .hps-tab { background: rgba(30, 41, 59, 0.65); border-color: rgba(148, 163, 184, 0.2); }
    [data-theme="dark"] .hps-tab.is-active { background: #2563eb; border-color: #2563eb; }

    @media (max-width: 767.98px) {
        .hps-tabs { padding-bottom: 0.75rem; }
        .hps-tab { font-size: 0.78rem; padding: 0.36rem 0.9rem; }
    }

    .pr-card { display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; border: 1px solid #f1f5f9 !important; }
    .pr-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, .10) !important; }
    .pr-card--unavailable { opacity: .72; }

    .pr-card__img-wrap { height: 190px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .pr-card__img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; transition: transform .25s ease; }
    .pr-card:hover .pr-card__img { transform: scale(1.05); }

    .pr-card__badge {
        position: absolute; top: .6rem; right: .6rem; z-index: 2;
        background: linear-gradient(135deg, #ef4444, #f97316);
        color: #fff; font-size: .7rem; font-weight: 800;
        padding: .25rem .6rem; border-radius: 999px;
        box-shadow: 0 4px 12px rgba(239, 68, 68, .35);
    }
    .pr-card__badge--perm { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 4px 12px rgba(99, 102, 241, .35); }
    .pr-card__badge--star { background: linear-gradient(135deg, #0ea5e9, #2563eb); box-shadow: 0 4px 12px rgba(37, 99, 235, .35); }

    .pr-card__body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
    .pr-card__name { font-size: .88rem; font-weight: 700; color: #0f172a; line-height: 1.7; height: 2.9em; overflow: hidden; }
    .pr-card__cat { font-size: .72rem; color: #94a3b8; }

    .pr-card__price { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; margin-top: .35rem; }
    .pr-card__price-new { font-size: 1rem; font-weight: 900; color: #dc2626; }
    .pr-card__price-old { font-size: .75rem; color: #94a3b8; text-decoration: line-through; }
    .pr-card__cur { font-size: .7rem; color: #64748b; }

    .pr-card__btn {
        margin-top: auto; width: 100%; border: 1px solid #dbeafe; background: #eff6ff;
        color: #1d4ed8; font-size: .82rem; font-weight: 700; padding: .5rem .75rem;
        cursor: pointer; transition: all .15s ease; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    }
    .pr-card__btn:hover:not(:disabled) { background: #2563eb; border-color: #2563eb; color: #fff; }
    .pr-card__btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== Client/Shared/QuantityControl.razor ===== */
.qc { display: inline-flex; align-items: center; }

    .qc-badge {
        background: rgba(100, 116, 139, 0.14);
        color: #334155;
        border: 1px solid rgba(2, 6, 23, 0.08);
        padding: 8px 14px;
        border-radius: 999px;
        font-weight: 800;
        font-size: 0.8rem;
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
    }

    .qc-add {
        background: #ffffff;
        color: #0f172a;
        border: 1px solid rgba(2, 6, 23, 0.08);
        border-radius: 999px;
        padding: 8px 14px;
        font-weight: 900;
        font-size: 0.85rem;
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
    }

    .qc-qty {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #ffffff;
        border: 1px solid rgba(2, 6, 23, 0.08);
        border-radius: 999px;
        padding: 6px 10px;
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
    }

    .qc-btn {
        width: 28px;
        height: 28px;
        border: none;
        background: rgba(79, 70, 229, 0.10);
        color: #4f46e5;
        border-radius: 999px;
        display: grid;
        place-items: center;
        font-size: 0.8rem;
    }

    .qc-btn:active { transform: scale(0.94); }

    .qc-btn:disabled {
        background: rgba(100, 116, 139, 0.12);
        color: #94a3b8;
        cursor: not-allowed;
    }

    .qc-btn:disabled:active { transform: none; }

    .qc-val {
        min-width: 18px;
        text-align: center;
        font-weight: 900;
        color: #4f46e5;
    }

/* ===== Client/Shared/HomeAcademyHub.razor ===== */
.home-academy {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 72%);
    border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.hah-tabs { padding: 0.15rem 0.1rem 0.6rem; }

.hah-panel[hidden] { display: none !important; }

.hah-track { padding-top: 0.25rem; }
.hah-track .academy-scroll-item { flex: 0 0 300px; min-width: 300px; }

@media (max-width: 767.98px) {
    .hah-track .academy-scroll-item { flex: 0 0 78vw; min-width: 78vw; }
}

[data-theme="dark"] .home-academy {
    background: linear-gradient(180deg, #0b1220, #0f172a);
    border-top-color: rgba(148, 163, 184, 0.08);
}

/* ===== Client/Shared/HomeTrustStrip.razor ===== */
.home-trust { padding: 2.25rem 0; }

.home-trust__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.home-trust__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.6rem;
}

.home-trust__title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0.15rem 0 0;
}

.home-trust__meta { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.home-trust__meta span {
    font-size: 0.72rem;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

.home-trust__meta b { color: #0f172a; }

.home-trust__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px dashed #e2e8f0;
}

.home-trust__label {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
}

.home-trust__items {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem 0.1rem;
}

.home-trust__items::-webkit-scrollbar { display: none; }

.home-trust__brand,
.home-trust__partner {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.6rem 0.3rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: #334155;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.home-trust__brand:hover,
.home-trust__partner:hover {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.10);
    transform: translateY(-1px);
    color: #1d4ed8;
}

.home-trust__brand img,
.home-trust__partner img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    background: #f1f5f9;
}

.home-trust__fallback {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.62rem;
    font-weight: 900;
}

.home-trust__name { font-size: 0.78rem; font-weight: 700; white-space: nowrap; }

@media (max-width: 767.98px) {
    .home-trust { padding: 1.75rem 0; }
    .home-trust__card { padding: 0.9rem; border-radius: 1rem; }
    .home-trust__head { align-items: flex-start; }
    .home-trust__row { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
    .home-trust__items { width: 100%; }
}

[data-theme="dark"] .home-trust__card {
    background: var(--app-surface, #0f172a);
    border-color: var(--app-border, rgba(148, 163, 184, 0.15));
    box-shadow: none;
}

[data-theme="dark"] .home-trust__title,
[data-theme="dark"] .home-trust__meta b { color: #e2e8f0; }
[data-theme="dark"] .home-trust__meta span { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }
[data-theme="dark"] .home-trust__row { border-top-color: rgba(148, 163, 184, 0.15); }
[data-theme="dark"] .home-trust__label { background: rgba(148, 163, 184, 0.10); border-color: rgba(148, 163, 184, 0.18); color: #cbd5e1; }
[data-theme="dark"] .home-trust__brand,
[data-theme="dark"] .home-trust__partner { background: rgba(30, 41, 59, 0.7); border-color: rgba(148, 163, 184, 0.2); color: #e2e8f0; }

/* Home news: a single horizontal row on phones instead of a tall stack */
@media (max-width: 767.98px) {
    .news-card-view .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        margin-inline: -0.25rem;
        padding-bottom: 0.5rem;
    }
    .news-card-view .row::-webkit-scrollbar { display: none; }
    .news-card-view .row > [class*="col-"] {
        flex: 0 0 80vw;
        max-width: 80vw;
        scroll-snap-align: start;
    }
    .news-card__img-wrap { height: 150px; min-height: 150px; }
}

/* ===== News Details V2 (nd-*) ===== */
.nd-page {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%) !important;
    padding: 24px 0 96px;
}
.nd-container { max-width: 1180px; }

/* Reading progress */
.nd-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1060;
    direction: rtl;
    pointer-events: none;
}
.nd-progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    border-end-start-radius: 4px;
    transition: width .12s linear;
}

/* Skeleton */
.nd-loading { max-width: 880px; margin: 36px auto; }
.nd-skeleton {
    border-radius: 12px;
    background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: nd-shimmer 1.4s ease infinite;
}
@keyframes nd-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.nd-skeleton--title { height: 42px; width: 86%; margin-bottom: 16px; }
.nd-skeleton--meta { height: 18px; width: 46%; margin-bottom: 26px; }
.nd-skeleton--hero { height: 320px; border-radius: 22px; margin-bottom: 26px; }
.nd-skeleton--line { height: 15px; margin-bottom: 14px; }
.nd-skeleton--short { width: 62%; }

.nd-breadcrumb { margin-bottom: 18px; }
.nd-breadcrumb .breadcrumb-item { font-size: .8rem; color: #94a3b8; }
.nd-breadcrumb a { color: #64748b; }
.nd-breadcrumb .active { color: #334155; font-weight: 700; }

/* Article shell */
.nd-page .nd-article {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 28px;
    padding: 34px 38px 30px;
    box-shadow: 0 26px 70px -42px rgba(15, 23, 42, .45);
    min-width: 0;
}

/* Head */
.nd-head { margin-bottom: 22px; }
.nd-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: .74rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 14px;
}
.nd-kicker:hover { background: #dbeafe; color: #1e40af; }
.nd-title {
    font-size: clamp(1.4rem, 1.1rem + 0.65vw, 1.8rem);
    line-height: 1.72;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 18px;
    letter-spacing: 0;
    word-break: break-word;
}
.nd-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}
.nd-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nd-author__avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border: 1px solid #dbeafe;
    color: #2563eb;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.nd-author__txt { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.nd-author__name { font-weight: 800; color: #0f172a; font-size: .9rem; }
.nd-author__date { color: #94a3b8; font-size: .74rem; }
.nd-dot { margin: 0 .35rem; }
.nd-meta__actions { display: flex; align-items: center; gap: 8px; }
.nd-readtime {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}
.nd-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: grid;
    place-items: center;
    transition: all .2s ease;
    padding: 0;
}
.nd-icon-btn:hover { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.nd-icon-btn--solid {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(37, 99, 235, .9);
}
.nd-icon-btn--solid:hover { color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); }

/* Hero */
.nd-page .nd-hero {
    margin: 0 0 22px;
    border-radius: 22px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 16 / 9;
}
.nd-page .nd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-hero--empty {
    aspect-ratio: auto;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    font-weight: 700;
    font-size: .9rem;
}
.nd-hero--empty .oi { font-size: 2.2rem; opacity: .6; }

/* Summary */
.nd-summary {
    margin: 0 0 26px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    border-inline-start: 4px solid #3b82f6;
    border-radius: 16px;
    text-align: right;
}
.nd-summary__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .2px;
    margin-bottom: 8px;
}
.nd-summary__label::before {
    content: "";
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #3b82f6;
}
.nd-summary__text {
    margin: 0;
    color: #334155;
    font-size: 1.02rem;
    line-height: 2;
    font-weight: 600;
    text-align: right !important;
    text-align-last: right;
    word-spacing: normal;
    letter-spacing: 0;
}

/* Body */
.nd-page .nd-body {
    font-size: 1.08rem;
    line-height: 2.1;
    color: #1f2937;
    text-align: right;
    word-break: break-word;
}
.nd-page .nd-body > p:first-child { margin-top: 0; }
.nd-page .nd-body p { margin-bottom: 1.1em; }
.nd-page .nd-body img { max-width: 100%; height: auto; border-radius: 14px; }
.nd-page .nd-body a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }

/* Tags */
.nd-tags {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.nd-tags__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 800;
    font-size: .78rem;
}
.nd-tags__list { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-tags .badge-tag { text-decoration: none; }

/* Share strip */
.nd-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 12px 16px;
}
.nd-share__title { color: #475569; font-weight: 800; font-size: .82rem; }
.nd-share__btns { display: flex; gap: 8px; }
.nd-share__btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    display: grid;
    place-items: center;
    color: #fff;
    transition: all .2s ease;
    padding: 0;
    box-shadow: 0 8px 16px -10px rgba(15, 23, 42, .6);
}
.nd-share__btn:hover { transform: translateY(-3px); }
.nd-share__btn--copy { background: #e2e8f0; color: #334155; }
.nd-share__btn--tg { background: linear-gradient(135deg, #37aee2, #1e96c8); }
.nd-share__btn--wa { background: linear-gradient(135deg, #25d366, #128c7e); }

/* Pager */
.nd-pager {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.nd-pager__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    transition: all .2s ease;
    min-width: 0;
}
.nd-pager__card:hover { border-color: #bfdbfe; background: #f8fbff; transform: translateY(-2px); }
.nd-pager__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: .72rem;
    font-weight: 900;
}
.nd-pager__title {
    color: #0f172a;
    font-weight: 800;
    font-size: .85rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Related */
.nd-related { margin-top: 30px; }
.nd-related__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nd-related__head h4 {
    position: relative;
    padding-inline-start: 15px;
    font-weight: 900;
    font-size: 1.05rem;
    color: #0f172a;
}
.nd-related__head h4::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 18px;
    border-radius: 99px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}
.nd-related__head a { color: #2563eb; font-weight: 800; font-size: .78rem; text-decoration: none; }
.nd-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nd-related-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 16px;
    padding: 8px;
    text-decoration: none;
    transition: all .2s ease;
    min-width: 0;
}
.nd-related-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 34px -22px rgba(15, 23, 42, .5);
}
.nd-related-card__img {
    width: 108px;
    height: 78px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
}
.nd-related-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-related-card__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.nd-related-card__title {
    color: #0f172a;
    font-weight: 800;
    font-size: .82rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nd-related-card__date { color: #94a3b8; font-size: .7rem; }

/* Sidebar */
.nd-sidebar { position: sticky; top: 92px; }
.nd-sidebar .sidebar-card { border-radius: 18px; margin-bottom: 12px; }

/* Comments */
.nd-comments { max-width: 980px; }

/* Mobile bottom bar */
.nd-mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1035;
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 -14px 34px -26px rgba(15, 23, 42, .55);
}
.nd-mobile-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 48px;
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 800;
    font-size: .68rem;
    text-decoration: none;
    border-radius: 12px;
    transition: transform .15s ease;
}
.nd-mobile-bar__item .oi { font-size: 1.05rem; }
.nd-mobile-bar__item:active { transform: scale(.96); }
.nd-mobile-bar__item--primary {
    flex: 1.45;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 12px 22px -14px rgba(37, 99, 235, .95);
}

/* Mobile layout */
@media (max-width: 991.98px) {
    .nd-page { padding: 8px 0 88px; }
    .nd-page .nd-article {
        border-radius: 0;
        border-inline: 0;
        margin-inline: -12px;
        padding: 20px 16px 24px;
        box-shadow: none;
    }
    .nd-title { font-size: 1.3rem; line-height: 1.72; margin-bottom: 14px; }
    .nd-meta { padding-top: 12px; gap: 10px; }
    .nd-author__avatar { width: 40px; height: 40px; border-radius: 12px; }
    .nd-readtime { font-size: .68rem; padding: 5px 10px; }
    .nd-icon-btn { width: 36px; height: 36px; border-radius: 10px; }
    .nd-page .nd-hero { border-radius: 16px; margin-bottom: 18px; aspect-ratio: 16 / 10; }
    .nd-hero--empty { min-height: 170px; }
    .nd-summary { padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; }
    .nd-summary__text { font-size: .98rem; line-height: 1.95; }
    .nd-page .nd-body { font-size: 1.02rem; line-height: 2.05; }
    .nd-page .nd-body p { margin-bottom: 1em; }
    .nd-page .nd-body h1 { margin: 1.8rem 0 .9rem; padding: 10px 14px; font-size: 1.2rem; border-radius: 12px; }
    .nd-page .nd-body h2 { font-size: 1.1rem; padding-inline-start: 12px; }
    .nd-page .nd-body h3 { font-size: 1.02rem; }
    .nd-readmore__title { flex-basis: 140px; font-size: .94rem; }
    .nd-related__grid { grid-template-columns: 1fr; }
    .nd-related-card { grid-template-columns: 96px minmax(0, 1fr); }
    .nd-related-card__img { width: 96px; height: 70px; }
    .nd-pager { grid-template-columns: 1fr; }
    .nd-share { padding: 10px 12px; }
    .nd-comments { padding-top: 8px; }
}

/* Dark theme */
[data-theme="dark"] .nd-page { background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%) !important; }
[data-theme="dark"] .nd-page .nd-article { background: #111c2e; border-color: #1f2f46; box-shadow: none; }
[data-theme="dark"] .nd-title { color: #f1f5f9; }
[data-theme="dark"] .nd-kicker { background: rgba(37, 99, 235, .16); border-color: rgba(96, 165, 250, .25); color: #93c5fd; }
[data-theme="dark"] .nd-kicker:hover { color: #bfdbfe; }
[data-theme="dark"] .nd-meta { border-top-color: #1f2f46; }
[data-theme="dark"] .nd-author__avatar { background: rgba(37, 99, 235, .18); border-color: rgba(96, 165, 250, .22); color: #93c5fd; }
[data-theme="dark"] .nd-author__name { color: #e2e8f0; }
[data-theme="dark"] .nd-author__date { color: #94a3b8; }
[data-theme="dark"] .nd-readtime { background: #16233a; color: #94a3b8; }
[data-theme="dark"] .nd-icon-btn { background: #16233a; border-color: #243b57; color: #94a3b8; }
[data-theme="dark"] .nd-icon-btn:hover { background: #1b2b45; border-color: #2f4a6b; color: #93c5fd; }
[data-theme="dark"] .nd-icon-btn--solid { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: transparent; color: #fff; }
[data-theme="dark"] .nd-page .nd-hero { background: #16233a; }
[data-theme="dark"] .nd-hero--empty { background: #111c2e; border-color: #243b57; color: #64748b; }
[data-theme="dark"] .nd-summary {
    background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(15, 23, 42, .55));
    border-color: rgba(96, 165, 250, .22);
    border-inline-start-color: #3b82f6;
}
[data-theme="dark"] .nd-summary__label { color: #93c5fd; }
[data-theme="dark"] .nd-summary__text { color: #cbd5e1; }
[data-theme="dark"] .nd-page .nd-body { color: #cbd5e1; }
[data-theme="dark"] .nd-tags { border-top-color: #1f2f46; }
[data-theme="dark"] .nd-tags__label { color: #94a3b8; }
[data-theme="dark"] .nd-share { background: #16233a; border-color: #1f2f46; }
[data-theme="dark"] .nd-share__title { color: #94a3b8; }
[data-theme="dark"] .nd-share__btn--copy { background: #243b57; color: #e2e8f0; }
[data-theme="dark"] .nd-pager__card { background: #111c2e; border-color: #1f2f46; }
[data-theme="dark"] .nd-pager__card:hover { background: #16233a; border-color: #2f4a6b; }
[data-theme="dark"] .nd-pager__label { color: #93c5fd; }
[data-theme="dark"] .nd-pager__title { color: #e2e8f0; }
[data-theme="dark"] .nd-related__head h4 { color: #f1f5f9; }
[data-theme="dark"] .nd-related__head a { color: #93c5fd; }
[data-theme="dark"] .nd-related-card { background: #111c2e; border-color: #1f2f46; }
[data-theme="dark"] .nd-related-card:hover { border-color: #2f4a6b; box-shadow: none; }
[data-theme="dark"] .nd-related-card__img { background: #16233a; }
[data-theme="dark"] .nd-related-card__title { color: #e2e8f0; }
[data-theme="dark"] .nd-related-card__date { color: #64748b; }
[data-theme="dark"] .nd-sidebar .sidebar-card { background: #111c2e; border-color: #1f2f46; box-shadow: none; }
[data-theme="dark"] .nd-sidebar .sidebar-card__title { color: #f1f5f9; }
[data-theme="dark"] .nd-sidebar .sidebar-info__row { border-bottom-color: rgba(148, 163, 184, .14); }
[data-theme="dark"] .nd-sidebar .sidebar-card .btn-light { background: #16233a; border-color: #243b57; color: #cbd5e1; }
[data-theme="dark"] .nd-sidebar .sidebar-card .btn-outline-secondary { border-color: #2f4a6b; color: #cbd5e1; }
[data-theme="dark"] .nd-page .badge-tag { background: rgba(37, 99, 235, .16); border-color: rgba(96, 165, 250, .24); color: #93c5fd; }
[data-theme="dark"] .nd-mobile-bar { background: rgba(11, 18, 32, .94); border-top-color: #1f2f46; }
[data-theme="dark"] .nd-mobile-bar__item { color: #94a3b8; }
[data-theme="dark"] .nd-mobile-bar__item--primary { color: #fff; }
[data-theme="dark"] .nd-progress > span { background: linear-gradient(90deg, #22d3ee, #3b82f6); }
[data-theme="dark"] .nd-skeleton { background: linear-gradient(90deg, #16233a 25%, #1b2b45 37%, #16233a 63%); background-size: 400% 100%; }

/* Mobile header chrome in dark theme (site classes only themed on this page) */
[data-theme="dark"] .nd-page .news-header-sticky { background: rgba(11, 18, 32, .96); border-bottom-color: #1f2f46; }
[data-theme="dark"] .nd-page .nav-btn-mobile { background: #16233a; color: #94a3b8; border-color: #1f2f46; }
[data-theme="dark"] .nd-page .header-title-text { color: #f1f5f9; }
[data-theme="dark"] .nd-page .nav-btn-mobile__img { background: #111c2e; border-color: #243b57; }
[data-theme="dark"] .nd-page .nav-placeholder-mini { background: #16233a; color: #64748b; }
