 
:root {
  --bg-base: #0d0f14;
  --bg-surface: #151820;
  --bg-surface-2: #1a1f2e;
  --bg-surface-3: #222838;
  --bg-surface-hover: #2a3045;
  --bg-overlay: rgba(13,15,20,0.95);
  --border-subtle: rgba(255,255,255,0.07);
  --border-default: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.2);
  --border-accent: rgba(245,197,24,0.25);
  --text-primary: #ffffff;
  --text-secondary: #c8d0e0;
  --text-muted: #8892a4;
  --text-faint: #4a5568;
  --accent: #f5c518;
  --accent-hover: #ffd334;
  --accent-dim: rgba(245,197,24,0.15);
  --green: #00c853;
  --green-dim: rgba(0,200,83,0.15);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.15);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.15);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1280px;
  --header-height: 64px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(245,197,24,0.2);
  --shadow-glow-green: 0 0 12px rgba(0,200,83,0.3);
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ---- 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); }
a:hover { 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; }

/* ============================================
   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 { transform: translateY(-2px); color: inherit; }

/* 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: #0d0f14;
  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, #f5c518, #e0a800); box-shadow: 0 0 12px rgba(245,197,24,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:#f5c518"],
.stars-gold .bi-star-fill { color: #f5c518 !important; }
.star-rating .bi-star,
i.bi-star[style*="color:#4a5568"] { color: var(--text-faint) !important; }

/* ---- BUTTONS (v1 style) ---- */
.btn-warning { background: var(--accent); border-color: var(--accent); color: #0d0f14; font-weight: 600; }
.btn-warning:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #0d0f14; box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-outline-warning { border-color: var(--accent); color: var(--accent); }
.btn-outline-warning:hover { background: var(--accent); color: #0d0f14; }
.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: #0d0f14; font-weight: 600; }
.btn-green:hover { background: #00e060; box-shadow: var(--shadow-glow-green); }

/* ---- BADGES (v1 style) ---- */
.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-live { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,200,83,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(245,197,24,.1), rgba(245,197,24,.03));
  border: 1px solid rgba(245,197,24,.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); }
/* Hover open on desktop */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover > .dropdown-menu { display: block; 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(245,197,24,.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: #0d0f14;
  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: #0d0f14; }
.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;
}
.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); }
.navbar-toggler-icon { filter: invert(1); }

/* ============ 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: #c8d0e0 !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: #c8d0e0 !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; }
}

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

/* ---- HERO HEADER for bookmaker pages ---- */
.bk-hero {
  background: linear-gradient(135deg, #1a1f2e 0%, #0d0f14 50%, #151820 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(245,197,24,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.bk-hero-inner {
  position: relative;
  padding: 2rem;
  z-index: 1;
}
.bk-hero-bonus {
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,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: #8892a4 !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: #c8d0e0;
}
.content-card h3, .content-card h4, .content-card h5,
.card h3, .card h4, .card h5 {
  color: #ffffff;
}

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

/* Footer links must be visible */
footer a { color: #c8d0e0 !important; }
footer a:hover { color: #f5c518 !important; }
footer p, footer span, footer div, footer li { color: #8892a4 !important; }
footer h5, footer h6 { color: #ffffff !important; }

/* Breadcrumb visibility */
.breadcrumb-item a { color: #8892a4 !important; }
.breadcrumb-item.active { color: #c8d0e0 !important; }
.breadcrumb-item + .breadcrumb-item::before { color: #4a5568 !important; }

/* Badge visibility */
.badge-surface, .badge.bg-secondary {
  background: var(--bg-surface-3) !important;
  color: #c8d0e0 !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: #e0e6f0; font-weight: 600; }
.review-card .review-text { color: #c8d0e0; }
.review-card .review-date { color: #8892a4; }

/* 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: #f5c518; color: #0d0f14; }
.filter-pill:not(.active) { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #c8d0e0; }
.filter-pill:not(.active):hover { border-color: #f5c518; color: #f5c518; }

/* Star rating helper */
.star-gold { color: #f5c518; }
.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: #c8d0e0;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.glossary-letter:hover, .glossary-letter.active {
  background: var(--accent);
  color: #0d0f14;
  border-color: var(--accent);
}

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

/* Form controls in dark theme */
.form-control, .form-select {
  background: var(--bg-surface) !important;
  border-color: var(--border-default) !important;
  color: #e0e6f0 !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(245,197,24,0.15) !important;
}
.form-control::placeholder { color: #4a5568 !important; }
.form-label { color: #8892a4; }

/* 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, #f5c518, #ff9800); color: #0d0f14; }
.rank-badge-silver { background: linear-gradient(135deg, #b0bec5, #78909c); color: #0d0f14; }
.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(255,255,255,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(245,197,24,0.3);
    transform: translateY(-2px);
}
.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: rgba(0,200,83,0.15); color: #00c853; }
.bonus-type-nodeposit { background: rgba(59,130,246,0.15); color: #3b82f6; }
.bonus-type-registration { background: rgba(245,197,24,0.15); color: #f5c518; }
.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-yellow);
    color: #0d0f14;
}
.glossary-letter-has {
    background: var(--bg-surface-3);
    color: var(--text-primary);
}
.glossary-letter-has:hover {
    background: var(--accent-yellow-dim);
    color: var(--accent-yellow);
}
.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-yellow); background: var(--accent-yellow-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-yellow);
}

/* 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-yellow); color: var(--accent-yellow); }
.filter-tab.active { background: var(--accent-yellow); color: #0d0f14; border-color: var(--accent-yellow); }

/* Hero badges */
.badge-accent { background: rgba(245,197,24,0.15); color: #f5c518; }
.badge-green { background: rgba(0,200,83,0.15); color: #00c853; }

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

/* Visible text overrides */
.text-visible { color: #c8d0e0 !important; }
a.text-visible:hover { color: #f5c518 !important; }


/* ===== BREADCRUMBS ===== */
.breadcrumbs-nav {
    font-size: 0.85rem;
    margin-bottom: 1.25rem !important;
    padding: 0.5rem 0 !important;
}
.breadcrumbs-nav a { color: #8892a4; text-decoration: none; transition: color .15s; }
.breadcrumbs-nav a:hover { color: #f5c518; }

/* ===== HERO SECTION (improved) ===== */
.hero-section {
    background: linear-gradient(135deg, #151820 0%, #1a1f2e 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.hero-subtitle {
    color: #8892a4;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ===== CONTENT CARDS (match reference style) ===== */
.content-card {
    background: #151820;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    display: block; 
}
.content-card:hover {
    border-color: rgba(245,197,24,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ===== 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: #fff;
}
.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: #fff;
    margin-bottom: 1rem;
}

/* ===== TABS / FILTERS ===== */
.tab-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tab-filter-btn {
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    color: #8892a4;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    display: inline-block;
}
.tab-filter-btn:hover { border-color: rgba(245,197,24,0.3); color: #c8d0e0; }
.tab-filter-btn.active {
    background: rgba(245,197,24,0.15);
    border-color: #f5c518;
    color: #f5c518;
}

/* ===== LIVE CARD ===== */
.live-event-card {
    background: #151820;
    border: 1px solid rgba(255,255,255,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: #151820;
    border: 1px solid rgba(255,255,255,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: #1a1f2e;
    color: #8892a4;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
}
.table-dark-custom td {
    color: #c8d0e0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}
.table-dark-custom tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== SEARCH BOX ===== */
.search-box-dark {
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: #fff;
    width: 100%;
    font-size: 0.9rem;
}
.search-box-dark::placeholder { color: #4a5568; }
.search-box-dark:focus {
    outline: none;
    border-color: rgba(245,197,24,0.4);
    box-shadow: 0 0 0 3px rgba(245,197,24,0.1);
}

/* ===== ANCHOR NAV ===== */
.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #151820;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.anchor-nav a {
    color: #f5c518;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color .15s;
}
.anchor-nav a:hover { color: #ffd334; }

/* ===== FAQ ACCORDION ===== */
.faq-card {
    background: #151820;
    border: 1px solid rgba(255,255,255,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: #e0e6f0;
    font-weight: 500;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}
.faq-card .faq-question:hover { color: #f5c518; }
.faq-card .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 1.25rem;
    color: #8892a4;
}
.faq-card.open .faq-answer {
    max-height: 500px;
    padding-bottom: 1rem;
}
.faq-card .faq-arrow {
    transition: transform .2s;
    color: #8892a4;
}
.faq-card.open .faq-arrow { transform: rotate(180deg); }

/* ===== CHARACTERISTICS TABLE ===== */
.chars-table {
    width: 100%;
}
.chars-table tr td:first-child {
    color: #8892a4;
    padding: 0.5rem 1rem 0.5rem 0;
    width: 40%;
    font-size: 0.9rem;
}
.chars-table tr td:last-child {
    color: #e0e6f0;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.chars-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }

/* ===== ODDS CARD ===== */
.odds-badge {
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
}
.odds-badge .odds-bk-name { color: #8892a4; font-size: 0.75rem; margin-bottom: 0.25rem; }
.odds-badge .odds-value { color: #f5c518; 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: #fff !important;
    background: rgba(255,255,255,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(255,255,255,0.07);
    padding-bottom: 0.5rem;
}
.tab-filter-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: #8892a4;
    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: #c8d0e0;
}
.tab-filter-btn.active {
    color: #f5c518;
    border-bottom-color: #f5c518;
    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: #8892a4;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prediction-odds-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* ---- 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: #8892a4;
    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: #fff;
}

/* ---- 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);
    transform: translateY(-2px);
    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: #fff;
    margin-bottom: 0.5rem;
}
.sport-card-desc {
    font-size: 0.8rem;
    color: #8892a4;
    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(255,255,255,0.15);
    margin-bottom: 0.5rem;
}
.live-stream-placeholder p {
    font-size: 0.8rem;
    color: #8892a4;
    margin: 0;
}
.live-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,200,83,0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
}
.live-stream-info {
    padding: 1rem 1.25rem;
}

/* ---- BONUS 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;
}
.bonus-card:hover {
    border-color: var(--border-accent);
}
.bonus-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.bonus-card-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5c518;
    margin-bottom: 0.5rem;
}
.bonus-card-conditions {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    color: #c8d0e0;
    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: #f5c518;
    text-align: center;
    background: rgba(245,197,24,0.05);
    letter-spacing: 1px;
}
.promo-code-copy {
    padding: 0.5rem 1rem;
    background: var(--bg-surface-3);
    border: none;
    color: #c8d0e0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 150ms;
    white-space: nowrap;
}
.promo-code-copy:hover {
    background: #2a3045;
    color: #fff;
}
.bonus-expires {
    font-size: 0.75rem;
    color: #8892a4;
    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: #8892a4; 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: #e0e6f0; font-size: 0.85rem; }
.team-score { color: #fff; 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: #8892a4; text-transform: uppercase; }
.match-odds .odds-value { display: block; font-size: 0.85rem; color: #fff; 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(245,197,24,0.2); color: #f5c518; }
.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: #8892a4;
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    transition: all 150ms;
}
.glossary-letter:hover {
    background: rgba(255,255,255,0.08);
    color: #c8d0e0;
}
.glossary-letter.active {
    background: var(--accent);
    color: #0d0f14;
}

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

/* ---- COUNTDOWN TIMER ---- */
.countdown-block {
    background: rgba(245,197,24,0.08);
    border: 1px solid rgba(245,197,24,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: #f5c518;
    display: block;
    line-height: 1.2;
}
.countdown-block .cd-label {
    font-size: 0.6rem;
    color: #8892a4;
    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;
}
