 
:root {
  /* ДБВЕБ / Modernist-portal theme — заменяет предыдущую светло-синюю тему.
     Референс прислан пользователем (Claude Design canvas), см. design-spec.md. */
  --bg-base: #f3f2f2;
  --bg-surface: #eae9e9;
  --bg-surface-2: #f8f4f4;
  --bg-surface-3: #edf7f1;
  --bg-surface-hover: #eae7e7;
  --bg-overlay: rgba(248,244,244,0.94);
  --border-subtle: rgba(32,30,29,0.14);
  --border-default: rgba(32,30,29,0.22);
  --border-strong: rgba(32,30,29,0.4);
  --border-accent: rgba(18,145,91,0.35);
  --text-primary: #201e1d;
  --text-secondary: #4b4846;
  --text-muted: #6d6a68;
  --text-faint: #948f8d;
  --accent: #1c9a6b;
  --accent-hover: #178257;
  --accent-dim: #edf7f1;
  --accent-100: #edf7f1;
  --accent-200: #d0ebdd;
  --accent-700: #0b6340;
  --accent-800: #0a4b31;
  --accent-900: #0b3624;
  --green: #12915b;
  --green-dim: #edf7f1;
  --red: #b3261e;
  --red-dim: rgba(179,38,30,0.1);
  --blue: #0f7d4e;
  --blue-dim: #edf7f1;
  --neutral-100: #f8f4f4;
  --neutral-200: #eae7e7;
  --neutral-300: #d7d3d3;
  --neutral-400: #bab6b6;
  --neutral-700: #605d5d;
  --font-body: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Geologica', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1440px;
  --header-height: 64px;
  --ctl: 44px;
  --radius: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --shadow-sm: 0 1px 2px rgba(32,30,29,0.1);
  --shadow: 0 3px 10px rgba(32,30,29,0.12);
  --shadow-lg: 0 12px 32px rgba(32,30,29,0.18);
  --shadow-glow: none;
  --shadow-glow-green: none;
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Раньше здесь был блок «Sharpen corners sitewide (Modernist look)» —
   border-radius:0 !important на ~25 селекторах разом (.btn, .org, .tile,
   .chip, .card, .content-card и т.д.). Это донорский острый стиль, и
   !important бил портальную тему (portal.css) вообще без вариантов —
   именно поэтому более ранняя правка border-radius на кнопках карточек
   организаций (.org-acts .btn) визуально ничего не меняла: она была
   правильной, но правило здесь стояло приоритетнее любой специфичности.
   Пользователь трижды просил больше скруглений — блок убран целиком,
   радиусы теперь определяет только portal.css (и бутстраповский дефолт
   там, где своего компонента в portal.css нет). */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
/* :not(.btn) — кнопки, отрендеренные тегом <a> (.btn-secondary,
   .btn-primary и т.д.), не должны наследовать цвет текстовой ссылки при
   наведении: у общего правила `a:hover` специфичность (0,1,1) — выше,
   чем у самого класса кнопки без псевдокласса (`.btn-secondary{color:
   var(--color-text)}` это (0,1,0)), поэтому текст кнопки при наведении
   «протекал» в зелёный цвет ссылки вместо цвета, заданного самой
   кнопкой (жалоба: «при наведении кнопки не видно что в них» — низкий
   контраст зелёного текста на светло-сером фоне hover-состояния
   .btn-secondary). С :not(.btn) для кнопок при наведении снова
   действует их собственный color из .btn-primary/.btn-secondary/
   .btn-ghost — они сами управляют своим hover-состоянием. */
a:hover:not(.btn) { color: var(--accent-hover); }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ---- PAGE CONTENT ---- */
.page-content { padding: 2rem 0 3rem; min-height: 70vh; }

/* ============================================
   WIDE PORTAL LAYOUT — bump Bootstrap's default
   .container caps so the site reads like a large
   multi-vertical portal rather than a narrow blog.
   ============================================ */
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }
@media (min-width: 1600px) { .container { max-width: var(--max-width); } }

/* ---- TOP UTILITY BAR (portal-style, above main nav) ---- */
.top-utility-bar {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}
.top-utility-bar .container { display: flex; align-items: center; justify-content: space-between; min-height: 34px; flex-wrap: wrap; gap: .5rem 1.25rem; }
.top-utility-bar-stats { display: flex; align-items: center; gap: 1.25rem; color: var(--text-muted); }
.top-utility-bar-stats strong { color: var(--accent); font-weight: 700; }
.top-utility-bar-links { display: flex; align-items: center; gap: 1rem; }
.top-utility-bar-links a { color: var(--text-muted); }
.top-utility-bar-links a:hover { color: var(--accent); }
.top-utility-bar-date { color: var(--text-faint); }

/* ---- HOME STAT STRIP ---- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.stat-strip-item { background: var(--bg-surface-2); padding: 1.1rem 1rem; text-align: center; }
.stat-strip-num { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-strip-label { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }
@media (max-width: 767px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- CATALOG SIDEBAR (organizations index) ---- */
.catalog-sidebar { position: sticky; top: calc(var(--header-height) + 16px); }
.catalog-sidebar .content-card { padding: 1rem; }
.catalog-sidebar-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .75rem; }
.catalog-filter-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .45rem .6rem; border-radius: var(--radius); font-size: .87rem;
  color: var(--text-secondary); text-decoration: none;
}
.catalog-filter-link:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.catalog-filter-link.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.catalog-filter-link .count { color: var(--text-faint); font-size: .78rem; }
.catalog-filter-link.active .count { color: var(--accent); opacity: .8; }

/* ============================================
   CARDS — v1 STYLE: lighter surfaces, not black
   ============================================ */
.content-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.content-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
a.content-card:hover { color: inherit; } /* без translateY: подпрыгивание убрано по просьбе */

/* Card used in Bootstrap grid */
.card.bg-surface { background: var(--bg-surface-2) !important; border: 1px solid var(--border-subtle); }
.card.bg-surface:hover { border-color: var(--border-accent); }

/* ---- SECTION TITLES — v1 style with yellow bar ---- */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---- RANK BADGE (v1 gold/silver/bronze) ---- */
.rank-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; flex-shrink: 0;
}
.rank-badge-gold { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); box-shadow: 0 0 12px rgba(18,145,91,0.3); }
.rank-badge-silver { background: linear-gradient(135deg, #adb5bd, #6c757d); color: #fff; }
.rank-badge-bronze { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }

/* ---- STARS — ALWAYS GOLDEN ---- */
.star-rating .bi-star-fill,
.bi-star-fill.text-warning,
i.bi-star-fill[style*="color:var(--accent)"],
.stars-gold .bi-star-fill { color: var(--accent) !important; }
.star-rating .bi-star,
i.bi-star[style*="color:#94a3b8"] { color: var(--text-faint) !important; }

/* ---- BUTTONS (portal style, blue accent) ----
   .btn-warning / .btn-outline-warning / .text-warning / .bg-warning / .border-warning
   are Bootstrap utility classes used throughout the templates as the site's
   primary CTA color; remapped here to the accent blue so every page picks up
   the new palette without touching each Blade file individually. */
.btn-warning { background: var(--accent); border-color: var(--accent); color: #ffffff; font-weight: 600; }
.btn-warning:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #ffffff;  }
.btn-outline-warning { border-color: var(--accent); color: var(--accent); }
.btn-outline-warning:hover { background: var(--accent); color: #ffffff; }
.text-warning { color: var(--accent) !important; }
.bg-warning { background: var(--accent) !important; color: #ffffff !important; }
.border-warning { border-color: var(--accent) !important; }
.btn-outline-light { border-color: var(--border-default); color: var(--text-secondary); }
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-green { background: var(--green); border-color: var(--green); color: #ffffff; font-weight: 600; }
.btn-green:hover { background: #15803d; box-shadow: var(--shadow-glow-green); }

/* ---- BADGES (portal style) ---- */
.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-live { background: var(--green-dim); color: var(--green); border: 1px solid rgba(22,163,74,0.3); }
.badge-surface { background: var(--bg-surface-3); color: var(--text-muted); }

/* ---- LIVE DOT ---- */
.live-dot {
  width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; display: inline-block;
  animation: pulse-green 1.5s infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---- BOOKMAKER LOGOS ---- */
.bk-logo-sm { height: 28px; width: auto; }
.bk-logo-md { height: 48px; width: auto; }
.bk-logo-lg { height: 64px; width: auto; }

/* ---- BONUS HIGHLIGHT ---- */
.bonus-highlight {
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(37,99,235,.03));
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius);
  padding: 0.75rem;
}

/* ---- BREADCRUMBS ---- */
.breadcrumb-custom { font-size: .85rem; margin-bottom: 1.5rem; }
.breadcrumb-custom a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-custom a:hover { color: var(--accent); }
.breadcrumb-custom .separator { margin: 0 .5rem; color: var(--text-faint); }

/* ---- CONTENT BODY ---- */
.content-body h2, .content-body h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.content-body p { color: var(--text-secondary); line-height: 1.7; }
.content-body ul, .content-body ol { color: var(--text-secondary); }
.content-body a { color: var(--accent); }

/* ---- TABLES DARK ---- */
.table-dark { --bs-table-bg: var(--bg-surface-2); --bs-table-border-color: var(--border-subtle); }
.table-hover > tbody > tr:hover > td { background: var(--bg-surface-3); }

/* ---- DROPDOWN DARK + HOVER OPEN ---- */
.dropdown-menu-dark { background: var(--bg-surface-2); border: 1px solid var(--border-subtle); box-shadow: var(--shadow); }
.dropdown-menu-dark .dropdown-item { color: var(--text-secondary); }
.dropdown-menu-dark .dropdown-item:hover { background: var(--bg-surface-3); color: var(--accent); }

/* ---- NAV MEGA-MENU (verticals/"Направления") ---- */
.dropdown-menu.nav-mega.show {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.15rem 0.5rem;
  min-width: 620px;
  padding: 0.75rem;
}
.nav-mega li { list-style: none; }
.nav-mega .dropdown-item { white-space: normal; border-radius: var(--radius); font-size: .87rem; }
.nav-mega .nav-mega-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.4rem;
  padding-top: 0.5rem;
}
@media (max-width: 991px) {
  .dropdown-menu.nav-mega.show { grid-template-columns: 1fr; min-width: 0; }
}
/* Hover open on desktop */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  .navbar .nav-item.dropdown:hover > .dropdown-menu.nav-mega { display: grid; margin-top: 0; }
}

/* ---- ACCORDION DARK ---- */
.accordion-button { background: var(--bg-surface-2) !important; color: var(--text-primary) !important; box-shadow: none !important; }
.accordion-button::after { filter: invert(1); }
.accordion-body { background: var(--bg-surface); color: var(--text-secondary); }

/* ---- BANNER BLOCKS ---- */
.banner-block { margin: .75rem 0; }
.banner-block .banner-img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---- BROADCAST (v1 style) ---- */
.broadcast-container {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
}
.broadcast-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---- COMPARE TABLE ---- */
.compare-table { width: 100%; font-size: .9rem; }
.compare-table th { background: var(--bg-surface-3); padding: .75rem; font-weight: 600; text-align: left; border-radius: var(--radius) var(--radius) 0 0; }
.compare-table td { padding: .75rem; border-bottom: 1px solid var(--border-subtle); }
.compare-table tr:hover td { background: rgba(37,99,235,.03); }

/* ---- STEP ITEMS ---- */
.step-item { display: flex; gap: 1rem; align-items: flex-start; }
.step-number {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #ffffff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}

/* ---- AUTO-LINKS ---- */
a.auto-link { color: var(--accent); text-decoration: underline dotted; text-underline-offset: 3px; }
a.auto-link:hover { text-decoration: underline solid; }

/* ---- PAGINATION ---- */
.pagination .page-link {
  background: var(--bg-surface-2); border-color: var(--border-subtle);
  color: var(--text-secondary);
}
.pagination .page-link:hover { background: var(--bg-surface-3); color: var(--accent); border-color: var(--accent); }
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.pagination .page-item.disabled .page-link { background: var(--bg-surface); color: var(--text-faint); }

/* ---- FORM CONTROLS DARK ---- */
.form-control.bg-dark { background: var(--bg-surface-2) !important; border-color: var(--border-default); color: var(--text-primary); }
.form-control.bg-dark:focus { border-color: var(--accent); box-shadow: 0 0 0 0.2rem var(--accent-dim); }
.form-label { color: var(--text-secondary); }
.form-select.bg-dark { background-color: var(--bg-surface-2) !important; color: var(--text-primary); border-color: var(--border-default); }

/* ---- COOKIE CONSENT (FZ-152) ---- */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--bg-surface-2); border-top: 1px solid var(--border-default);
  padding: 1rem; display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.cookie-consent.show { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cookie-consent p { margin: 0; font-size: .85rem; color: var(--text-secondary); }
.cookie-consent a { color: var(--accent); }

/* ============ HEADER (v1 style, sticky, hover menus) ============ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-overlay);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .navbar { padding: 0; min-height: var(--header-height); }
.site-header .navbar-brand {
  font-family: var(--font-heading); font-weight: 800;
  color: var(--accent) !important; font-size: 1.25rem;
}
.brand-wordmark {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.brand-wordmark strong { color: var(--accent); font-weight: 800; }
.brand-tld { color: var(--text-faint); font-weight: 500; font-size: 0.85em; }
.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-left: 1px solid var(--border-default);
  padding-left: 0.6rem;
  margin-left: 0.15rem;
}
.site-header .nav-link {
  color: var(--text-secondary) !important; font-size: .9rem; font-weight: 500;
  padding: 0.5rem 0.75rem !important; border-radius: var(--radius);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--text-primary) !important; background: var(--bg-surface-3); }
.site-header .nav-link.text-success { color: var(--green) !important; font-weight: 600; }
.site-header .btn-18 {
  background: var(--red-dim); color: var(--red);
  border: 1px solid var(--red); border-radius: var(--radius);
  padding: 3px 8px; font-size: .75rem; font-weight: 700;
}
.navbar-toggler { border-color: var(--border-default); }

/* ---- HEADER SEARCH ---- */
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 1rem;
}
.header-search-icon {
  position: absolute; left: 0.75rem;
  color: var(--text-faint); font-size: .85rem; pointer-events: none;
}
.header-search-input {
  width: 220px;
  background: var(--bg-surface-3);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  font-size: .85rem;
  color: var(--text-primary);
  transition: width var(--transition), border-color var(--transition-fast), background var(--transition-fast);
}
.header-search-input::placeholder { color: var(--text-faint); }
.header-search-input:focus {
  outline: none;
  width: 280px;
  background: var(--bg-surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
@media (max-width: 991px) {
  .header-search-form { margin: .75rem 0 0.25rem; width: 100%; }
  .header-search-input, .header-search-input:focus { width: 100%; }
}

/* ============ FOOTER (v1 style — VISIBLE links) ============ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.5rem;
  margin-top: 0rem;
}
.site-footer h5, .site-footer h6 {
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}
/* Footer links: #c8d0e0 is highly visible on dark bg */
.site-footer a {
  color: #334155 !important;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.site-footer a:hover { color: var(--accent) !important; }
.site-footer p,
.site-footer .text-muted { color: var(--text-muted) !important; }
.site-footer .footer-disclaimer {
  color: var(--text-faint) !important; font-size: .8rem;
}

/* ---- Footer widgets ---- */
.footer-widget-title {
  font-size: .9rem; font-weight: 700;
  color: var(--accent) !important;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.footer-widget-item {
  display: block; padding: .4rem 0;
  color: #334155 !important; font-size: .85rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast);
}
.footer-widget-item:hover { color: var(--accent) !important; }
.footer-widget-item:last-child { border-bottom: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .section-title { font-size: 1.2rem; }
  .content-card { padding: 1rem; }
  .navbar-collapse { background: var(--bg-surface); padding: 1rem; border-radius: var(--radius-lg); margin-top: .5rem; border: 1px solid var(--border-subtle); }
}
@media (max-width: 575px) {
  .content-card { padding: .85rem; }
  .section-title { font-size: 1.1rem; }
  h1 { font-size: 1.5rem; }

  /* Bookmaker rating responsive */
  .rank-badge {
    width: 24px !important;
    height: 24px !important;
    font-size: .7rem !important;
  }
  .bk-letter-icon-lg {
    width: 32px !important;
    height: 32px !important;
    font-size: .85rem !important;
  }
  .bk-letter-icon-lg img,
  .rank-badge + img {
    width: 32px !important;
    height: 32px !important;
  }
  .content-card .h5 {
    font-size: .95rem !important;
  }
  .bi-star, .bi-star-fill {
    font-size: .7rem !important;
  }
}

/* =============================================
   v4.5 FIXES
   ============================================= */

/* ---- HERO HEADER for bookmaker pages ---- */
.bk-hero {
  background: linear-gradient(135deg, #eaf1fd 0%, #f6f9fe 50%, #eef4ff 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.bk-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.bk-hero-inner {
  position: relative;
  padding: 2rem;
  z-index: 1;
}
.bk-hero-bonus {
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--accent);
}

/* ---- TEXT VISIBILITY FIXES (no more grey invisible text) ---- */
/* Override all .text-muted to be lighter */
.text-muted, .text-secondary {
  color: #64748b !important;
}
p, li, td, th, span, div {
  color: inherit;
}
/* Cards text always visible */
.content-card p, .content-card span, .content-card li,
.card p, .card span, .card li {
  color: #334155;
}
.content-card h3, .content-card h4, .content-card h5,
.card h3, .card h4, .card h5 {
  color: #0f1b2d;
}

/* Rating pages text */
.rating-card p, .rating-card span { color: #334155 !important; }

/* Футер: правила донора убраны.
   Это были селекторы по тегу с !important (footer a / span / div / li / h6),
   написанные под старую вёрстку .site-footer, которой больше нет. Они били
   по всему новому футеру и перебивали portal.css: логотип «ДБВЕБ» и «ДБ»
   красились в #64748b (серый вместо тёмного и белого), заголовки колонок —
   в #0f1b2d вместо зелёного акцента, а ссылки при наведении синели в
   #2563eb — цвет из давно снятой синей темы.
   Стили футера теперь целиком в portal.css (.ft / .ft-nav / .ft-col / .ft-btm). */

/* Breadcrumb visibility */
.breadcrumb-item a { color: #64748b !important; }
.breadcrumb-item.active { color: #334155 !important; }
.breadcrumb-item + .breadcrumb-item::before { color: #4a5568 !important; }

/* Badge visibility */
.badge-surface, .badge.bg-secondary {
  background: var(--bg-surface-3) !important;
  color: #334155 !important;
}

/* Review card in dark theme */
.review-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.review-card .author-name { color: var(--text-primary); font-weight: 600; }
.review-card .review-text { color: #334155; }
.review-card .review-date { color: #64748b; }

/* Category/sport filter pills */
.filter-pill {
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.filter-pill.active { background: var(--accent); color: #ffffff; }
.filter-pill:not(.active) { background: transparent; border: 1px solid var(--border-default); color: var(--text-secondary); }
.filter-pill:not(.active):hover { border-color: var(--accent); color: var(--accent); }

/* Star rating helper */
.star-gold { color: var(--accent); }
.star-empty { color: #4a5568; }

/* Glossary letters — Russian alphabet */
.glossary-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border-default);
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.glossary-letter:hover, .glossary-letter.active {
  background: var(--accent);
  color: #0f1b2d;
  border-color: var(--accent);
}

/* Pagination dark theme */
.pagination .page-link {
  background: var(--bg-surface-2);
  border-color: var(--border-subtle);
  color: #334155;
}
.pagination .page-link:hover {
  background: var(--bg-surface-3);
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f1b2d;
}

/* Form controls in dark theme */
.form-control, .form-select {
  background: var(--bg-surface) !important;
  border-color: var(--border-default) !important;
  color: var(--text-primary) !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.15) !important;
}
.form-control::placeholder { color: #4a5568 !important; }
.form-label { color: #64748b; }

/* Alert success dark */
.alert-success {
  background: rgba(0,200,83,0.15);
  border-color: rgba(0,200,83,0.3);
  color: #00c853;
}

/* BK Logo Letter Icons */
.bk-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.bk-logo-icon-lg {
    width: 64px;
    height: 64px;
    font-size: 1.3rem;
    border-radius: 14px;
}
/* Rank badges */
.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    background: var(--bg-surface-3);
    color: var(--text-muted);
    flex-shrink: 0;
}
.rank-badge-gold { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #ffffff; }
.rank-badge-silver { background: linear-gradient(135deg, #b0bec5, #78909c); color: #ffffff; }
.rank-badge-bronze { background: linear-gradient(135deg, #a1887f, #795548); color: #fff; }

/* =============================================
   v4.6 ADDITIONAL STYLES
   ============================================= */

/* ---- HOME PAGE ---- */
.home-hero {
    background: linear-gradient(135deg, #151820, #1a1f2e 50%, #222838);
    border: 1px solid rgba(15,23,42,0.07);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.live-ticker-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}
.match-card {
    min-width: 220px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem;
    flex-shrink: 0;
}
.match-card .match-sport { font-size: .75rem; color: var(--text-muted); }
.match-card .match-time { font-size: .75rem; color: var(--accent-green); font-weight: 600; }
.match-card .team-name { color: var(--text-primary); font-size: .875rem; }
.match-card .team-score { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }
.match-card .team-score.leading { color: var(--accent-green); }
.match-card .odds-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-surface-3);
    border-radius: 6px;
    font-size: .75rem;
    color: var(--text-secondary);
}
.match-card .odds-value { font-weight: 600; color: var(--text-primary); }

/* Sports grid with icons */
.sport-hub-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color .2s, transform .2s;
    text-decoration: none;
    display: block;
    color: inherit;
}
.sport-hub-card:hover {
    border-color: rgba(18,145,91,0.3);
}
.sport-hub-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.sport-hub-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.sport-hub-desc { font-size: .85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.75rem; }
.sport-hub-stats { font-size: .8rem; color: var(--text-muted); }

/* News hero */
.news-hero-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.news-hero-card img { width: 100%; height: 300px; object-fit: cover; }
.news-hero-body { padding: 1.5rem; }

/* Bonus type badges */
.bonus-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}
.bonus-type-freebet { background: var(--green-dim); color: var(--green); }
.bonus-type-nodeposit { background: rgba(59,130,246,0.15); color: #3b82f6; }
.bonus-type-registration { background: var(--accent-dim); color: var(--accent); }
.bonus-type-promocode { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Live page hero */
.live-hero {
    background: linear-gradient(135deg, rgba(0,200,83,0.1), rgba(13,15,20,0.95));
    border: 1px solid rgba(0,200,83,0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.live-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #00c853;
}

/* Glossary alphabet nav */
.glossary-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 1.5rem;
}
.glossary-letter-active {
    background: var(--accent);
    color: #0f1b2d;
}
.glossary-letter-has {
    background: var(--bg-surface-3);
    color: var(--text-primary);
}
.glossary-letter-has:hover {
    background: var(--accent-dim);
    color: var(--accent);
}
.glossary-letter-empty {
    background: transparent;
    color: var(--text-faint);
    cursor: default;
}

/* Guide TOC */
.guide-toc {
    position: sticky;
    top: 80px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.guide-toc h5 { font-size: .9rem; margin-bottom: .75rem; color: var(--text-primary); }
.guide-toc a {
    display: block;
    padding: 4px 8px;
    font-size: .85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all .15s;
}
.guide-toc a:hover { color: var(--accent); background: var(--accent-dim); }
.guide-toc a.toc-h3 { padding-left: 1.5rem; font-size: .8rem; }

/* BK Detail Hero */
.bk-detail-hero {
    background: linear-gradient(135deg, var(--bg-surface-2), var(--bg-surface-3));
    border-bottom: 1px solid var(--border-subtle);
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.bk-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Review card (extend existing) */
.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .85rem;
    color: var(--accent);
}

/* Filter tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    background: transparent;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active { background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* Hero badges */
.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-green { background: var(--green-dim); color: var(--green); }

/* Prediction card formatting */
.pred-odds-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 6px;
    font-weight: 700;
    color: var(--accent);
}

/* Visible text overrides */
.text-visible { color: #334155 !important; }
a.text-visible:hover { color: var(--accent) !important; }


/* ===== BREADCRUMBS ===== */
.breadcrumbs-nav {
    font-size: 0.85rem;
    margin-bottom: 1.25rem !important;
    padding: 0.5rem 0 !important;
}
.breadcrumbs-nav a { color: #64748b; text-decoration: none; transition: color .15s; }
.breadcrumbs-nav a:hover { color: var(--accent); }

/* ===== HERO SECTION =====
   Тёмный градиент здесь был из донорской тёмной темы и с тех пор скрыт
   светлым заголовком поверх (title был почти невидим). Актуальные стили
   светлой карточки — в portal.css, грузится после этого файла. */
.hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0;
}

/* ===== CONTENT CARDS (match reference style) ===== */
.content-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    display: block;
}
.content-card:hover {
    border-color: rgba(18,145,91,0.3);
    box-shadow: var(--shadow);
}

/* ===== BK CARD (logo icon) ===== */
.bk-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    color: #0f1b2d;
}
.bk-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f1b2d;
    margin-bottom: 1rem;
}

/* ===== TABS / FILTERS ===== */
.tab-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tab-filter-btn {
    background: var(--bg-surface-3);
    border: 1px solid rgba(15,23,42,0.1);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    display: inline-block;
}
.tab-filter-btn:hover { border-color: rgba(18,145,91,0.3); color: #334155; }
.tab-filter-btn.active {
    background: rgba(37,99,235,0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== LIVE CARD ===== */
.live-event-card {
    background: var(--bg-surface-2);
    border: 1px solid rgba(15,23,42,0.07);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color .2s;
}
.live-event-card:hover { border-color: rgba(239,68,68,0.3); }
.live-badge {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.live-dot-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-red 1.5s infinite;
    margin-right: 0.35rem;
}
@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* ===== EVENT CARD ===== */
.event-card {
    background: var(--bg-surface-2);
    border: 1px solid rgba(15,23,42,0.07);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all .2s;
}
.event-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-1px); }

/* ===== TABLE STYLES FOR DARK THEME ===== */
.table-dark-custom {
    background: transparent;
}
.table-dark-custom th {
    background: var(--bg-surface-3);
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(15,23,42,0.1);
    padding: 0.75rem 1rem;
}
.table-dark-custom td {
    color: #334155;
    border-bottom: 1px solid rgba(15,23,42,0.05);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}
.table-dark-custom tr:hover td { background: rgba(15,23,42,0.02); }

/* ===== SEARCH BOX ===== */
.search-box-dark {
    background: var(--bg-surface-3);
    border: 1px solid rgba(15,23,42,0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    width: 100%;
    font-size: 0.9rem;
}
.search-box-dark::placeholder { color: var(--text-faint); }
.search-box-dark:focus {
    outline: none;
    border-color: rgba(37,99,235,0.4);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ===== ANCHOR NAV ===== */
.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface-2);
    border: 1px solid rgba(15,23,42,0.07);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.anchor-nav a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color .15s;
}
.anchor-nav a:hover { color: var(--accent-hover); }

/* ===== FAQ ACCORDION ===== */
.faq-card {
    background: var(--bg-surface-2);
    border: 1px solid rgba(15,23,42,0.07);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.faq-card .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}
.faq-card .faq-question:hover { color: var(--accent); }
.faq-card .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 1.25rem;
    color: #64748b;
}
.faq-card.open .faq-answer {
    max-height: 500px;
    padding-bottom: 1rem;
}
.faq-card .faq-arrow {
    transition: transform .2s;
    color: #64748b;
}
.faq-card.open .faq-arrow { transform: rotate(180deg); }

/* ===== CHARACTERISTICS TABLE ===== */
.chars-table {
    width: 100%;
}
.chars-table tr td:first-child {
    color: #64748b;
    padding: 0.5rem 1rem 0.5rem 0;
    width: 40%;
    font-size: 0.9rem;
}
.chars-table tr td:last-child {
    color: var(--text-primary);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.chars-table tr { border-bottom: 1px solid rgba(15,23,42,0.05); }

/* ===== ODDS CARD ===== */
.odds-badge {
    background: var(--bg-surface-3);
    border: 1px solid rgba(15,23,42,0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
}
.odds-badge .odds-bk-name { color: #64748b; font-size: 0.75rem; margin-bottom: 0.25rem; }
.odds-badge .odds-value { color: var(--accent); font-size: 1.2rem; font-weight: 700; }

/* ===== ADMIN IMPROVEMENTS ===== */
.admin-content .table { color: #1e293b; }
.admin-content .table th { background: #f1f5f9; color: #334155; font-weight: 600; }
.admin-content .table td { color: #1e293b; }
.admin-content .badge { font-size: 0.75rem; }
.admin-content .text-muted { color: #64748b !important; }
.admin-content .card { border: 1px solid #e2e8f0; }
.admin-content .card-header {
    background: #f8f9fc;
    color: #1e293b;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}
.admin-content h1, .admin-content h2, .admin-content h3, .admin-content h4 { color: #1e293b; }
.admin-content .form-label { color: #334155; }
.admin-content .alert { color: #1e293b; }


/* ============================================
   v4.9 — NEW COMPONENT STYLES
   ============================================ */

/* ---- NAV ACTIVE STATE ---- */
.navbar-nav .nav-link.active {
    color: #0f1b2d !important;
    background: rgba(15,23,42,0.08);
    border-radius: 6px;
    font-weight: 600;
}
.navbar-nav .nav-link.active.nav-live {
    color: #00c853 !important;
}

/* ---- TAB FILTERS (sport tabs, bonus tabs etc) ---- */
.tab-filters {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(15,23,42,0.07);
    padding-bottom: 0.5rem;
}
.tab-filter-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    text-decoration: none;
    transition: all 150ms ease;
    cursor: pointer;
}
.tab-filter-btn:hover {
    color: #334155;
}
.tab-filter-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

/* ---- PREDICTION ODDS BOX (in card) ---- */
.prediction-odds-box {
    background: var(--bg-surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    min-width: 65px;
}
.prediction-odds-bk {
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prediction-odds-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f1b2d;
}

/* ---- ODDS BADGE (predictions show page) ---- */
.odds-badge {
    background: var(--bg-surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 90px;
}
.odds-bk-name {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.odds-badge .odds-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f1b2d;
}

/* ---- BK LETTER ICON — used everywhere ---- */
.bk-letter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}
.bk-letter-icon-md {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
}
.bk-letter-icon-lg {
    width: 48px;
    height: 48px;
    font-size: 0.8rem;
    border-radius: 12px;
}

/* ---- SPORT CARD (sports index — centered layout matching ref) ---- */
.sport-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 250ms ease;
}
.sport-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    color: inherit;
}
.sport-card-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.sport-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #0f1b2d;
    margin-bottom: 0.5rem;
}
.sport-card-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.sport-card-stats {
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* ---- EVENT CARD ---- */
.event-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 250ms ease;
    display: flex;
    flex-direction: column;
}
.event-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ---- LIVE STREAM CARD ---- */
.live-stream-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 250ms ease;
}
.live-stream-card:hover {
    border-color: rgba(239,68,68,0.3);
}
.live-stream-player {
    position: relative;
    padding-bottom: 56.25%;
    background: linear-gradient(135deg, #0d1117 0%, #151820 100%);
}
.live-stream-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4a5568;
}
.live-stream-placeholder .play-icon {
    font-size: 2.5rem;
    color: rgba(15,23,42,0.15);
    margin-bottom: 0.5rem;
}
.live-stream-placeholder p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}
.live-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,200,83,0.9);
    color: #0f1b2d;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
}
.live-stream-info {
    padding: 1rem 1.25rem;
}

/* ---- BONUS CARD ---- */
.offer-card, .bonus-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all 250ms ease;
}
.offer-card:hover, .bonus-card:hover {
    border-color: var(--border-accent);
}
.offer-card-header, .bonus-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.offer-card-amount, .bonus-card-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.offer-card-conditions, .bonus-card-conditions {
    background: rgba(15,23,42,0.03);
    border: 1px solid rgba(15,23,42,0.05);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 0.75rem;
}
.promo-code-box {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    overflow: hidden;
}
.promo-code-value {
    flex-grow: 1;
    padding: 0.5rem 0.75rem;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    text-align: center;
    background: rgba(37,99,235,0.05);
    letter-spacing: 1px;
}
.promo-code-copy {
    padding: 0.5rem 1rem;
    background: var(--bg-surface-3);
    border: none;
    color: #334155;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 150ms;
    white-space: nowrap;
}
.promo-code-copy:hover {
    background: var(--bg-surface-hover);
    color: #0f1b2d;
}
.bonus-expires {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

/* ---- BK LOGO SM ---- */
.bk-logo-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ---- MATCH CARD ---- */
.match-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    min-width: 240px;
    transition: all 250ms ease;
}
.match-card:hover {
    border-color: var(--border-accent);
}
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.match-sport { color: #64748b; font-size: 0.75rem; }
.match-time { color: #00c853; font-size: 0.75rem; font-weight: 700; }
.match-teams { margin-bottom: 0.5rem; }
.team-row { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; }
.team-name { color: var(--text-primary); font-size: 0.85rem; }
.team-score { color: #0f1b2d; font-weight: 700; font-size: 0.95rem; }
.team-score.leading { color: #00c853; }
.match-odds { display: flex; gap: 0.35rem; }
.match-odds .odds-btn {
    flex: 1;
    text-align: center;
    padding: 0.3rem 0.4rem;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
}
.match-odds .odds-label { display: block; font-size: 0.6rem; color: #64748b; text-transform: uppercase; }
.match-odds .odds-value { display: block; font-size: 0.85rem; color: #0f1b2d; font-weight: 600; }


/* ---- LIVE DOT animation ---- */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00c853;
    animation: live-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,200,83,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(0,200,83,0); }
}

/* ---- RANK BADGE ---- */
.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--bg-surface-3);
    color: var(--text-muted);
    flex-shrink: 0;
}
.rank-badge-gold { background: rgba(37,99,235,0.2); color: var(--accent); }
.rank-badge-silver { background: rgba(192,192,192,0.15); color: #c0c0c0; }
.rank-badge-bronze { background: rgba(205,127,50,0.15); color: #cd7f32; }

/* ---- GLOSSARY LETTER ---- */
.glossary-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
    background: rgba(15,23,42,0.03);
    text-decoration: none;
    transition: all 150ms;
}
.glossary-letter:hover {
    background: rgba(15,23,42,0.08);
    color: #334155;
}
.glossary-letter.active {
    background: var(--accent);
    color: #0f1b2d;
}

/* ---- FORM CONTROLS for front ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ---- COUNTDOWN TIMER ---- */
.countdown-block {
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    text-align: center;
    min-width: 42px;
}
.countdown-block .cd-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    display: block;
    line-height: 1.2;
}
.countdown-block .cd-label {
    font-size: 0.6rem;
    color: #64748b;
    text-transform: uppercase;
}

/* ---- RESPONSIBLE GAMBLING — no extra top padding ---- */
.responsible-gambling-section {
    margin-top: 0 !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* ---- BREADCRUMBS CONSISTENT SPACING ---- */
.breadcrumbs-nav {
    font-size: 0.85rem;
    margin-top: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    padding: 0.4rem 0 !important;
}

/* ---- SPORT CARD no h-100 forced ---- */
.sport-card {
    height: auto !important;
}


/* Слой портала вынесен в public/css/portal.css — это дословный перенос
   присланного референса (Modernist + portal.css). Прежние приближения,
   которые жили здесь, удалены, чтобы не конфликтовать с ним по каскаду. */
