/* Root Variables & Colors */
:root {
  --bg-main: #0a0a0c;
  --bg-card: #131316;
  --bg-card-hover: #1c1c21;
  --bg-header: #0e0e11;
  --border-color: #27272f;
  --text-primary: #f8f9fa;
  --text-secondary: #9da3ae;
  --ufc-red: #e20613;
  --ufc-red-glow: rgba(226, 6, 19, 0.35);
  --gold-championship: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --green-win: #10b981;
  --red-loss: #ef4444;
  --transition-speed: 0.25s;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
}

a {
  color: var(--ufc-red);
  text-decoration: none;
  transition: color var(--transition-speed);
}
a:hover {
  color: #ff3344;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* App Container Layout */
.app-container {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-main);
}

/* Header */
.app-header {
    width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-header);
  border-bottom: 2px solid var(--border-color);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
}

.header-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-accent {
  color: var(--ufc-red);
  text-shadow: 0 0 10px var(--ufc-red-glow);
}
.logo-main {
  color: var(--text-primary);
}

.header-search {
  position: relative;
  flex: 0 1 400px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}
#fighterSearch {
  width: 100%;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px 8px 38px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
#fighterSearch:focus {
  border-color: var(--ufc-red);
  box-shadow: 0 0 8px var(--ufc-red-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.api-status-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all var(--transition-speed);
}
.api-status-container:hover {
  border-color: var(--text-secondary);
}
.api-status-container.live-active {
  border-color: var(--green-win);
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
}
.api-icon {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}
.api-status-container.live-active .api-icon {
  color: var(--green-win);
}
.api-status-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.api-status-container.live-active .api-status-text {
  color: var(--green-win);
}

.bankroll-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-heading);
}
.bankroll-display .label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 1px;
}
.bankroll-display .amount {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 900;
}

.betslip-toggle-btn {
  background-color: var(--ufc-red);
  border: none;
  border-radius: 6px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: var(--text-primary);
  transition: transform 0.15s ease, background-color var(--transition-speed);
  box-shadow: 0 0 10px var(--ufc-red-glow);
}
.betslip-toggle-btn:hover {
  background-color: #ff1c2a;
  transform: scale(1.05);
}
.betslip-toggle-btn svg {
  width: 20px;
  height: 20px;
}
.betslip-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--text-primary);
  color: var(--bg-main);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ufc-red);
}

/* Info Ticker */
.info-ticker {
    width: 100%;
  background-color: var(--ufc-red);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}
.ticker-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
  /* padding removed to fix iOS texture limit bug */
}
.ticker-item {
  margin-right: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
@keyframes marquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
.ticker-item.live {
  color: #ffffff;
}
.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
  animation: pulse-animation 1.5s infinite;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Main Layout Grid */
.app-main {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
  padding: 24px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

/* Left / Main Section */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-header-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  gap: 24px;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-speed);
}
.tab-btn:hover {
  color: var(--text-primary);
}
.tab-btn.active {
  color: var(--ufc-red);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ufc-red);
  box-shadow: 0 0 8px var(--ufc-red-glow);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Card */
.event-hero-card {
  background: linear-gradient(135deg, #2b0305 0%, var(--bg-card) 60%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--ufc-red);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.event-hero-card::before {
  content: 'OCTAGON';
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.event-hero-details .event-tag {
  display: inline-block;
  background-color: var(--ufc-red);
  color: var(--text-primary);
  font-size: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.event-hero-details h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.event-hero-details .event-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-hero-matchup {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  z-index: 1;
}
.hero-fighter {
  display: flex;
  flex-direction: column;
}
.hero-fighter.f1 {
  text-align: right;
  border-right: 3px solid var(--ufc-red);
  padding-right: 12px;
}
.hero-fighter.f2 {
  border-left: 3px solid #3b82f6;
  padding-left: 12px;
}
.hero-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}
.hero-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.hero-vs {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-secondary);
}

/* Action Selector Bar */
.card-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.card-action-bar h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}
.odds-legend {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.best-odds-indicator-box {
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold-championship);
  border-radius: 2px;
  background-color: var(--gold-glow);
}
.championship-tag-box {
  font-size: 0.8rem;
}

/* Bouts Container */
.bouts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bout-card {
  background: rgba(19, 19, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-speed), transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.bout-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.bout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.02);
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-color);
}
.bout-div {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.championship-badge {
  background-color: var(--gold-championship);
  color: var(--bg-main);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 5px var(--gold-glow);
}
.live-tonight-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e20613, #c10010);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(226, 6, 19, 0.6);
  animation: live-pulse 1.5s ease-in-out infinite;
  margin-bottom: 4px;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(226, 6, 19, 0.5); }
  50% { box-shadow: 0 0 18px rgba(226, 6, 19, 0.9); }
}
.bout-action-btns {
  display: flex;
  gap: 10px;
}
.bout-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 10px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-speed);
}
.bout-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.bout-btn svg {
  width: 14px;
  height: 14px;
}

.bout-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  padding: 16px;
  gap: 16px;
  align-items: center;
}

/* Fighter Row */
.bout-fighters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bout-fighter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  position: relative;
}
.bout-fighter-row.red-corner {
  border-left: 3px solid var(--ufc-red);
  padding-left: 10px;
}
.bout-fighter-row.blue-corner {
  border-left: 3px solid #3b82f6;
  padding-left: 10px;
}

.bout-fighter-info {
  display: flex;
  flex-direction: column;
}
.bout-fighter-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.bout-fighter-record {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.bout-fighter-streak {
  font-size: 0.75rem;
  font-weight: 600;
}
.bout-fighter-streak.win {
  color: var(--green-win);
}
.bout-fighter-streak.loss {
  color: var(--text-secondary);
}

/* Bookie Table Styles */
.bout-odds-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  text-align: center;
}
.bookie-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bookie-label {
  font-size: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.odds-btn {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 0;
  cursor: pointer;
  transition: all var(--transition-speed);
}
.odds-btn:hover {
  border-color: var(--ufc-red);
  background-color: rgba(226, 6, 19, 0.05);
}
.odds-btn.best-odds {
  border-color: var(--gold-championship);
  color: var(--gold-championship);
  box-shadow: inset 0 0 5px var(--gold-glow);
}
.odds-btn.best-odds:hover {
  background-color: rgba(212, 175, 55, 0.05);
}
.odds-btn.active {
  background-color: var(--ufc-red) !important;
  color: #fff !important;
  border-color: var(--ufc-red) !important;
  box-shadow: 0 0 8px var(--ufc-red-glow) !important;
}

/* Past Results Cards */
.past-event-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.past-event-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.past-event-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}
.past-event-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.past-bout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}
.past-bout-row:last-child {
  border-bottom: none;
}
.past-fighters {
  font-size: 0.95rem;
  font-weight: 600;
}
.past-winner-tag {
  color: var(--green-win);
  font-weight: 700;
}
.past-result-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
}

/* Fighter Grid */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.fighter-card {
  background: rgba(19, 19, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.fighter-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.fighter-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.fighter-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}
.fighter-card-div {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}
.fighter-card-record {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.fighter-card-prospect-badge {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid #3b82f6;
  color: #3b82f6;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}
.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-speed);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--ufc-red);
  color: var(--text-primary);
  background-color: rgba(226, 6, 19, 0.05);
}

/* Sidebar Widgets */
.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.widget-header h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.widget-header .badge {
  background-color: rgba(226, 6, 19, 0.1);
  color: var(--ufc-red);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.widget-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Debut Fighter list items */
.debut-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.debut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-main);
  cursor: pointer;
  transition: all var(--transition-speed);
}
.debut-item:hover {
  border-color: var(--ufc-red);
}
.debut-info {
  display: flex;
  flex-direction: column;
}
.debut-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.debut-org {
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.debut-record-badge {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--green-win);
  color: var(--green-win);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Bet History Widget */
.clear-history-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}
.clear-history-btn:hover {
  color: var(--ufc-red);
}
.bet-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
}
.bet-history-card {
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bet-hist-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text-primary);
}
.bet-hist-type {
  font-size: 0.65rem;
  background-color: var(--border-color);
  padding: 1px 4px;
  border-radius: 3px;
}
.bet-hist-odds {
  color: var(--ufc-red);
}
.bet-hist-selection {
  color: var(--text-secondary);
}
.bet-hist-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--border-color);
  padding-top: 4px;
  margin-top: 4px;
  font-size: 0.75rem;
}
.bet-hist-payout {
  color: var(--green-win);
  font-weight: 600;
}

/* Drawer overlays */
.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
}
.drawer-overlay.active {
  display: block;
}

/* Drawers General Styles */
.drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background-color: var(--bg-card);
  border-left: 2px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  z-index: 1001;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1.5px solid var(--border-color);
  background-color: var(--bg-header);
}
.drawer-header h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.close-drawer-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.close-drawer-btn:hover {
  color: var(--text-primary);
}

/* Bet Slip Body */
.betslip-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.bets-selections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}
.selection-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.selection-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.remove-selection-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
}
.remove-selection-btn:hover {
  color: var(--ufc-red);
}
.sel-matchup {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.sel-fighter {
  font-weight: 700;
  font-size: 0.95rem;
}
.sel-odds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 0.8rem;
}
.sel-bookie {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.sel-odds {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ufc-red);
}

.betslip-summary-box {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.summary-row .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.summary-row .value {
  color: var(--ufc-red);
  font-size: 1.1rem;
}

.wager-input-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wager-input-container label {
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.wager-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0 12px;
}
.wager-input-wrapper .currency {
  font-weight: 600;
  color: var(--text-secondary);
}
#wagerAmount {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 100%;
  padding: 10px;
  outline: none;
  font-weight: 700;
  font-size: 1rem;
}

.payout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.payout-col {
  display: flex;
  flex-direction: column;
}
.payout-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.payout-value {
  font-weight: 700;
  font-size: 0.95rem;
}
#payoutToWin {
  color: var(--green-win);
}

.place-bet-btn {
  background-color: var(--ufc-red);
  color: var(--text-primary);
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-speed);
}
.place-bet-btn:hover {
  background-color: #ff1c2a;
  box-shadow: 0 0 10px var(--ufc-red-glow);
}

/* Analytics Drawer Body */
.analytics-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.comp-fighter-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
}
.comp-fighter-record {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.comp-fighter.f1 {
  color: var(--ufc-red);
}
.comp-fighter.f2 {
  color: #3b82f6;
}
.comp-vs {
  font-size: 0.8rem;
  font-weight: 800;
  background-color: var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
}

.analytics-section {
  margin-bottom: 24px;
}
.analytics-section h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* Physical comparison grid */
.stat-compare-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
}
.stat-val {
  font-weight: 600;
}
.stat-val.f1 {
  color: var(--ufc-red);
}
.stat-val.f2 {
  color: #3b82f6;
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* Skill Meters */
.skills-meters {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.skill-meter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}
.meter-label span:nth-child(2) {
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
}
.meter-track {
  height: 6px;
  background-color: var(--bg-main);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}
.meter-fill.f1 {
  background-color: var(--ufc-red);
}
.meter-fill.f2 {
  background-color: #3b82f6;
}

/* Weight Simulator Box */
.prediction-simulator-box {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.prediction-simulator-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ufc-red);
}
.box-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(226, 6, 19, 0.1);
  color: var(--ufc-red);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-heading);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}
.slider-header label {
  color: var(--text-secondary);
}
.slider-header span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ufc-red);
}
.sim-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  outline: none;
}
.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ufc-red);
  cursor: pointer;
  box-shadow: 0 0 5px var(--ufc-red-glow);
  transition: transform 0.1s ease;
}
.sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Simulation Output */
.simulation-results {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.simulation-results h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
.probability-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prob-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}
.prob-bar-labels span:nth-child(1) {
  color: var(--ufc-red);
}
.prob-bar-labels span:nth-child(2) {
  color: #3b82f6;
}
.probability-bar-container {
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 24px;
  color: #fff;
  text-align: center;
}
.prob-fill {
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.prob-fill.f1 {
  background-color: var(--ufc-red);
}
.prob-fill.f2 {
  background-color: #3b82f6;
}

.predicted-outcome-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}
.outcome-col {
  display: flex;
  flex-direction: column;
}
.outcome-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
}
.outcome-val {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
#simProjectedWinner {
  color: var(--gold-championship);
}

/* Modals general */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
}
.modal-overlay.active {
  display: block;
}

.modal { z-index: 2001;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 480px;
  background: rgba(19, 19, 22, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 2001;
  overflow: hidden;
}
.modal.active {
  display: block;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(0, 0, 0, 0.2);
}
.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}
.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}
.close-modal-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

/* Forms input inside modal */
.form-group {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-secondary);
}
#apiKeyInput {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  color: var(--text-primary);
  outline: none;
  font-size: 0.9rem;
}
#apiKeyInput:focus {
  border-color: var(--ufc-red);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.modal-btn {
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-speed);
}
.cancel-btn {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.cancel-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.save-btn {
  background-color: var(--ufc-red);
  color: var(--text-primary);
}
.save-btn:hover {
  background-color: #ff1c2a;
}

/* Fighter detailed history modal */
.fighter-modal {
  max-width: 650px;
}
.fighter-detail-banner {
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.8) 0%, rgba(10, 10, 12, 0.9) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.fighter-detail-banner h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--text-primary);
}
.fighter-detail-org {
  font-size: 0.8rem;
  color: var(--ufc-red);
  font-weight: 700;
  text-transform: uppercase;
}
.fighter-detail-record {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}

.history-section h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.table-wrapper {
  overflow-x: auto;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.history-table th {
  text-align: left;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--border-color);
  text-transform: uppercase;
}
.history-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
}
.history-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}
.hist-win {
  color: var(--green-win);
  font-weight: 700;
}
.hist-loss {
  color: var(--red-loss);
  font-weight: 700;
}

/* General Loader / Empty State states */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 20px;
  gap: 8px;
}
.empty-state svg {
  width: 40px;
  height: 40px;
  color: var(--border-color);
}
.empty-state p {
  font-size: 0.9rem;
  font-weight: 600;
}
.empty-state p.sub {
  font-size: 0.75rem;
  color: #6b7280;
}
.hidden {
  display: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .app-main {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .app-header {
    padding: 8px 16px;
  }
  .header-search {
    display: none; /* Hide search in main header on mobile, can search roster in directory tab */
  }
  .event-hero-card {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .event-hero-matchup {
    width: 100%;
    justify-content: center;
  }
  .bout-main {
    grid-template-columns: 1fr;
  }
  .bout-odds-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .drawer {
    width: 100%;
    right: -100%;
  }
}

/* Live Sync Loading Overlay */
.sync-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.sync-overlay.active {
  display: flex;
}
.sync-modal {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}
.sync-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--ufc-red);
}
.sync-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--ufc-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.sync-modal h3 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}
.sync-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.sync-progress-container {
  width: 100%;
  height: 8px;
  background-color: var(--bg-main);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}
.sync-progress-bar {
  height: 100%;
  background-color: var(--ufc-red);
  box-shadow: 0 0 8px var(--ufc-red-glow);
  width: 0%;
  transition: width 0.3s ease;
}
.sync-status-msg {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold-championship);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Autocomplete Search Dropdown in Header */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.search-dropdown.hidden {
  display: none !important;
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color var(--transition-speed);
}
.search-dropdown-item:last-child {
  border-bottom: none;
}
.search-dropdown-item:hover {
  background-color: var(--bg-card-hover);
}
.search-dropdown-thumbnail {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
}
.search-dropdown-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.search-dropdown-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.search-dropdown-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.search-dropdown-record {
  font-size: 0.7rem;
  color: var(--ufc-red);
  font-weight: 600;
}

/* Matchup Cards Side-by-Side Images */
.bout-fighters-with-pics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.bout-fighter-row-pic {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bout-fighter-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-main);
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}
.red-corner .bout-fighter-thumb {
  border-color: var(--ufc-red);
}
.blue-corner .bout-fighter-thumb {
  border-color: #3b82f6;
}

/* Fighter card headshots (roster grid) */
.fighter-card-layout {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fighter-card-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-main);
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}
.fighter-card-prospect-badge {
  flex-shrink: 0;
}

/* Prospect spotlight widget images */
.debut-item-layout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.debut-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* Full body portraits side-by-side in Analytics Drawer */
.comparison-portraits {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 220px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  background: radial-gradient(circle at bottom, rgba(255,255,255,0.03) 0%, transparent 70%);
}
.portrait-container {
  width: 45%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.portrait-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}
.portrait-img:hover {
  transform: scale(1.05);
}

/* Fighter Details Modal specific overrides for scrollability */
.fighter-modal {
  max-width: 750px !important;
  max-height: 85vh;
  flex-direction: column;
}
.fighter-modal.active {
  display: flex !important;
}
.fighter-modal .modal-body {
  overflow-y: auto;
  flex: 1;
}

/* Accordion upcoming card styling */
.upcoming-event-accordion {
  background: rgba(19, 19, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.upcoming-event-accordion:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.upcoming-event-accordion-header {
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.upcoming-event-accordion-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upcoming-event-accordion-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.upcoming-event-accordion-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.upcoming-event-accordion-indicator {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.upcoming-event-accordion-indicator::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}
.upcoming-event-accordion.active .upcoming-event-accordion-indicator::after {
  transform: rotate(180deg);
}
.upcoming-event-accordion-content {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border-color);
  display: none;
}
.upcoming-event-accordion.active .upcoming-event-accordion-content {
  display: block;
}

/* Prediction bar inside bouts */
.bout-prediction-bar {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid var(--accent-color);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-radius: 0 4px 4px 0;
}
.bout-prediction-bar strong {
  color: var(--text-primary);
}

/* Clickable fighter names in matchup cards */
.clickable-fighter-link {
  cursor: pointer;
  transition: color 0.2s ease;
}
.clickable-fighter-link:hover {
  color: var(--accent-color) !important;
  text-decoration: underline;
}

/* Phase 6: Method of Victory Odds */
.bout-method-odds-box {
  margin-top: 12px;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.01);
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}
.method-odds-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.method-odds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .method-odds-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.method-fighter-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.method-fighter-header {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}
.method-fighter-header.red-corner {
  color: var(--ufc-red);
  border-bottom-color: rgba(226, 6, 19, 0.2);
}
.method-fighter-header.blue-corner {
  color: #3b82f6;
  border-bottom-color: rgba(59, 130, 246, 0.2);
}
.method-odds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.method-label {
  color: var(--text-secondary);
  font-weight: 500;
}
.method-odds-btn {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  min-width: 80px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed);
}
.method-odds-btn:hover {
  border-color: var(--gold-championship);
  background-color: rgba(212, 175, 55, 0.05);
}
.method-odds-btn.active {
  background-color: var(--gold-championship) !important;
  color: var(--bg-main) !important;
  border-color: var(--gold-championship) !important;
  box-shadow: 0 0 8px var(--gold-glow) !important;
}

/* Live Pulse & Indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--green-win);
  background-color: rgba(46, 204, 113, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
  margin-left: 10px;
  vertical-align: middle;
}
.live-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--green-win);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  animation: pulse-live 1.8s infinite;
}
@keyframes pulse-live {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

/* Odds movement flashes */
@keyframes flash-shorter {
  0% { background-color: rgba(46, 204, 113, 0.5); box-shadow: 0 0 10px var(--green-win); }
  100% { background-color: transparent; }
}
@keyframes flash-longer {
  0% { background-color: rgba(231, 76, 60, 0.5); box-shadow: 0 0 10px var(--ufc-red); }
  100% { background-color: transparent; }
}
.odds-btn.odds-shorter, .method-odds-btn.odds-shorter {
  animation: flash-shorter 1.5s ease-out;
}
.odds-btn.odds-longer, .method-odds-btn.odds-longer {
  animation: flash-longer 1.5s ease-out;
}

/* Live Toggle Switch */
.switch input:checked + .slider {
  background-color: var(--ufc-red);
}
.switch input:focus + .slider {
  box-shadow: 0 0 1px var(--ufc-red);
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-primary);
  transition: .4s;
  border-radius: 50%;
}

/* Momentum tags styles */
.tag-pill {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background-color: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.tag-pill:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.f1-corner .tag-pill.active {
  background-color: rgba(227, 24, 55, 0.15);
  border-color: var(--ufc-red);
  color: var(--ufc-red);
  box-shadow: 0 0 5px rgba(227, 24, 55, 0.3);
}
.f2-corner .tag-pill.active {
  background-color: rgba(24, 144, 255, 0.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 5px rgba(24, 144, 255, 0.3);
}

/* Round Scorecard styles */
.scorecard-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  margin-top: 4px;
}
.scorecard-label {
  font-weight: 700;
  color: var(--text-secondary);
}
.scorecard-btn {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.2s;
  text-align: center;
}
.scorecard-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.scorecard-btn.active.f1-win {
  background-color: var(--ufc-red);
  color: var(--text-primary);
  border-color: var(--ufc-red);
  box-shadow: 0 0 6px rgba(227, 24, 55, 0.4);
}
.scorecard-btn.active.f2-win {
  background-color: var(--accent-color);
  color: var(--text-primary);
  border-color: var(--accent-color);
  box-shadow: 0 0 6px rgba(24, 144, 255, 0.4);
}
.scorecard-btn.active.even {
  background-color: var(--text-secondary);
  color: var(--bg-main);
  border-color: var(--text-secondary);
}

/* Placed Bets Tab scroll overrides */
#activeBetsSection .bet-history-list,
#parlayBetsSection .bet-history-list {
  max-height: none;
  overflow-y: visible;
}

/* Live Bout Cards styling */
.bout-card.live-bout {
  border-left-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}
@keyframes pulse-live {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Completed Bout Cards styling */
.bout-card.completed-bout {
  background-color: rgba(20, 20, 25, 0.6);
  border-left-color: var(--text-secondary);
}
.bout-card.completed-bout.pending-result-bout {
  opacity: 0.6;
}
.bout-card.completed-bout .odds-btn,
.bout-card.completed-bout .method-odds-btn,
.bout-card.completed-bout .analytics-btn {
  pointer-events: none;
  opacity: 0.5;
}

/* Completed predictions correct/incorrect indicators */
.bout-prediction-bar.completed {
  border-top: 1px solid var(--border-color);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.bout-prediction-bar.completed.correct {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--green-win);
  border-left: 3px solid var(--green-win);
}
.bout-prediction-bar.completed.incorrect {
  background-color: rgba(239, 68, 68, 0.08);
  color: var(--red-loss);
  border-left: 3px solid var(--red-loss);
}

/* Fight Wire News styling */
.news-feed-container {
  padding-bottom: 30px;
}
.news-card {
  background: var(--glass-bg, rgba(30, 30, 38, 0.4));
  backdrop-filter: var(--glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--glass-blur, blur(12px));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.04));
  border-radius: 8px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--border-color);
}
.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Category severity colors */
.news-card.severity-critical::before {
  background-color: var(--ufc-red);
}
.news-card.severity-high::before {
  background-color: var(--gold-championship);
}
.news-card.severity-medium::before {
  background-color: #3b82f6;
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.news-card-category {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.04);
}
.news-card-category.cuts {
  color: var(--ufc-red);
  background-color: rgba(227, 24, 55, 0.08);
}
.news-card-category.injuries {
  color: var(--gold-championship);
  background-color: rgba(212, 175, 55, 0.08);
}
.news-card-category.changes {
  color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.08);
}
.news-card-category.announcements {
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.08);
}
.news-card-category.rumors {
  color: #a855f7;
  background-color: rgba(168, 85, 247, 0.08);
}

.news-card-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.news-card-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.news-card-summary {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}
.news-card-affected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
}
.affected-tag {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.affected-tag:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--text-primary);
}

/* News Header Tabs Controls */
.news-filter-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.news-filter-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-heading);
  font-weight: 700;
}
.news-filter-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.news-filter-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
}

/* Notification dot on navigation tabs */
.tab-btn {
  position: relative;
}
.news-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background-color: var(--ufc-red);
  border-radius: 50%;
  display: none;
  box-shadow: 0 0 6px var(--ufc-red);
  animation: pulse-live 1.8s infinite;
}

/* Status badges inside directory */
.status-badge {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
}
.status-badge.cut {
  background-color: rgba(227, 24, 55, 0.15);
  color: var(--ufc-red);
  border: 1px solid rgba(227, 24, 55, 0.3);
}
.status-badge.injured {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--gold-championship);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Premium smooth transitions on tab panels */
.tab-content {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}
.tab-content.active {
  display: block !important;
  animation: tabFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes tabFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fighter comparison checkbox visual accents */
.fighter-card-layout input[type="checkbox"] {
  accent-color: var(--ufc-red);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.fighter-card-layout input[type="checkbox"]:hover {
  opacity: 1;
}

/* Glassmorphic Compare Modal styling */
.compare-modal {
  background: rgba(19, 19, 22, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
}

/* Dashboard stat card styling */
.dashboard-stat-card {
  background: rgba(19, 19, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.dashboard-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Rankings Styles */
.rankings-sidebar-btn {
  background: var(--glass-bg, rgba(30,30,38,0.4));
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  transition: all 0.2s ease;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  outline: none;
}
.rankings-sidebar-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}
.rankings-sidebar-btn.active {
  background: var(--ufc-red);
  border-color: var(--ufc-red);
  color: white;
  box-shadow: 0 0 10px var(--ufc-red-glow);
}
.rankings-change-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}
.rankings-change-badge.increase {
  color: var(--green-win);
  background-color: rgba(46, 204, 113, 0.12);
}
.rankings-change-badge.decrease {
  color: var(--red-loss);
  background-color: rgba(239, 68, 68, 0.12);
}
.rankings-row {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}
.rankings-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}
.rankings-row td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.rankings-row td a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.rankings-row td a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Upset pick prediction bar — AI going against the market */
.bout-prediction-bar.upset-pick {
  border-left: 3px solid var(--ufc-red);
  background: rgba(226, 6, 19, 0.07);
}

/* ML Analytics UI */
.ml-analytics-wrapper {
  margin-top: 10px;
  width: 100%;
}
.ml-analytics-toggle {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ml-analytics-toggle:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}
.ml-analytics-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}
.ml-analytics-panel.active {
  display: block;
}
.ml-analytics-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.ml-analytics-header span:first-child { color: var(--ufc-red); }
.ml-analytics-header span:last-child { color: #3b82f6; }
.ml-stat-row {
  margin-bottom: 8px;
}
.ml-stat-label {
  font-size: 0.7rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ml-stat-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ml-stat-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 30px;
}
.ml-stat-val.left { text-align: right; }
.ml-stat-val.right { text-align: left; }
.ml-stat-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  display: flex;
  overflow: hidden;
}
.ml-bar-fill {
  height: 100%;
}
.ml-bar-fill.left {
  background: var(--ufc-red);
}
.ml-bar-fill.right {
  background: #3b82f6;
}

/* AI Skeleton Loader Pulse */
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* =========================================
   Mobile Responsive Design
========================================= */
@media (max-width: 768px) {
  @keyframes marquee-mobile {
    0% { transform: translateX(850px); }
    100% { transform: translateX(-100%); }
  }
  .ticker-content {
    animation: marquee-mobile 25s linear infinite;
  }
  
  .app-header {
    flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 15px;
    position: relative;
  }
  .header-search {
    display: flex;
    flex: 1;
    min-width: 150px;
    margin-right: 0;
    order: 2;
  }
  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .info-ticker {
    width: 100%;
    box-sizing: border-box;
  }
  
  .app-nav {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: center;
    padding: 0 10px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
  }
  .nav-btn {
    font-size: 0.75rem;
    padding: 10px 12px;
  }
  
  .bout-card {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
    min-width: 0; /* Prevents odds grid from stretching card beyond screen */
    width: 100%;
    box-sizing: border-box;
  }
  .bout-main {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
  }
  .fighter-box {
    max-width: 45%;
  }
  .fighter-name {
    font-size: 0.85rem;
    white-space: normal;
  }
  .fighter-record {
    font-size: 0.65rem;
  }
  .vs-badge {
    margin: 0 5px;
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  .bout-odds {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 12px;
    gap: 8px;
  }
  .odds-btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 8px;
  }
  
      .bout-odds-grid {
      display: flex;
      overflow-x: auto;
      padding-bottom: 8px;
      gap: 12px;
      -webkit-overflow-scrolling: touch;
    }
    .bookie-col {
      min-width: 75px;
      flex: 0 0 auto;
    }
    .hero-bg {
      background-position: center top;
    }
  
  .method-odds-grid {
    grid-template-columns: 1fr;
  }
  
  .ml-analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .ml-analytics-header {
    flex-direction: column;
    gap: 10px;
  }
  .ml-analytics-header > div {
    text-align: center !important;
  }
  .ml-stat-label {
    font-size: 0.65rem;
  }
  .ml-stat-val {
    font-size: 0.75rem;
    min-width: 25px;
  }
}

/* Dynamic Prospect Spotlight Badges */
.debut-event-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.upcoming-debut {
  background: linear-gradient(45deg, #d32f2f, #ff5252);
  color: #fff;
  box-shadow: 0 0 8px rgba(211, 47, 47, 0.4);
}
.upcoming-prospect {
  background: linear-gradient(45deg, #1976d2, #42a5f5);
  color: #fff;
}
.standard-prospect {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}
.debut-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateY(0);
}
.debut-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* AI Parlay Button */
.ai-parlay-btn {
  background: linear-gradient(45deg, #10b981, #3b82f6);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: 800;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ai-parlay-btn:hover {
  opacity: 0.8;
}

.ai-parlay-leg {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 0.9rem;
}
.ai-parlay-leg-name {
  font-weight: 600;
}
.ai-parlay-leg-odds {
  color: var(--text-secondary);
}

.bonus-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.bonus-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}


.ai-parlay-modal { max-height: 85vh; overflow-y: auto; }

@media (max-width: 768px) {
  .ai-parlay-modal {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    padding: 20px 15px !important;
  }
  .sportsbook-bonuses-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Fight Announcement Visual Cards */
.news-card.announcement-visual-wrapper {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.announcement-card-visual {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.announcement-bg-official {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0,0,0,0.8) 100%);
}

.announcement-bg-rumor {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(0,0,0,0.8) 100%);
}

.announcement-header-banner {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px;
  background: rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.announcement-portraits {
  display: flex;
  height: 220px;
  position: relative;
  background-color: #050505;
}

.portrait-left, .portrait-right {
  flex: 1;
  background-size: contain;
  background-position: bottom center;
  background-repeat: no-repeat;
  position: relative;
}

.portrait-left::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to right, rgba(226,6,19,0.1) 0%, transparent 100%), linear-gradient(to top, rgba(0,0,0,1) 0%, transparent 40%);
}

.portrait-right::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to left, rgba(59,130,246,0.1) 0%, transparent 100%), linear-gradient(to top, rgba(0,0,0,1) 0%, transparent 40%);
}

/* Diagonal split line between portraits */
.announcement-portraits::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.2);
  z-index: 2;
  transform: translateX(-50%);
}

.announcement-details-box {
  padding: 15px 20px;
  text-align: center;
}

.announcement-matchup-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.announcement-division-meta {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.announcement-records-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #ccc;
}

.record-block {
  flex: 1;
}

.record-block-left {
  text-align: left;
}

.record-block-right {
  text-align: right;
}

.record-name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

/* Auth Header Container */
.auth-container {
  display: flex;
  gap: 12px;
  align-items: center;
}
.login-btn, .signup-btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.login-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}
.login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.signup-btn {
  background: var(--ufc-red);
  border: none;
  color: white;
}
.signup-btn:hover {
  background: #ff2a2a;
  transform: translateY(-1px);
}

/* User Profile Container */
.user-profile-container {
  position: relative;
  display: flex;
  align-items: center;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ufc-red) 0%, #ff6b6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  position: relative;
}
.membership-badge {
  position: absolute;
  bottom: -4px;
  right: -8px;
  background: #333;
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid #555;
}
.membership-badge.premium {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  color: #000;
  border: none;
}
.profile-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  width: 200px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dropdown-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: 600;
}
.dropdown-item {
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}
.dropdown-item.text-danger {
  color: #ff4d4d;
}

/* Landing Hero Section */
.landing-hero {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  min-height: 400px;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.3) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  padding: 40px;
  gap: 40px;
  align-items: center;
}
.hero-left {
  flex: 1;
}
.hero-left h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-left .slogan {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 80%;
}
.hero-left .cta-btn {
  background: var(--ufc-red);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(210, 10, 10, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-left .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 10, 10, 0.6);
}
.hero-right {
  flex: 0 0 400px;
}
.ai-stats-card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
}
.ai-stats-card h3 {
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
  color: var(--ufc-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.best-picks-section h4 {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.best-picks-section h4::before {
  content: '✅';
  font-size: 0.75rem;
}
.best-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%);
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 3px solid var(--green-win);
  position: relative;
  transition: all 0.25s ease;
}
.best-pick:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0.06) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateX(3px);
}
.best-pick .pick-check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-win), #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: white;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
.best-pick .pick-info {
  flex: 1;
  min-width: 0;
}
.pick-fighter {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8f9fa;
  line-height: 1.2;
}
.pick-method-tag {
  font-size: 0.7rem;
  color: var(--green-win);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.pick-odds-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green-win);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-family: var(--font-heading);
}

/* Modals */
.auth-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.auth-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.auth-modal {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.auth-overlay.hidden .auth-modal {
  transform: translateY(20px);
}
.close-modal {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.close-modal:hover {
  color: white;
}
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.auth-header p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.form-group input {
  width: 100%;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: white;
  font-family: 'Inter', sans-serif;
}
.form-group input:focus {
  outline: none;
  border-color: var(--ufc-red);
}

.auth-message {
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 6px;
}
.auth-message.hidden { display: none; }
.auth-message.success {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
}
.auth-message.error {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.password-reqs-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.password-reqs-list.hidden {
  display: none;
}
.req-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e74c3c;
  transition: color 0.2s;
}
.req-item::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #e74c3c;
  border-radius: 2px;
  transition: background 0.2s;
}
.req-item.req-valid {
  color: #2ecc71;
}
.req-item.req-valid::before {
  background: #2ecc71;
}

.auth-modal .submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--ufc-red);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.auth-modal .submit-btn:hover {
  background: #ff2a2a;
}
.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.auth-footer a {
  color: var(--ufc-red);
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}

#landingView {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
#landingView .landing-hero {
  min-height: 100vh;
  margin-bottom: 0;
  border-radius: 0;
}

.hero-bg {
  transition: background-image 1s ease-in-out;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    padding: 0 20px;
    text-align: center;
    gap:  5px;
  }
  .hero-left h1 {
    font-size: 2.5rem;
  }
  .ai-stats-card {
    max-width: 100%;
    margin-top:  -15px;
    margin-bottom: 40px;
  }
  
  .auth-modal {
    width: 95%;
    max-width: none;
    padding: 30px 20px;
  }
  .auth-modal h2 {
    font-size: 2.2rem;
  }
  .auth-modal .form-group label {
    font-size: 1.1rem;
  }
  .auth-modal .form-group input {
    padding: 14px 16px;
    font-size: 1.1rem;
  }
  .auth-modal .submit-btn {
    padding: 16px;
    font-size: 1.2rem;
  }
}

.pricing-modal {
  max-width: 800px !important;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.pricing-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(229, 9, 20, 0.5);
  transform: translateY(-5px);
}
.pricing-card.recommended {
  border-color: #e50914;
  background: rgba(229, 9, 20, 0.05);
}
.pricing-card.recommended:hover {
  background: rgba(229, 9, 20, 0.1);
}
.recommended-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #e50914;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}
.plan-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}
.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 5px;
}
.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}
.plan-savings {
  color: #2ecc71;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  min-height: 18px; /* For alignment when some don't have savings */
}
.pricing-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pending-result-bout { opacity: 0.5; filter: grayscale(80%); }
.live-bout {
  border: 1px solid var(--primary-red);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 10px rgba(220, 38, 38, 0.2); }
  50% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.6); }
  100% { box-shadow: 0 0 10px rgba(220, 38, 38, 0.2); }
}

/* ESPN-Style Fighter Comparison Modal CSS */
.compare-category-header {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 4px;
  margin: 18px 0 10px 0;
  border-left: 3px solid #6366f1;
}

.compare-stat-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.compare-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-align: center;
}

.compare-val-left {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.compare-val-right {
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.compare-val-highlight-left {
  color: #10b981 !important; /* Emerald green for winner */
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  font-weight: 800 !important;
}

.compare-val-highlight-right {
  color: #10b981 !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  font-weight: 800 !important;
}

.compare-bar-track {
  display: flex;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.compare-bar-fill-left {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-bar-fill-right {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.05);
}

.compare-bar-fill-left-active {
  height: 100%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), #6366f1);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.compare-bar-fill-left-active.better {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), #10b981);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.compare-bar-fill-right-active {
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #6366f1, rgba(99, 102, 241, 0.1));
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.compare-bar-fill-right-active.better {
  background: linear-gradient(90deg, #10b981, rgba(16, 185, 129, 0.1));
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

