/* Design Tokens & Colors */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #121824;
  --glass-bg: rgba(18, 24, 38, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(59, 130, 246, 0.4);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent: #3b82f6;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.4);
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --bg-surface-alt: #f1f5f9;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-accent: 0 0 15px rgba(59, 130, 246, 0.25);
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(29, 78, 216, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding: 24px;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* Base Select & Option Dark-Mode Alignment */
select {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  color-scheme: dark;
}

select option {
  background-color: #0b1120;
  color: #f8fafc;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Button & Nav Overrides */
.nav-btn {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn.primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
  border: none;
  box-shadow: var(--shadow-accent);
}

.nav-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.nav-btn.danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
  color: var(--accent-red);
}

.nav-btn.danger:hover {
  background: var(--accent-red);
  color: white;
  border-color: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red-glow);
}

/* 1. Full Screen Overlays (Login, Lobby) */
.full-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 10% 20%, rgba(29, 78, 216, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

/* Ensure Lobby Screen is anchored at the top so header position never shifts */
#lobby-screen.full-screen-overlay {
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Ensure Console Modals (Scoring Console, Participants) are on top of Lobby and anchored at top */
.console-modal-overlay,
#admin-stats-modal.full-screen-overlay,
#admin-participants-modal.full-screen-overlay {
  z-index: 150 !important;
  align-items: flex-start !important;
  padding: 24px;
  overflow-y: auto !important;
  overflow-x: hidden;
}

/* Auth Card Styling */
.auth-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-glow);
  text-align: center;
  animation: modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-header {
  margin-bottom: 30px;
}

.auth-logo-icon {
  font-size: 48px;
  display: inline-block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.4));
}

.auth-header h2 {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-header h2 span {
  color: var(--accent-blue);
  -webkit-text-fill-color: var(--accent-blue);
}

.auth-header p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 1px;
}

.auth-form .form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--glass-border-focus);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.auth-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  color: white;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-accent);
  transition: var(--transition-fast);
  margin-top: 10px;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

.auth-btn:active {
  transform: translateY(0);
}

/* 2. Match Lobby Screen */
.lobby-container {
  width: 100%;
  max-width: 1120px;
  min-height: calc(100vh - 48px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  gap: 16px;
  position: relative;
  z-index: 50;
}

.lobby-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  min-width: 0;
}

.lobby-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  flex-shrink: 0;
  cursor: pointer;
}

.logo-icon {
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
}

.lobby-brand-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 175px;
}

.lobby-brand-titles h2 {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-brand-titles p {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin: 2px 0 0 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
  transition: color 0.15s ease;
}

.lobby-brand-titles p:hover {
  color: #94a3b8;
  text-decoration: underline dotted;
}

.lobby-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#lobby-screen.in-rbac-view .lobby-container {
  max-width: 1360px;
}

/* Dropdown Container */
.lobby-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-caret,
.account-caret {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.lobby-dropdown-wrapper.is-open .nav-caret,
.lobby-dropdown-wrapper.is-open .account-caret {
  transform: rotate(180deg);
}

/* Floating Dropdown Menus */
.lobby-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 220;
  background: #0d1526;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 8px;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lobby-dropdown-menu.settings-menu {
  width: 290px;
  left: 0;
}

.dropdown-section-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  padding: 6px 10px 6px 10px;
  text-transform: uppercase;
}

.dropdown-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #ffffff;
  font-family: inherit;
}

.dropdown-item-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.dropdown-item-card.active {
  background: #172238;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: inset 3px 0 0 #f59e0b;
}

.dropdown-item-card.active .dropdown-item-title {
  color: #fbbf24;
}

.dropdown-item-card.active .dropdown-item-desc {
  color: #fde68a;
  opacity: 0.85;
}

.dropdown-item-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
}

.dropdown-item-desc {
  font-size: 11px;
  color: #828fa3;
  line-height: 1.35;
}

/* User Account Widget & Header Actions (Top Right) */
.lobby-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.user-account-widget {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   REFRESH BUTTONS (Match Center & Fantasy Arena)
   ========================================================================== */
.nav-btn-refresh,
.dt-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.nav-btn-refresh:hover,
.dt-refresh-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 12px rgba(245, 158, 11, 0.15);
}

.nav-btn-refresh:active,
.dt-refresh-btn:active {
  transform: translateY(0);
}

.lineup-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.lineup-refresh-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.45);
  color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 12px rgba(59, 130, 246, 0.2);
}

.lineup-refresh-btn:active {
  transform: translateY(0);
}

.refresh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.25s ease;
}

.refresh-icon.is-spinning,
.is-refreshing .refresh-icon {
  animation: spin 0.75s linear infinite !important;
}

.nav-btn-refresh.is-refreshing,
.dt-refresh-btn.is-refreshing,
.lineup-refresh-btn.is-refreshing {
  opacity: 0.75;
  cursor: default;
  pointer-events: none;
}

/* User Profile Widget (Fallback / Console Modals / Dashboard) */
.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.user-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.user-account-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f59e0b;
  color: #0f172a !important;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.user-account-name {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}

.user-account-role-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 2px 6px;
  border-radius: 4px;
}

.lobby-dropdown-menu.account-menu {
  width: 230px;
  right: 0;
  left: auto;
}

.account-menu-user-info {
  padding: 8px 10px;
}

.account-info-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.account-info-role {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.dropdown-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.account-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.account-logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* User Tag (fallback) */
.user-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================
   MOBILE BOTTOM NAVIGATION & SETTINGS BOTTOM SHEET
   ========================================================== */
.mobile-bottom-tab-bar {
  display: none;
}

.mobile-bottom-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 290;
  transition: opacity 0.25s ease;
}

.mobile-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1526;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px 20px 0 0;
  padding: 12px 18px 28px 18px;
  z-index: 300;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.bottom-sheet-drag-handle {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  margin: 0 auto 12px auto;
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.bottom-sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.bottom-sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.bottom-sheet-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bottom-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  color: #ffffff;
  font-family: inherit;
}

.bottom-sheet-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.bottom-sheet-item.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.bottom-sheet-item.active .sheet-item-title {
  color: #fbbf24;
  font-weight: 700;
}

.sheet-item-icon {
  font-size: 20px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sheet-item-text {
  flex: 1;
}

.sheet-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
}

.sheet-item-desc {
  font-size: 11.5px;
  color: #828fa3;
  margin-top: 2px;
}

.sheet-item-arrow {
  font-size: 18px;
  color: #64748b;
}

.bottom-sheet-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.bottom-sheet-item.danger-item {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
}

.bottom-sheet-item.danger-item .sheet-item-title {
  color: #f87171;
}

/* Match Grid & Compact Cards */
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .match-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.match-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.1);
}

/* Match Card Hero Banner (Top Dark Section - Compact) */
.match-card-banner {
  position: relative;
  width: 100%;
  height: 96px;
  background: radial-gradient(circle at 50% 50%, #151e33 0%, #090e1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Status Badge Top Left */
.match-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  line-height: 1.4;
}

.match-card-badge .badge-dot {
  font-size: 8px;
  line-height: 1;
}

.match-card-badge.upcoming {
  background: #f59e0b !important;
  color: #1c1917 !important;
}

.match-card-badge.upcoming .badge-dot {
  color: #1c1917 !important;
}

.match-card-badge.live {
  background: #10b981 !important;
  color: #ffffff !important;
  animation: pulse-badge 1.8s infinite;
}

.match-card-badge.live .badge-dot {
  color: #ffffff !important;
}

.match-card-badge.vod {
  background: #475569 !important;
  color: #ffffff !important;
}

.match-card-badge.vod .badge-dot {
  color: #cbd5e1 !important;
}

/* Team Versus Circles */
.match-card-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  user-select: none;
}

.team-badge-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-family: var(--font-title, sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.match-card:hover .team-badge-circle {
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.05);
}

.teams-vs-label {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: lowercase;
  font-family: var(--font-body, sans-serif);
}

/* Card Body (Clean White Section - Optimized Spacing) */
.match-card-body {
  padding: 12px 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-grow: 1;
}

.match-card-title {
  font-family: var(--font-title, sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #0f172a !important;
  margin: 0;
  line-height: 1.3;
}

.match-card-desc {
  font-size: 11.5px;
  color: #64748b !important;
  margin: 0;
  line-height: 1.35;
}

/* Format Meta Pills */
.match-meta-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1px;
}

.match-meta-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.4;
}

/* Stream Settings Accordion - Compact */
.match-stream-accordion {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 2px;
  transition: border-color 0.2s ease;
}

.match-stream-accordion:hover {
  border-color: #cbd5e1;
}

.stream-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  background: #f8fafc;
  transition: background 0.15s ease;
}

.stream-accordion-header:hover {
  background: #f1f5f9;
}

.stream-accordion-title {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
}

.stream-accordion-icon {
  color: #64748b;
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.match-stream-accordion.expanded .stream-accordion-icon {
  transform: rotate(180deg);
}

.stream-accordion-content {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px 10px 8px 10px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

.match-stream-accordion.expanded .stream-accordion-content {
  display: flex;
}

.stream-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  line-height: 1.35;
}

.stream-setting-label {
  color: #64748b;
  font-weight: 500;
  width: 70px;
  flex-shrink: 0;
}

.stream-setting-val {
  color: #0d9488;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-setting-val.masked-key {
  letter-spacing: 1px;
}

.stream-setting-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.stream-action-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.stream-action-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Quick Action Pills Row - Compact */
.match-actions-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2px;
}

.match-pill-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  font-family: var(--font-body, sans-serif);
  line-height: 1.35;
}

.match-pill-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.match-pill-btn.fantasy-winners-pill {
  border: 1.5px solid #f59e0b;
  color: #b45309;
  background: #fffbeb;
  font-weight: 600;
}

.match-pill-btn.fantasy-winners-pill:hover {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
}

/* Customer Direct Option Menu in Match Tile */
.cust-tile-options-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.cust-opt-btn {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  position: relative;
  outline: none;
  font-family: var(--font-body, sans-serif);
}

.cust-opt-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Customer Fantasy Option Styling */
.cust-opt-btn.cust-fantasy-btn {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}

.cust-opt-btn.cust-fantasy-btn:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.15);
}

/* Customer Broadcast Option Styling */
.cust-opt-btn.cust-broadcast-btn {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.cust-opt-btn.cust-broadcast-btn:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #3b82f6;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.15);
}

.cust-opt-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.cust-opt-tag-row {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.cust-opt-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
}

.cust-opt-tag.fantasy-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.cust-opt-tag.broadcast-tag {
  background: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.cust-opt-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cust-opt-icon {
  font-size: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cust-opt-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.cust-opt-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.cust-opt-btn.cust-fantasy-btn .cust-opt-title {
  color: #78350f;
}

.cust-opt-btn.cust-broadcast-btn .cust-opt-title {
  color: #1e3a8a;
}

.cust-opt-desc {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
  margin-top: 1px;
}

.cust-opt-arrow {
  font-size: 13px;
  color: #64748b;
  font-weight: bold;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.cust-opt-btn.cust-fantasy-btn .cust-opt-arrow {
  color: #b45309;
}

.cust-opt-btn.cust-broadcast-btn .cust-opt-arrow {
  color: #2563eb;
}

.cust-opt-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.cust-opt-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.cust-opt-btn.cust-fantasy-btn .cust-opt-title {
  color: #78350f;
}

.cust-opt-btn.cust-broadcast-btn .cust-opt-title {
  color: #1e3a8a;
}

.cust-opt-desc {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.3;
  margin-top: 1px;
}

.cust-opt-arrow {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: bold;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.cust-opt-btn.cust-fantasy-btn .cust-opt-arrow {
  color: #b45309;
}

.cust-opt-btn.cust-broadcast-btn .cust-opt-arrow {
  color: var(--accent-primary);
}

.cust-opt-btn:hover .cust-opt-arrow {
  transform: translateX(2px);
}

/* Card Footer - Compact */
.match-card-footer {
  border-top: 1px solid var(--bg-surface-alt);
  padding-top: 9px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-amber);
  flex-shrink: 0;
}

.status-indicator-dot.unlocked {
  background: var(--accent-green);
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.45);
}

.status-indicator-dot.restricted {
  background: #94a3b8;
  box-shadow: none;
}

.cust-no-perm-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.cust-no-perm-icon {
  font-size: 14px;
}

.status-text-stack {
  display: flex;
  flex-direction: column;
}

.status-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.status-sub {
  font-size: 10px;
  color: #64748b;
  line-height: 1.2;
  font-weight: 500;
}

.match-card-btn.select-match-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0f19 !important;
  border: 1px solid rgba(245, 158, 11, 0.6);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, sans-serif);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  letter-spacing: 0.2px;
}

.match-card-btn.select-match-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0f19 !important;
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55);
  transform: translateY(-1px);
}

.match-card-btn.select-match-btn:active {
  transform: translateY(0);
}

.match-card-btn.select-match-btn:disabled,
.match-card-btn.select-match-btn.disabled {
  background: #f1f5f9;
  color: #94a3b8 !important;
  border: 1px solid #e2e8f0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.match-card-footer.cust-footer {
  padding-top: 8px;
  justify-content: space-between;
}

.cust-footer-hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.2px;
}

/* 3. Modal Overlays (Checkout Payment) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 150;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.payment-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modal-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.payment-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-header h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-main);
}

.payment-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Order Summary inside Payment */
.order-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.summary-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
}

.summary-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin: 4px 0 12px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px dashed var(--glass-border);
  padding-top: 10px;
}

.price-val {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-blue);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pay-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  color: white;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-accent);
  transition: var(--transition-fast);
  margin-top: 8px;
}

.pay-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.45);
}

/* 4. Gateway Loading Overlay */
.status-overlay-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 7, 12, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gateway-card {
  text-align: center;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#gateway-status-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 10px;
}

#gateway-status-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Success Checkmark Anim */
.success-checkmark-wrapper {
  margin: 10px 0;
}

.checkmark-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--accent-green);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  animation: check-scale 0.4s ease-out forwards;
}

.checkmark {
  color: var(--accent-green);
  font-size: 32px;
  font-weight: bold;
}

@keyframes check-scale {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* 5. Main App Container Layout */
.app-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modal-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}

.logo-text h1 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, var(--bg-secondary), #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.logo-text h1 span {
  color: var(--accent-blue);
  -webkit-text-fill-color: var(--accent-blue);
}

.logo-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
  display: block;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item.separator {
  width: 1px;
  height: 28px;
  background: var(--glass-border);
}

.meta-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Status dots */
.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-indicator-dot.online {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}
.status-indicator-dot.offline {
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.live-badge-wrapper {
  margin-left: 8px;
}

.live-badge {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-badge.active {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 0 12px var(--accent-red-glow);
  animation: pulse-badge 1.8s infinite;
}

.live-badge.active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
}

@keyframes pulse-badge {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .app-header .header-logo {
    width: 100%;
    justify-content: flex-start;
  }

  .app-header .header-meta {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .app-header .meta-item.separator {
    display: none;
  }

  .app-header .user-profile-widget {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Base Widget Styling */
.widget {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.widget-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-header h3 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.widget-header h3 .icon {
  font-size: 16px;
}

/* Video Player section */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.player-wrapper {
  background: var(--text-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow), 0 0 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-glass-border {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

#video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

/* Custom Overlay (offline/loading) */
.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 21, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-loader {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(59, 130, 246, 0.15);
  border-top: 3px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#overlay-msg {
  font-family: var(--font-title);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Console Widget */
.console-widget .console-body {
  padding: 16px;
  background: rgba(5, 7, 12, 0.95);
  height: 140px;
}

.connection-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

.connection-pill.connected {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.console-logs {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-line {
  word-break: break-all;
}

.log-line.system { color: var(--text-dim); }
.log-line.info { color: var(--accent-blue); }
.log-line.success { color: var(--accent-green); }
.log-line.warning { color: var(--accent-amber); }
.log-line.error { color: var(--accent-red); }

/* Sidebar components */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Scorecard Widget */
.scorecard-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

.scorecard-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.score-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-team-info {
  display: flex;
  flex-direction: column;
}

.team-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.team-innings {
  font-size: 11px;
  color: var(--text-dim);
}

.score-runs-wrapper {
  text-align: right;
}

.score-runs {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

.score-overs {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.score-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.stat-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  display: block;
  margin-bottom: 2px;
}

.stat-val {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
}

.score-current-players {
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-row {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 0;
}

.player-row.active-batsman {
  color: var(--text-main);
  font-weight: 600;
}

.player-row.bowler-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  margin-top: 4px;
}

.play-icon {
  font-size: 12px;
  margin-right: 8px;
  opacity: 0.7;
}

.player-name {
  flex-grow: 1;
}

.player-runs {
  font-family: var(--font-title);
  font-weight: 600;
}

/* Chat Widget */
.chat-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulse-dot-key 1.5s infinite;
}

@keyframes pulse-dot-key {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.chat-body {
  height: 290px;
  display: flex;
  flex-direction: column;
  background: rgba(8, 12, 21, 0.4);
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: message-in 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-author {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-author.user {
  color: var(--accent-green);
}

.chat-badge {
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-badge.fan {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.chat-badge.ind {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.chat-text {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-word;
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 10px;
  background: rgba(18, 24, 38, 0.9);
}

#chat-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--bg-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
  transition: var(--transition-fast);
}

#chat-input:focus {
  border-color: var(--glass-border-focus);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.send-btn {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.send-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.send-btn:active {
  transform: translateY(0);
}

.auth-msg {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: -10px;
  margin-bottom: 15px;
  text-align: center;
}
.auth-msg.error {
  color: #ff4757;
}

/* ===================================================
   MATCH OPTIONS MODAL (TWO OPTIONS CHOICE HUB)
   =================================================== */
.match-options-card {
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 95%;
  padding: 32px;
  box-shadow: var(--shadow-glow), 0 0 40px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.match-options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.selected-match-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
}

.match-options-hero {
  text-align: center;
  margin-bottom: 28px;
}

.match-options-hero h2 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.match-options-hero p {
  color: var(--text-dim);
  font-size: 14px;
}

.match-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.choice-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.choice-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

.dream-team-choice {
  border-color: rgba(245, 158, 11, 0.25);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(18, 24, 38, 0.8) 100%);
}

.dream-team-choice:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
}

.live-match-choice {
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, rgba(18, 24, 38, 0.8) 100%);
}

.live-match-choice:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.choice-badge {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 16px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber-hover);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.choice-badge.stream-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.choice-icon {
  font-size: 38px;
  margin-bottom: 12px;
}

.choice-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-secondary);
  margin-bottom: 8px;
}

.choice-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 16px;
  flex-grow: 1;
}

.choice-perks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #d1d5db;
  font-weight: 500;
}

.choice-action-btn {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  width: 100%;
}

.primary-fantasy {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-amber-hover) 100%);
  color: var(--text-main);
}

.primary-fantasy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.primary-stream {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
  color: var(--bg-secondary);
}

.primary-stream:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* ===================================================
   DREAM TEAM SCREEN
   =================================================== */
.dream-team-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  gap: 16px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dt-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dt-header-actions-extra {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-title-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-shrink: 0;
}

.dt-badge {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-amber);
}

.dt-title-box h2 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.dt-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3-Cell Comparison Score Strip (YOU | 🥇 Top 1 | 🥈 Top 2) */
.dt-score-strip {
  display: inline-flex;
  align-items: stretch;
  background: #0d121d;
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), inset 0 0 10px rgba(245, 158, 11, 0.05);
}

.dt-score-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 7px 20px;
  min-width: 95px;
  box-sizing: border-box;
}

.dt-score-cell.dt-cell-you {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.38) 0%, rgba(180, 83, 9, 0.45) 100%);
  padding: 7px 24px;
  min-width: 125px;
}

.dt-score-cell.dt-cell-leader {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  min-width: 110px;
}

.dt-cell-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #94a3b8;
}

.dt-cell-you .dt-cell-label {
  color: #f59e0b;
}

.dt-medal-icon {
  font-size: 13px;
  line-height: 1;
}

.dt-leader-name {
  color: #cbd5e1;
  font-weight: 700;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-cell-val {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
}

.dt-cell-val.dt-user-pts {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
}

/* Fallback for legacy score widgets */
.dt-score-widget {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 8px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dt-score-label {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-amber-hover);
  letter-spacing: 0.05em;
}

.dt-score-val {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.live-mobile-text {
  display: none;
}

.dt-user-avatar-circle {
  display: none;
}

.dt-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn.live-accent {
  background: linear-gradient(135deg, var(--accent-red) 0%, #b91c1c 100%);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
  font-weight: 700;
}

.nav-btn.live-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Tabs */
/* Full-Width Sponsor Stroller Strip in Dream Team */
.dt-ad-banner-strip {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(18, 24, 38, 0.7);
  padding: 8px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.dt-ad-banner-strip .broadcast-ad-marquee.dt-menu-marquee {
  width: 100%;
  height: 42px;
  margin: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dt-ad-banner-strip .broadcast-ad-marquee.dt-menu-marquee .ad-marquee-badge {
  padding: 0 14px;
  font-size: 10.5px;
}

.dt-ad-banner-strip .broadcast-ad-marquee.dt-menu-marquee .ad-marquee-item {
  padding: 0 28px;
  font-size: 13px;
  gap: 10px;
}

.dt-tab-btn {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.dt-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.dt-tab-btn.active {
  color: var(--bg-secondary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-indicator-count, .tab-indicator-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber-hover);
}

.tab-admin-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Content Area */
.dt-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  background: rgba(10, 14, 23, 0.85);
}

.dt-tab-pane {
  display: block;
}

/* ==========================================================================
   TAB 1: MY DREAM XI (LINEUP VIEW: PITCH + ROSTER)
   ========================================================================== */

.lineup-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Compact Header Row */
.lineup-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}

.lineup-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lineup-team-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.lineup-updated-at {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.lineup-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lineup-points-pill {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.lineup-configure-btn {
  background: #2563eb;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  white-space: nowrap;
}

.lineup-configure-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

/* Two-item Team Colours Legend */
.lineup-teams-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 2px 0 6px 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-dot.cyan {
  background: #00d2ff;
  box-shadow: 0 0 6px rgba(0, 210, 255, 0.6);
}

.legend-dot.pink {
  background: #ff2d78;
  box-shadow: 0 0 6px rgba(255, 45, 120, 0.6);
}

/* Main Split: Pitch on Left, Roster on Right */
.lineup-main-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Pitch Card: Green border, Dark emerald glass, No circle outline */
.lineup-pitch-card {
  background: #071f19;
  border: 1.5px solid #059669;
  border-radius: 16px;
  padding: 22px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.cricket-pitch {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pitch-role-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pitch-role-label {
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6ee7b7;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pitch-players-list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.pitch-empty-msg {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-style: italic;
  padding: 4px;
}

/* Player Tokens on Pitch */
.pitch-player-token {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.pitch-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b0f19;
  border: 3.5px solid #00d2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.pitch-avatar-initials {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 800;
  color: #000000;
  line-height: 1;
}

.pitch-badge-c,
.pitch-badge-vc {
  position: absolute;
  top: -4px;
  right: -4px;
  font-family: var(--font-title);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #071f19;
  box-sizing: border-box;
}

.pitch-badge-c {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  color: #000000;
  font-size: 9.5px;
  font-weight: 900;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.pitch-badge-vc {
  width: 20px;
  height: 18px;
  border-radius: 9px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  right: -6px;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

.pitch-player-pill {
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 5px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pitch-player-pts {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  margin-top: 2px;
  text-align: center;
}

/* Lineup Roster Card */
.lineup-roster-card {
  background: #0c121e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.lineup-roster-table {
  width: 100%;
  border-collapse: collapse;
}

.lineup-roster-table thead th {
  padding: 6px 0 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roster-th-player {
  text-align: left;
}

.roster-th-final {
  text-align: right;
}

.lineup-roster-row td {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lineup-roster-row:last-child td {
  border-bottom: none;
}

.roster-cell-player {
  vertical-align: middle;
}

.roster-player-wrap {
  display: flex;
  align-items: center;
}

.player-team-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  flex-shrink: 0;
}

.player-roster-name {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
}

.roster-mult-chip {
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.roster-mult-chip.chip-c {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.roster-mult-chip.chip-vc {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.roster-cell-final {
  text-align: right;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  font-weight: 800;
  color: #34d399;
  vertical-align: middle;
}

/* Responsive: Web Side-by-Side vs Mobile Stacked */
@media (max-width: 860px) {
  .lineup-main-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .lineup-top-header {
    display: grid;
    grid-template-areas:
      "title points"
      "subtitle points"
      "btn btn";
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
  }

  .lineup-header-left,
  .lineup-header-right {
    display: contents;
  }

  .lineup-team-title {
    grid-area: title;
    font-size: 20px;
  }

  .lineup-updated-at {
    grid-area: subtitle;
  }

  .lineup-points-pill {
    grid-area: points;
    align-self: start;
    font-size: 12.5px;
    padding: 5px 12px;
  }

  .lineup-configure-btn {
    grid-area: btn;
    width: fit-content;
    margin-top: 8px;
    padding: 7px 16px;
    font-size: 12.5px;
  }

  .lineup-pitch-card {
    padding: 16px 12px;
  }

  .pitch-avatar-circle {
    width: 38px;
    height: 38px;
    border-width: 3px;
  }

  .pitch-avatar-initials {
    font-size: 12px;
  }

  .pitch-player-pill {
    font-size: 10px;
    max-width: 62px;
    padding: 1px 5px;
  }

  .pitch-players-list {
    gap: 10px;
  }
}

/* Tab 2: Configure Team Layout */
/* ==========================================================================
   TAB 2: CONFIGURE SQUAD & CAPTAINS (LIST & TILE VIEWS)
   ========================================================================== */

.config-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   CONFIGURE SQUAD: STICKY TOP HEADER ROW
   ========================================================================== */

.config-sticky-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(10, 15, 25, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  margin-bottom: 20px;
}

.config-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.config-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.config-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(-2px);
}

.config-team-input {
  width: 100%;
  max-width: 380px;
  background: #060910;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 9px 14px;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.config-team-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  background: #090e18;
}

.config-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.config-header-stepper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
}

.config-stepper-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.config-stepper-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.config-stepper-count {
  font-family: var(--font-mono, monospace);
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.config-header-stepper .squad-dashes-bar {
  display: flex;
  gap: 4px;
  width: 100%;
}

.config-header-stepper .squad-dash-segment {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.config-header-stepper .squad-dash-segment.filled {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.config-save-btn {
  background: #ffffff;
  color: #0b0f19;
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.config-save-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.config-save-btn:active {
  transform: translateY(0);
}

.config-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Live Team Split Indicator Pill --- */
.config-team-split-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s ease;
  user-select: none;
}

.config-team-split-pill.valid-split {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(6, 78, 59, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.split-team-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.split-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.split-team-item.team1 .split-dot {
  background-color: var(--accent-cyan, #00d2ff);
  box-shadow: 0 0 6px rgba(0, 210, 255, 0.6);
}

.split-team-item.team2 .split-dot {
  background-color: var(--accent-pink, #ff2d78);
  box-shadow: 0 0 6px rgba(255, 45, 120, 0.6);
}

.split-team-name {
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.split-team-count {
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
}

.split-team-count.at-max {
  color: #fbbf24;
}

.split-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px;
}

/* --- Team Selection Rule Hint Banner --- */
.config-rule-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-left: 3px solid var(--accent-primary, #3b82f6);
  border-radius: 8px;
  padding: 9px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.config-rule-banner .rule-icon {
  font-size: 14px;
  color: var(--accent-primary, #3b82f6);
  flex-shrink: 0;
}

.player-compact-card.card-team-capped:not(.selected) {
  opacity: 0.45;
  filter: grayscale(0.5);
  cursor: not-allowed;
}

/* ==========================================================================
   MODE 1: LIST VIEW (Exact match to screenshot)
   ========================================================================== */

.squad-selection-container.list-mode {
  background: var(--bg-secondary);
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.player-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--bg-surface-alt);
  transition: background-color 0.2s ease, transform 0.15s ease;
  user-select: none;
}

.player-list-row:last-child {
  border-bottom: none;
}

.player-list-row:hover {
  background: var(--bg-primary);
}

/* Mint green highlight for selected row */
.player-list-row.selected {
  background: #ecfdf5 !important;
}

.player-list-row.selected:hover {
  background: #e6f7f0 !important;
}

/* Left portion: Avatar + Name + Subtitle */
.player-list-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.player-list-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-secondary);
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.player-list-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.player-list-name {
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-list-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Right portion: Captains + Credits + Points + Check/Plus */
.player-list-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.player-list-captains {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 66px;
  justify-content: center;
}

.player-list-captains.hidden-caps {
  visibility: hidden;
  pointer-events: none;
}

.cap-circle-btn {
  font-family: var(--font-title);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--bg-secondary);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.cap-circle-btn:hover {
  transform: scale(1.08);
}

.cap-circle-btn.btn-c:hover {
  border-color: var(--accent-amber-hover);
  color: var(--accent-amber-hover);
}

.cap-circle-btn.btn-vc:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Active Captain circle (Gold) */
.cap-circle-btn.btn-c.active {
  background: var(--accent-amber) !important;
  color: #0f172a !important;
  border-color: var(--accent-amber) !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

/* Active Vice-Captain circle (Blue) */
.cap-circle-btn.btn-vc.active {
  background: var(--accent-blue) !important;
  color: #ffffff !important;
  border-color: var(--accent-blue) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.player-list-credits {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 46px;
  text-align: right;
}

.player-list-pts {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  min-width: 58px;
  text-align: right;
}

/* Select Circle Button (Plus vs Green Checkmark) */
.player-list-select-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  color: rgba(255, 255, 255, 0.25);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.player-list-select-btn:hover {
  transform: scale(1.1);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.player-list-select-btn.selected {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

/* ==========================================================================
   COMPACT SQUAD CARDS (4-Column Grid Desktop, 1-Column Mobile)
   ========================================================================== */

.squad-selection-container.tile-mode {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

.player-compact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0c121e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  min-height: 58px;
}

.player-compact-card:hover {
  background: #101726;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.player-compact-card.selected {
  background: #0c1522;
  border: 1.5px solid #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.18);
}

.player-compact-card.selected:hover {
  background: #0f1a2a;
  border-color: #34d399;
}

/* Left: Avatar + Name & Subtitle */
.player-compact-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.player-compact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.player-compact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.player-compact-name {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.player-compact-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Right: Captains (if selected) + Select button */
.player-compact-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.card-captains-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.compact-cap-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.18s ease;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
}

.compact-cap-btn:hover {
  transform: scale(1.1);
}

.compact-cap-btn.btn-c.active {
  background: #f59e0b !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.compact-cap-btn.btn-vc.active {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.compact-select-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  padding: 0;
}

.compact-select-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.compact-select-btn.selected {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #0b0f19 !important;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.compact-select-btn.selected:hover {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

/* Legacy player-card fallback */
.player-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.player-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.player-card.selected {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: var(--accent-green);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.player-card.selected:hover {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: var(--accent-green);
}

.player-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.player-info {
  flex-grow: 1;
}

.player-info-name {
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.player-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.tag-team {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-surface-alt);
  color: var(--text-dim);
}

.tag-role {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}

.player-card-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--bg-surface-alt);
  padding-top: 8px;
}

.player-credits {
  font-weight: 600;
}

.player-points-tag {
  color: var(--text-main);
  font-weight: 800;
}

.player-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.captain-radios {
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-btn, .vc-btn {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--bg-secondary);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.c-btn:hover {
  border-color: var(--accent-amber-hover);
  color: var(--accent-amber-hover);
}

.vc-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.c-btn.active {
  background: var(--accent-amber);
  color: #0f172a;
  border-color: var(--accent-amber);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

.vc-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.select-player-btn {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--bg-primary);
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition-fast);
}

.select-player-btn:hover {
  background: var(--bg-surface-alt);
}

.select-player-btn.selected {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #ffffff;
}

/* ==========================================================================
   OPTIMIZED MOBILE SQUAD TILE VIEW (Compact 2-Column Grid)
   Allows 6-8 players to be visible simultaneously on small mobile screens
   ========================================================================== */
@media (max-width: 1200px) {
  .squad-selection-container.tile-mode {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .squad-selection-container.tile-mode {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .squad-selection-container.tile-mode {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .config-sticky-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .config-header-left {
    width: 100%;
  }

  .config-team-input {
    max-width: none;
    flex: 1;
  }

  .config-header-right {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .config-team-split-pill {
    padding: 4px 10px;
    font-size: 11px;
    gap: 6px;
  }

  .config-rule-banner {
    padding: 7px 10px;
    font-size: 11.5px;
  }

  .config-header-stepper {
    flex: 1;
    min-width: 0;
  }

  .config-save-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .player-compact-card {
    padding: 8px 10px;
    min-height: 52px;
  }

  .player-compact-avatar {
    width: 32px;
    height: 32px;
    font-size: 11.5px;
  }

  .player-compact-name {
    font-size: 12.5px;
  }

  .player-compact-sub {
    font-size: 10.5px;
  }
}

@media (max-width: 600px) {
  .squad-selection-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .player-card {
    padding: 8px 10px;
    gap: 6px;
    border-radius: 10px;
  }

  .player-card-top {
    gap: 8px;
  }

  .player-avatar {
    width: 30px;
    height: 30px;
    font-size: 11px !important;
    flex-shrink: 0;
  }

  .player-info {
    min-width: 0;
  }

  .player-info-name {
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-tags {
    gap: 4px;
    margin-top: 2px;
  }

  .tag-team, .tag-role {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.1;
  }

  .player-card-metrics {
    padding-top: 4px;
    font-size: 11px;
    line-height: 1.2;
  }

  .player-credits strong {
    font-size: 11.5px;
  }

  .player-points-tag {
    font-size: 11px;
    font-weight: 700;
  }

  .player-card-actions {
    gap: 4px;
    margin-top: 2px;
  }

  .captain-radios {
    gap: 4px;
  }

  .c-btn, .vc-btn {
    width: 22px;
    height: 22px;
    font-size: 9.5px;
  }

  .select-player-btn {
    padding: 4px 8px;
    font-size: 10.5px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Compact top headers in Fantasy Arena on mobile */
  .dt-header {
    gap: 8px;
    padding: 10px 12px;
  }

  .dt-title-box h2 {
    font-size: 15px;
  }

  .dt-score-strip {
    width: 100%;
    border-radius: 10px;
  }

  .dt-score-cell {
    padding: 5px 8px;
  }

  .dt-score-cell.dt-cell-you {
    padding: 5px 10px;
  }

  .dt-cell-label {
    font-size: 9px;
  }

  .dt-medal-icon {
    font-size: 10px;
  }

  .dt-leader-name {
    max-width: 60px;
  }

  .dt-cell-val {
    font-size: 14px;
  }

  .dt-cell-val.dt-user-pts {
    font-size: 15px;
  }

  .dt-ad-banner-strip {
    margin-bottom: 12px;
  }
}

@media (max-width: 360px) {
  .squad-selection-container.tile-mode,
  .squad-selection-grid {
    gap: 6px !important;
  }

  .player-card {
    padding: 6px 8px;
  }

  .player-avatar {
    width: 26px;
    height: 26px;
    font-size: 10px !important;
  }

  .player-info-name {
    font-size: 11.5px;
  }

  .select-player-btn {
    padding: 3px 6px;
    font-size: 10px;
  }
}

/* ==========================================================================
   RIGHT SIDEBAR: SQUAD SUMMARY & SAVE (Matching Screenshot)
   ========================================================================== */

.config-summary-sidebar {
  position: sticky;
  top: 20px;
}

.config-summary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.summary-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.summary-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: none;
}

.summary-team-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.summary-team-input:focus {
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
  background: var(--bg-secondary);
}

.summary-squad-status {
  margin-bottom: 20px;
}

.squad-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.squad-status-label {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.squad-status-count {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.squad-status-count.complete {
  color: var(--accent-green-hover);
}

/* Segmented Dash Progress Bar */
.squad-dashes-bar {
  display: flex;
  gap: 5px;
  width: 100%;
}

.squad-dash-segment {
  height: 5px;
  flex: 1;
  border-radius: 4px;
  background: var(--glass-border);
  transition: background-color 0.25s ease;
}

.squad-dash-segment.filled {
  background: var(--accent-green-hover);
}

/* Selected Players Roster in Sidebar */
.sidebar-roster-section {
  margin-bottom: 20px;
  max-height: 280px;
  overflow-y: auto;
}

.sidebar-roster-list {
  display: flex;
  flex-direction: column;
}

.sidebar-roster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--bg-primary);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.sidebar-roster-item:last-child {
  border-bottom: none;
}

.sidebar-roster-left {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.sidebar-roster-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.sidebar-roster-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-cap-tag {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.2;
}

.sidebar-cap-tag.tag-c {
  background: #fef3c7;
  color: var(--accent-amber-hover);
}

.sidebar-cap-tag.tag-vc {
  background: #dbeafe;
  color: var(--accent-primary);
}

.sidebar-remove-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s ease;
}

.sidebar-remove-btn:hover {
  color: var(--accent-red);
}

.sidebar-roster-empty {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
  padding: 16px 0;
  text-align: center;
  line-height: 1.5;
}

/* Save Team Button (Full-width Dark Button matching screenshot) */
.sidebar-save-team-btn {
  width: 100%;
  background: var(--text-main);
  color: var(--bg-secondary);
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-save-team-btn:hover {
  background: var(--text-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.sidebar-save-team-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .config-columns-container {
    grid-template-columns: 1fr;
  }

  .config-summary-sidebar {
    position: static;
  }
}

/* ===================================================
   MATCH PERFORMANCE SCREEN (TAB-RULES)
   =================================================== */
.match-perf-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0 32px 0;
}

/* Subheader */
.match-perf-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.match-perf-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dt-pitch-view-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dt-pitch-view-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.match-perf-title-box {
  display: flex;
  flex-direction: column;
}

.match-perf-heading {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.match-perf-subheading {
  font-size: 13px;
  color: #94a3b8;
  margin: 3px 0 0 0;
  font-weight: 500;
}

/* Points Rules Strip */
.match-perf-rules-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(13, 18, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 18px;
  flex-wrap: wrap;
}

.rules-strip-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rules-strip-title {
  font-family: var(--font-title);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  margin-right: 4px;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

.rule-chip .chip-val {
  font-weight: 800;
  font-family: var(--font-title);
}

.chip-val.val-cyan {
  color: #38bdf8;
}

.chip-val.val-coral {
  color: #f87171;
}

.chip-val.val-emerald {
  color: #34d399;
}

.chip-val.val-amber {
  color: #fbbf24;
}

.chip-val.val-gold {
  color: #fbbf24;
}

.chip-val.val-blue {
  color: #60a5fa;
}

.rule-chip.chip-captain {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.06);
}

.rule-chip.chip-vice-captain {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.06);
}

.rules-strip-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rules-strip-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.dt-edit-rules-pill-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 16px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dt-edit-rules-pill-btn:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* Player Performance Table Card */
.match-perf-table-card {
  background: rgba(13, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.match-perf-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.perf-section-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.match-perf-table-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Team Filter Pill Group */
.perf-team-filters {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.perf-team-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.perf-team-filter-btn:hover {
  color: #ffffff;
}

.perf-team-filter-btn.active {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.perf-update-stats-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.perf-update-stats-btn:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
}

/* Table Wrap & Styles */
.match-perf-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.match-perf-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.match-perf-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.match-perf-table th {
  padding: 12px 18px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-perf-table th.th-rank {
  width: 50px;
  text-align: center;
}

.match-perf-table th.th-runs,
.match-perf-table th.th-boundaries,
.match-perf-table th.th-wkts,
.match-perf-table th.th-dots,
.match-perf-table th.th-fielding {
  text-align: center;
}

.match-perf-table th.th-points {
  text-align: right;
  padding-right: 24px;
}

.match-perf-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  transition: background 0.15s ease;
}

.match-perf-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.match-perf-table td {
  padding: 14px 18px;
  font-size: 13.5px;
  vertical-align: middle;
}

.match-perf-table td.td-rank {
  text-align: center;
  width: 50px;
}

.perf-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.28);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
}

.perf-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: #64748b;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
}

/* Player Cell */
.perf-player-cell-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.perf-player-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.perf-player-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.perf-role-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-family: var(--font-title);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Numeric Stat Cells */
.match-perf-table td.td-runs,
.match-perf-table td.td-boundaries,
.match-perf-table td.td-wkts,
.match-perf-table td.td-dots,
.match-perf-table td.td-fielding {
  text-align: center;
  font-family: var(--font-title);
}

.val-active {
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
}

.val-muted {
  color: #475569;
  font-weight: 500;
  font-size: 13px;
}

/* Points Cell with Bar */
.td-points-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-right: 6px;
}

.perf-bar-track {
  width: 75px;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
}

.perf-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  transition: width 0.4s ease;
}

.perf-points-num {
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 800;
  min-width: 28px;
  text-align: right;
}

.val-pts-active {
  color: #34d399;
}

.val-pts-zero {
  color: #475569;
}

.dt-user-dropdown-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}

/* Media Queries */
@media (max-width: 900px) {
  .match-choice-grid {
    grid-template-columns: 1fr;
  }
  .my-team-layout {
    grid-template-columns: 1fr;
  }
  .dt-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 10px 8px;
  }
  .dt-header-left {
    order: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .dt-header-actions-extra {
    display: none;
  }
  .dt-title-box h2 {
    font-size: 15px;
    max-width: 170px;
  }
  .dt-header-right {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    flex: 0 0 auto;
  }
  .dt-header-center {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    margin-top: 2px;
  }
  .dt-score-strip {
    width: 100%;
    display: flex;
    border-radius: 12px;
  }
  .dt-score-cell {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
  }
  .dt-score-cell.dt-cell-you {
    flex: 1.15;
    padding: 6px 12px;
    min-width: 0;
  }
  .dt-score-cell.dt-cell-leader {
    min-width: 0;
  }
  .dt-cell-label {
    font-size: 10px;
    gap: 3px;
  }
  .dt-medal-icon {
    font-size: 11px;
  }
  .dt-leader-name {
    max-width: 75px;
  }
  .dt-cell-val {
    font-size: 15px;
  }
  .dt-cell-val.dt-user-pts {
    font-size: 16px;
  }

  .live-full-text {
    display: none;
  }
  .live-mobile-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
  }
  .live-mobile-dot {
    font-size: 8px;
    color: #ffffff;
    animation: pulse-badge 1.5s infinite;
  }
  .nav-btn.live-accent {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 9999px;
  }
  .dt-header-right #dt-user-display,
  .dt-header-right .dt-header-logout {
    display: none !important;
  }
  .dt-user-avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
  }
}

/* ===================================================
   Admin Scoring Console Redesign (Desktop & Mobile)
   =================================================== */
.console-modal-overlay {
  z-index: 150;
  align-items: flex-start;
  padding: 24px 20px 48px 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.console-screen-container {
  width: 100%;
  max-width: 1180px;
  min-height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.console-top-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.console-card {
  width: 100%;
  max-width: 1180px;
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(59, 130, 246, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modal-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Visibility Utilities */
@media (min-width: 769px) {
  .desktop-only-flex { display: flex !important; }
  .desktop-only-block { display: block !important; }
  .mobile-only-flex { display: none !important; }
  .mobile-only-block { display: none !important; }
}

@media (max-width: 768px) {
  .desktop-only-flex { display: none !important; }
  .desktop-only-block { display: none !important; }
  .mobile-only-flex { display: flex !important; }
  .mobile-only-block { display: block !important; }

  .console-top-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .console-top-header .user-profile-widget {
    gap: 8px;
  }
  .console-top-header .user-profile-widget .user-tag {
    max-width: 140px;
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* Console Header */
.console-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 16px;
}

.console-header-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.console-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.console-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.console-role-badge {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.console-count-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.console-refresh-badge {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.console-refresh-badge .refresh-indicator-dot,
.console-mobile-refresh-pill .refresh-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  flex-shrink: 0;
}

.console-title {
  font-family: var(--font-title);
  font-size: 23px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}

.console-subtitle {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

/* Header Action Buttons (Desktop) */
.console-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.console-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  outline: none;
}

.console-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.console-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.console-btn.primary-btn {
  background: #3b82f6;
  border: 1px solid #3b82f6;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.console-btn.primary-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
}

.console-btn.primary-btn:active {
  transform: translateY(0);
}

.console-close-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.console-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Refresh Icon Spin Animation */
.refresh-icon.spinning {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Toolbar: Search, Filters & Changed-Only Toggle */
.console-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.console-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.console-search-box {
  position: relative;
}

.console-search-input {
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  padding: 8px 14px;
  font-size: 13px;
  width: 260px;
  outline: none;
  transition: all 0.2s ease;
}

.console-search-input:focus {
  border-color: #3b82f6;
  background: #111a30;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.console-team-filters {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-filter-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.team-filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.team-filter-pill.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.console-changed-only-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.console-changed-only-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.console-changed-only-btn.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.changed-count-pill {
  background: #f59e0b;
  color: #000000;
  font-weight: 800;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  line-height: 1.25;
}

/* Desktop Stats Table */
.console-table-wrapper {
  overflow-x: auto;
  max-height: calc(85vh - 220px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #080d17;
}

.console-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.console-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0b111e;
}

.console-table th {
  position: sticky;
  top: 0;
  background: #0b111e;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  white-space: nowrap;
}

.console-table th.th-player {
  text-align: left;
  padding-left: 16px;
  min-width: 190px;
}

.console-table th.th-points {
  text-align: right;
  padding-right: 16px;
  min-width: 130px;
}

.console-table th .th-icon {
  font-size: 11px;
  margin-right: 2px;
}

.console-table td {
  padding: 8px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  vertical-align: middle;
  text-align: center;
}

.console-table td.td-player {
  text-align: left;
  padding-left: 16px;
}

.console-table td.td-points {
  text-align: right;
  padding-right: 16px;
}

.console-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Player Column Cell */
.console-player-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.player-team-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.player-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 13px;
}

.player-role-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Stepper Controls */
.stepper-wrap {
  display: inline-flex;
  align-items: stretch;
  background: #0c121e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  height: 32px;
  width: 96px;
  transition: all 0.2s ease;
}

.stepper-wrap.is-edited {
  border: 1px solid #f59e0b !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3) !important;
  background: rgba(245, 158, 11, 0.04);
}

.stepper-btn {
  background: transparent;
  border: none;
  color: #475569;
  width: 27px;
  height: 100%;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  padding: 0;
}

.stepper-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.stepper-btn:active {
  background: rgba(255, 255, 255, 0.16);
}

.stepper-input {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 42px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
  padding: 0;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-input.is-zero {
  color: #3b4758 !important;
  font-weight: 500 !important;
}

.stepper-wrap.is-edited .stepper-input {
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

/* Points Preview Cell & Chips */
.pts-preview-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pts-chip {
  border: 1px solid rgba(0, 229, 163, 0.35);
  background: rgba(0, 229, 163, 0.09);
  color: #00e5a3;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pts-delta-pill {
  background: #f59e0b;
  color: #000000;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1.2;
  white-space: nowrap;
}

.pts-delta-pill.negative {
  background: #ef4444;
  color: #ffffff;
}

/* Mobile Scoring Console Styling (< 768px) */
@media (max-width: 768px) {
  .console-modal-overlay {
    padding: 12px 10px 80px 10px;
  }

  .console-screen-container {
    gap: 14px;
  }

  .console-card {
    padding: 16px 14px 20px 14px;
    margin: 0;
    border-radius: 14px;
    gap: 12px;
  }

  .console-header {
    flex-direction: column;
    padding-bottom: 12px;
    gap: 8px;
  }

  .console-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .console-mobile-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .console-mobile-title-block {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .console-mobile-title {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
  }

  .console-mobile-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .console-mobile-count-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 9999px;
    flex-shrink: 0;
  }

  .console-mobile-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
  }

  .console-mobile-refresh-pill {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .console-mobile-admin-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-weight: 800;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
  }

  .console-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .console-toolbar-left {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .console-search-box {
    width: 100%;
  }

  .console-search-input {
    width: 100%;
  }

  .console-team-filters {
    justify-content: flex-start;
  }

  .console-toolbar-right {
    display: flex;
    justify-content: flex-end;
  }

  /* Mobile Cards List */
  .console-mobile-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(85vh - 230px);
    overflow-y: auto;
    padding-bottom: 74px;
  }

  .mobile-player-card {
    background: #0c121e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.2s ease;
  }

  .mobile-player-card.is-card-edited {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.14);
    background: #0f1626;
  }

  .card-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 8px;
  }

  .card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .card-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .card-caret {
    color: #64748b;
    font-size: 11px;
    transition: transform 0.2s ease;
  }

  .card-summary-line {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.4;
  }

  .stat-active-num {
    color: #ffffff;
    font-weight: 700;
  }

  .stat-dim-num {
    color: #475569;
  }

  .mobile-card-drawer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    animation: drawer-fade-in 0.2s ease;
  }

  @keyframes drawer-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .drawer-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .drawer-stat-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: capitalize;
  }

  .drawer-stat-item .stepper-wrap {
    width: 100%;
    height: 38px;
  }

  .drawer-stat-item .stepper-btn {
    width: 32px;
    font-size: 18px;
  }

  .drawer-stat-item .stepper-input {
    flex: 1;
    font-size: 15px;
  }

  .drawer-stat-item.span-2 {
    grid-column: span 2;
  }

  /* Fixed Mobile Bottom Bar */
  .console-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(9, 14, 24, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
  }

  .console-mobile-btn-refresh {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .console-mobile-btn-save {
    flex: 1;
    height: 44px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
    transition: all 0.2s ease;
  }

  .console-mobile-btn-save:hover {
    background: #2563eb;
    border-color: #2563eb;
  }
}


/* ===================================================
   Admin Squad Manager Wizard (Step 2)
   =================================================== */
.admin-modal-card {
  max-height: 90vh;
  overflow-y: auto;
}

.admin-modal-card.wide {
  max-width: 780px !important;
  width: 95% !important;
}

.squad-team-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.squad-team-tab-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}

.squad-team-tab-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fde68a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.tab-count-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.squad-team-tab-btn.active .tab-count-pill {
  background: rgba(245, 158, 11, 0.5);
  color: #ffffff;
}

.squad-edit-table th,
.squad-edit-table td {
  padding: 8px 10px;
  font-size: 13px;
  vertical-align: middle;
}

.squad-edit-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.squad-player-input {
  width: 100%;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  transition: all 0.2s;
}

.squad-player-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.1);
}

.squad-role-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 6px 26px 6px 8px;
  background-color: #131c2e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 11px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color-scheme: dark;
  transition: all 0.2s ease;
}

.squad-role-select:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background-color: #162238;
}

.squad-role-select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.squad-role-select option {
  background-color: #0b1120;
  color: #f8fafc;
}

.squad-credits-input {
  width: 60px;
  padding: 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--accent-amber-hover);
  font-size: 12px;
  font-weight: 600;
}

.squad-delete-btn {
  background: transparent;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  font-size: 15px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  opacity: 0.7;
}

.squad-delete-btn:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.1);
}

/* ===================================================
   Admin Fantasy Participants & Winner Leaderboard
   =================================================== */

.admin-participants-card {
  width: 100% !important;
  max-width: 1180px !important;
}

.winner-spotlight-card {
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(12, 17, 28, 0.96) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
}

.winner-trophy-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.winner-trophy-icon {
  font-size: 46px;
  filter: drop-shadow(0 6px 14px rgba(245, 158, 11, 0.45));
}

.winner-details-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.winner-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f59e0b;
  text-transform: uppercase;
}

.winner-name {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.winner-team-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 2px 0 8px 0;
}

.winner-meta-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.winner-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.winner-chip-captain {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.winner-chip-vc {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.winner-points-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 150px;
  flex-shrink: 0;
}

.winner-points-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
}

.winner-points-val {
  font-size: 34px;
  font-weight: 900;
  color: #34d399;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 3px 0 6px 0;
}

.winner-gold-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fbbf24;
  color: #000000;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Participants Table Redesign */
.admin-participants-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-participants-table th {
  background: #0b111e;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.admin-participants-table td {
  padding: 14px 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-participants-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-participants-table tr.winner-row {
  background: rgba(245, 158, 11, 0.03);
}

.admin-participants-table tr.winner-row:hover {
  background: rgba(245, 158, 11, 0.06);
}

.rank-flex {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rank-flex.plain {
  padding-left: 24px;
}

.rank-medal {
  font-size: 18px;
  line-height: 1;
}

.rank-num {
  font-weight: 700;
  color: #cbd5e1;
  font-size: 13px;
}

.rank-num.rank-num-1,
.rank-num.rank-num-2,
.rank-num.rank-num-3 {
  color: #f8fafc;
  font-weight: 800;
}

.participant-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.participant-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0d1527;
  border: 1.5px solid #f59e0b;
  color: #fbbf24;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.participant-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.participant-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.participant-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.participant-winner-tag {
  background: #f59e0b;
  color: #000000;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.participant-subtext {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}

.participant-team-name {
  color: #60a5fa;
  font-weight: 600;
  font-size: 13.5px;
}

.participant-chips-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.p-chip-c {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.p-chip-c .chip-badge-c {
  font-weight: 800;
  color: #fbbf24;
}

.p-chip-c .chip-mult-c {
  font-weight: 700;
  color: #fbbf24;
}

.p-chip-vc {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.p-chip-vc .chip-badge-vc {
  font-weight: 800;
  color: #60a5fa;
}

.p-chip-vc .chip-mult-vc {
  font-weight: 700;
  color: #60a5fa;
}

.participant-pts-val {
  color: #34d399;
  font-weight: 800;
  font-size: 14.5px;
}

.view-user-lineup-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-user-lineup-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

/* Mobile Leaderboard (< 768px) */
@media (max-width: 768px) {
  .participants-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .winner-spotlight-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

  .winner-spotlight-card .winner-trophy-col {
    min-width: auto;
  }

  .winner-spotlight-card .winner-trophy-icon {
    font-size: 36px;
  }

  .winner-spotlight-card .winner-name {
    font-size: 20px;
  }

  .winner-spotlight-card .winner-points-col {
    align-items: center;
    min-width: auto;
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    margin-top: 4px;
    width: 100%;
  }

  .winner-spotlight-card .winner-points-lbl {
    display: none;
  }

  .winner-spotlight-card .winner-points-val {
    font-size: 24px;
    margin: 0;
  }

  .participants-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
  }

  .participant-mobile-card {
    background: #090e18;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
  }

  .participant-mobile-card.is-winner-card {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, #090e18 100%);
  }

  .pm-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .pm-user-col {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .pm-rank-badge {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .pm-names {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .pm-points-col {
    flex-shrink: 0;
    text-align: right;
  }

  .pm-row-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .pm-row-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .pm-lineup-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    text-align: center;
    display: block;
    margin-top: 4px;
  }
}

/* ===================================================
   Customer Auth & Name Capture
   =================================================== */

.contact-helper-text {
  font-size: 11.5px;
  color: var(--text-dim);
  display: block;
  margin-top: 5px;
  transition: color 0.2s ease;
}

.contact-check-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #34d399;
  font-weight: 800;
  font-size: 15px;
}

.contact-status-spinner {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.new-customer-fields {
  margin-top: 14px;
  animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
  }
}

.new-customer-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(37, 99, 235, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
}

.new-customer-banner-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #60a5fa;
}

.banner-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.15);
  margin: 5px 0 0 0;
  line-height: 1.45;
}

.name-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .name-fields-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.name-field-item label {
  font-size: 12px;
  font-weight: 600;
  color: var(--glass-border);
  margin-bottom: 6px;
  display: block;
}

/* ===================================================
   Personalized Customer OTP Welcome Card
   =================================================== */

.otp-welcome-card {
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
  animation: fadeIn 0.35s ease-out;
}

.otp-welcome-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.otp-welcome-avatar {
  font-size: 26px;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.otp-welcome-text {
  flex: 1;
  text-align: left;
}

.otp-welcome-text h3 {
  font-size: 16px;
  font-weight: 800;
  color: #34d399;
  margin: 0;
  line-height: 1.3;
}

.otp-welcome-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.otp-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.otp-action-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.otp-action-link:hover {
  color: var(--bg-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.otp-action-link.primary {
  color: #60a5fa;
}

.otp-action-link.primary:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* ===================================================
   Elegant Verification Code & Quick Autofill Card
   =================================================== */

.otp-dev-banner,
.otp-quick-banner {
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(18, 24, 38, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 16px rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeIn 0.25s ease-out;
  box-sizing: border-box;
}

/* Ensure fallback-mode does NOT turn red or alarming */
.otp-dev-banner.fallback-mode {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(18, 24, 38, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 16px rgba(245, 158, 11, 0.12);
}

.otp-quick-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.otp-quick-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.otp-quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.otp-quick-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.otp-quick-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fbbf24;
  white-space: nowrap;
}

.otp-dev-code,
.otp-quick-code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  user-select: all;
  line-height: 1.2;
  white-space: nowrap;
}

.otp-dev-code:hover,
.otp-quick-code:hover {
  color: #fbbf24;
  transform: scale(1.02);
}

.otp-dev-autofill-btn,
.otp-quick-autofill-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(245, 158, 11, 0.7);
  color: #0b0f19 !important;
  font-family: var(--font-title, sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.otp-dev-autofill-btn:hover,
.otp-quick-autofill-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0f19 !important;
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55);
  transform: translateY(-1px);
}

.otp-dev-autofill-btn:active,
.otp-quick-autofill-btn:active {
  transform: translateY(0);
}

.otp-dev-autofill-btn.filled,
.otp-quick-autofill-btn.filled {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
}

/* Responsive Mobile Layout for Auth & OTP Screens (e.g. Galaxy / iPhone) */
@media (max-width: 480px) {
  .full-screen-overlay {
    padding: 16px 12px;
  }

  .auth-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .auth-header {
    margin-bottom: 20px;
  }

  .auth-logo-icon {
    font-size: 38px;
    margin-bottom: 8px;
  }

  .auth-header h2 {
    font-size: 26px;
  }

  .otp-welcome-card {
    padding: 12px 14px;
    margin-bottom: 14px;
  }

  .otp-welcome-avatar {
    font-size: 24px;
  }

  .otp-welcome-text h3 {
    font-size: 14.5px;
  }

  .otp-quick-banner {
    padding: 10px 12px;
    margin-bottom: 16px;
  }

  .otp-quick-left {
    gap: 10px;
  }

  .otp-quick-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .otp-dev-code,
  .otp-quick-code {
    font-size: 18px;
    letter-spacing: 2.5px;
  }

  .otp-dev-autofill-btn,
  .otp-quick-autofill-btn {
    padding: 6px 11px;
    font-size: 11.5px;
    gap: 4px;
  }

  .otp-action-link {
    font-size: 11.5px;
    padding: 4px 4px;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 20px 12px;
  }

  .otp-dev-code,
  .otp-quick-code {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .otp-dev-autofill-btn,
  .otp-quick-autofill-btn {
    padding: 5px 9px;
    font-size: 11px;
  }

  .otp-action-link {
    font-size: 11px;
  }
}

/* Hide legacy verbose labels & failure messages */
.otp-dev-badge,
.otp-fallback-desc,
.otp-dev-label {
  display: none !important;
}

/* Match Format Configuration (Overs & Players) */
.quick-pill-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.overs-pill,
.players-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.overs-pill:hover,
.players-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--bg-secondary);
  border-color: rgba(255, 255, 255, 0.25);
}

.overs-pill.active,
.players-pill.active {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
  color: #60a5fa;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.match-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

/* ===================================================
   Admin Match Center Search Toolbar
   =================================================== */
.admin-search-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-search-toolbar:focus-within {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 25px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.admin-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 550px;
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: all 0.2s;
}

.admin-search-box:focus-within {
  border-color: var(--accent-amber);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.admin-search-icon {
  font-size: 15px;
  opacity: 0.8;
  color: var(--accent-amber-hover);
}

#admin-match-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
}

#admin-match-search-input::placeholder {
  color: rgba(148, 163, 184, 0.7);
  font-size: 13px;
}

.clear-search-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  transition: all 0.15s ease;
}

.clear-search-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
  transform: scale(1.1);
}

.admin-search-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-badge-search {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-amber-hover);
  text-transform: uppercase;
}

.search-count-badge {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

/* Admin Match Center Active / Deleted Filter Pills */
.admin-match-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-filter-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-filter-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-filter-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.admin-filter-pill[data-filter="deleted"].active {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Match Card Deleted Badge & Actions */
.match-card-badge.deleted {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.match-card-badge.deleted .badge-dot {
  color: #f87171;
  animation: pulse-red 2s infinite;
}

.match-pill-btn.delete-pill {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  transition: all 0.2s ease;
}

.match-pill-btn.delete-pill:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.7);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.match-pill-btn.restore-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.match-pill-btn.restore-pill:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.7);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Empty Search State */
.empty-search-state {
  grid-column: 1 / -1;
  padding: 50px 20px;
  text-align: center;
  background: rgba(18, 24, 38, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.empty-search-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.8;
}

.empty-search-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.empty-search-state p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 18px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Ground Pill on Match Card */
.match-meta-pill.ground-pill {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  font-weight: 600;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .admin-search-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-search-box {
    max-width: 100%;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning {
  display: inline-block;
  animation: spin 0.85s linear infinite;
}

/* ==========================================================================
   BROADCAST ADVERTISEMENT MARQUEE / STROLL COMPONENT
   ========================================================================== */

.broadcast-ad-marquee {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
  margin: 16px 0 24px 0;
  user-select: none;
  z-index: 10;
}

/* In-Stream Broadcast Crawler Variant (Tighter TV Sub-Bar) */
.broadcast-ad-marquee.stream-ticker {
  height: 44px;
  margin: 12px 0 14px 0;
  background: linear-gradient(90deg, rgba(10, 15, 29, 0.96) 0%, rgba(17, 24, 39, 0.92) 50%, rgba(10, 15, 29, 0.96) 100%);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(59, 130, 246, 0.08);
}

/* Sticky Fixed Left Badge */
.ad-marquee-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 18px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 4px 0 14px rgba(0, 0, 0, 0.25);
}

.ad-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  flex-shrink: 0;
}

.ad-live-dot.pulse {
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: adPulse 1.6s infinite ease-in-out;
}

@keyframes adPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.ad-badge-text {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-amber-hover);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.live-pulse-badge .ad-badge-text {
  color: #f87171;
}

/* Viewport with Broadcast Vignette Masks */
.ad-marquee-viewport {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, var(--text-main) 2.5%, var(--text-main) 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--text-main) 2.5%, var(--text-main) 97.5%, transparent 100%);
}

/* Infinite Scrolling Dual Tracks */
.ad-marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  will-change: transform;
  animation: adTickerScroll 36s linear infinite;
}

.broadcast-ad-marquee.stream-ticker .ad-marquee-track {
  animation-duration: 32s;
}

/* Pause scroll when user hovers to read or copy promo codes */
.broadcast-ad-marquee:hover .ad-marquee-track {
  animation-play-state: paused;
}

@keyframes adTickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Marquee Item Component */
.ad-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.15);
  position: relative;
}

.broadcast-ad-marquee.stream-ticker .ad-marquee-item {
  padding: 0 28px;
  font-size: 13px;
}

.ad-marquee-item::after {
  content: '•';
  position: absolute;
  right: 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 18px;
  font-weight: 300;
}

.ad-marquee-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.ad-item-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Categorized Sponsor Pill Badges */
.ad-item-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  line-height: 1;
}

.tag-deal {
  background: linear-gradient(135deg, var(--accent-red), #ea580c);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.tag-fantasy {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

.tag-partner {
  background: linear-gradient(135deg, #0284c7, var(--accent-primary));
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.tag-food {
  background: linear-gradient(135deg, var(--accent-green-hover), var(--accent-green));
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.tag-merch {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* Interactive Promo Code Copy Button */
.ad-copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(245, 158, 11, 0.6);
  color: var(--accent-amber-hover);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  transition: all 0.2s ease;
  outline: none;
}

.ad-copy-code-btn code {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ad-copy-code-btn .copy-lbl {
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.ad-copy-code-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.ad-copy-code-btn.copied {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: var(--accent-green) !important;
  color: #34d399 !important;
}

.ad-copy-code-btn.copied .copy-lbl {
  background: var(--accent-green) !important;
  color: var(--text-main) !important;
}

/* Fantasy & Action CTA Pills */
.ad-action-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 70, 239, 0.2));
  color: #fef08a;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ad-action-pill:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 70, 239, 0.4));
  border-color: var(--accent-amber-hover);
  transform: scale(1.04);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.ad-timer-pill {
  font-size: 11px;
  font-weight: 600;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 3px 8px;
  border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .broadcast-ad-marquee {
    height: 46px;
    margin: 12px 0 16px 0;
  }
  
  .ad-marquee-badge {
    padding: 0 12px;
  }
  
  .ad-badge-text {
    font-size: 9.5px;
  }
  
  .ad-marquee-item {
    padding: 0 20px;
    font-size: 12px;
    gap: 8px;
  }
  
  .ad-copy-code-btn {
    padding: 3px 7px;
    font-size: 11px;
  }
}

/* ========================================================
   PERSISTENT TOP LAYER & SWITCHABLE INNER LOBBY VIEWS
   ======================================================== */

.lobby-inner-view {
  width: 100%;
  animation: viewFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav Button Color & State Variants */
.nav-btn.nav-btn-matches {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.nav-btn.nav-btn-matches:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fde68a;
}

.nav-btn.nav-btn-matches.active,
.nav-btn.nav-btn-matches.primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0b0f19 !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5) !important;
  font-weight: 700;
}

.nav-btn.nav-btn-blue {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.nav-btn.nav-btn-blue:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fde68a;
}

.nav-btn.nav-btn-blue.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0b0f19 !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5) !important;
  font-weight: 700;
}

.nav-btn.nav-btn-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.nav-btn.nav-btn-amber:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fde68a;
}

.nav-btn.nav-btn-amber.active,
.nav-btn.nav-btn-amber.primary {
  background: linear-gradient(135deg, var(--accent-amber, #f59e0b) 0%, var(--accent-amber-hover, #d97706) 100%) !important;
  color: #0b0f19 !important;
  border-color: var(--accent-amber, #f59e0b) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5) !important;
  font-weight: 700;
}

/* Admin Panel Header Bar */
.admin-panel-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(18, 24, 38, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-panel-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 4px;
}

.admin-panel-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.4;
}

.back-to-matches-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.back-to-matches-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--bg-secondary);
  transform: translateX(-2px);
}

/* Admin Inline Container (Embeds Match / Squad creation) */
.admin-inline-container {
  width: 100%;
  display: block;
  padding-bottom: 20px;
}

.admin-modal-card {
  max-width: 580px;
  width: 100%;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 28px 32px;
  box-sizing: border-box;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-card.wide {
  max-width: 980px;
}

/* ========================================================
   BROADCAST ADS & DEALS MANAGER STYLES
   ======================================================== */

.admin-preview-container {
  margin-bottom: 22px;
}

.admin-preview-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-amber-hover);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-preview-box {
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11, 15, 25, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Composer Card */
.ad-composer-card {
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.ad-composer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-composer-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: #f3f4f6;
  font-family: inherit;
  padding: 4px 0;
}

.ad-composer-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

.ad-composer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ad-options-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 7px 14px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.ad-options-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.ad-publish-btn {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-hover) 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 22px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  font-family: inherit;
}

.ad-publish-btn:hover {
  background: linear-gradient(135deg, var(--accent-green-hover) 0%, #047857 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.ad-publish-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Badge Selector */
.ad-composer-section {
  margin-top: 16px;
}

.ad-composer-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 8px;
  display: block;
}

.ad-badge-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ad-badge-pill {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  user-select: none;
}

.ad-badge-pill:hover {
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--accent-amber-hover);
  background: rgba(245, 158, 11, 0.1);
}

.ad-badge-pill.active {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-amber-hover) 100%);
  color: #0b0f19;
  border-color: var(--accent-amber);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

/* Icon Selector */
.ad-icon-circles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ad-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  user-select: none;
}

.ad-icon-circle:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.12);
  transform: scale(1.08);
}

.ad-icon-circle.active {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  transform: scale(1.08);
}

/* Promo Code & Button Text Inputs */
.ad-composer-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .ad-composer-inputs-grid {
    grid-template-columns: 1fr;
  }
}

.ad-field-col {
  display: flex;
  flex-direction: column;
}

.ad-text-box {
  width: 100%;
  padding: 10px 14px;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 13.5px;
  color: #f3f4f6;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.ad-text-box::placeholder {
  color: var(--text-dim);
}

.ad-text-box:focus {
  border-color: var(--accent-amber);
  background: rgba(11, 15, 25, 0.95);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Collapsible Advanced Options Drawer */
.ad-advanced-drawer {
  margin-top: 16px;
  padding: 16px 18px;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ad-drawer-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
}

.ad-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .ad-drawer-grid {
    grid-template-columns: 1fr;
  }
}

.ad-select-box {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 10px 34px 10px 12px;
  background-color: rgba(18, 24, 38, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 13px;
  color: #f3f4f6;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  color-scheme: dark;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ad-select-box:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.ad-select-box:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.ad-select-box option {
  background-color: #0b1120;
  color: #f8fafc;
}

/* Filter Tabs */
.ad-filter-tabs-row {
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  padding-left: 4px;
}

.ad-filter-tab {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
  padding: 10px 4px;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ad-filter-tab:hover {
  color: #f3f4f6;
}

.ad-filter-tab.active {
  color: var(--accent-amber-hover);
  font-weight: 700;
  border-bottom-color: var(--accent-amber-hover);
}

.tab-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  line-height: 1.3;
}

.ad-filter-tab.active .tab-count-pill {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber-hover);
}

/* Stroller Message Rows */
.ad-messages-list {
  display: flex;
  flex-direction: column;
}

.ad-row-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 16px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.ad-row-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ad-row-item.paused-item {
  opacity: 0.65;
}

.ad-row-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.3;
}

.ad-row-body {
  flex: 1;
  min-width: 0;
}

.ad-row-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.4;
  word-break: break-word;
}

.ad-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.ad-meta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 2px 9px;
  line-height: 1.4;
}

.ad-meta-badge.tag-sponsor {
  border: 1px solid rgba(147, 197, 253, 0.4);
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.ad-meta-badge.tag-shop {
  border: 1px solid rgba(199, 210, 254, 0.4);
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

.ad-meta-badge.tag-feast {
  border: 1px solid rgba(134, 239, 172, 0.4);
  background: rgba(16, 185, 129, 0.15);
  color: #86efac;
}

.ad-meta-badge.tag-contest {
  border: 1px solid rgba(216, 180, 254, 0.4);
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
}

.ad-meta-badge.tag-deal {
  border: 1px solid rgba(254, 202, 202, 0.4);
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.ad-meta-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-amber-hover);
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

.ad-meta-btn-text {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.ad-meta-paused-badge {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.ad-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ad-action-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.ad-action-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--bg-secondary);
  border-color: rgba(255, 255, 255, 0.25);
}

.ad-action-link.move-up-ad-btn {
  padding: 5px 9px;
  font-size: 13px;
  color: #60a5fa;
}

.ad-action-link.toggle-ad-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--accent-amber-hover);
}

.ad-action-link.delete-ad-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

/* ==========================================================================
   ADMIN MATCH CREATION & SQUAD WIZARD (Exact Match to Attachment)
   ========================================================================== */

.admin-wizard-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 20px;
}

.admin-wizard-stepper {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  width: 100%;
}

.wizard-step-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-surface-alt);
  border: 1.5px solid transparent;
  border-radius: 8px;
  color: var(--text-dim);
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}

.wizard-step-item.active {
  background: var(--bg-secondary);
  border-color: var(--accent-amber);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.wizard-step-item.completed {
  background: var(--bg-primary);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
}

.wizard-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--glass-border);
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.wizard-step-item.active .wizard-step-num {
  background: var(--accent-amber);
  color: #0b0f19;
}

.wizard-step-item.completed .wizard-step-num {
  background: var(--accent-green);
  color: var(--bg-secondary);
}

.wizard-step-label {
  letter-spacing: 0.2px;
}

/* Mobile Stepper (Thin Progress Bar) */
.admin-mobile-stepper {
  display: none;
  width: 100%;
  margin-bottom: 14px;
}

.mobile-stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mobile-step-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.1px;
}

.mobile-step-count {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
}

.mobile-progress-bar {
  display: flex;
  gap: 6px;
  width: 100%;
  height: 3.5px;
}

.mobile-progress-seg {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.mobile-progress-seg.completed {
  background: #10b981;
}

.mobile-progress-seg.active {
  background: #f59e0b;
}

@media (max-width: 640px) {
  .desktop-stepper {
    display: none !important;
  }
  .admin-mobile-stepper {
    display: block !important;
  }
}

/* Wizard Clean Card */
.admin-clean-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 2-Column Responsive Layout for Step 1 */
.admin-step1-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .admin-step1-layout-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.admin-grid-col {
  display: flex;
  flex-direction: column;
}

.admin-card-section {
  border-bottom: 1px solid var(--bg-surface-alt);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-title, sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.section-subheading {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.admin-field-group {
  margin-bottom: 10px;
}

.admin-label {
  display: flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-family: var(--font-body, sans-serif);
}

.badge-required {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-red);
  margin-left: 5px;
}

.badge-optional {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
  margin-left: 5px;
}

.admin-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 12.5px;
  color: var(--text-main);
  font-family: var(--font-body, sans-serif);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-input:focus {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.admin-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.admin-field-helper {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 3px;
  margin-bottom: 0;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

.admin-select-wrapper {
  position: relative;
}

.admin-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px 13px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 7px 30px 7px 11px;
  font-size: 12.5px;
  color: var(--text-main);
  font-family: var(--font-body, sans-serif);
  outline: none;
  cursor: pointer;
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-select:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.admin-select:focus {
  border-color: var(--accent-primary);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.admin-select option {
  background-color: #0b1120;
  color: #f8fafc;
}

.admin-pills-row {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.admin-pill-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--glass-border);
  color: #475569;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  font-family: var(--font-body, sans-serif);
}

.admin-pill-btn:hover {
  background: var(--glass-border);
  color: var(--text-main);
}

.admin-pill-btn.active {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  color: #0b0f19;
}

.admin-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--bg-surface-alt);
  flex-wrap: wrap;
  gap: 10px;
}

.admin-footer-right-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-btn-secondary {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body, sans-serif);
}

.admin-btn-secondary:hover {
  background: var(--bg-primary);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.admin-btn-ads {
  background: var(--bg-secondary);
  border: 1.5px solid var(--accent-amber-hover);
  color: #b45309;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body, sans-serif);
}

.admin-btn-ads:hover {
  background: #fef3c7;
  border-color: #b45309;
  color: #78350f;
}

.admin-btn-primary {
  background: var(--accent-amber);
  border: 1px solid var(--accent-amber-hover);
  color: #0b0f19;
  padding: 8px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body, sans-serif);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.admin-btn-primary:hover {
  background: var(--accent-amber-hover);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.admin-btn-primary:active {
  transform: scale(0.98);
}

/* ==========================================================================
   SQUAD WIZARD STEP 2: TEAM TABS, 2-COLUMN GRID & STICKY FOOTER
   ========================================================================== */

.squad-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}

.squad-header-text {
  flex: 1;
}

.squad-header-text .section-heading {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 3px 0;
}

.squad-header-text .section-subheading {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.squad-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.squad-target-badge {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.squad-total-badge {
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-target-badge {
  display: none;
}

/* Toolbar: Team Tabs & Actions */
.squad-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.squad-team-tabs {
  display: flex;
  gap: 10px;
  flex: 1;
}

.squad-team-tab {
  flex: 1;
  max-width: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.squad-team-tab:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(30, 41, 59, 0.65);
}

.squad-team-tab.active {
  border-color: #f59e0b;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.squad-tab-name-input {
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  min-width: 50px;
  cursor: text;
  font-family: var(--font-body, sans-serif);
}

.squad-team-tab.active .squad-tab-name-input {
  color: #f59e0b;
}

.squad-tab-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  white-space: nowrap;
}

.squad-team-tab.active .squad-tab-count-pill {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.squad-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.squad-sync-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: var(--font-body, sans-serif);
}

.squad-sync-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.squad-sync-bolt {
  color: #f59e0b;
  font-size: 13px;
}

.squad-add-btn {
  background: #f59e0b;
  border: 1px solid #d97706;
  color: #0b0f19;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
  font-family: var(--font-body, sans-serif);
}

.squad-add-btn:hover:not(:disabled) {
  background: #d97706;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.squad-add-btn:disabled,
.squad-add-btn.disabled {
  background: rgba(180, 83, 9, 0.45);
  border-color: rgba(180, 83, 9, 0.3);
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-text-short {
  display: none;
}
.btn-text-full {
  display: inline;
}

/* 2-Column Responsive Players Grid */
.squad-players-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  margin-top: 6px;
  margin-bottom: 16px;
}

.squad-empty-grid {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 28px 16px;
  font-size: 13px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.3);
}

.squad-player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 7px 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.squad-player-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.75);
}

.squad-player-num {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.squad-player-card .player-name-field {
  flex: 1;
  min-width: 0;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  outline: none;
  transition: all 0.15s ease;
  font-family: var(--font-body, sans-serif);
}

.squad-player-card .player-name-field:focus {
  border-color: #f59e0b;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.squad-player-card .player-cricid-field {
  width: 125px;
  flex-shrink: 0;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  color: #94a3b8;
  outline: none;
  transition: all 0.15s ease;
  font-family: var(--font-body, sans-serif);
}

.squad-player-card .player-cricid-field::placeholder {
  color: #475569;
}

.squad-player-card .player-cricid-field:focus {
  border-color: #38bdf8;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.squad-player-card .squad-delete-btn {
  background: transparent;
  border: none;
  color: #475569;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.squad-player-card .squad-delete-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* Sticky Footer Action Bar */
.admin-sticky-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0 2px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-sticky-footer-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-btn-back {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body, sans-serif);
}

.admin-btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.back-text-short,
.skip-text-short {
  display: none;
}
.back-text-full,
.skip-text-full {
  display: inline;
}

/* Responsive Rules for Mobile */
@media (max-width: 768px) {
  .squad-players-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .squad-header-row {
    display: none;
  }

  .mobile-target-badge {
    display: inline-block;
  }

  .squad-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .squad-team-tabs {
    width: 100%;
  }

  .squad-team-tab {
    max-width: none;
  }

  .squad-toolbar-actions {
    justify-content: space-between;
    width: 100%;
  }

  .btn-text-full {
    display: none;
  }
  .btn-text-short {
    display: inline;
  }

  .squad-sync-btn, .squad-add-btn {
    padding: 6px 12px;
    font-size: 11.5px;
  }

  .admin-sticky-footer {
    padding: 10px 0 2px;
    gap: 8px;
  }

  .admin-btn-back {
    padding: 8px 12px;
  }

  .back-text-full,
  .skip-text-full {
    display: none;
  }

  .back-text-short,
  .skip-text-short {
    display: inline;
  }

  .admin-sticky-footer-right {
    flex: 1;
    display: flex;
    gap: 8px;
  }

  .squad-btn-skip {
    padding: 8px 14px;
  }

  .squad-btn-save {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 8px 16px;
  }
}

/* ==========================================================================
   STANDALONE DREAM11 POINTS RULES PAGE STYLES
   ========================================================================== */

.rules-page-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 20px;
}

.rules-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.rules-match-selector-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rules-match-selector-bar label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}

.rules-select {
  flex: 1;
  min-width: 220px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--text-main);
  outline: none;
}

.rules-match-badge {
  background: #ecfdf5;
  color: var(--accent-green-hover);
  border: 1px solid #a7f3d0;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.rules-category-card {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 14px 16px;
}

.rules-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.rules-cat-icon {
  font-size: 20px;
}

.rules-cat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.rules-cat-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}

.rules-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rules-inputs-grid .form-group {
  margin-bottom: 0;
}

.rules-inputs-grid label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 4px;
  display: block;
}

.rules-inputs-grid input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}

.rules-inputs-grid input:focus {
  border-color: var(--accent-primary);
}

.rules-footer-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid var(--bg-surface-alt);
}

.nav-btn-purple,
.nav-btn.nav-btn-purple {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-weight: 600;
}

.nav-btn-purple:hover,
.nav-btn-purple.active,
.nav-btn.nav-btn-purple:hover,
.nav-btn.nav-btn-purple.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: #f59e0b !important;
  color: #0b0f19 !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5) !important;
  font-weight: 700;
}

/* CricHeroes Pre-population Highlights & Status Feedback */
@keyframes prepopulateGlow {
  0% {
    background-color: rgba(37, 99, 235, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  }
  50% {
    background-color: rgba(37, 99, 235, 0.08);
    border-color: var(--accent-primary);
  }
  100% {
    background-color: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
  }
}

.input-prepopulated-flash {
  animation: prepopulateGlow 1.6s ease-out;
}

.admin-fetch-status {
  font-size: 11.5px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.admin-fetch-status.loading {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.admin-fetch-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green-hover);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 500;
}

.admin-fetch-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.admin-fetch-status .fetch-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   CRICKET-THEMED AUTH LOADER & TRANSITION ANIMATIONS
   ========================================================================== */

.cricket-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 10, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cricket-loader-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cricket-loader-card {
  position: relative;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(11, 17, 30, 0.98));
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 210, 255, 0.15);
  padding: 34px 30px 26px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  animation: cricketCardPop 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cricketCardPop {
  0% {
    transform: scale(0.92) translateY(10px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.cricket-scene {
  position: relative;
  width: 160px;
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 20px;
}

.stadium-floodlight-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 85px;
  background: radial-gradient(ellipse at center, rgba(0, 210, 255, 0.25) 0%, rgba(16, 185, 129, 0.15) 45%, transparent 75%);
  filter: blur(14px);
  pointer-events: none;
}

.cricket-stumps-wrap {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.9;
}

.cricket-ball-wrap {
  position: absolute;
  bottom: 18px;
  left: 50%;
  margin-left: -34px;
  z-index: 3;
  animation: cricketBallBounce 1.05s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
  transform-origin: center bottom;
}

.cricket-ball-rotator {
  transform-origin: 50px 50px;
  animation: cricketBallSpin 1.35s infinite linear;
}

@keyframes cricketBallBounce {
  0% {
    transform: translateY(-40px) scale(0.97, 1.03);
  }
  48% {
    transform: translateY(0px) scale(1, 1);
  }
  50% {
    transform: translateY(2px) scale(1.08, 0.92);
  }
  54% {
    transform: translateY(0px) scale(1.02, 0.98);
  }
  100% {
    transform: translateY(-40px) scale(0.97, 1.03);
  }
}

@keyframes cricketBallSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cricket-turf-shadow {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.6) 0%, rgba(0, 0, 0, 0.75) 50%, transparent 80%);
  z-index: 2;
  animation: turfShadowPulse 1.05s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
}

@keyframes turfShadowPulse {
  0%, 100% {
    transform: translateX(-50%) scale(0.55);
    opacity: 0.25;
  }
  50% {
    transform: translateX(-50%) scale(1.18);
    opacity: 0.9;
  }
}

.cricket-loader-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.cricket-loader-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan, #00d2ff);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cricket-loader-title {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.cricket-loader-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  max-width: 310px;
  line-height: 1.45;
}

/* Pitch Delivery Runner Bar */
.cricket-delivery-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.cricket-delivery-runner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, #00d2ff, #10b981, transparent);
  border-radius: 4px;
  animation: cricketPitchRun 1.15s infinite ease-in-out;
}

@keyframes cricketPitchRun {
  0% {
    left: -40%;
  }
  100% {
    left: 110%;
  }
}

/* Mini cricket spinner inside buttons */
.btn-cricket-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff4d4d 0%, #dc2626 60%, #7f1d1d 100%);
  border: 1.5px dashed #ffffff;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
  animation: cricketMiniSpin 0.7s infinite linear;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-cricket-spinner.mini {
  width: 13px;
  height: 13px;
  border-width: 1.2px;
}

@keyframes cricketMiniSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.auth-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===================================================
   Match Lifecycle & Fantasy Locking System
   =================================================== */

.dt-lifecycle-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.dt-lifecycle-banner.status-open {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.dt-lifecycle-banner.status-open strong {
  color: #10b981;
}

.dt-lifecycle-banner.status-live {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.dt-lifecycle-banner.status-live strong {
  color: #f59e0b;
}

.dt-lifecycle-banner.status-paused {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef08a;
}

.dt-lifecycle-banner.status-vod {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.dt-lifecycle-banner.status-vod strong {
  color: #f8fafc;
}

.dt-lifecycle-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.dt-lifecycle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dt-lifecycle-info strong {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dt-lifecycle-info span {
  font-size: 12px;
  color: #94a3b8;
}

.lineup-configure-btn.locked-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
}

.config-save-btn.locked {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #64748b !important;
  cursor: not-allowed !important;
}

/* Console Lifecycle Controller Bar */
.console-lifecycle-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lifecycle-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lifecycle-status-pill.status-upcoming {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.lifecycle-status-pill.status-live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.lifecycle-status-pill.status-paused {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.lifecycle-status-pill.status-vod {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.console-btn.lifecycle-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-start-match {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
}

.btn-start-match:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-pause-match {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: none !important;
}

.btn-pause-match:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-end-match {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  border: none !important;
}

.btn-end-match:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Match card badge paused state */
.match-card-badge.paused {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.match-card-badge.paused .badge-dot {
  color: #f59e0b;
}

.cust-opt-tag.locked-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cust-opt-tag.vod-tag {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ==========================================================================
   GLOBAL CONFIRMATION MODAL & TOAST NOTIFICATIONS (MOBILE OPTIMIZED)
   ========================================================================== */

#confirm-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
  transition: opacity 0.22s ease-out;
}

#confirm-modal.hidden {
  display: none !important;
}

.confirm-modal-card {
  background: linear-gradient(145deg, rgba(24, 33, 50, 0.96) 0%, rgba(13, 19, 32, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 35px rgba(0, 0, 0, 0.45);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  padding: 26px 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: confirmCardPop 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center center;
}

@keyframes confirmCardPop {
  0% {
    transform: scale(0.92) translateY(12px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.confirm-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
}

.confirm-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: scale(1.05);
}

.confirm-close-btn:active {
  transform: scale(0.95);
}

.confirm-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.confirm-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.confirm-icon-badge.danger {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.28);
}

.confirm-icon-badge.warning {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.28);
}

.confirm-icon-badge.success {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.28);
}

.confirm-icon-badge.primary {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.38);
  color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.28);
}

.confirm-modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.confirm-modal-title-group h3 {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.confirm-modal-subtitle {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.confirm-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.confirm-match-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.confirm-match-box.hidden {
  display: none !important;
}

.confirm-match-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #60a5fa;
}

.confirm-match-name {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
  word-break: break-word;
}

.confirm-modal-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
}

.confirm-modal-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  color: #fde68a;
  line-height: 1.45;
}

.confirm-modal-warning.hidden {
  display: none !important;
}

.confirm-modal-warning .warning-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.2;
}

.confirm-modal-warning .warning-text {
  flex: 1;
}

.confirm-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.confirm-btn {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  outline: none;
  border: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.confirm-btn:active {
  transform: scale(0.98);
}

.confirm-btn.cancel-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  flex: 1;
}

.confirm-btn.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.confirm-btn.action-btn {
  flex: 1.3;
  font-weight: 700;
}

.confirm-btn.action-btn.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.confirm-btn.action-btn.danger:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.confirm-btn.action-btn.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.confirm-btn.action-btn.success:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.confirm-btn.action-btn.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.confirm-btn.action-btn.warning:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.confirm-btn.action-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.confirm-btn.action-btn.primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* FLOATING TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: linear-gradient(145deg, rgba(24, 32, 48, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast-item.toast-active {
  transform: translateY(0);
  opacity: 1;
}

.toast-item.toast-leaving {
  transform: translateY(-10px) scale(0.95);
  opacity: 0;
}

.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.toast-item.toast-success .toast-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.toast-item.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.toast-item.toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.toast-item.toast-info .toast-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.toast-msg {
  font-size: 13.5px;
  color: #f1f5f9;
  line-height: 1.4;
  flex: 1;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.toast-close:hover {
  color: #ffffff;
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS FOR CONFIRMATION MODAL & TOASTS
   ========================================================================== */

@media (max-width: 580px) {
  #confirm-modal {
    padding: 12px;
    align-items: flex-end; /* Mobile bottom sheet style or centered */
  }

  .confirm-modal-card {
    max-width: 100%;
    margin: 0;
    padding: 22px 18px 20px;
    border-radius: 20px 20px 16px 16px;
    animation: confirmCardSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes confirmCardSlideUp {
    0% {
      transform: translateY(100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .confirm-modal-header {
    gap: 12px;
    margin-bottom: 14px;
  }

  .confirm-icon-badge {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 12px;
  }

  .confirm-modal-title-group h3 {
    font-size: 17px;
  }

  .confirm-modal-subtitle {
    font-size: 10px;
  }

  .confirm-modal-desc {
    font-size: 13.5px;
  }

  .confirm-modal-footer {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 20px;
  }

  .confirm-btn {
    width: 100%;
    min-height: 48px; /* Touch-friendly tap target */
    font-size: 14.5px;
  }

  .confirm-btn.action-btn {
    flex: unset;
    width: 100%;
  }

  .confirm-btn.cancel-btn {
    flex: unset;
    width: 100%;
  }

  /* Mobile toasts pinned nicely */
  .toast-container {
    left: 14px;
    right: 14px;
    bottom: 16px;
  }

  .toast-item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
  }
}

/* ==========================================================================
   ROLE-BASED ACCESS CONTROL (RBAC) STYLING SYSTEM
   ========================================================================== */

#lobby-admin-rbac-btn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

#lobby-admin-rbac-btn:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fde68a;
}

#lobby-admin-rbac-btn.active {
  background: #f59e0b !important;
  color: #0f172a !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5) !important;
  font-weight: 700 !important;
}

.rbac-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 20px 60px;
}

/* Header Bar */
.rbac-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

.rbac-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge-text-mobile {
  display: none;
}

.rbac-header-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.title-mobile {
  display: none;
}

.rbac-header-sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.rbac-back-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.rbac-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.back-text-short {
  display: none;
}

/* Underline Tabs Row */
.rbac-underline-tabs-row {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
}

.rbac-underline-tab {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 4px 14px 4px;
  margin-bottom: -1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.rbac-underline-tab:hover {
  color: #f1f5f9;
}

.rbac-underline-tab.active {
  color: #ffffff;
  border-bottom-color: #f59e0b;
}

.rbac-tab-count-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  min-width: 18px;
  text-align: center;
}

.rbac-underline-tab.active .rbac-tab-count-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* Tab Panes */
.rbac-tab-pane {
  animation: rbacFadeIn 0.2s ease-out;
}

@keyframes rbacFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Single Toolbar Row */
.rbac-toolbar-single-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.rbac-category-chips-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rbac-category-chips-list::-webkit-scrollbar {
  display: none;
}

.rbac-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.rbac-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
}

.rbac-chip.active {
  background: #f59e0b;
  border-color: #fbbf24;
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.rbac-search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 12px;
  width: 250px;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.rbac-search-container:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.rbac-search-icon {
  font-size: 12px;
  color: #64748b;
  margin-right: 8px;
  pointer-events: none;
}

.rbac-search-container input {
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 12.5px;
  width: 100%;
}

.rbac-search-container input::placeholder {
  color: #64748b;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 2px;
}

.rbac-toolbar-actions-web {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rbac-btn-reset {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.rbac-btn-reset:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.rbac-btn-save {
  background: #f59e0b;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  color: #0f172a !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.rbac-btn-save:hover:not(:disabled) {
  background: #fbbf24;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
  transform: translateY(-1px);
}

.rbac-btn-save:disabled {
  background: rgba(245, 158, 11, 0.22);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.35) !important;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Permissions Matrix Table & Merged Role Column Headers */
.rbac-matrix-table-wrap {
  background: #080c16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.rbac-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.rbac-table-header-row th {
  background: #090f1d;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.col-feature-th {
  width: 46%;
  min-width: 300px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  vertical-align: middle;
}

.col-role-th {
  width: 18%;
  min-width: 130px;
  vertical-align: middle;
  text-align: center;
}

.role-th-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.role-th-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-th-icon {
  font-size: 15px;
}

.role-th-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.role-scope-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.role-scope-badge.superuser {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.role-scope-badge.official {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.role-scope-badge.viewer {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.role-enabled-ratio {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 1px;
}

.role-bulk-select-btn {
  background: transparent;
  border: none;
  color: #fbbf24;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.role-bulk-select-btn:hover {
  color: #fde68a;
}

/* Category Accordion Rows */
.rbac-category-accordion-row {
  cursor: pointer;
  user-select: none;
}

.rbac-category-accordion-row td {
  background: #090f1d;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.rbac-category-accordion-row:hover td {
  background: #0d1527;
}

.category-row-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-icon {
  font-size: 14px;
}

.category-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.category-count {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

.category-chevron {
  font-size: 13px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.rbac-category-accordion-row.collapsed .category-chevron {
  transform: rotate(-90deg);
}

.rbac-feature-row.is-collapsed {
  display: none !important;
}

/* Feature Rows & Minimalist Toggles */
.rbac-feature-row td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.rbac-feature-row:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.feature-info-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-name-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.rbac-key-chip {
  font-family: monospace;
  font-size: 10px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.feature-desc {
  font-size: 12px;
  color: #828fa3;
  line-height: 1.4;
  margin: 0;
}

.col-role-cell {
  text-align: center;
}

.rbac-switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}

.rbac-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.rbac-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2b3648;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 24px;
}

.rbac-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #64748b;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.rbac-switch-input:checked + .rbac-slider {
  background-color: #f59e0b;
  border-color: #fbbf24;
}

.rbac-switch-input:checked + .rbac-slider:before {
  transform: translateX(20px);
  background-color: #090e17;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

/* Light-Blue Ring on Unsaved Edited Toggles */
.rbac-switch-input.is-unsaved + .rbac-slider {
  box-shadow: 0 0 0 2.5px #38bdf8, 0 0 10px rgba(56, 189, 248, 0.5) !important;
  border-color: #38bdf8 !important;
}

.rbac-switch-input:disabled + .rbac-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.rbac-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Mobile Single-Role Selector & Features List (hidden by default on web) */
.rbac-mobile-role-container,
.rbac-mobile-features-list,
.rbac-mobile-sticky-bottom-bar {
  display: none;
}

/* User Role Management View */
.rbac-users-header-card {
  background: #0c121e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.rbac-users-search-box {
  display: flex;
  align-items: center;
  background: #131c2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  width: 380px;
  max-width: 100%;
}

.rbac-users-search-box input {
  background: transparent;
  border: none;
  color: #f8fafc;
  outline: none;
  font-size: 13px;
  width: 100%;
  margin-left: 8px;
}

.rbac-users-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rbac-create-user-btn {
  font-family: var(--font-title, sans-serif);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.rbac-create-user-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.rbac-create-user-btn .btn-icon {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

/* Create User Modal Card */
.rbac-create-user-card {
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 26px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 25px rgba(59, 130, 246, 0.15);
  text-align: left;
  position: relative;
  animation: modal-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rbac-create-user-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.rbac-create-title {
  font-family: var(--font-title, sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  line-height: 1.25;
}

.rbac-create-subtitle {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 4px 0 0 0;
}

.rbac-modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rbac-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.rbac-form-group {
  margin-bottom: 16px;
}

.rbac-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rbac-role-pill-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.rbac-role-select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.rbac-role-select-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

.rbac-role-select-btn.active[data-role="customer"] {
  background: rgba(59, 130, 246, 0.18);
  border-color: #3b82f6;
  color: #93c5fd;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
}

.rbac-role-select-btn.active[data-role="scorer"] {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #6ee7b7;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.rbac-role-select-btn.active[data-role="admin"] {
  background: rgba(99, 102, 241, 0.18);
  border-color: #6366f1;
  color: #a5b4fc;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

.rbac-modal-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: #f8fafc;
  font-family: var(--font-body, sans-serif);
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}

.rbac-modal-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.rbac-grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rbac-field-hint {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.35;
}

.rbac-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rbac-modal-cancel-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
}

.rbac-modal-submit-btn {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.rbac-user-row.newly-created-highlight {
  animation: highlightPulse 2.5s ease-out;
}

@keyframes highlightPulse {
  0% { background-color: rgba(59, 130, 246, 0.35); }
  50% { background-color: rgba(59, 130, 246, 0.15); }
  100% { background-color: transparent; }
}

.rbac-users-table-wrap {
  background: #0c121e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rbac-users-table {
  width: 100%;
  border-collapse: collapse;
}

.rbac-users-table th {
  background: #111a2e;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.rbac-users-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.rbac-user-row {
  transition: background-color 0.15s ease;
}

.rbac-user-row:hover {
  background-color: rgba(255, 255, 255, 0.025);
}

.rbac-user-identity-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rbac-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.rbac-user-avatar.admin {
  background: radial-gradient(circle at 30% 30%, #4f46e5, #1e1b4b);
  border-color: rgba(99, 102, 241, 0.5);
  color: #e0e7ff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.rbac-user-avatar.scorer {
  background: radial-gradient(circle at 30% 30%, #059669, #022c22);
  border-color: rgba(16, 185, 129, 0.5);
  color: #d1fae5;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.rbac-user-avatar.customer {
  background: radial-gradient(circle at 30% 30%, #2563eb, #0f172a);
  border-color: rgba(59, 130, 246, 0.5);
  color: #dbeafe;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.rbac-user-display-name,
.rbac-user-name {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  color: #f8fafc;
  line-height: 1.3;
}

.rbac-user-username,
.rbac-user-handle {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}

.rbac-user-contact {
  color: #94a3b8;
  font-size: 13px;
  font-family: var(--font-mono, monospace);
}

/* Role Badges & Select */
.role-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-pill-badge.admin {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.role-pill-badge.scorer {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.role-pill-badge.customer {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

/* Role Selection Dropdown - Dark Platform Aligned */
.rbac-user-role-select,
.rbac-role-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-block;
  width: 100%;
  max-width: 200px;
  min-width: 170px;
  height: 38px;
  background-color: #0f172a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 36px 8px 12px;
  color: #f8fafc;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  outline: none;
  cursor: pointer;
  color-scheme: dark;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rbac-user-role-select:hover,
.rbac-role-select:hover {
  background-color: #141f36;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(99, 102, 241, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.rbac-user-role-select:focus,
.rbac-role-select:focus {
  background-color: #111c33;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 4px 16px rgba(0, 0, 0, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Pending unsaved changes indicator */
.rbac-user-role-select.role-changed {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25), 0 0 14px rgba(245, 158, 11, 0.2) !important;
  background-color: #1c1917 !important;
  color: #fef3c7 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Options dropdown items styling in dark theme */
.rbac-user-role-select option,
.rbac-role-select option {
  background-color: #0b1120;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
}

.rbac-user-role-select option:hover,
.rbac-user-role-select option:checked,
.rbac-role-select option:hover,
.rbac-role-select option:checked {
  background-color: #1e293b;
  color: #60a5fa;
}

.rbac-save-user-role-btn.nav-btn.mini,
.rbac-user-save-btn {
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  min-width: 76px;
  justify-content: center;
  transition: all 0.2s ease;
}

.rbac-save-user-role-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.6);
  pointer-events: none;
}

/* Simulator & Persona Switcher */
.rbac-simulator-intro {
  background: #0c121e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.rbac-simulator-intro h4 {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 6px 0;
}

.rbac-simulator-intro p {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0;
}

.rbac-simulator-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.simulator-card {
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.simulator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.simulator-card.admin-sim-card {
  border-top: 4px solid #6366f1;
}

.simulator-card.scorer-sim-card {
  border-top: 4px solid #10b981;
}

.simulator-card.customer-sim-card {
  border-top: 4px solid #3b82f6;
}

.sim-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.admin-sim-card .sim-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.scorer-sim-card .sim-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.customer-sim-card .sim-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.simulator-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 4px 0;
}

.sim-user {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.sim-user code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #f1f5f9;
}

.sim-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.sim-features-list li {
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.sim-switch-btn {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-switch-btn.admin-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.sim-switch-btn.scorer-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.sim-switch-btn.customer-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.sim-switch-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .rbac-roles-overview-grid,
  .rbac-simulator-cards-grid {
    grid-template-columns: 1fr;
  }

  .rbac-users-search-box {
    width: 100%;
  }

  .rbac-toolbar-card {
    flex-direction: column;
    align-items: stretch;
  }

  .rbac-toolbar-left,
  .rbac-toolbar-right {
    justify-content: space-between;
  }
}

/* Responsive Breakpoints for RBAC */
@media (max-width: 850px) {
  #lobby-screen.in-rbac-view .lobby-header {
    display: none !important;
  }

  body:has(#lobby-view-rbac:not(.hidden)) {
    padding: 14px 14px 90px 14px !important;
  }

  #lobby-view-rbac {
    padding-bottom: 90px !important;
  }

  .rbac-header-bar {
    align-items: center;
    margin-bottom: 12px;
  }

  .rbac-header-title {
    font-size: 20px;
  }

  .title-full,
  .badge-text-full,
  .back-text-full,
  .rbac-header-sub,
  .rbac-toolbar-actions-web,
  .rbac-category-chips-list,
  .rbac-matrix-table-wrap {
    display: none !important;
  }

  .title-mobile,
  .badge-text-mobile,
  .back-text-short {
    display: inline !important;
  }

  .rbac-back-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .rbac-underline-tabs-row {
    gap: 16px;
    margin-bottom: 16px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .rbac-underline-tabs-row::-webkit-scrollbar {
    display: none;
  }

  .rbac-underline-tab {
    font-size: 13px;
    padding: 8px 2px 10px 2px;
  }

  .rbac-toolbar-single-row {
    margin-bottom: 14px;
  }

  .rbac-search-container {
    width: 100% !important;
  }

  /* Mobile Segmented Role Switch */
  .rbac-mobile-role-container {
    display: block !important;
  }

  .rbac-mobile-role-segmented {
    display: flex;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 14px;
  }

  .rbac-mobile-role-pill {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
  }

  .rbac-mobile-role-pill.active {
    background: #f59e0b;
    color: #0f172a !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  }

  /* Active Role Card */
  .rbac-mobile-role-card {
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
  }

  .mobile-role-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .mobile-role-card-top h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
  }

  #mobile-role-description {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 12px 0;
  }

  .mobile-role-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-role-count {
    font-size: 12px;
    color: #94a3b8;
  }

  #mobile-role-select-all-btn {
    background: #151e30;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
  }

  /* Mobile Features List */
  .rbac-mobile-features-list {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }

  .rbac-mobile-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 14px 0 4px 0;
    padding: 0 4px;
  }

  .rbac-mobile-feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 14px;
  }

  .mobile-feat-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
  }

  .mobile-feat-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
  }

  .mobile-feat-desc {
    font-size: 11.5px;
    color: #828fa3;
    line-height: 1.35;
    margin: 0;
  }

  /* Mobile Sticky Bottom Bar */
  .rbac-mobile-sticky-bottom-bar {
    position: fixed !important;
    bottom: 56px !important;
    left: 0;
    right: 0;
    background: #070a13;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    z-index: 110;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  .rbac-mobile-btn-reset {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 20px;
    cursor: pointer;
  }

  .rbac-mobile-btn-save {
    flex: 1;
    background: #f59e0b;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    color: #0f172a !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  }

  .rbac-mobile-btn-save:disabled {
    background: rgba(245, 158, 11, 0.22);
    border-color: transparent;
    color: rgba(255, 255, 255, 0.35) !important;
    cursor: not-allowed;
    box-shadow: none;
  }

  /* Mobile Bottom Tab Bar */
  .mobile-bottom-tab-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #080d1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 120;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  .mobile-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    height: 100%;
    transition: all 0.15s ease;
  }

  .mobile-tab-btn:hover {
    color: #f1f5f9;
  }

  .mobile-tab-icon {
    font-size: 17px;
  }

  .mobile-tab-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
  }

  .mobile-tab-btn.active {
    color: #f59e0b;
  }

  .mobile-tab-btn.active .mobile-tab-label {
    color: #fbbf24;
    font-weight: 700;
  }

  .lobby-nav-group,
  .user-account-widget {
    display: none !important;
  }

  .nav-btn-refresh .refresh-text,
  .dt-refresh-btn .refresh-text,
  .lineup-refresh-btn .refresh-text {
    display: none;
  }
  .nav-btn-refresh,
  .dt-refresh-btn {
    padding: 6px 10px;
  }

  .lobby-container {
    padding-bottom: 70px !important;
  }
}

/* ==========================================================================
   Staff & Scorer Password Login Experience
   ========================================================================== */
.login-pwd-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.login-pwd-wrapper input {
  width: 100%;
  padding-right: 44px !important;
}

.login-pwd-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.login-pwd-toggle-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.role-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.role-auth-pill.admin {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.role-auth-pill.scorer {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.35);
}

.login-auth-switch {
  margin-top: 18px;
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-switch-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-switch-link:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

