@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-dark: #07090E;
  --bg-darker: #040508;
  --bg-card: rgba(16, 22, 34, 0.78);
  --bg-card-hover: rgba(24, 32, 48, 0.9);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(191, 87, 0, 0.4);
  
  --brand-orange: #BF5700;
  --brand-orange-light: #E66B00;
  --brand-orange-glow: rgba(191, 87, 0, 0.35);
  
  --accent-cyan: #00F2FE;
  --accent-green: #10B981;
  --accent-purple: #8B5CF6;
  --accent-amber: #F59E0B;
  --accent-red: #EF4444;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-main: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(191, 87, 0, 0.25);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(191, 87, 0, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

/* Top Payment/Testing Notice Banner */
.notice-banner {
  background: linear-gradient(90deg, #1e1b4b, #31103f, #3b0764);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #F3E8FF;
  padding: 10px 20px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.notice-banner .badge {
  background: rgba(255, 255, 255, 0.18);
  color: #FFF;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-orange), #E66B00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
  color: #FFF;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-title span {
  color: var(--brand-orange);
  -webkit-text-fill-color: var(--brand-orange);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

.bankroll-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
  color: #FFF;
  box-shadow: 0 4px 15px var(--brand-orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191, 87, 0, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-cyan {
  background: linear-gradient(135deg, #00C6FF, #0072FF);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Layout Container */
.container {
  max-width: 1900px;
  width: 96%;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

/* Sports Bar */
.sports-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.sport-pill {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sport-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.sport-pill.active {
  background: linear-gradient(135deg, var(--brand-orange), #D95300);
  color: #FFF;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  border: 1px solid rgba(0, 242, 254, 0.4);
  transition: var(--transition);
}

.brand-logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(191, 87, 0, 0.6);
}

/* Main 3-Column Grid Layout (Spacious 1900px Desktop Layout) */
.grid-layout {
  display: grid;
  grid-template-columns: 360px 1fr 360px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1400px) {
  .grid-layout {
    grid-template-columns: 330px 1fr;
  }
  .right-sidebar {
    grid-column: 1 / -1;
  }
}

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

/* Column Drop Zone Styles for Draggable Panels */
.left-sidebar, .main-content, .right-sidebar {
  min-height: 520px;
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px transparent dashed;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.left-sidebar.drag-over-column,
.main-content.drag-over-column,
.right-sidebar.drag-over-column {
  background: rgba(0, 242, 254, 0.06) !important;
  border-color: rgba(0, 242, 254, 0.4) !important;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.15) !important;
}

.drag-placeholder {
  min-height: 140px;
  border: 2px dashed var(--brand-orange);
  background: rgba(191, 87, 0, 0.12);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

/* Draggable & Snappable Dashboard Panels */
.drag-handle {
  cursor: grab;
  opacity: 0.55;
  padding: 4px 8px;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.drag-handle:hover {
  opacity: 1;
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.drag-handle:active {
  cursor: grabbing;
}

.draggable-card {
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
  user-select: none;
}

.draggable-card.dragging {
  opacity: 0.4;
  transform: scale(0.97);
  border: 2px dashed var(--accent-cyan) !important;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2) !important;
}

.draggable-card.drag-over {
  border: 2px dashed var(--brand-orange) !important;
  background: rgba(191, 87, 0, 0.15) !important;
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(191, 87, 0, 0.4) !important;
}

.draggable-card.snapping {
  animation: snapBounce 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes snapBounce {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1.0); }
}

/* Glass Card */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-main);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.season-select-compact {
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.15);
  transition: var(--transition);
}

.season-select-compact:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: #00F2FE;
}
  border-bottom: 1px solid var(--border-card);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFF;
}

.card-title i {
  color: var(--brand-orange);
}

/* Team Focus Header Banner */
.team-banner {
  background: linear-gradient(135deg, rgba(191, 87, 0, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(191, 87, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.team-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.team-logo-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFF;
  font-weight: 900;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding: 6px;
}

.team-logo-lg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease;
}

.team-logo-lg:hover {
  transform: scale(1.08);
}

.team-logo-md {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.team-logo-sm {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.team-details h2 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.team-details p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.team-stats-row {
  display: flex;
  gap: 24px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-box .val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.stat-box .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Matchup Banner */
.matchup-card {
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.9) 0%, rgba(12, 16, 26, 0.95) 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-card);
}

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

.matchup-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  text-align: center;
}

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

.team-side .t-code {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.team-side .t-name {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.vs-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brand-orange);
}

.odds-bar {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.odds-item {
  text-align: center;
}

.odds-item .lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.odds-item .val {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-amber);
}

/* Tabs & Content */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

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

.tab-btn.active {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

/* Analytics Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
}

/* Agent Feed List */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.feed-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition);
}

.feed-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.feed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.platform-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
}

.tag-youtube { background: rgba(239, 68, 68, 0.2); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.4); }
.tag-twitter { background: rgba(0, 242, 254, 0.2); color: #7DD3FC; border: 1px solid rgba(0, 242, 254, 0.4); }
.tag-weather { background: rgba(245, 158, 11, 0.2); color: #FDE68A; border: 1px solid rgba(245, 158, 11, 0.4); }
.tag-injury { background: rgba(239, 68, 68, 0.25); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.tag-odds { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.4); }

.feed-headline {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #FFF;
}

.feed-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Simulation Controls & Roster Power Score Adjustments */
.slider-group {
  margin-bottom: 18px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.slider-val {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

input[type=range] {
  width: 100%;
  accent-color: var(--brand-orange);
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
}

.roster-team-header {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-orange);
  letter-spacing: 0.5px;
  padding: 6px 12px;
  background: rgba(191, 87, 0, 0.12);
  border-left: 3px solid var(--brand-orange);
  border-radius: 4px;
  margin: 12px 0 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-tweak-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.player-tweak-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.player-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Pulsing Agent Indicator */
.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#powerRatingsModal {
  z-index: 1500 !important;
}

#playerModal {
  z-index: 2500 !important;
}

#aiConfigModal {
  z-index: 2600 !important;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* Tooltip Cards & Popovers */
.metric-tooltip-card {
  position: relative;
  transition: all 0.2s ease;
}

.metric-tooltip-card:hover {
  border-color: rgba(0, 242, 254, 0.4) !important;
  background: rgba(0, 242, 254, 0.06) !important;
}

.hover-tooltip-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 260px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3000;
}

.metric-tooltip-card:hover .hover-tooltip-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hover-tooltip-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--accent-cyan) transparent transparent transparent;
}

.perf-metric-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
}

.perf-metric-pill .val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.98rem;
  color: #FFF;
}

.perf-metric-pill .lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.perf-metric-pill .sub {
  font-size: 0.63rem;
  color: var(--accent-cyan);
  margin-top: 1px;
}

/* Position Group Unit Sliders Box */
.pos-group-tweak-box {
  transition: all 0.2s ease;
}

.pos-group-tweak-box:hover {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: #FFF;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--brand-orange);
}

/* Table styling for Admin & Bets */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.custom-table th, .custom-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}

.custom-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.custom-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Select & Season Dropdown Option Styling Fix */
select, .season-select-compact {
  background-color: #0b1120 !important;
  color: var(--accent-cyan) !important;
  border: 1px solid rgba(0, 242, 254, 0.4) !important;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
}

select option, .season-select-compact option {
  background-color: #0f172a !important;
  color: #ffffff !important;
  padding: 8px 12px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
}

select option:hover, select option:focus, select option:checked {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

/* Informational (?) Tooltip & Popover System */
.info-popover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  margin-left: 5px;
  position: relative;
  transition: all 0.2s ease;
  vertical-align: middle;
  line-height: 1;
}

.info-popover-btn:hover {
  background: var(--accent-cyan);
  color: #0d131f;
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.info-tooltip-box {
  visibility: hidden;
  opacity: 0;
  width: 250px;
  background: #0b1329;
  color: #f1f5f9;
  text-align: left;
  border-radius: 8px;
  padding: 10px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(0, 242, 254, 0.35);
  border: 1px solid rgba(0, 242, 254, 0.3);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.info-tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #0b1329 transparent transparent transparent;
}

.info-popover-btn:hover .info-tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ==========================================================================
   DEVELOPMENT COMPONENT INSPECTOR OVERLAY & BADGES
   ========================================================================== */
.dev-component-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFE600, #FF9900);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(255, 230, 0, 0.4);
  margin-bottom: 8px;
  border: 1px solid #FFF;
  letter-spacing: 0.5px;
  user-select: all;
  width: fit-content;
  z-index: 10;
}

.dev-component-tag code {
  background: rgba(0, 0, 0, 0.88);
  color: #00F2FE;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.70rem;
}

.dev-toggle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 230, 0, 0.15);
  border: 1px solid rgba(255, 230, 0, 0.5);
  color: #FFE600;
  border-radius: var(--radius-full);
  font-size: 0.80rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.dev-toggle-badge:hover {
  background: rgba(255, 230, 0, 0.28);
  box-shadow: 0 0 14px rgba(255, 230, 0, 0.4);
  transform: translateY(-1px);
}

.dev-toggle-badge.active {
  background: #FFE600;
  color: #000;
  box-shadow: 0 0 16px rgba(255, 230, 0, 0.6);
}

body.dev-mode-active .dev-component-tag {
  display: inline-flex !important;
}

body:not(.dev-mode-active) .dev-component-tag {
  display: none !important;
}

/* ==========================================================================
   Resizable Widgets & Panels (#aiChatWidget and #rightSidebarRosterCard)
   ========================================================================== */
#aiChatWidget {
  resize: both;
  overflow: hidden;
  min-width: 280px;
  max-width: 850px;
  height: 400px;
  min-height: 250px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

#aiChatWidget #chatWidgetBody {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

#aiChatWidget #chatMessageThread {
  flex: 1 1 auto;
  min-height: 100px;
  max-height: none !important;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scroll-behavior: smooth;
}

#rightSidebarRosterCard {
  resize: vertical;
  overflow: hidden;
  min-height: 380px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

#rightSidebarRosterCard #sidebarRosterList {
  flex: 1;
  min-height: 180px;
  max-height: none !important;
  overflow-y: auto;
}

/* Visual resize corner indicator */
.resize-grip-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  pointer-events: none;
  font-size: 10px;
  color: var(--accent-cyan);
  opacity: 0.6;
  z-index: 10;
}

/* AI Engine Configuration Modal & Provider Tabs */
.engine-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.engine-provider-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.engine-provider-card:hover {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.05);
  color: #FFF;
}

.engine-provider-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  color: #FFF;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.engine-provider-card i {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 4px;
}

.engine-config-field-group {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}


