/**
 * ⚽ VIRTUAL FOOTBALL MATCH SIMULATOR - STYLES
 * 
 * Chapter 7: FRONTEND UI (MATCH VISUALIZER & ANIMATIONS)
 * Module: Visual Styling & Animations
 * Ticket: UI-CH7-002 - Micro-Movements & Set Piece Trajectories
 * 
 * Features:
 * - Responsive pitch visualization
 * - SVG animation for passing lines (AC-1)
 * - Curved trajectories for corners (AC-2)
 * - Zone highlighting and overlays
 * - Team color dynamics (AC-5: TC-8.5)
 * 
 * @author Virtual Football Engine Team
 * @version 1.0.0
 */

/* ============================================================================
   GLOBAL STYLES
   ============================================================================ */

:root {
  /* Team Colors */
  --color-home: #4A90E2;          /* Blue */
  --color-away: #FF6B9D;          /* Pink */
  
  /* Pitch Colors */
  --color-pitch: #2E7D32;         /* Grass green */
  --color-pitch-markings: white;
  --color-pitch-border: #1B5E20;
  
  /* Zone Colors */
  --color-zone-1: rgba(255, 107, 107, 0.3);  /* Red tint - Defense */
  --color-zone-2: rgba(255, 234, 167, 0.3);  /* Yellow tint - Midfield */
  --color-zone-3: rgba(168, 218, 220, 0.3);  /* Cyan tint - Attack */
  --color-zone-4: rgba(171, 235, 198, 0.3);  /* Green tint - Box */
  
  /* UI Colors */
  --color-primary: #4A90E2;
  --color-danger: #E74C3C;
  --color-success: #27AE60;
  --color-bg: #1A1A2E;
  --color-bg-light: #16213E;
  --color-text: #EAEAEA;
  --color-text-dim: #A0A0A0;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.header {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #4A90E2, #FF6B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.connection-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  transition: all 0.3s ease;
}

.connection-status.connected {
  background: rgba(39, 174, 96, 0.2);
  color: #2ECC71;
}

/* ============================================================================
   CONTAINER
   ============================================================================ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* ============================================================================
   CONTROL PANEL
   ============================================================================ */

.control-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: linear-gradient(135deg, #7F8C8D, #5D6D7E);
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(127, 140, 141, 0.4);
}

/* Team Selection UI */
.team-selection {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.team-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-selector label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-dropdown {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.team-dropdown:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-primary);
}

.team-dropdown:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.team-dropdown:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.team-dropdown option {
  background: var(--color-bg-light);
  color: var(--color-text);
  padding: 0.5rem;
}

.vs-separator {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  text-align: center;
  align-self: center;
  padding: 0.8rem 1rem;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(74, 144, 226, 0.3);
}

.match-info {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.info-item {
  display: flex;
  gap: 0.5rem;
}

.info-item .label {
  color: var(--color-text-dim);
  font-weight: 600;
}

/* ============================================================================
   SCOREBOARD
   ============================================================================ */

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

.team {
  text-align: center;
}

.home-team {
  color: var(--color-home);
}

.away-team {
  color: var(--color-away);
}

.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.team-score {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.match-clock {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.time {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2ECC71;
  font-family: 'Courier New', monospace;
}

.phase {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

/* ============================================================================
   MATCH TRACKER
   ============================================================================ */

.match-tracker {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tracker-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tracker-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tracker-content {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  min-height: 60px;
  align-items: center;
}

.tracker-content::-webkit-scrollbar {
  height: 6px;
}

.tracker-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.tracker-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.tracker-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.tracker-empty {
  color: var(--color-text-dim);
  font-style: italic;
  text-align: center;
  width: 100%;
  padding: 1rem;
}

.tracker-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 70px;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.tracker-event:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.tracker-event.home {
  border-left: 3px solid var(--color-home);
}

.tracker-event.away {
  border-left: 3px solid var(--color-away);
}

.tracker-event.goal {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.3);
}

.tracker-event.goal:hover {
  background: rgba(46, 204, 113, 0.25);
}

.tracker-event-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.tracker-event-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: 'Courier New', monospace;
}

.tracker-event-type {
  font-size: 0.65rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* ============================================================================
   FOOTBALL PITCH
   ============================================================================ */

.pitch-container {
  margin-bottom: 2rem;
}

.pitch-wrapper {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 1;  /* Standard pitch ratio */
  background: linear-gradient(to bottom, #2E7D32 0%, #1B5E20 100%);
  border: 3px solid var(--color-pitch-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Pitch Markings */
.pitch-marking {
  position: absolute;
  border: 2px solid var(--color-pitch-markings);
  opacity: 0.8;
}

.halfway-line {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  transform: translateX(-50%);
}

.center-circle {
  left: 50%;
  top: 50%;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.center-spot {
  left: 50%;
  top: 50%;
  width: 1%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-pitch-markings);
  transform: translate(-50%, -50%);
}

/* Penalty Areas - Left */
.penalty-box-left {
  left: 0;
  top: 20%;
  width: 16%;
  height: 60%;
}

.goal-box-left {
  left: 0;
  top: 35%;
  width: 8%;
  height: 30%;
}

.penalty-spot-left {
  left: 12%;
  top: 50%;
  width: 1%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-pitch-markings);
  transform: translateY(-50%);
}

.penalty-arc-left {
  left: 10%;
  top: 50%;
  width: 10%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

/* Penalty Areas - Right */
.penalty-box-right {
  right: 0;
  top: 20%;
  width: 16%;
  height: 60%;
}

.goal-box-right {
  right: 0;
  top: 35%;
  width: 8%;
  height: 30%;
}

.penalty-spot-right {
  right: 12%;
  top: 50%;
  width: 1%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-pitch-markings);
  transform: translateY(-50%);
}

.penalty-arc-right {
  right: 10%;
  top: 50%;
  width: 10%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(50%, -50%);
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* Corner Arcs */
.corner-arc {
  width: 3%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.corner-top-left {
  left: 0;
  top: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner-top-right {
  right: 0;
  top: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.corner-bottom-left {
  left: 0;
  bottom: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.corner-bottom-right {
  right: 0;
  bottom: 0;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Goals */
.goal {
  position: absolute;
  top: 40%;
  width: 2%;
  height: 20%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.goal-left {
  left: -2%;
}

.goal-right {
  right: -2%;
}

/* ============================================================================
   ZONE OVERLAYS (Chapter 7 - AC-1: Zone Boundaries)
   ============================================================================ */

.zone-overlay {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.zone-1 {
  left: 0;
  width: 25%;
  background: var(--color-zone-1);
}

.zone-2 {
  left: 25%;
  width: 25%;
  background: var(--color-zone-2);
}

.zone-3 {
  left: 50%;
  width: 25%;
  background: var(--color-zone-3);
}

.zone-4 {
  left: 75%;
  width: 25%;
  background: var(--color-zone-4);
}

.zone-overlay.active {
  opacity: 0.8;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.zone-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zone-overlay.active .zone-label {
  opacity: 1;
}

/* ============================================================================
   SVG ANIMATION OVERLAY (Chapter 7 - AC-1, AC-2, AC-3)
   ============================================================================ */

.pitch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* AC-2: Animation Loop - Line drawing animation */
@keyframes draw-line {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.animate-draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-line 0.8s ease-out forwards;
}



/* ============================================================================
   BALL POSITION INDICATOR
   ============================================================================ */

.ball {
  position: absolute;
  font-size: 1.5rem;
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  z-index: 20;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
  animation: ball-pulse 1.5s ease-in-out infinite;
}

@keyframes ball-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* AC-4: Goal Flash Animation */
@keyframes goal-flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
    filter: brightness(2) saturate(2);
  }
  100% {
    opacity: 1;
  }
}

.goal-flash {
  animation: goal-flash 0.5s ease-in-out;
}

/* ============================================================================
   POSSESSION INDICATOR
   ============================================================================ */

.possession-indicator {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-align: center;
  z-index: 30;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.possession-text {
  font-size: 0.7rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.possession-team {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* ============================================================================
   CORNER KICK VIEW OVERLAY
   ============================================================================ */

.corner-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 10, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.corner-view-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.corner-view-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFD700;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.corner-flag-icon {
  font-size: 1.3rem;
}

.corner-team-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: none;
  font-weight: 500;
}

.corner-goal-svg {
  width: 82%;
  max-height: 62%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.corner-view-waiting {
  margin-top: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: cornerWaitPulse 1.6s ease-in-out infinite;
}

/* Corner outcome badge — shown when server result arrives */
.corner-outcome-badge {
  display: none;
  margin-top: 12px;
  padding: 7px 24px;
  border-radius: 30px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
}

.corner-outcome-badge.show {
  display: block;
  animation: cornerOutcomePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cornerOutcomePop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes cornerWaitPulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.9; }
}

/* ============================================================================
   SET PIECE OUTCOME PANEL (shared by corner & throw-in)
   ============================================================================ */

.set-piece-outcome-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 6, 3, 0.90);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.set-piece-outcome-panel.show {
  opacity: 1;
  pointer-events: all;
}

.set-piece-outcome-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 40px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.12);
  max-width: 88%;
  animation: outcomePanelIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.set-piece-outcome-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #FFD700;
  opacity: 0.85;
}

.set-piece-outcome-text {
  font-size: 1.3rem;
  font-weight: 900;
  color: white;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.45;
  text-shadow: 0 3px 18px rgba(0,0,0,1), 0 0 40px rgba(255,255,255,0.15);
}

@keyframes outcomePanelIn {
  from { transform: scale(0.5) translateY(40px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

/* ============================================================================
   THROW-IN VIEW OVERLAY
   ============================================================================ */

.throw-in-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 14, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.throw-in-view-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.throw-in-view-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7DF9FF;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.throw-in-icon {
  font-size: 1.3rem;
}

.throw-in-view-title {
  letter-spacing: 3px;
}

.throw-in-team-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: none;
  font-weight: 500;
}

.throw-in-pitch-svg {
  width: 82%;
  max-height: 62%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.throw-in-waiting {
  margin-top: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: cornerWaitPulse 1.6s ease-in-out infinite;
}

/* ============================================================================
   FREE KICK VIEW OVERLAY
   ============================================================================ */

.free-kick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 28, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.free-kick-view-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.free-kick-view-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFD700;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.free-kick-icon {
  font-size: 1.3rem;
}

.free-kick-view-title {
  letter-spacing: 3px;
}

.free-kick-team-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: none;
  font-weight: 500;
}

.free-kick-pitch-svg {
  width: 82%;
  max-height: 62%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.free-kick-waiting {
  margin-top: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: cornerWaitPulse 1.6s ease-in-out infinite;
}

/* ============================================================================
   GOAL ANIMATION OVERLAY
   ============================================================================ */

.goal-animation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.3s ease-out;
}

.goal-animation-overlay.show {
  display: flex;
}

.goal-animation-content {
  text-align: center;
  z-index: 101;
  animation: goalPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.goal-text {
  font-size: 5rem;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
               0 0 40px rgba(255, 215, 0, 0.6),
               0 0 60px rgba(255, 215, 0, 0.4);
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
  animation: goalTextPulse 1s ease-in-out infinite;
}

.goal-team {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.goal-score {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.9;
}

/* Fireworks Container */
.fireworks-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: fireworkExplode 1s ease-out forwards;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes goalPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes goalTextPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes fireworkExplode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* ============================================================================
   PITCH LEGEND
   ============================================================================ */

.pitch-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   STATISTICS
   ============================================================================ */

.statistics {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.statistics h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================================
   EVENT FEED
   ============================================================================ */

.event-feed {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-feed h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.events-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom Scrollbar */
.events-container::-webkit-scrollbar {
  width: 8px;
}

.events-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.events-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.events-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.event-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-dim);
}

.event-item {
  display: grid;
  grid-template-columns: 60px 40px 1fr;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.event-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.event-goal {
  border-left-color: #2ECC71;
}

.event-corner {
  border-left-color: #F39C12;
}

.event-foul {
  border-left-color: #E74C3C;
}

.event-throw_in {
  border-left-color: #00E5FF;
}

.event-red_card {
  border-left-color: #C0392B;
  background: rgba(192, 57, 43, 0.1);
}

.event-time {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2ECC71;
  font-family: 'Courier New', monospace;
}

.event-icon {
  font-size: 1.5rem;
  text-align: center;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.event-type {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.event-comment {
  color: var(--color-text);
  font-size: 0.95rem;
}

.event-team {
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

.footer p {
  margin: 0.3rem 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* ============================================================================
   TAB NAVIGATION
   ============================================================================ */

.tab-nav {
  display: flex;
  gap: 0;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 2rem;
}

.tab-btn {
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--color-text-dim);
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

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

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: rgba(74, 144, 226, 0.07);
}

/* ============================================================================
   ODDS PANEL
   ============================================================================ */

.odds-panel {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.odds-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.odds-panel-header h2 {
  font-size: 1.2rem;
  margin: 0;
}

.odds-status-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(74, 144, 226, 0.15);
  border: 1px solid rgba(74, 144, 226, 0.4);
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.odds-status-badge.live {
  background: rgba(39, 174, 96, 0.15);
  border-color: rgba(39, 174, 96, 0.5);
  color: #2ECC71;
  animation: livePulse 2s ease-in-out infinite;
}

.odds-status-badge.suspended {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.4);
  color: #E74C3C;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
  50%        { box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15); }
}

.odds-placeholder {
  color: var(--color-text-dim);
  font-style: italic;
  text-align: center;
  padding: 2rem 1rem;
}

/* Odds layout grid */
.odds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.odds-market {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 1rem;
  transition: border-color 0.2s ease;
}

.odds-market:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.odds-market-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 0.75rem;
}

.odds-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.odds-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: default;
  transition: all 0.2s ease;
  min-width: 58px;
  flex: 1;
}

.odds-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.odds-chip.home {
  border-color: rgba(74, 144, 226, 0.3);
}

.odds-chip.away {
  border-color: rgba(255, 107, 157, 0.3);
}

.odds-chip.closed {
  opacity: 0.35;
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.odds-chip-label {
  font-size: 0.62rem;
  color: var(--color-text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.odds-chip-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.odds-chip.closed .odds-chip-value {
  text-decoration: line-through;
  font-size: 0.85rem;
}

.market-closed-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #E74C3C;
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ============================================================================
   SCHEDULE PANEL
   ============================================================================ */

.schedule-panel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.schedule-panel[hidden] {
  display: none;
}

.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.schedule-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.fixtures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.2rem;
}

.fixtures-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-dim);
  padding: 3rem;
  font-style: italic;
}

.fixture-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.2rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.fixture-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 144, 226, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.fixture-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fixture-id {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fixture-kickoff {
  font-size: 0.75rem;
  color: #FFD700;
  font-weight: 600;
}

.fixture-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  text-align: center;
}

.fixture-team-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.fixture-team-name.home {
  color: var(--color-home);
  text-align: right;
}

.fixture-team-name.away {
  color: var(--color-away);
  text-align: left;
}

.fixture-vs {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-dim);
  padding: 0 0.3rem;
}

.fixture-odds {
  display: flex;
  gap: 0.4rem;
}

.fixture-odds .odds-chip {
  min-width: 0;
  flex: 1;
}

/* ============================================================================
   RESPONSIVE (additions)
   ============================================================================ */

@media (max-width: 768px) {
  .tab-nav {
    padding: 0 1rem;
  }
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  .odds-grid {
    grid-template-columns: 1fr;
  }
  .fixtures-grid {
    grid-template-columns: 1fr;
  }
  .schedule-panel {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .scoreboard {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .controls {
    flex-direction: column;
  }
  
  .team-selection {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .vs-separator {
    display: none;
  }
  
  .match-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .zone-label {
    font-size: 0.6rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BET PANEL  (Tab 3 — Place Bet)
   ═══════════════════════════════════════════════════════════════════════════ */

.bet-panel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
}

.bet-panel[hidden] { display: none !important; }

.bet-panel-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */

.bet-sidebar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 1rem;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.bet-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.8rem;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bet-sidebar-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.league-count-badge {
  font-size: 0.7rem;
  background: rgba(74,144,226,0.18);
  color: var(--color-primary);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

.bet-match-list {
  overflow-y: auto;
  flex: 1;
}

.bet-loading {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

/* Individual match card in sidebar */
.bet-match-card {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.15s, border-left 0.15s;
  border-left: 3px solid transparent;
}

.bet-match-card:hover {
  background: rgba(255,255,255,0.06);
}

.bet-match-card.selected {
  background: rgba(74,144,226,0.10);
  border-left-color: var(--color-primary);
}

.bet-match-card.finished {
  opacity: 0.5;
  cursor: default;
}

.bmc-teams {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
}

.bmc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.bmc-score {
  font-size: 1rem;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: 1px;
}

.bmc-phase {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.bmc-phase.phase-1h  { background: rgba(46,204,113,0.20); color: #2ECC71; }
.bmc-phase.phase-ht  { background: rgba(255,165,0,0.20);  color: orange;  }
.bmc-phase.phase-2h  { background: rgba(46,204,113,0.20); color: #2ECC71; }
.bmc-phase.phase-ft  { background: rgba(255,255,255,0.12); color: var(--color-text-dim); }
.bmc-phase.phase-pre { background: rgba(255,255,255,0.08); color: var(--color-text-dim); }

.bmc-time {
  font-size: 0.7rem;
  color: var(--color-text-dim);
}

/* ── Main area ──────────────────────────────────────────────────────────── */

.bet-main {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Odds board inside bet panel */
.bet-odds-container {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  min-height: 120px;
}

.bet-select-msg {
  color: var(--color-text-dim);
  text-align: center;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.bet-odds-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
}

.bet-odds-match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.bet-odds-match-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.bet-odds-live-badge {
  font-size: 0.7rem;
  background: rgba(231,76,60,0.20);
  color: #E74C3C;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  animation: pulseTag 1.5s ease infinite;
}

.bet-odds-markets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.bet-market-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.bet-market-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 0.65rem;
}

.bet-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Selectable odds chip */
.odds-chip.selectable {
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.odds-chip.selectable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(74,144,226,0.30);
}

.odds-chip.selectable.chip-selected {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

.odds-chip.chip-closed {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Bet slip ───────────────────────────────────────────────────────────── */

.bet-slip-container {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(74,144,226,0.30);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}

.bet-slip-container[hidden] { display: none !important; }

.bet-slip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.bet-slip-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.btn-icon {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--color-text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  transition: background 0.15s;
}

.btn-icon:hover { background: rgba(231,76,60,0.20); color: #E74C3C; }

.bet-slip-selection {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.slip-match-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}

.slip-market-name {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

.slip-odds-badge {
  font-size: 1.1rem;
  font-weight: 900;
  color: #FFD700;
  background: rgba(255,215,0,0.10);
  padding: 0.2rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.25);
  white-space: nowrap;
}

/* Stake row */
.stake-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.stake-row label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-dim);
}

.stake-quick {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.stake-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  transition: background 0.15s;
}

.stake-btn:hover {
  background: rgba(74,144,226,0.20);
  border-color: var(--color-primary);
}

#stakeInput {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  outline: none;
}

#stakeInput:focus {
  border-color: var(--color-primary);
}

/* Returns row */
.returns-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.returns-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: #2ECC71;
}

/* Place bet CTA */
.btn.btn-place-bet {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2ECC71, #27AE60);
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn.btn-place-bet:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn.btn-place-bet:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bet-message {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  text-align: center;
  min-height: 1.2em;
}
.bet-message.success { color: #2ECC71; }
.bet-message.error   { color: #E74C3C; }
.bet-message.warning { color: #FFD700; }

/* ── My Bets ────────────────────────────────────────────────────────────── */

.my-bets-container {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}

.my-bets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.my-bets-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.bet-count-badge {
  background: rgba(74,144,226,0.20);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.no-bets-placeholder {
  text-align: center;
  padding: 1.5rem;
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

/* Individual bet row */
.bet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bet-item:last-child { border-bottom: none; }

.bet-item-status {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  margin-top: 0.1rem;
}

.bet-item-status.pending { background: rgba(255,215,0,0.15); color: #FFD700; }
.bet-item-status.won     { background: rgba(46,204,113,0.15); color: #2ECC71; }
.bet-item-status.lost    { background: rgba(231,76,60,0.15);  color: #E74C3C; }

.bet-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bet-item-selection {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.bet-item-detail {
  font-size: 0.72rem;
  color: var(--color-text-dim);
}

.bet-item-odds {
  font-size: 0.88rem;
  font-weight: 900;
  color: #FFD700;
  white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .bet-panel-layout {
    grid-template-columns: 1fr;
  }
  .bet-sidebar {
    position: static;
    max-height: 300px;
  }
  .bet-odds-markets {
    grid-template-columns: 1fr;
  }
}
