/**
 * je-brand-formats.css — стили для форматов 2, 3, 4, 6.
 * Формат 1 (in-content card) — в je-brand-card.css.
 * Формат 5 (exit-intent popup) — в je-brand-popup.css (TBD).
 *
 * Префиксы:
 *   .je-brand-table   — Формат 2 (comparison table)
 *   .je-sticky-mobile — Формат 3 (sticky bottom bar)
 *   .je-hero-card     — Формат 4 (hero под H1)
 *   .je-end-cta       — Формат 6 (end CTA block)
 */

/* ===================================================================== *
 * Формат 2 — Сравнительная таблица                                      *
 * ===================================================================== */

.je-brand-table {
    margin: 2rem 0;
    font-family: inherit;
}

/* Listing-table wrapper — ограничивает ширину на full-width родителях
 * (home / archive). На hub-pages родитель уже в content-container, тогда
 * max-width не сужает (родитель уже <= 1240px). БЕЗ padding — таблица сама
 * имеет border-radius/box-shadow, padding делал её уже контента. */
.je-listing-table-wrap {
    max-width: 1240px;
    width: 100%;
    margin: 1.5rem auto;
    padding: 0;
    box-sizing: border-box;
}

/* На мобиле listing-table (home/archive) прижата к краям экрана — даём отступы */
@media (max-width: 768px) {
    .je-listing-table-wrap {
        padding: 0 1rem;
    }
}

.je-brand-table__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #1f2937;
}

/* Desktop: table layout */
.je-brand-table__desktop { display: block; }
.je-brand-table__mobile  { display: none; }

.je-brand-table__tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.je-brand-table__tbl thead {
    background: #f9fafb;
}

.je-brand-table__tbl th {
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
}

.je-brand-table__tbl td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #1f2937;
}

.je-brand-table__row:last-child td { border-bottom: 0; }

.je-brand-table__row--top {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), transparent 30%);
}

.je-brand-table__rank {
    font-size: 1.1rem;
    font-weight: 700;
    color: #6b7280;
    width: 60px;
}
.je-brand-table__badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.je-brand-table__casino {
    white-space: nowrap;
}
.je-brand-table__casino img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #f9fafb;
    vertical-align: middle;
    margin-right: 0.6rem;
}
.je-brand-table__name {
    font-weight: 600;
    vertical-align: middle;
}

.je-brand-table__license {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4338ca;
    background: #eef2ff;
    border-radius: 4px;
}

.je-brand-table__bonus { font-size: 0.92rem; max-width: 280px; }

.je-brand-table__stars { color: #f59e0b; font-weight: 600; }

.je-brand-table__cta-cell { text-align: right; }
.je-brand-table__cta {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    background: #f97316;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    min-height: 44px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: transform 0.15s, filter 0.15s;
}
.je-brand-table__cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

.je-brand-table__cta--mobile {
    display: block;
    text-align: center;
    width: auto;
    max-width: 280px;
    margin: 0.7rem auto 0;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.je-brand-table__disclaimer {
    margin-top: 0.8rem;
    font-size: 0.72rem;
    color: #9ca3af;
}

/* Mobile: vertical cards */
@media (max-width: 767px) {
    .je-brand-table__desktop { display: none; }
    .je-brand-table__mobile  { display: block; }

    .je-brand-table__mcard {
        background: #fff;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.8rem;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
        border: 1px solid #e5e7eb;
    }
    .je-brand-table__mcard--top {
        border-color: #f59e0b;
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
    }

    .je-brand-table__mcard-head {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        flex-wrap: wrap;
        margin-bottom: 0.5rem;
    }
    .je-brand-table__mcard-rank {
        background: linear-gradient(135deg, #f59e0b, #f97316);
        color: #fff;
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 700;
    }
    .je-brand-table__mcard-head img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        border-radius: 6px;
    }
    .je-brand-table__mcard-name { font-weight: 700; font-size: 1.05rem; }
    .je-brand-table__mcard-license {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
        background: #eef2ff;
        color: #4338ca;
        border-radius: 4px;
    }
    .je-brand-table__mcard-offer { font-size: 0.92rem; line-height: 1.4; margin: 0.5rem 0; }
    .je-brand-table__mcard-rating { color: #f59e0b; margin-bottom: 0.3rem; }
}

/* ===================================================================== *
 * Формат 3 — Sticky mobile bar                                          *
 * ===================================================================== */

.je-sticky-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #1f2937;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
    font-family: inherit;
}

.je-sticky-mobile[data-visible="1"] {
    transform: translateY(0);
}

.je-sticky-mobile__inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    max-width: 100%;
    box-sizing: border-box;
}

.je-sticky-mobile__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    flex-shrink: 0;
}

.je-sticky-mobile__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.2;
}
.je-sticky-mobile__text strong { font-size: 0.88rem; }
.je-sticky-mobile__text span {
    font-size: 0.78rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.je-sticky-mobile__cta {
    background: #f97316;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

.je-sticky-mobile__close {
    background: transparent;
    border: 0;
    color: #cbd5e1;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* Desktop: hide sticky mobile */
@media (min-width: 768px) {
    .je-sticky-mobile { display: none !important; }
}

/* ===================================================================== *
 * Формат 4 — Hero под H1                                                *
 * ===================================================================== */

.je-hero-card {
    position: relative;
    margin: 1.5rem 0 2rem;
    padding: 1.5rem 1.5rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f9fafb;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

.je-hero-card__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.22;
    z-index: 0;
}

.je-hero-card__badge {
    position: absolute;
    top: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

/* Hero: контент сдвигается вниз чтобы освободить место для badge */
.je-hero-card .je-hero-card__inner {
    padding-top: 2.8rem;
}

.je-hero-card__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.je-hero-card__logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.je-hero-card__logo img { max-width: 90%; max-height: 90%; object-fit: contain; }
.je-hero-card__logo-placeholder { font-size: 4rem; font-weight: 700; color: #9ca3af; }

.je-hero-card__body { flex: 1; }

.je-hero-card__title-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.je-hero-card__name { font-size: 1.7rem; margin: 0; color: #ffffff; font-weight: 700; }
.je-hero-card__license {
    padding: 0.2rem 0.55rem;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}
.je-hero-card__rating { color: #fcd34d; font-weight: 600; font-size: 0.95rem; }

.je-hero-card__offer { font-size: 1.15rem; line-height: 1.45; margin: 0.4rem 0 0.8rem; color: #f3f4f6; }

.je-hero-card__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.je-hero-card__bullets li {
    position: relative;
    padding-left: 1.2rem;
}
.je-hero-card__bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.je-hero-card__cta {
    display: inline-block;
    background: #f97316;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.36);
}
.je-hero-card__cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.5);
}

.je-hero-card__disclaimer {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    color: #94a3b8;
}

@media (max-width: 767px) {
    .je-hero-card { padding: 1.2rem; }
    .je-hero-card__inner { flex-direction: column; text-align: center; gap: 1rem; }
    .je-hero-card__logo { width: 100px; height: 100px; }
    .je-hero-card__name { font-size: 1.4rem; }
    .je-hero-card__offer { font-size: 1rem; }
    .je-hero-card__bullets { justify-content: center; }
    .je-hero-card__cta { width: 100%; padding: 1.1rem; }
}

/* ===================================================================== *
 * Формат 6 — End-CTA блок                                               *
 * ===================================================================== */

.je-end-cta {
    margin: 2.5rem 0 1.5rem;
    padding: 1.5rem 1.2rem;
    background: linear-gradient(135deg, #f3f4f6, #ffffff);
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.je-end-cta__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: #1f2937;
}

.je-end-cta__subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 1.2rem;
}

.je-end-cta__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.je-end-cta__card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.2rem 0.8rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    border: 1px solid #e5e7eb;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}
.je-end-cta__card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10); }

.je-end-cta__card--top {
    border-color: #f59e0b;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
}

.je-end-cta__rank-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.je-end-cta__rank {
    position: absolute;
    top: 0.5rem;
    right: 0.7rem;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 700;
}

.je-end-cta__logo {
    margin: 0.4rem 0;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9fafb;
    padding: 0.3rem;
    box-sizing: border-box;
}

.je-end-cta__name {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.3rem;
}

.je-end-cta__offer {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.35;
    margin-bottom: 0.8rem;
    min-height: 2.5rem;
}

.je-end-cta__cta {
    display: block;
    background: #f97316;
    color: #fff;
    text-decoration: none;
    padding: 0.7rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    transition: filter 0.15s, transform 0.15s;
}
.je-end-cta__cta:hover { filter: brightness(1.07); transform: translateY(-1px); }

.je-end-cta__disclaimer {
    margin-top: 1rem;
    font-size: 0.72rem;
    color: #9ca3af;
}

@media (max-width: 767px) {
    .je-end-cta__grid { grid-template-columns: 1fr; }
    .je-end-cta__card { padding: 1.5rem 1rem; }
    .je-end-cta__offer { min-height: 0; }
}

/* Старый prefers-color-scheme блок удалён 2026-05-23 — заменён на унифицированный
   html[data-theme="dark"] override в самом низу файла (синхронизирован с theme-toggle). */

/* === Hero & other format contrast fixes 2026-05-23 === */
.je-hero-card .je-hero-card__name { color: #ffffff !important; }
.je-hero-card .je-hero-card__offer { color: #f3f4f6 !important; font-weight: 600; }
.je-hero-card .je-hero-card__bullets li { color: #e5e7eb !important; }
.je-hero-card__cta,
.je-hero-card__cta:hover,
.je-hero-card__cta:focus,
.je-hero-card__cta:visited { color: #ffffff !important; }
.je-hero-card__license::before {
    content: 'Lic. ';
    font-weight: 400;
    opacity: 0.85;
}
.je-end-cta__cta,
.je-end-cta__cta:hover,
.je-end-cta__cta:focus,
.je-end-cta__cta:visited,
.je-brand-table__cta,
.je-brand-table__cta:hover,
.je-brand-table__cta:focus,
.je-brand-table__cta:visited,
.je-sticky-mobile__cta,
.je-sticky-mobile__cta:hover,
.je-sticky-mobile__cta:focus,
.je-sticky-mobile__cta:visited { color: #ffffff !important; }

/* === EndCta layout + emphasis fixes 2026-05-23 === */
.je-end-cta__grid {
    grid-template-columns: repeat(var(--je-end-cta-count, 3), 1fr);
}
.je-end-cta__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.je-end-cta__logo {
    margin-left: auto !important;
    margin-right: auto !important;
}
.je-end-cta__name { font-size: 1.25rem !important; }
.je-end-cta__offer {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
}
.je-end-cta__cta { font-size: 1rem !important; padding: 0.85rem !important; }

/* === Hero title-row inline + half-star color override 2026-05-23 === */
.je-hero-card__title-row { flex-wrap: nowrap; min-width: 0; }
.je-hero-card .je-hero-card__name {
    margin: 0 !important;
    width: auto !important;
    flex: 0 0 auto;
    min-width: 0;
}
.je-hero-card .je-rating-star--full { color: #fcd34d; }
.je-hero-card .je-rating-star--empty { color: rgba(255, 255, 255, 0.25); }
.je-hero-card .je-rating-star--half {
    background: linear-gradient(90deg, #fcd34d 0%, #fcd34d 50%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.25) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
@media (max-width: 767px) {
    .je-hero-card__title-row { flex-wrap: wrap; justify-content: center; }
}

/* === Remove CTA underline (theme adds underline on all <a>) 2026-05-23 === */
.je-brand-card__cta,
.je-brand-card__cta:hover,
.je-brand-card__cta:focus,
.je-brand-card__cta:visited,
.je-hero-card__cta,
.je-hero-card__cta:hover,
.je-hero-card__cta:focus,
.je-hero-card__cta:visited,
.je-end-cta__cta,
.je-end-cta__cta:hover,
.je-end-cta__cta:focus,
.je-end-cta__cta:visited,
.je-brand-table__cta,
.je-brand-table__cta:hover,
.je-brand-table__cta:focus,
.je-brand-table__cta:visited,
.je-sticky-mobile__cta,
.je-sticky-mobile__cta:hover,
.je-sticky-mobile__cta:focus,
.je-sticky-mobile__cta:visited,
.je-popup__cta,
.je-popup__cta:hover,
.je-popup__cta:focus,
.je-popup__cta:visited {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none;
}

/* === Hero: equal vertical rhythm offer→CTA→bullets 2026-05-23 === */
.je-hero-card__cta { margin-bottom: 0.8rem; }

/* === Hide theme external-link arrow ↗ on jackpot-animated CTA 2026-05-23 === */
.je-jp-btn::before,
.je-jp-btn::after {
    content: none !important;
    display: none !important;
}

/* === EndCta — на mobile одна колонка (карточки одна за другой) 2026-05-23 === */
@media (max-width: 767px) {
    .je-end-cta__grid {
        grid-template-columns: 1fr !important;
    }
}

/* === Hero mobile: bullets лево + компактнее CTA 2026-05-23 === */
@media (max-width: 767px) {
    .je-hero-card__bullets {
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }
    .je-hero-card__bullets li {
        font-size: 0.95rem !important;
        line-height: 1.35;
        width: 100%;
    }
    .je-hero-card__cta {
        padding: 0.7rem 1.4rem !important;
        font-size: 1rem !important;
    }
}

/* === Table polish 2026-05-23 === */
.je-brand-table__rank { width: auto !important; min-width: 70px; }
.je-brand-table__badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.35rem 0.75rem !important;
    line-height: 1;
}
.je-brand-table__bonus {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
}
.je-brand-table__stars-num {
    font-weight: 700;
    color: #1f2937;
    margin-left: 0.25rem;
}

/* ============================================================================
   Unified dark-theme styling for all brand-card formats 2026-05-23
   Trigger: html[data-theme="dark"] (theme toggle). Default = dark per je-theme.js.
   Cards используют mid-tone fill чтобы не выбиваться от body bg, текст светлый.
   ============================================================================ */
html[data-theme="dark"] .je-brand-card,
html[data-theme="dark"] .je-end-cta__card,
html[data-theme="dark"] .je-brand-table__tbl,
html[data-theme="dark"] .je-brand-table__mcard,
html[data-theme="dark"] .je-end-cta {
    background: #1f2937 !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25) !important;
}

/* Hero уже dark, делаем чуть светлее body для отделения */
html[data-theme="dark"] .je-hero-card {
    background: linear-gradient(135deg, #1f2937 0%, #1a2332 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Names / titles / headings */
html[data-theme="dark"] .je-brand-card__name,
html[data-theme="dark"] .je-end-cta__name,
html[data-theme="dark"] .je-end-cta__title,
html[data-theme="dark"] .je-brand-table__name,
html[data-theme="dark"] .je-brand-table__mcard-name,
html[data-theme="dark"] .je-brand-table__title {
    color: #f9fafb !important;
}

/* Offers / bonuses — main content */
html[data-theme="dark"] .je-brand-card__offer,
html[data-theme="dark"] .je-end-cta__offer,
html[data-theme="dark"] .je-end-cta__subtitle,
html[data-theme="dark"] .je-brand-table__bonus,
html[data-theme="dark"] .je-brand-table__mcard-offer {
    color: #e5e7eb !important;
}

/* Bullets list */
html[data-theme="dark"] .je-brand-card__bullets,
html[data-theme="dark"] .je-brand-card__bullets li {
    color: #d1d5db !important;
}

/* License badges (Lic. Anjouan etc) — subtle indigo on dark */
html[data-theme="dark"] .je-brand-card__license,
html[data-theme="dark"] .je-brand-table__license,
html[data-theme="dark"] .je-brand-table__mcard-license {
    background: #312e81 !important;
    color: #c7d2fe !important;
}

/* Table header cells */
html[data-theme="dark"] .je-brand-table__tbl thead th {
    color: #cbd5e1 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Table row borders */
html[data-theme="dark"] .je-brand-table__tbl tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}
html[data-theme="dark"] .je-brand-table__rank,
html[data-theme="dark"] .je-brand-table__stars-num {
    color: #f9fafb !important;
}

/* Disclaimers */
html[data-theme="dark"] .je-brand-card__disclaimer,
html[data-theme="dark"] .je-end-cta__disclaimer,
html[data-theme="dark"] .je-brand-table__disclaimer {
    color: #94a3b8 !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Убрать white-pixel artefacts на углах overflow */
html[data-theme="dark"] .je-brand-card,
html[data-theme="dark"] .je-brand-table__tbl,
html[data-theme="dark"] .je-end-cta__card {
    overflow: hidden;
}

/* End-CTA #1 top card border accent (orange) — оставляем но прозрачнее */
html[data-theme="dark"] .je-end-cta__card--top {
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12) !important;
}

/* === Dark-theme polish 2026-05-23 (после первого review) === */

/* 1. Table header — default thead имеет background:#f9fafb (white). Чтобы
   текст не сливался с белым фоном — заливаем сам thead тёмным. */
html[data-theme="dark"] .je-brand-table__tbl thead {
    background: #111827 !important;
}
html[data-theme="dark"] .je-brand-table__tbl thead th {
    color: #cbd5e1 !important;
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

/* 2. End-CTA #1 badge выходит ВЫШЕ карточки → overflow: hidden обрезает.
   Убираем overflow только для end-cta cards. */
html[data-theme="dark"] .je-end-cta__card {
    overflow: visible !important;
}

/* 3. Логотип-обёртка — на dark theme dark background (вместо #f9fafb) чтоб
   не было светлой рамки вокруг прозрачных частей лого */
html[data-theme="dark"] .je-brand-card__logo,
html[data-theme="dark"] .je-end-cta__logo,
html[data-theme="dark"] .je-brand-table__casino img,
html[data-theme="dark"] .je-brand-table__mcard-head img {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .je-sticky-mobile__logo {
    background: #111827 !important;
}

/* 4. Red CTA на dark theme — приглушить (был слишком ярким #ef4444) */
html[data-theme="dark"] .je-brand-card__cta--red,
html[data-theme="dark"] .je-hero-card__cta--red {
    background: #b91c1c !important;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.28);
}
html[data-theme="dark"] .je-brand-card__cta--red:hover,
html[data-theme="dark"] .je-hero-card__cta--red:hover {
    background: #991b1b !important;
}

/* === Demo bar mobile/desktop text variants 2026-05-23 === */
.je-demo-bar__bonus-text--mobile { display: none; }
.je-demo-bar__bonus-text--desktop { display: inline; }
@media (max-width: 767px) {
    .je-demo-bar__bonus-text--mobile { display: inline; }
    .je-demo-bar__bonus-text--desktop { display: none; }
    /* Mobile: убедимся что text-блок виден (если тема его hides) */
    .je-demo-bar__bonus-text {
        display: inline !important;
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw;
    }
}

/* === Whole-card click area (logo/name/offer/rating clickable) 2026-05-23 === */
[data-je-card],
.je-brand-table__row,
.je-brand-table__mcard {
    cursor: pointer;
}
