/**
 * Theme 4 - Sidebar Layout + Deal Aggregator
 * bet-score.online  |  navy + yellow palette
 * Class prefix: .wi-*
 */

/* ================================================================
   0. RESET / ROOT OVERRIDES
   ================================================================ */
body.layout-sidebar {
  background: var(--color-bg, #0e1117);
  color: var(--color-text, #e6edf3);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Hide the legacy top nav when sidebar mode is active */
body.layout-sidebar .site-header {
  display: none !important;
}

/* ================================================================
   1. SHELL GRID
   ================================================================ */
.wi-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-areas: "sidebar main";
  min-height: 100vh;
}

/* ================================================================
   2. SIDEBAR
   ================================================================ */
.wi-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--color-surface, #161b22);
  border-right: 1px solid var(--color-border, #30363d);
  display: flex;
  flex-direction: column;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  z-index: 100;
}

.wi-sidebar::-webkit-scrollbar { width: 4px; }
.wi-sidebar::-webkit-scrollbar-track { background: transparent; }
.wi-sidebar::-webkit-scrollbar-thumb { background: var(--color-border, #30363d); border-radius: 2px; }

/* Logo */
.wi-sidebar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border, #1f2d44);
  flex-shrink: 0;
}

.wi-sidebar__logo-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}

/* Nav label */
.wi-sidebar__nav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted, #8b949e);
  padding: 16px 24px 6px;
}

/* Nav */
.wi-sidebar__nav {
  flex: 1;
  padding: 8px 12px;
  list-style: none;
  margin: 0;
}

.wi-sidebar__nav li { margin: 2px 0; }

.wi-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted, #8b949e);
  transition: background 0.15s, color 0.15s;
}

.wi-sidebar__nav a:hover {
  background: var(--color-surface-alt, #0f1a2c);
  color: var(--color-text, #e8eef7);
}

.wi-sidebar__nav a.active {
  background: rgba(255, 211, 42, 0.12);
  color: var(--color-accent, #FFD32A);
  font-weight: 600;
}

.wi-sidebar__nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-muted, #94a3b8);
  transition: color 0.15s;
}
.wi-sidebar__nav-icon svg { width: 20px; height: 20px; display: block; }

.wi-sidebar__nav a:hover .wi-sidebar__nav-icon { color: var(--color-text, #e8eef7); }
.wi-sidebar__nav a.active .wi-sidebar__nav-icon { color: var(--color-accent, #FFD32A); }

.wi-sidebar__nav-label-text { flex: 1; }

/* Sidebar CTA */
.wi-sidebar__cta {
  padding: 16px 12px 20px;
  border-top: 1px solid var(--color-border, #30363d);
  flex-shrink: 0;
}

.wi-sidebar__cta a {
  display: block;
  background: var(--color-accent, #00d8b8);
  color: var(--color-cta-text, #061613);
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s;
  line-height: 1.3;
}

.wi-sidebar__cta a:hover {
  background: var(--color-accent-hover, #2ee0c4);
}

.wi-sidebar__cta-sub {
  font-size: 11px;
  opacity: 0.75;
  display: block;
  margin-top: 2px;
}

/* Language selector (sidebar, after CTA) */
.wi-lang-selector {
  padding: 0 12px 18px;
  flex-shrink: 0;
}

.wi-lang-selector__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: var(--color-surface-alt, #0f1a2c);
  border: 1px solid var(--color-border, #1f2d44);
  border-radius: 8px;
  color: var(--color-text, #e8eef7);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.wi-lang-selector__btn:hover {
  border-color: var(--color-accent, #FFD32A);
  background: var(--color-surface, #142035);
}

.wi-lang-selector__flag {
  font-size: 16px;
  line-height: 1;
}

.wi-lang-selector__name { flex: 1; }

.wi-lang-selector__chevron {
  flex-shrink: 0;
  color: var(--color-text-muted, #94a3b8);
  transition: transform 0.15s;
}

.wi-lang-selector.is-open .wi-lang-selector__chevron {
  transform: rotate(180deg);
}

.wi-lang-selector { position: relative; }

.wi-lang-selector__menu {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  background: var(--color-surface-alt, #0f1a2c);
  border: 1px solid var(--color-border, #1f2d44);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.wi-lang-selector.is-open .wi-lang-selector__menu {
  display: block;
}

.wi-lang-selector__menu li { margin: 0; }

.wi-lang-selector__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--color-text, #e8eef7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.12s, color 0.12s;
}

.wi-lang-selector__menu a:hover {
  background: var(--color-surface, #142035);
  color: var(--color-accent, #FFD32A);
}

.wi-lang-selector__menu a.is-active {
  background: var(--color-surface, #142035);
  color: var(--color-accent, #FFD32A);
  font-weight: 600;
}

.wi-lang-selector__menu .wi-lang-selector__flag { font-size: 16px; }
.wi-lang-selector__menu .wi-lang-selector__name { flex: 1; }

/* Mobile topbar (mobile only) */
.wi-mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 56px;
  padding: 0 12px;
  background: rgba(14, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border, #30363d);
  align-items: center;
  gap: 12px;
}

.wi-mobile-topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text, #e6edf3);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.wi-mobile-topbar__logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 160px;
  flex: 0 0 auto;
}

.wi-mobile-topbar__cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  background: var(--color-accent, #00d8b8);
  color: var(--color-cta-text, #0e1117);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.3px;
  flex: 0 0 auto;
  transition: background 0.15s;
}

.wi-mobile-topbar__cta:hover,
.wi-mobile-topbar__cta:focus {
  background: var(--color-accent-hover, #25e9ce);
}

/* Hamburger (mobile only) */
.wi-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border, #30363d);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  flex: 0 0 auto;
}

.wi-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text, #e6edf3);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.wi-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.wi-hamburger.open span:nth-child(2) { opacity: 0; }
.wi-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile sidebar overlay */
.wi-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
}

/* ================================================================
   3. MAIN CONTENT COLUMN
   ================================================================ */
.wi-main {
  grid-area: main;
  max-width: 900px;
  width: 100%;
  min-width: 0;
  padding: 32px 36px 64px;
  box-sizing: border-box;
}

.wi-shell { min-width: 0; }

/* ================================================================
   4. DEAL CARD  (.wi-deal-card)
   ================================================================ */
.wi-deal-card {
  position: relative;
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wi-deal-card:hover {
  border-color: var(--color-accent, #00d8b8);
  box-shadow: 0 0 0 1px var(--color-accent, #00d8b8), 0 8px 32px rgba(0,216,184,0.08);
}

.wi-deal-card__ribbon {
  height: 4px;
  background: var(--color-accent, #00d8b8);
}

.wi-deal-card__ribbon--hot  { background: #ff6b35; }
.wi-deal-card__ribbon--live { background: var(--color-accent, #00d8b8); }
.wi-deal-card__ribbon--new  { background: #7c3aed; }

.wi-deal-card__badge {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0,216,184,0.15);
  color: var(--color-accent, #00d8b8);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(0,216,184,0.3);
}

.wi-deal-card__body {
  padding: 20px 22px 22px;
}

.wi-deal-card__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-text-muted, #8b949e);
  margin: 0 0 6px;
}

.wi-deal-card__headline {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text, #e6edf3);
  margin: 0 0 16px;
  line-height: 1.25;
}

.wi-deal-card__breakdown {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wi-deal-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wi-deal-card__stat-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-accent, #00d8b8);
}

.wi-deal-card__stat-lbl {
  font-size: 11px;
  color: var(--color-text-muted, #8b949e);
}

/* Promo code block */
.wi-code-block {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-surface-alt, #1f2630);
  border: 1px dashed var(--color-border, #30363d);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.wi-code-block__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted, #8b949e);
  padding: 0 12px;
  white-space: nowrap;
}

.wi-code-block__code {
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent, #00d8b8);
  padding: 10px 12px;
  letter-spacing: 1px;
  background: none;
  border: none;
  border-left: 1px solid var(--color-border, #30363d);
}

.wi-code-block__copy {
  background: var(--color-accent, #00d8b8);
  color: var(--color-cta-text, #061613);
  border: none;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background 0.15s;
  white-space: nowrap;
}

.wi-code-block__copy:hover {
  background: var(--color-accent-hover, #2ee0c4);
}

.wi-deal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wi-deal-card__verified {
  font-size: 11px;
  color: var(--color-text-muted, #8b949e);
}

.wi-deal-card__verified strong {
  color: var(--color-text, #e6edf3);
}

.wi-deal-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent, #00d8b8);
  color: var(--color-cta-text, #061613);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.wi-deal-card__cta:hover {
  background: var(--color-accent-hover, #2ee0c4);
}

.wi-deal-card__expiry {
  font-size: 11px;
  color: #ff8a65;
  margin-bottom: 12px;
}

/* ================================================================
   5. OFFER FEED  (.wi-offer-feed)
   ================================================================ */
.wi-offer-feed {
  margin-top: 24px;
}

.wi-offer-feed__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.wi-offer-feed__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text, #e6edf3);
  margin: 0;
}

.wi-offer-feed__count {
  font-size: 12px;
  color: var(--color-text-muted, #8b949e);
  white-space: nowrap;
}

/* ================================================================
   6. BANKING TABLE  (.wi-banking-table)
   ================================================================ */
.wi-banking-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border, #30363d);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface, #161b22);
  margin: 20px 0;
}

.wi-banking-table thead th {
  background: var(--color-surface-alt, #1f2630);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted, #8b949e);
  border-bottom: 1px solid var(--color-border, #30363d);
}

.wi-banking-row {
  border-bottom: 1px solid var(--color-border, #30363d);
  transition: background 0.15s;
}

.wi-banking-row:last-child { border-bottom: none; }
.wi-banking-row:hover { background: var(--color-surface-alt, #1f2630); }

.wi-banking-cell {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--color-text, #e6edf3);
  vertical-align: middle;
}

.wi-banking-cell--name {
  font-weight: 600;
}

.wi-banking-cell--crypto {
  text-align: center;
}

.wi-crypto-tag {
  display: inline-block;
  background: rgba(0,216,184,0.12);
  color: var(--color-accent, #00d8b8);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(0,216,184,0.25);
}

/* Mobile: card view */
@media (max-width: 600px) {
  .wi-banking-table { display: block; border: none; background: none; }
  .wi-banking-table thead { display: none; }
  .wi-banking-table tbody { display: block; }
  .wi-banking-row {
    display: block;
    background: var(--color-surface, #161b22);
    border: 1px solid var(--color-border, #30363d);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 4px 0;
  }
  .wi-banking-row:hover { background: var(--color-surface-alt, #1f2630); }
  .wi-banking-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border, #30363d);
    font-size: 13px;
  }
  .wi-banking-cell:last-child { border-bottom: none; }
  .wi-banking-cell::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted, #8b949e);
    flex-shrink: 0;
    margin-right: 8px;
  }
  .wi-banking-cell--crypto { text-align: right; }
}

/* ================================================================
   7. RATING STRIP  (.wi-rating-strip)
   ================================================================ */
.wi-rating-strip {
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.wi-rating-strip__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.wi-rating-strip__number {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent, #00d8b8);
  line-height: 1;
}

.wi-rating-strip__denom {
  font-size: 15px;
  color: var(--color-text-muted, #8b949e);
  font-weight: 500;
}

.wi-rating-strip__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted, #8b949e);
  margin-top: 4px;
}

.wi-rating-strip__bars {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wi-rating-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wi-rating-bar__name {
  font-size: 12px;
  color: var(--color-text, #e6edf3);
  width: 80px;
  flex-shrink: 0;
}

.wi-rating-bar__track {
  flex: 1;
  height: 6px;
  background: var(--color-surface-alt, #1f2630);
  border-radius: 3px;
  overflow: hidden;
}

.wi-rating-bar__fill {
  height: 100%;
  background: var(--color-accent, #00d8b8);
  border-radius: 3px;
}

.wi-rating-bar__val {
  font-size: 12px;
  color: var(--color-accent, #00d8b8);
  font-weight: 600;
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* ================================================================
   8. VERDICT CARD  (.wi-verdict)
   ================================================================ */
.wi-verdict {
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 24px;
}

.wi-verdict__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.wi-verdict__icon {
  width: 32px;
  height: 32px;
  background: rgba(0,216,184,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(0,216,184,0.2);
}

.wi-verdict__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text, #e6edf3);
  margin: 0;
}

.wi-verdict__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.wi-verdict__col-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border, #30363d);
}

.wi-verdict__col--pros .wi-verdict__col-label { color: #4ade80; }
.wi-verdict__col--cons .wi-verdict__col-label { color: #f87171; }

.wi-verdict__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wi-verdict__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text, #e6edf3);
  line-height: 1.45;
}

.wi-verdict__item::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

.wi-verdict__col--pros .wi-verdict__item::before {
  background: rgba(74,222,128,0.2);
  border: 1px solid rgba(74,222,128,0.4);
}

.wi-verdict__col--cons .wi-verdict__item::before {
  background: rgba(248,113,113,0.2);
  border: 1px solid rgba(248,113,113,0.4);
}

/* ================================================================
   9. FAQ ACCORDION  (.wi-faq-accordion)
   ================================================================ */
.wi-faq-accordion {
  margin: 24px 0;
}

.wi-faq-accordion__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text, #e6edf3);
  margin: 0 0 16px;
}

.wi-faq-item {
  border: 1px solid var(--color-border, #30363d);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--color-surface, #161b22);
  overflow: hidden;
}

.wi-faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: 15px 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text, #e6edf3);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
  transition: background 0.15s;
}

.wi-faq-item__question:hover {
  background: var(--color-surface-alt, #1f2630);
}

.wi-faq-item__question[aria-expanded="true"] {
  color: var(--color-accent, #00d8b8);
}

.wi-faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--color-text-muted, #8b949e);
}

.wi-faq-item__question[aria-expanded="true"] .wi-faq-chevron {
  transform: rotate(180deg);
  color: var(--color-accent, #00d8b8);
}

.wi-faq-item__answer {
  display: none;
  padding: 0 18px 16px;
  font-size: 13px;
  color: var(--color-text-muted, #8b949e);
  line-height: 1.65;
  border-top: 1px solid var(--color-border, #30363d);
  padding-top: 14px;
}

.wi-faq-item__answer.open {
  display: block;
}

/* ================================================================
   10. PAGE HEADINGS + SECTIONS
   ================================================================ */
.wi-page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border, #30363d);
}

.wi-page-header__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent, #00d8b8);
  margin-bottom: 6px;
}

.wi-page-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text, #e6edf3);
  margin: 0 0 8px;
  line-height: 1.2;
}

.wi-page-header__desc {
  font-size: 15px;
  color: var(--color-text-muted, #8b949e);
  margin: 0;
  line-height: 1.55;
}

/* Stats ribbon */
.wi-stats-ribbon {
  display: flex;
  gap: 0;
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.wi-stat-item {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--color-border, #30363d);
}

.wi-stat-item:last-child { border-right: none; }

.wi-stat-item__val {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-accent, #00d8b8);
  line-height: 1;
}

.wi-stat-item__lbl {
  font-size: 10px;
  color: var(--color-text-muted, #8b949e);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 3px;
}

/* Section titles */
.wi-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text, #e6edf3);
  margin: 32px 0 16px;
}

.wi-section-title:first-child { margin-top: 0; }

/* Prose */
.wi-prose {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted, #8b949e);
}

.wi-prose h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text, #e6edf3);
  margin: 24px 0 10px;
}

.wi-prose h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text, #e6edf3);
  margin: 18px 0 8px;
}

.wi-prose p { margin: 0 0 12px; }

.wi-prose a {
  color: var(--color-accent, #00d8b8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wi-prose ul, .wi-prose ol {
  margin: 0 0 14px 20px;
}

.wi-prose li { margin-bottom: 5px; }

.wi-prose strong { color: var(--color-text, #e6edf3); font-weight: 600; }

/* Provider grid */
.wi-provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.wi-provider-tag {
  background: var(--color-surface-alt, #1f2630);
  border: 1px solid var(--color-border, #30363d);
  color: var(--color-text, #e6edf3);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}

/* Slot cards */
.wi-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

@media (max-width: 640px) {
  .wi-slots-grid { grid-template-columns: repeat(2, 1fr); }
}

.wi-slot-card {
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 10px;
  padding: 14px;
  transition: border-color 0.15s;
}

.wi-slot-card:hover {
  border-color: var(--color-accent, #00d8b8);
}

.wi-slot-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text, #e6edf3);
  margin-bottom: 4px;
}

.wi-slot-card__provider {
  font-size: 11px;
  color: var(--color-text-muted, #8b949e);
}

.wi-slot-card__rtp {
  margin-top: 6px;
  font-size: 11px;
  color: var(--color-accent, #00d8b8);
  font-weight: 600;
}

/* Support channels */
.wi-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.wi-support-card {
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 10px;
  padding: 16px;
}

.wi-support-card__type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-accent, #00d8b8);
  margin-bottom: 5px;
}

.wi-support-card__val {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text, #e6edf3);
  margin-bottom: 4px;
}

.wi-support-card__desc {
  font-size: 12px;
  color: var(--color-text-muted, #8b949e);
  line-height: 1.5;
}

/* Info boxes */
.wi-infobox {
  background: var(--color-surface-alt, #1f2630);
  border-left: 3px solid var(--color-accent, #00d8b8);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--color-text, #e6edf3);
  line-height: 1.55;
}

.wi-infobox--warn {
  border-left-color: #ff8a65;
  background: rgba(255,138,101,0.05);
}

/* Step list */
.wi-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.wi-step {
  counter-increment: step-counter;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border, #30363d);
  font-size: 13px;
  color: var(--color-text, #e6edf3);
  line-height: 1.55;
}

.wi-step:last-child { border-bottom: none; }

.wi-step::before {
  content: counter(step-counter);
  background: var(--color-accent, #00d8b8);
  color: var(--color-cta-text, #061613);
  font-weight: 800;
  font-size: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Deposit tiers */
.wi-deposit-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.wi-tier-card {
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wi-tier-card__num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent, #00d8b8);
  width: 80px;
  flex-shrink: 0;
}

.wi-tier-card__deal {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text, #e6edf3);
  flex: 1;
}

.wi-tier-card__detail {
  font-size: 12px;
  color: var(--color-text-muted, #8b949e);
}

/* Footer inside main */
body.layout-sidebar .site-footer {
  margin-left: 0;
}

body.layout-sidebar .sticky-cta {
  left: 280px;
}

/* ================================================================
   11. MOBILE BREAKPOINT  < 900px
   ================================================================ */
@media (max-width: 899px) {
  .wi-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
  }

  .wi-sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    height: 100vh;
    width: 280px;
    transition: left 0.28s ease;
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }

  .wi-sidebar.open {
    left: 0;
  }

  .wi-sidebar-overlay.visible {
    display: block;
  }

  .wi-mobile-topbar {
    display: flex;
  }

  .wi-hamburger {
    display: flex;
  }

  .wi-main {
    padding: 76px 20px 60px;
  }

  body.layout-sidebar .sticky-cta {
    left: 0;
  }
}

@media (max-width: 560px) {
  .wi-rating-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .wi-page-header h1 {
    font-size: 22px;
  }

  .wi-deal-card__headline {
    font-size: 18px;
  }

  .wi-stats-ribbon {
    flex-wrap: wrap;
  }

  .wi-stat-item {
    min-width: 45%;
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--color-border, #30363d);
  }
}

/* ═══════════════════════════════════════════════
   THEME 4 ADDITIONS - casino-style hero, payments
   strip, games tabs, SEO block, header auth bar
   ═══════════════════════════════════════════════ */

/* ── Top auth bar (desktop main column) ──────── */
.wi-topbar-auth {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 28px 0;
}

.wi-topbar-auth__btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.wi-topbar-auth__btn:active { transform: translateY(1px); }

.wi-topbar-auth__btn--ghost {
  color: var(--color-text, #e6edf3);
  border: 1px solid var(--color-border, #30363d);
  background: transparent;
}
.wi-topbar-auth__btn--ghost:hover {
  border-color: var(--color-accent, #00d8b8);
  color: var(--color-accent, #00d8b8);
}

.wi-topbar-auth__btn--solid {
  background: var(--color-accent, #00d8b8);
  color: var(--color-cta-text, #0e1117);
  border: 1px solid var(--color-accent, #00d8b8);
}
.wi-topbar-auth__btn--solid:hover {
  background: var(--color-accent-hover, #25e9ce);
  border-color: var(--color-accent-hover, #25e9ce);
}

/* ── Login page CTA button (high-contrast yellow on navy) ──────── */
.wi-login-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-accent, #FFD32A);
  color: var(--color-cta-text, #0a1628) !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.2px;
  border: 1px solid var(--color-accent, #FFD32A);
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.wi-login-cta:hover {
  background: var(--color-accent-hover, #FFDF55);
  border-color: var(--color-accent-hover, #FFDF55);
  color: var(--color-cta-text, #0a1628) !important;
}
.wi-login-cta:active { transform: translateY(1px); }

/* ── wi-hero (full-bleed casino hero - edge-to-edge of main column) ── */
.wi-hero {
  position: relative;
  /* break out of .wi-main 36px padding to span full main column width;
     pull up only slightly so the auth bar sits cleanly above without
     wasting vertical space (compact top) */
  margin: -56px -36px 28px;
  padding: 78px 48px 48px;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  isolation: isolate;
  background-color: #0a1628;
}

/* Blurred background image layer */
.wi-hero__bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05) brightness(0.95);
  transform: scale(1.05);
  z-index: 0;
}
/* Navy gradient overlay on top of blurred bg for text contrast */
.wi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-bg, #0b1530) 0%, rgba(11,21,48,0.85) 28%, rgba(11,21,48,0.45) 55%, rgba(11,21,48,0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.wi-hero__inner {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.wi-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-accent, #FFD32A);
  font-weight: 700;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 216, 184, 0.4);
  border-radius: 999px;
  background: rgba(0, 216, 184, 0.06);
}

.wi-hero__h1 {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.5px;
}

.wi-hero__sub {
  font-size: 16px;
  line-height: 1.55;
  color: #cdd5dd;
  margin: 0 0 28px;
  max-width: 540px;
}

.wi-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.wi-hero__cta {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.wi-hero__cta:active { transform: translateY(1px); }

.wi-hero__cta--primary {
  background: var(--color-accent, #00d8b8);
  color: var(--color-cta-text, #0e1117);
  box-shadow: 0 4px 18px rgba(0, 216, 184, 0.30);
}
.wi-hero__cta--primary:hover { background: var(--color-accent-hover, #25e9ce); }

.wi-hero__cta--ghost {
  background: rgba(14, 17, 23, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}
.wi-hero__cta--ghost:hover {
  border-color: var(--color-accent, #00d8b8);
  color: var(--color-accent, #00d8b8);
}

.wi-hero__trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  font-size: 13px;
  color: #aab3bd;
}
.wi-hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wi-hero__trust-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent, #00d8b8);
  box-shadow: 0 0 8px rgba(0, 216, 184, 0.6);
}

/* ── wi-payments (logo trust strip) ──────────── */
.wi-payments {
  margin: 32px 0;
  padding: 22px 24px;
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 14px;
}

.wi-payments__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.wi-payments__title {
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--color-text-muted, #8b949e);
  font-weight: 700;
}
.wi-payments__link {
  font-size: 13px;
  color: var(--color-accent, #00d8b8);
  text-decoration: none;
  font-weight: 600;
}
.wi-payments__link:hover { text-decoration: underline; }

.wi-payments__strip {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.wi-payments__strip::-webkit-scrollbar { display: none; }

.wi-pay {
  flex: 0 0 auto;
  min-width: 110px;
  height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.wi-pay:hover {
  border-color: rgba(0, 216, 184, 0.4);
  background: rgba(0, 216, 184, 0.06);
}
.wi-pay__name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.6px;
  color: #cfd6dd;
  white-space: nowrap;
}

/* Brand-tinted text colors per provider */
.wi-pay--visa     .wi-pay__name { color: #1a1f71; background: linear-gradient(180deg,#fff,#dfe7ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-style: italic; letter-spacing: 1.5px; }
.wi-pay--mc       .wi-pay__name { color: #fff; }
.wi-pay--mc       { background: linear-gradient(90deg, rgba(235,0,27,0.12) 0%, rgba(245,158,0,0.12) 100%); }
.wi-pay--iban     .wi-pay__name { color: #00d8b8; letter-spacing: 2.5px; }
.wi-pay--apple    .wi-pay__name { color: #fff; letter-spacing: 0.3px; }
.wi-pay--apple    .wi-pay__name::before { content: ""; display: inline-block; margin-right: 4px; }
.wi-pay--google   .wi-pay__name { color: #4285f4; }
.wi-pay--btc      .wi-pay__name { color: #f7931a; }
.wi-pay--eth      .wi-pay__name { color: #8a92b2; }
.wi-pay--usdt     .wi-pay__name { color: #26a17b; }
.wi-pay--mifinity .wi-pay__name { color: #00aef0; }
.wi-pay--c2c      .wi-pay__name { color: #ff5a5f; letter-spacing: 0.2px; }

/* ── wi-games-tabs ───────────────────────────── */
.wi-games-tabs {
  margin: 36px 0 28px;
}

.wi-games-tabs__head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.wi-games-tabs__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--color-text, #e6edf3);
}

.wi-games-tabs__nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
  padding: 4px;
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 10px;
}
.wi-games-tabs__nav::-webkit-scrollbar { display: none; }

.wi-games-tab {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: var(--color-text-muted, #8b949e);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.wi-games-tab:hover { color: var(--color-text, #e6edf3); }
.wi-games-tab.is-active {
  background: rgba(0, 216, 184, 0.14);
  color: var(--color-accent, #00d8b8);
}

.wi-games-pane {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.wi-games-pane.is-active { display: grid; }

.wi-game {
  display: block;
  text-decoration: none;
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.12s, border-color 0.15s;
}
.wi-game:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 216, 184, 0.45);
}

.wi-game__art {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wi-game__initials {
  font-size: 38px;
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.wi-game__art--img { background: #0a0707; }
.wi-game__art--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.wi-game:hover .wi-game__art--img img { transform: scale(1.05); }

.wi-game__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(14, 17, 23, 0.85);
  color: var(--color-accent, #00d8b8);
  padding: 4px 8px;
  border-radius: 4px;
}

.wi-game__meta {
  padding: 10px 12px;
}
.wi-game__title {
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text, #e6edf3);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wi-game__provider {
  font-size: 11px;
  color: var(--color-text-muted, #8b949e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wi-games-tabs__footer {
  margin-top: 18px;
  text-align: center;
}
.wi-games-tabs__cta {
  display: inline-block;
  color: var(--color-accent, #00d8b8);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(0, 216, 184, 0.4);
  border-radius: 8px;
  transition: background 0.15s;
}
.wi-games-tabs__cta:hover { background: rgba(0, 216, 184, 0.08); }

/* ── wi-seo (long-form content) ─────────────── */
.wi-seo {
  margin: 36px 0 24px;
  padding: 28px 32px;
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 14px;
}
.wi-seo__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--color-text, #e6edf3);
}
.wi-seo__heading {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--color-text, #e6edf3);
}
.wi-seo__heading:first-child { margin-top: 0; }
.wi-seo__prose {
  color: #b8c0c8;
  font-size: 15px;
  line-height: 1.7;
}
.wi-seo__prose p { margin: 0 0 12px; }
.wi-seo__prose ul { margin: 8px 0 16px; padding-left: 20px; }
.wi-seo__prose li { margin-bottom: 6px; }
.wi-seo__prose strong { color: var(--color-text, #e6edf3); }
.wi-seo__prose a { color: var(--color-accent, #00d8b8); text-decoration: none; }
.wi-seo__prose a:hover { text-decoration: underline; }

/* ── Mobile topbar auth (Sign in + Create) ──── */
.wi-mobile-topbar__signin {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  background: transparent;
  color: var(--color-text, #e6edf3);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  flex: 0 0 auto;
}
.wi-mobile-topbar__signin:hover {
  border-color: var(--color-accent, #00d8b8);
  color: var(--color-accent, #00d8b8);
}

/* ── Responsive for new modules ─────────────── */
@media (max-width: 1180px) {
  .wi-games-pane { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .wi-topbar-auth { display: none; } /* hide auth bar on mobile, mobile topbar handles it */

  .wi-hero {
    padding: 48px 22px 36px;
    /* break out of .wi-main 76px 20px mobile padding */
    margin: -76px -20px 24px;
  }
  .wi-hero__bg { filter: blur(6px) saturate(1.2) brightness(0.95); }
  .wi-hero__inner { max-width: 100%; }
  .wi-hero__h1 { font-size: 28px; }
  .wi-hero__sub { font-size: 15px; }
  .wi-hero__cta { height: 46px; padding: 0 20px; font-size: 14px; }

  .wi-payments { padding: 18px 18px; }
  .wi-payments__head { margin-bottom: 12px; }
  .wi-pay { min-width: 96px; height: 50px; padding: 0 14px; }

  .wi-games-tabs__head { gap: 12px; }
  .wi-games-tabs__title { font-size: 18px; width: 100%; }
  .wi-games-tabs__nav { margin-left: 0; width: 100%; }
  .wi-games-pane { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .wi-seo { padding: 22px 18px; }
  .wi-seo__title { font-size: 19px; }

  .wi-mobile-topbar__name { display: none; } /* hide name to make room for auth on small phones */
}

@media (max-width: 480px) {
  .wi-hero__ctas { flex-direction: column; align-items: stretch; }
  .wi-hero__cta { justify-content: center; }
  .wi-mobile-topbar__signin { display: none; } /* drop sign-in on tightest screens */
}
