/* ==========================================================================
   IPL AUCTION GAME - PREMIUM STYLESHEET
   Clean, modern, sports broadcast aesthetics with glassmorphism & rich colors
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #070a13;
  --bg-card: rgba(18, 26, 45, 0.75);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-input: rgba(10, 15, 28, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(245, 158, 11, 0.35);
  --border-glow: rgba(56, 189, 248, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accents */
  --gold: #f59e0b;
  --gold-glow: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  --blue: #0284c7;
  --cyan: #38bdf8;
  --emerald: #10b981;
  --rose: #f43f5e;
  --purple: #8b5cf6;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-board: 'Rajdhani', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.3);
  --shadow-cyan: 0 0 20px rgba(56, 189, 248, 0.25);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #070a13 0%, #0d1322 100%);
  background-attachment: fixed;
}

/* Helper Text Classes */
.text-gold { color: var(--gold); }
.text-emerald { color: var(--emerald); }
.text-rose { color: var(--rose); }
.text-cyan { color: var(--cyan); }
.text-center { text-align: center; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.brand-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.gold-badge {
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.season-badge-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-glow 1.5s infinite;
}

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

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex-shrink: 1;
}
.nav-menu::-webkit-scrollbar { display: none; }

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: var(--text-main);
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 2px solid var(--gold);
}

.live-pill {
  background: var(--rose);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  animation: pulse-glow 1.2s infinite;
}

.squad-count-chip {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.user-purse-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.user-purse-pill:hover {
  transform: translateY(-1px);
}
.purse-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.purse-amount {
  font-family: var(--font-board);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-danger-outline {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}
.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

/* ==========================================================================
   BUTTONS & CARDS SHARED STYLES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  user-select: none;
  text-decoration: none;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #070a13;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.55);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-glass {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--border-accent);
  color: var(--gold);
}
.btn-warning:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fff;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
}

/* ==========================================================================
   APP VIEWS CONTROLLER
   ========================================================================== */

.app-main {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  min-height: calc(100vh - var(--header-height));
  box-sizing: border-box;
}

.app-view {
  display: none;
  animation: fadeIn 0.35s ease;
}

.app-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.view-header .sub-heading {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 4px;
}

.view-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.view-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 4px;
}

/* ==========================================================================
   VIEW 1: HOME LANDING
   ========================================================================== */

.hero-section {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.25) 0%, rgba(15, 23, 42, 0.7) 70%);
  border: 1px solid var(--border-subtle);
  padding: 70px 30px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.trophy-emblem {
  font-size: 4rem;
  margin-bottom: 12px;
  animation: float-anim 3s ease-in-out infinite;
}

@keyframes float-anim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-accent);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-capsule {
  background: rgba(7, 10, 19, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-board);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Resume Game Banner */
.resume-game-card {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 20px;
  flex-wrap: wrap;
}

.resume-tag {
  background: var(--emerald);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.resume-details h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 6px 0 2px;
}

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

.resume-actions {
  display: flex;
  gap: 10px;
}

/* Home Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

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

/* ==========================================================================
   VIEW 2: SEASONS SELECTION
   ========================================================================== */

.season-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.filter-tab.active {
  background: var(--gold-gradient);
  color: #070a13;
  border-color: transparent;
  font-weight: 700;
}

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.season-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.season-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.season-card.selected {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
  box-shadow: var(--shadow-gold);
}

.season-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.season-year-badge {
  font-family: var(--font-board);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.season-champ-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

.season-title-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.season-desc-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
}

.season-meta-row {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.season-teams-preview {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.team-dot-chip {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

/* Season Confirmation Bottom Bar */
.season-confirm-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-accent);
  padding: 16px 24px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.season-confirm-bar .confirm-info {
  max-width: 900px;
}

.confirm-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}

.participating-teams-chips {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* ==========================================================================
   VIEW 3: TEAM SELECTION
   ========================================================================== */

.teams-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 80px;
}

.team-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-select-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--team-primary, #38bdf8);
}

.team-select-card:hover {
  transform: translateY(-4px);
  border-color: var(--team-primary, #38bdf8);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.team-select-card.selected {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: var(--shadow-gold);
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.team-badge-large {
  font-size: 2.8rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
}

.team-info-group h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.team-city-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.team-stats-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.team-stat-cell span {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 700;
  display: block;
}

.team-stat-cell strong {
  font-family: var(--font-board);
  font-size: 1.15rem;
  color: #fff;
}

.select-team-btn {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-select-card.selected .select-team-btn {
  background: var(--gold-gradient);
  color: #070a13;
  border-color: transparent;
}

.team-confirm-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-accent);
  padding: 16px 24px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   VIEW 4: MAIN AUCTION ROOM (3-COLUMN LAYOUT)
   ========================================================================== */

.auction-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.auction-progress-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
}

.progress-val {
  font-family: var(--font-board);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.progress-bar-inline {
  width: 140px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

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

.ctrl-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
}

.speed-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.speed-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.auto-advance-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 8px;
}

/* 3-Column Grid */
.auction-room-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.auction-col {
  min-width: 0;
  max-width: 100%;
}

.player-column {
  min-width: 0;
}

.bidding-column {
  min-width: 0;
}

.monitor-column {
  min-width: 0;
}

.column-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- COLUMN 1: PLAYER CARD --- */
.card-glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.player-pool-tag {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border: 1px solid var(--border-accent);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.player-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
}

.player-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
  border: 4px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
  transition: transform 0.3s ease;
}

.avatar-initials {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.role-badge {
  margin-top: -14px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-meta-box {
  text-align: center;
  margin-bottom: 20px;
}

.player-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
}

.player-sub-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.country-tag, .original-team-tag {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.original-team-tag {
  color: var(--gold);
}

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

/* Ratings Breakdown */
.ratings-breakdown-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.overall-rating-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.rating-num {
  font-family: var(--font-board);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--emerald);
  line-height: 1;
}

.rating-lbl {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.skill-meters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skill-meter-row span:first-child {
  width: 55px;
}

.meter-bar {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 10px;
  overflow: hidden;
}

.meter-bar .fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 3px;
}

.score-val {
  width: 25px;
  text-align: right;
  font-family: var(--font-board);
  font-weight: 700;
  color: #fff;
}

/* Price specs */
.price-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-cell {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.spec-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
  display: block;
}

.spec-value {
  font-family: var(--font-board);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

/* --- COLUMN 2: LIVE BIDDING ARENA --- */
.auctioneer-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-accent);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}

.status-icon {
  font-size: 1.2rem;
  animation: hammer-bounce 1s infinite alternate;
}

@keyframes hammer-bounce {
  from { transform: rotate(0deg); }
  to { transform: rotate(-25deg); }
}

.digital-bid-board {
  background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.15) 0%, rgba(10, 15, 28, 0.9) 100%);
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), var(--shadow-cyan);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.board-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.current-bid-amount {
  font-family: var(--font-board);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
  transition: transform 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-bid-amount.bid-pulse {
  transform: scale(1.06);
  color: var(--gold);
  text-shadow: 0 0 35px var(--gold);
}

.highest-bidder-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: 30px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.bidder-badge {
  font-size: 1.4rem;
}

.bidder-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.bidder-label {
  color: var(--text-dim);
  font-weight: 700;
}

.bidder-team-name {
  color: #fff;
  font-weight: 800;
}

/* Countdown Circle */
.countdown-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.timer-circle-container {
  position: relative;
  width: 90px;
  height: 90px;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.timer-progress-circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-dasharray: 264;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s linear, stroke 0.3s ease;
}

.timer-number-display {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-board);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.timer-caption {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  margin-top: 8px;
}

/* SOLD / UNSOLD OVERLAY */
.sold-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 19, 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.sold-card-modal {
  text-align: center;
  padding: 30px;
}

.sold-icon {
  font-size: 4rem;
  margin-bottom: 8px;
  animation: pulse-glow 1s infinite;
}

.sold-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.sold-player-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.sold-price {
  font-family: var(--font-board);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--emerald);
  margin-bottom: 8px;
}

.sold-team {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 24px;
}

/* User Bidding Controls */
.user-bid-controls {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 22px;
}

.controls-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.bid-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.bid-btn {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  font-family: var(--font-board);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bid-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(2, 132, 199, 0.4);
}

.bid-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: transparent;
}

.action-buttons-row {
  display: flex;
  gap: 10px;
}

.action-buttons-row button {
  flex: 1;
}

.bid-error-msg {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Bid History Ticker */
.bid-history-panel {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.feed-tag {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
  padding: 2px 6px;
  border-radius: 4px;
}

.bid-history-feed {
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
}

.feed-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  animation: slideInDown 0.2s ease;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.feed-time {
  color: var(--text-dim);
  font-family: var(--font-board);
  font-size: 0.85rem;
  width: 65px;
}

.feed-text {
  flex-grow: 1;
  margin: 0 8px;
}

.feed-price {
  font-family: var(--font-board);
  font-weight: 700;
  color: var(--gold);
}

.placeholder-entry {
  color: var(--text-dim);
  font-style: italic;
  justify-content: center;
}

/* --- COLUMN 3: MONITOR & RIVAL FRANCHISES --- */
.my-team-summary-card {
  margin-bottom: 20px;
  border-color: var(--border-accent);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.team-badge-circle {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-team-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}

.team-titles h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.purse-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.purse-stat-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.box-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
  display: block;
}

.box-val {
  font-family: var(--font-board);
  font-size: 1.35rem;
  font-weight: 800;
}

.squad-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  text-align: center;
}

.stat-name {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: block;
}

.stat-val {
  font-family: var(--font-board);
  font-size: 1.1rem;
}

/* Rivals Leaderboard */
.ai-teams-leaderboard-card {
  max-height: 440px;
  display: flex;
  flex-direction: column;
}

.teams-purse-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}

.rival-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rival-team-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.rival-team-row.highlighted {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
}

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

.rival-badge {
  font-size: 1.2rem;
}

.rival-name-group {
  display: flex;
  flex-direction: column;
}

.rival-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.rival-squad-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.rival-purse-group {
  text-align: right;
}

.rival-purse-val {
  font-family: var(--font-board);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.rival-spent-val {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Round Complete Bar */
.round-complete-bar {
  margin-top: 24px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.complete-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--emerald);
}

.complete-actions {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   VIEW 5: MY SQUAD SECTION
   ========================================================================== */

.squad-dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 28px;
}

.squad-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.metric-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  display: block;
}

.metric-val {
  font-family: var(--font-board);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 4px 0;
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.squad-balance-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.balance-meters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.balance-bar-row {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.fill-batting { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.fill-bowling { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.fill-allround { background: linear-gradient(90deg, #10b981, #34d399); }
.fill-keeper { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

/* Squad Cards Grid */
.squad-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.squad-player-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.squad-player-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.squad-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.squad-card-rating {
  font-family: var(--font-board);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--emerald);
}

.squad-card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.squad-card-meta {
  display: flex;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.squad-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.empty-squad-notice {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 60px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.empty-squad-notice h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.empty-squad-notice p {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   VIEW 6: PLAYER DATABASE & FILTERS
   ========================================================================= */

.player-filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.search-box input:focus {
  outline: none;
  border-color: var(--cyan);
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

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

.filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
}

.filter-group select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
}

.results-count-bar {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Tables Shared */
.players-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.players-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.players-table th {
  background: rgba(0, 0, 0, 0.4);
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.players-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.players-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-sold {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-unsold {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.status-available {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   VIEW 7: ALL TEAMS DASHBOARD
   ========================================================================== */

.all-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.team-dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.team-dashboard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.team-dashboard-card.user-team {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.08);
}

/* ==========================================================================
   VIEW 8: STATISTICS VIEW
   ========================================================================== */

.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 1px;
  display: block;
}

.card-val {
  font-family: var(--font-board);
  font-size: 2.2rem;
  font-weight: 800;
  margin: 6px 0;
  line-height: 1;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.highlight-banner-card {
  background: radial-gradient(circle at 100% 50%, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.8) 80%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
}

.banner-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.banner-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.highest-player-group h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.1;
}

.highest-player-team {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.highest-amount {
  font-family: var(--font-board);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.table-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.table-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* ==========================================================================
   VIEW 9: HISTORY TIMELINE
   ========================================================================== */

.history-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.history-timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-entry {
  display: flex;
  gap: 24px;
  position: relative;
}

.timeline-year-pin {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-board);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  z-index: 2;
}

.timeline-content-card {
  flex-grow: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease;
}

.timeline-content-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.25);
}

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

.timeline-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.timeline-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   VIEW 10: RESULTS & WINNER CEREMONY
   ========================================================================== */

.results-ceremony-banner {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 30px;
}

.trophy-anim {
  font-size: 4.5rem;
  margin-bottom: 8px;
  animation: float-anim 2.5s infinite;
}

.ceremony-eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
}

.results-ceremony-banner h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.results-ceremony-banner p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Champion Winner Card */
.winner-champion-card {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.9) 80%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.25);
  margin-bottom: 30px;
  overflow: hidden;
}

.card-ribbon {
  display: inline-block;
  background: var(--gold-gradient);
  color: #070a13;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.winner-body {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.winner-crest {
  font-size: 5rem;
  width: 110px;
  height: 110px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
}

.winner-info {
  flex-grow: 1;
}

.winner-info h2 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 14px;
}

.winner-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.w-metric span {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
  display: block;
}

.w-metric strong {
  font-family: var(--font-board);
  font-size: 1.5rem;
  color: #fff;
}

/* User team evaluation */
.my-team-results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
}

.results-card-header {
  margin-bottom: 16px;
}

.team-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}

.my-team-results-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
}

.my-team-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.eval-stat {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.eval-stat span {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 700;
  display: block;
}

.eval-stat strong {
  font-family: var(--font-board);
  font-size: 1.5rem;
}

.results-footer-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ==========================================================================
   MODALS & TOASTS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  animation: modalEnter 0.2s ease;
  overflow: hidden;
}

.modal-dialog.modal-large {
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.header-with-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-badge {
  font-size: 2rem;
}

.modal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.modal-close-btn:hover { color: #fff; }

.modal-body {
  padding: 24px;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--gold);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  pointer-events: auto;
  animation: slideToast 0.25s ease;
}

@keyframes slideToast {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE, TABLET, DESKTOP)
   ========================================================================== */

@media (max-width: 1280px) {
  .auction-room-layout {
    grid-template-columns: 280px minmax(0, 1fr) 290px;
    gap: 14px;
  }
}

@media (max-width: 1040px) {
  .auction-room-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .player-column {
    order: 1;
  }
  .bidding-column {
    order: 2;
  }
  .monitor-column {
    order: 3;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .main-header {
    height: auto;
    padding: 12px 0;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-menu {
    order: 3;
    padding-bottom: 4px;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .current-bid-amount {
    font-size: 3.5rem;
  }

  .bid-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .view-header h2 {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   PARTY MODE & 10 FRIENDS MULTIPLAYER STYLES
   ========================================================================== */

.party-mode-banner {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.85) 85%);
  border: 2px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  text-align: center;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.party-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: #070a13;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.party-mode-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.party-mode-banner p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 800px;
  margin: 0 auto 16px;
}

.mode-toggle-group {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.mode-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-toggle-btn.active {
  background: var(--gold-gradient);
  color: #070a13;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

/* 10 Friends Configuration Panel */
.friends-config-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
}

.friends-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.friends-panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.friends-panel-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.friends-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.friend-slot-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.friend-slot-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.friend-slot-badge {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.friend-slot-details {
  flex-grow: 1;
}

.friend-slot-team-title {
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
}

.friend-slot-input {
  width: 100%;
  background: rgba(10, 15, 28, 0.8);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.85rem;
  padding: 5px 8px;
  border-radius: 4px;
  margin-top: 4px;
  font-family: var(--font-body);
}

.friend-slot-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Manager Paddles Bar in Auction Room */
.manager-paddle-bar {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.paddle-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 4px;
}

.active-manager-name {
  font-size: 0.82rem;
  font-weight: 800;
}

.paddles-scroll-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.paddles-scroll-row::-webkit-scrollbar {
  height: 5px;
}
.paddles-scroll-row::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}
.paddles-scroll-row::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.team-paddle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.team-paddle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.team-paddle-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.paddle-purse-chip {
  font-family: var(--font-board);
  font-size: 0.75rem;
  color: var(--gold);
}

/* Squad Manager Tabs */
.squad-manager-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.squad-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.squad-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.squad-tab-btn.active {
  background: var(--gold-gradient);
  color: #070a13;
  border-color: transparent;
  font-weight: 800;
}
