/* ==========================================================================
   FC WESTBAY - STYLESHEET & FOOTBALL HUD DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - FC Westbay Identity */
  --color-primary: #1555a6;
  --color-primary-light: #2575dc;
  --color-primary-dark: #0a2d6c;
  --color-accent-cyan: #00e5ff;
  --color-accent-cyan-dim: rgba(0, 229, 255, 0.15);
  --color-accent-gold: #f59e0b;
  --color-accent-gold-light: #fbbf24;
  --color-accent-gold-dim: rgba(245, 158, 11, 0.15);

  /* Neutrals & Surfaces */
  --bg-dark-0: #040814;
  --bg-dark-1: #070f26;
  --bg-dark-2: #0d1b3e;
  --bg-dark-3: #122554;
  --bg-card: rgba(13, 27, 62, 0.75);
  --bg-card-hover: rgba(18, 37, 84, 0.9);
  
  --border-glass: rgba(0, 229, 255, 0.22);
  --border-glass-gold: rgba(245, 158, 11, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --text-white: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  /* Typography - Đảm bảo 100% tiếng Việt chuẩn không lỗi font */
  --font-main: 'Be Vietnam Pro', 'Montserrat', sans-serif;
  --font-heading: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  --font-tech: 'Be Vietnam Pro', 'Montserrat', sans-serif;

  /* Elevation & Shadows */
  --shadow-glow-cyan: 0 0 25px rgba(0, 229, 255, 0.25);
  --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark-0);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(21, 85, 166, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(0, 229, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(10, 45, 108, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #050b1a 0%, #03060f 100%);
  color: var(--text-white);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Top App Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 11, 26, 0.85);
  border-bottom: 1px solid var(--border-glass);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.club-crest-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.4));
  transition: transform 0.3s ease;
}

.brand-wrapper:hover .club-crest-img {
  transform: scale(1.06) rotate(-2deg);
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 1.2px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title span {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-accent-cyan);
  text-transform: uppercase;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 27, 62, 0.65);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  min-width: auto;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-tab-btn i {
  font-size: 0.88rem;
}

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

.nav-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1c6dd0 100%);
  box-shadow: 0 2px 14px rgba(21, 85, 166, 0.5);
}

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

.sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.sync-badge {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
}

.badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.badge-cached {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-sync:hover {
  background: rgba(0, 229, 255, 0.18);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-1px);
}

.btn-sync.syncing i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Main Container */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* Tab Sections */
.tab-content-section {
  display: none;
  animation: fadeIn 0.35s ease;
}

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

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

/* ==========================================================================
   VIEW 1: TEAM DASHBOARD STYLES
   ========================================================================== */

/* Hero Banner */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, rgba(21, 85, 166, 0.45) 0%, rgba(10, 30, 75, 0.75) 60%, rgba(7, 15, 38, 0.95) 100%);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #ffffff 0%, #c4e0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 600px;
}

.hero-quick-action {
  display: flex;
  gap: 12px;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--color-accent-cyan) 0%, #0284c7 100%);
  color: #040814;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.6);
}

/* KPI Stat Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.kpi-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.kpi-card:hover {
  border-color: var(--border-glass);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-cyan);
}

.kpi-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: rgba(0, 229, 255, 0.1);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.kpi-card.gold-card .kpi-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-accent-gold);
  border-color: rgba(245, 158, 11, 0.25);
}

.kpi-info .kpi-value {
  font-family: var(--font-tech);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 4px;
}

.kpi-info .kpi-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Leaderboards Section */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.section-title i {
  color: var(--color-accent-cyan);
}

.leaderboards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

.leaderboard-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

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

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title.gold { color: var(--color-accent-gold); }
.panel-title.cyan { color: var(--color-accent-cyan); }
.panel-title.blue { color: #60a5fa; }

.leader-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leader-row:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateX(4px);
}

.leader-row.rank-1 {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.03) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.rank-badge {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.rank-1 .rank-badge {
  background: var(--color-accent-gold);
  color: #040814;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.player-meta {
  flex: 1;
}

.player-meta .p-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.player-meta .p-no {
  font-size: 0.8rem;
  color: var(--color-accent-cyan);
  font-family: var(--font-tech);
  font-weight: 700;
}

.player-meta .p-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.p-stat {
  text-align: right;
}

.p-stat .stat-big {
  font-family: var(--font-tech);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-big.color-cyan { color: var(--color-accent-cyan); }
.stat-big.color-gold { color: var(--color-accent-gold); }

.p-stat .stat-unit {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   VIEW 2: PLAYER METRICS & BIOMECHANICAL HUD STAGE
   ========================================================================== */

.hud-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

/* Stage Container */
.hud-stage-wrapper {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.hud-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(6, 12, 28, 0.95);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  margin-bottom: 0;
}

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

.hud-player-badge-no {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 2px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.hud-header-info h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.hud-header-info p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.hud-nav-buttons {
  display: flex;
  gap: 8px;
}

.hud-btn-nav {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn-nav:hover {
  background: var(--color-primary);
  border-color: var(--color-accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* The Core HUD Interactive Stage Wrapper */
.hud-stage-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
}

.hud-stage-canvas-area {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #040814;
  border: none;
}

/* Corner brackets for tactical HUD stage */
.hud-stage-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 15;
  pointer-events: none;
}
.hud-stage-corner.corner-tl {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--color-accent-cyan);
  border-left: 3px solid var(--color-accent-cyan);
}
.hud-stage-corner.corner-tr {
  top: -1px;
  right: -1px;
  border-top: 3px solid var(--color-accent-cyan);
  border-right: 3px solid var(--color-accent-cyan);
}
.hud-stage-corner.corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 3px solid var(--color-accent-cyan);
  border-left: 3px solid var(--color-accent-cyan);
}
.hud-stage-corner.corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 3px solid var(--color-accent-cyan);
  border-right: 3px solid var(--color-accent-cyan);
}

/* Background Soccer Player Photo (Ưu tiên fit chiều cao 100%, mặt nạ mờ viền 2 bên) */
.hud-bg-photo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  opacity: 1;
}

/* Dark Tactical Vignette Overlay (Tâm ảnh 0-70% hoàn toàn trong suốt, 80-100% bắt đầu chuyển tối) */
.hud-vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, transparent 70%, rgba(4, 8, 20, 0.4) 80%, rgba(4, 8, 20, 0.95) 100%);
  pointer-events: none;
}

/* SVG Overlay Layer for Skeleton, Nodes, and Leader Lines */
.hud-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Animated Leader Line Dash */
.hud-animated-line {
  stroke-dasharray: 6, 4;
  animation: hudLineDash 1.2s linear infinite;
}

@keyframes hudLineDash {
  to {
    stroke-dashoffset: -20;
  }
}

.hud-node-pulse {
  animation: pulseRadius 1.8s ease-out infinite;
}

@keyframes pulseRadius {
  0% {
    r: 5;
    opacity: 0.9;
  }
  100% {
    r: 16;
    opacity: 0;
  }
}

.hud-spin-ring {
  transform-origin: center;
  animation: spinRing 8s linear infinite;
}

@keyframes spinRing {
  100% { transform: rotate(360deg); }
}

/* Floating Futuristic Metric HUD Cards Container (Desktop Overlay) */
.hud-metrics-deck {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

/* Floating Futuristic Metric HUD Cards */
.hud-floating-card {
  position: absolute;
  pointer-events: auto;
  z-index: 20;
  background: rgba(7, 15, 38, 0.92);
  border: 1px solid var(--color-accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25), inset 0 0 15px rgba(0, 229, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 10px 16px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Bỏ toàn bộ trang trí góc chữ "L" ở các ô con bên trong */
.hud-floating-card::before,
.hud-floating-card::after {
  display: none !important;
}

/* 3 ô vuông chỉ số bên trái có width bằng nhau 100%, thẳng hàng ngay ngắn */
#hudCardHead,
#hudCardChest,
#hudCardLeg {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  border-radius: 12px;
}

#hudCardHead {
  top: 18px;
  left: 24px;
  border-color: var(--color-accent-cyan);
}

#hudCardChest {
  top: 168px;
  left: 24px;
  border-color: #38bdf8;
}

/* Card 3: Amber Shooting / Goals Theme */
#hudCardLeg,
.hud-floating-card.card-amber {
  top: 318px;
  left: 24px;
  bottom: auto;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(22, 16, 8, 0.92);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25), inset 0 0 15px rgba(245, 158, 11, 0.08);
  border-radius: 12px;
}

.hud-floating-card.card-amber .hud-card-tag {
  color: #f59e0b;
}

/* Card 4: Radar Chart Card (Nhỏ gọn, bo tròn mềm mại) */
#hudCardRadar {
  top: 16px;
  right: 20px;
  width: 240px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 10px 8px;
  border-radius: 12px;
}

.hud-radar-title {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.74rem;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.hud-ovr-badge {
  position: absolute;
  top: 36px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #facc15;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.5);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25);
  text-shadow: 0 0 6px rgba(250, 204, 21, 0.4);
  z-index: 5;
  pointer-events: none;
  line-height: 1;
}

.hud-ovr-badge span {
  font-size: 0.90rem;
  font-weight: 900;
  color: #ffffff;
}

.radar-svg-container {
  width: 100%;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
}

.radar-svg-elem {
  width: 100%;
  height: 100%;
  overflow: visible !important; /* Đảm bảo 100% không bao giờ bị cắt chữ */
}

.radar-grid-poly {
  fill: none;
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 1;
}

.radar-grid-outer {
  stroke: rgba(0, 229, 255, 0.4);
}

.radar-axis-line {
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.radar-data-polygon {
  stroke: #00e5ff;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
  transition: all 0.4s ease;
}

.radar-data-dot {
  fill: #ffffff;
  stroke: #00e5ff;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 4px #00e5ff);
}

.radar-axis-code {
  font-family: var(--font-tech), sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  fill: #94a3b8;
  letter-spacing: 0.8px;
  pointer-events: none;
  user-select: none;
}

.radar-axis-val {
  font-family: var(--font-tech), sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  fill: #00e5ff;
  letter-spacing: 0.5px;
  filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.4));
  pointer-events: none;
  user-select: none;
}

.hud-contribution-badge {
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 2px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Card Content Typography */
.hud-card-tag {
  font-family: var(--font-tech);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-accent-cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-icon {
  font-size: 0.95rem;
}

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

.hud-stat-headline {
  font-family: var(--font-tech);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.gold-stat {
  color: #fbbf24;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.hud-stat-subtext {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-top: 3px;
  font-weight: 500;
}

.hud-stat-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.hud-stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, var(--color-accent-cyan) 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.6s ease;
}

/* Bottom Bar: Transfer Value & Fun Comment */
.hud-bottom-bar {
  background: rgba(5, 10, 24, 0.96);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-top: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hud-transfer-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.hud-transfer-inner {
  display: flex;
  flex-direction: column;
}

.hud-transfer-label {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 2px;
}

.hud-transfer-val {
  font-family: var(--font-tech);
  font-size: 2.1rem;
  font-weight: 900;
  color: #f59e0b;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
  line-height: 1;
}

.hud-transfer-tier {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.8px;
  border: 1px solid rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.18);
  color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
  white-space: nowrap;
}

.hud-fun-comment-box {
  flex: 1;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3.5px solid var(--color-accent-cyan);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.04);
}

.fun-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hud-fun-comment-text {
  font-size: 0.94rem;
  font-style: italic;
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.4;
}

/* Position Badges */
.hud-pos-badge, .roster-pos-pill {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pos-fw { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.pos-mf { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.pos-df { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.pos-gk { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.pos-ref { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }

/* Right Sidebar: Player Roster & Filters */
.hud-sidebar-roster {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 700px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.roster-header {
  margin-bottom: 14px;
}

.roster-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

/* Search Box */
.roster-search-box {
  position: relative;
  margin-bottom: 12px;
}

.roster-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.roster-search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: rgba(5, 11, 26, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.roster-search-input:focus {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Position Filter Pills */
.pos-filters-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.pos-filter-pill {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.pos-filter-pill:hover,
.pos-filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-accent-cyan);
  color: #ffffff;
}

/* Sort Dropdown */
.roster-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.roster-sort-select {
  background: rgba(5, 11, 26, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--color-accent-cyan);
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  outline: none;
}

/* Roster Scrollable Cards List */
.roster-cards-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.roster-cards-scroll::-webkit-scrollbar {
  width: 5px;
}

.roster-cards-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.roster-cards-scroll::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}

.roster-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roster-card:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--border-glass);
  transform: translateY(-2px);
}

.roster-card.active {
  background: linear-gradient(135deg, rgba(21, 85, 166, 0.4) 0%, rgba(0, 229, 255, 0.15) 100%);
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.roster-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.roster-no {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-accent-cyan);
}

.roster-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.roster-nick {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.roster-key-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.k-stat .k-val {
  display: block;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.k-stat .k-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   VIEW 3: MATCHES & FIXTURES STYLES
   ========================================================================== */

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease;
}

.match-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-cyan);
}

.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.match-game-id {
  font-family: var(--font-tech);
  font-weight: 700;
  color: var(--color-accent-gold);
  letter-spacing: 1px;
}

.match-score-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 16px;
}

.team-side {
  flex: 1;
  text-align: center;
}

.team-badge {
  display: inline-block;
  font-family: var(--font-tech);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.yellow-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.white-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.team-title {
  font-weight: 700;
  font-size: 1rem;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.score-num {
  font-family: var(--font-tech);
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
}

.score-num.winner {
  color: var(--color-accent-cyan);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
}

.score-sep {
  font-size: 1.8rem;
  color: var(--text-muted);
}

.match-scorers-list {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.scorers-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scorers-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scorer-chip {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: #e0f2fe;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* App Toast Notification */
.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0d1b3e;
  border: 1px solid var(--color-accent-cyan);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 100001;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.app-toast.warning {
  border-color: var(--color-accent-gold);
  box-shadow: var(--shadow-glow-gold);
}

/* Floating Quick Go-To-Top Button on Mobile for HUD */
.mobile-hud-scroll-top {
  display: none;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 8, 20, 0.9);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--color-accent-cyan);
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
  /* Floating Quick Go-To-Top Button on Mobile */
  .mobile-hud-scroll-top {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 22px;
    right: 18px;
    z-index: 999;
    background: rgba(4, 12, 32, 0.94);
    border: 1px solid var(--color-accent-cyan);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.45), inset 0 0 10px rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-family: var(--font-tech);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    padding: 9px 15px;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-hud-scroll-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-hud-scroll-top:active {
    transform: scale(0.94);
  }

  .mobile-hud-scroll-top i {
    color: var(--color-accent-cyan);
    font-size: 0.85rem;
    animation: bounceUp 1.6s infinite ease-in-out;
  }

  @keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }

  .hud-page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hud-stage-wrapper {
    display: flex;
    flex-direction: column;
  }
  .hud-stage-canvas-wrapper {
    display: contents;
  }
  .hud-stage-header {
    order: 1;
  }
  .hud-stage-canvas-area {
    order: 2;
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
  }
  .hud-bottom-bar {
    order: 3;
    border-radius: 0;
  }
  .hud-metrics-deck {
    order: 4;
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: rgba(5, 10, 24, 0.95);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .hud-floating-card {
    position: static;
    width: 100%;
    min-width: 0;
    pointer-events: auto;
    inset: auto;
  }
  #hudCardHead {
    grid-column: 1;
  }
  #hudCardChest {
    grid-column: 2;
  }
  #hudCardLeg {
    grid-column: 1 / -1;
  }
  #hudCardRadar {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 4px auto 0;
    width: 100%;
  }
  .hud-sidebar-roster {
    height: 520px;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    padding: 12px 10px;
  }
  .site-header {
    position: relative !important;
    top: auto;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px;
  }
  .brand-wrapper {
    justify-content: center;
  }
  .nav-tabs {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 4px 2px 6px;
  }
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .nav-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  .header-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .btn-sync,
  .btn-admin-login,
  .btn-admin-panel {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .hero-banner {
    padding: 20px 16px;
    margin-bottom: 20px;
  }
  .hero-text h1 {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  .hero-quick-action {
    width: 100%;
  }
  .btn-primary-action {
    width: 100%;
    justify-content: center;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
  }
  .kpi-card {
    padding: 12px 14px;
    gap: 10px;
  }
  .kpi-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .kpi-info .kpi-value {
    font-size: 1.6rem;
  }
  .kpi-info .kpi-label {
    font-size: 0.72rem;
  }
  .kpi-card:last-child {
    grid-column: 1 / -1;
  }
  .leaderboards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* Stage Mobile Styles */
  .hud-stage-header {
    padding: 10px 14px;
  }
  .hud-header-left {
    gap: 10px;
  }
  .hud-player-badge-no {
    font-size: 1.4rem;
    padding: 2px 10px;
  }
  .hud-header-info h2 {
    font-size: 1.25rem;
  }
  .hud-header-info p {
    font-size: 0.8rem;
  }
  .hud-stage-canvas-area {
    height: 360px;
  }
  .hud-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 0;
  }
  .hud-transfer-box {
    justify-content: space-between;
  }
  .hud-transfer-val {
    font-size: 1.5rem;
  }
  .hud-fun-comment-box {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .hud-metrics-deck {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .hud-floating-card {
    padding: 10px 12px;
  }
  .hud-card-tag {
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
  }
  .hud-stat-headline {
    font-size: 1.6rem;
  }
  .hud-stat-subtext {
    font-size: 0.76rem;
  }
  #hudCardRadar {
    max-width: 280px;
  }
  .hud-sidebar-roster {
    height: 480px;
    padding: 16px 14px;
  }
  .pos-filters-row {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .pos-filters-row::-webkit-scrollbar {
    display: none;
  }
  .pos-filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 400px) {
  .hud-metrics-deck {
    gap: 6px;
    padding: 8px;
  }
  .hud-floating-card {
    padding: 8px 10px;
  }
  .hud-card-tag {
    font-size: 0.62rem;
  }
  .hud-stat-headline {
    font-size: 1.45rem;
  }
}

/* ==========================================================================
   FC WESTBAY - MATCHDAY, ROLL-CALL & TACTICAL PITCH DESIGN SYSTEM
   ========================================================================== */

/* 1. Matchday Hero & Countdown Banner */
.matchday-banner {
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.9) 0%, rgba(7, 15, 38, 0.95) 100%);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 229, 255, 0.05);
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.matchday-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.matchday-banner-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.matchday-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.match-type-pill {
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-internal {
  background: rgba(0, 229, 255, 0.15);
  color: var(--color-accent-cyan, #00e5ff);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.pill-friendly {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-accent-gold, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.countdown-live-badge {
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.countdown-live-badge.live-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
}

.matchday-badge-row .mcard-pitch-format {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--color-accent-cyan, #00e5ff);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  box-sizing: border-box;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

.pulse-dot.green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.pulse-dot.yellow {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.pulse-dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

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

.matchday-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.3;
}

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

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.meta-icon {
  font-size: 1.6rem;
  color: var(--color-accent-cyan, #00e5ff);
  width: 30px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.meta-lbl {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.meta-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

/* Match Header RSVP 4-Numbers Group */
.meta-item-rsvp {
  display: flex;
  align-items: center;
}

.match-rsvp-badge-group {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
}

.rsvp-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  user-select: none;
  cursor: default;
  transition: transform 0.15s ease;
}

.rsvp-num-badge:hover {
  transform: translateY(-1px);
}

.rsvp-num-badge.rsvp-num-going {
  background: rgba(16, 185, 129, 0.22);
  border: 1.5px solid #10b981;
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.rsvp-num-badge.rsvp-num-maybe {
  background: rgba(245, 158, 11, 0.22);
  border: 1.5px solid #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.rsvp-num-badge.rsvp-num-busy {
  background: rgba(239, 68, 68, 0.22);
  border: 1.5px solid #ef4444;
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.rsvp-num-badge.rsvp-num-pending {
  background: rgba(100, 116, 139, 0.22);
  border: 1.5px solid #64748b;
  color: #cbd5e1;
  box-shadow: 0 0 10px rgba(100, 116, 139, 0.2);
}

.matchday-note-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--color-accent-gold, #f59e0b);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fef08a;
  line-height: 1.4;
}

.note-icon {
  color: var(--color-accent-gold, #f59e0b);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Countdown Column */
.matchday-timer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  height: 100%;
}

.countdown-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(6, 13, 33, 0.92) 0%, rgba(13, 27, 62, 0.78) 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 22px 20px 20px 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 24px rgba(0, 229, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.countdown-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-cyan, #00e5ff), transparent);
}

.cd-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-accent-cyan, #00e5ff);
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.countdown-boxes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cd-box {
  background: rgba(8, 17, 43, 0.94);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 64px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cd-box:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.5);
}

.cd-number {
  display: block;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

.cd-label {
  display: block;
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim, #94a3b8);
  letter-spacing: 0.8px;
  margin-top: 6px;
}

.cd-colon {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent-cyan, #00e5ff);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  margin: 0 1px;
}

.btn-edit-match {
  background: rgba(245, 158, 11, 0.06);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  color: var(--color-accent-gold, #f59e0b);
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-edit-match:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--color-accent-gold, #f59e0b);
  color: #fff;
  transform: translateY(-1px);
}

/* 2. Matchday Section Cards */
.matchday-section-card {
  background: var(--bg-card, rgba(13, 27, 62, 0.75));
  border: 1px solid var(--border-glass, rgba(0, 229, 255, 0.22));
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card, 0 10px 30px rgba(0, 0, 0, 0.5));
}

.section-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.top-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-action-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.3);
}

.btn-action-zalo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 104, 255, 0.45);
}

.btn-action-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
}

.btn-action-danger i {
  color: #ef4444;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.btn-action-danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
  transform: translateY(-1px);
}

.btn-action-danger:hover i {
  color: #ffffff;
  transform: scale(1.15);
}

.btn-primary-balance {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border: 1px solid #fef08a;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-primary-balance:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

/* 3. Attendance KPIs Bar */
.attendance-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.att-kpi-chip {
  background: rgba(7, 15, 38, 0.7);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid transparent;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 10px;
}

.att-kpi-chip i {
  font-size: 1.25rem;
}

.att-kpi-chip strong {
  font-family: var(--font-tech, 'Montserrat', sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
}

.att-kpi-chip.kpi-going {
  border-color: #10b981;
  color: #34d399;
}
.att-kpi-chip.kpi-going strong { color: #34d399; }

.att-kpi-chip.kpi-maybe {
  border-color: #f59e0b;
  color: #fbbf24;
}
.att-kpi-chip.kpi-maybe strong { color: #fbbf24; }

.att-kpi-chip.kpi-busy {
  border-color: #ef4444;
  color: #f87171;
}
.att-kpi-chip.kpi-busy strong { color: #f87171; }

.att-kpi-chip.kpi-pending {
  border-color: #64748b;
  color: #94a3b8;
}
.att-kpi-chip.kpi-pending strong { color: #cbd5e1; }

/* Filter & Search bar */
.rollcall-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-box-wrap .search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-dim, #94a3b8);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 2;
}

.rc-search-input {
  background: rgba(4, 8, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 10px 16px 10px 38px;
  font-size: 0.98rem;
  width: 320px;
  text-align: left;
  transition: all 0.2s ease;
}

.rc-search-input::placeholder {
  color: var(--text-muted, #64748b);
  text-align: left;
}

.rc-search-input:focus {
  outline: none;
  border-color: var(--color-accent-cyan, #00e5ff);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.status-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rollcall-filter-pill {
  background: rgba(7, 15, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim, #94a3b8);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rollcall-filter-pill:hover {
  background: rgba(18, 37, 84, 0.9);
  color: #fff;
}

.rollcall-filter-pill.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--color-accent-cyan, #00e5ff);
  color: var(--color-accent-cyan, #00e5ff);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

/* 4. Roll Call Cards Grid */
.rollcall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
}

.rollcall-grid::-webkit-scrollbar {
  width: 6px;
}
.rollcall-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.25);
  border-radius: 4px;
}

.rollcall-card {
  background: rgba(7, 15, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.rollcall-card:hover {
  background: rgba(13, 27, 62, 0.9);
  border-color: rgba(0, 229, 255, 0.3);
}

.rollcall-card.status-going {
  border-left: 3px solid #10b981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(7, 15, 38, 0.85) 100%);
}

.rollcall-card.status-maybe {
  border-left: 3px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(7, 15, 38, 0.85) 100%);
}

.rollcall-card.status-busy {
  border-left: 3px solid #ef4444;
  opacity: 0.65;
}

.rc-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rc-avatar-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(18, 37, 84, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rc-no {
  font-family: var(--font-tech, 'Montserrat', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.rc-pos-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-top: 3px;
}

.rc-info {
  flex: 1;
  min-width: 0;
}

.rc-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.rc-sub {
  font-size: 0.94rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 3px;
}

.rc-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.btn-rc {
  background: rgba(13, 27, 62, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim, #94a3b8);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-rc:hover {
  background: rgba(18, 37, 84, 1);
  color: #fff;
}

.btn-rc-going.active {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.btn-rc-maybe.active {
  background: #f59e0b;
  color: #0f172a;
  border-color: #d97706;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.btn-rc-busy.active {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.empty-rollcall-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 16px;
  color: var(--text-dim, #94a3b8);
}
.empty-rollcall-msg i {
  font-size: 2.2rem;
  margin-bottom: 10px;
  opacity: 0.6;
}

/* 5. Matchup Difference Header */
.matchup-header-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.matchup-diff-badge {
  background: rgba(13, 27, 62, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 8px 24px;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.matchup-diff-badge.balanced {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.matchup-diff-badge.moderate {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--color-accent-cyan, #00e5ff);
  color: var(--color-accent-cyan, #00e5ff);
}

.matchup-diff-badge.skewed {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
}

.matchup-diff-badge.capacity-alert {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3) !important;
  animation: pulse-warning 2s infinite ease-in-out;
}

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

.btn-primary-balance.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
  box-shadow: none !important;
}

/* 6. Tactical Duo Pitches Grid */
.tactical-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tactical-pitch-card {
  background: rgba(7, 15, 38, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.pitch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.team-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  display: inline-block;
}

.team-stats-snippet {
  font-size: 0.78rem;
  color: var(--text-dim, #94a3b8);
  margin-top: 3px;
}

.team-stats-snippet b {
  color: #ffffff;
}

/* Team Color Picker */
.team-color-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-picker-label {
  font-size: 0.74rem;
  color: var(--text-dim, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.color-picker-buttons {
  display: flex;
  gap: 6px;
}

.btn-team-color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-team-color:hover {
  transform: scale(1.2);
}

.btn-team-color.active {
  border-color: #ffffff;
  box-shadow: 0 0 10px #ffffff, inset 0 0 4px rgba(0, 0, 0, 0.5);
  transform: scale(1.15);
}

/* 7. Realistic Soccer Pitch Surface & Markings */
.pitch-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #174d25;
}

.pitch-surface {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 620px;
  margin: 0 auto;
  /* Alternating Lawn Stripes */
  background: repeating-linear-gradient(
    0deg,
    #174d25,
    #174d25 32px,
    #1e5e2e 32px,
    #1e5e2e 64px
  );
  overflow: hidden;
}

/* Stadium Markings Vector Layer */
.pitch-markings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Outer Boundary Line */
.pitch-boundary {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 3px;
}

/* Halfway Line */
.pitch-halfway-line {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%);
}

/* Center Circle (Vòng tròn giữa sân) */
.pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108px;
  height: 108px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Center Spot (Chấm phát bóng giữa sân) */
.pitch-center-spot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* 2 Khu Vực Cầu Môn 5m50 (Goal Area 2 đầu sân) */
.pitch-goal-area {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 6.5%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 1;
}
.pitch-goal-area.goal-area-top {
  top: 10px;
  border-top: none;
}
.pitch-goal-area.goal-area-bottom {
  bottom: 10px;
  border-bottom: none;
}

/* 2 Ô Chữ Nhật Vòng Cấm Địa 16m50 (Penalty Box) */
.pitch-penalty-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  height: 15.5%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 1;
}
.pitch-penalty-box.penalty-box-top {
  top: 10px;
  border-top: none;
}
.pitch-penalty-box.penalty-box-bottom {
  bottom: 10px;
  border-bottom: none;
}

/* 2 Chấm Penalty */
.pitch-penalty-spot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 1;
}
.pitch-penalty-spot.penalty-spot-top {
  top: 11%;
}
.pitch-penalty-spot.penalty-spot-bottom {
  bottom: 11%;
}

/* Đường chia vị trí hàng công, hàng tiền vệ và hàng hậu vệ (Đường đứt màu vàng) */
.pitch-tactical-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 0;
  border-top: 2px dashed #facc15;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
  filter: drop-shadow(0 0 3px rgba(250, 204, 21, 0.45));
}
.pitch-tactical-line.tactical-line-att {
  top: 25%; /* Hàng công: 25% phía trên sa bàn */
}
.pitch-tactical-line.tactical-line-def {
  top: 65%; /* Phân chia hàng tiền vệ và hàng hậu vệ */
}

/* Empty Pitch Notice */
.empty-pitch-notice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 2;
}
.empty-pitch-notice i {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.empty-pitch-notice p {
  font-size: 0.88rem;
  font-weight: 600;
}

/* 8. Tactical Pitch Player Node (Bố Cục 3 Dòng Căn Giữa) */
.pitch-player-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  z-index: 12;
  transition: transform 0.15s ease, filter 0.15s ease;
  touch-action: manipulation;
  text-align: center;
}

.pitch-player-node:active {
  cursor: grabbing;
}

/* Dòng 1: Vòng tròn số áo */
.player-jersey-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
  position: relative;
}

.disc-number {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

/* Dòng 2 & 3: Thông tin cầu thủ (pointer-events: none để loại trừ va chạm kéo thả vào text) */
.player-pitch-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3px;
  pointer-events: none;
  user-select: none;
}

/* Dòng 2: [Role] Tên Zalo (Hiển thị đầy đủ tên, không cắt ngắn ...) */
.pitch-role-name-row {
  background: rgba(4, 8, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  padding: 1px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.pitch-role-badge {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--color-accent-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 3px;
  padding: 1px 4px;
  line-height: 1.1;
  letter-spacing: 0.3px;
}

.pitch-name {
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

/* Dòng 3: Rating & PES Condition Arrow */
.pitch-rating {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.65rem;
  color: #fbbf24;
  font-weight: 700;
  margin-top: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* =========================================================================
   HỆ THỐNG 5 MŨI TÊN PHONG ĐỘ PES (PRO EVOLUTION SOCCER)
   ========================================================================= */
.pes-arrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: help;
}

.pes-arrow-badge:hover {
  transform: scale(1.25);
}

/* Cấp 1: Dưới 5.0 - Mũi tên thẳng xuống màu ghi */
.pes-arrow-badge.lvl-1 {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* Cấp 2: 5.0 đến 6.0 - Mũi tên chéo xuống bên phải màu blue */
.pes-arrow-badge.lvl-2 {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.5);
}
.pes-arrow-badge.lvl-2 i {
  transform: rotate(45deg);
  display: inline-block;
}

/* Cấp 3: 6.0 đến 7.0 - Mũi tên ngang màu xanh lá */
.pes-arrow-badge.lvl-3 {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

/* Cấp 4: 7.0 đến 7.9 - Mũi tên chéo lên phải màu cam */
.pes-arrow-badge.lvl-4 {
  color: #f97316;
  background: rgba(249, 115, 22, 0.22);
  border: 1px solid rgba(249, 115, 22, 0.55);
}
.pes-arrow-badge.lvl-4 i {
  transform: rotate(-45deg);
  display: inline-block;
}

/* Cấp 5: 7.9 trở lên - Mũi tên chỉ thẳng lên màu đỏ phát sáng */
.pes-arrow-badge.lvl-5 {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 1px solid #fca5a5;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
  animation: pes-arrow-top-glow 1.5s infinite alternate ease-in-out;
}

@keyframes pes-arrow-top-glow {
  0% {
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.95), 0 0 14px rgba(252, 165, 165, 0.7);
  }
}

/* Circle Collision Hover Indicator */
.circle-swap-hover .player-jersey-disc,
.circle-swap-hover .empty-disc {
  transform: scale(1.18);
  border-color: #facc15 !important;
  box-shadow: 0 0 20px #facc15, 0 0 30px rgba(250, 204, 21, 0.8) !important;
  animation: swap-node-pulse 0.8s infinite alternate ease-in-out;
}

/* Selected for Swap Pulse Animation */
.selected-for-swap {
  z-index: 25 !important;
  animation: swap-node-pulse 1.2s infinite ease-in-out;
}

.selected-for-swap .player-jersey-disc,
.bench-sub-card.selected-for-swap {
  border-color: #facc15 !important;
  box-shadow: 0 0 16px #facc15, 0 0 25px rgba(250, 204, 21, 0.7) !important;
}

@keyframes swap-node-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1.15);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.28);
  }
}

/* 9. Bench Dock (Ghế dự bị) */
.bench-dock {
  background: rgba(4, 8, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 14px;
}

.bench-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bench-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bench-badge {
  font-size: 0.72rem;
  color: var(--color-accent-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.bench-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  align-items: center;
}

.empty-bench-text {
  width: 100%;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  padding: 8px 0;
}

.bench-sub-card {
  background: rgba(13, 27, 62, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: grab;
  user-select: none;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.bench-sub-card:hover {
  background: rgba(18, 37, 84, 1);
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

.bench-sub-card:active {
  cursor: grabbing;
}

.bench-jersey-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.bench-player-info {
  display: flex;
  flex-direction: column;
}

.bench-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.bench-meta {
  font-size: 0.68rem;
  color: var(--text-dim, #94a3b8);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 10. Mobile Responsiveness */
@media (max-width: 1024px) {
  .matchday-banner-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tactical-duo-grid {
    grid-template-columns: 1fr;
  }
  .pitch-surface {
    max-width: 410px;
    height: 580px;
  }
}

@media (max-width: 640px) {
  .matchday-banner {
    padding: 18px 16px;
  }
  .matchday-title {
    font-size: 1.3rem;
  }
  .countdown-boxes {
    gap: 4px;
  }
  .cd-box {
    min-width: 44px;
    padding: 4px 6px;
  }
  .cd-number {
    font-size: 1.4rem;
  }
  .rollcall-grid {
    grid-template-columns: 1fr;
  }
  .rc-search-input {
    width: 100%;
  }
  .pitch-surface {
    max-width: 360px;
    height: 510px;
  }
  .player-jersey-disc {
    width: 34px;
    height: 34px;
  }
  .disc-number {
    font-size: 0.82rem;
  }
  .player-pitch-label {
    padding: 1px 6px;
  }
  .pitch-name {
    font-size: 0.65rem;
  }
}

.tourn-modal-overlay.active,
.tourn-modal-overlay.open {
  display: flex !important;
}

/* ==========================================================================
   MATCHDAY V2: MATCH LIST VIEW & TACTICAL ADVANCED STYLES
   ========================================================================== */

/* 1. Match List View */
.match-list-view {
  background: var(--bg-card, rgba(13, 27, 62, 0.75));
  border: 1px solid var(--border-glass, rgba(0, 229, 255, 0.22));
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card, 0 10px 30px rgba(0, 0, 0, 0.5));
}

.match-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.match-list-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-list-subtitle {
  color: var(--text-dim, #94a3b8);
  font-size: 0.88rem;
  margin-top: 4px;
}

.btn-create-match {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border: 1px solid #fef08a;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-create-match:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

.match-list-filter-bar {
  margin-bottom: 24px;
}

.match-filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.match-filter-pill {
  background: rgba(7, 15, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim, #94a3b8);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.match-filter-pill:hover {
  background: rgba(18, 37, 84, 0.9);
  color: #ffffff;
}

.match-filter-pill.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--color-accent-cyan, #00e5ff);
  color: var(--color-accent-cyan, #00e5ff);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

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

.match-card-item {
  background: rgba(7, 15, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.match-card-item:hover {
  border-color: var(--color-accent-cyan, #00e5ff);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.18);
  background: rgba(13, 27, 62, 0.95);
}

.mcard-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mcard-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.mcard-right-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.mcard-pitch-format {
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-accent-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
}

.btn-card-quick-del {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-card-quick-del:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.1);
}

.mcard-capacity-chip {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.capacity-short {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

.capacity-full {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #6ee7b7;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.match-status-badge {
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.status-open {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.status-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.status-locked {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.status-past {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(100, 116, 139, 0.45);
  color: #94a3b8;
}

/* Bố cục bên trong ô trận đấu: Trái thông tin, Phải điểm danh theo chiều dọc */
.mcard-main-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.mcard-info-col {
  flex: 1;
  min-width: 0;
}

.mcard-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.mcard-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mcard-meta-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff; /* Chữ màu trắng theo yêu cầu */
}

.mcard-meta-line span {
  color: #ffffff;
}

.mcard-meta-line b {
  color: #ffffff;
  font-weight: 700;
}

.mcard-meta-line i {
  color: var(--color-accent-cyan, #00e5ff);
  font-size: 1.05rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Bố cục Điểm danh xếp dọc bên phải */
.mcard-rsvp-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  min-width: 98px;
}

.mcard-chip {
  font-size: 0.84rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.chip-going {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.chip-maybe {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.chip-busy {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.empty-matchlist-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-dim, #94a3b8);
}
.empty-matchlist-msg i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--color-accent-cyan, #00e5ff);
  opacity: 0.5;
}

/* 2. Detail View Navigation */
.detail-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-back-to-list {
  background: rgba(7, 15, 38, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--color-accent-cyan, #00e5ff);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-back-to-list:hover {
  background: rgba(0, 229, 255, 0.15);
  color: #ffffff;
  transform: translateX(-3px);
}

.locked-badge {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
}

/* Nút Sao chép tin Zalo trên thanh chi tiết trận */
.detail-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #0051c7 100%);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
}

.btn-copy-zalo:hover {
  background: linear-gradient(135deg, #1a7bff 0%, #0068ff 100%);
  border-color: #facc15;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 104, 255, 0.5), 0 0 12px rgba(250, 204, 21, 0.3);
}

.btn-copy-zalo:active {
  transform: translateY(0);
}

.btn-copy-zalo.copied {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5) !important;
}

/* Nút copy nhanh Zalo trên thẻ trận ngoài danh sách */
.btn-card-quick-copy {
  background: rgba(0, 104, 255, 0.15);
  border: 1px solid rgba(0, 104, 255, 0.4);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-card-quick-copy:hover {
  background: #0068ff;
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.4);
}

.btn-card-quick-copy.copied {
  background: #10b981 !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
}

/* Nhóm nút chọn tiêu chí tự động chia đội */
.balance-criteria-group {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 3px 6px;
  gap: 4px;
}

.criteria-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim, #94a3b8);
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-criteria-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 14px;
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-criteria-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
}

.btn-criteria-pill.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.btn-criteria-pill[data-criteria="value"].active {
  background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
  border-color: #facc15;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.4);
}

.btn-criteria-pill[data-criteria="form"].active {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border-color: #fb7185;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

@media (max-width: 768px) {
  .balance-criteria-group {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 6px;
  }
  .btn-criteria-pill {
    flex: 1;
    justify-content: center;
    padding: 6px 4px;
    font-size: 0.72rem;
  }
}

/* 3. Empty Slot on Tactical Pitch (Phương án B) */
.pitch-empty-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.pitch-empty-slot .empty-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.pitch-empty-slot:hover .empty-disc {
  border-color: var(--color-accent-cyan, #00e5ff);
  color: var(--color-accent-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.2);
  transform: scale(1.15);
}

/* Hiệu ứng nổi bật và xung nhịp khi đang chọn cầu thủ để chuyển/đổi chỗ */
.player-selected-mode .pitch-empty-slot .empty-disc,
.pitch-empty-slot.selected-for-swap .empty-disc {
  border-color: #00e5ff !important;
  color: #00e5ff !important;
  background: rgba(0, 229, 255, 0.25) !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.6) !important;
  animation: empty-slot-pulse 1.2s infinite ease-in-out;
}

@keyframes empty-slot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); box-shadow: 0 0 22px rgba(0, 229, 255, 0.85); }
}

.pitch-empty-slot .empty-label {
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  color: #94a3b8;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* 4. GK Neon Green Node Style */
.gk-node .player-jersey-disc {
  border-color: #6ee7b7 !important;
}

.gk-tiny-tag {
  font-size: 0.55rem;
  font-weight: 900;
  background: #064e3b;
  color: #34d399;
  padding: 1px 3px;
  border-radius: 2px;
  line-height: 1;
  position: absolute;
  bottom: -2px;
  right: -2px;
  border: 1px solid #34d399;
}

/* 5. Dynamic Tactical Role Badge */
.pitch-role-badge {
  font-family: var(--font-tech, 'Montserrat', sans-serif);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-accent-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.15);
  padding: 0 4px;
  border-radius: 2px;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* 6. Locked RSVP Buttons */
.btn-rc[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* 7. Pitch Surface Dynamic Interaction & Drag Styles */
.pitch-surface {
  position: relative;
  cursor: crosshair;
  user-select: none;
}

.pitch-player-node {
  cursor: grab;
  touch-action: none;
}

.pitch-player-node:active {
  cursor: grabbing;
}

.pitch-player-node.selected-for-swap {
  animation: tacticalNodePulse 1.2s infinite alternate ease-in-out;
  z-index: 50 !important;
}

@keyframes tacticalNodePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 8px #f59e0b);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.18);
    filter: drop-shadow(0 0 22px #f59e0b) drop-shadow(0 0 10px #facc15);
  }
}

/* 8. White Calendar & Clock Picker Indicators (Yêu cầu 3) */
input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.9;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* 9. Admin-Only Control Buttons (Yêu cầu 5) */
body.is-guest .admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: inline-flex !important;
}

/* ==========================================================================
   10. MOBILE OPTIMIZATIONS (Yêu cầu 9)
   ========================================================================== */
@media (max-width: 768px) {
  .match-list-view {
    padding: 18px 14px;
  }

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

  .match-list-title {
    font-size: 1.3rem;
  }

  .match-filter-pills {
    width: 100%;
  }

  .match-filter-pill {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .match-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .match-card-item {
    padding: 16px 14px;
  }

  .mcard-title {
    font-size: 1.2rem;
  }

  .mcard-meta-line {
    font-size: 0.92rem;
  }

  .mcard-rsvp-col {
    min-width: 88px;
    gap: 5px;
  }

  .mcard-rsvp-col .mcard-chip {
    font-size: 0.78rem;
    padding: 4px 8px;
  }

  .attendance-kpi-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .att-kpi-chip {
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .att-kpi-chip strong {
    font-size: 1.35rem;
  }

  .status-filter-pills {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .status-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .rollcall-filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .rollcall-card {
    padding: 14px 16px;
  }

  .rc-name {
    font-size: 1.1rem;
    font-weight: 800;
  }

  .rc-sub {
    font-size: 0.88rem;
  }

  .btn-rc {
    font-size: 0.92rem;
    padding: 8px 4px;
  }

  .matchday-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .meta-val {
    font-size: 1.05rem;
  }

  .meta-lbl {
    font-size: 0.76rem;
  }

  .meta-icon {
    font-size: 1.4rem;
  }

  .matchday-banner-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .matchday-note-box {
    font-size: 0.94rem;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .mcard-main-body {
    gap: 10px;
  }

  .mcard-title {
    font-size: 1.15rem;
  }

  .mcard-meta-line {
    font-size: 0.86rem;
  }

  .mcard-rsvp-col {
    min-width: 80px;
  }

  .mcard-chip {
    font-size: 0.75rem;
    padding: 3px 6px;
  }

  .mcard-pitch-format {
    font-size: 0.78rem;
    padding: 3px 8px;
    min-width: 50px;
  }

  .match-status-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .matchday-title {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   11. FLOATING MATCH COUNTDOWN WIDGET (Kiểu 1: Glassmorphism Bottom-Right)
   ========================================================================== */
.floating-match-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.94) 0%, rgba(7, 15, 38, 0.98) 100%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 229, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  width: fit-content;
  max-width: none;
  animation: fmwSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fmwSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-match-widget:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-cyan, #00e5ff);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 229, 255, 0.35);
}

.fmw-close-btn {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 10;
}

.fmw-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
}

.fmw-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px 8px 12px;
  cursor: pointer;
}

.fmw-details {
  width: 156px;
  min-width: 156px;
  max-width: 156px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fmw-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  width: 100%;
  overflow: hidden;
}

.fmw-match-icon {
  font-size: 0.82rem;
  color: var(--color-accent-gold, #f59e0b);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.fmw-name-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.fmw-match-name {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  display: inline-block;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
  transition: transform 3s linear;
}

/* Hiệu ứng trượt chữ khi rê chuột trên Desktop nếu tên dài */
.fmw-content:hover .fmw-match-name.can-scroll {
  text-overflow: clip;
  transform: translateX(calc(-100% + 130px));
}

.fmw-countdown-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.fmw-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}

.fmw-pulse-dot.yellow {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.fmw-pulse-dot.red {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.fmw-cd-val {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--color-accent-cyan, #00e5ff);
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 1;
}

.fmw-action-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fmw-action-btn.btn-info {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25) 0%, rgba(0, 104, 255, 0.4) 100%);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.25);
}

.fmw-content:hover .fmw-action-btn {
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
}

.fmw-content:hover .fmw-action-btn.btn-info {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.38) 0%, rgba(0, 104, 255, 0.55) 100%);
  color: #ffffff;
  border-color: #00e5ff;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.45);
}

/* Mobile: Căn chỉnh gọn gàng góc dưới phải, tự động cuộn chữ qua lại nếu tên dài */
@media (max-width: 600px) {
  .floating-match-widget {
    bottom: 74px; /* Tránh đè nút xem HUD trên điện thoại */
    right: 12px;
    left: auto;
    max-width: calc(100vw - 24px);
  }

  .fmw-match-name.can-scroll {
    text-overflow: clip;
    animation: fmwAutoMarquee 6s ease-in-out infinite alternate;
  }
}

@keyframes fmwAutoMarquee {
  0%, 20% {
    transform: translateX(0);
  }
  80%, 100% {
    transform: translateX(calc(-100% + 130px));
  }
}

/* ==========================================================================
   PRE-MATCH TACTICAL INTEL (NHẬN ĐỊNH CHIẾN THUẬT AI CHUẨN FIFA)
   ========================================================================== */

/* Nút Quick Jump trên Banner */
.btn-quick-jump-ai {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(59, 130, 246, 0.28) 100%);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.55);
  border-radius: var(--radius-full, 9999px);
  font-family: var(--font-main, 'Be Vietnam Pro', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-quick-jump-ai:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4) 0%, rgba(59, 130, 246, 0.5) 100%);
  color: #ffffff;
  border-color: #00e5ff;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
  transform: translateY(-1px);
}

.btn-quick-jump-ai.has-prediction {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(6, 182, 212, 0.25) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.btn-quick-jump-ai.has-prediction:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
}

/* Khối nhận định AI phía dưới Ghế dự bị */
.pre-match-ai-wrapper {
  margin-top: 24px;
  width: 100%;
}

.pre-match-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(10, 15, 29, 0.96) 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg, 16px);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.12);
}

.pre-match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00e5ff 0%, #3b82f6 50%, #f59e0b 100%);
}

/* Card Header */
.pmc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pmc-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pmc-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(59, 130, 246, 0.25) 100%);
  border: 1px solid rgba(0, 229, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
  flex-shrink: 0;
}

.pmc-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.pmc-fifa-tag {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050b14;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.pmc-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim, #cbd5e1);
  margin: 0;
  line-height: 1.5;
}

.pmc-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pmc-badge-analyzed {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full, 9999px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Nút Kích hoạt Nhận định AI */
.btn-trigger-pre-match-ai {
  background: linear-gradient(135deg, #0284c7 0%, #00e5ff 100%);
  color: #050b14;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.4);
  user-select: none;
}

.btn-trigger-pre-match-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.6);
  filter: brightness(1.1);
}

.btn-trigger-pre-match-ai:active {
  transform: translateY(0);
}

.btn-trigger-pre-match-ai.btn-reanalyze {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  padding: 6px 14px;
  font-size: 0.78rem;
  box-shadow: none;
}

.btn-trigger-pre-match-ai.btn-reanalyze:hover {
  background: rgba(0, 229, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

/* Win Probability Bar */
.pmc-prob-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.pmc-prob-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.pmc-prob-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
}

.pmc-prob-vs {
  font-size: 0.76rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1px;
}

.pmc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.pmc-prob-bar-track {
  width: 100%;
  height: 14px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pmc-prob-bar-fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Predicted Score Neon Box */
.pmc-score-box {
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.08);
}

.pmc-score-headline {
  font-size: 1.35rem;
  font-weight: 800;
  color: #facc15;
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.5;
}

.pmc-score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.pmc-score-team-badge {
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  min-width: 110px;
}

.pmc-score-digits {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 24px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.pmc-digit {
  font-family: var(--font-tech, 'Rajdhani', monospace);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 16px currentColor;
}

.pmc-score-divider {
  font-family: var(--font-tech, 'Rajdhani', monospace);
  font-size: 2.2rem;
  color: #64748b;
}

.pmc-score-caption {
  font-size: 0.78rem;
  color: var(--text-dim, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Tactical 3-Tuyến & Strengths Grid */
.pmc-tactical-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.pmc-tactical-overview-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
}

.pmc-card-subtitle {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #00e5ff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pmc-text {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin: 0;
}

.pmc-strengths-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pmc-strength-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px 18px;
}

.pmc-box-label {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Key Matchup Section */
.pmc-matchup-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.pmc-matchup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pmc-fire-icon {
  color: #f59e0b;
  font-size: 1.25rem;
}

.pmc-matchup-title {
  font-size: 1.18rem;
  color: #fef08a;
  font-weight: 700;
}

.pmc-matchup-title b {
  color: #ffffff;
  font-weight: 800;
}

.pmc-matchup-desc {
  font-size: 1.08rem;
  color: #f1f5f9;
  line-height: 1.7;
  margin: 0;
}

/* Tactical Tip */
.pmc-tip-box {
  background: rgba(6, 182, 212, 0.1);
  border: 1px dashed rgba(6, 182, 212, 0.4);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  color: #e0f2fe;
  line-height: 1.65;
}

.pmc-tip-box i {
  color: #38bdf8;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Entity Highlight in Tactical Intel (Tên cầu thủ & tên đội mang màu sắc áo đấu) */
.pmc-entity-name {
  font-weight: 800 !important;
  display: inline;
  padding: 0 3px;
  border-radius: 3px;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}
.pmc-entity-name:hover {
  filter: brightness(1.25);
  text-shadow: 0 0 10px currentColor;
}

/* Subtitle chung */
.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-dim, #cbd5e1);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Empty State Card */
.pre-match-empty-card {
  text-align: center;
  padding: 36px 24px;
}

.pmc-empty-content {
  max-width: 640px;
  margin: 0 auto;
}

.pmc-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.pmc-empty-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.pmc-empty-desc {
  font-size: 0.86rem;
  color: var(--text-dim, #94a3b8);
  line-height: 1.5;
  margin-bottom: 20px;
}

.pmc-empty-notice {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.4;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pmc-empty-notice.warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.pmc-empty-notice.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.pmc-empty-notice.neutral {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pmc-header {
    flex-direction: column;
    align-items: stretch;
  }
  .pmc-header-actions {
    justify-content: space-between;
  }
  .pmc-strengths-columns {
    grid-template-columns: 1fr;
  }
  .pmc-score-display {
    flex-direction: column;
    gap: 12px;
  }
  .pmc-score-digits {
    padding: 6px 18px;
  }
}

/* ========================================================
   MONTHLY KPI FILTER — Bộ lọc vinh danh theo tháng
   ======================================================== */
.global-filter-bar {
  margin: 4px 0 16px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.monthly-filter-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-panel);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.monthly-filter-label {
  font-size: 0.95rem;
  color: var(--text-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.monthly-kpi-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  padding: 5px 28px 5px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.monthly-kpi-select:hover,
.monthly-kpi-select:focus {
  border-color: var(--color-accent-gold, #f59e0b);
  background-color: rgba(255,255,255,0.09);
  outline: none;
}

.monthly-kpi-select option {
  background: #1e293b;
  color: #e2e8f0;
}

.monthly-match-count {
  font-size: 0.85rem;
  color: var(--color-accent-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#leaderboards-monthly-wrapper {
  min-height: 80px;
}

.monthly-empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-dim, #64748b);
}

.monthly-empty-state span {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 14px;
}

.monthly-empty-state p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}
