/* ============================================
   بیمت بامن — طراحی حرفه‌ای لوکو
   ============================================ */
:root {
    --bb-navbar-h: 70px;
    --bb-green: #2d9d6e;
    --bb-green-dark: #1a6b47;
    --bb-green-light: #e6f4ee;
    --bb-navy: #1a365d;
    --bb-navy-soft: #2d3748;
    --bb-white: #ffffff;
    --bb-bg: #f0f4f8;
    --bb-bg-alt: #e8eef5;
    --bb-border: #e2e8f0;
    --bb-text: #2d3748;
    --bb-text-muted: #718096;
    --bb-shadow: 0 1px 3px rgba(26, 54, 93, 0.08);
    --bb-shadow-lg: 0 10px 40px rgba(26, 54, 93, 0.12);
    --bb-shadow-xl: 0 20px 60px rgba(26, 54, 93, 0.15);
    --bb-radius: 14px;
    --bb-radius-sm: 10px;
    --bb-radius-lg: 20px;
    --bb-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === فونت ایران یکان (اصلی) === */
@font-face {
    font-family: 'IRANYekan';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/IRANYekanWeb(FaNum).woff2') format('woff2');
}
@font-face {
    font-family: 'IRANYekan';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/IRANYekanWeb(FaNum)Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'IRANYekan';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/IRANYekanWeb(FaNum)Bold.woff2?v=2') format('woff2');
}
@font-face {
    font-family: 'IRANYekan';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/IRANYekanWeb(FaNum)Bold.woff2?v=2') format('woff2');
}
@font-face {
    font-family: 'IRANYekan';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/IRANYekanWeb(FaNum)Bold.woff2?v=2') format('woff2');
}

/* === فونت وزیرمتن (پشتیبان) === */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
}

*,
*::before,
*::after {
    font-family: 'IRANYekan', 'Vazirmatn', Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* form elements باید همان فونت ایران یکان (FaNum) را استفاده کنند
   تا ارقام لاتین به‌صورت بصری به فارسی رندر شوند */
input,
select,
textarea,
button,
optgroup,
option {
    font-family: 'IRANYekan', 'Vazirmatn', Tahoma, sans-serif !important;
}

body {
    direction: rtl;
    text-align: right;
    color: var(--bb-text);
    background-color: var(--bb-bg);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--bb-navy);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

a {
    color: var(--bb-green);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--bb-green-dark);
}

html {
    scroll-behavior: smooth;
    /* جلوگیری از پنهان شدن سکشن‌های هدفِ لنگر زیر نوار ثابت */
    scroll-padding-top: calc(var(--bb-navbar-h) + 0.75rem);
}

/* مودال Bootstrap بالای نوار ثابت و ویجت چت (۹۹۹۹) تا تعامل و نمای درست باشد */
.modal {
    z-index: 10060 !important;
}
/* ⛔ حذف backdrop در همه‌ی مودال‌ها (پشت‌زمینهٔ تیره) — مطابق درخواست طراحی */
.modal-backdrop,
.modal-backdrop.show,
.modal-backdrop.fade {
    display: none !important;
    opacity: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
}
/* اطمینان از کلیک‌پذیر بودن body پشت مودال (در صورت stuck شدن backdrop) */
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

.bb-main-offset {
    margin-top: var(--bb-navbar-h);
}

/* ========== انیمیشن‌ها ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.3; }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes drawLine {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bb-animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--bb-transition), transform 0.7s var(--bb-transition);
}
.bb-animated.bb-visible {
    opacity: 1;
    transform: translateY(0);
}
.bb-animated.bb-delay-1 { transition-delay: 0.1s; }
.bb-animated.bb-delay-2 { transition-delay: 0.2s; }
.bb-animated.bb-delay-3 { transition-delay: 0.3s; }
.bb-animated.bb-delay-4 { transition-delay: 0.4s; }
.bb-animated.bb-delay-5 { transition-delay: 0.5s; }

/* ========== نوار بالا ========== */
.bb-navbar {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.65rem 1rem;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s var(--bb-transition);
    z-index: 1050;
}
.bb-navbar.scrolled {
    background: rgba(26, 54, 93, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    padding: 0.45rem 1rem;
}
.bb-navbar .navbar-brand {
    display: flex;
    align-items: center;
}
.bb-navbar .navbar-brand img {
    height: 44px;
    display: block;
    transition: height 0.3s var(--bb-transition);
}
.bb-navbar.scrolled .navbar-brand img {
    height: 38px;
}
.bb-navbar .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--bb-radius-sm);
    transition: all 0.25s var(--bb-transition);
    position: relative;
}
.bb-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--bb-green);
    border-radius: 2px;
    transition: all 0.3s var(--bb-transition);
    transform: translateX(50%);
}
.bb-navbar .nav-link:hover::after,
.bb-navbar .nav-link.active::after {
    width: 60%;
}
.bb-navbar .nav-link:hover,
.bb-navbar .nav-link.active {
    color: var(--bb-white) !important;
    background-color: rgba(255, 255, 255, 0.06);
}
.bb-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.6rem;
}
.bb-navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* ========== دکمه‌ها ========== */
.btn-bb-primary {
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    border: none;
    color: var(--bb-white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 2rem;
    border-radius: var(--bb-radius-sm);
    box-shadow: 0 4px 15px rgba(45, 157, 110, 0.3);
    transition: all 0.3s var(--bb-transition);
    position: relative;
    overflow: hidden;
}
.btn-bb-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-bb-primary:hover {
    color: var(--bb-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 157, 110, 0.4);
}
.btn-bb-primary:hover::before {
    opacity: 1;
}

.btn-bb-navy {
    background: linear-gradient(135deg, var(--bb-navy-soft) 0%, var(--bb-navy) 100%);
    border: none;
    color: var(--bb-white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 2rem;
    border-radius: var(--bb-radius-sm);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.25);
    transition: all 0.3s var(--bb-transition);
}
.btn-bb-navy:hover {
    color: var(--bb-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.35);
}

.btn-bb-outline {
    background: transparent;
    border: 2px solid var(--bb-green);
    color: var(--bb-green);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.8rem;
    border-radius: var(--bb-radius-sm);
    transition: all 0.3s var(--bb-transition);
}
.btn-bb-outline:hover {
    background: var(--bb-green);
    color: var(--bb-white);
    border-color: var(--bb-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 157, 110, 0.3);
}
.btn-bb-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.35);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.8rem;
    border-radius: var(--bb-radius-sm);
    transition: all 0.3s var(--bb-transition);
}
.btn-bb-outline-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    transform: translateY(-2px);
}

/* ========== کارت‌ها ========== */
.bb-card {
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 2rem;
    background: var(--bb-white);
    box-shadow: var(--bb-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.bb-card:hover {
    border-color: rgba(45, 157, 110, 0.25);
    box-shadow: var(--bb-shadow-lg);
    transform: translateY(-3px);
}
.bb-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--bb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.1rem;
}
.bb-card .card-icon.green {
    background: linear-gradient(135deg, var(--bb-green-light) 0%, #d4ede2 100%);
    color: var(--bb-green-dark);
}
.bb-card .card-icon.navy {
    background: linear-gradient(135deg, #e8eef5 0%, #dce4ef 100%);
    color: var(--bb-navy);
}
.bb-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--bb-navy);
    margin-bottom: 0.5rem;
}
.bb-card p {
    color: var(--bb-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.bb-card-modern {
    background: var(--bb-white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bb-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 54, 93, 0.12);
}
.bb-card-modern .card-body { padding: 1.5rem 1.75rem; }
.bb-card-modern .card-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
}
.bb-card-modern .card-value { font-size: 1.75rem; font-weight: 700; color: var(--bb-navy); line-height: 1.2; }
.bb-card-modern .card-label { font-size: 0.9rem; color: var(--bb-text-muted); margin-top: 0.25rem; }
.bb-card-modern .card-sub { font-size: 0.8rem; color: var(--bb-text-muted); margin-top: 0.2rem; }

.bb-dashboard-item-card {
    background: var(--bb-white);
    border: 1px solid var(--bb-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bb-dashboard-item-card:hover {
    border-color: rgba(45, 157, 110, 0.3);
    box-shadow: 0 6px 24px rgba(26, 54, 93, 0.08);
}
.bb-dashboard-item-card .item-badge { font-size: 0.75rem; padding: 0.35rem 0.65rem; border-radius: 8px; font-weight: 600; }
.bb-dashboard-item-card .item-title { font-weight: 600; color: var(--bb-navy); font-size: 1rem; }
.bb-dashboard-item-card .item-meta { font-size: 0.85rem; color: var(--bb-text-muted); }

.bb-chart-box {
    background: var(--bb-white);
    border: 1px solid var(--bb-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(26, 54, 93, 0.06);
}
.bb-chart-box .chart-title { font-size: 1rem; font-weight: 700; color: var(--bb-navy); margin-bottom: 1rem; }

.bb-map-wrap {
    border-radius: var(--bb-radius);
    overflow: hidden;
    box-shadow: var(--bb-shadow-lg);
    border: 1px solid var(--bb-border);
    height: 320px;
    background: var(--bb-bg);
}
.bb-map-wrap .leaflet-container { height: 100%; width: 100%; font-family: inherit; }

/* ========== سکشن‌ها ========== */
.bb-section {
    padding: 5.5rem 0;
    position: relative;
    background: var(--bb-bg);
}
.bb-section-alt {
    background: linear-gradient(180deg, var(--bb-bg) 0%, var(--bb-bg-alt) 100%);
}
.bb-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin-bottom: 0.75rem;
    position: relative;
}
.bb-section-title.has-line::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}
.text-navy {
    color: var(--bb-navy);
}
.bb-section-subtitle {
    color: var(--bb-text-muted);
    font-size: 1.08rem;
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.85;
}

/* ========== هیرو ========== */
.bb-hero-new {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #0a1628 0%, var(--bb-navy) 30%, #152d4a 60%, #0f2744 100%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.bb-hero-new::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 55%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(45, 157, 110, 0.08) 0%, transparent 65%);
    pointer-events: none;
}
.bb-hero-new::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 40%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(45,157,110,0.06) 0%, transparent 55%);
    pointer-events: none;
}

.bb-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.bb-hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    background: #fff;
}
.bb-hero-shape:nth-child(1) {
    width: 400px; height: 400px;
    top: -5%; right: 10%;
    animation: float 8s ease-in-out infinite;
}
.bb-hero-shape:nth-child(2) {
    width: 200px; height: 200px;
    bottom: 15%; left: 5%;
    animation: float 6s ease-in-out infinite 1s;
}
.bb-hero-shape:nth-child(3) {
    width: 120px; height: 120px;
    top: 40%; right: 35%;
    border-radius: 30%;
    animation: floatSlow 10s ease-in-out infinite 0.5s;
    opacity: 0.03;
}
.bb-hero-shape:nth-child(4) {
    width: 80px; height: 80px;
    bottom: 25%; right: 55%;
    border-radius: 20%;
    animation: floatSlow 7s ease-in-out infinite 2s;
    opacity: 0.03;
}
.bb-hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45,157,110,0.12) 0%, transparent 70%);
    top: 20%;
    right: 25%;
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}

.bb-hero-new .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(45, 157, 110, 0.12);
    border: 1px solid rgba(45, 157, 110, 0.25);
    color: #6ee7b7;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(8px);
    animation: fadeInUp 0.8s var(--bb-transition) both;
}
.bb-hero-new .hero-badge i {
    font-size: 1rem;
}
.bb-hero-new h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.25;
    animation: fadeInUp 0.8s var(--bb-transition) 0.15s both;
}
.bb-hero-new h1 span {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, var(--bb-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bb-hero-new .hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.12rem;
    line-height: 1.9;
    max-width: 520px;
    margin-bottom: 2.25rem;
    animation: fadeInUp 0.8s var(--bb-transition) 0.3s both;
}
.bb-hero-new .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s var(--bb-transition) 0.45s both;
}
.bb-hero-new .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: fadeInUp 0.8s var(--bb-transition) 0.6s both;
}
.bb-hero-new .hero-stat-item .stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.bb-hero-new .hero-stat-item .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.2rem;
}
.bb-hero-right {
    position: relative;
    z-index: 1;
}
.bb-hero-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    animation: fadeInLeft 0.9s var(--bb-transition) 0.3s both;
}
.bb-role-card-new {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s var(--bb-transition);
    backdrop-filter: blur(12px);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}
.bb-role-card-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45,157,110,0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s;
}
.bb-role-card-new:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(45, 157, 110, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.bb-role-card-new:hover::before { opacity: 1; }
.bb-role-card-new .role-icon-new {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.85rem;
    color: #fff;
    position: relative;
    z-index: 1;
}
.bb-role-card-new .role-icon-new.green {
    background: linear-gradient(135deg, rgba(45, 157, 110, 0.35) 0%, rgba(45, 157, 110, 0.12) 100%);
}
.bb-role-card-new .role-icon-new.navy {
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%);
}
.bb-role-card-new h6 {
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0 0 0.35rem;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}
.bb-role-card-new p {
    color: rgba(255,255,255,0.48);
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}
.bb-role-card-new--featured {
    border-color: rgba(45, 157, 110, 0.45);
    box-shadow: 0 0 0 1px rgba(45, 157, 110, 0.2);
}
.bb-role-pill {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(45, 157, 110, 0.35);
    color: #fff;
    z-index: 2;
}

/* کاراکتر شناور (صفحه اصلی) */
.bb-mascot-float {
    position: fixed;
    z-index: 1030;
    left: 1rem;
    bottom: 1.25rem;
    pointer-events: none;
}
.bb-mascot-box {
    width: 88px;
    height: 76px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    transform: translateY(8px);
}
.bb-mascot-svg {
    width: 100%;
    height: auto;
    display: block;
}
.bb-mascot-eye {
    animation: bbMascotBlink 4s ease-in-out infinite;
}
.bb-mascot-eye--r {
    animation-delay: 0.12s;
}
@keyframes bbMascotBlink {
    0%, 94%, 100% { transform: scaleY(1); }
    96% { transform: scaleY(0.1); }
}

/* ========== لندینگ صفحه اصلی — پالت سبز/سرمه‌ای بیمت بامن ========== */
.bb-bama-hero {
    position: relative;
    padding: 1.75rem 0 6rem;
    overflow: hidden;
    isolation: isolate;
}
.bb-bama-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 90% 60% at 75% 18%, rgba(45,157,110,0.16) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 12% 75%, rgba(26,54,93,0.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--bb-bg-alt) 0%, var(--bb-bg) 60%, var(--bb-bg-alt) 100%);
}
.bb-bama-hero-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    pointer-events: none;
    opacity: 0.6;
}
.bb-bama-hero-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 220px 24px at 18% 18%, rgba(255,255,255,0.6), transparent 70%),
        radial-gradient(ellipse 160px 18px at 86% 30%, rgba(255,255,255,0.5), transparent 70%),
        radial-gradient(ellipse 140px 16px at 55% 12%, rgba(255,255,255,0.5), transparent 70%);
}
.bb-bama-hero-inner {
    z-index: 1;
}

/* ----- پیل‌های دسته‌بندی هیرو ----- */
.bb-bama-hero-top {
    margin-bottom: 1.5rem;
}
.bb-bama-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}
@media (max-width: 575.98px) {
    .bb-bama-pills {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* پیل‌های زیر متن هیرو — فضای کم‌تر، چیدمان دو ستونه */
.bb-bama-pills--inline {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1.5rem;
    margin-bottom: 0;
}
@media (min-width: 1200px) {
    .bb-bama-pills--inline {
        grid-template-columns: repeat(4, 1fr);
    }
}
.bb-bama-pill {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.7rem;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--bb-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--bb-text);
    box-shadow: 0 2px 8px rgba(26,54,93,0.05);
    transition: background 0.25s var(--bb-transition), border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.bb-bama-pill:hover {
    background: #fff;
    border-color: rgba(45,157,110,0.35);
    color: var(--bb-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26,54,93,0.12);
}
.bb-bama-pill.is-active {
    background: #fff;
    border-color: rgba(45,157,110,0.5);
    box-shadow: 0 8px 24px rgba(45,157,110,0.18);
}
.bb-bama-pill-ic {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--bb-navy);
    background: var(--bb-bg-alt);
}
.bb-bama-pill.is-active .bb-bama-pill-ic {
    color: #fff;
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    box-shadow: 0 4px 12px rgba(45,157,110,0.25);
}
.bb-bama-pill-tx {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.3;
    overflow: hidden;
}
.bb-bama-pill-t {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bb-navy);
    white-space: nowrap;
}
.bb-bama-pill-s {
    font-size: 0.7rem;
    color: var(--bb-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----- پرومو/کاراوسل با ماسکوت ----- */
.bb-bama-promo {
    position: relative;
}
.bb-bama-promo .carousel-inner,
.bb-bama-promo .carousel-item {
    border-radius: 20px;
    min-height: 220px;
}
.bb-bama-promo-slide {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 220px;
    padding: 1.25rem 1.5rem 1.25rem 1rem;
}
.bb-bama-promo-text {
    flex: 1;
    text-align: right;
    z-index: 1;
}
.bb-bama-promo-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bb-navy);
    margin: 0 0 0.85rem;
    line-height: 1.65;
    letter-spacing: -0.01em;
}
.bb-bama-promo-cta {
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 18px rgba(45,157,110,0.28);
    transition: transform 0.2s, box-shadow 0.25s;
}
.bb-bama-promo-cta:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(45,157,110,0.35);
}
.bb-bama-promo-art {
    flex: 0 0 auto;
    width: 200px;
    max-width: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bb-bama-promo-art img,
.bb-bama-promo-art .bb-bama-mascot-svg,
.bb-bama-promo-art .bb-bama-promo-mascot {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    animation: bbBamaFloat 5s ease-in-out infinite;
}
.bb-bama-promo-art img {
    object-fit: contain;
    max-height: 200px;
}
.bb-bama-promo-art .bb-bama-promo-mascot {
    filter: drop-shadow(0 12px 24px rgba(26,54,93,0.18));
}
.bb-bama-promo-art .bb-bama-promo-mascot .bb-mascot-svg {
    width: 100%;
    height: auto;
    display: block;
}
@keyframes bbBamaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.bb-bama-promo-ctl {
    width: 36px;
    height: 36px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.94);
    border: 1px solid var(--bb-border);
    border-radius: 50%;
    color: var(--bb-navy) !important;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26,54,93,0.12);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.bb-bama-promo-ctl.carousel-control-prev {
    right: 0.5rem;
    left: auto;
}
.bb-bama-promo-ctl.carousel-control-next {
    left: 0.5rem;
    right: auto;
}
.bb-bama-promo-ctl:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(26,54,93,0.18);
}
.bb-bama-promo-ctl i {
    font-size: 1.1rem;
    line-height: 1;
}
.bb-bama-promo .carousel-control-prev-icon,
.bb-bama-promo .carousel-control-next-icon {
    display: none;
}

/* ----- ستون متن هیرو ----- */
.bb-bama-hero-text-col {
    padding: 1rem 0;
}
.bb-bama-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bb-green-dark);
    background: rgba(45,157,110,0.12);
    border: 1px solid rgba(45,157,110,0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}
.bb-bama-hero-h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    color: var(--bb-navy);
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
}
.bb-bama-hero-lead {
    font-size: 1.05rem;
    color: var(--bb-text);
    margin: 0;
    line-height: 1.7;
}

/* ----- کارت سفید مرکزی ----- */
.bb-bama-card {
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    padding: 1.35rem 1.35rem 1.5rem;
    border: 1px solid var(--bb-border);
    box-shadow:
        0 30px 70px rgba(26,54,93,0.16),
        0 6px 20px rgba(26,54,93,0.06);
    margin-top: 1.5rem;
}
@media (min-width: 992px) {
    .bb-bama-card {
        padding: 1.75rem;
        margin-top: 0;
    }
}
.bb-bama-search {
    position: relative;
    margin-bottom: 1.1rem;
}
.bb-bama-search-ic {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bb-text-muted);
    font-size: 1.05rem;
    z-index: 2;
    pointer-events: none;
}
.bb-bama-search-input {
    width: 100%;
    border-radius: 999px;
    padding: 0.85rem 1.1rem 0.85rem 3rem;
    border: 1px solid var(--bb-border);
    background: var(--bb-bg);
    font-size: 0.95rem;
    color: var(--bb-text);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.bb-bama-search-input::placeholder {
    color: var(--bb-text-muted);
}
.bb-bama-search-input:focus {
    outline: none;
    background: #fff;
    border-color: rgba(45,157,110,0.45);
    box-shadow: 0 0 0 4px rgba(45,157,110,0.15);
}
.bb-bama-row-feature {
    margin-bottom: 0.5rem;
}
.bb-bama-row-mini {
    margin-top: 0.35rem;
}
.bb-bama-filter-cell.bb-bama-filter-hidden {
    display: none !important;
}

/* ----- کارت محصول (بزرگ و کوچک) ----- */
.bb-bama-prod {
    position: relative;
    display: block;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--bb-border);
    border-radius: 18px;
    padding: 1.1rem 1.1rem 1rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--bb-transition);
}
.bb-bama-prod::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 60%, rgba(45,157,110,0.06) 100%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}
.bb-bama-prod:hover {
    border-color: rgba(45,157,110,0.45);
    box-shadow: 0 18px 36px rgba(26,54,93,0.12);
    transform: translateY(-4px);
    color: inherit;
}
.bb-bama-prod:hover::before { opacity: 1; }
.bb-bama-prod--big {
    min-height: 168px;
    padding-top: 1.4rem;
}
.bb-bama-prod--mini {
    min-height: 132px;
    padding-top: 1.4rem;
}

.bb-bama-prod-badge {
    position: absolute;
    top: 0;
    left: 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 0 0 10px 10px;
    color: #fff;
    z-index: 2;
    letter-spacing: -0.01em;
}
.bb-bama-prod-badge--green {
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
}
.bb-bama-prod-badge--navy {
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-soft) 100%);
}

.bb-bama-prod-body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.35rem;
}
.bb-bama-prod-text {
    flex: 1;
    min-width: 0;
    text-align: right;
}
.bb-bama-prod-title {
    display: block;
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--bb-navy);
    margin-bottom: 0.2rem;
    line-height: 1.4;
}
.bb-bama-prod--mini .bb-bama-prod-title {
    font-size: 0.92rem;
}
.bb-bama-prod-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--bb-text-muted);
    line-height: 1.5;
}
.bb-bama-prod-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bb-green-light) 0%, #d3eedd 100%);
    color: var(--bb-green-dark);
    font-size: 1.55rem;
    box-shadow: inset 0 0 0 1px rgba(45,157,110,0.18);
}
.bb-bama-prod-icon--lg {
    width: 72px;
    height: 72px;
    font-size: 2rem;
    border-radius: 20px;
}
.bb-bama-prod-badge--navy ~ .bb-bama-prod-body .bb-bama-prod-icon {
    background: linear-gradient(135deg, var(--bb-bg-alt) 0%, #d4ddea 100%);
    color: var(--bb-navy);
    box-shadow: inset 0 0 0 1px rgba(26,54,93,0.18);
}
.bb-bama-prod-strip {
    display: block;
    margin-top: 0.95rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bb-navy);
    background: linear-gradient(95deg, rgba(26,54,93,0.08) 0%, rgba(45,157,110,0.05) 60%, transparent 100%);
    border-right: 3px solid var(--bb-green);
    line-height: 1.55;
}
.bb-bama-prod-badge--navy ~ .bb-bama-prod-strip {
    border-right-color: var(--bb-navy);
    background: linear-gradient(95deg, rgba(45,157,110,0.08) 0%, rgba(26,54,93,0.05) 60%, transparent 100%);
}

/* ----- دکمه «نمایش همه» ----- */
.bb-bama-card-footer {
    margin-top: 1.5rem;
}
.bb-bama-show-all {
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-soft) 100%);
    color: #fff !important;
    border: none;
    border-radius: 14px;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 12px 28px rgba(26,54,93,0.25);
    transition: transform 0.2s, box-shadow 0.25s;
}
.bb-bama-show-all:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(26,54,93,0.35);
}

/* ----- ایلاستریشن SVG داخل کاراوسل (شیلد/ساختمان) ----- */
.bb-bama-promo-illu {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(26,54,93,0.18));
    animation: bbBamaFloat 5s ease-in-out infinite;
}

/* ----- ماسکوت SVG (مشترک، با هدفون) ----- */
.bb-mascot-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
.bb-mascot-svg .bb-mascot-g {
    transform-origin: 120px 140px;
    animation: bbBamaMascotSway 5.5s ease-in-out infinite;
}
.bb-mascot-svg .bb-mascot-eye {
    animation: bbMascotBlink 4.2s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
.bb-mascot-svg .bb-mascot-eye--r {
    animation-delay: 0.12s;
}
.bb-mascot-svg .bb-mascot-mic-tip {
    animation: bbMascotMicGlow 2.4s ease-in-out infinite;
    transform-origin: 32px 200px;
    transform-box: fill-box;
}
.bb-mascot-svg .bb-mascot-hand {
    transform-origin: 184px 178px;
    transform-box: fill-box;
    animation: bbMascotWave 3s ease-in-out infinite;
}
@keyframes bbBamaMascotSway {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(2deg); }
}
@keyframes bbMascotMicGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(45,157,110,0)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 4px rgba(45,157,110,0.55)); }
}
@keyframes bbMascotWave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-12deg); }
}

/* ----- موبایل ----- */
@media (max-width: 991.98px) {
    .bb-bama-hero {
        padding-bottom: 4rem;
    }
    .bb-bama-promo-slide {
        padding: 1rem 1.1rem;
        min-height: 180px;
    }
    .bb-bama-promo-art {
        width: 130px;
    }
    .bb-bama-promo-title {
        font-size: 1rem;
    }
    .bb-bama-hero-text-col {
        text-align: center;
        padding: 0;
    }
    .bb-bama-hero-eyebrow {
        margin-bottom: 0.75rem;
    }
}
@media (max-width: 575.98px) {
    .bb-bama-prod--big {
        min-height: 0;
    }
    .bb-bama-prod-icon--lg {
        width: 56px;
        height: 56px;
        font-size: 1.55rem;
        border-radius: 16px;
    }
    .bb-bama-promo-title {
        font-size: 0.95rem;
    }
    .bb-bama-promo-art {
        width: 110px;
    }
    .bb-bama-card {
        border-radius: 22px;
    }
}

/* ========== دکمه شناور پشتیبانی (آیکون هدفون + منوی شناور) ========== */
.bb-support-fab {
    position: fixed;
    z-index: 10001;
    bottom: 1.1rem;
    left: 1.1rem;
}
.bb-support-mascot {
    position: relative;
    width: 64px;
    height: 64px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    color: #fff;
    box-shadow:
        0 14px 32px rgba(45,157,110,0.38),
        0 4px 10px rgba(26,54,93,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s var(--bb-transition), box-shadow 0.25s, background 0.25s;
}
.bb-support-mascot:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 22px 40px rgba(45,157,110,0.45),
        0 6px 14px rgba(26,54,93,0.2);
}
.bb-support-mascot:active {
    transform: translateY(-1px) scale(0.99);
}
.bb-support-mascot.is-active {
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-soft, #0f2744) 100%);
    box-shadow:
        0 22px 40px rgba(26,54,93,0.4),
        0 6px 14px rgba(26,54,93,0.22);
}
.bb-support-mascot-art {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-size: 1.6rem;
    line-height: 1;
}
.bb-support-mascot-art i {
    color: #fff;
    transition: transform 0.25s var(--bb-transition);
}
.bb-support-mascot.is-active .bb-support-mascot-art i {
    transform: rotate(8deg) scale(0.92);
}
.bb-support-mascot-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(45,157,110,0.55);
    pointer-events: none;
    animation: bbSupportPulse 2.4s ease-out infinite;
    opacity: 0;
}
@keyframes bbSupportPulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}
.bb-support-mascot.is-active .bb-support-mascot-pulse {
    animation: none;
}
.bb-support-mascot-tip {
    position: absolute;
    top: 50%;
    right: calc(100% + 0.6rem);
    transform: translateY(-50%) translateX(8px);
    background: var(--bb-navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(26,54,93,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--bb-transition);
}
.bb-support-mascot-tip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--bb-navy);
}
.bb-support-mascot:hover .bb-support-mascot-tip,
.bb-support-mascot:focus-visible .bb-support-mascot-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.bb-support-fab.is-open .bb-support-mascot-tip {
    opacity: 0;
}

/* ----- منوی شناور پشتیبانی ----- */
.bb-support-menu {
    position: absolute;
    bottom: calc(100% + 0.85rem);
    left: 0;
    width: 320px;
    max-width: calc(100vw - 2rem);
    background: #ffffff;
    border: 1px solid var(--bb-border);
    border-radius: 18px;
    box-shadow:
        0 24px 48px rgba(26,54,93,0.22),
        0 8px 20px rgba(26,54,93,0.1);
    overflow: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: bottom left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s var(--bb-transition);
}
.bb-support-fab.is-open .bb-support-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.bb-support-menu-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    color: #fff;
}
.bb-support-menu-titlebox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}
.bb-support-menu-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}
.bb-support-menu-titlebox strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}
.bb-support-menu-titlebox small {
    display: block;
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 0.15rem;
}
.bb-support-menu-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.bb-support-menu-close:hover {
    background: rgba(255,255,255,0.28);
}
.bb-support-menu-body {
    padding: 0.4rem;
    background: #fff;
}
.bb-support-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.65rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--bb-text);
    transition: background 0.2s, transform 0.2s var(--bb-transition);
}
.bb-support-menu-item + .bb-support-menu-item {
    margin-top: 0.2rem;
}
.bb-support-menu-item:hover {
    background: var(--bb-bg-alt);
    color: var(--bb-navy);
}
.bb-support-menu-item-ic {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bb-bg-alt);
    color: var(--bb-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}
.bb-support-menu-item:hover .bb-support-menu-item-ic {
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    color: #fff;
}
.bb-support-menu-item-tx {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.bb-support-menu-item-t {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bb-navy);
}
.bb-support-menu-item-s {
    font-size: 0.72rem;
    color: var(--bb-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bb-support-menu-item-arrow {
    flex: 0 0 auto;
    color: var(--bb-text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s, color 0.2s;
}
.bb-support-menu-item:hover .bb-support-menu-item-arrow {
    color: var(--bb-green-dark);
    transform: translateX(-3px);
}

@media (max-width: 575.98px) {
    .bb-support-fab {
        bottom: 0.85rem;
        left: 0.85rem;
    }
    .bb-support-mascot {
        width: 58px;
        height: 58px;
    }
    .bb-support-mascot-art {
        font-size: 1.45rem;
    }
    .bb-support-mascot-tip {
        display: none;
    }
    .bb-support-menu {
        width: calc(100vw - 1.7rem);
    }
}

/* وقتی ماسکوت ما حاضره، دکمه گرد قدیمی چت‌ویجت رو مخفی کن (فقط visualize) */
body:has(#bbSupportMascot) .bb-chat-widget-trigger,
body:has(#bbSupportMascot) .bb-chat-widget-settings {
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    position: absolute;
}
/* پنل چت روی دکمهٔ پشتیبانی باز شود — تنظیم موقعیت */
body:has(#bbSupportMascot) #bb-chat-widget {
    bottom: calc(1.1rem + 64px + 12px) !important;
    left: 1.1rem !important;
    right: auto !important;
    top: auto !important;
}
@media (max-width: 575.98px) {
    body:has(#bbSupportMascot) #bb-chat-widget {
        bottom: calc(0.85rem + 58px + 10px) !important;
        left: 0.85rem !important;
    }
}

/* ========== Wizard AJAX shell — loading + transition ========== */
.bb-wizard-shell {
    position: relative;
    transition: opacity 0.2s ease-out;
}
.bb-wizard-shell.is-loading {
    opacity: 0.55;
    pointer-events: none;
}
.bb-wizard-shell.is-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(45,157,110,0) 0%,
        var(--bb-green) 35%,
        var(--bb-navy) 65%,
        rgba(26,54,93,0) 100%);
    background-size: 220% 100%;
    animation: bbWizardBar 1.2s linear infinite;
    z-index: 5;
    pointer-events: none;
}
@keyframes bbWizardBar {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@keyframes bbWizardFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.bb-wizard-shell .cw-body,
.bb-wizard-shell .bb-page-hero-body {
    animation: bbWizardFadeIn 0.25s ease-out;
}

/* دکمه شناور همکاری نمایندگان */
.bb-float-agent-pill {
    position: fixed;
    z-index: 1029;
    right: 1rem;
    bottom: 6rem;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--bb-navy), var(--bb-navy-soft));
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(26,54,93,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.bb-float-agent-pill:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26,54,93,0.45);
}

.bb-corp-intro-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg,var(--bb-green),var(--bb-green-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 20px rgba(45,157,110,0.25);
}

/* ========== مراحل کار (How it works) ========== */
.bb-steps-section {
    padding: 5.5rem 0;
    background: linear-gradient(180deg, var(--bb-bg-alt) 0%, var(--bb-bg) 100%);
    position: relative;
}
.bb-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    counter-reset: step;
}
.bb-step-card {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    position: relative;
    border-radius: var(--bb-radius-lg);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.35s var(--bb-transition);
}
.bb-step-card:hover {
    border-color: rgba(45,157,110,0.25);
    box-shadow: 0 12px 40px rgba(26,54,93,0.1);
    transform: translateY(-5px);
}
.bb-step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 20px rgba(45,157,110,0.3);
    position: relative;
    z-index: 2;
}
.bb-step-card:nth-child(even) .bb-step-num {
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-soft) 100%);
    box-shadow: 0 6px 20px rgba(26,54,93,0.25);
}
.bb-step-icon {
    font-size: 2.5rem;
    color: var(--bb-green);
    margin-bottom: 1rem;
    display: block;
}
.bb-step-card:nth-child(even) .bb-step-icon {
    color: var(--bb-navy);
}
.bb-step-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin-bottom: 0.5rem;
}
.bb-step-card p {
    color: var(--bb-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}
.bb-step-connector {
    position: absolute;
    top: 26px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bb-border);
    z-index: 1;
    display: none;
}

/* ========== ویژگی‌ها ========== */
.bb-features-section {
    padding: 5.5rem 0;
    background: linear-gradient(180deg, var(--bb-bg) 0%, var(--bb-bg-alt) 100%);
    position: relative;
}
.bb-feature-box {
    text-align: center;
    padding: 2.25rem 1.5rem;
    border-radius: 18px;
    transition: all 0.35s var(--bb-transition);
    height: 100%;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(6px);
    position: relative;
}
.bb-feature-box:hover {
    background: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(26,54,93,0.08);
}
.bb-feature-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin: 0 auto 1.25rem;
    transition: transform 0.3s var(--bb-transition);
}
.bb-feature-box:hover .bb-feature-icon {
    transform: scale(1.08);
}
.bb-feature-icon.green {
    background: linear-gradient(135deg, var(--bb-green-light) 0%, #c6e8d6 100%);
    color: var(--bb-green-dark);
}
.bb-feature-icon.navy {
    background: linear-gradient(135deg, #e8eef5 0%, #d0dae8 100%);
    color: var(--bb-navy);
}
.bb-feature-box h5 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin-bottom: 0.6rem;
}
.bb-feature-box p {
    color: var(--bb-text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
}

/* ========== سکشن CTA ========== */
.bb-cta-section {
    padding: 5rem 0;
    background: linear-gradient(145deg, var(--bb-navy) 0%, #0f2744 50%, #152d4a 100%);
    position: relative;
    overflow: hidden;
}
.bb-cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(45,157,110,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.bb-cta-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.02) 0%, transparent 60%);
    pointer-events: none;
}
.bb-cta-section h2 {
    color: #fff;
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}
.bb-cta-section p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 600px;
    margin: 0 auto 2.25rem;
    position: relative;
    z-index: 1;
}
.bb-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ========== بیمه شخصی ========== */
.bb-personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.bb-personal-item {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.35s var(--bb-transition);
    position: relative;
    overflow: hidden;
}
.bb-personal-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bb-green-light) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s;
}
.bb-personal-item:hover {
    border-color: rgba(45,157,110,0.3);
    box-shadow: 0 12px 35px rgba(26,54,93,0.1);
    transform: translateY(-5px);
}
.bb-personal-item:hover::before { opacity: 1; }
.bb-personal-item .p-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.1rem;
    position: relative;
    z-index: 1;
}
.bb-personal-item h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}
.bb-personal-item p {
    color: var(--bb-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.bb-personal-item .btn {
    position: relative;
    z-index: 1;
}

/* ========== اعتماد و برندها ========== */
.bb-trust-section {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #e8eef5 0%, var(--bb-bg) 100%);
    border-top: 1px solid var(--bb-border);
    border-bottom: 1px solid var(--bb-border);
}
.bb-trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.bb-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--bb-radius);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s var(--bb-transition);
    min-width: 200px;
}
.bb-trust-item:hover {
    border-color: rgba(45,157,110,0.25);
    box-shadow: 0 4px 16px rgba(26,54,93,0.08);
    transform: translateY(-2px);
}
.bb-trust-item i {
    font-size: 1.75rem;
    color: var(--bb-green);
    flex-shrink: 0;
}
.bb-trust-item:nth-child(even) i {
    color: var(--bb-navy);
}
.bb-trust-item .trust-text {
    font-weight: 600;
    color: var(--bb-navy);
    font-size: 0.92rem;
}
.bb-trust-item .trust-sub {
    font-size: 0.78rem;
    color: var(--bb-text-muted);
}

/* ========== جشنواره ========== */
.bb-festival-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bb-bg-alt) 0%, #dce4ef 100%);
}
.bb-festival-slide {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(26,54,93,0.1);
    border: 1px solid var(--bb-border);
}
.bb-festival-slide img {
    border-radius: 18px;
    max-height: 380px;
    object-fit: cover;
    width: 100%;
}
.bb-festival-empty {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 3.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.5);
}
.bb-festival-empty i {
    font-size: 2.5rem;
    color: var(--bb-text-muted);
    opacity: 0.35;
    display: block;
    margin-bottom: 0.75rem;
}

/* ========== اسلایدر ========== */
.bb-slider {
    border-radius: var(--bb-radius);
    overflow: hidden;
    box-shadow: var(--bb-shadow);
    border: 1px solid var(--bb-border);
}
.bb-slider .carousel-item img {
    border-radius: var(--bb-radius);
    max-height: 360px;
    object-fit: cover;
    width: 100%;
}

/* ========== جداول ========== */
.bb-table-wrap {
    border-radius: var(--bb-radius-sm);
    overflow: hidden;
    box-shadow: var(--bb-shadow);
    border: 1px solid var(--bb-border);
    background: var(--bb-white);
}
.bb-table,
.table.bb-table {
    margin-bottom: 0;
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
}
.bb-table thead th,
.table.bb-table thead th {
    background: linear-gradient(180deg, var(--bb-navy) 0%, var(--bb-navy-soft) 100%);
    color: var(--bb-white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    text-align: right;
    border: none;
    vertical-align: middle;
}
.bb-table tbody td,
.table.bb-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-color: var(--bb-border);
    border-bottom: 1px solid var(--bb-border);
    color: var(--bb-text);
}
.bb-table tbody tr:nth-child(even),
.table.bb-table tbody tr:nth-child(even) { background-color: var(--bb-bg); }
.bb-table tbody tr:hover,
.table.bb-table tbody tr:hover { background-color: var(--bb-green-light); }
.bb-table tbody tr:last-child td,
.table.bb-table tbody tr:last-child td { border-bottom-color: var(--bb-border); }
.bb-table-print, .table.bb-table-print { font-size: 0.9rem; }
.bb-table-print thead th, .table.bb-table-print thead th { background: var(--bb-navy); color: var(--bb-white); font-weight: 600; padding: 0.5rem 0.75rem; border: 1px solid var(--bb-navy); }
.bb-table-print tbody td, .table.bb-table-print tbody td { padding: 0.5rem 0.75rem; border: 1px solid var(--bb-border); }
.bb-compare-table { border-radius: var(--bb-radius-sm); overflow: hidden; box-shadow: var(--bb-shadow); border: 1px solid var(--bb-border); }
.bb-compare-table thead th { background: linear-gradient(180deg, var(--bb-navy) 0%, var(--bb-navy-soft) 100%); color: var(--bb-white); font-weight: 600; font-size: 0.9rem; padding: 1rem 1.1rem; text-align: center; border: none; }
.bb-compare-table tbody td { padding: 0.85rem 1.1rem; text-align: center; vertical-align: middle; border-color: var(--bb-border); font-size: 0.95rem; }
.bb-compare-table tbody tr:nth-child(even) { background-color: var(--bb-bg); }
.bb-compare-table tbody tr:hover { background-color: var(--bb-green-light); }

/* ========== مقایسه طرح‌های بیمه (کارت‌محور) ========== */
.bb-compare-wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.bb-compare-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--bb-white); border: 1px solid var(--bb-border); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); }
.bb-compare-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.bb-compare-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding-inline-end: 1.25rem; border-inline-end: 1px solid var(--bb-border); }
.bb-compare-stat:last-child { border-inline-end: none; padding-inline-end: 0; }
.bb-compare-stat-num { font-size: 1.25rem; font-weight: 700; color: var(--bb-navy); }
.bb-compare-stat-num small { font-size: 0.75rem; color: var(--bb-text-muted); font-weight: 500; margin-inline-start: 0.15rem; }
.bb-compare-stat-label { font-size: 0.8rem; color: var(--bb-text-muted); }
.bb-compare-toolbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.bb-compare-sort { min-width: 200px; border-radius: var(--bb-radius-sm); border: 1px solid var(--bb-border); }

.bb-compare-empty { text-align: center; padding: 3rem 1.5rem; background: var(--bb-white); border: 1px dashed var(--bb-border); border-radius: var(--bb-radius); color: var(--bb-text-muted); }
.bb-compare-empty-icon { font-size: 3rem; color: var(--bb-text-muted); margin-bottom: 0.75rem; opacity: 0.6; }
.bb-compare-empty h5 { color: var(--bb-navy); margin-bottom: 0.5rem; }

.bb-compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.bb-compare-card { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1.25rem 1.25rem; background: var(--bb-white); border: 1px solid var(--bb-border); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.bb-compare-card:hover { transform: translateY(-3px); box-shadow: var(--bb-shadow-lg); border-color: var(--bb-green); }
.bb-compare-card.is-best-price { border-color: var(--bb-green); box-shadow: 0 0 0 2px var(--bb-green-light), var(--bb-shadow-lg); }
.bb-compare-badge { position: absolute; top: -10px; inset-inline-start: 1.25rem; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%); color: var(--bb-white); font-size: 0.78rem; font-weight: 600; border-radius: 999px; box-shadow: var(--bb-shadow); }

.bb-compare-card-head { display: flex; align-items: center; gap: 0.85rem; }
.bb-compare-card-logo { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background: var(--bb-bg); border: 1px solid var(--bb-border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bb-compare-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bb-compare-card-logo span { font-size: 1.4rem; font-weight: 700; color: var(--bb-navy); }
.bb-compare-card-head-text { flex: 1; min-width: 0; }
.bb-compare-card-company { font-size: 1rem; font-weight: 700; color: var(--bb-navy); margin: 0 0 0.15rem; line-height: 1.3; }
.bb-compare-card-plan { font-size: 0.85rem; color: var(--bb-text-muted); margin: 0; }

.bb-compare-card-price { padding: 0.85rem 1rem; background: var(--bb-bg); border-radius: var(--bb-radius-sm); text-align: center; }
.bb-compare-price-value { display: flex; align-items: baseline; justify-content: center; gap: 0.35rem; }
.bb-compare-price-num { font-size: 1.6rem; font-weight: 800; color: var(--bb-navy); letter-spacing: -0.5px; }
.bb-compare-price-unit { font-size: 0.85rem; color: var(--bb-text-muted); font-weight: 500; }
.bb-compare-price-period { font-size: 0.78rem; color: var(--bb-text-muted); margin-top: 0.2rem; }
.bb-compare-saving { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.5rem; padding: 0.25rem 0.6rem; background: var(--bb-green-light); color: var(--bb-green-dark); border-radius: 999px; font-size: 0.75rem; font-weight: 600; }

.bb-compare-card-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.bb-compare-card-features li { display: flex; align-items: flex-start; gap: 0.45rem; font-size: 0.88rem; color: var(--bb-text); }
.bb-compare-card-features li i { color: var(--bb-green); margin-top: 0.15rem; flex-shrink: 0; }

.bb-compare-card-installments { padding: 0.75rem 0.85rem; background: var(--bb-bg-alt); border-radius: var(--bb-radius-sm); }
.bb-compare-installments-head { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--bb-navy); margin-bottom: 0.5rem; }
.bb-compare-installments-head i { color: var(--bb-green); }
.bb-compare-installments-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bb-compare-installment-opt { flex: 1 1 calc(33% - 0.4rem); min-width: 70px; display: flex; flex-direction: column; align-items: center; padding: 0.4rem 0.3rem; background: var(--bb-white); border: 1px solid var(--bb-border); border-radius: 8px; transition: border-color 0.15s ease, background 0.15s ease; }
.bb-compare-installment-opt.is-active { border-color: var(--bb-green); background: var(--bb-green-light); }
.bb-compare-installment-count { font-size: 0.72rem; color: var(--bb-text-muted); font-weight: 600; }
.bb-compare-installment-amount { font-size: 0.82rem; color: var(--bb-navy); font-weight: 700; margin-top: 0.15rem; }
.bb-compare-installment-amount small { font-size: 0.65rem; color: var(--bb-text-muted); font-weight: 500; margin-inline-start: 0.1rem; }

.bb-compare-card-cta { margin-top: auto; }
.bb-compare-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1rem; background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%); color: var(--bb-white); border: none; border-radius: var(--bb-radius-sm); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.bb-compare-btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(45, 157, 110, 0.35); color: var(--bb-white); }
.bb-compare-btn i { font-size: 1.05rem; }

@media (max-width: 575.98px) {
    .bb-compare-grid { grid-template-columns: 1fr; }
    .bb-compare-toolbar { flex-direction: column; align-items: stretch; }
    .bb-compare-sort { width: 100%; }
    .bb-compare-stats { justify-content: space-between; }
}

/* ========== امتیاز نماینده ========== */
.bb-score { display: inline-flex; align-items: center; padding: 0.3rem 0.75rem; border-radius: 8px; font-weight: 600; font-size: 0.85rem; }
.bb-score.preferred { background: var(--bb-green-light); color: var(--bb-green-dark); }
.bb-score.verified { background: #e8eef5; color: var(--bb-navy); }
.bb-score.general { background: #fef9e8; color: #8b7a3a; }
.bb-score.incomplete { background: #fce8e8; color: #9b4a4a; }

/* ========== فرم ========== */
.bb-form .form-label {
    font-weight: 600;
    color: var(--bb-navy);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.bb-form .form-control,
.bb-form .form-select {
    border-radius: var(--bb-radius-sm);
    border: 1px solid var(--bb-border);
    padding: 0.6rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bb-form .form-control:focus,
.bb-form .form-select:focus {
    border-color: var(--bb-green);
    box-shadow: 0 0 0 3px rgba(45, 157, 110, 0.15);
    outline: none;
}
.form-label.fw-semibold,
.bb-form .form-label {
    font-weight: 600;
    color: var(--bb-navy);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.form-text.text-muted { font-size: 0.82rem; }

/* ========== فوتر ========== */
.bb-footer {
    background: linear-gradient(180deg, #0f2744 0%, #0a1628 100%);
    color: rgba(255, 255, 255, 0.78);
    padding: 3.5rem 0 0;
    position: relative;
}
.bb-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45,157,110,0.3), transparent);
}
.bb-footer a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.25s var(--bb-transition);
}
.bb-footer a:hover {
    color: var(--bb-green);
}
.bb-footer .footer-brand img {
    height: 42px;
}
.bb-footer h6 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.bb-footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background: var(--bb-green);
    border-radius: 2px;
}
.bb-footer-bottom {
    margin-top: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.bb-footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}
.bb-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s var(--bb-transition);
    font-size: 1.05rem;
}
.bb-footer-social a:hover {
    background: var(--bb-green);
    border-color: var(--bb-green);
    color: #fff;
    transform: translateY(-2px);
}

/* ========== اعلان / NDA ========== */
.bb-notice {
    background: linear-gradient(135deg, var(--bb-green-light) 0%, #d4ede2 100%);
    border: 1px solid var(--bb-green);
    border-radius: var(--bb-radius-sm);
    padding: 1.15rem 1.35rem;
    color: var(--bb-green-dark);
    font-size: 0.95rem;
    line-height: 1.8;
}
.bb-notice-warning {
    background: linear-gradient(135deg, #fef9e8 0%, #fdf3d0 100%);
    border: 1px solid #e8c84a;
    color: #7d6b3a;
}

/* ========== چک‌باکس ========== */
.bb-check .form-check-input:checked {
    background-color: var(--bb-green);
    border-color: var(--bb-green);
}

/* ========== نوار پیشرفت ========== */
.bb-progress { height: 8px; border-radius: 4px; background-color: var(--bb-border); }
.bb-progress .progress-bar { background: linear-gradient(90deg, var(--bb-green) 0%, var(--bb-green-dark) 100%); border-radius: 4px; transition: width 0.4s ease; }

/* ========== شمارش معکوس ========== */
.bb-countdown .time-unit { background: var(--bb-white); border-radius: var(--bb-radius-sm); padding: 1.1rem 1.35rem; min-width: 72px; border: 1px solid var(--bb-border); box-shadow: var(--bb-shadow); }
.bb-countdown .time-unit .number { font-size: 1.9rem; font-weight: 700; color: var(--bb-navy); direction: ltr; }
.bb-countdown .time-unit .label { font-size: 0.72rem; color: var(--bb-text-muted); margin-top: 0.2rem; }

/* ========== مودال ========== */
.bb-modal .modal-header { background: linear-gradient(180deg, var(--bb-navy) 0%, var(--bb-navy-soft) 100%); color: var(--bb-white); border-radius: var(--bb-radius-sm) var(--bb-radius-sm) 0 0; }
.bb-modal .modal-header .btn-close { filter: invert(1); }

/* ========== صفحات احراز هویت ========== */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--bb-bg);
    position: relative;
    overflow: hidden;
}
.auth-side {
    flex: 0 0 45%;
    max-width: 45%;
    background: linear-gradient(160deg, #0a1628 0%, var(--bb-navy) 40%, #152d4a 70%, var(--bb-green-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(45,157,110,0.12) 0%, transparent 55%);
    pointer-events: none;
}
.auth-side::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}
.auth-side-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.auth-side-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.auth-side-shapes .shape:nth-child(1) {
    width: 300px; height: 300px; top: -10%; left: -10%;
    animation: float 8s ease-in-out infinite;
}
.auth-side-shapes .shape:nth-child(2) {
    width: 150px; height: 150px; bottom: 10%; right: 10%;
    border-radius: 30%;
    animation: floatSlow 10s ease-in-out infinite 1s;
}
.auth-side-shapes .shape:nth-child(3) {
    width: 80px; height: 80px; top: 30%; right: 30%;
    animation: float 6s ease-in-out infinite 2s;
}
.auth-side-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}
.auth-side-content img {
    height: 56px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.7s var(--bb-transition) both;
}
.auth-side-content h2 {
    color: #fff;
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.7s var(--bb-transition) 0.1s both;
}
.auth-side-content p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    line-height: 1.85;
    max-width: 380px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.7s var(--bb-transition) 0.2s both;
}
.auth-side-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.7s var(--bb-transition) 0.3s both;
}
.auth-side-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    backdrop-filter: blur(8px);
}
.auth-side-feature i {
    font-size: 1.25rem;
    color: #6ee7b7;
    flex-shrink: 0;
}
.auth-side-feature span {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.auth-card {
    background: var(--bb-white);
    border-radius: var(--bb-radius-lg);
    box-shadow: 0 8px 40px rgba(26,54,93,0.08);
    overflow: hidden;
    max-width: 440px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s var(--bb-transition) both;
}
.auth-card .auth-header {
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-soft) 100%);
    color: var(--bb-white);
    padding: 1.85rem 1.5rem;
    text-align: center;
    display: none;
}
.auth-card .auth-header img {
    height: 48px;
    display: block;
    margin: 0 auto;
}
.auth-card .auth-body {
    padding: 2.5rem 2rem;
}
.auth-card .auth-body h4 {
    color: var(--bb-navy);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.auth-card .auth-body .auth-subtitle {
    color: var(--bb-text-muted);
    font-size: 0.92rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.auth-card .form-label {
    font-weight: 600;
    color: var(--bb-navy);
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}
.auth-card .form-control {
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid var(--bb-border);
    font-size: 1rem;
    transition: all 0.25s var(--bb-transition);
    background: var(--bb-bg);
}
.auth-card .form-control:focus {
    border-color: var(--bb-green);
    box-shadow: 0 0 0 4px rgba(45, 157, 110, 0.12);
    outline: none;
    background: var(--bb-white);
}
.auth-card .form-control-lg {
    padding: 0.9rem 1.1rem;
    font-size: 1.05rem;
}
.auth-card .btn-primary {
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(45, 157, 110, 0.3);
    transition: all 0.3s var(--bb-transition);
}
.auth-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--bb-green-dark) 0%, #134a32 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(45, 157, 110, 0.4);
}
.auth-card .btn-outline-secondary {
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    border: 1.5px solid var(--bb-border);
    color: var(--bb-text);
    font-weight: 500;
    transition: all 0.25s var(--bb-transition);
    background: var(--bb-bg);
}
.auth-card .btn-outline-secondary:hover {
    border-color: var(--bb-green);
    color: var(--bb-green);
    background: var(--bb-green-light);
}
.auth-card .auth-footer {
    padding: 1rem 2rem;
    background: var(--bb-bg);
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--bb-border);
}
.auth-card .auth-footer a {
    color: var(--bb-green);
    font-weight: 500;
    transition: color 0.2s;
}
.auth-card .auth-footer a:hover {
    color: var(--bb-green-dark);
}
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--bb-text-muted);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bb-border);
}
.auth-divider span {
    padding: 0 0.85rem;
}
.auth-card .alert {
    border-radius: 12px;
    font-size: 0.9rem;
}
.auth-card .form-check-input:checked {
    background-color: var(--bb-green);
    border-color: var(--bb-green);
}
.auth-card .invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ========== پروفایل عمومی ========== */
.bb-profile-card { background: var(--bb-white); border-radius: 16px; box-shadow: 0 4px 24px rgba(26, 54, 93, 0.1); overflow: hidden; }
.bb-profile-card-header { background: linear-gradient(135deg, var(--bb-navy) 0%, #152a45 100%); padding: 2rem 1.5rem 2.5rem; text-align: center; position: relative; }
.bb-profile-card-header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 24px; background: var(--bb-white); border-radius: 16px 16px 0 0; }
.bb-profile-avatar { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; margin: 0 auto 0.75rem; border: 4px solid rgba(255,255,255,0.2); position: relative; z-index: 1; }
.bb-profile-name { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0 0 0.2rem; position: relative; z-index: 1; }
.bb-profile-mobile { color: rgba(255,255,255,0.7); font-size: 0.9rem; direction: ltr; position: relative; z-index: 1; }
.bb-profile-badges { margin-top: 0.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; position: relative; z-index: 1; }
.bb-profile-info { padding: 1.25rem 1.5rem; }
.bb-profile-info-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid #f5f5f5; }
.bb-profile-info-row:last-child { border-bottom: none; }
.bb-profile-info-row > i { width: 38px; height: 38px; border-radius: var(--bb-radius-sm); background: var(--bb-green-light); color: var(--bb-green-dark); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.bb-profile-info-row:nth-child(even) > i { background: #e8eef5; color: var(--bb-navy); }
.bb-profile-info-label { display: block; font-size: 0.78rem; color: var(--bb-text-muted); font-weight: 500; }
.bb-profile-info-value { display: block; font-size: 0.9rem; color: var(--bb-navy); font-weight: 600; margin-top: 0.1rem; }
.bb-profile-edit-card { background: var(--bb-white); border-radius: 16px; box-shadow: 0 4px 24px rgba(26, 54, 93, 0.1); overflow: hidden; }
.bb-profile-edit-header { font-size: 1.05rem; font-weight: 700; color: var(--bb-navy); padding: 1.15rem 1.5rem; border-bottom: 1px solid #f0f0f0; }
.bb-profile-edit-body { padding: 1.5rem; }

/* ========== بج‌های رنگی ========== */
.bb-badge-green { background: var(--bb-green-light); color: var(--bb-green-dark); font-weight: 600; font-size: 0.78rem; border-radius: 20px; padding: 0.35em 0.8em; }
.bb-badge-navy { background: #e8eef5; color: var(--bb-navy); font-weight: 600; font-size: 0.78rem; border-radius: 20px; padding: 0.35em 0.8em; }
.bb-badge-warning { background: linear-gradient(135deg, #fef9e8 0%, #fdf3d0 100%); color: #8b7a3a; font-weight: 600; font-size: 0.78rem; border-radius: 20px; padding: 0.35em 0.8em; }
.bb-badge-danger { background: #fce8e8; color: #9b2c2c; font-weight: 600; font-size: 0.78rem; border-radius: 20px; padding: 0.35em 0.8em; }
.bb-badge-muted { background: #f1f3f5; color: #868e96; font-weight: 600; font-size: 0.78rem; border-radius: 20px; padding: 0.35em 0.8em; }

/* ========== الرت‌ها ========== */
.alert { border-radius: var(--bb-radius-sm); }

/* ========== old hero compat ========== */
.bb-hero { min-height: 82vh; display: flex; align-items: center; background: linear-gradient(145deg, var(--bb-navy) 0%, #0f2744 50%, #0a1f38 100%); padding: 4rem 0; position: relative; overflow: hidden; }
.bb-hero::before { content: ''; position: absolute; top: -20%; right: -10%; width: 50%; height: 140%; background: radial-gradient(ellipse, rgba(45, 157, 110, 0.12) 0%, transparent 70%); pointer-events: none; }
.bb-hero .hero-content { position: relative; z-index: 1; }
.bb-hero h1 { color: var(--bb-white); font-size: 2.25rem; font-weight: 700; margin-bottom: 0.85rem; }
.bb-hero p { color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; margin-bottom: 2.25rem; line-height: 1.7; }
.role-card { background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--bb-radius); padding: 1.75rem 1.5rem; text-align: center; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(8px); }
.role-card:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); }
.role-card .role-icon { font-size: 2.5rem; margin-bottom: 0.9rem; color: rgba(255, 255, 255, 0.95); }
.role-card h5 { color: var(--bb-white); font-weight: 700; font-size: 1rem; margin-bottom: 0.45rem; }
.role-card p { color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; line-height: 1.5; margin-bottom: 0; }

/* ========== ریسپانسیو ========== */
@media (max-width: 991.98px) {
    .auth-side { display: none; }
    .auth-form-side { padding: 1.5rem; }
    .auth-card .auth-header { display: block; }
    .bb-steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
    .auth-wrap { padding: 0; }
    .auth-card .auth-body { padding: 1.75rem 1.5rem; }
    .auth-card .auth-footer { padding: 0.85rem 1.5rem; }
    .bb-hero, .bb-hero-new { min-height: auto; padding: 3.5rem 0 3rem; }
    .bb-hero h1 { font-size: 1.65rem; }
    .bb-hero-new h1 { font-size: 2rem; }
    .bb-hero-new .hero-desc { font-size: 0.95rem; }
    .bb-hero-new .hero-stats { gap: 1.5rem; }
    .bb-hero-roles { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .bb-role-card-new { padding: 1.25rem 1rem; }
    .bb-role-card-new h6 { font-size: 0.82rem; }
    .bb-section { padding: 3.5rem 0; }
    .bb-section-title { font-size: 1.5rem; }
    .bb-section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
    .role-card { padding: 1.35rem; }
    .bb-card { padding: 1.5rem; }
    .bb-features-section { padding: 3.5rem 0; }
    .bb-cta-section { padding: 3.5rem 0; }
    .bb-cta-section h2 { font-size: 1.4rem; }
    .bb-footer { padding: 2.5rem 0 0; }
    .bb-trust-grid { gap: 0.75rem; }
    .bb-trust-item { min-width: auto; flex: 1 1 calc(50% - 0.75rem); padding: 0.85rem 1rem; }
}

@media (max-width: 575.98px) {
    .bb-hero-new h1 { font-size: 1.65rem; }
    .bb-hero-roles { grid-template-columns: 1fr; }
    .bb-personal-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .bb-personal-item { padding: 1.5rem 1rem; }
    .bb-trust-item { flex: 1 1 100%; }
    .cw-type-grid { grid-template-columns: 1fr; }
    .cw-timeline { flex-direction: column; gap: 1.25rem; }
    .cw-timeline-connector { display: none; }
}

/* ========== ویزارد شرکتی ========== */
.cw-page {
    min-height: calc(100vh - 70px);
    padding: 0;
}

/* پوستهٔ یکپارچه layout/main (هدر + کارت) */
.bb-page-hero-wrap.cw-page {
    min-height: calc(100vh - var(--bb-navbar-h, 70px));
    padding: 0;
}

.cw-header {
    background: linear-gradient(160deg, #0a1628 0%, var(--bb-navy) 40%, #152d4a 70%, #0f2744 100%);
    padding: 3.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cw-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 50%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(45,157,110,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.cw-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 40%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(45,157,110,0.05) 0%, transparent 55%);
    pointer-events: none;
}
.cw-header-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.cw-header-shapes span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.cw-header-shapes span:nth-child(1) { width: 250px; height: 250px; top: -8%; right: 5%; animation: float 8s ease-in-out infinite; }
.cw-header-shapes span:nth-child(2) { width: 120px; height: 120px; bottom: 5%; left: 8%; border-radius: 30%; animation: floatSlow 10s ease-in-out infinite 1s; }
.cw-header-shapes span:nth-child(3) { width: 80px; height: 80px; top: 30%; left: 25%; animation: float 6s ease-in-out infinite 2s; }

.cw-header-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(45,157,110,0.15);
    border: 1px solid rgba(45,157,110,0.25);
    color: #6ee7b7;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.6s var(--bb-transition) both;
}
.cw-header h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.7s var(--bb-transition) 0.1s both;
}
.cw-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.7s var(--bb-transition) 0.2s both;
}

.cw-body {
    margin-top: clamp(-2.75rem, -5vw, -4.75rem);
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
}

/* پوستهٔ عمومی: کارت سفید روی هدر (main layout) */
.bb-page-hero-header.cw-header {
    padding-bottom: 5rem;
}
.bb-page-hero-body.cw-body {
    margin-top: clamp(-3rem, -6vw, -5.25rem);
}
.bb-page-hero-surface {
    background: #fff;
    border-radius: 22px 22px 18px 18px;
    box-shadow: 0 16px 48px rgba(26, 54, 93, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 1.5rem 1.35rem 2rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
}
@media (min-width: 768px) {
    .bb-page-hero-surface {
        padding: 1.75rem 1.85rem 2.25rem;
    }
}
.bb-page-hero-surface:has(.bb-corp-dashboard) {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 55%, #f1f5f9 100%);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow:
        0 20px 56px rgba(26, 54, 93, 0.1),
        0 6px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.bb-page-hero-surface:has(.bb-personal-hub) {
    background: linear-gradient(185deg, #fff 0%, #fafcff 45%, #f3fbf6 100%);
    box-shadow:
        0 18px 50px rgba(26, 54, 93, 0.09),
        0 4px 14px rgba(0, 0, 0, 0.04);
}

/* پنل ادمین: همان هدر سایت، بدون کشیدن ارتفاع تمامviewport */
.bb-page-hero-wrap--admin.cw-page {
    min-height: 0;
}
.bb-page-hero-wrap--admin .bb-page-hero-header.cw-header {
    padding: 2.35rem 0 3.25rem;
    border-radius: 0;
}
.bb-page-hero-wrap--admin .cw-header h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.bb-page-hero-wrap--admin .cw-header p {
    font-size: 0.98rem;
}
.bb-page-hero-wrap--admin .cw-header-icon {
    width: 64px;
    height: 64px;
    font-size: 1.65rem;
    border-radius: 18px;
}
.bb-page-hero-wrap--admin .bb-page-hero-body.cw-body {
    margin-top: clamp(-2.5rem, -4vw, -3.75rem);
    padding-bottom: 1.75rem;
}

/* فقط بدنه (مثلاً صفحهٔ استعلام با هدر اختصاصی) */
.bb-page-hero-wrap--no-header.cw-page {
    min-height: 0;
}
.bb-page-hero-wrap--no-header .bb-page-hero-body.cw-body {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 1.5rem;
}

/* ========== مرکز بیمه شخصی (personal/index) ========== */
.bb-personal-hub {
    padding-bottom: 0.25rem;
}
.bb-personal-hub-welcome {
    padding: 0.65rem 0.9rem;
    background: rgba(45, 157, 110, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(45, 157, 110, 0.12);
}
.bb-personal-hub-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    min-height: 5.5rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow: 0 8px 28px rgba(26, 54, 93, 0.07);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.bb-personal-hub-card::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    height: 3px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #64748b, #94a3b8);
    opacity: 0.9;
}
.bb-personal-hub-card--third::before {
    background: linear-gradient(90deg, var(--bb-navy), #3d5a80);
}
.bb-personal-hub-card--body::before {
    background: linear-gradient(90deg, var(--bb-green), var(--bb-green-dark));
}
.bb-personal-hub-card--travel::before {
    background: linear-gradient(90deg, #0369a1, #0ea5e9);
}
.bb-personal-hub-card--fire::before {
    background: linear-gradient(90deg, #c2410c, #ea580c);
}
.bb-personal-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(26, 54, 93, 0.12);
    border-color: rgba(45, 157, 110, 0.2);
    color: inherit;
}
.bb-personal-hub-card-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: #f1f5f9;
    color: var(--bb-navy);
}
.bb-personal-hub-card--body .bb-personal-hub-card-icon {
    background: var(--bb-green-light);
    color: var(--bb-green-dark);
}
.bb-personal-hub-card--travel .bb-personal-hub-card-icon {
    background: #e0f2fe;
    color: #0369a1;
}
.bb-personal-hub-card--fire .bb-personal-hub-card-icon {
    background: #ffedd5;
    color: #c2410c;
}
.bb-personal-hub-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.bb-personal-hub-card-title {
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--bb-navy);
}
.bb-personal-hub-card-hint {
    font-size: 0.82rem;
    color: var(--bb-text-muted);
    line-height: 1.4;
}
.bb-personal-hub-card-go {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--bb-green-dark);
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}
.bb-personal-hub-card:hover .bb-personal-hub-card-go {
    background: var(--bb-green-light);
    color: var(--bb-navy);
}
.bb-personal-hub-help {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(120deg, #f8fafc 0%, #fff 50%, #f0fdf4 100%);
    border: 1px solid rgba(26, 54, 93, 0.08);
    box-shadow: 0 6px 22px rgba(26, 54, 93, 0.06);
}
.bb-personal-hub-help-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--bb-navy), #2d4a6f);
    color: #fff;
    font-size: 1.25rem;
}
.bb-personal-hub-help-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--bb-navy);
    margin: 0 0 0.35rem;
}
.bb-personal-hub-help-text {
    font-size: 0.86rem;
    color: var(--bb-text-muted);
    line-height: 1.65;
    margin: 0;
}
.bb-personal-hub-footnote {
    line-height: 1.7;
}
@media (max-width: 576px) {
    .bb-personal-hub-card {
        flex-wrap: wrap;
    }
    .bb-personal-hub-card-go {
        width: 100%;
        justify-content: center;
    }
}
@media (hover: none) {
    .bb-personal-hub-card:hover {
        transform: none;
    }
}

/* ========== داشبورد کاربر (site/dashboard) ========== */
#bb-dash-corporate,
#bb-dash-personal,
#bb-dash-support {
    scroll-margin-top: 5.75rem;
}
.bb-user-dashboard.bb-corp-dashboard {
    scroll-margin-top: 0;
}
@keyframes bb-user-dash-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.bb-user-dash {
    position: relative;
    isolation: isolate;
    padding-bottom: 1.75rem;
}
.bb-user-dash-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.bb-user-dash-trust {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bb-text-muted);
    line-height: 1.45;
}
.bb-user-dash-trust i {
    color: var(--bb-green-dark);
    font-size: 0.95rem;
}
.bb-user-dash-trust--inline {
    margin: 0.35rem 0 0;
    font-size: 0.74rem;
    font-weight: 600;
}
.bb-user-dash-top-toolbar {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem 1rem;
    width: 100%;
    min-width: 0;
}
.bb-user-dash-top-card--compact {
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    padding: 1rem 1.15rem 1.05rem;
}
.bb-user-dash-top-card--compact .bb-user-dash-avatar {
    width: 3rem;
    height: 3rem;
    font-size: 1.35rem;
    border-radius: 14px;
}
.bb-user-dash-jump--inline {
    position: static;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    justify-self: end;
}
.bb-user-dash-jump--inline .bb-user-dash-jump-list {
    justify-content: flex-end;
    flex-wrap: wrap;
}
.bb-user-dash-jump--inline .bb-user-dash-jump-link {
    padding: 0.28rem 0.65rem;
    font-size: 0.74rem;
}
.bb-user-dash-section-lead--tight {
    margin: 0 0 0.65rem !important;
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
}
.bb-user-dash-personal-foot {
    font-size: 0.78rem;
    line-height: 1.55;
}
.bb-user-dash-pager-wrap {
    margin-top: 0.75rem;
}
.bb-user-dash-pager .page-link {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
}
.bb-user-dash-pager .page-item.active .page-link {
    background: var(--bb-green);
    border-color: var(--bb-green);
}
.bb-user-dash-pager--ltr {
    direction: ltr;
}
.bb-user-dash-pager--ltr .pagination {
    margin-bottom: 0;
    justify-content: center;
}
.bb-corp-dash-chart-card--compact {
    padding: 0.85rem 0.95rem 0.9rem;
}
.bb-corp-dash-chart-wrap--short {
    min-height: 130px;
    margin: 0;
}
.bb-corp-stat-tile--compact {
    min-height: 0;
    padding: 0.65rem 0.75rem;
}
.bb-corp-stat-tile--compact .bb-corp-stat-tile-value {
    font-size: 1.35rem;
}
.bb-corp-dash-list-heading--tight {
    margin: 0 0 0.5rem;
    padding-bottom: 0.35rem;
    font-size: 0.98rem;
}
.bb-user-dash-spotlight--compact {
    padding: 0.85rem 1rem !important;
    margin-bottom: 0 !important;
}
.bb-user-dash-spotlight--compact .bb-corp-dash-spotlight-icon {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.25rem;
}
.bb-corp-dash-spotlight-text--short {
    margin: 0 0 0.55rem !important;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
}
.bb-user-dash-chip-muted {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: var(--bb-text-muted);
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.75);
}
.bb-user-dash-spotlight--after-work {
    margin-top: 0.15rem;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: rgba(45, 157, 110, 0.14);
    background: linear-gradient(128deg, #f8fffc 0%, #fff 40%, #f0f9ff 100%);
}
.bb-personal-hub-card--dash {
    min-height: 5.1rem;
    padding: 1rem 1.1rem !important;
    border-radius: 18px !important;
}
.bb-personal-hub-card--dash .bb-personal-hub-card-icon {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 14px;
    font-size: 1.2rem;
}
.bb-user-dash-inq-secondary {
    min-height: 2.55rem !important;
    font-weight: 600 !important;
}
.bb-user-dash-top-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.35rem;
    padding: 1.35rem 1.4rem 1.4rem;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.97) 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
        0 14px 40px rgba(26, 54, 93, 0.09),
        0 4px 12px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
    animation: bb-user-dash-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bb-user-dash-top-card::before {
    content: '';
    position: absolute;
    inset-inline-end: -20%;
    inset-block-start: -60%;
    width: 55%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(45, 157, 110, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.bb-user-dash-top-card-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    min-width: 0;
}
.bb-user-dash-avatar {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: #fff;
    background: linear-gradient(145deg, var(--bb-navy) 0%, #2d4a6f 50%, var(--bb-green-dark) 100%);
    box-shadow: 0 10px 28px rgba(26, 54, 93, 0.28);
}
.bb-user-dash-greeting {
    min-width: 0;
}
.bb-user-dash-kicker {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bb-green-dark);
    margin: 0 0 0.25rem;
    opacity: 0.92;
}
.bb-user-dash-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bb-green);
    box-shadow: 0 0 0 3px rgba(45, 157, 110, 0.22);
    animation: bb-user-dash-pulse 2.4s ease-in-out infinite;
}
@keyframes bb-user-dash-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(0.92);
    }
}
.bb-user-dash-name {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--bb-navy);
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}
.bb-user-dash-tagline {
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--bb-text-muted);
    margin: 0;
    max-width: 36rem;
}
.bb-user-dash-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}
.bb-user-dash-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}
.bb-user-dash-action i {
    font-size: 1.05rem;
    opacity: 0.95;
}
.bb-user-dash-action--neutral {
    color: var(--bb-navy-soft);
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(203, 213, 225, 0.85);
    box-shadow: 0 4px 14px rgba(26, 54, 93, 0.06);
}
.bb-user-dash-action--neutral:hover {
    color: var(--bb-navy);
    border-color: rgba(45, 157, 110, 0.35);
    box-shadow: 0 8px 22px rgba(26, 54, 93, 0.1);
    transform: translateY(-2px);
}
.bb-user-dash-action--primary {
    color: #fff !important;
    background: linear-gradient(145deg, var(--bb-green) 0%, var(--bb-green-dark) 100%) !important;
    border-color: rgba(45, 157, 110, 0.4) !important;
    box-shadow: 0 8px 24px rgba(45, 157, 110, 0.35);
}
.bb-user-dash-action--primary:hover {
    color: #fff !important;
    filter: brightness(1.03);
    box-shadow: 0 12px 28px rgba(45, 157, 110, 0.4);
    transform: translateY(-2px);
}
.bb-user-dash-spotlight {
    animation: bb-user-dash-rise 0.55s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
    border-radius: 20px !important;
    border: 1px solid rgba(45, 157, 110, 0.12) !important;
    box-shadow:
        0 12px 36px rgba(26, 54, 93, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}
.bb-user-dash-panel {
    padding: 1.05rem 1.15rem 1.15rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 12px 36px rgba(26, 54, 93, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: bb-user-dash-rise 0.55s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bb-dash-personal-section--embedded.bb-user-dash-panel {
    animation-delay: 0.14s;
}
.bb-dash-section-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--bb-navy);
    margin: 0 0 0.65rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    row-gap: 0.35rem;
    letter-spacing: -0.02em;
}
.bb-dash-section-title-icon {
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--bb-green-light), #e2e8f0);
    color: var(--bb-green-dark);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(45, 157, 110, 0.12);
}
#bb-dash-corporate-title .bb-dash-section-title-icon {
    background: linear-gradient(145deg, #e8eef5, #cbd5e1);
    color: var(--bb-navy);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.12);
}
#bb-dash-personal-title .bb-dash-section-title-icon {
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    color: var(--bb-green-dark);
}
.bb-user-dash-section-lead {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--bb-text-muted);
    margin: 0 0 1.1rem;
    max-width: 40rem;
}
.bb-user-dash-hint-card {
    padding: 1.25rem 1.35rem;
    border-radius: 18px;
    background: linear-gradient(125deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 45%, rgba(236, 253, 245, 0.5) 100%);
    border: 1px solid rgba(26, 54, 93, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.bb-user-dash-hint-title {
    font-weight: 800;
    color: var(--bb-navy);
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
}
.bb-user-dash-hint-text {
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--bb-text-muted);
    margin: 0 0 0.85rem;
}
.bb-user-dash-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.75rem 0 1.5rem;
}
.bb-user-dash-divider-line {
    display: block;
    width: 100%;
    max-width: 280px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(45, 157, 110, 0.35) 22%,
        rgba(26, 54, 93, 0.35) 50%,
        rgba(45, 157, 110, 0.35) 78%,
        transparent
    );
    opacity: 0.85;
}
.bb-user-dash-jump {
    position: sticky;
    top: calc(var(--bb-navbar-h, 70px) + 0.35rem);
    z-index: 1015;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 1.25rem;
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 26px rgba(26, 54, 93, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.bb-user-dash-jump-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bb-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.bb-user-dash-jump-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.bb-user-dash-jump-link {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--bb-navy-soft);
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.65);
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.bb-user-dash-jump-link:hover {
    color: var(--bb-navy);
    border-color: rgba(45, 157, 110, 0.35);
    background: #fff;
    box-shadow: 0 4px 14px rgba(26, 54, 93, 0.08);
}
.bb-user-dash-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.35rem;
}
.bb-user-dash-section-title--grow {
    flex: 1;
    min-width: min(100%, 220px);
    margin-bottom: 0 !important;
}
.bb-user-dash-personal-grid .bb-personal-hub-card {
    width: 100%;
}
.bb-user-dash-count-badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    color: var(--bb-navy);
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    border: 1px solid rgba(45, 157, 110, 0.22);
    box-shadow: 0 2px 10px rgba(45, 157, 110, 0.1);
}
.bb-user-dash-card-hint {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--bb-text-muted);
    margin: -0.35rem 0 0.85rem;
}
.bb-user-dash-list-hint {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--bb-text-muted);
    margin: -0.25rem 0 1rem;
    max-width: 44rem;
}
.bb-user-dash-list-hint strong {
    color: var(--bb-navy);
    font-weight: 800;
}
.bb-user-dash-micro {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bb-green-dark);
    margin: 0 0 1rem;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: rgba(45, 157, 110, 0.07);
    border: 1px solid rgba(45, 157, 110, 0.12);
    width: fit-content;
    max-width: 100%;
}
.bb-user-dash-cta-primary {
    min-height: 2.65rem;
    padding-inline: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(45, 157, 110, 0.28) !important;
}
.bb-user-dash-cta-secondary {
    min-height: 2.65rem;
    border-radius: 12px !important;
    font-weight: 600 !important;
}
.bb-user-dash-inq-primary {
    min-height: 2.75rem;
    font-weight: 700 !important;
}
.bb-user-dash-text-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bb-navy);
    text-decoration: none;
    border-bottom: 1px dashed rgba(26, 54, 93, 0.35);
}
.bb-user-dash-text-link:hover {
    color: var(--bb-green-dark);
    border-bottom-color: rgba(45, 157, 110, 0.55);
}
.bb-user-dash-empty-secondary {
    font-size: 0.9rem;
}
.bb-personal-hub-help-title--dash {
    font-size: 0.95rem;
}
.bb-user-dash-anchor-target:target {
    animation: bb-user-dash-target 1.1s ease;
}
@keyframes bb-user-dash-target {
    0% {
        box-shadow:
            0 12px 36px rgba(26, 54, 93, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.88),
            0 0 0 0 rgba(45, 157, 110, 0);
    }
    35% {
        box-shadow:
            0 12px 36px rgba(26, 54, 93, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.88),
            0 0 0 3px rgba(45, 157, 110, 0.35);
    }
    100% {
        box-shadow:
            0 12px 36px rgba(26, 54, 93, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.88),
            0 0 0 0 rgba(45, 157, 110, 0);
    }
}
.bb-user-dash-action:focus-visible,
.bb-user-dash-jump-link:focus-visible,
.bb-personal-hub-card:focus-visible {
    outline: 2px solid var(--bb-green);
    outline-offset: 3px;
}
.bb-corp-inq-card:focus-within {
    border-color: rgba(45, 157, 110, 0.28);
    box-shadow: 0 14px 40px rgba(26, 54, 93, 0.11);
}
@media (prefers-reduced-motion: reduce) {
    .bb-user-dash-top-card,
    .bb-user-dash-spotlight,
    .bb-user-dash-panel,
    .bb-dash-personal-section--embedded.bb-user-dash-panel {
        animation: none;
    }
    .bb-user-dash-kicker-dot {
        animation: none;
    }
    .bb-user-dash-action--neutral:hover,
    .bb-user-dash-action--primary:hover {
        transform: none;
    }
    .bb-user-dash-anchor-target:target {
        animation: none;
    }
}
@media (max-width: 991.98px) {
    .bb-user-dash-top-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .bb-user-dash-jump--inline {
        order: -1;
        justify-self: auto;
    }
    .bb-user-dash-jump--inline .bb-user-dash-jump-list {
        justify-content: center;
    }
    .bb-user-dash-actions {
        justify-content: center;
    }
}
@media (max-width: 576px) {
    .bb-user-dash-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .bb-user-dash-action {
        width: 100%;
        justify-content: center;
    }
    .bb-user-dash-panel {
        padding: 1.15rem 1.15rem 1.25rem;
    }
    .bb-user-dash-jump:not(.bb-user-dash-jump--inline) {
        flex-direction: column;
        align-items: stretch;
    }
    .bb-user-dash-jump:not(.bb-user-dash-jump--inline) .bb-user-dash-jump-list {
        justify-content: center;
    }
    .bb-user-dash-jump:not(.bb-user-dash-jump--inline) .bb-user-dash-jump-link {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }
}
.bb-corp-dashboard {
    position: relative;
    padding-bottom: 0.25rem;
}
.bb-corp-dash-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(26, 54, 93, 0.12);
}
.bb-corp-dash-toolbar-text {
    min-width: 0;
}
.bb-corp-dash-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bb-green-dark);
    margin: 0 0 0.35rem;
    opacity: 0.88;
}
.bb-corp-dash-heading {
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 800;
    color: var(--bb-navy);
    margin: 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.bb-corp-dash-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--bb-green-light), #d4ede2);
    color: var(--bb-green-dark);
    font-size: 1.05rem;
    box-shadow: 0 3px 10px rgba(45, 157, 110, 0.18);
}
.bb-corp-dash-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}
.bb-corp-dash-btn-ghost {
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 0.48rem 1.1rem !important;
    border: 1.5px solid var(--bb-border) !important;
    color: var(--bb-navy-soft) !important;
    background: rgba(255, 255, 255, 0.75) !important;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s !important;
}
.bb-corp-dash-btn-ghost:hover {
    border-color: rgba(45, 157, 110, 0.35) !important;
    color: var(--bb-navy) !important;
    box-shadow: 0 6px 18px rgba(26, 54, 93, 0.08) !important;
    transform: translateY(-1px);
}
.bb-corp-dash-btn-primary {
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 0.5rem 1.2rem !important;
    box-shadow: 0 6px 20px rgba(45, 157, 110, 0.28) !important;
}
.bb-corp-dash-spotlight {
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
    padding: 1.35rem 1.35rem 1.4rem;
    margin-bottom: 1.75rem;
    border-radius: 18px;
    background: linear-gradient(125deg, #f0f7ff 0%, #fff 38%, #f0fdf6 100%);
    border: 1px solid rgba(26, 54, 93, 0.08);
    box-shadow: 0 8px 28px rgba(26, 54, 93, 0.07);
    position: relative;
    overflow: hidden;
}
.bb-corp-dash-spotlight::before {
    content: '';
    position: absolute;
    inset-inline-end: -15%;
    inset-block-start: -40%;
    width: 45%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(45, 157, 110, 0.09) 0%, transparent 65%);
    pointer-events: none;
}
.bb-corp-dash-spotlight-icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(145deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    box-shadow: 0 8px 22px rgba(45, 157, 110, 0.32);
    position: relative;
    z-index: 1;
}
.bb-corp-dash-spotlight-body {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.bb-corp-dash-spotlight-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--bb-navy);
    margin: 0 0 0.45rem;
}
.bb-corp-dash-spotlight-text {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--bb-text-muted);
    margin: 0 0 0.85rem;
}
.bb-corp-dash-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.bb-corp-dash-empty {
    text-align: center;
    padding: 2.5rem 1.5rem 2.75rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px dashed rgba(26, 54, 93, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.bb-corp-dash-empty-visual {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: var(--bb-green-dark);
    background: linear-gradient(145deg, var(--bb-green-light) 0%, #d4ede2 100%);
    box-shadow: 0 8px 24px rgba(45, 157, 110, 0.15);
}
.bb-corp-dash-empty-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bb-navy);
    margin-bottom: 0.5rem;
}
.bb-corp-dash-empty-text {
    font-size: 0.9rem;
    color: var(--bb-text-muted);
    line-height: 1.75;
    max-width: 420px;
    margin: 0 auto 1.25rem;
}
.bb-corp-dash-empty-cta {
    border-radius: 14px !important;
    padding-inline: 1.5rem !important;
}
.bb-corp-dash-chart-card {
    height: 100%;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 32px rgba(26, 54, 93, 0.08);
    padding: 1.25rem 1.35rem 1.4rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.bb-corp-dash-chart-card:hover {
    box-shadow: 0 16px 44px rgba(26, 54, 93, 0.1);
    transform: translateY(-2px);
}
.bb-corp-dash-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--bb-navy);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
}
.bb-corp-dash-chart-wrap {
    position: relative;
    min-height: 200px;
    margin: 0 -0.25rem;
}
.bb-corp-stat-tile {
    border-radius: 14px;
    padding: 1rem 1.05rem;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(26, 54, 93, 0.06);
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bb-corp-stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 54, 93, 0.08);
}
.bb-corp-stat-tile-value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--bb-navy);
}
.bb-corp-stat-tile-label {
    font-size: 0.78rem;
    color: var(--bb-text-muted);
    margin-top: 0.25rem;
    line-height: 1.35;
}
.bb-corp-stat-tile--emerald {
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
}
.bb-corp-stat-tile--slate {
    background: linear-gradient(145deg, #f8fafc 0%, #e8eef5 100%);
}
.bb-corp-stat-tile--amber {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
}
.bb-corp-stat-tile--rose {
    background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 100%);
}
.bb-corp-dash-list-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--bb-navy);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--bb-green), var(--bb-navy)) 1;
    display: flex;
    align-items: center;
}
.bb-corp-inq-card {
    height: 100%;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 28px rgba(26, 54, 93, 0.07);
    padding: 1.2rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.2s;
}
.bb-corp-inq-card::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, var(--bb-navy), #64748b);
    opacity: 0.85;
}
.bb-corp-inq-card--health::before {
    background: linear-gradient(90deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
}
.bb-corp-inq-card--liability::before {
    background: linear-gradient(90deg, #1a365d 0%, #3d5a80 100%);
}
.bb-corp-inq-card--property::before {
    background: linear-gradient(90deg, #c2410c 0%, #ea580c 65%, #f59e0b 100%);
}
.bb-corp-inq-card--default::before {
    background: linear-gradient(90deg, #475569, #94a3b8);
}
.bb-corp-inq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(26, 54, 93, 0.12);
    border-color: rgba(45, 157, 110, 0.22);
}
.bb-corp-inq-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}
.bb-corp-inq-card-id {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--bb-text-muted);
}
.bb-corp-inq-card-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bb-navy-soft);
    margin-bottom: 0.35rem;
}
.bb-corp-inq-card-type-icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bb-green-light);
    color: var(--bb-green-dark);
    font-size: 0.9rem;
}
.bb-corp-inq-card--liability .bb-corp-inq-card-type-icon {
    background: #e8eef5;
    color: var(--bb-navy);
}
.bb-corp-inq-card--property .bb-corp-inq-card-type-icon {
    background: #ffedd5;
    color: #c2410c;
}
.bb-corp-inq-card-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--bb-navy);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}
.bb-corp-inq-card-meta {
    font-size: 0.82rem;
    color: var(--bb-text-muted);
    margin: 0 0 1rem;
}
.bb-corp-inq-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.bb-corp-inq-card-meta i {
    opacity: 0.65;
}
.bb-corp-inq-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.bb-corp-inq-card-hint {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--bb-text-muted);
    margin: 0 0 0.15rem;
    text-align: center;
}
.bb-corp-inq-card-actions .btn {
    border-radius: 11px !important;
    font-weight: 600;
}
@media (hover: none) {
    .bb-corp-dash-chart-card:hover,
    .bb-corp-stat-tile:hover,
    .bb-corp-inq-card:hover {
        transform: none;
    }
}
@media (max-width: 576px) {
    .bb-corp-dash-spotlight {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bb-corp-dash-spotlight-actions {
        justify-content: center;
    }
    .bb-corp-dash-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .bb-corp-dash-toolbar-actions {
        justify-content: stretch;
    }
    .bb-corp-dash-toolbar-actions .btn {
        flex: 1;
        justify-content: center;
    }
    .cw-body {
        margin-top: -2.25rem;
    }
    .bb-page-hero-body.cw-body {
        margin-top: -2.5rem;
    }
    .bb-page-hero-header.cw-header {
        padding-bottom: 4rem;
    }
}

/* انتخاب نوع بیمه */
.cw-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.cw-type-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s var(--bb-transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 20px rgba(26,54,93,0.08);
}
.cw-type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(45,157,110,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}
.cw-type-card:hover {
    border-color: var(--bb-green);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26,54,93,0.14);
    background: rgba(255,255,255,0.95);
}
.cw-type-card:hover::before { opacity: 1; }
.cw-type-card:hover .cw-type-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(45,157,110,0.25);
}
.cw-type-card:hover .cw-type-arrow {
    opacity: 1;
    transform: translateX(-4px);
}

.cw-type-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
    transition: all 0.35s var(--bb-transition);
    position: relative;
    z-index: 1;
}
.cw-type-icon.green {
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(45,157,110,0.25);
}
.cw-type-icon.navy {
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-soft) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(26,54,93,0.2);
}
.cw-type-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.cw-type-card p {
    color: var(--bb-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}
.cw-type-badge {
    display: inline-block;
    background: var(--bb-green-light);
    color: var(--bb-green-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.cw-type-card:nth-child(2) .cw-type-badge {
    background: #e8eef5;
    color: var(--bb-navy);
}
.cw-type-card:nth-child(3) .cw-type-badge {
    background: #e6f4ee;
    color: var(--bb-green-dark);
}
.cw-type-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bb-green);
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 1.25rem;
    opacity: 0;
    transition: all 0.3s var(--bb-transition);
    position: relative;
    z-index: 1;
}

/* تایم‌لاین مراحل */
.cw-timeline-section {
    padding: 3rem 0 1rem;
}
.cw-timeline-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin-bottom: 2rem;
}
.cw-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}
.cw-timeline-step {
    flex: 0 0 auto;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}
.cw-timeline-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bb-bg-alt);
    border: 2px solid var(--bb-border);
    color: var(--bb-text-muted);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    transition: all 0.3s var(--bb-transition);
}
.cw-timeline-step.active .cw-timeline-dot {
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    border-color: var(--bb-green);
    color: #fff;
    box-shadow: 0 4px 15px rgba(45,157,110,0.3);
}
.cw-timeline-step.done .cw-timeline-dot {
    background: var(--bb-green-light);
    border-color: var(--bb-green);
    color: var(--bb-green-dark);
}
.cw-timeline-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bb-text-muted);
    max-width: 90px;
    margin: 0 auto;
    line-height: 1.4;
}
.cw-timeline-step.active .cw-timeline-label {
    color: var(--bb-green-dark);
}
.cw-timeline-connector {
    width: 40px;
    height: 2px;
    background: var(--bb-border);
    margin-top: 22px;
    flex-shrink: 0;
}
.cw-timeline-connector.done {
    background: var(--bb-green);
}

/* ============================================================ */
/* ★★★  PREMIUM WIZARD STEPS  (نسخه شیک‌تر و حرفه‌ای‌تر) ★★★  */
/* ============================================================ */
.cw-timeline-section--shell {
    background: linear-gradient(180deg, rgba(45,157,110,0.04) 0%, rgba(26,54,93,0.02) 100%);
    border-radius: 24px;
    padding: 1.75rem 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(45,157,110,0.08);
    position: relative;
    overflow: hidden;
}
.cw-timeline-section--shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 0%, rgba(45,157,110,0.10), transparent 50%),
        radial-gradient(circle at 90% 100%, rgba(26,54,93,0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.cw-timeline-section--shell > * { position: relative; z-index: 1; }

.cw-timeline {
    --cw-step-size: 52px;
    --cw-line-thickness: 4px;
    --cw-line-color: rgba(26,54,93,0.10);
    --cw-line-active: linear-gradient(90deg, #2d9d6e, #1a365d);
    align-items: flex-start;
    position: relative;
    padding-top: 4px;
}

/* خط پس‌زمینه‌ی پیوسته (پایه + پیشرفت) */
.cw-timeline::before,
.cw-timeline::after {
    content: '';
    position: absolute;
    top: calc(var(--cw-step-size) / 2 - var(--cw-line-thickness) / 2 + 4px);
    height: var(--cw-line-thickness);
    border-radius: var(--cw-line-thickness);
    z-index: 0;
}
.cw-timeline::before {
    left: 5%;
    right: 5%;
    background: var(--cw-line-color);
}
.cw-timeline::after {
    background: var(--cw-line-active);
    box-shadow: 0 2px 12px rgba(45,157,110,0.35);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* پر شدن پویا با data-progress (در PHP set می‌شود) */
.cw-timeline[data-progress="0"]::after  { left:5%; width:0%; opacity:0; }
.cw-timeline[data-progress="10"]::after { left:5%; width:9%; }
.cw-timeline[data-progress="20"]::after { left:5%; width:18%; }
.cw-timeline[data-progress="25"]::after { left:5%; width:22.5%; }
.cw-timeline[data-progress="30"]::after { left:5%; width:27%; }
.cw-timeline[data-progress="33"]::after { left:5%; width:30%; }
.cw-timeline[data-progress="40"]::after { left:5%; width:36%; }
.cw-timeline[data-progress="50"]::after { left:5%; width:45%; }
.cw-timeline[data-progress="60"]::after { left:5%; width:54%; }
.cw-timeline[data-progress="66"]::after { left:5%; width:59.5%; }
.cw-timeline[data-progress="70"]::after { left:5%; width:63%; }
.cw-timeline[data-progress="75"]::after { left:5%; width:67.5%; }
.cw-timeline[data-progress="80"]::after { left:5%; width:72%; }
.cw-timeline[data-progress="90"]::after { left:5%; width:81%; }
.cw-timeline[data-progress="100"]::after { left:5%; width:90%; }

/* استپ‌ها */
.cw-timeline-step {
    flex: 1 1 0;
    padding: 0 0.5rem;
    z-index: 1;
}
.cw-timeline-dot {
    width: var(--cw-step-size);
    height: var(--cw-step-size);
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(26,54,93,0.12);
    color: rgba(26,54,93,0.5);
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(15,39,68,0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.cw-timeline-step:hover .cw-timeline-dot {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15,39,68,0.14);
}
/* استپ فعال — pulsing ring + بزرگ‌نمایی */
.cw-timeline-step.active .cw-timeline-dot {
    background: linear-gradient(135deg, #2d9d6e 0%, #1a365d 100%);
    border-color: #fff;
    color: #fff;
    transform: scale(1.15);
    box-shadow:
        0 0 0 4px rgba(45,157,110,0.18),
        0 8px 24px rgba(45,157,110,0.45);
    animation: cwPulseRing 2.4s ease-in-out infinite;
}
@keyframes cwPulseRing {
    0%, 100% { box-shadow: 0 0 0 4px rgba(45,157,110,0.18), 0 8px 24px rgba(45,157,110,0.45); }
    50%      { box-shadow: 0 0 0 10px rgba(45,157,110,0.04), 0 8px 24px rgba(45,157,110,0.45); }
}
/* استپ تکمیل‌شده */
.cw-timeline-step.done .cw-timeline-dot {
    background: linear-gradient(135deg, #2d9d6e 0%, #228763 100%);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(45,157,110,0.32);
}
.cw-timeline-step.done .cw-timeline-dot i { font-size: 1.2rem; animation: cwCheckPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes cwCheckPop {
    0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
    60%  { transform: scale(1.3) rotate(8deg);  opacity: 1; }
    100% { transform: scale(1) rotate(0);       opacity: 1; }
}

/* لیبل‌ها */
.cw-timeline-label {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bb-text-muted);
    max-width: 110px;
    line-height: 1.4;
    transition: color 0.25s ease;
}
.cw-timeline-step.active .cw-timeline-label {
    color: var(--bb-navy);
    font-weight: 700;
}
.cw-timeline-step.done .cw-timeline-label {
    color: var(--bb-green-dark);
}

/* شماره‌گر «گام X از N» بالا (به صورت اختیاری) */
.cw-progress-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(45,157,110,0.18);
    color: var(--bb-navy);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15,39,68,0.06);
    margin-bottom: 1rem;
}
.cw-progress-pill .cw-progress-pill-num {
    background: linear-gradient(135deg, #2d9d6e, #1a365d);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}
.cw-progress-pill .cw-progress-pill-bar {
    width: 80px;
    height: 5px;
    background: rgba(26,54,93,0.10);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}
.cw-progress-pill .cw-progress-pill-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, #2d9d6e, #1a365d);
    width: var(--cw-pill-progress, 0%);
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* حالت موبایل — اسکرول افقی با snap */
@media (max-width: 768px) {
    .cw-timeline-section--shell { padding: 1.25rem 0.75rem 1rem; }
    .cw-timeline {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding: 4px 4px 8px;
        scrollbar-width: none;
    }
    .cw-timeline::-webkit-scrollbar { display: none; }
    .cw-timeline::before, .cw-timeline::after { display: none; }
    .cw-timeline-step {
        flex: 0 0 96px;
        scroll-snap-align: center;
    }
    .cw-timeline-connector {
        display: block !important;
        flex: 0 0 18px;
        height: 4px;
        margin-top: 28px;
        border-radius: 4px;
        background: rgba(26,54,93,0.10);
    }
    .cw-timeline-connector.done {
        background: linear-gradient(90deg, #2d9d6e, #228763);
        box-shadow: 0 1px 4px rgba(45,157,110,0.3);
    }
    .cw-timeline-dot {
        --cw-step-size: 44px;
        font-size: 0.95rem;
    }
    .cw-timeline-label {
        font-size: 0.7rem !important;
        max-width: 88px !important;
    }
}

/* حالت compact برای نوارهای ۷+ گام */
.cw-timeline--compact {
    --cw-step-size: 44px;
}
.cw-timeline--compact .cw-timeline-dot {
    font-size: 0.92rem;
    border-width: 2.5px;
}
.cw-timeline--compact .cw-timeline-label {
    font-size: 0.72rem;
    margin-top: 0.65rem;
}

/* حالت ISSUANCE (نوار صدور) — رنگ سرمه‌ای */
.cw-timeline--issuance {
    --cw-line-active: linear-gradient(90deg, #1a365d, #0f2744);
}
.cw-timeline--issuance .cw-timeline-step.active .cw-timeline-dot {
    background: linear-gradient(135deg, #1a365d 0%, #0f2744 100%);
    box-shadow:
        0 0 0 4px rgba(26,54,93,0.18),
        0 8px 24px rgba(26,54,93,0.45);
    animation: cwPulseRingNavy 2.4s ease-in-out infinite;
}
@keyframes cwPulseRingNavy {
    0%, 100% { box-shadow: 0 0 0 4px rgba(26,54,93,0.18), 0 8px 24px rgba(26,54,93,0.45); }
    50%      { box-shadow: 0 0 0 10px rgba(26,54,93,0.04), 0 8px 24px rgba(26,54,93,0.45); }
}
.cw-timeline--issuance .cw-timeline-step.done .cw-timeline-dot {
    background: linear-gradient(135deg, #1a365d 0%, #0f2744 100%);
    box-shadow: 0 4px 14px rgba(26,54,93,0.32);
}
.cw-timeline--issuance .cw-timeline-step.active .cw-timeline-label,
.cw-timeline--issuance .cw-timeline-step.done .cw-timeline-label {
    color: var(--bb-navy);
}

/* سکشن اطلاعات */
.cw-info-section {
    padding: 2rem 0;
}
.cw-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.cw-info-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    transition: all 0.3s var(--bb-transition);
}
.cw-info-item:hover {
    background: rgba(255,255,255,0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,54,93,0.06);
}
.cw-info-item i {
    font-size: 1.35rem;
    color: var(--bb-green);
    flex-shrink: 0;
}
.cw-info-item:nth-child(even) i {
    color: var(--bb-navy);
}
.cw-info-item span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bb-navy);
}

/* کارت فرم ویزارد */
.cw-form-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(26,54,93,0.07);
    overflow: hidden;
    transition: box-shadow 0.3s var(--bb-transition);
}
.cw-form-card:hover {
    box-shadow: 0 8px 35px rgba(26,54,93,0.1);
}
.cw-form-card .cw-form-body {
    padding: 2rem 2.25rem;
}
.cw-form-card .cw-form-body .form-label,
.cw-form-card .cw-form-body .bb-form .form-label {
    font-weight: 600;
    color: var(--bb-navy);
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}
.cw-form-card .cw-form-body .form-control,
.cw-form-card .cw-form-body .form-select {
    border-radius: 12px;
    border: 1.5px solid var(--bb-border);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: var(--bb-bg);
    transition: all 0.25s var(--bb-transition);
}
.cw-form-card .cw-form-body .form-control:focus,
.cw-form-card .cw-form-body .form-select:focus {
    border-color: var(--bb-green);
    box-shadow: 0 0 0 4px rgba(45,157,110,0.1);
    background: #fff;
}

/* عنوان گروه فیلد */
.cw-field-group {
    margin-bottom: 1.75rem;
}
.cw-field-group-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--bb-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cw-field-group-title i {
    color: var(--bb-green);
    font-size: 1rem;
}

/* اکشن‌های فرم */
.cw-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 2.25rem;
    background: rgba(240,244,248,0.5);
    border-top: 1px solid rgba(226,232,240,0.6);
}
.cw-form-actions .btn {
    min-width: 160px;
}

/* باکس نکته داخل ویزارد */
.cw-notice {
    background: linear-gradient(135deg, var(--bb-green-light) 0%, #d4ede2 100%);
    border: 1px solid rgba(45,157,110,0.2);
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    color: var(--bb-green-dark);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.cw-notice i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.cw-notice.warning {
    background: linear-gradient(135deg, #fef9e8 0%, #fdf3d0 100%);
    border-color: rgba(232,200,74,0.3);
    color: #7d6b3a;
}

/* باکس وضعیت (مثل تایید/انتظار) */
.cw-status-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(26,54,93,0.07);
    padding: 3rem 2rem;
    text-align: center;
}
.cw-status-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}
.cw-status-icon.green {
    background: linear-gradient(135deg, var(--bb-green-light), #c6e8d6);
    color: var(--bb-green-dark);
}
.cw-status-icon.warning {
    background: linear-gradient(135deg, #fef9e8, #fdf3d0);
    color: #8b7a3a;
}
.cw-status-icon.navy {
    background: linear-gradient(135deg, #e8eef5, #d0dae8);
    color: var(--bb-navy);
}

@media (max-width: 991.98px) {
    .cw-type-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .cw-info-grid { grid-template-columns: 1fr; }
    .cw-header h1 { font-size: 1.6rem; }
    .cw-header { padding: 2.5rem 0 3.5rem; }
    .cw-timeline { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .cw-timeline-connector { width: 20px; }
    .cw-form-card .cw-form-body { padding: 1.5rem; }
    .cw-form-actions { padding: 1rem 1.5rem; flex-wrap: wrap; }
    .cw-form-actions .btn { min-width: auto; flex: 1; }
}

/* ============================================================ */
/* ★★★  PREMIUM FORM EXPERIENCE  (روند پر کردن اطلاعات شیک‌تر) ★★★  */
/* ============================================================ */

/* کارت فرم — pseudo border gradient */
.cw-form-card {
    background: #fff !important;
    backdrop-filter: none !important;
    border: 1px solid rgba(15,39,68,0.06) !important;
    box-shadow: 0 12px 40px rgba(15,39,68,0.06), 0 2px 6px rgba(15,39,68,0.04) !important;
    border-radius: 22px !important;
    position: relative;
}
.cw-form-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #2d9d6e 0%, #1a365d 100%);
    border-radius: 22px 22px 0 0; opacity: 0.85; pointer-events: none;
}
.cw-form-card .cw-form-body { padding: 2.25rem 2.5rem !important; }
@media (max-width: 768px) {
    .cw-form-card .cw-form-body { padding: 1.5rem 1.25rem !important; }
}

/* فیلدگروپ — کارت داخلی نرم با شماره خودکار */
.cw-form-body { counter-reset: cw-section; }
.cw-field-group {
    position: relative;
    background: linear-gradient(180deg, rgba(45,157,110,0.025) 0%, transparent 100%);
    border: 1px solid rgba(15,39,68,0.05);
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.25rem !important;
    margin-bottom: 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    counter-increment: cw-section;
}
.cw-field-group:hover {
    border-color: rgba(45,157,110,0.18);
    background: linear-gradient(180deg, rgba(45,157,110,0.04) 0%, transparent 100%);
    box-shadow: 0 6px 20px rgba(15,39,68,0.04);
}
.cw-field-group:focus-within {
    border-color: rgba(45,157,110,0.30);
    background: linear-gradient(180deg, rgba(45,157,110,0.05) 0%, #fff 100%);
    box-shadow: 0 8px 24px rgba(45,157,110,0.10);
}
@media (max-width: 768px) {
    .cw-field-group { padding: 1.15rem 1rem 1rem !important; border-radius: 14px; }
}

/* عنوان گروه — با شماره گردِ شیک */
.cw-field-group-title {
    font-size: 1rem !important; font-weight: 700;
    color: var(--bb-navy); margin-bottom: 1.25rem !important;
    padding-bottom: 0 !important; border-bottom: none !important;
    display: flex; align-items: center; gap: 0.75rem; line-height: 1.3;
}
.cw-field-group-title::before {
    content: counter(cw-section); flex-shrink: 0;
    width: 32px; height: 32px; border-radius: 10px;
    background: linear-gradient(135deg, #2d9d6e 0%, #1a365d 100%);
    color: #fff; font-size: 0.85rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(45,157,110,0.25);
}
.cw-field-group-title i {
    color: var(--bb-green-dark) !important;
    font-size: 1.05rem !important;
    background: rgba(45,157,110,0.10);
    padding: 4px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
}

/* لیبل‌ها */
.cw-form-card .cw-form-body .form-label,
.cw-form-card .cw-form-body .bb-form .form-label {
    font-weight: 600 !important;
    color: var(--bb-navy) !important;
    font-size: 0.86rem !important;
    margin-bottom: 0.45rem !important;
    display: flex; align-items: center; gap: 0.35rem;
    transition: color 0.2s ease;
}
.cw-form-card .cw-form-body .form-label .text-danger {
    font-size: 0.85rem; line-height: 1; vertical-align: middle;
}

/* فیلدها */
.cw-form-card .cw-form-body .form-control,
.cw-form-card .cw-form-body .form-select,
.cw-form-card .cw-form-body textarea.form-control {
    border-radius: 12px !important;
    border: 1.5px solid rgba(15,39,68,0.10) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.93rem !important;
    background: #fafbfc !important;
    box-shadow: 0 1px 2px rgba(15,39,68,0.02);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.cw-form-card .cw-form-body .form-control::placeholder {
    color: rgba(15,39,68,0.32);
    font-size: 0.88rem;
}
.cw-form-card .cw-form-body .form-control:hover,
.cw-form-card .cw-form-body .form-select:hover {
    border-color: rgba(45,157,110,0.30) !important;
    background: #fff !important;
}
.cw-form-card .cw-form-body .form-control:focus,
.cw-form-card .cw-form-body .form-select:focus,
.cw-form-card .cw-form-body textarea.form-control:focus {
    border-color: #2d9d6e !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(45,157,110,0.14), 0 4px 14px rgba(45,157,110,0.08) !important;
    outline: none;
    transform: translateY(-1px);
}

/* ست بودن مقدار — حالت سبز ملایم */
.cw-form-card .cw-form-body .form-control:not(:placeholder-shown):not(:focus):not(.is-invalid),
.cw-form-card .cw-form-body .form-select:not([data-empty="true"]):not(:focus):not(.is-invalid) {
    border-color: rgba(45,157,110,0.25);
    background: #fff;
}

/* فلش select شیک‌تر */
.cw-form-card .cw-form-body .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231a365d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: left 1rem center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    padding-left: 2.5rem !important;
}

/* textarea — قد پویا */
.cw-form-card .cw-form-body textarea.form-control {
    min-height: 90px;
    resize: vertical;
    line-height: 1.7;
}

/* number — حذف فلش‌های پیش‌فرض */
.cw-form-card .cw-form-body input[type="number"]::-webkit-inner-spin-button,
.cw-form-card .cw-form-body input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
}
.cw-form-card .cw-form-body input[type="number"] { -moz-appearance: textfield; }

/* فایل آپلود — استایل شبیه drag-and-drop */
.cw-form-card .cw-form-body input[type="file"].form-control {
    padding: 0 !important; cursor: pointer; background: #fafbfc !important;
}
.cw-form-card .cw-form-body input[type="file"].form-control::-webkit-file-upload-button {
    padding: 0.75rem 1.1rem; margin-left: 0.75rem;
    background: linear-gradient(135deg, #1a365d, #0f2744); color: #fff;
    border: none; border-radius: 0 11px 11px 0; cursor: pointer;
    font-weight: 600; font-size: 0.85rem; font-family: inherit;
    transition: filter 0.2s ease;
}
.cw-form-card .cw-form-body input[type="file"].form-control::-webkit-file-upload-button:hover { filter: brightness(1.1); }

/* radio و checkbox شیک */
.cw-form-card .cw-form-body .form-check { padding-right: 1.85rem; padding-left: 0; }
.cw-form-card .cw-form-body .form-check-input {
    width: 20px; height: 20px; margin-right: -1.85rem; margin-left: 0;
    margin-top: 0.15rem; border: 2px solid rgba(15,39,68,0.20);
    background-color: #fff; cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cw-form-card .cw-form-body .form-check-input:hover { border-color: var(--bb-green); }
.cw-form-card .cw-form-body .form-check-input:checked {
    background: linear-gradient(135deg, #2d9d6e, #1a365d);
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(45,157,110,0.14);
}
.cw-form-card .cw-form-body .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(45,157,110,0.18);
    border-color: var(--bb-green);
}
.cw-form-card .cw-form-body .form-check-label {
    font-weight: 500; color: #374151; cursor: pointer; font-size: 0.92rem;
    padding-right: 0.4rem;
}

/* radio inline در ردیف */
.cw-form-card .cw-form-body .form-check-inline {
    margin-left: 1.25rem;
    background: #fff; border: 1.5px solid rgba(15,39,68,0.08);
    padding: 0.5rem 1rem 0.5rem 0.85rem; border-radius: 10px;
    transition: all 0.2s ease;
}
.cw-form-card .cw-form-body .form-check-inline:hover {
    border-color: rgba(45,157,110,0.30); background: rgba(45,157,110,0.03);
}
.cw-form-card .cw-form-body .form-check-inline:has(.form-check-input:checked) {
    border-color: var(--bb-green);
    background: linear-gradient(135deg, rgba(45,157,110,0.06), rgba(45,157,110,0.10));
    box-shadow: 0 4px 10px rgba(45,157,110,0.10);
}

/* validation: error */
.cw-form-card .cw-form-body .form-control.is-invalid,
.cw-form-card .cw-form-body .form-select.is-invalid {
    border-color: #ef4444 !important;
    background-color: rgba(239,68,68,0.03) !important;
    background-image: none !important;
    padding-left: 1rem !important;
}
.cw-form-card .cw-form-body .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239,68,68,0.14) !important;
}
.cw-form-card .cw-form-body .invalid-feedback {
    font-size: 0.78rem; color: #b91c1c; font-weight: 600; margin-top: 0.4rem;
    display: flex; align-items: center; gap: 0.3rem; animation: cwFieldShake 0.4s ease-in-out;
}
.cw-form-card .cw-form-body .invalid-feedback::before {
    content: ''; width: 14px; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b91c1c'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zM7.5 4.5a.5.5 0 0 1 1 0v4a.5.5 0 0 1-1 0v-4zM8 11.75a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75z'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}
@keyframes cwFieldShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

/* hint کوچک زیر فیلد */
.cw-form-card .cw-form-body .form-text,
.cw-form-card .cw-form-body .small.text-muted {
    font-size: 0.74rem; color: rgba(15,39,68,0.55);
    margin-top: 0.35rem; display: flex; align-items: flex-start; gap: 0.3rem;
    line-height: 1.55;
}

/* error summary بالای فرم */
.cw-form-card .alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid rgba(239,68,68,0.22); color: #991b1b;
    border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.cw-form-card .alert-danger ul { margin: 0.4rem 0 0; padding-right: 1.2rem; font-size: 0.85rem; }

/* اکشن‌ها */
.cw-form-actions {
    padding: 1.5rem 2.5rem !important;
    background: linear-gradient(180deg, transparent 0%, rgba(45,157,110,0.04) 100%) !important;
    border-top: 1px solid rgba(15,39,68,0.06) !important;
    gap: 1rem !important;
}
.cw-form-actions .btn { padding: 0.85rem 1.5rem; border-radius: 12px; font-weight: 700; }
.cw-form-actions .btn-bb-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2d9d6e 100%) !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(45,157,110,0.24) !important;
    transition: all 0.25s ease;
}
.cw-form-actions .btn-bb-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(45,157,110,0.36) !important;
}
.cw-form-actions .btn-bb-outline {
    border: 1.5px solid rgba(15,39,68,0.12) !important; background: #fff;
    color: var(--bb-navy) !important; font-weight: 600;
}
.cw-form-actions .btn-bb-outline:hover {
    border-color: var(--bb-green) !important;
    color: var(--bb-green-dark) !important;
    background: rgba(45,157,110,0.04);
}
@media (max-width: 768px) {
    .cw-form-actions { padding: 1rem 1.25rem !important; }
}

/* انیمیشن ورود گروه‌ها */
.cw-field-group {
    animation: cwFieldGroupIn 0.45s cubic-bezier(0.34, 1.20, 0.64, 1) backwards;
}
.cw-field-group:nth-child(1) { animation-delay: 0.05s; }
.cw-field-group:nth-child(2) { animation-delay: 0.10s; }
.cw-field-group:nth-child(3) { animation-delay: 0.15s; }
.cw-field-group:nth-child(4) { animation-delay: 0.20s; }
.cw-field-group:nth-child(5) { animation-delay: 0.25s; }
.cw-field-group:nth-child(6) { animation-delay: 0.30s; }
.cw-field-group:nth-child(7) { animation-delay: 0.35s; }
@keyframes cwFieldGroupIn {
    0%   { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* بَج «اختیاری» در کنار لیبل (اضافه‌ای، در فرم‌ها قابل استفاده) */
.cw-form-card .cw-form-body .form-label .label-optional {
    background: rgba(15,39,68,0.08); color: var(--bb-text-muted);
    font-size: 0.65rem; font-weight: 600; padding: 1px 8px; border-radius: 100px;
    margin-right: auto;
}

/* progress bar داخل فرم برای فرم‌های طولانی (در صورت استفاده) */
.cw-form-progress {
    position: sticky; top: 60px; z-index: 5;
    height: 4px; background: rgba(15,39,68,0.06); margin: -2.25rem -2.5rem 2rem;
    border-radius: 0;
}
.cw-form-progress::after {
    content: ''; display: block; height: 100%;
    width: var(--cw-progress, 0%);
    background: linear-gradient(90deg, #2d9d6e, #1a365d);
    box-shadow: 0 1px 8px rgba(45,157,110,0.4);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ست شدن خودکار attr data-empty روی select (با JS کوچک پایین) */

/* ========== صفحهٔ تمام‌عرض چت (UX) ========== */
.bb-app-hub {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    min-width: 0;
}
.bb-app-hub .row > [class*='col-'] {
    min-width: 0;
}
.bb-chat-page-shell {
    border-radius: var(--bb-radius-lg);
    box-shadow: 0 14px 44px rgba(26, 54, 93, 0.1), 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
}
.bb-chat-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem 1rem 1.35rem;
    background: linear-gradient(120deg, rgba(26, 54, 93, 0.04) 0%, rgba(45, 157, 110, 0.06) 55%, rgba(255, 255, 255, 0.92) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.bb-chat-page-header-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.bb-chat-page-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--bb-navy) 0%, #2d4a6f 100%);
    color: #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(26, 54, 93, 0.22);
}
.bb-chat-page-title {
    font-weight: 800;
    color: var(--bb-navy);
    letter-spacing: -0.02em;
}
.bb-chat-page-slug {
    font-size: 0.8rem;
    line-height: 1.45;
}
.bb-chat-page-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(113, 128, 150, 0.12);
    color: var(--bb-text-muted);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.bb-chat-page-status--online {
    background: rgba(45, 157, 110, 0.12);
    color: var(--bb-green-dark);
    border-color: rgba(45, 157, 110, 0.25);
}
.bb-chat-page-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}
.bb-chat-page-status--online .bb-chat-page-status-dot {
    background: var(--bb-green);
    box-shadow: 0 0 0 3px rgba(45, 157, 110, 0.25);
    animation: bb-chat-pulse-dot 1.8s ease-out infinite;
}
@keyframes bb-chat-pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
    .bb-chat-page-status--online .bb-chat-page-status-dot {
        animation: none;
    }
}
.bb-chat-page-messages {
    position: relative;
    overflow-y: auto;
    min-height: clamp(280px, 38vh, 420px);
    max-height: min(55vh, 520px);
    scroll-behavior: smooth;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.97) 0%, rgba(241, 245, 249, 0.55) 100%),
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(45, 157, 110, 0.06) 0%, transparent 55%);
}
.bb-chat-page-inner {
    min-height: min(320px, 45vh);
}
.bb-chat-page-inner:empty {
    min-height: 0;
}
.bb-chat-page-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem 2.5rem;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.bb-chat-page-empty.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.bb-chat-page-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(145deg, #fff 0%, var(--bb-green-light) 100%);
    color: var(--bb-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(45, 157, 110, 0.12);
}
.bb-chat-page-empty h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--bb-navy);
    margin-bottom: 0.35rem;
}
.bb-chat-page-empty p {
    font-size: 0.88rem;
    color: var(--bb-text-muted);
    max-width: 26rem;
    line-height: 1.75;
    margin-bottom: 0;
}
.bb-chat-page-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(248, 250, 252, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.bb-chat-page-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.bb-chat-page-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    color: var(--bb-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.bb-chat-page-spinner {
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid rgba(45, 157, 110, 0.2);
    border-top-color: var(--bb-green);
    border-radius: 50%;
    animation: bb-chat-spin 0.75s linear infinite;
}
@keyframes bb-chat-spin {
    to { transform: rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .bb-chat-page-spinner { animation: none; border-top-color: var(--bb-green-dark); opacity: 0.7; }
}
.bb-chat-bubble {
    max-width: min(88%, 34rem);
    position: relative;
    z-index: 3;
}
.bb-chat-bubble-body {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.75;
    box-shadow: 0 2px 12px rgba(26, 54, 93, 0.06);
}
.bb-chat-bubble-me .bb-chat-bubble-body {
    background: linear-gradient(145deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    color: #fff;
    border-bottom-left-radius: 5px;
}
.bb-chat-bubble-them .bb-chat-bubble-body {
    background: #fff;
    color: var(--bb-text);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-bottom-right-radius: 5px;
}
.bb-chat-bubble-sender {
    margin-bottom: 0.3rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--bb-text-muted);
}
.bb-chat-page-composer {
    padding: 0.85rem 1rem 0.65rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}
.bb-chat-page-composer .form-control {
    border-radius: 14px;
    border: 1.5px solid var(--bb-border);
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bb-chat-page-composer .form-control:focus {
    border-color: rgba(45, 157, 110, 0.45);
    box-shadow: 0 0 0 4px rgba(45, 157, 110, 0.12);
}
.bb-chat-page-composer .btn-bb-primary {
    border-radius: 14px;
    padding-inline: 1.15rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(45, 157, 110, 0.25);
}
.bb-chat-page-composer .btn-bb-primary:disabled {
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}
.bb-chat-page-composer-hint {
    font-size: 0.72rem;
    color: var(--bb-text-muted);
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    line-height: 1.5;
}
.bb-chat-page-composer-hint kbd {
    font-family: inherit;
    font-size: 0.68rem;
    padding: 0.12rem 0.38rem;
    border-radius: 6px;
    background: rgba(26, 54, 93, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: var(--bb-navy-soft);
}
.bb-chat-page-foot {
    font-size: 0.78rem;
    color: var(--bb-text-muted);
    background: #fff !important;
}
.bb-chat-page-foot a {
    font-weight: 600;
}
@media (max-width: 575.98px) {
    .bb-chat-page-messages {
        min-height: 240px;
        max-height: 50vh;
    }
    .bb-chat-bubble { max-width: 92%; }
    .bb-chat-page-composer .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    .bb-chat-page-composer .btn-bb-primary {
        width: 100%;
    }
}

/* Select2 — فیلد «شرکت بیمه فعلی» */
.bb-select2-current-insurer-wrap {
    width: 100% !important;
}
.bb-select2-current-insurer-wrap .select2-selection--single {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 2.5rem 0.375rem 0.75rem;
    border: 1px solid var(--bb-border, #dee2e6);
    border-radius: var(--bb-radius, 0.5rem);
    background-color: #fff;
}
.bb-select2-current-insurer-wrap .select2-selection__rendered {
    padding-right: 0;
    line-height: 1.5;
    color: var(--bb-navy, #1a365d);
}
.bb-select2-current-insurer-wrap.select2-container--focus .select2-selection--single,
.bb-select2-current-insurer-wrap.select2-container--open .select2-selection--single {
    border-color: rgba(45, 157, 110, 0.55);
    box-shadow: 0 0 0 3px rgba(45, 157, 110, 0.12);
}
.bb-select2-current-insurer-wrap .select2-selection__arrow {
    height: 100%;
    left: 0.6rem;
    right: auto;
}
.bb-select2-current-insurer + span.select2-container {
    margin-bottom: 0;
}

/* ===== Payment Gateway Selector ===== */
.bb-pay-gateways { margin-top: 1.1rem; }
.bb-pay-gateways-title {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.88rem; font-weight: 700; color: var(--bb-navy);
    margin-bottom: 0.6rem;
}
.bb-pay-gateways-title i { color: var(--bb-green); }
.bb-pay-gateways-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}
.bb-pay-gateway { margin: 0; cursor: pointer; }
.bb-pay-gateway input { display: none; }
.bb-pay-gateway-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.45rem;
    padding: 0.95rem 0.65rem;
    background: var(--bb-white);
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius-sm);
    transition: all 0.15s ease;
    min-height: 92px;
    text-align: center;
}
.bb-pay-gateway-card i { font-size: 1.4rem; color: var(--bb-navy); }
.bb-pay-gateway-card img { max-height: 32px; max-width: 100%; object-fit: contain; }
.bb-pay-gateway-name { font-size: 0.85rem; font-weight: 600; color: var(--bb-navy); }
.bb-pay-gateway-badge {
    position: absolute; top: -8px; inset-inline-end: 8px;
    background: var(--bb-green); color: #fff;
    font-size: 0.62rem; font-weight: 700;
    padding: 0.15rem 0.5rem; border-radius: 999px;
    box-shadow: 0 2px 6px -2px rgba(0,0,0,0.2);
}
.bb-pay-gateway input:checked + .bb-pay-gateway-card {
    border-color: var(--bb-green);
    background: var(--bb-green-light);
    box-shadow: 0 6px 16px -8px rgba(45,157,110,0.4);
    transform: translateY(-1px);
}

/* ===== Compare — Row Layout + Side Filters ===== */
.bb-compare-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    align-items: start;
}
.bb-compare-side {
    position: sticky;
    top: 1rem;
    background: var(--bb-white);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}
.bb-compare-side-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--bb-navy);
    border-bottom: 1px solid var(--bb-border);
    padding-bottom: 0.6rem;
}
.bb-compare-side-head i { color: var(--bb-green); font-size: 1.1rem; }
.bb-compare-side-head span { flex: 1; }
.bb-compare-side-reset {
    border: 1px solid var(--bb-border);
    background: var(--bb-bg);
    color: var(--bb-text-muted);
    width: 28px; height: 28px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.bb-compare-side-reset:hover { color: var(--bb-navy); border-color: var(--bb-navy); background: var(--bb-white); }

.bb-compare-side-section { display: flex; flex-direction: column; gap: 0.55rem; }
.bb-compare-side-title { font-size: 0.82rem; font-weight: 600; color: var(--bb-text-muted); }

.bb-compare-level-options { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.bb-compare-level-opt { margin: 0; cursor: pointer; }
.bb-compare-level-opt input { display: none; }
.bb-compare-level-chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    background: var(--bb-bg);
    border: 1px solid var(--bb-border);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--bb-text-muted);
    transition: all 0.15s ease;
}
.bb-compare-level-opt input:checked + .bb-compare-level-chip {
    background: var(--bb-green-light);
    border-color: var(--bb-green);
    color: var(--bb-green-dark);
    font-weight: 600;
}

.bb-compare-companies { display: flex; flex-direction: column; gap: 0.35rem; max-height: 180px; overflow-y: auto; padding-inline-end: 0.25rem; }
.bb-compare-checkbox {
    display: flex; align-items: center; gap: 0.5rem;
    cursor: pointer; margin: 0;
    font-size: 0.85rem;
    color: var(--bb-text);
    padding: 0.3rem 0.4rem;
    border-radius: var(--bb-radius-sm);
    transition: background 0.15s ease;
}
.bb-compare-checkbox:hover { background: var(--bb-bg); }
.bb-compare-checkbox input { accent-color: var(--bb-green); }

.bb-compare-range .form-range { width: 100%; }
.bb-compare-range-labels { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8rem; color: var(--bb-text-muted); margin-top: 0.25rem; }
.bb-compare-range-labels strong { color: var(--bb-navy); font-size: 0.95rem; }

/* ردیف‌های طرح‌ها */
.bb-compare-list { display: flex; flex-direction: column; gap: 0.85rem; }
.bb-compare-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1.6fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr);
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--bb-white);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}
.bb-compare-row:hover { transform: translateY(-2px); box-shadow: var(--bb-shadow-lg); border-color: var(--bb-green); }
.bb-compare-row.is-best-price { border-color: var(--bb-green); box-shadow: 0 0 0 2px var(--bb-green-light), var(--bb-shadow); }

.bb-compare-row .bb-compare-badge {
    position: absolute; top: -10px; inset-inline-start: 1.25rem;
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    color: var(--bb-white); font-size: 0.74rem; font-weight: 600;
    border-radius: 999px; box-shadow: var(--bb-shadow);
}

.bb-compare-row-brand { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.bb-compare-row-logo {
    flex: 0 0 auto; width: 56px; height: 56px;
    border-radius: 12px; background: var(--bb-bg);
    border: 1px solid var(--bb-border);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.bb-compare-row-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bb-compare-row-logo span { font-size: 1.4rem; font-weight: 700; color: var(--bb-navy); }
.bb-compare-row-id { min-width: 0; }
.bb-compare-row-company { font-size: 0.98rem; font-weight: 700; color: var(--bb-navy); margin: 0 0 0.15rem; line-height: 1.3; }
.bb-compare-row-plan { font-size: 0.82rem; color: var(--bb-text-muted); margin: 0 0 0.35rem; }
.bb-compare-row-level {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid var(--bb-border);
}
.bb-compare-row-level--economic { color: #8a5a00; background: #fff7e0; border-color: #f0d889; }
.bb-compare-row-level--standard { color: var(--bb-green-dark); background: var(--bb-green-light); border-color: var(--bb-green); }
.bb-compare-row-level--premium  { color: #6b21a8; background: #f5e8ff; border-color: #d8b4fe; }

.bb-compare-row-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.83rem; color: var(--bb-text); }
.bb-compare-row-features li { display: flex; align-items: flex-start; gap: 0.4rem; }
.bb-compare-row-features li i { color: var(--bb-green); margin-top: 2px; flex-shrink: 0; }
.bb-compare-row-features-empty { min-height: 1px; }

.bb-compare-row-price { text-align: center; padding-inline: 0.5rem; }
.bb-compare-row-price-num { font-size: 1.5rem; font-weight: 800; color: var(--bb-navy); line-height: 1.1; letter-spacing: -0.02em; }
.bb-compare-row-price-unit { font-size: 0.78rem; color: var(--bb-text-muted); margin-top: 0.15rem; }
.bb-compare-row-installment {
    display: inline-flex; align-items: center; gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--bb-green-dark);
    background: var(--bb-green-light);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.bb-compare-row-cta { display: flex; justify-content: flex-end; }
.bb-compare-row-cta .bb-compare-btn {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--bb-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.15);
}
.bb-compare-row-cta .bb-compare-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(0,0,0,0.25); }

.bb-compare-empty--filter { margin-top: 0.5rem; }

@media (max-width: 991.98px) {
    .bb-compare-layout { grid-template-columns: 1fr; }
    .bb-compare-side { position: static; max-height: none; order: -1; }
}
@media (max-width: 767.98px) {
    .bb-compare-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 1rem;
    }
    .bb-compare-row-price { text-align: start; padding-inline: 0; border-top: 1px dashed var(--bb-border); padding-top: 0.75rem; }
    .bb-compare-row-cta { justify-content: stretch; }
}

/* ===== Beta Badge ===== */
.bb-beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-inline-start: 0.6rem;
    padding: 0.18rem 0.6rem 0.22rem;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #ff8a00 0%, #ff3d6e 50%, #c026d3 100%);
    background-size: 200% 200%;
    border-radius: 999px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px -4px rgba(255, 61, 110, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
    vertical-align: middle;
    position: relative;
    user-select: none;
    animation: bbBetaShine 6s ease-in-out infinite;
}
.bb-beta-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
    animation: bbBetaPulse 1.6s ease-in-out infinite;
}
@keyframes bbBetaShine {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes bbBetaPulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.3); opacity: 0.65; }
}
@media (max-width: 575.98px) {
    .bb-beta-badge { font-size: 0.6rem; padding: 0.15rem 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bb-beta-badge, .bb-beta-badge::before { animation: none; }
}

/* نشان نسخهٔ فعالِ سامانه — در سایدبار پنل مدیریت */
.bb-edition-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-inline-start: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.18rem 0.55rem;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1;
    color: #0f2744;
    background: #eef3fa;
    border: 1px solid #d6e0ef;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.bb-edition-badge:hover {
    background: #e2ebf8;
    border-color: #b9cae3;
    color: #0f2744;
}
.bb-edition-badge i { font-size: 0.72rem; opacity: 0.7; }
.bb-edition-badge b { font-weight: 800; color: #1d4ed8; }

/* بَج شناور (مخصوص navbar اصلی) — به صورت چیپ کوچیک گوشه لوگو */
.bb-navbar .navbar-brand.bb-brand-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    padding-inline-end: 0.6rem !important;
    overflow: visible;
}
.bb-navbar .bb-beta-badge--floating {
    position: absolute !important;
    top: -8px;
    inset-inline-start: auto;
    inset-inline-end: -14px;
    margin: 0 !important;
    padding: 0.18rem 0.5rem 0.22rem !important;
    font-size: 0.6rem !important;
    line-height: 1 !important;
    color: #fff !important;
    gap: 0.28rem;
    transform: rotate(-6deg);
    transform-origin: center;
    box-shadow: 0 8px 18px -5px rgba(255, 61, 110, 0.6), 0 0 0 1.5px rgba(255, 255, 255, 0.9) inset !important;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}
.bb-navbar .bb-beta-badge--floating::before {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
@media (max-width: 575.98px) {
    .bb-navbar .bb-beta-badge--floating {
        font-size: 0.52rem !important;
        padding: 0.12rem 0.4rem !important;
        top: -6px;
        inset-inline-end: -10px;
    }
}

/* ─── رنگ متن دکمه‌های btn-primary همیشه سفید — جهانی ─── */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    color: #ffffff !important;
}
