/*
 * Écran Opportunités : en-tête, onglets, pastilles de filtre, tableau des variantes et note de
 * confiance (spec design §3.4, maquette du 2026-09-20, T25).
 */
.rb-opps {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---- En-tête ---- */
.rb-opps__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.rb-opps__title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.rb-opps__hint {
    margin: 7px 0 0;
    color: var(--rb-text-subdued);
    font-size: 14px;
}

.rb-opps__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--rb-text-label);
    font-family: var(--rb-font-mono);
    font-size: 11.5px;
}

.rb-opps__summary-separator {
    color: var(--rb-border-muted);
}

/* ---- Onglets ---- */
.rb-opps__tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid var(--rb-auth-divider);
}

.rb-opps__tab {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -1px;
    padding: 10px 14px;
    color: var(--rb-text-subdued);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.rb-opps__tab:hover {
    color: var(--rb-text-heading);
}

.rb-opps__tab--active {
    color: var(--rb-nav-text-active);
    font-weight: 700;
    border-bottom-color: var(--rb-accent-cyan);
}

.rb-opps__tab-count {
    color: var(--rb-text-faint);
    font-family: var(--rb-font-mono);
    font-size: 10.5px;
}

/* ---- Pastilles de filtre ---- */
.rb-opps__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.rb-opps__filter {
    position: relative;
}

.rb-opps__filter-chip {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 8px 12px;
    color: var(--rb-text-muted);
    font-size: 12px;
    list-style: none;
    background-color: var(--rb-bg-inset);
    border: 1px solid var(--rb-border-chip);
    border-radius: var(--rb-radius-md);
    cursor: pointer;
}

.rb-opps__filter-chip::-webkit-details-marker {
    display: none;
}

.rb-opps__filter-chip:hover {
    border-color: var(--rb-border-muted);
}

.rb-opps__filter--active .rb-opps__filter-chip,
.rb-opps__filter[open] .rb-opps__filter-chip {
    color: var(--rb-text-heading);
    background-color: rgb(95 227 245 / 7%);
    border-color: var(--rb-accent-cyan);
}

.rb-opps__filter-value {
    color: var(--rb-text-faint);
}

.rb-opps__filter-panel {
    position: absolute;
    z-index: 10;
    top: calc(100% + 6px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    margin: 0;
    padding: 14px;
    color: var(--rb-text-muted);
    font-size: 12px;
    background-color: var(--rb-bg-surface);
    border: 1px solid var(--rb-border-default);
    border-radius: var(--rb-radius-md);
}

.rb-opps__filter-panel legend {
    float: left;
    margin-bottom: 4px;
}

.rb-opps__filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rb-opps__filter-submit {
    align-self: flex-start;
    padding: 6px 12px;
    color: var(--rb-text-on-accent);
    font-weight: 700;
    background-color: var(--rb-accent-cyan);
    border: 0;
    border-radius: var(--rb-radius-sm);
    cursor: pointer;
}

.rb-opps__filters-active {
    margin: 0 0 0 auto;
    color: var(--rb-text-faint);
    font-size: 12px;
}

.rb-opps__filters-active-count {
    color: var(--rb-text-muted);
}

/* ---- Tableau ---- */
.rb-opps__table-wrap {
    overflow: hidden;
    background-color: var(--rb-bg-surface);
    border: 1px solid var(--rb-border-default);
    border-radius: 14px;
}

.rb-opps__row {
    cursor: pointer;
}

.rb-opps__row-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.rb-opps__identity {
    min-width: 0;
}

.rb-opps__card-name {
    display: block;
    overflow: hidden;
    color: var(--rb-text-heading);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rb-opps__card-meta {
    display: block;
    margin-top: 3px;
    color: var(--rb-text-label);
    font-size: 11px;
}

.rb-opps__rarity--common { color: var(--rb-rarity-common); }
.rb-opps__rarity--uncommon { color: var(--rb-rarity-uncommon); }
.rb-opps__rarity--rare { color: var(--rb-rarity-rare); }
.rb-opps__rarity--epic { color: var(--rb-rarity-epic); }
.rb-opps__rarity--showcase { color: var(--rb-rarity-showcase); }
.rb-opps__rarity--neutral { color: var(--rb-text-faint); }

.rb-opps__price {
    color: var(--rb-text-primary);
    font-family: var(--rb-font-mono);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.rb-opps__change {
    font-family: var(--rb-font-mono);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.rb-opps__trend {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rb-opps__offers {
    color: var(--rb-text-label);
    font-family: var(--rb-font-mono);
    font-size: 11px;
    white-space: nowrap;
}

.rb-opps__spec {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 120px;
}

.rb-opps__spec-value {
    width: 20px;
    color: var(--rb-accent-purple-light);
    font-family: var(--rb-font-mono);
    font-size: 12px;
    text-align: right;
}

.rb-opps__subscores {
    margin: 4px 0 0;
    color: var(--rb-text-faint);
    font-family: var(--rb-font-mono);
    font-size: 10.5px;
    white-space: nowrap;
}

.rb-opps__subscores abbr {
    text-decoration: none;
}

.rb-opps__col--action {
    text-align: right;
}

/* ---- État vide ---- */
.rb-opps__empty {
    padding: 64px 20px;
    text-align: center;
}

.rb-opps__empty-mark {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 1px solid var(--rb-border-muted);
    transform: rotate(45deg);
}

.rb-opps__empty-title {
    margin: 0;
    color: var(--rb-text-muted);
    font-size: 15px;
    font-weight: 700;
}

.rb-opps__empty-hint {
    margin: 7px 0 0;
    color: var(--rb-text-faint);
    font-size: 13px;
}

/* ---- Note de confiance ---- */
.rb-opps__footnote {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 18px;
    color: var(--rb-text-label);
    font-size: 12.5px;
    border: 1px dashed var(--rb-border-dashed);
    border-radius: 12px;
}

.rb-opps__footnote-icon {
    color: var(--rb-accent-gold);
}

/* ---- Pagination ---- */
.rb-opps__pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--rb-text-secondary);
    font-size: 12px;
}

.rb-opps__pagination-link {
    color: var(--rb-accent-purple);
}

/* Téléphone : tendance et scores masqués, comme la maquette. */
@media (max-width: 759px) {
    .rb-opps__col--wide {
        display: none;
    }
}
