/* ═══════════════════════════════════════════════════════════════
   calculate.css — استایل‌های صفحه کانفیگوراتور
   بهینه‌سازی شده: کدهای تکراری ادغام، override های اضافی حذف
   ═══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════
   ۱. متغیرها و پایه
══════════════════════════════════════════════ */
:root {
    --primary: #0058DD;
    --accent:  #FDC804;
}

body {
    background: #F0F0F0;
    font-family: Vazir, Tahoma, sans-serif;
}

/* قفل اسکرول کل صفحه (هنگام fullscreen) */
.no-scroll {
    overflow: hidden !important;
    touch-action: none;
}


/* ══════════════════════════════════════════════
   ۲. هدر یکپارچه (unified-header)
══════════════════════════════════════════════ */
.unified-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background-color: #1B2A6B;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.uh-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    padding: 0 20px;
    gap: 16px;
}

/* لوگو */
.uh-logo img {
    height: 36px;
    width: auto;
    display: block;
}

/* منو */
.uh-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.uh-nav ul li a {
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.uh-nav ul li a:hover,
.uh-nav ul li a.active {
    color: #fff;
    background-color: rgba(255,255,255,0.12);
}

/* استپ‌ها در هدر */
.uh-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    background: rgba(0,0,0,0.15);
    padding: 6px 14px;
    border-radius: 30px;
    flex-shrink: 0;
}

.uh-step {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.45;
    transition: opacity 0.3s;
}
.uh-step.active { opacity: 1; }
.uh-step.done   { opacity: 0.75; }

.uh-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.uh-step.active .uh-step-num {
    background: #FDC804;
    color: #1B2A6B;
}
.uh-step.done .uh-step-num {
    background: #4CAF50;
    color: #fff;
}

.uh-step-label {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}

.uh-step-line {
    width: 28px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    flex-shrink: 0;
}
.uh-step-line.done { background: #4CAF50; }

/* پروفایل و خروج */
.uh-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.uh-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 4px 10px 4px 4px;
    border-radius: 30px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s;
}
.uh-avatar:hover { background: rgba(255,255,255,0.15); }

.uh-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FDC804;
}
.uh-avatar .fa-user-circle {
    font-size: 28px;
    color: rgba(255,255,255,0.6);
}

.uh-username {
    font-size: 12px;
    color: #fff;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uh-logout {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.uh-logout:hover {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
}

/* هدر موبایل (بالای صفحه، پیش‌فرض مخفی) */
.uh-top-mobile { display: none; }

/* نام برند در موبایل */
.uh-brand-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

/* استپ‌های افقی کامل موبایل */
.uh-steps-mobile-full {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 5px;
}

.uh-step-mf {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    opacity: 0.5;
    background: none !important;
}
.uh-step-mf.active { opacity: 1; }

.uh-step-mf-num {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: none;
}
.uh-step-mf.active .uh-step-mf-num {
    background: #fff;
    color: #1E2746;
    border-color: #fff;
}

.uh-step-mf-label {
    font-size: 9px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}
.uh-step-mf.active .uh-step-mf-label {
    color: #fff;
    font-weight: 600;
}

.uh-steps-mobile-full .uh-step-line {
    flex: 2;
    height: 1px;
    background: rgba(255,255,255,0.3);
}


/* ══════════════════════════════════════════════
   ۳. نوار بالا (top-bar) — نسخه قدیمی‌تر
   (در صورت عدم استفاده از unified-header)
══════════════════════════════════════════════ */
.top-bar {
    background: linear-gradient(135deg, #1A1A1A 0%, #0058DD 60%, #0f2d4a 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
    border-bottom: 1px solid rgba(253,200,4,.2);
}

.top-bar-inner {
    display: flex;
    align-items: stretch;
    height: 62px;
    position: relative;
}

/* دکمه خانه */
.home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    text-decoration: none;
    color: rgba(255,255,255,.8);
    font-size: 13px;
    font-weight: bold;
    border-left: 1px solid rgba(255,255,255,.08);
    transition: all .25s;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.home-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(253,200,4,.08);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s;
}
.home-btn:hover::before { transform: scaleX(1); }
.home-btn:hover { color: var(--accent); }

.home-btn .hb-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,.1);
    transition: all .25s;
    flex-shrink: 0;
}
.home-btn:hover .hb-icon {
    background: rgba(253,200,4,.15);
    border-color: var(--accent);
    color: var(--accent);
}
.home-btn .hb-text { line-height: 1.2; }
.home-btn .hb-text small {
    display: block;
    font-size: 9px;
    opacity: .5;
    font-weight: normal;
}

/* استپ‌های نوار بالا */
.steps-track {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 10px;
    position: relative;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.35);
    font-size: 12px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all .25s;
    position: relative;
}
.step-item:hover { color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); }
.step-item.active { color: #fff; }
.step-item.done   { color: #4caf50; cursor: pointer; }

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    transition: all .25s;
    flex-shrink: 0;
}
.step-item.active .step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 16px rgba(253,200,4,.5);
    border-radius: 12px;
}
.step-item.done .step-num {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
    border-radius: 50%;
}

.step-label { display: flex; flex-direction: column; }
.step-label span { font-size: 12px; font-weight: bold; line-height: 1; }
.step-label small { font-size: 9px; opacity: .5; margin-top: 2px; }

/* خط بین استپ‌ها */
.step-connector {
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,.12);
    border-radius: 2px;
    flex-shrink: 0;
    transition: background .4s;
    position: relative;
    overflow: hidden;
}
.step-connector::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s;
}
.step-connector.done::after { transform: scaleX(1); }

/* سمت چپ نوار بالا (پروفایل + خروج) */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0;
    border-right: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    text-decoration: none;
    color: rgba(255,255,255,.85);
    border-left: 1px solid rgba(255,255,255,.08);
    height: 100%;
    transition: all .25s;
    position: relative;
}
.user-avatar-btn:hover { background: rgba(255,255,255,.05); color: #fff; }

.user-avatar-btn img,
.user-avatar-btn .av-ph {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.2);
    transition: all .25s;
}
.user-avatar-btn .av-ph {
    background: linear-gradient(135deg, rgba(253,200,4,.2), rgba(0,88,221,.5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.user-avatar-btn:hover img,
.user-avatar-btn:hover .av-ph {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(253,200,4,.4);
}

.av-info { line-height: 1.3; }
.av-info .av-name  { font-size: 12px; font-weight: bold; display: block; }
.av-info .av-role  { font-size: 10px; opacity: .5; display: block; }

.av-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    line-height: 1;
    background: var(--primary);
    border-radius: 50%;
    padding: 1px;
    border: 1px solid rgba(255,255,255,.2);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    text-decoration: none;
    color: rgba(255,255,255,.5);
    font-size: 12px;
    height: 100%;
    transition: all .25s;
}
.logout-btn:hover { color: #e74c3c; background: rgba(231,76,60,.08); }
.logout-btn i { font-size: 15px; }


/* ══════════════════════════════════════════════
   ۴. پنل‌های استپ
══════════════════════════════════════════════ */
.step-panel        { display: none; }
.step-panel.active { display: block; }


/* ══════════════════════════════════════════════
   ۵. استپ ۱ — انتخاب مدل
══════════════════════════════════════════════ */

/* تب‌های دسته‌بندی */
.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid #BFC1C6;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    margin: 3px;
    background: #fff;
    font-weight: bold;
}
.cat-tab.active,
.cat-tab:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

/* کارت مدل */
.model-card {
    border: 2px solid #BFC1C6;
    border-radius: 10px;
    cursor: pointer;
    transition: all .3s;
    background: #fff;
    overflow: hidden;
}
.model-card:hover,
.model-card.selected {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(253,200,4,.2);
}
.model-card.selected { background: #fff8e8; }

.model-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    padding: 6px;
}
.model-preview.is-window { background: #e8f0ff; }
.model-preview.is-door   { background: #F0F0F0; }
.model-preview svg {
    width: 100%;
    height: 100px;
    overflow: visible;
}

.model-name {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--primary);
    border-top: 1px solid #f0f0f0;
}

/* برچسب نوع (پنجره / در) */
.model-type-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: bold;
}
.model-type-tag.tag-preset { background: #28a745; color: #fff; }
.model-type-tag.tag-window { background: #6780fb; color: #fff; }
.tag-window-alt            { background: #a8c8ff; color: #0058DD; } /* نسخه روشن‌تر */
.tag-door                  { background: #fffde7; color: #7a4a1e; }

.open-type-tag {
    position: absolute;
    bottom: 4px;
    left: 4px;
    font-size: 9px;
    color: #666;
    background: rgba(255,255,255,0.85);
    padding: 1px 5px;
    border-radius: 4px;
}


/* ══════════════════════════════════════════════
   ۶. استپ ۲ — ادیتور و تنظیمات
══════════════════════════════════════════════ */

/* ── کانتینر اصلی ── */
.editor-wrap,
.settings-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

/* ── ناحیه نمایش SVG ── */
.svg-wrap {
    background: #F0F0F0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 260px;
    height: auto;
}

#main-svg {
    max-width: 100%;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.15));
    overflow: visible;
}

/* انیمیشن pulse هنگام تغییر نوع */
@keyframes svgPulse {
    0%   { opacity: 0; }
    40%  { opacity: 1; }
    100% { opacity: 0; }
}
#main-svg.type-changed .shape-halo {
    animation: svgPulse 0.55s ease-out forwards;
}
.shape-halo {
    opacity: 0;
    pointer-events: none;
}

/* لیبل نوع بخش */
#section-type-label { transform-origin: center; }
#section-type-label.popping {
    animation: labelPop 0.35s cubic-bezier(.34,1.56,.64,1) forwards;
}

/* toast تغییر نوع بخش */
#section-type-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0.6);
    background: rgba(15,21,32,0.92);
    border-radius: 16px;
    padding: 16px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255,255,255,0.1);
    min-width: 120px;
    transition: none;
}
#section-type-toast.toast-show {
    animation: toastAnim 1.8s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes toastAnim {
    0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.55); }
    15%  { opacity: 1; transform: translate(-50%,-50%) scale(1.05); }
    25%  { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    70%  { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(0.9); }
}
#section-type-toast svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
#toast-label  { font-size: 14px; font-weight: bold; color: #fff; font-family: Tahoma, sans-serif; white-space: nowrap; letter-spacing: 0.3px; }
#toast-badge  { font-size: 11px; color: rgba(255,255,255,0.6); font-family: Tahoma, sans-serif; }

/* عنوان بخش تنظیمات */
.settings-wrap h6 {
    color: var(--primary);
    font-weight: bold;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

/* دکمه‌های گزینه */
.opt-btn {
    border: 2px solid #BFC1C6;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.opt-btn:hover,
.opt-btn.selected { border-color: var(--accent); background: #fff8e8; }

/* ۲ ستونی در دسکتاپ برای پروفیل/شیشه/یراق/آپشن */
#profile-opts,
#glass-opts,
#hardware-opts,
.settings-wrap .d-flex.flex-column.mb-4 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
}
#extra-opts,
.settings-wrap .mb-4:has(.chk-opt) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
}

/* دکمه نمایش بیشتر */
.show-more-btn {
    border: 1px dashed #BFC1C6;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 12px;
    color: #888;
    background: transparent;
    text-align: center;
    transition: all .2s;
    font-family: inherit;
}
.show-more-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #fff8e8;
}

/* نقطه‌های رنگ (دایره‌ای) */
.color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all .2s;
}
.color-dot.selected,
.color-dot:hover { border-color: var(--accent); transform: scale(1.2); }

/* گزینه چک‌مارک */
.chk-opt {
    border: 1px solid #BFC1C6;
    border-radius: 7px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.chk-opt.selected { border-color: var(--accent); background: #fff8e8; }

/* نام پروژه — ورودی ساده */
.project-name-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    direction: rtl;
    gap: 12px;
}

.project-name-label {
    font-size: 18px;
    font-weight: bold;
    color: #1a6fc4;
    white-space: nowrap;
}

.project-name-input {
    flex: 1;
    border: none;
    border-bottom: 2px solid #1a6fc4;
    outline: none;
    font-size: 15px;
    color: #1a6fc4;
    background: transparent;
    padding: 4px 8px;
    font-family: inherit;
}
.project-name-input::placeholder { color: #90b8e8; font-size: 13px; }
.project-name-input:focus { border-bottom-color: #0058DD; }

/* تایتل ادیتور */
#editor-title { font-size: 16px; }

/* دکمه‌های اکشن بالای ادیتور */
.action-btns-wrap {
    flex-wrap: nowrap;
    gap: 12px !important;
}

.action-btn-guide,
.action-btn-model {
    padding: 8px 16px !important;
    font-size: 13px !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.action-btn-guide {
    background: #0058DD;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s;
}

/* دکمه بازنشانی (reset) */
.action-btn-reset {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0058DD;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s;
}
.action-btn-reset:hover { background: #FDC804; }

/* نسخه dark (در combo-editor-mode) */
body.combo-editor-mode .action-btn-reset {
    padding: 6px 10px;
    font-size: 11px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}
body.combo-editor-mode .action-btn-reset:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* دکمه‌های جهت بازشو */
.direction-btn {
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: 2px solid #BFC1C6 !important;
    background: #fff !important;
    color: #333 !important;
    font-family: inherit !important;
    min-width: 80px !important;
}
.direction-btn:hover {
    border-color: var(--accent) !important;
    background: #fff8e8 !important;
}
.direction-btn.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* نسخه dark جهت */
body.combo-editor-mode .direction-btn {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(56,189,248,0.2) !important;
    color: #cbd5e1 !important;
}
body.combo-editor-mode .direction-btn:hover {
    background: rgba(56,189,248,0.1) !important;
    border-color: rgba(56,189,248,0.4) !important;
}
body.combo-editor-mode .direction-btn.selected {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9) !important;
    border-color: #38bdf8 !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(56,189,248,0.3) !important;
}

/* کارت‌های انتخاب رنگ */
.color-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
    direction: rtl;
}

.color-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.color-card:hover     { border-color: #0058DD; background: #fafbff; }
.color-card.selected  { border-color: #0058DD; background: #0058DD; }

.color-card-dot {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    border: 2px solid #444;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.color-card.selected .color-card-dot {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.color-card-name {
    font-size: 11px;
    font-weight: 600;
    color: #444;
    flex: 1;
    text-align: right;
    transition: color 0.2s ease;
}
.color-card.selected .color-card-name { color: #fff; }


/* ══════════════════════════════════════════════
   ۷. باکس قیمت زنده (استپ ۲) — حذف شد، جای خود را به total-price-card داد
══════════════════════════════════════════════ */
/* .price-box حذف شد */
#disp-breakdown { display: none; }
#disp-total     { display: none !important; }

/* ══════════════════════════════════════════════
   ۷ب. کارت قیمت تفکیکی جدید
══════════════════════════════════════════════ */
.total-price-card {
    display: none; /* تا وقتی قیمت محاسبه نشده مخفی باشه */
    background: #fff;
    border: 1.5px solid #e0e7f3;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,88,221,0.07);
}

/* ردیف‌های تفکیکی پروفیل / شیشه / ... */
.tpc-rows {
    padding: 10px 14px 6px;
}
.tpc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #eef2f8;
    font-size: 12px;
    color: #444;
}
.tpc-row:last-child { border-bottom: none; }

.tpc-lbl {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 11.5px;
    min-width: 80px;
}
.tpc-lbl i {
    width: 14px;
    text-align: center;
    color: #0058DD;
    font-size: 10px;
}
.tpc-val {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 12px;
    text-align: left;
}

/* خط جداکننده */
.tpc-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #0058DD 30%, #FDC804 70%, transparent);
    margin: 0 10px;
}

/* ردیف قیمت کل */
.tpc-total-row {
    background: linear-gradient(135deg, #0a1628 0%, #0058DD 100%);
    padding: 14px 16px 10px;
    text-align: center;
    color: #fff;
    position: relative;
}
.tpc-formula {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}
.tpc-total-val {
    font-size: 32px; /* افزایش سایز فونت */
    font-weight: 900; /* ضخیم‌تر */
    color: #FDC804;
    text-shadow: 
        0 0 20px rgba(253, 200, 4, 0.5),
        0 0 40px rgba(253, 200, 4, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    word-break: break-word;
    transition: all 0.3s ease;
    letter-spacing: 1px; /* فاصله بین حروف */
}
/* انیمیشن چشمک‌زن ملایم برای جلب توجه */
@keyframes priceGlow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(253, 200, 4, 0.5), 0 0 40px rgba(253, 200, 4, 0.2);
    }
    50% { 
        text-shadow: 0 0 30px rgba(253, 200, 4, 0.8), 0 0 60px rgba(253, 200, 4, 0.4), 0 0 80px rgba(253, 200, 4, 0.2);
    }
}
.tpc-total-val {
    animation: priceGlow 2.5s ease-in-out infinite;
}
.tpc-note {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

/* price-row برای سازگاری با کدهای قدیمی که ممکنه باشه */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    border-bottom: none;
    gap: 6px;
}
.price-row span:first-child {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    white-space: nowrap;
}
.price-row span:last-child {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
}

/* قیمت شناور بالای صفحه (هنگام اسکرول) */
.floating-price-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #0058DD 0%, #1a2a6c 100%);
    padding: 10px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 2px solid #FDC804;
    align-items: center;
    justify-content: center;
    gap: 12px;
    direction: rtl;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.floating-price-bar .fp-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
.floating-price-bar .fp-value {
    font-size: 20px;
    font-weight: 800;
    color: #FDC804;
    text-shadow: 0 2px 8px rgba(253,200,4,0.3);
    white-space: nowrap;
    letter-spacing: -0.3px;
}
.floating-price-bar .fp-arrow {
    color: #FDC804;
    font-size: 14px;
    animation: bounceDown 1.5s ease-in-out infinite;
    margin-right: 4px;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0);  }
    50%       { transform: translateY(6px); }
}

/* قیمت فاکتور */
#factor-total {
    font-size: 16px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}


/* ══════════════════════════════════════════════
   ۸. لیست پروژه‌ها (استپ ۳)
══════════════════════════════════════════════ */
.pro-item {
    background: #fff;
    border: 2px solid #BFC1C6;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color .2s;
}
.pro-item:hover { border-color: #aaa; }

.pro-item-info      { font-size: 13px; color: #444; }
.pro-item-info b    { color: var(--primary); }
.pro-item-price {
    font-weight: bold;
    color: var(--accent);
    font-size: 14px;
    white-space: nowrap;
    margin-right: 12px;
}

.pro-total {
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.pro-total .lbl { font-size: 13px; opacity: .8; }
.pro-total .val {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}


/* ══════════════════════════════════════════════
   ۹. دکمه‌های عمومی
══════════════════════════════════════════════ */
.btn-main {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: all .3s;
    cursor: pointer;
    font-family: inherit;
}
.btn-main:hover { background: #0058DD; }

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: all .3s;
    cursor: pointer;
    font-family: inherit;
}
.btn-accent:hover { background: #e6b400; }

.btn-danger {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

.btn-success {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.btn-fullscreen {
    background: #0058DD;
    border: 2px solid #0058DD;
    color: #fff;
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all .2s;
}
.btn-fullscreen:hover {
    background: #FDC804;
    border-color: #FDC804;
    color: #fff;
}


/* ══════════════════════════════════════════════
   ۱۰. Fullscreen تکی (ادیتور SVG)
══════════════════════════════════════════════ */
.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #fff !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 60px 15px 15px 15px !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.fullscreen-mode #main-svg {
    width: 100% !important;
    height: 100% !important;
    max-height: calc(100vh - 80px) !important;
    object-fit: contain !important;
}

/* دکمه خروج از fullscreen */
.exit-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    background: #ff3b30;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    z-index: 100000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* متن راهنما در fullscreen */
.fs-info-text {
    position: fixed;
    top: 15px;
    right: 15px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #0058dd;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 13px;
    z-index: 100000;
    text-align: right;
    direction: rtl;
    max-width: calc(100vw - 120px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    line-height: 1.6;
}


/* ══════════════════════════════════════════════
   ۱۱. سازنده ترکیب (Combo Builder)
══════════════════════════════════════════════ */

/* بنر ورودی combo builder */
.combo-banner {
    background: linear-gradient(135deg, #0058DD 0%, #1A1A1A 100%);
    border-radius: 14px;
    padding: 0;
    margin-top: 28px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
    border: 2px solid rgba(253,200,4,.3);
    cursor: pointer;
    transition: all .25s;
    display: block;
    width: 100%;
    text-align: right;
    text-decoration: none;
}
.combo-banner:hover {
    border-color: #FDC804;
    box-shadow: 0 6px 32px rgba(253,200,4,.25);
    transform: translateY(-2px);
}
.combo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    gap: 16px;
}
.combo-banner-icon  { font-size: 42px; color: #FDC804; flex-shrink: 0; }
.combo-banner-text h5 { color: #fff; margin: 0 0 4px; font-size: 17px; font-weight: bold; }
.combo-banner-text p  { color: rgba(255,255,255,.6); margin: 0; font-size: 12px; }
.combo-banner-arrow {
    background: #FDC804;
    color: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform .2s;
}
.combo-banner:hover .combo-banner-arrow { transform: scale(1.15); }

/* ── کانتینر اصلی combo ── */
.combo-builder {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
    margin-top: 20px;
}

/* اوورلی فول‌اسکرین */
.combo-fs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0f1520;
    flex-direction: column;
}
.combo-fs-overlay.open { display: flex; }

/* ── نوار بالای combo ── */
.combo-fs-bar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    border-bottom: 1px solid rgba(56,189,248,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 1px 0 rgba(56,189,248,0.1) inset;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 20px;
    flex-wrap: nowrap;
    min-height: 52px;
    position: relative;
    z-index: 10001;
}

/* عنوان با گرادیانت متنی */
.combo-fs-bar h6 {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    font-size: 15px;
    white-space: nowrap;
}

/* ردیف‌های ساختار combo-bar */
.combo-fs-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.combo-fs-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.combo-fs-mid-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.combo-fs-bot-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.combo-fs-bot-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* باکس قیمت در نوار combo */
.combo-price-box {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56,189,248,0.2);
    border-radius: 12px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 20px rgba(56,189,248,0.05) inset;
}
.combo-price-box .price-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#cb-total-display {
    font-size: 15px;
    font-weight: bold;
    color: #38bdf8;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(56,189,248,0.3);
}

/* دکمه‌های نوار combo */
.btn-trash {
    background: rgba(239,68,68,0.2);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.btn-trash:hover {
    background: rgba(239,68,68,0.4);
    box-shadow: 0 0 20px rgba(239,68,68,0.3);
}

.btn-close-panel {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-close-panel:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.btn-invoice {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(16,185,129,0.3), 0 0 30px rgba(16,185,129,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.btn-invoice:hover {
    box-shadow: 0 6px 24px rgba(16,185,129,0.5), 0 0 40px rgba(16,185,129,0.2);
    transform: translateY(-2px);
    background: #219a52;
}

/* دکمه‌های انتخاب/جابجایی */
.btn-mode {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #444;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-mode:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.btn-mode.active {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    border-color: #38bdf8;
    color: #0f172a;
    box-shadow: 0 0 20px rgba(56,189,248,0.3);
}

/* دکمه‌های زوم */
.btn-zoom-in-btn {
    background: rgba(16,185,129,0.2);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 8px;
    color: #fff;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
}
.btn-zoom-in-btn:hover {
    background: rgba(16,185,129,0.4);
    box-shadow: 0 0 20px rgba(16,185,129,0.3);
}

.btn-zoom-out-btn {
    background: rgba(251,146,60,0.2);
    border: 1px solid rgba(251,146,60,0.3);
    border-radius: 8px;
    color: #fff;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
}
.btn-zoom-out-btn:hover {
    background: rgba(251,146,60,0.4);
    box-shadow: 0 0 20px rgba(251,146,60,0.3);
}

/* دکمه راهنما */
.btn-help-btn {
    background: rgba(139,92,246,0.2);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 8px;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}
.btn-help-btn:hover {
    background: rgba(139,92,246,0.4);
    box-shadow: 0 0 20px rgba(139,92,246,0.3);
}

/* ─ toolbarهای شناور روی canvas (فقط دسکتاپ) ─ */
#cb-mode-toolbar,
#cb-left-toolbar { display: none !important; }

/* ── بدنه combo ── */
.combo-fs-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* ── canvas ── */
.combo-canvas-area {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
    background: linear-gradient(135deg, #0a0f1a 0%, #111827 30%, #0f172a 60%, #0a0f1a 100%);
}

.combo-canvas {
    position: absolute;
    inset: 0;
    min-width: 1500px;
    min-height: 1000px;
    transform-origin: top left;
    margin: 0 auto;
    background-image: radial-gradient(circle, rgba(56,189,248,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    overflow: hidden;
}
.combo-canvas.drag-over { background-color: rgba(253,200,4,.05); }

/* راهنمای drop */
.combo-drop-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: rgba(56,189,248,0.4);
    pointer-events: none;
}
.combo-drop-hint i {
    font-size: 56px;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(56,189,248,0.2);
}
.combo-drop-hint span { font-size: 14px; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ── آیتم‌های روی canvas ── */
.c-item {
    position: absolute;
    cursor: move;
    user-select: none;
    touch-action: none;
    transition: box-shadow 0.2s ease;
}

.c-frame {
    border: none;
    border-radius: 0;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    overflow: visible;
    padding: 0;
}
.c-item.is-door .c-frame    { background: transparent; }
.c-item.selected .c-frame {
    outline: 2px solid #38bdf8;
    box-shadow: 0 0 20px rgba(56,189,248,0.4), 0 0 40px rgba(56,189,248,0.1);
    border-radius: 4px;
}
.c-item.snapping .c-frame {
    outline: 2px solid #27ae60;
    box-shadow: 0 0 0 3px rgba(39,174,96,.4);
}

/* دکمه حذف آیتم */
.c-remove {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
    line-height: 1;
}
.c-item:hover .c-remove,
.c-item.selected .c-remove { opacity: 1; }
.c-remove:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(239,68,68,0.6);
}

/* دستگیره resize */
.c-resize {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 10;
    background: #0058DD;
    border: 2px solid #fff;
    border-radius: 3px;
    opacity: 0;
    transition: opacity .2s;
}
.c-item.selected .c-resize { opacity: 1; }
.c-resize-br {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
    background: linear-gradient(135deg, #0058DD 50%, #fff 50%);
}
.c-resize-br::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-top:  5px solid transparent;
    border-right: 5px solid #fff;
    border-bottom: 5px solid #fff;
    opacity: 0.8;
}

/* دکمه تنظیمات روی آیتم */
.c-settings-btn {
    display: none;
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(56,189,248,0.9);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 15;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
    transition: all 0.3s ease;
}
.c-settings-btn:hover {
    background: #38bdf8;
    box-shadow: 0 4px 16px rgba(56,189,248,0.5);
}

.c-label { display: none; }

/* ── کتابخانه مدل‌ها (سمت راست) ── */
.combo-library {
    width: 200px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow-y: auto;
    padding: 10px;
    border-left: 1px solid rgba(56,189,248,0.15);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    transition: transform .3s;
}

.combo-library-title {
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(56,189,248,0.2);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(56,189,248,0.2);
}

.lib-sep {
    font-size: 10px;
    color: rgba(56,189,248,0.6);
    font-weight: bold;
    padding: 5px 0 2px;
    border-top: 1px solid rgba(56,189,248,0.1);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lib-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 10px;
    cursor: grab;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
    background: rgba(255,255,255,0.03);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    user-select: none;
    color: rgba(255,255,255,0.7);
}
.lib-item:hover {
    background: rgba(56,189,248,0.1);
    border-color: rgba(56,189,248,0.3);
    box-shadow: 0 4px 16px rgba(56,189,248,0.1), 0 0 30px rgba(56,189,248,0.05);
    transform: translateX(-4px);
}
.lib-item:active   { cursor: grabbing; }
.lib-item.dragging { opacity: .4; }
.lib-item svg      { border-radius: 3px; flex-shrink: 0; }

.lib-item-name {
    font-size: 11px;
    flex: 1;
    line-height: 1.3;
    font-weight: 500;
}
.lib-item:hover .lib-item-name { color: #38bdf8; }

/* اسکرول‌بار کتابخانه */
.combo-library::-webkit-scrollbar       { width: 4px; }
.combo-library::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
.combo-library::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #38bdf8, #818cf8);
    border-radius: 2px;
}

/* ── پنل مشخصات آیتم انتخابی (چپ) ── */
.combo-props-panel {
    width: 260px;
    flex-shrink: 0;
    background: #1A1A1A;
    overflow-y: auto;
    padding: 12px;
    border-right: 1px solid #0058DD;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cp-section      { margin-bottom: 12px; }
.cp-title {
    font-size: 11px;
    font-weight: bold;
    color: #FDC804;
    border-bottom: 1px solid #0058DD;
    padding-bottom: 4px;
    margin-bottom: 8px;
}
.cp-label {
    font-size: 10px;
    color: #778;
    display: block;
    margin-bottom: 2px;
    margin-top: 6px;
}
.cp-input {
    width: 100%;
    background: #1A1A1A;
    border: 1px solid #0058DD;
    color: #BFC1C6;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 12px;
}
.cp-input:focus { outline: none; border-color: #FDC804; }

.cp-opt-btn {
    border: 1px solid #0058DD;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 11px;
    color: #aaa;
    background: #1A1A1A;
    transition: all .15s;
    display: block;
    width: 100%;
    text-align: right;
    margin-bottom: 4px;
    font-family: inherit;
}
.cp-opt-btn:hover,
.cp-opt-btn.sel { border-color: #FDC804; background: #1A1A1A; color: #FDC804; }

.cp-color-row    { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
}
.cp-color-dot.sel,
.cp-color-dot:hover { border-color: #FDC804; transform: scale(1.2); }

.cp-chk {
    border: 1px solid #0058DD;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 11px;
    color: #aaa;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.cp-chk.sel { border-color: #4caf50; background: #0a2010; color: #4caf50; }

.cp-price-box {
    background: linear-gradient(135deg, #0058DD, #1A1A1A);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 10px;
}
.cp-price-box .price-val { font-size: 18px; font-weight: bold; color: #FDC804; }
.cp-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255,255,255,.5);
    padding: 2px 0;
}

.cp-no-sel { color: #1A1A1A; font-size: 12px; text-align: center; padding: 30px 10px; }

.cp-add-btn {
    background: #FDC804;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 7px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    margin-top: auto;
    transition: background .2s;
}
.cp-add-btn:hover { background: #e6b400; }

.cp-del-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    margin-top: 6px;
}

/* toolbar پایین موبایل combo (پیش‌فرض مخفی) */
.combo-mob-toolbar { display: none !important; }

.mob-tb-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}
.mob-tb-btn.active {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56,189,248,0.3);
}

/* جعبه شیشه‌ای متحرک (anim-glass-box) */
#anim-glass-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 250px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}


/* ══════════════════════════════════════════════
   ۱۲. پیام شناور راهنمای مقاله
══════════════════════════════════════════════ */
.article-floating-msg {
    position: fixed;
    top: -150px;
    right: 20px;
    z-index: 99999;
    background: #fff;
    border-radius: 18px;
    max-width: 420px;
    direction: rtl;
    transition: top 0.6s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.2),
        0 0 0 1px rgba(0,88,221,0.08),
        0 0 40px rgba(0,88,221,0.06);
    cursor: pointer;
    overflow: visible;
}
.article-floating-msg.show { top: 90px; }
.article-floating-msg.hide { top: -200px; }

.article-floating-msg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: linear-gradient(90deg, #0058DD 0%, #FDC804 50%, #1a1a1a 100%);
    border-radius: 0 0 12px 12px;
}
.article-floating-msg:hover {
    box-shadow:
        0 24px 70px rgba(0,0,0,0.25),
        0 0 0 1px rgba(0,88,221,0.15),
        0 0 50px rgba(0,88,221,0.1);
    transform: translateY(-2px);
}

.afm-glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(253,200,4,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.afm-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    position: relative;
}

.afm-icon-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    min-width: 52px;
    flex-shrink: 0;
}
.afm-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0058DD 0%, #003399 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #FDC804;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(0,88,221,0.3);
}
.afm-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    background: transparent;
    border: 2px solid rgba(0,88,221,0.2);
    animation: afmPulse 2s ease-in-out infinite;
}
@keyframes afmPulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.12); opacity: 0; }
}

.afm-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.afm-title {
    font-size: 11px;
    font-weight: 700;
    color: #0058DD;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.afm-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
    display: block;
}

.afm-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #FDC804;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.article-floating-msg:hover .afm-arrow { transform: translateX(-4px); }

.afm-close-btn {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 3px solid #fff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 10;
}
.afm-close-btn:hover {
    background: #e74c3c;
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 6px 24px rgba(231,76,60,0.5);
}


/* ══════════════════════════════════════════════
   ۱۳. هدر با عکس پس‌زمینه (page-title)
══════════════════════════════════════════════ */
.page-title-area-enhanced {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    direction: rtl;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.page-title-bg {
    position: absolute;
    inset: 0;
    background: url('/static/images/33.png') center 30% / cover no-repeat;
    background-color: #1a2a6c;
    z-index: 0;
}

.page-title-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 20px;
}

.page-title-content-enhanced {
    max-width: 800px;
    margin: 0 auto;
}

.page-title-heading-enhanced {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.page-title-sub-enhanced {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}


/* ══════════════════════════════════════════════
   ۱۴. فوتر
══════════════════════════════════════════════ */
.footer-area_price {
    direction: rtl;
    text-align: right;
}
.footer-area_price .pl-5 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.single-footer-widget ul {
    padding-right: 0 !important;
    margin-right: 0 !important;
}
.single-footer-widget ul li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: right;
    margin-bottom: 12px;
    direction: rtl;
    position: relative;
    padding: 0;
}
.single-footer-widget ul li i {
    position: static;
    float: none;
    margin-left: 10px;
    margin-right: 0;
    color: inherit;
}
.single-footer-widget ul li a,
.single-footer-widget ul li span {
    unicode-bidi: embed;
    direction: ltr;
    display: inline-block;
}


/* ══════════════════════════════════════════════
   ۱۵. کارت‌های موبایل (blog / customer / colleague / admin)
══════════════════════════════════════════════ */
.blog-card-mobile,
.customer-card-mobile,
.colleague-card-mobile,
.admin-card-mobile {
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card-mobile:hover,
.customer-card-mobile:hover,
.colleague-card-mobile:hover,
.admin-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.adm-pick-item { transition: background 0.2s; }
.adm-pick-item:hover { background: rgba(0,88,221,0.05); }


/* ══════════════════════════════════════════════
   ۱۶. منوی پایین موبایل (mobile-bottom-nav)
   — فقط در موبایل نمایش داده می‌شه
══════════════════════════════════════════════ */
.mobile-bottom-nav { display: none; }


/* ══════════════════════════════════════════════
   ۱۷. ریسپانسیو — موبایل زیر ۷۶۸px
══════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── هدر ── */
    .uh-inner  { display: none !important; }
    .uh-top-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 15px;
        background: #1c2d72;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .uh-top-mobile .uh-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }
    .uh-top-mobile .uh-logo a {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }
    .uh-top-mobile .uh-logo img { height: 28px; width: auto; }
    .uh-top-mobile .uh-steps {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .uh-top-mobile .uh-step {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 1.5px solid #fff;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .uh-top-mobile .uh-step.active { background: #fff; }
    .uh-top-mobile .uh-step-num    { font-size: 10px; color: #fff; font-weight: bold; }
    .uh-top-mobile .uh-step.active .uh-step-num { color: #1c2d72; }
    .uh-top-mobile .uh-step-line   { width: 14px; height: 1.5px; background: #fff; opacity: 0.6; }
    .uh-top-mobile .uh-step-label  { display: none; }

    /* فضای body برای هدر و فوتر ثابت */
    body {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    /* ── منوی پایین ── */
    .mobile-bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 14px 5px;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: rgb(78,78,78);
        font-size: 10px;
        flex: 1;
        transition: opacity 0.2s;
    }
    .mobile-bottom-nav .nav-item i { font-size: 16px; color: rgb(78,78,78); }
    .mobile-bottom-nav .nav-item:active { opacity: 0.6; }

    /* ── کارت قیمت تفکیکی در موبایل ── */
    .total-price-card {
        border-radius: 12px;
        margin-bottom: 12px;
    }
    .tpc-total-val { 
        font-size: 32px !important; 
        font-weight: 900 !important;
        text-shadow: 0 0 30px rgba(253,200,4,0.6) !important;
    }
    
    /* کل باکس قیمت رو هم بزرگتر کن */
    .tpc-total-row {
        padding: 20px 16px 14px !important;
    }
    
    .tpc-formula {
        font-size: 12px !important;
    }
    .tpc-row       { font-size: 11px; }
    .tpc-lbl       { font-size: 11px; }
    .tpc-formula   { font-size: 9px; }

    .floating-price-bar  { padding: 8px 16px; gap: 8px; }
    .floating-price-bar .fp-label  { font-size: 11px; }
    .floating-price-bar .fp-value  { font-size: 17px; }
    .floating-price-bar .fp-arrow  { font-size: 12px; }

    #factor-total { font-size: 14px !important; }
    .pro-item-price { font-size: 11px !important; white-space: nowrap; }
    .pro-total .val { font-size: 12px !important; }

    /* ── ادیتور مدل ── */
    .editor-wrap > .d-flex.justify-content-between.align-items-center.mb-3 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .editor-wrap h5 {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    #editor-title { text-align: center !important; font-size: 14px !important; }

    .project-name-wrapper { gap: 8px; }
    .project-name-label   { font-size: 12px; }
    .project-name-input   { width: 140px; font-size: 12px; padding: 5px 10px; }

    .action-btns-wrap {
        justify-content: center !important;
        width: 100% !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    .action-btn-guide,
    .action-btn-reset,
    .action-btn-model {
        padding: 6px 10px !important;
        font-size: 11px !important;
        flex: 0 0 auto !important;
    }
    .action-btn-guide i,
    .action-btn-reset i,
    .action-btn-model i { font-size: 13px; }

    /* گزینه‌های پروفایل/شیشه/یراق — ۲ ستونی در موبایل */
    #profile-opts,
    #glass-opts,
    #hardware-opts,
    .settings-wrap .d-flex.flex-column.mb-4 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
    .opt-btn {
        font-size: 12px !important;
        padding: 8px 8px !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* آپشن‌ها — ۲ ستونی در موبایل */
    #extra-opts,
.settings-wrap .mb-4:has(.chk-opt) {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
    .chk-opt {
        font-size: 12px !important;
        padding: 8px 8px !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    /* حذف دکمه "نمایش موارد بیشتر" در موبایل */
    .show-more-btn { display: none !important; }
    .extra-opt     { display: flex !important; }

    /* SVG بزرگ‌تر */
    .svg-wrap {
        padding: 25px 15px 35px 15px !important;
        min-height: 380px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    #main-svg {
        width: 100% !important;
        height: auto !important;
        min-height: 320px !important;
        max-width: 100% !important;
    }

    /* بخش وادار */
    .divider-tools {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .divider-tools > span                 { display: none !important; }
    .divider-tools > div[style*="width: 8px"] { display: none !important; }
    .divider-tools button[draggable="true"] {
        flex: 0 0 auto !important;
        min-width: auto !important;
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    .divider-tools + p.text-muted,
    .divider-tools ~ p.text-muted        { display: none !important; }
    .svg-wrap + p.text-muted,
    .svg-wrap ~ p.text-muted             { font-size: 9px !important; opacity: 0.6 !important; }

    /* رنگ‌ها */
    .settings-wrap .d-flex.flex-wrap.gap-2 {
        justify-content: center !important;
        gap: 8px !important;
    }
    .color-dot { width: 30px !important; height: 30px !important; }

    .color-cards-grid { gap: 5px; }
    .color-card       { padding: 7px 8px; border-radius: 22px; }
    .color-card-dot   { width: 20px; height: 20px; min-width: 20px; }
    .color-card-name  { font-size: 10px; }

    /* دکمه‌های جهت — ۲ ستونی */
    #direction-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    #direction-buttons .direction-btn {
        min-width: auto !important;
        width: 100% !important;
        flex: none !important;
        text-align: center !important;
    }

    #add-to-project-btn,
    #combo-edit-actions { width: 100% !important; }

    /* ابعاد کنار هم */
    .editor-wrap .row.g-3.mb-3:first-of-type        { display: flex !important; gap: 8px !important; }
    .editor-wrap .row.g-3.mb-3:first-of-type .col-6 { flex: 1 !important; }

    /* ── کارت‌های ادمین ── */
    .admin-card-mobile     { padding: 12px !important; }
    #add-admin-form        { padding: 14px !important; margin: 12px !important; }
    #add-admin-form .add-inp { font-size: 12px !important; }
    .blog-card-mobile h4   { font-size: 0.9rem !important; }
    .btn-primary,
    .blog-card-mobile button { padding: 6px 12px !important; font-size: 0.7rem !important; }
    .customer-card-mobile .customer-stats { flex-direction: column; gap: 8px; }
    .colleague-card-mobile button { font-size: 11px !important; padding: 8px !important; }

    /* ── combo builder موبایل ── */
    .combo-fs-body     { flex-direction: column !important; }
    .combo-canvas-area {
        order: 1 !important;
        flex: 1 !important;
        min-height: 0 !important;
        padding-top: 50px !important;
        overflow: auto !important;
    }
    .combo-library {
        order: 2 !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 90px !important;
        max-height: 110px !important;
        z-index: 10;
        transform: none !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,.4);
        border-left: none !important;
        border-top: 2px solid #FDC804;
        display: flex !important;
        flex-direction: column !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        padding: 4px 6px !important;
    }
    .combo-library.mob-open { transform: none !important; }
    .combo-library .combo-library-title {
        flex-shrink: 0;
        padding: 2px 8px;
        font-size: 10px;
        margin-bottom: 2px;
    }

    #lib-items-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 2px 4px !important;
        margin: 0 !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        flex: 1 !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        height: auto !important;
        align-items: stretch !important;
        scroll-behavior: smooth !important;
    }
    #lib-items-container::-webkit-scrollbar       { height: 3px; }
    #lib-items-container::-webkit-scrollbar-track { background: transparent; }
    #lib-items-container::-webkit-scrollbar-thumb {
        background: rgba(253,200,4,.4);
        border-radius: 3px;
    }

    .lib-sep { display: none !important; }

    .lib-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 70px !important;
        max-width: 85px !important;
        width: auto !important;
        flex-shrink: 0 !important;
        padding: 5px 4px !important;
        gap: 2px !important;
        margin: 0 !important;
        font-size: 10px;
        border-radius: 8px !important;
        white-space: normal !important;
        cursor: pointer !important;
    }
    .lib-item svg       { width: 34px !important; height: 28px !important; flex-shrink: 0; }
    .lib-item-name      { font-size: 8px !important; text-align: center !important; line-height: 1.2 !important; word-break: break-word; }

    /* combo props panel موبایل */
    .combo-props-panel {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 10;
        transform: translateX(-100%);
        box-shadow: 4px 0 20px rgba(0,0,0,.4);
        width: 260px;
    }
    .combo-props-panel.mob-open { transform: translateX(0); }

    /* نوار بالای combo موبایل */
    .combo-fs-bar {
        display: flex !important;
        flex-direction: column !important;
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    .combo-fs-top-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    .combo-fs-top-row h6 {
        font-size: 13px !important;
        text-align: right !important;
        background: none !important;
        -webkit-text-fill-color: #fff !important;
    }
    .combo-fs-top-actions {
        flex-direction: row !important;
        margin-right: auto !important;
    }
    .combo-fs-mid-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .combo-price-box {
        flex-direction: row !important;
        flex: 1 !important;
        padding: 6px 12px !important;
        border-radius: 7px !important;
    }
    .combo-price-box .price-label { font-size: 11px !important; }
    #cb-total-display              { font-size: 14px !important; overflow: visible !important; max-width: 100% !important; }
    .combo-fs-bot-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    .combo-fs-bot-group { flex-direction: row !important; }

    .btn-trash        { padding: 5px 9px !important;  font-size: 13px !important; }
    .btn-close-panel  { padding: 5px 10px !important; font-size: 11px !important; }
    .btn-invoice      { padding: 7px 12px !important; font-size: 12px !important; flex-shrink: 0 !important; }
    .btn-mode         { padding: 5px 10px !important; font-size: 11px !important; }
    .btn-zoom-out-btn,
    .btn-zoom-in-btn  { padding: 5px 8px !important;  font-size: 13px !important; }
    .btn-help-btn     { padding: 5px 10px !important; font-size: 11px !important; }

    #cb-mode-toolbar,
    #cb-left-toolbar  { display: none !important; }

    /* فوتر جمع‌وجور */
    .footer-area_price      { padding: 20px 0 10px 0 !important; }
    .footer-area_price h3   { font-size: 14px !important; margin-bottom: 8px !important; }
    .single-footer-widget   { margin-bottom: 12px !important; }
    .single-footer-widget ul li,
    .single-footer-widget ul li a { font-size: 11px !important; margin-bottom: 4px !important; }
    .footer-contact-info li {
        display: flex !important;
        align-items: flex-start !important;
        gap: 6px !important;
        font-size: 11px !important;
        line-height: 1.6 !important;
    }
    .footer-contact-info li i { font-size: 10px !important; margin-top: 3px !important; min-width: 12px !important; }
    .footer-area_price .col-lg-3:empty,
    .footer-area_price .col-md-6:empty { display: none !important; }

    /* عنوان صفحه */
    .page-title-area-enhanced { min-height: 140px !important; align-items: center !important; }
    .page-title-container     { padding: 12px 16px; }
    .page-title-heading-enhanced { font-size: 22px !important; margin-bottom: 6px; }
    .page-title-sub-enhanced     { font-size: 15px !important; }

    /* پیام شناور مقاله */
    .article-floating-msg {
        right: 8px;
        left: 8px;
        max-width: none;
        border-radius: 16px;
    }
    .article-floating-msg.show { top: 80px; }
    .afm-inner       { padding: 14px 16px; gap: 10px; }
    .afm-icon-wrap,
    .afm-icon        { width: 44px; height: 44px; min-width: 44px; }
    .afm-icon        { border-radius: 12px; font-size: 19px; }
    .afm-title       { font-size: 10px; }
    .afm-text        { font-size: 12px; }
    .afm-arrow       { width: 28px; height: 28px; min-width: 28px; font-size: 12px; }
    .afm-close-btn   { top: -10px; left: -10px; width: 28px; height: 28px; font-size: 12px; }

    /* top-bar قدیمی */
    .step-label        { display: none; }
    .step-connector    { width: 20px; }
    .step-item         { padding: 8px 10px; }
    .av-info           { display: none; }
    .user-avatar-btn   { padding: 0 12px; }
    .logout-btn span   { display: none; }

    /* کارت‌های موبایل */
    .blog-card-mobile,
    .customer-card-mobile,
    .colleague-card-mobile { padding: 12px !important; }

    /* کارت موبایل پس‌زمینه */
    .کلاس-کارت-مدل-شما {
        background: rgba(255,255,255,0.6) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255,255,255,0.4) !important;
    }
}


/* ══════════════════════════════════════════════
   ۱۸. ریسپانسیو — تبلت ۹۰۰px
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .c-settings-btn    { display: flex !important; }
    .combo-props-panel { width: 220px; }
}


/* ══════════════════════════════════════════════
   ۱۹. ریسپانسیو — موبایل کوچک ۵۷۶px
══════════════════════════════════════════════ */
@media (max-width: 576px) {
    .combo-banner-inner  { padding: 16px 18px; }
    .combo-banner-icon   { font-size: 30px; }
    .combo-banner-text h5 { font-size: 14px; }

    .page-title-area-enhanced   { min-height: 130px !important; }
    .page-title-container       { padding: 10px 12px; }
    .page-title-heading-enhanced { font-size: 20px !important; margin-bottom: 5px; }
    .page-title-sub-enhanced    { font-size: 14px !important; }
}


/* ══════════════════════════════════════════════
   ۲۰. ریسپانسیو — موبایل خیلی کوچک ۴۸۰px
══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .blog-card-mobile     { padding: 12px !important; }
    .blog-card-mobile h4  { font-size: 0.9rem !important; }
    .btn-primary,
    .blog-card-mobile button { padding: 6px 12px !important; font-size: 0.7rem !important; }

    .customer-card-mobile  { padding: 12px !important; }
    .customer-card-mobile .customer-stats { flex-direction: column; gap: 8px; }

    .colleague-card-mobile { padding: 12px !important; }
    .colleague-card-mobile button { font-size: 11px !important; padding: 8px !important; }

    .admin-card-mobile { padding: 12px !important; }
    #add-admin-form    { padding: 14px !important; margin: 12px !important; }
    #add-admin-form .add-inp { font-size: 12px !important; }
}


/* ══════════════════════════════════════════════
   ۲۱. ریسپانسیو — موبایل خیلی کوچک ۴۰۰px
══════════════════════════════════════════════ */
@media (max-width: 400px) {
    .tpc-total-val  { font-size: 28px !important; }
    .pro-item-price    { font-size: 10px !important; }
    .pro-total .val    { font-size: 11px !important; }

    #profile-opts,
    #glass-opts,
    #hardware-opts,
    .settings-wrap .d-flex.flex-column.mb-4,
    #extra-opts,
.settings-wrap .mb-4:has(.chk-opt) {
        grid-template-columns: 1fr 1fr !important;
    }
    .opt-btn,
    .chk-opt { font-size: 10px !important; padding: 6px 4px !important; }

    .color-cards-grid  { grid-template-columns: 1fr 1fr; }

    .uh-nav ul li a    { font-size: 11px; padding: 4px 7px; }
    .uh-logo img       { height: 28px; }
    .uh-step-label     { display: none; }

    .page-title-area-enhanced    { min-height: 120px !important; }
    .page-title-container        { padding: 8px 10px; }
    .page-title-heading-enhanced { font-size: 18px !important; margin-bottom: 4px; }
    .page-title-sub-enhanced     { font-size: 13px !important; }
}


/* ══════════════════════════════════════════════
   ۲۲. ریسپانسیو — دسکتاپ بزرگ ۱۴۰۰px+
══════════════════════════════════════════════ */
@media (min-width: 1400px) {
    .page-title-area-enhanced    { min-height: 380px; }
    .page-title-heading-enhanced { font-size: 38px; }
    .page-title-sub-enhanced     { font-size: 18px; }
}
