:root {
  --bg-dark: #090c10;
  --bg-sidebar: #0f141c;
  --bg-card: #151b26;
  --bg-card-hover: #1c2433;
  --bg-input: #1b2331;
  --border-color: #242e40;
  --border-subtle: #1a2230;

  --text-main: #f0f4fc;
  --text-muted: #8b99ad;
  --text-dim: #5c6778;

  --accent-green: #00e676;
  --accent-green-bg: rgba(0, 230, 118, 0.12);
  --accent-cyan: #00e5ff;
  --accent-cyan-bg: rgba(0, 229, 255, 0.12);
  --accent-yellow: #ffb300;
  --accent-yellow-bg: rgba(255, 179, 0, 0.12);
  --accent-red: #ff3366;
  --accent-red-bg: rgba(255, 51, 102, 0.12);
  --accent-purple: #b388ff;
  --accent-purple-bg: rgba(179, 136, 255, 0.12);
  --accent-blue: #2979ff;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  overflow-x: hidden;
}

/* APP LAYOUT */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

/* SIDEBAR */
.sidebar {
  width: 320px;
  min-width: 320px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  padding: 16px;
  gap: 16px;
}

.sidebar-brand {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 24px;
  background: linear-gradient(135deg, #00e5ff, #2979ff);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-sub {
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* STATUS CARD */
.sidebar-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

.pulse-dot.error {
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

.status-badge.error {
  background: var(--accent-red-bg);
  color: var(--accent-red);
}

.status-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-status-badge.blocked {
  background: rgba(255, 51, 102, 0.15);
  color: #ff5277;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
}

.feed-status-badge.live {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* SIDEBAR SECTION */
.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* CHECKBOXES */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.checkbox-box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.custom-checkbox input:checked + .checkbox-box {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.custom-checkbox input:checked + .checkbox-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* TOURNAMENTS SCROLL BOX */
.tournament-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-links {
  display: flex;
  gap: 8px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 10px;
  cursor: pointer;
  text-decoration: underline;
}

.search-input-compact {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main);
  padding: 5px 8px;
  font-size: 11px;
  outline: none;
}

.search-input-compact:focus {
  border-color: var(--accent-blue);
}

.tournaments-scroll-box {
  max-height: 140px;
  overflow-y: auto;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loading-placeholder {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 10px;
}

/* NUMERIC STEPPERS */
.numeric-steppers {
  display: flex;
  gap: 8px;
}

.stepper-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stepper-sub {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stepper-control {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.stepper-control input {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  text-align: center;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  outline: none;
  padding: 4px 0;
}

.step-btn {
  background: var(--bg-card);
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s;
}

.step-btn:hover {
  background: var(--border-color);
  color: #fff;
}

/* BUTTONS */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #0088cc, #0055ff);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 2px 10px rgba(0, 136, 204, 0.4);
}

.btn-secondary {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-main);
}

/* TOGGLE SWITCH */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-color);
  transition: .2s;
  border-radius: 18px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-green);
}

input:checked + .toggle-slider:before {
  transform: translateX(14px);
}

/* ACTIVE FILTER CARD */
.active-filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.badge-status {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--accent-red-bg);
  color: var(--accent-red);
}

.badge-status.active {
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

.active-filter-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.active-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.active-row strong {
  color: var(--text-main);
  max-width: 160px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-align: right;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100vh;
}

/* TOP NAV */
.top-nav {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 16px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #fff;
  border-bottom-color: var(--accent-blue);
}

.tab-btn:hover {
  color: var(--text-main);
}

.nav-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-green-bg);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-green);
}

.pulse-dot-green {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.metric-item {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 4px;
}

.metric-item strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* CONTENT HEADER */
.content-header {
  padding: 20px 24px 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-titles h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.header-titles p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.refresh-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auto-refresh-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}

.select-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 11px;
  outline: none;
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* STAT CARDS */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 0 24px 16px 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

.stat-value.cyan { color: var(--accent-cyan); }
.stat-value.purple { color: var(--accent-purple); }
.stat-value.green { color: var(--accent-green); }
.val-won { color: var(--accent-green); }
.val-lost { color: var(--accent-red); }

.stat-trend {
  font-size: 10px;
  color: var(--text-dim);
}

/* FEED FILTER BAR */
.feed-filter-bar {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
}

.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-control-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-control-item label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}

.filter-control-item.wide { min-width: 180px; flex: 1; }
.filter-control-item.compact { width: 80px; }
.filter-control-item.search { min-width: 180px; flex: 1; }

.form-select, .form-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main);
  padding: 6px 8px;
  font-size: 11px;
  outline: none;
}

.form-select:focus, .form-input:focus {
  border-color: var(--accent-blue);
}

.filter-actions {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  position: relative;
  z-index: 10;
}

.filter-actions .btn-primary {
  width: auto;
  padding: 6px 14px;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 11;
}

.filter-actions .btn-primary:active {
  transform: scale(0.97);
}

.filter-actions .btn-secondary {
  width: auto;
  padding: 6px 12px;
  margin-top: 0;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 11;
}

.btn-success-flash {
  background: linear-gradient(135deg, #00b074, #008f5d) !important;
  box-shadow: 0 0 10px rgba(0, 176, 116, 0.5) !important;
}

/* TABLE */
.table-container {
  flex: 1;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
}

.table-responsive {
  flex: 1;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.bets-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}

.bets-table th {
  background: #111622;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  user-select: none;
}

.bets-table th.sortable {
  cursor: pointer;
  transition: all 0.15s;
}

.bets-table th.sortable:hover {
  color: #fff;
  background: #182030;
}

.bets-table th.active-sort {
  color: var(--accent-cyan);
}

.bets-table th.numeric {
  text-align: right;
}

.sort-icon {
  font-size: 9px;
  margin-left: 2px;
  opacity: 0.6;
}

.bets-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  color: var(--text-main);
}

.bets-table td.numeric {
  text-align: right;
  font-family: var(--font-mono);
}

.bets-table tbody tr:hover {
  background: var(--bg-card-hover);
}

/* BADGES IN TABLE */
.sport-pill {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}

.sport-pill.tt { color: #ff9100; background: rgba(255, 145, 0, 0.1); }
.sport-pill.tennis { color: #00e5ff; background: rgba(0, 229, 255, 0.1); }

.status-badge-table {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge-table.won { background: var(--accent-green-bg); color: var(--accent-green); }
.status-badge-table.lost { background: var(--accent-red-bg); color: var(--accent-red); }
.status-badge-table.pending { background: var(--accent-yellow-bg); color: var(--accent-yellow); }
.status-badge-table.void { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

.live-badge-table {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 10px;
}

.link-action {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.link-action:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
}

.empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-icon {
  font-size: 36px;
}

.empty-message h3 {
  font-size: 15px;
  color: #fff;
}

.empty-message p {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 480px;
}

/* PAGINATION */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}

.pagination-info {
  font-size: 11px;
  color: var(--text-dim);
}

.pagination-buttons {
  display: flex;
  gap: 8px;
}

.btn-page {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-page:hover:not(:disabled) {
  background: var(--border-color);
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* RESPONSIVENESS */
@media (max-width: 1200px) {
  .stat-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* SIDEBAR CREDENTIALS INPUTS & HINTS */
.sidebar-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  transition: border-color 0.2s;
}

.sidebar-input:focus {
  border-color: var(--accent-cyan);
}

.field-hint {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
}

.save-msg {
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
}

.save-msg.success {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.save-msg.error {
  background: var(--accent-red-bg);
  color: var(--accent-red);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

/* PLAYER ANALYTICS TABLE STYLING */
.player-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(41, 121, 255, 0.2));
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.player-name-text {
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.player-name-text:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.tournaments-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 280px;
}

.tourn-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.winrate-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.winrate-badge.high {
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

.winrate-badge.mid {
  background: var(--accent-yellow-bg);
  color: var(--accent-yellow);
}

.winrate-badge.low {
  background: var(--accent-red-bg);
  color: var(--accent-red);
}

.winrate-badge.neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.btn-action-view {
  background: rgba(41, 121, 255, 0.12);
  border: 1px solid rgba(41, 121, 255, 0.3);
  color: var(--accent-blue);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-action-view:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* MODAL DIALOG */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
  max-width: 1050px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-sidebar);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-group h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.modal-stat-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-stat-card span {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modal-stat-card strong {
  font-size: 16px;
  font-family: var(--font-mono);
  color: #fff;
}

.modal-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.modal-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.modal-table-box {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* SPORT-SPECIFIC TELEGRAM FILTER BLOCKS */
.sport-filter-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sport-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.sport-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.toggle-switch.small {
  width: 32px;
  height: 18px;
}

.toggle-switch.small .toggle-slider::before {
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
}

.toggle-switch.small input:checked + .toggle-slider::before {
  transform: translateX(14px);
}

.section-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.active-sport-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.active-sport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.badge-sub {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.badge-sub.active {
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

.active-sport-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
}

