:root {
  --bg-primary: #111111; /* LFC Charcoal Black */
  --bg-secondary: #181818; /* LFC Secondary Dark */
  --bg-tertiary: #222222; /* LFC Panel Dark Gray */
  
  --crimson-primary: #C8102E; /* Official Liverpool Red */
  --crimson-glow: rgba(200, 16, 46, 0.4);
  --crimson-border: rgba(200, 16, 46, 0.15);
  
  --gold-primary: #E3D4AD; /* Official LFC Gold/Sand */
  --gold-glow: rgba(227, 212, 173, 0.4);
  --gold-text: #E3D4AD; /* Official LFC Gold/Sand Text */
  
  --blue-primary: #1e3a8a;
  --blue-glow: rgba(30, 58, 138, 0.4);
  
  --text-primary: #ffffff; /* High contrast white */
  --text-secondary: #cccccc; /* Midtone grey */
  --text-muted: #888888; /* Muted grey */
  
  --glass-bg: rgba(24, 24, 24, 0.75); /* Charcoal glass */
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(20px);
  
  --font-title: 'Montserrat', sans-serif; /* Inspired by LFC Sans */
  --font-body: 'Inter', sans-serif; /* Highly readable body sans-serif */
  --transition-speed: 0.2s; /* Snappier sports-dashboard transitions */
}

/* -----------------------------------------
   Light Theme Override Variables
   ----------------------------------------- */
body.light-theme {
  --bg-primary: #ffffff; /* Official white background */
  --bg-secondary: #f4f5f6; /* Soft light gray */
  --bg-tertiary: #e9ecef; /* Neutral panel grey */
  
  --crimson-primary: #C8102E; /* Keep Liverpool Red */
  --crimson-glow: rgba(200, 16, 46, 0.12);
  --crimson-border: rgba(200, 16, 46, 0.08);
  
  --gold-primary: #c8a152; /* Darker gold for light bg contrast */
  --gold-glow: rgba(200, 161, 82, 0.15);
  --gold-text: #8c6a25; /* Dark brown-gold for high-readability text */
  
  --text-primary: #111111; /* Charcoal black text */
  --text-secondary: #495057; /* Charcoal gray text */
  --text-muted: #868e96; /* Muted gray text */
  
  --glass-bg: rgba(255, 255, 255, 0.85); /* White glass */
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-blur: blur(20px);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-size: 16px;
  margin-right: 12px;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--crimson-primary);
  transform: scale(1.05);
}

body.light-theme .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.04);
}

body.light-theme .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Toggle icon visibility based on body class */
body.light-theme .theme-toggle-btn .theme-icon-sun {
  display: none;
}
body:not(.light-theme) .theme-toggle-btn .theme-icon-moon {
  display: none;
}

/* Light Theme overrides for blobs and panels */
body.light-theme .glow-blob {
  opacity: 0.05; /* Soften glowing background blobs */
}

body.light-theme .dashboard-panel {
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
}

body.light-theme .panel-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .card-icon {
  background: rgba(0, 0, 0, 0.04);
}

/* Under development banner override for light mode */
body.light-theme .development-notice-banner {
  background: rgba(140, 106, 37, 0.05);
  border-color: rgba(140, 106, 37, 0.2);
}

/* Make sure dropdowns and text inputs display cleanly in light mode */
body.light-theme input,
body.light-theme select {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #111111 !important;
}

body.light-theme input:focus,
body.light-theme select:focus {
  border-color: var(--crimson-primary) !important;
  box-shadow: 0 0 8px var(--crimson-glow) !important;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--crimson-primary) var(--bg-secondary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 1px solid var(--crimson-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--crimson-primary);
  box-shadow: 0 0 8px var(--crimson-glow);
}

/* Ambient Glowing Background Blobs */
.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}
.blob-1 {
  top: -10%;
  left: 10%;
  width: 45vw;
  height: 45vw;
  background-color: var(--crimson-primary);
  animation: float 20s infinite alternate;
}
.blob-2 {
  bottom: 10%;
  right: 5%;
  width: 35vw;
  height: 35vw;
  background-color: var(--gold-primary);
  animation: float 25s infinite alternate-reverse;
}
.blob-3 {
  top: 40%;
  left: 50%;
  width: 30vw;
  height: 30vw;
  background-color: var(--blue-primary);
  opacity: 0.15;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Main Container Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 4vw;
}

/* Club Anthem Motto Banner */
.ynwa-banner {
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200, 161, 82, 0.15);
  margin-top: 16px;
  background: linear-gradient(90deg, transparent, rgba(227, 27, 35, 0.04) 20%, rgba(200, 161, 82, 0.04) 50%, rgba(227, 27, 35, 0.04) 80%, transparent);
  position: relative;
}

.ynwa-text {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 7px;
  background: linear-gradient(135deg, var(--gold-text) 30%, #ffffff 70%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    text-shadow: 0 0 10px rgba(200, 161, 82, 0.3);
  }
  100% {
    text-shadow: 0 0 18px rgba(227, 27, 35, 0.6);
  }
}

/* App Header styling */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.crest-svg,
.crest-img {
  color: var(--crimson-primary);
  filter: drop-shadow(0 0 10px var(--crimson-glow));
  transition: transform var(--transition-speed);
}
.header-logo:hover .crest-svg,
.header-logo:hover .crest-img {
  transform: rotate(-5deg) scale(1.05);
  color: var(--gold-primary);
  filter: drop-shadow(0 0 12px var(--gold-glow));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.logo-sub {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-text);
  font-weight: 700;
}

/* Navigation Tabs */
.header-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
  backdrop-filter: blur(8px);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab.active {
  color: #ffffff;
  background: var(--crimson-primary);
  box-shadow: 0 0 12px var(--crimson-glow);
}

.meta-season-badge {
  background: linear-gradient(135deg, rgba(227, 212, 173, 0.05) 0%, rgba(227, 212, 173, 0.15) 100%);
  border: 1px solid var(--gold-primary);
  color: var(--gold-text);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(200, 161, 82, 0.1);
}

/* Main Content Wrapper */
.app-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tab-content {
  display: none;
  animation: fadeIn var(--transition-speed) ease;
}

.tab-content.active {
  display: block;
}

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

/* Glassmorphism Panel Template */
.dashboard-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: var(--glass-blur);
  margin-bottom: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.panel-header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.panel-header h3 {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.panel-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 1. OVERVIEW SECTION STYLING */

/* Quick Stats Grid */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-speed);
}

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

.metric-card.gold-glowing:hover {
  box-shadow: 0 8px 24px rgba(200, 161, 82, 0.15);
  border-color: rgba(200, 161, 82, 0.3);
}

.metric-card.crimson-glowing:hover {
  box-shadow: 0 8px 24px rgba(227, 27, 35, 0.15);
  border-color: rgba(227, 27, 35, 0.3);
}

.metric-card.teal-glowing:hover {
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.15);
  border-color: rgba(20, 184, 166, 0.3);
}

.metric-card.blue-glowing:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.card-icon {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
}

.metric-card.gold-glowing .card-icon {
  color: var(--gold-text);
  background: rgba(200, 161, 82, 0.1);
}

.metric-card.crimson-glowing .card-icon {
  color: var(--crimson-primary);
  background: rgba(227, 27, 35, 0.1);
}

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Trophy Cabinet Styling */
.trophy-cabinet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.trophy-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.trophy-badge {
  position: relative;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  transition: all var(--transition-speed);
}

.trophy-count-tag {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--crimson-primary);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--bg-primary);
}

.trophy-silhouette {
  font-size: 28px;
}

.trophy-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trophy-seasons {
  font-size: 10px;
  color: var(--text-muted);
}

/* Hover behaviors for cabinet items */
.trophy-item-card.gold-hover:hover {
  background: rgba(200, 161, 82, 0.05);
  border-color: var(--gold-primary);
  transform: scale(1.03);
}
.trophy-item-card.gold-hover:hover .trophy-badge {
  background: rgba(200, 161, 82, 0.15);
  box-shadow: 0 0 15px var(--gold-glow);
}

.trophy-item-card.crimson-hover:hover {
  background: rgba(227, 27, 35, 0.05);
  border-color: var(--crimson-primary);
  transform: scale(1.03);
}
.trophy-item-card.crimson-hover:hover .trophy-badge {
  background: rgba(227, 27, 35, 0.15);
  box-shadow: 0 0 15px var(--crimson-glow);
}

.trophy-item-card.blue-hover:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: #3b82f6;
  transform: scale(1.03);
}
.trophy-item-card.blue-hover:hover .trophy-badge {
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Chart Rows Layout */
.charts-dashboard-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.flex-2 { flex: 2 1 500px; }
.flex-1 { flex: 1 1 300px; }

.chart-container {
  position: relative;
  height: 350px;
  width: 100%;
}

.wide-chart {
  height: 380px;
}

.full-width-panel {
  width: 100%;
}

/* 2. SEASON EXPLORER STYLING */

.timeline-control-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  backdrop-filter: var(--glass-blur);
}

.timeline-slider-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 12px;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.slider-extreme {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Custom premium styling for the timeline range input slider */
.timeline-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
  border: 1px solid var(--glass-border);
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--crimson-primary);
  border: 3px solid var(--text-primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--crimson-glow);
  transition: transform 0.1s;
}

.timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--crimson-primary);
}

.timeline-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--crimson-primary);
  border: 3px solid var(--text-primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--crimson-glow);
  transition: transform 0.1s;
}

.timeline-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Year indicator circles */
.timeline-buttons-row {
  display: flex;
  justify-content: space-between;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 6px;
}

.t-year-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all var(--transition-speed);
}

.t-year-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.t-year-btn.active {
  color: var(--crimson-primary);
  background: rgba(227, 27, 35, 0.1);
  box-shadow: inset 0 0 8px rgba(227, 27, 35, 0.08);
}

/* Explorer Layout */
.season-explorer-content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}

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

.explorer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.season-badge-header {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}

.season-badge-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--crimson-primary);
}

.season-badge-header h2 {
  font-family: var(--font-title);
  font-size: 32px;
  letter-spacing: 2px;
}

.explorer-pos-badge {
  background: var(--crimson-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 15px var(--crimson-glow);
}

/* Grid within Explorer Left */
.explorer-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.explorer-stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.explorer-stat-card.full-width {
  grid-column: span 2;
}

.estat-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.estat-value {
  font-size: 20px;
  font-weight: 800;
}

.manager-text {
  color: var(--text-primary);
  font-weight: 700;
}

.scorer-text {
  color: var(--gold-text);
  font-weight: 700;
}

/* Explorer Right Elements */
.explorer-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: var(--glass-blur);
}

.glass-card h4 {
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  color: var(--text-primary);
}

.explorer-trophies-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.explorer-trophies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.e-trophy-badge {
  background: rgba(200, 161, 82, 0.1);
  border: 1px solid var(--gold-primary);
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--gold-text);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.e-trophy-badge.shield-badge {
  border-color: var(--crimson-primary);
  background: rgba(227, 27, 35, 0.1);
  color: var(--text-primary);
}

.season-narrative {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Cup Runs Table */
.cup-runs-table {
  width: 100%;
  border-collapse: collapse;
}

.cup-runs-table th, .cup-runs-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cup-runs-table th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.cup-runs-table td {
  font-size: 13px;
}

.cup-runs-table td:last-child {
  font-weight: 700;
}

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

/* 3. MANAGER SECTION STYLING */

.managers-intro-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.managers-intro-header h2 {
  font-family: var(--font-title);
  font-size: 28px;
  margin-bottom: 8px;
}

.managers-intro-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.managers-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

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

.managers-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manager-tab-btn {
  background: rgba(20, 8, 10, 0.3);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  text-align: left;
  padding: 16px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.manager-tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.manager-tab-btn.active {
  background: rgba(227, 27, 35, 0.05);
  border-color: var(--crimson-primary);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--crimson-border);
}

.m-arrow {
  opacity: 0;
  transition: opacity var(--transition-speed);
}
.manager-tab-btn.active .m-arrow {
  opacity: 1;
}

/* Manager Display Card */
.managers-main-display {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.manager-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
}

.manager-title-group h3 {
  font-family: var(--font-title);
  font-size: 26px;
  color: var(--text-primary);
}

.manager-years {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-text);
  letter-spacing: 1px;
}

.manager-trophies-count {
  background: linear-gradient(135deg, rgba(200, 161, 82, 0.1) 0%, rgba(200, 161, 82, 0.25) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
}

.manager-trophies-count .count {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-text);
  line-height: 1;
}

.manager-trophies-count .lbl {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-secondary);
}

.manager-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.manager-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.m-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.m-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.m-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.manager-trophy-shelf h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.manager-trophies-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.manager-trophies-list li {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.manager-trophies-list li::before {
  content: '🏆';
  font-size: 14px;
}

/* Manager Avatar styling */
.manager-avatar {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-tertiary);
  flex-shrink: 0;
}

.manager-avatar.mini {
  width: 32px;
  height: 32px;
}

.manager-avatar.large {
  width: 60px;
  height: 60px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.manager-avatar.large .avatar-fallback {
  font-size: 18px;
}

/* Adjustments for Sidebar buttons */
.manager-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  gap: 12px;
}

.manager-btn-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

.manager-btn-content span {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

/* Adjustments for display header */
.manager-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 4. SQUAD BUILDER STYLING */

.squad-intro-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.squad-intro-header h2 {
  font-family: var(--font-title);
  font-size: 28px;
  margin-bottom: 8px;
}

.squad-intro-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.squad-builder-playground {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

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

/* Football Pitch Design */
.tactical-pitch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.football-pitch {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 0.72;
  background: linear-gradient(180deg, #162f1c 0%, #0d1e12 100%);
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Field Markings details */
.pitch-marking {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.penalty-area-top {
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 18%;
  border-top: none;
}

.penalty-area-bottom {
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 18%;
  border-bottom: none;
}

.center-line {
  top: 50%;
  left: -2px;
  width: 102%;
  height: 0;
  border-left: none;
  border-right: none;
}

.center-circle {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 20%;
  border-radius: 50%;
}

/* Player Bubble Slots */
.pitch-player-slot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  cursor: pointer;
  z-index: 5;
}

.player-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  transition: all var(--transition-speed);
}

.pitch-player-slot:hover .player-bubble {
  border-color: var(--crimson-primary);
  background: rgba(227, 27, 35, 0.15);
  color: var(--text-primary);
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--crimson-glow);
}

/* Filled Bubble State */
.pitch-player-slot.filled .player-bubble {
  background: var(--bg-tertiary);
  border: 2px solid var(--gold-primary);
  color: var(--gold-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  text-align: center;
  font-weight: 700;
}

.pitch-player-slot.filled:hover .player-bubble {
  border-color: var(--crimson-primary);
  box-shadow: 0 0 15px var(--crimson-glow);
}

.player-slot-label {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 4px;
}

.pitch-player-slot.filled .player-slot-label {
  color: var(--text-primary);
}

/* Placing Slots by coordinate percentages (4-3-3 Standard Layout) */
/* GK is at bottom of pitch, FW at top */
.gk-slot  { bottom: 4%;  left: 50%; transform: translateX(-50%); }

.lb-slot  { bottom: 22%; left: 10%; }
.lcb-slot { bottom: 20%; left: 33%; }
.rcb-slot { bottom: 20%; left: 67%; }
.rb-slot  { bottom: 22%; right: 10%; }

.lcm-slot { bottom: 45%; left: 15%; }
.cm-slot  { bottom: 42%; left: 50%; transform: translateX(-50%); }
.rcm-slot { bottom: 45%; right: 15%; }

.lw-slot  { bottom: 75%; left: 10%; }
.st-slot  { bottom: 78%; left: 50%; transform: translateX(-50%); }
.rw-slot  { bottom: 75%; right: 10%; }

/* Buttons styling */
.pitch-controls {
  display: flex;
  gap: 16px;
}

.primary-btn {
  background: var(--crimson-primary);
  border: none;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-family: var(--font-body);
  box-shadow: 0 4px 12px var(--crimson-glow);
}
.primary-btn:hover {
  background: #f02830;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--crimson-primary);
}

.secondary-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-family: var(--font-body);
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Player pool Modal overlay */
.player-selector-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  max-height: 400px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  border-color: rgba(227, 27, 35, 0.3);
}

.player-selector-panel.hidden {
  display: none;
}

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

.selector-header h4 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-size: 15px;
}

.close-selector-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}
.close-selector-btn:hover {
  color: var(--crimson-primary);
}

.selector-players-list {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selector-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-speed);
}

.selector-item:hover {
  background: rgba(227, 27, 35, 0.08);
  border-color: var(--crimson-border);
}

.selector-item.selected {
  border-color: var(--gold-primary);
  background: rgba(200, 161, 82, 0.05);
  pointer-events: none;
  opacity: 0.6;
}

.sel-player-name {
  font-weight: 700;
  font-size: 13px;
}

.sel-player-years {
  font-size: 10px;
  color: var(--text-muted);
}

.sel-player-rating {
  background: rgba(200, 161, 82, 0.1);
  color: var(--gold-text);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Squad Sidebar info */
.squad-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-rating-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 12px;
}

.team-rating-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.progress-bar-container {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson-primary) 0%, var(--gold-primary) 100%);
  box-shadow: 0 0 10px var(--crimson-glow);
  transition: width 0.5s ease;
}

.rating-value {
  font-size: 18px;
  font-weight: 800;
}

.team-summary-list h5 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.lineup-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lineup-check-list li {
  font-size: 13px;
  color: var(--text-secondary);
}

.lineup-check-list li.valid {
  color: #10b981;
}

/* Generated output card styling */
.squad-share-result {
  margin-top: 10px;
  animation: fadeIn var(--transition-speed) ease;
}

.generated-card {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(200,161,82,0.05) 100%);
  border: 1px solid var(--gold-primary);
  padding: 16px;
  border-radius: 12px;
  position: relative;
}

.generated-card h6 {
  font-family: var(--font-title);
  color: var(--gold-text);
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.generated-card p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.gen-rating-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--gold-primary);
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 5. HISTORIC TIMELINE STYLING */

.timeline-intro-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.timeline-intro-header h2 {
  font-family: var(--font-title);
  font-size: 28px;
  margin-bottom: 8px;
}

.timeline-intro-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.vertical-timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Central line */
.vertical-timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--glass-border);
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-milestone-item {
  display: flex;
  justify-content: flex-end;
  position: relative;
  width: 50%;
  padding: 0 30px 40px 0;
}

.timeline-milestone-item.right-item {
  align-self: flex-end;
  justify-content: flex-start;
  left: 50%;
  padding: 0 0 40px 30px;
}

/* Circle marker on line */
.timeline-marker {
  position: absolute;
  top: 24px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--crimson-primary);
  z-index: 2;
  box-shadow: 0 0 8px var(--crimson-glow);
  transition: all var(--transition-speed);
}

.timeline-milestone-item.right-item .timeline-marker {
  left: -8px;
}

.timeline-milestone-item:hover .timeline-marker {
  transform: scale(1.2);
  background: var(--crimson-primary);
  box-shadow: 0 0 12px var(--crimson-primary);
}

.timeline-moment-card {
  padding: 20px;
  transition: all var(--transition-speed);
}

.timeline-moment-card:hover {
  transform: translateY(-4px);
  border-color: var(--crimson-border);
}

.moment-year {
  font-family: var(--font-title);
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.timeline-moment-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-moment-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.moment-badge {
  display: inline-block;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.moment-badge.champions-league-badge {
  border-color: var(--gold-primary);
  background: rgba(200, 161, 82, 0.1);
  color: var(--gold-text);
}

.moment-badge.premier-league-badge {
  border-color: var(--crimson-primary);
  background: rgba(227, 27, 35, 0.1);
  color: var(--text-primary);
}

/* Adjust timeline layout for small screens */
@media (max-width: 600px) {
  .vertical-timeline-container::before {
    left: 20px;
  }
  
  .timeline-milestone-item {
    width: 100%;
    padding: 0 0 30px 40px;
    justify-content: flex-start;
  }
  
  .timeline-milestone-item.right-item {
    left: 0;
    padding: 0 0 30px 40px;
  }
  
  .timeline-marker {
    left: 12px !important;
  }
  
  .ynwa-text {
    font-size: 11px;
    letter-spacing: 4px;
  }
  .ynwa-banner {
    padding: 8px 0;
    margin-top: 10px;
  }
}

/* APP FOOTER */
.app-footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 32px;
}

.app-footer p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Era Filter Styling */
.chart-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 24px;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-buttons-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--crimson-primary);
  color: var(--text-primary);
  border-color: var(--crimson-primary);
  box-shadow: 0 0 12px var(--crimson-glow);
}

@media (max-width: 768px) {
  .chart-filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* 6. LIVE NEWS SECTION STYLING */
.news-intro-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.news-intro-header h2 {
  font-family: var(--font-title);
  font-size: 28px;
  margin-bottom: 8px;
}

.news-intro-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.news-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.header-live-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(227, 27, 35, 0.12);
  border: 1px solid rgba(227, 27, 35, 0.25);
  color: var(--crimson-primary);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--crimson-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--crimson-glow);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--crimson-primary); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Feed Tabs styling */
.feed-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.feed-tab-btn {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-align: center;
  white-space: nowrap;
}

.feed-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.feed-tab-btn.active {
  background: var(--crimson-primary);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--crimson-glow);
}

/* X Feed Loading Skeleton and Wrapper */
.x-feed-wrapper {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
}

.x-feed-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.skeleton-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow-y: hidden;
}

.skeleton-container.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skeleton-tweet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.skeleton-header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.skeleton-line {
  height: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.title-line {
  width: 35%;
}

.subtitle-line {
  width: 20%;
  height: 6px;
}

.skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 52px;
}

.body-line-1 { width: 90%; }
.body-line-2 { width: 85%; }
.body-line-3 { width: 45%; }

.skeleton-actions {
  display: flex;
  gap: 24px;
  margin-left: 52px;
  margin-top: 4px;
}

.skeleton-action {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.skeleton-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 4px 0;
}

/* Shimmer animation */
.shim {
  position: relative;
  overflow: hidden;
}

.shim::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(255, 255, 255, 0.06) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
  content: '';
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Anfield Fan Poll Container and Question */
.poll-widget-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.poll-question {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.poll-state {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity var(--transition-speed) ease;
}

.poll-state.hidden {
  display: none;
  opacity: 0;
}

/* Poll Option Button */
.poll-opt-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.poll-opt-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--crimson-primary);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.poll-opt-btn:hover {
  background: rgba(227, 27, 35, 0.08);
  border-color: rgba(227, 27, 35, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(227, 27, 35, 0.15);
}

.poll-opt-btn:hover::before {
  opacity: 1;
}

.opt-emoji {
  font-size: 18px;
  flex-shrink: 0;
}

.opt-text {
  flex-grow: 1;
}

.poll-meta-text {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Poll Results State styling */
.poll-result-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.result-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.result-text {
  color: var(--text-secondary);
}

.result-percent {
  color: var(--gold-text);
}

.result-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.result-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson-primary) 0%, var(--gold-primary) 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--crimson-glow);
  width: 0%;
  transition: width 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.result-count {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  font-weight: 600;
}

/* Reset Button */
.poll-reset-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed);
  margin-top: 8px;
  width: 100%;
  text-align: center;
}

.poll-reset-btn:hover {
  border-color: var(--crimson-primary);
  color: var(--text-primary);
  background: rgba(227, 27, 35, 0.06);
  box-shadow: 0 0 10px rgba(227, 27, 35, 0.1);
}

/* Responsive adjustments for Live News Section */
@media (max-width: 900px) {
  .news-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .x-feed-wrapper {
    height: 500px;
  }
}

/* Under Development Notice Banner */
.development-notice-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 161, 82, 0.08);
  border: 1px solid rgba(200, 161, 82, 0.25);
  border-radius: 8px;
  padding: 8px 14px;
  margin: 0 auto 20px auto;
  max-width: 100%;
  text-align: left;
}

.development-notice-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.development-notice-text {
  font-size: 12px;
  color: var(--gold-text);
  line-height: 1.4;
  font-weight: 500;
}

/* 7. KOP PREDICTOR & LOYALTY SECTION STYLING */
.predictor-intro-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.predictor-intro-header h2 {
  font-family: var(--font-title);
  font-size: 28px;
  margin-bottom: 8px;
}

.predictor-intro-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.predictor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.predictor-col-left, .predictor-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Fan Profile Card */
.profile-display-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson-primary) 0%, var(--bg-tertiary) 100%);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.avatar-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-primary);
  color: var(--bg-primary);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--bg-primary);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.profile-details-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.profile-name-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name-edit input {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  width: 120px;
  padding: 2px 4px;
  transition: all var(--transition-speed);
}

.profile-name-edit input:focus {
  outline: none;
  border-bottom-color: var(--crimson-primary);
}

.username-save-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.username-save-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.profile-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-stats-mini .mini-stat {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: 8px;
}

.profile-stats-mini .mini-stat .lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.profile-stats-mini .mini-stat .val {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-text);
}

.tier-progress-container {
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.15);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.tier-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

#current-tier-name {
  color: var(--text-primary);
}

#points-to-next-tier {
  color: var(--text-secondary);
}

.checkin-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px;
  font-size: 12px;
}

.checkin-reward-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
}

.checkin-btn:disabled {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.checkin-btn:disabled .checkin-reward-badge {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

/* Reward Shop Styling */
.rewards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reward-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: 12px;
  transition: all var(--transition-speed);
}

.reward-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(200, 161, 82, 0.2);
}

.reward-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.reward-info h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.reward-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.reward-price {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-text);
  text-transform: uppercase;
}

.redeem-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--gold-primary);
  color: var(--gold-text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.redeem-btn:hover:not(:disabled) {
  background: var(--gold-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.redeem-btn:disabled {
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
}

.redemption-success {
  margin-top: 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  animation: fadeIn var(--transition-speed) ease;
}

.redemption-success h5 {
  color: #10b981;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.redemption-success p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.redeemed-code {
  display: inline-block;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: #10b981;
  padding: 6px 16px;
  border-radius: 6px;
  letter-spacing: 1px;
}

/* Match Predictor Styling */
.upcoming-match-header {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 24px;
}

.team-badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.team-lbl {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.vs-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 800;
}

.match-countdown {
  font-size: 11px;
  color: var(--gold-text);
  font-weight: 700;
}

.prediction-inputs-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.score-input-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.score-input-col label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
}

.score-input-col input {
  width: 60px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  transition: all var(--transition-speed);
}

.score-input-col input:focus {
  outline: none;
  border-color: var(--crimson-primary);
  box-shadow: 0 0 10px var(--crimson-glow);
}

.score-separator {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 18px;
}

.predictor-fields-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.pred-select-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pred-select-field label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 700;
}

.pred-select-field select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}

.pred-select-field select:focus {
  outline: none;
  border-color: var(--crimson-primary);
}

.pred-checkbox-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 13px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

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

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-secondary);
  transition: .3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: var(--crimson-primary);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(22px);
  background-color: var(--text-primary);
}

/* Simulator Console & locked choices */
.simulator-console {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prediction-locked-banner {
  background: rgba(200, 161, 82, 0.08);
  border: 1px solid rgba(200, 161, 82, 0.25);
  color: var(--gold-text);
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.user-locked-choices {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 10px;
}

.user-locked-choices h5 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.user-locked-choices p {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.simulator-actions-box {
  background: rgba(227, 27, 35, 0.03);
  border: 1px dashed rgba(227, 27, 35, 0.15);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.sim-notice {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.sim-btn {
  width: 100%;
  padding: 12px;
  font-size: 12px;
  background: linear-gradient(135deg, var(--crimson-primary) 0%, #a81218 100%);
}

/* Simulation Concluded Results Panel */
.simulation-result-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--gold-primary);
  border-radius: 14px;
  padding: 16px;
  animation: fadeIn var(--transition-speed) ease;
}

.simulation-result-card h4 {
  font-family: var(--font-title);
  color: var(--gold-text);
  font-size: 14px;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.simulation-outcome-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.outcome-score {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.outcome-details {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.points-awarded-details {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.points-awarded-details h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.points-awarded-details h5 .pts-total {
  color: #10b981;
}

.points-breakdown-list {
  list-style: none;
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.points-breakdown-list li {
  display: flex;
  justify-content: space-between;
}

.reset-sim-btn {
  width: 100%;
  padding: 10px;
  font-size: 12px;
}

/* Global Leaderboard Table */
.leaderboard-table-wrapper {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table td {
  font-size: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.leaderboard-table .user-row {
  background: rgba(227, 27, 35, 0.08);
  border-left: 3px solid var(--crimson-primary);
  font-weight: 700;
}

.leaderboard-table .user-row td {
  color: var(--text-primary);
}

.badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.tier-kopite { background: rgba(113, 113, 122, 0.15); color: var(--text-secondary); border: 1px solid rgba(113, 113, 122, 0.3); }
.tier-silver { background: rgba(255, 255, 255, 0.08); color: #d4d4d8; border: 1px solid rgba(255, 255, 255, 0.15); }
.tier-gold { background: rgba(200, 161, 82, 0.15); color: var(--gold-text); border: 1px solid var(--gold-primary); }
.tier-centenary { background: linear-gradient(135deg, var(--crimson-primary) 0%, var(--gold-primary) 100%); color: var(--text-primary); box-shadow: 0 0 8px var(--crimson-glow); }

/* Responsive adjustments for Predictor Grid */
@media (max-width: 900px) {
  .predictor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .predictor-intro-header h2 {
    font-size: 24px;
  }
  
  .profile-display-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-name-edit {
    justify-content: center;
  }
  
  .profile-stats-mini {
    margin-top: 8px;
  }
}

/* Mock Live News Timeline Feed Styles */
.mock-tweets-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 10px;
}

.mock-tweet {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all var(--transition-speed);
}

.mock-tweet:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(227, 27, 35, 0.15);
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  position: relative;
}

.tweet-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson-primary) 0%, #8b0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.tweet-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tweet-user-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tweet-display-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.tweet-verified-badge {
  color: #1d9bf0;
  font-size: 11px;
}

.tweet-handle {
  font-size: 11px;
  color: var(--text-muted);
}

.tweet-time {
  font-size: 11px;
  color: var(--text-muted);
}

.tweet-x-logo {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.tweet-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  word-wrap: break-word;
}

.tweet-actions {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.tweet-action {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color var(--transition-speed);
}

.tweet-action:hover {
  color: var(--crimson-primary);
}

/* Subscribe & Feedback Card Styling */
.subscribe-feedback-card {
  margin-top: 20px;
}

.subscribe-feedback-card label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.subscribe-feedback-card input,
.subscribe-feedback-card textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  transition: all var(--transition-speed);
}

body.light-theme .subscribe-feedback-card input,
body.light-theme .subscribe-feedback-card textarea {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: #111111;
}

.subscribe-feedback-card input:focus,
.subscribe-feedback-card textarea:focus {
  outline: none;
  border-color: var(--crimson-primary);
  box-shadow: 0 0 8px var(--crimson-glow);
}

.newsletter-success {
  text-align: center;
  padding: 16px 0;
  animation: fadeIn var(--transition-speed) ease;
}

.success-icon-badge {
  font-size: 32px;
  margin-bottom: 12px;
}

.newsletter-success h5 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-text);
  margin-bottom: 6px;
}

.newsletter-success p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.submitted-details-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  text-align: left;
}

body.light-theme .submitted-details-box {
  background: rgba(0, 0, 0, 0.02);
}

.submitted-details-box span {
  word-break: break-all;
}

/* Email Console Modal Style */
.email-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.email-modal.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.email-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.email-modal-content {
  position: relative;
  width: 90%;
  max-width: 650px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  z-index: 1001;
  overflow: hidden;
  animation: modalFadeIn 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

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

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

.email-modal-header h4 {
  font-family: var(--font-title);
  color: var(--gold-text);
  font-size: 14px;
  margin: 0;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: color var(--transition-speed);
}

.close-modal-btn:hover {
  color: var(--crimson-primary);
}

.email-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex-grow: 1;
}

.server-status-bar {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 11px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.5s infinite;
}

.console-notice {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0;
}

.email-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

.email-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all var(--transition-speed);
}

.email-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.email-tab-btn.active {
  background: var(--crimson-primary);
  color: #ffffff;
}

.email-preview-container {
  flex-grow: 1;
  height: 380px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: #ffffff; /* White background inside frame for high contrast email preview */
  overflow: hidden;
}

.email-preview-pane {
  width: 100%;
  height: 100%;
}

.email-preview-pane.hidden {
  display: none;
}

.email-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
