/* Licence & Crypto Explorer — BookmakerStats */

.lx-page {
  --lx-glow: rgba(59, 130, 246, 0.35);
  --lx-crypto: #f59e0b;
  --lx-crypto-dim: rgba(245, 158, 11, 0.15);
  --lx-fiat: #3b82f6;
  --lx-fiat-dim: rgba(59, 130, 246, 0.2);
  --lx-glass: rgba(18, 26, 43, 0.72);
  --lx-radius: 14px;
  margin-bottom: 2rem;
}

.lx-hero {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: calc(var(--lx-radius) + 4px);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #0b1220 100%);
  overflow: hidden;
}

.lx-hero__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--lx-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: lx-pulse 8s ease-in-out infinite;
}

@keyframes lx-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

.lx-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.lx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.lx-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #f8fafc 0%, #c7d2fe 55%, #fcd34d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lx-hero__lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin-bottom: 1.25rem;
}

.lx-hero__lede strong {
  color: var(--text);
}

.lx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.lx-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.lx-btn--primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent;
  color: #fff;
}

.lx-btn--primary:hover {
  border-color: transparent;
  filter: brightness(1.08);
}

.lx-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.lx-btn--block {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.lx-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .lx-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lx-kpi {
  padding: 1rem 1.1rem;
  border-radius: var(--lx-radius);
  border: 1px solid var(--border);
  background: var(--lx-glass);
  backdrop-filter: blur(8px);
}

.lx-kpi--loading .lx-kpi__value {
  opacity: 0.45;
}

.lx-kpi__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.lx-kpi__value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.lx-kpi__value--crypto {
  color: var(--lx-crypto);
}

.lx-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .lx-layout {
    grid-template-columns: 1fr;
  }
}

.lx-panel {
  border-radius: var(--lx-radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.15rem 1.25rem;
}

.lx-panel--filters {
  position: sticky;
  top: calc(var(--topbar-h) + 0.75rem);
}

.lx-panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.lx-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
}

.lx-panel__head .lx-panel__title {
  margin-bottom: 0;
}

.lx-panel__sub {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.lx-panel__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.lx-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lx-field {
  display: block;
  margin-bottom: 1rem;
}

.lx-field__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.lx-select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
}

.lx-toggle-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.lx-toggle {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lx-toggle.is-active {
  background: var(--lx-crypto-dim);
  border-color: var(--lx-crypto);
  color: #fde68a;
}

.lx-range {
  width: 100%;
  accent-color: var(--accent);
}

.lx-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.lx-check input {
  margin-top: 0.15rem;
}

/* Chart */
.lx-chart {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lx-bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr 3.25rem;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8125rem;
}

.lx-bar-row__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
}

.lx-bar-row__label {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.lx-bar-row__count {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.lx-bar-row__track {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  overflow: hidden;
}

.lx-bar-row__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97706, #f59e0b 55%, #fbbf24);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lx-bar-row__pct {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--lx-crypto);
  white-space: nowrap;
}

.lx-bar-row__pct--low {
  color: var(--muted);
}

.lx-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.lx-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lx-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.lx-legend-crypto {
  background: var(--lx-crypto);
}

.lx-panel__head {
  align-items: flex-start;
}

.lx-panel__sub {
  max-width: 16rem;
  text-align: right;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .lx-bar-row {
    grid-template-columns: minmax(110px, 1fr) 2.75rem;
    grid-template-rows: auto auto;
  }
  .lx-bar-row__track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .lx-bar-row__pct {
    grid-column: 2;
    grid-row: 1;
  }
  .lx-panel__sub {
    max-width: none;
    text-align: left;
  }
}

/* Table */
.lx-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.lx-table .lx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.lx-badge--yes {
  background: var(--lx-crypto-dim);
  color: #fde68a;
}

.lx-badge--no {
  background: rgba(139, 155, 184, 0.12);
  color: var(--muted);
}

.lx-empty {
  margin-top: 0.75rem;
}

.lx-embed {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
}

.lx-embed__code-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.75rem 0 0.35rem;
}

.lx-embed__code {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Embed mode — hide chrome when ?embed=1 */
body.lx-embed-mode .site-sidebar,
body.lx-embed-mode .site-topbar,
body.lx-embed-mode .site-footer,
body.lx-embed-mode .breadcrumb,
body.lx-embed-mode #admin-topbar,
body.lx-embed-mode .lx-embed,
body.lx-embed-mode .lx-hero__actions {
  display: none !important;
}

body.lx-embed-mode .site-body {
  margin-left: 0 !important;
}

body.lx-embed-mode .lx-hero {
  padding-top: 1.25rem;
}

body.lx-embed-mode .lx-panel--filters {
  position: static;
}
