/* Cyberpunk neon — prompt #8 */
:root {
  --bg: #050505;
  --neon: #00ff88;
  --neon-dim: #00d4aa;
  --card-bg: #0a120e;
  --card-border: #1a3d2e;
  --text: #e8fff4;
  --muted: #6b9a85;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 136, 0.12) 2px,
    rgba(0, 255, 136, 0.12) 4px
  );
}

h1,
h2,
h3,
.hud-title {
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

a {
  color: var(--neon);
  text-decoration: none;
}

a:hover {
  color: var(--neon-dim);
}

/* Layout: sidebar xl+ */
.cyber-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 72px;
  height: 100vh;
  background: linear-gradient(180deg, #0a1610 0%, #050505 100%);
  border-right: 1px solid var(--card-border);
  z-index: 1040;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 0.5rem;
}

.cyber-sidebar a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cyber-sidebar a:hover,
.cyber-sidebar a.active {
  color: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.25);
}

@media (min-width: 1200px) {
  .cyber-sidebar {
    display: flex;
  }

  .main-with-sidebar {
    padding-left: 72px;
  }
}

/* Mobile bottom tab bar */
.cyber-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #080c0a;
  border-top: 1px solid var(--card-border);
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.25rem;
}

.cyber-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  gap: 2px;
}

.cyber-tabbar a:hover,
.cyber-tabbar a.active {
  color: var(--neon);
}

@media (min-width: 1200px) {
  .cyber-tabbar {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  body {
    padding-bottom: 72px;
  }
}

/* Glitch H1 */
.glitch-text {
  position: relative;
  color: var(--neon);
  text-shadow:
    2px 0 #ff00aa,
    -2px 0 #00ffff;
  animation: glitch-skew 4s infinite linear alternate-reverse;
}

@keyframes glitch-skew {
  0%,
  90%,
  100% {
    text-shadow:
      2px 0 #ff00aa88,
      -2px 0 #00ffff88;
  }
  92% {
    text-shadow:
      -3px 0 #ff00aa,
      3px 0 #00ffff;
  }
  94% {
    text-shadow:
      3px 0 #ff00aa,
      -3px 0 #00ffff;
  }
}

/* Buttons */
.btn-cyber {
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-cyber:hover {
  background: #00ff8818;
  box-shadow: 0 0 20px #00ff8844;
  color: var(--neon);
}

/* Cards */
.card-cyber {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.card-cyber:hover {
  border-color: var(--neon);
}

.section-prefix {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--neon-dim);
  display: block;
  margin-bottom: 0.35rem;
}

/* Rating bar */
.sync-rating {
  height: 6px;
  background: #1a2a22;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.sync-rating-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-dim), var(--neon));
  border-radius: 2px;
  width: 0;
  max-width: 100%;
  transition: width 1s ease-out;
}

.sync-rating-bar.visible {
  width: var(--rating-pct, 80%);
}

/* Hero zone */
.cyber-hero {
  min-height: 52vh;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 255, 136, 0.08), transparent),
    var(--bg);
}

/* Carousel zone C */
.cyber-carousel-wrap {
  height: 400px;
}

.cyber-carousel-wrap .carousel-item {
  height: 400px;
  background: linear-gradient(135deg, #0a1612 0%, #050505 100%);
  border: 1px solid var(--card-border);
}

.cyber-carousel-wrap .carousel-caption {
  position: static;
  padding: 2rem;
  text-align: left;
}

/* Team HUD cards */
.team-card {
  border: 1px solid var(--neon);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.15) inset;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 4px;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Terminal log */
.terminal-log {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  background: #020403;
  border: 1px solid var(--card-border);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  color: var(--neon-dim);
  line-height: 1.7;
}

.terminal-log .log-line {
  display: block;
}

.terminal-log time {
  color: #4a7a66;
  margin-right: 0.5rem;
}

/* Footer grid */
.cyber-footer {
  background:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 1rem 1.5rem;
}

.cyber-footer .badge-18 {
  background: #331111;
  color: #ff6666;
  border: 1px solid #662222;
}

/* Tables */
.table-cyber {
  --bs-table-bg: #0a120e;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--neon);
  border: 1px solid var(--neon);
}

.table-cyber thead th {
  font-family: "IBM Plex Mono", monospace;
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* Top bookmakers: stack rows as single column on small screens */
@media (max-width: 767.98px) {
  .table-cyber-stack-wrap {
    overflow-x: visible;
  }

  .table.table-cyber-mobile-stack {
    border-collapse: separate;
    border-spacing: 0;
    border: none;
  }

  .table.table-cyber-mobile-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .table.table-cyber-mobile-stack tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--neon);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bs-table-bg);
  }

  .table.table-cyber-mobile-stack tbody tr:nth-of-type(odd) {
    --bs-table-accent-bg: transparent;
    background: rgba(0, 255, 136, 0.04);
  }

  .table.table-cyber-mobile-stack tbody td {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--card-border);
    padding: 0.75rem 1rem;
    vertical-align: top;
  }

  .table.table-cyber-mobile-stack tbody td:last-child {
    border-bottom: none;
  }

  .table.table-cyber-mobile-stack tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: "IBM Plex Mono", monospace;
    color: var(--neon);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
  }

  .table.table-cyber-mobile-stack tbody td[data-label="Actions"] .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    margin-right: 0;
  }

  .table.table-cyber-mobile-stack tbody td[data-label="Actions"] .btn:last-child {
    margin-bottom: 0;
  }
}

/* Debug FAQ */
.debug-faq-item {
  border: 1px dashed var(--neon-dim);
  padding: 1rem;
  margin-bottom: 1rem;
  background: #080c0a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.debug-faq-item strong {
  color: var(--neon);
  display: block;
  margin-bottom: 0.5rem;
}

/* Author badge */
.author-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--neon);
  background: var(--card-bg);
  margin: 1.5rem 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.author-badge img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--neon);
}

/* Modal age */
.modal-cyber .modal-content {
  background: #050505;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: "IBM Plex Mono", monospace;
}

.modal-cyber .modal-header {
  border-bottom-color: var(--card-border);
}

.modal-cyber .btn-close {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(90deg);
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 56px;
  left: 0;
  right: 0;
  z-index: 1020;
  background: #080c0a;
  border-top: 1px solid var(--neon);
  padding: 0.75rem 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  display: none;
}

@media (min-width: 1200px) {
  .cookie-bar {
    bottom: 0;
  }
}

.cookie-bar.show {
  display: block;
}

/* dl mono */
.dl-cyber dt {
  font-family: "IBM Plex Mono", monospace;
  color: var(--neon-dim);
  margin-top: 0.75rem;
}

.dl-cyber dd {
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 0;
}

/* Responsible gaming imgs */
.rg-row img {
  height: 36px;
  width: auto;
  opacity: 0.85;
  margin: 0.25rem;
  filter: grayscale(0.2);
}

.rg-row a:hover img {
  opacity: 1;
}

/* Sport subpages */
.sport-hero {
  min-height: 42vh;
  padding: 2.75rem 1.5rem;
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--card-border);
}

.sport-nav-pills .nav-link {
  color: var(--muted);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
}

.sport-nav-pills .nav-link:hover,
.sport-nav-pills .nav-link.active {
  color: var(--neon);
  border-color: var(--neon);
}

/* Bookmaker review pages */
.bookmaker-brand {
  padding: 0.35rem 0 0.5rem;
}

.bookmaker-page-logo {
  display: block;
  max-height: 48px;
  width: auto;
  max-width: min(280px, 100%);
  height: auto;
}
