/* ==================================================================
   Lebino Compare Hub — جهان «تخته نتیجه شب مسابقه»
   فقط برای صفحه هاب (/compare/) انکیو می‌شود؛ هرو دست‌نخورده است.
   Namespace: cmpb-*
   ================================================================== */

.cmp-main--hub {
    --landing-gutter: clamp(16px, 5vw, 48px);
    --landing-section-space: clamp(56px, 6vw, 84px);
    --landing-section-space-compact: clamp(40px, 4.5vw, 60px);
}

.cmp-main--hub .cmp-container {
    width: min(calc(100% - (2 * var(--landing-gutter))), 1200px);
    margin-inline: auto;
}

/* ------------------- تایپوگرافی پایه بخش‌ها ------------------- */

.cmpb-section .section-eyebrow,
.cmpb-board-head .section-eyebrow,
.cmpb-ticker .section-eyebrow,
.cmpb-rules .section-eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--primary-cta, #ff7b26);
    margin: 0 0 8px;
    letter-spacing: 0;
    display: block;
}

.cmpb-board-head .section-eyebrow {
    text-align: center;
}

.cmpb-ticker .section-eyebrow {
    color: #ff9550;
}

.cmpb-h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.4;
    color: var(--cmp-navy, #0A192F);
    margin: 0 0 10px;
}

.cmpb-h2--light {
    color: #fff;
}

.cmpb-h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cmp-navy, #0A192F);
    margin: 32px 0 10px;
}

.cmpb-note {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #5a6b85;
    max-width: 65ch;
    margin: 0 0 20px;
    text-wrap: pretty;
}

.cmpb-note--light {
    color: var(--cmp-arena-muted, #b9c6d8);
}

.cmpb-section {
    margin: var(--landing-section-space) 0 0;
}

.cmpb-section:last-of-type {
    margin-bottom: var(--landing-section-space);
}

.cmpb-muted {
    color: #8b98ad;
}

/* ------------------- دکمه‌ها ------------------- */

.cmpb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cmpb-btn--primary {
    background: var(--cmp-orange, #ff7b26);
    color: #fff;
}

.cmpb-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 123, 38, 0.32);
}

.cmpb-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cmpb-btn--ghost:hover {
    border-color: #fff;
    transform: translateY(-2px);
}

.cmpb-btn-arrow {
    transition: transform 0.2s ease;
}

.cmpb-btn:hover .cmpb-btn-arrow {
    transform: translateX(-4px);
}

/* ==================================================================
   ۱) تخته سه‌ستونه نتایج (سکو) — کارت‌های نوار رتبه روی زمینه روشن
   ================================================================== */

.cmpb-board {
    background: #f8f8f8;
    padding: var(--landing-section-space) 0;
    margin-top: 0;
}

.cmpb-board .cmpb-h2--light {
    color: #040d12;
}

.cmpb-board-head {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(24px, 3vw, 36px);
}

.cmpb-board-desc {
    font-size: 1.02rem;
    line-height: 1.9;
    color: #515478;
    max-width: 62ch;
    margin-inline: auto;
    text-wrap: pretty;
}

.cmpb-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.cmpb-podium-card {
    background: #ffffff;
    border: 1px solid #dbe2f9;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(10, 25, 47, 0.04), 0 12px 32px rgba(10, 25, 47, 0.06);
}

.cmpb-band {
    padding: 16px 22px;
    background: #eef2f7;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cmpb-podium-card--1 .cmpb-band {
    background: linear-gradient(180deg, #fff1e0 0%, #ffe4c8 100%);
}

.cmpb-podium-card--2 .cmpb-band {
    background: linear-gradient(180deg, #e6f0f8 0%, #d7e6f2 100%);
}

.cmpb-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cmpb-medal-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(10, 25, 47, 0.1);
    color: #30475e;
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cmpb-podium-card--1 .cmpb-medal-rank {
    color: #7c3e02;
    box-shadow: inset 0 0 0 1.5px #f59e0b;
}

.cmpb-medal-tier {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #30475e;
}

.cmpb-podium-card--1 .cmpb-medal-tier {
    color: #9a3412;
}

.cmpb-band .cmpb-home-chip {
    margin-inline-start: auto;
}

.cmpb-home-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 123, 38, 0.14);
    border: 1px solid rgba(255, 123, 38, 0.4);
    color: #c2410c;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

/* نشان «مساوی آماری» — ردیفی که امتیازش با ردیف قبلی در بازه خطای مدل است */
.cmpb-lb-tie {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.08);
    border: 1px dashed rgba(71, 85, 105, 0.45);
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.cmpb-band .cmpb-lb-tie {
    margin-inline-start: auto;
}

.cmpb-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.cmpb-podium-name {
    font-size: 1.375rem;
    font-weight: 800;
    color: #040d12;
    margin: 0;
}

.cmpb-podium-sub {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #515478;
    margin: 0;
    min-height: 3.4em;
}

/* رقم امتیاز: صدای داده (ضریب تاییدشده ۱٫۱۵) */

.cmpb-score-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.cmpb-bigscore-num {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0A192F;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.cmpb-bigscore-num--top {
    color: #0A192F;
}

.cmpb-bigscore-unit {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #515478;
}

.cmpb-score-track {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.cmpb-score-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #30475e;
}

.cmpb-podium-card--1 .cmpb-score-fill {
    background: #ff7b26;
}

.cmpb-market {
    font-size: 0.8125rem;
    color: #515478;
}

.cmpb-market strong {
    color: #30475e;
    font-weight: 800;
}

.cmpb-feats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmpb-feats li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #30475e;
}

.cmpb-check {
    color: #16a34a;
    font-weight: 800;
}

/* دکمه‌های روی کارت روشن */
.cmpb-podium-card .cmpb-btn {
    margin-top: auto;
    justify-content: center;
}

.cmpb-podium-card .cmpb-btn--ghost {
    color: #00477a;
    border: 1.5px solid rgba(0, 71, 122, 0.35);
}

.cmpb-podium-card .cmpb-btn--ghost:hover {
    border-color: #00477a;
}

/* ==================================================================
   ۲) جدول رتبه‌بندی — سکمنت‌های نتیجه
   ================================================================== */

.cmpb-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe2f9;
    border-radius: 16px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.cmpb-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.cmpb-table-wrap::-webkit-scrollbar-track {
    background: #f1f4fb;
}

.cmpb-table-wrap::-webkit-scrollbar-thumb {
    background: #c3cfe6;
    border-radius: 999px;
}

.cmpb-table {
    width: 100%;
    /* جدا (نه collapse): sticky سلول‌ها در کروم با border-collapse: collapse کار نمی‌کند */
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.cmpb-table thead th {
    background: var(--cmp-navy, #0A192F);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: right;
    padding: 12px 14px;
    white-space: nowrap;
}

.cmpb-table tbody th,
.cmpb-table tbody td {
    padding: 11px 14px;
    border-top: 1px solid #e7ecf7;
    text-align: right;
    vertical-align: middle;
}

.cmpb-table tbody th {
    font-weight: 400;
}

.cmpb-ranking tbody tr:hover {
    background: #f7f9fe;
}

.cmpb-row-lebino,
.cmpb-row-lebino:hover {
    background: #fff4ec;
}

/* ستون محصول */

.cmpb-product-cell {
    min-width: 190px;
}

.cmpb-product-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cmpb-row-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f4fb;
    color: var(--cmp-navy, #0A192F);
    font-size: 0.95rem;
    font-weight: 800;
    margin-left: 12px;
    float: right;
}

.cmpb-row-lebino .cmpb-row-rank {
    background: var(--cmp-orange, #ff7b26);
    color: #fff;
}

.cmpb-product-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--cmp-navy, #0A192F);
}

.cmpb-product-sub {
    font-size: 0.82rem;
    color: #5d6f8a;
}

/* امتیاز: رقم + میله سگمنتی */

.cmpb-score-cell {
    min-width: 145px;
}

.cmpb-score-digit {
    display: inline-block;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--cmp-navy, #0A192F);
    line-height: 1.2;
    margin-left: 10px;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.cmpb-score-digit--top {
    color: #e05f10; /* نارنجی تیره‌تر برای زمینه روشن — عبور از حد ۳:۱ متن درشت */
}

.cmpb-score-digit--muted {
    font-size: 1.25rem;
    font-weight: 700;
    color: #44597c;
}

.cmpb-bar {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #e8edf7;
    overflow: hidden;
}

.cmpb-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--cmp-orange, #ff7b26);
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.cmpb-row-lebino .cmpb-bar {
    background: #ffe3d1;
}

.cmpb-market-cell {
    white-space: nowrap;
}

/* استقرار: چیپ‌های پلتفرم */

.cmpb-platform-cell {
    min-width: 148px;
}

.cmpb-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 2px 0 2px 4px;
}

.cmpb-chip--on {
    background: var(--cmp-navy, #0A192F);
    color: #fff;
}

.cmpb-chip--off {
    background: #f3f5fa;
    color: #a9b5c9;
    text-decoration: line-through;
}

.cmpb-chip--claim {
    background: rgba(255, 123, 38, 0.12);
    color: #c25612;
    border: 1px solid rgba(255, 123, 38, 0.4);
}

.cmpb-chip--unknown {
    background: transparent;
    color: #8b98ad;
    border: 1px dashed #c3cfe6;
}

.cmpb-price-cell {
    font-size: 0.85rem;
    color: #44597c;
    min-width: 150px;
}

.cmpb-free-cell {
    white-space: nowrap;
    font-size: 0.92rem;
    color: #44597c;
}

.cmpb-pair-link {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--cmp-blue, #00477a);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 71, 122, 0.35);
    padding-bottom: 2px;
}

.cmpb-pair-link:hover {
    color: var(--cmp-orange, #ff7b26);
    border-color: var(--cmp-orange, #ff7b26);
}

/* ------------------- نمادهای سلول (ماتریس و پلن رایگان) ------------------- */

.cmp-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cmp-navy, #0A192F);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}

.cmp-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef1f8;
    color: #a9b5c9;
    font-weight: 800;
    font-size: 0.85rem;
}

.cmp-claim,
.cmp-partial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 123, 38, 0.14);
    color: #c25612;
    font-weight: 800;
    font-size: 0.8rem;
}

.cmp-unknown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: 1px dashed #c3cfe6;
    color: #8b98ad;
    font-weight: 800;
    font-size: 0.85rem;
}

/* ==================================================================
   ۳) ماتریس امکانات — جدول‌بندی نتایج
   ================================================================== */

.cmpb-matrix thead th {
    white-space: nowrap;
}

.cmpb-matrix tbody th {
    font-weight: 700;
    color: var(--cmp-navy, #0A192F);
    font-size: 0.9rem;
    min-width: 150px;
}

.cmpb-matrix tbody td {
    text-align: center;
    min-width: 76px;
}

.cmpb-col-lebino {
    background: #fff4ec;
}

.cmpb-matrix thead .cmpb-col-lebino {
    background: #23375c;
}

.cmpb-site-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cmp-blue, #00477a);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 71, 122, 0.35);
    padding-bottom: 2px;
}

.cmpb-site-link:hover {
    color: var(--cmp-orange, #ff7b26);
    border-color: var(--cmp-orange, #ff7b26);
}

/* ==================================================================
   ۴) تیکر دوبی‌ها — نوار تیره تمام‌عرض
   ================================================================== */

.cmpb-ticker {
    background: var(--cmp-navy, #0A192F);
    padding: var(--landing-section-space) 0;
    margin-top: var(--landing-section-space);
}

.cmpb-ticker-track {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 8px max(var(--landing-gutter), calc((100vw - 1200px) / 2)) 20px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.cmpb-ticker-track::-webkit-scrollbar {
    height: 8px;
}

.cmpb-ticker-track::-webkit-scrollbar-track {
    background: var(--cmp-navy-soft, #10254a);
    border-radius: 999px;
}

.cmpb-ticker-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.cmpb-duel-card {
    scroll-snap-align: end;
    flex: 0 0 auto;
    width: 320px;
}

.cmpb-duel-card a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 20px;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cmpb-duel-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.cmpb-duel-card--lebino a {
    border: 1px solid rgba(255, 123, 38, 0.55);
}

.cmpb-duel-names {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cmpb-duel-name {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--cmp-navy, #0A192F);
}

.cmpb-vs {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--cmp-navy, #0A192F);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.cmpb-duel-card--lebino .cmpb-vs {
    background: var(--cmp-orange, #ff7b26);
    color: var(--cmp-navy, #0A192F);
}

.cmpb-duel-hint {
    font-size: 0.85rem;
    color: #5d6f8a;
}

/* ==================================================================
   ۵) بهترین برای — برگه‌های مسابقه
   ================================================================== */

.cmpb-best-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
}

.cmpb-best-card a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #dbe2f9;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cmpb-best-card a:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 123, 38, 0.5);
    box-shadow: 0 16px 32px rgba(10, 25, 47, 0.10);
}

.cmpb-best-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--cmp-navy, #0A192F);
}

.cmpb-best-top {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.95rem;
    color: #44597c;
}

.cmpb-best-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e05f10; /* نارنجی تیره‌تر برای زمینه روشن — عبور از حد ۳:۱ متن درشت */
    font-variant-numeric: tabular-nums;
}

.cmpb-best-unit {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8b98ad;
}

.cmpb-best-desc {
    font-size: 0.88rem;
    line-height: 1.8;
    color: #5a6b85;
}

.cmpb-best-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cmp-blue, #00477a);
}

.cmpb-best-card a:hover .cmpb-best-link {
    color: var(--cmp-orange, #ff7b26);
}

/* ==================================================================
   ۶) متدولوژی — پنل قوانین مسابقه
   ================================================================== */

.cmpb-rules {
    background: #fff;
    border: 1px solid #dbe2f9;
    border-radius: 20px;
    padding: clamp(20px, 3.5vw, 36px);
}

.cmpb-rules p {
    font-size: 0.97rem;
    line-height: 2;
    color: #44597c;
    max-width: 64ch;
    margin: 0 0 20px;
    text-wrap: pretty;
}

.cmpb-rules .cmpb-rules-intro {
    font-size: 1rem;
}

.cmpb-rules .cmpb-table-wrap {
    border-radius: 12px;
    margin: 8px 0 12px;
}

.cmpb-rules .cmpb-note {
    margin: 20px 0 0;
}

.cmpb-weight-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--cmp-navy, #0A192F);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
}

.cmpb-criteria-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cmpb-criteria-item {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f1f4fb;
    color: #33486b;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.cmpb-inline-link {
    color: var(--cmp-blue, #00477a);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 71, 122, 0.35);
}

.cmpb-inline-link:hover {
    color: var(--cmp-orange, #ff7b26);
    border-color: var(--cmp-orange, #ff7b26);
}

/* ==================================================================
   ۷) پرسش‌های متداول
   ================================================================== */

.cmpb-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cmpb-faq-item {
    background: #fff;
    border: 1px solid #dbe2f9;
    border-radius: 14px;
    overflow: hidden;
}

.cmpb-faq-item[open] {
    border-color: rgba(255, 123, 38, 0.45);
}

.cmpb-faq-item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
}

.cmpb-faq-item summary::-webkit-details-marker {
    display: none;
}

.cmpb-faq-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f4fb;
}

.cmpb-faq-toggle::before,
.cmpb-faq-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--cmp-navy, #0A192F);
    transform: translate(50%, -50%);
    transition: transform 0.2s ease;
}

.cmpb-faq-toggle::after {
    transform: translate(50%, -50%) rotate(90deg);
}

.cmpb-faq-item[open] .cmpb-faq-toggle {
    background: var(--cmp-orange, #ff7b26);
}

.cmpb-faq-item[open] .cmpb-faq-toggle::before,
.cmpb-faq-item[open] .cmpb-faq-toggle::after {
    background: #fff;
}

.cmpb-faq-item[open] .cmpb-faq-toggle::after {
    transform: translate(50%, -50%) rotate(0deg);
}

.cmpb-faq-q {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--cmp-navy, #0A192F);
    margin: 0;
}

.cmpb-faq-a {
    padding: 0 64px 20px 22px;
    font-size: 0.95rem;
    line-height: 2;
    color: #44597c;
}

/* ==================================================================
   ۸) استریپ CTA (Variant 3)
   ================================================================== */

.cmpb-cta {
    width: 100%;
    box-sizing: border-box;
    margin: var(--landing-section-space) 0 clamp(32px, 4vw, 48px);
    padding: clamp(48px, 5.5vw, 68px) clamp(20px, 4vw, 44px);
    background: #0A192F;
    border: 1px solid rgba(0, 71, 122, 0.6);
    border-radius: 24px;
    position: relative;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(10, 25, 47, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.cmpb-cta-halo {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(0, 71, 122, 0.4) 0%, rgba(255, 123, 38, 0.12) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(50px);
}

.cmpb-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cmpb-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cmpb-cta-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: cmpb-pulse-green 2s infinite;
}

@keyframes cmpb-pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.cmpb-cta h2 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 18px;
    text-wrap: balance;
}

.cmpb-cta p {
    font-size: 1.05rem;
    color: #c4d2e4;
    line-height: 1.85;
    max-width: 62ch;
    margin: 0 0 32px;
}

.cmpb-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cmpb-cta-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 38px;
    background: #ff7b26;
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 123, 38, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.cmpb-cta-main-btn:hover {
    background: #e66a1a;
    transform: translateY(-2px);
    color: #ffffff;
}

.cmpb-cta-sec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.cmpb-cta-sec-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.cmpb-cta-trust-line {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #8da2bd;
    font-size: 0.8125rem;
}

.cmpb-cta-trust-line span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==================================================================
   ریسپانسیو
   ================================================================== */

@media (max-width: 1024px) {
    .cmpb-podium {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-inline: auto;
    }

    .cmpb-bigscore-num {
        font-size: 2rem;
    }

    .cmpb-podium-sub {
        min-height: 0;
    }

    .cmpb-section {
        margin-top: 56px;
    }

    .cmpb-section:last-of-type {
        margin-bottom: 56px;
    }

    .cmpb-ticker {
        margin-top: 56px;
    }
}

@media (max-width: 768px) {
    .cmpb-board {
        padding: 44px 0 48px;
        margin-top: 36px;
    }

    .cmpb-bigscore-num {
        font-size: 1.9rem;
    }

    .cmpb-section {
        margin-top: 44px;
    }

    .cmpb-section:last-of-type {
        margin-bottom: 44px;
    }

    .cmpb-ticker {
        margin-top: 44px;
    }

    .cmpb-cta {
        width: 100%;
        margin: 44px 0 24px;
        padding: 40px 18px 44px;
        border-radius: 20px;
    }

    .cmpb-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cmpb-cta-main-btn,
    .cmpb-cta-sec-btn {
        width: 100%;
    }

    .cmpb-cta-trust-line {
        flex-direction: column;
        gap: 8px;
    }

    .cmpb-ticker-track {
        padding-inline: 20px;
    }

    .cmpb-duel-card {
        width: 272px;
    }

    .cmpb-ranking .cmpb-score-cell,
    .cmpb-ranking .cmpb-platform-cell {
        min-width: 160px;
    }

    /* ستون نام چسبان در اسکرول افقی جدول‌ها (RTL: چسبیده به راست) */
    .cmpb-ranking tbody th,
    .cmpb-matrix tbody th {
        position: sticky;
        right: 0;
        z-index: 2;
        background: #fff;
        box-shadow: -1px 0 0 #e7ecf7;
    }

    .cmpb-ranking thead th:first-child,
    .cmpb-matrix thead th:first-child {
        position: sticky;
        right: 0;
        z-index: 3;
    }

    .cmpb-row-lebino tbody th {
        background: #fff4ec;
    }

    .cmpb-faq-a {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cmpb-faq-item summary {
        padding: 16px 16px;
    }

    .cmpb-btn {
        width: 100%;
    }
}

/* ------------------- حرکت ------------------- */

@media (prefers-reduced-motion: reduce) {
    .cmpb-bar-fill,
    .cmpb-btn,
    .cmpb-btn-arrow,
    .cmpb-duel-card a,
    .cmpb-best-card a,
    .cmpb-faq-toggle::before,
    .cmpb-faq-toggle::after {
        transition: none !important;
    }

    .cmpb-btn:hover,
    .cmpb-duel-card a:hover,
    .cmpb-best-card a:hover {
        transform: none;
    }
}

/* ==================================================================
   ۱‌ب) جدول امتیاز کلی — لیدربرد ردیفی با میله سگمنتی
   ================================================================== */

.cmpb-lb-board {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmpb-lb-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #dbe2f9;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(10, 25, 47, 0.04), 0 6px 18px rgba(10, 25, 47, 0.05);
}

.cmpb-lb-row--lebino {
    border-color: rgba(255, 123, 38, 0.4);
    background: linear-gradient(180deg, #fff6ee 0%, #ffffff 80%);
}

.cmpb-lb-medal {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: #eef2f7;
    color: #30475e;
}

.cmpb-lb-medal--gold {
    background: radial-gradient(circle at 30% 25%, #fff7e6, #f59e0b);
    color: #7c3e02;
}

.cmpb-lb-medal--silver {
    background: radial-gradient(circle at 30% 25%, #ffffff, #cbd5e1);
    color: #334155;
}

.cmpb-lb-medal--bronze {
    background: radial-gradient(circle at 30% 25%, #ffe9d8, #ea580c);
    color: #7c2d12;
}

.cmpb-lb-id {
    min-width: 0;
}

.cmpb-lb-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 1rem;
    font-weight: 800;
    color: #040d12;
    margin: 0;
}

.cmpb-lb-sub {
    font-size: 0.75rem;
    color: #515478;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmpb-lb-meter {
    min-width: 210px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cmpb-lb-meter-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.cmpb-lb-digit {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0A192F;
    font-variant-numeric: tabular-nums;
}

.cmpb-lb-digit--top,
.cmpb-lb-row--lebino .cmpb-lb-digit {
    color: #c2410c;
}

.cmpb-lb-market {
    font-size: 0.75rem;
    font-weight: 600;
    color: #515478;
    font-variant-numeric: tabular-nums;
}

.cmpb-lb-market strong {
    font-weight: 800;
    color: #30475e;
}

.cmpb-lb-seg {
    display: flex;
    gap: 3px;
    direction: rtl;
}

.cmpb-lb-seg i {
    flex: 1;
    height: 9px;
    border-radius: 3px;
    background: #e2e8f0;
}

.cmpb-lb-seg i.f {
    background: #00477a;
}

.cmpb-lb-row--lebino .cmpb-lb-seg i.f {
    background: #ff7b26;
}

.cmpb-lb-foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.cmpb-lb-free {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #30475e;
}

.cmpb-lb-price {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.8125rem;
    color: #30475e;
    line-height: 1.7;
}

.cmpb-lb-muted {
    color: #7a7979;
    font-size: 0.8125rem;
}

.cmpb-lb-pair {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.cmpb-lb-pair--ghost {
    color: #00477a;
    border: 1.5px solid rgba(0, 71, 122, 0.35);
}

.cmpb-lb-pair:hover {
    transform: translateY(-2px);
}

.cmpb-lb-pair:focus-visible {
    outline: 3px solid rgba(255, 123, 38, 0.45);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .cmpb-lb-pair {
        transition: none;
    }

    .cmpb-lb-pair:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .cmpb-lb-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cmpb-lb-meter {
        grid-column: 1 / -1;
    }

    .cmpb-lb-sub {
        white-space: normal;
    }

    .cmpb-lb-pair {
        margin-inline-start: 0;
        width: 100%;
        justify-content: center;
    }
}

/* ==================================================================
   ۲ب) ماتریس امکانات — نوار پوشش + کاشی‌های وضعیت (پالت بدون تغییر)
   ================================================================== */

.cmpb-mx-cov {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.cmpb-mx-cov-item {
    flex: 1 1 96px;
    background: #ffffff;
    border: 1px solid #dbe2f9;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cmpb-mx-cov-item--lebino {
    border-color: rgba(255, 123, 38, 0.4);
    background: #fff8f2;
}

.cmpb-mx-cov-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #30475e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmpb-mx-cov-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0A192F;
    font-variant-numeric: tabular-nums;
}

.cmpb-mx-cov-item--lebino .cmpb-mx-cov-num {
    color: #c2410c;
}

.cmpb-mx-cov-pips {
    display: flex;
    gap: 2px;
    direction: rtl;
}

.cmpb-mx-cov-pips i {
    flex: 1;
    height: 5px;
    border-radius: 2px;
    background: #e2e8f0;
}

.cmpb-mx-cov-pips i.f {
    background: #00477a;
}

.cmpb-mx-cov-item--lebino .cmpb-mx-cov-pips i.f {
    background: #ff7b26;
}

.cmpb-mx-wrap {
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(10, 25, 47, 0.04), 0 10px 28px rgba(10, 25, 47, 0.06);
}

/* فیلتر و جستجوی امکانات در ماتریس */
.cmpb-mx-filter-bar {
    margin: 0 0 14px;
    display: flex;
    justify-content: flex-start;
}
.cmpb-mx-filter-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 440px;
}
.cmpb-mx-filter-box svg {
    position: absolute;
    right: 14px;
    color: #64748b;
    pointer-events: none;
}
.cmpb-mx-filter-box input {
    width: 100%;
    padding: 10px 42px 10px 16px;
    border: 1.5px solid #dbe2f9;
    border-radius: 12px;
    background: #ffffff;
    font-size: 0.875rem;
    color: #040d12;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cmpb-mx-filter-box input:focus {
    outline: none;
    border-color: #00477a;
    box-shadow: 0 0 0 3px rgba(0, 71, 122, 0.15);
}

.cmpb-matrix thead th {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #243447;
    padding: 12px 10px;
    border-bottom: 2px solid #dbe2f9;
    white-space: nowrap;
    background: #f8fafc;
}

.cmpb-matrix thead th.cmpb-col-lebino {
    color: #7c2d12;
    background: #fff0e0;
}

.cmpb-matrix tbody th {
    font-weight: 700;
    color: #040d12;
    text-align: right;
    padding: 11px 14px;
}

.cmpb-matrix tbody td {
    text-align: center;
    padding: 8px 6px;
    border-top: 1px solid #e7ecf7;
}

.cmpb-matrix td span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-weight: 800;
}

/* کنتراست تاییدشده WCAG AA: هر جفت متن/زمینه ≥ 4.5:1 */
.cmpb-matrix td span.cmp-yes {
    color: #14532d;
    background: rgba(21, 128, 61, 0.13);
}

.cmpb-matrix td span.cmp-unknown {
    color: #3f4a5a;
    background: rgba(71, 85, 105, 0.12);
}

.cmpb-matrix td span.cmp-claim,
.cmpb-matrix td span.cmp-partial {
    color: #713f12;
    background: rgba(180, 83, 9, 0.14);
}

.cmpb-matrix td a {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #00477a;
    text-decoration: none;
    white-space: nowrap;
}

.cmpb-matrix td a:focus-visible {
    outline: 3px solid #b45309;
    outline-offset: 2px;
}

.cmpb-matrix tbody td.cmpb-col-lebino {
    background: #fff3e6;
}

/* بنر دعوت به اقدام زیر جدول ماتریس امکانات */
.cmpb-mx-cta-banner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, #0A192F 0%, #173250 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 22px 26px;
    margin-top: 20px;
    box-shadow: 0 12px 32px rgba(10, 25, 47, 0.16);
}
.cmpb-mx-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 123, 38, 0.16);
    border: 1px solid rgba(255, 123, 38, 0.35);
    color: #ffb47e;
    font-size: 0.75rem;
    font-weight: 700;
}
.cmpb-mx-cta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff7b26;
    box-shadow: 0 0 6px #ff7b26;
}
.cmpb-mx-cta-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cmpb-mx-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}
.cmpb-mx-cta-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
}
.cmpb-mx-cta-desc {
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.6;
}
.cmpb-mx-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    background: #ff7b26;
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 123, 38, 0.38);
    transition: transform 0.2s ease, background 0.2s ease;
}
.cmpb-mx-cta-btn:hover {
    background: #e66a1a;
    transform: translateY(-2px);
}
.cmpb-mx-cta-btn svg {
    transition: transform 0.2s ease;
}
.cmpb-mx-cta-btn:hover svg {
    transform: translateX(-4px);
}

@media (max-width: 640px) {
    .cmpb-mx-cta-banner {
        padding: 14px 16px;
    }
    .cmpb-mx-cta-main {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .cmpb-mx-cta-btn {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cmpb-mx-cov-item {
        flex: 1 1 40%;
    }
}


/* ==================================================================
   ۳) مقایسه‌های رودررو — بلیت‌های مسابقه با درز پرفراژ و مدالیون VS
   ================================================================== */

.cmpb-tk-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(calc(100% - (2 * var(--landing-gutter))), 1200px);
    margin-inline: auto;
}

.cmpb-tk-ticket a {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 4px;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    color: #040d12;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.cmpb-tk-ticket a::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    border-inline-start: 2px dashed rgba(10, 25, 47, 0.25);
}

/* سوراخ‌های پانچ: لنگر به لبه بالا/پایین بلیت (مستقل از ارتفاع کارت) */
.cmpb-tk-punch::before,
.cmpb-tk-punch::after {
    content: "";
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--cmp-navy, #0A192F);
}

.cmpb-tk-punch::before {
    top: -36px;
}

.cmpb-tk-punch::after {
    bottom: -36px;
}

.cmpb-tk-ticket--lebino a {
    background: linear-gradient(180deg, #fff3e6, #ffe4c8);
}

.cmpb-tk-side {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0A192F;
    text-align: center;
}

.cmpb-tk-ticket--lebino .cmpb-tk-side {
    color: #7c2d12;
}

.cmpb-tk-punch {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cmp-navy, #0A192F);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.68rem;
}

.cmpb-tk-ticket--lebino .cmpb-tk-punch {
    background: var(--cmp-orange, #ff7b26);
}

.cmpb-tk-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.cmpb-tk-ticket a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.cmpb-tk-ticket a:focus-visible {
    outline: 3px solid var(--cmp-orange, #ff7b26);
    outline-offset: 3px;
}

@media (max-width: 860px) {
    .cmpb-tk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .cmpb-tk-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmpb-tk-ticket a {
        transition: none;
    }

    .cmpb-tk-ticket a:hover {
        transform: none;
    }
}

/* بک‌گراند تیکر: اخگرهای گوشه روی میدان سرمه‌ای (حرارت کامل، هاله پهن) */
.cmpb-ticker {
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(255, 123, 38, 0.22) 0%, transparent 65%),
        radial-gradient(820px 480px at 92% 108%, rgba(255, 123, 38, 0.18) 0%, transparent 62%),
        linear-gradient(200deg, #0d2340 0%, var(--cmp-navy, #0A192F) 45%, #081326 100%);
    background-color: var(--cmp-navy, #0A192F);
}

/* ==================================================================
   ۴) بهترین بر اساس نوع کسب‌وکار — کارت‌های نشان‌دار با آیکون خطی
   ================================================================== */

.cmpb-best-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cmpb-bf-card {
    display: flex;
}

.cmpb-bf-card a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    width: 100%;
    background: #ffffff;
    border: 1px solid #dbe2f9;
    border-radius: 16px;
    padding: 22px 20px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(10, 25, 47, 0.04), 0 8px 24px rgba(10, 25, 47, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cmpb-bf-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(10, 25, 47, 0.05), 0 16px 36px rgba(10, 25, 47, 0.1);
}

.cmpb-bf-card a:focus-visible {
    outline: 3px solid rgba(255, 123, 38, 0.45);
    outline-offset: 3px;
}

.cmpb-bf-medal {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #fff1e0, #ffe4c8);
    color: #7c2d12;
    margin-bottom: 4px;
}

.cmpb-bf-icon {
    width: 30px;
    height: 30px;
}

.cmpb-bf-badge {
    position: absolute;
    bottom: -8px;
    inset-inline-start: -6px;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #c2410c;
    background: #ffffff;
    border: 1px solid rgba(255, 123, 38, 0.4);
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.cmpb-bf-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #040d12;
}

.cmpb-bf-top {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.cmpb-bf-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c2410c;
    font-variant-numeric: tabular-nums;
}

.cmpb-bf-unit {
    font-size: 0.75rem;
    font-weight: 600;
    color: #515478;
}

.cmpb-bf-desc {
    font-size: 0.8125rem;
    color: #515478;
    line-height: 1.7;
    flex: 1;
}

.cmpb-bf-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #00477a;
}

@media (max-width: 1024px) {
    .cmpb-best-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .cmpb-best-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmpb-bf-card a {
        transition: none;
    }

    .cmpb-bf-card a:hover {
        transform: none;
    }
}

/* ==================================================================
   ۵) متدولوژی — آکاردئون قوانین (بازشو/بسته‌شو، بدون جاوااسکریپت)
   ================================================================== */

.cmpb-m-acc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.cmpb-m-item,
.cmpb-m-cat {
    background: #f8fafc;
    border: 1px solid #dbe2f9;
    border-radius: 12px;
    overflow: hidden;
}

.cmpb-m-item[open],
.cmpb-m-cat[open] {
    background: #ffffff;
}

.cmpb-m-sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 12px 18px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: #040d12;
    font-size: 1rem;
}

.cmpb-m-sum::-webkit-details-marker {
    display: none;
}

.cmpb-m-sum::after {
    content: "＋";
    font-weight: 800;
    color: #c2410c;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cmpb-m-item[open] > .cmpb-m-sum::after,
.cmpb-m-cat[open] > .cmpb-m-cat-sum::after {
    transform: rotate(45deg);
}

.cmpb-m-sum:focus-visible,
.cmpb-m-cat-sum:focus-visible {
    outline: 3px solid rgba(255, 123, 38, 0.45);
    outline-offset: -3px;
    border-radius: 8px;
}

.cmpb-m-body {
    padding: 0 18px 16px;
    font-size: 0.875rem;
    color: #30475e;
    line-height: 1.8;
}

.cmpb-m-para {
    margin: 0 0 8px;
    max-width: 62ch;
    text-wrap: pretty;
}

.cmpb-m-states {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.cmpb-m-state {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-radius: 10px;
    padding: 10px 12px;
}

.cmpb-m-state strong {
    font-size: 0.875rem;
    font-weight: 800;
}

.cmpb-m-state em {
    font-style: normal;
    font-size: 0.6875rem;
    color: #515478;
}

.cmpb-m-state b {
    font-size: 0.8125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cmpb-m-state--yes {
    background: rgba(34, 197, 94, 0.12);
    color: #14532d;
}

.cmpb-m-state--claim {
    background: rgba(180, 83, 9, 0.12);
    color: #713f12;
}

.cmpb-m-state--no,
.cmpb-m-state--unknown {
    background: #eef2f7;
    color: #3f4a5a;
}

.cmpb-m-cat {
    margin-top: 8px;
}

.cmpb-m-cat-sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 9px 14px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #040d12;
    font-size: 0.875rem;
}

.cmpb-m-cat-sum::-webkit-details-marker {
    display: none;
}

.cmpb-m-cat-sum::after {
    content: "＋";
    font-weight: 800;
    color: #c2410c;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cmpb-m-cat-name {
    min-width: 0;
}

.cmpb-m-cat-w {
    font-size: 0.75rem;
    font-weight: 800;
    color: #c2410c;
    background: rgba(255, 123, 38, 0.1);
    border-radius: 999px;
    padding: 3px 10px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cmpb-m-cat-body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 12px;
}

.cmpb-m-crit {
    font-size: 0.75rem;
    color: #30475e;
    background: #eef2f7;
    border-radius: 999px;
    padding: 4px 10px;
}

.cmpb-rules .cmpb-table-wrap {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .cmpb-m-states {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmpb-m-sum::after,
    .cmpb-m-cat-sum::after {
        transition: none;
    }
}
