/*!****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./styles/globals.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   LEGA HOCKEY LIBERTAS - GLOBAL STYLES
   Modern, Clean, Professional Design
   ============================================ */

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
  /* Primary Palette - Deep Navy Blue */
  --primary: #0f172a;
  --primary-600: #1e293b;
  --primary-500: #334155;
  --primary-400: #475569;
  --primary-light: #e2e8f0;
  --primary-dark: #020617;
  
  /* Accent Colors */
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  
  /* Status Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #047857;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-dark: #92400e;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --danger-dark: #b91c1c;
  
  /* Neutral Colors */
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  --bg-card: #ffffff;
  
  /* Text Colors */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Border Colors */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: var(--accent);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  background: var(--primary);
  color: white;
  padding: var(--space-4) 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.header .nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: white;
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
  color: white;
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-sm);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.logo-icon::after {
  content: 'LHL';
  font-size: 10px;
  letter-spacing: -0.5px;
}

.logo-text {
  font-weight: 700;
}

@media (max-width: 640px) {
  .logo-text {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Auth Section */
.auth-section {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-auth .user-name {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  font-weight: 500;
}

.user-info {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
}

.btn-logout {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: white;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main {
  flex: 1 1;
  padding: var(--space-8) 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-8) 0;
  margin-top: auto;
}

.footer .container {
  text-align: center;
}

.footer p {
  font-size: var(--text-sm);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 50%, var(--primary-500) 100%);
  color: white;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
  position: relative;
}

.hero p {
  font-size: var(--text-xl);
  opacity: 0.9;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  margin-bottom: var(--space-10);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-header h2 .live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--danger);
  border-radius: var(--radius-full);
  margin-right: var(--space-2);
  animation: pulse-dot 2s infinite;
}

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

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  margin-bottom: var(--space-8);
}

.page-header h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border);
  color: var(--text);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-warning:hover {
  background: #d97706;
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

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

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}

/* ============================================
   FILTERS
   ============================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover {
  background: var(--bg-subtle);
  color: var(--text);
  text-decoration: none;
}

.filter-btn.active {
  background: var(--accent);
  color: white;
}

.filter-btn.live-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.filter-btn.live-filter::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: var(--radius-full);
  animation: pulse-dot 2s infinite;
}

/* ============================================
   CARDS - MATCH CARD
   ============================================ */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-gap: var(--space-5);
  gap: var(--space-5);
}

.match-card {
  display: block;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.match-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
  border-color: var(--accent);
}

.match-card:hover::before {
  opacity: 1;
}

.match-card .live-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--danger);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  animation: pulse 2s infinite;
}

.match-card .live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: var(--radius-full);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.match-teams {
  margin-bottom: var(--space-3);
}

.match-teams .team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}

.match-teams .team:last-child {
  border-bottom: none;
}

.match-teams .team-name {
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-base);
}

.match-teams .team-score {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--primary);
  min-width: 2.5rem;
  text-align: center;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.match-location {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.match-location::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--text-light);
  border-radius: var(--radius-full);
}

/* ============================================
   CARDS - TEAM CARD
   ============================================ */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: var(--space-5);
  gap: var(--space-5);
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-align: center;
  border: 1px solid var(--border);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
}

.team-logo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  border: 3px solid;
  overflow: hidden;
  background: var(--bg-subtle);
}

.team-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.team-initial {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: white;
}

.team-card .team-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
  font-size: var(--text-lg);
}

.team-short {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   ANNOUNCEMENTS
   ============================================ */
.announcements-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.announcement-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
}

.announcement-card:hover {
  box-shadow: var(--shadow-md);
}

.announcement-card .pinned-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 700;
}

.pinned-badge::before {
  content: '!';
}

.announcement-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.announcement-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.announcement-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-12);
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.empty-state p {
  font-size: var(--text-lg);
}

/* ============================================
   BACK LINK
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ============================================
   MATCH DETAIL PAGE
   ============================================ */
.match-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.match-info {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.status-badge {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-scheduled { background: var(--bg-muted); color: var(--text-secondary); }
.status-in_progress { background: var(--danger-light); color: var(--danger); }
.status-completed { background: var(--success-light); color: var(--success); }
.status-postponed { background: var(--warning-light); color: var(--warning); }
.status-cancelled { background: var(--danger-light); color: var(--danger); }

.match-datetime {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.match-datetime .date {
  font-weight: 700;
}

.match-datetime .time {
  margin-left: var(--space-2);
  color: var(--text-muted);
}

.match-venue {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ============================================
   SCOREBOARD
   ============================================ */
.match-scoreboard {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.match-scoreboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.live-indicator {
  position: absolute;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(239, 68, 68, 0.9);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: var(--radius-full);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.scoreboard-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  position: relative;
}

.scoreboard-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  flex: 1 1;
  max-width: 200px;
}

.team-badge {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 800;
  border: 4px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.team-badge img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.scoreboard-team .team-name {
  font-weight: 700;
  text-align: center;
  font-size: var(--text-base);
  opacity: 0.95;
}

.scoreboard-score {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.scoreboard-score .score {
  font-size: 4rem;
  font-weight: 800;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.scoreboard-score .separator {
  font-size: var(--text-3xl);
  opacity: 0.4;
  font-weight: 300;
}

/* ============================================
   COLLAPSIBLE SECTIONS
   ============================================ */
.match-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.collapsible-section {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  text-align: left;
  transition: background var(--transition-fast);
}

.collapsible-header:hover {
  background: var(--bg-subtle);
}

.collapsible-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.collapsible-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: var(--text-lg);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.collapsible-header:hover .collapsible-toggle {
  background: var(--bg-muted);
}

.collapsible-summary {
  padding: 0 var(--space-5) var(--space-5);
}

.collapsed-summary-content {
  padding-top: var(--space-2);
}

.collapsible-content {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--border);
}

/* ============================================
   STAT SLIDER
   ============================================ */
.stat-slider {
  margin-bottom: var(--space-3);
}

.stat-slider-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.stat-slider-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.stat-value-left,
.stat-value-right {
  font-size: var(--text-lg);
  font-weight: 700;
  min-width: 40px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.stat-value-left {
  text-align: right;
}

.stat-value-right {
  text-align: left;
}

.stat-slider-bar {
  display: flex;
  flex: 1 1;
  height: 12px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-muted);
}

.stat-slider-home, .stat-slider-away {
  height: 100%;
  transition: width var(--transition-slow);
}

.section-slider {
  padding: var(--space-4) 0;
  margin-bottom: var(--space-2);
}

/* ============================================
   ROSTERS
   ============================================ */
.rosters-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--space-5);
  gap: var(--space-5);
  padding-top: var(--space-4);
}

.roster-table-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.roster-team-header {
  padding: var(--space-4);
  color: white;
  font-weight: 700;
  text-align: center;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
}

.roster-table tr.role-header td {
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--bg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roster-table tr:not(.role-header) td {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-light);
}

.roster-table tr:not(.role-header):hover td {
  background: var(--bg-subtle);
}

.roster-table .jersey-number {
  width: 60px;
  font-weight: 700;
  color: var(--accent);
  font-size: var(--text-sm);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.roster-table .player-name {
  font-weight: 500;
  color: var(--text);
}

/* ============================================
   OFFICIALS
   ============================================ */
.officials-container {
  padding-top: var(--space-4);
}

.officials-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: var(--space-3);
  gap: var(--space-3);
}

.official-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.official-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.official-name {
  font-weight: 600;
  color: var(--text);
}

/* ============================================
   EVENTS TABLE
   ============================================ */
.events-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-4);
}

.events-table thead th {
  padding: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--border);
  background: var(--bg-subtle);
}

.events-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.events-table tbody tr:hover {
  background: var(--bg-subtle);
}

.events-table tbody tr:last-child {
  border-bottom: none;
}

.events-table td {
  padding: var(--space-4);
  vertical-align: middle;
}

.events-table .team-col {
  width: 40%;
}

.events-table .home-col {
  text-align: right;
}

.events-table .away-col {
  text-align: left;
}

.events-table .time-col {
  width: 20%;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.time-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.time-display .period {
  font-weight: 700;
  color: var(--text);
  font-size: var(--text-sm);
}

.time-display .time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Goal & Penalty Info */
.goal-info, .penalty-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.home-col .goal-info,
.home-col .penalty-info {
  align-items: flex-end;
}

.away-col .goal-info,
.away-col .penalty-info {
  align-items: flex-start;
}

.goal-info strong, .penalty-info strong {
  font-weight: 600;
  color: var(--text);
}

.goal-info .goal-type,
.penalty-info .penalty-type {
  display: inline-block;
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-weight: 500;
}

.penalty-info .penalty-duration {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--warning);
}

.goal-info .assists {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Goalkeeper Event Info */
.gk-event-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.home-col .gk-event-info {
  align-items: flex-end;
}

.away-col .gk-event-info {
  align-items: flex-start;
}

.gk-event-info strong {
  font-weight: 600;
  color: var(--text);
}

.gk-event-type {
  display: inline-block;
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   MATCH NOTES
   ============================================ */
.match-notes {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--border);
  margin-top: var(--space-6);
}

.match-notes h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.match-notes p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   TEAM DETAIL PAGE
   ============================================ */
.team-hero {
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  margin-bottom: var(--space-8);
  color: white;
  position: relative;
  overflow: hidden;
}

.team-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}

.team-hero-content {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  position: relative;
}

.team-hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
}

.team-hero-initial {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.team-hero-info h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.team-abbr {
  font-size: var(--text-lg);
  opacity: 0.85;
  font-weight: 500;
}

/* Team Details */
.team-details {
  margin-bottom: var(--space-8);
}

.detail-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.detail-card h3 {
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
  font-weight: 700;
}

.detail-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: var(--space-3) var(--space-6);
  gap: var(--space-3) var(--space-6);
}

.detail-card dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.detail-card dd {
  color: var(--text);
}

/* Roster */
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: var(--space-5);
  gap: var(--space-5);
}

.roster-section {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.roster-section h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-sm);
}

.roster-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.roster-player {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  transition: background var(--transition-fast);
}

.roster-player:hover {
  background: var(--bg-subtle);
}

.roster-player .jersey {
  font-weight: 700;
  color: var(--accent);
  min-width: 2.5rem;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.roster-player .name {
  color: var(--text);
  font-weight: 500;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  position: relative;
}

.login-icon::before {
  content: '';
  width: 20px;
  height: 20px;
  background: white;
  border-radius: var(--radius-full);
  position: absolute;
  top: 18px;
}

.login-icon::after {
  content: '';
  width: 32px;
  height: 18px;
  background: white;
  border-radius: 16px 16px 4px 4px;
  position: absolute;
  bottom: 14px;
}

.login-header h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.login-header p {
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.login-form button {
  margin-top: var(--space-2);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  background: var(--bg-elevated);
  color: var(--text);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--border-focus);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: var(--space-5);
  gap: var(--space-5);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"] {
  min-width: 0;
  width: 100%;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
  font-weight: 500;
}

.alert-error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-subtle);
}

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

/* ============================================
   STATUS PILLS
   ============================================ */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-pill.active {
  background: var(--success-light);
  color: var(--success);
}

.status-pill.inactive {
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.status-pill.system {
  background: #ede9fe;
  color: #7c3aed;
}

.status-pill.custom {
  background: #dbeafe;
  color: var(--accent);
}

.status-pill.expired {
  background: var(--danger-light);
  color: var(--danger);
}

.status-pill.valid {
  background: var(--success-light);
  color: var(--success);
}

/* Player name cell with expired indicator */
.player-name-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ============================================
   INFO BOX
   ============================================ */
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.info-box p {
  margin: var(--space-1) 0;
  font-size: var(--text-sm);
  color: #1e40af;
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.admin-sidebar {
  width: 280px;
  background: var(--primary);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  box-shadow: var(--shadow-xl);
}

.admin-sidebar-header {
  padding: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-header h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-nav {
  flex: 1 1;
  overflow-y: auto;
  padding: var(--space-4) 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  font-weight: 500;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-left-color: var(--accent);
}

.admin-nav-icon {
  width: var(--space-5);
  text-align: center;
}

.admin-nav-label {
  flex: 1 1;
}

.admin-nav-count {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.admin-sidebar-footer {
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-main {
  flex: 1 1;
  margin-left: 280px;
  min-height: 100vh;
  padding: var(--space-8);
}

/* Dashboard Layout */
.dashboard-welcome {
  margin-bottom: var(--space-6);
}

.dashboard-welcome h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.dashboard-welcome p {
  color: var(--text-muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: var(--space-6);
  gap: var(--space-6);
}

.dashboard-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.dashboard-card h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quick-action-btn {
  display: block;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-fast);
}

.quick-action-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  text-decoration: none;
}

.summary-list {
  display: flex;
  flex-direction: column;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.live {
  background: var(--danger-light);
  margin: 0 calc(var(--space-3) * -1);
  padding: var(--space-3);
  border-radius: var(--radius);
  border-bottom: none;
}

.summary-row.live + .summary-row {
  border-top: none;
}

.summary-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.summary-row.live .summary-label {
  color: var(--danger);
  font-weight: 600;
}

.summary-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.summary-row.live .summary-value {
  color: var(--danger);
}

/* Admin Form */
.admin-form {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.admin-actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Input with inline action button */
.input-with-action {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.input-with-action input {
  flex: 1 1;
  min-width: 0;
}

.cf-calc-btn {
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.cf-calc-popover {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 200px;
}

.cf-calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cf-calc-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.cf-calc-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 var(--space-1);
}

.cf-calc-close:hover {
  color: var(--text);
}

.cf-calc-buttons {
  display: flex;
  gap: var(--space-2);
}

.cf-calc-buttons .btn {
  flex: 1 1;
}

.cf-calc-error {
  font-size: var(--text-xs);
  color: var(--danger);
}

/* Admin Filter Bar */
.admin-filter-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.admin-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.admin-search-box {
  position: relative;
  flex: 1 1;
  min-width: 200px;
  max-width: 400px;
}

.admin-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  pointer-events: none;
  opacity: 0.5;
}

.admin-search-input {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb, 59, 130, 246), 0.15);
}

.admin-search-input::placeholder {
  color: var(--text-muted);
}

.admin-search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.125rem 0.25rem;
  line-height: 1;
  border-radius: var(--radius-sm);
}

.admin-search-clear:hover {
  color: var(--danger);
  background: var(--bg-subtle);
}

.admin-filter-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-sm);
  cursor: pointer;
  min-width: 150px;
}

.admin-filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-filter-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding-left: var(--space-1);
}

/* Admin Pagination */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  margin-top: var(--space-2);
  border-top: 1px solid var(--border-light);
  gap: var(--space-3);
}

.admin-pagination-info {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-pagination-controls {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.admin-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.admin-pagination-btn:hover:not(:disabled):not(.active) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-subtle);
}

.admin-pagination-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
}

.admin-pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

@media (max-width: 640px) {
  .admin-pagination {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }

  .admin-pagination-btn {
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: var(--text-xs);
  }
}

@media (max-width: 640px) {
  .admin-filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search-box {
    max-width: none;
  }

  .admin-filter-select {
    width: 100%;
  }
}

/* ============================================
   REPORTER PANEL - NEW DESIGN
   ============================================ */
.reporter-page {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: var(--space-8);
}

.reporter-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.reporter-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
}

.reporter-back-btn {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.reporter-back-btn:hover {
  color: var(--text);
  text-decoration: none;
}

/* Sync Status - properly centered with icon inside */
.sync-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all 0.3s ease;
}

.sync-status .sync-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sync-status .sync-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.sync-status.synced {
  background: var(--success-light);
  color: var(--success);
}

.sync-status.synced .sync-label::before {
  background: var(--success);
}

.sync-status.synced.flash {
  background: var(--success);
  color: white;
  transform: scale(1.1);
}

.sync-status.syncing {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.sync-status.syncing .sync-label::before {
  background: var(--warning);
  animation: pulse 1s ease-in-out infinite;
}

.sync-status.error {
  background: var(--danger-light);
  color: var(--danger);
}

.sync-status.error .sync-label::before {
  background: var(--danger);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Save Flash Animation */
.reporter-page.save-flash {
  animation: saveFlash 0.5s ease-out;
}

@keyframes saveFlash {
  0% {
    box-shadow: inset 0 0 0 4px rgba(72, 187, 120, 0.8);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(72, 187, 120, 0);
  }
}

/* Reporter Error */
.reporter-error {
  background: var(--danger-light);
  color: var(--danger);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  cursor: pointer;
  font-size: var(--text-sm);
}

.reporter-error .dismiss-hint {
  opacity: 0.7;
  font-size: var(--text-xs);
}

/* Scoreboard */
.reporter-scoreboard {
  display: flex;
  align-items: stretch;
  padding: var(--space-4);
  background: var(--bg-elevated);
}

.reporter-team {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3);
}

.reporter-team.home {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.reporter-team.away {
  background: var(--danger);
  color: white;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.reporter-team-name {
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: var(--space-1);
}

.reporter-team-score {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.reporter-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-subtle);
}

.reporter-match-status {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.reporter-match-status.scheduled {
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.reporter-match-status.in_progress {
  background: var(--danger);
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.reporter-match-status.completed {
  background: var(--success);
  color: white;
}

/* Period Bar */
.reporter-period-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.period-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.period-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.period-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.period-display {
  font-size: var(--text-lg);
  font-weight: 700;
  min-width: 100px;
  text-align: center;
}

/* Timer Section */
.reporter-timer-section {
  padding: var(--space-4);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.timer-controls-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.timer-adjust-btn {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timer-adjust-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.timer-display-box {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: text;
  transition: border-color var(--transition-fast);
}

.timer-display-box:focus {
  outline: none;
  border-color: var(--accent);
}

.timer-digit {
  font-size: 2.5rem;
  font-weight: 800;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  width: 40px;
  text-align: center;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.timer-digit.active {
  background: var(--accent);
  color: white;
}

.timer-colon {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 var(--space-1);
}

.timer-play-btn {
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: white;
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timer-play-btn:hover {
  background: var(--accent-dark);
}

.timer-play-btn.running {
  background: var(--warning);
}

/* Timer Display Main Layout */
.timer-display-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}

.timer-display-main.running .timer-display-box {
  background: var(--warning-light);
  border-color: var(--warning);
  animation: timer-pulse 1s ease-in-out infinite;
}

@keyframes timer-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 15px rgba(var(--warning-rgb), 0.5); }
}

.timer-display-box.disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

/* Quick Set Buttons */
.timer-quick-set {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-3);
}

.timer-quick-set .btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.timer-quick-set .btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Status Controls */
.reporter-status-controls {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Action Buttons */
.reporter-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-2);
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-subtle);
}

.reporter-action-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.action-team-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.reporter-action-btn {
  padding: var(--space-3);
  border-radius: var(--radius);
  border: none;
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reporter-action-btn.goal {
  background: var(--success);
  color: white;
}

.reporter-action-btn.goal:hover {
  background: var(--success-dark);
}

.reporter-action-btn.penalty {
  background: var(--warning);
  color: var(--warning-dark);
}

.reporter-action-btn.penalty:hover {
  background: var(--warning-dark);
  color: white;
}

/* Events Section */
.reporter-events-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-4);
  gap: var(--space-4);
  padding: var(--space-4);
}

.reporter-events-col {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  border: 1px solid var(--border);
}

.events-title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.events-list-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 300px;
  overflow-y: auto;
}

.no-events {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: var(--space-4);
  font-size: var(--text-sm);
}

/* Event Item */
.reporter-event-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

.event-team-indicator {
  width: 4px;
  height: 100%;
  min-height: 32px;
  border-radius: 2px;
}

.event-time-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  min-width: 50px;
}

.event-content {
  flex: 1 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
}

.event-player {
  font-weight: 600;
}

.event-type-badge {
  font-size: var(--text-xs);
  padding: 2px 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.event-duration {
  font-size: var(--text-xs);
  color: var(--warning-dark);
  font-weight: 600;
}

.event-delete-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--danger-light);
  color: var(--danger);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.reporter-event-item:hover .event-delete-btn {
  opacity: 1;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-4);
}

.modal-content {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Confirmation Modal */
.confirm-modal {
  max-width: 350px;
}

.confirm-modal-body {
  padding: var(--space-4);
  text-align: center;
}

.confirm-modal-body p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--border);
}

.confirm-modal-actions .btn {
  flex: 1 1;
}

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

.modal-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-subtle);
  font-size: var(--text-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-search {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.modal-search input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

/* Player Grid */
.player-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: var(--space-2);
  gap: var(--space-2);
  padding: var(--space-3);
  overflow-y: auto;
  max-height: 50vh;
}

.player-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.player-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.player-number {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--accent);
}

.player-name {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.full-width {
  width: calc(100% - var(--space-6));
  margin: var(--space-3);
}

/* Type Grid */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--space-2);
  gap: var(--space-2);
  padding: var(--space-3);
  overflow-y: auto;
  max-height: 60vh;
}

.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.type-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.type-code {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
}

.type-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
}

/* Progressive Modal */
.progressive-modal {
  max-width: 450px;
}

.selection-progress {
  background: var(--bg-subtle);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.selection-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.selection-item:hover {
  background: var(--bg-muted);
}

.selection-item.completed {
  color: var(--success);
}

.selection-label {
  color: var(--text-muted);
  min-width: 80px;
}

.selection-value {
  font-weight: 600;
}

.selection-edit {
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.modal-body {
  flex: 1 1;
  overflow-y: auto;
}

/* Review Screen */
.review-screen {
  padding: var(--space-4);
}

.review-screen h4 {
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
  text-align: center;
}

.review-details {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  color: var(--text-muted);
}

.review-value {
  font-weight: 600;
}

.review-actions {
  display: flex;
  gap: var(--space-3);
}

.review-actions .btn {
  flex: 1 1;
}

/* Duration Control */
.duration-row {
  align-items: center;
}

.duration-control {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.duration-control-detailed {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.duration-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.duration-unit-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.duration-separator {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.duration-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duration-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.duration-value {
  font-weight: 700;
  min-width: 32px;
  text-align: center;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Goalkeeper Button */
.reporter-action-btn.goalkeeper {
  background: var(--bg-muted);
  color: var(--text);
  border: 1px solid var(--border);
}

.reporter-action-btn.goalkeeper:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

/* Event item improvements */
.event-main-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.event-assists {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.event-type-badge.gk {
  background: var(--accent-light);
  color: var(--accent);
}

/* Single column events section */
.reporter-events-section.single {
  grid-template-columns: 1fr;
}

.reporter-events-col.full {
  width: 100%;
}

/* Live Time Display */
.live-indicator-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}

.live-time-display {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.live-period {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.live-clock {
  font-size: var(--text-lg);
  font-weight: 800;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--danger);
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  gap: var(--space-4);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

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

.error-container {
  text-align: center;
  padding: var(--space-12);
  max-width: 500px;
  margin: 0 auto;
}

.error-container h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: var(--danger);
}

.error-message {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.error-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.small { font-size: var(--text-sm); }
.vs-text { color: var(--text-muted); margin: 0 var(--space-1); }
.score { font-weight: 700; font-size: var(--text-lg); }
.no-data {
  color: var(--text-muted);
  font-style: italic;
  padding: var(--space-4);
  text-align: center;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: var(--space-2) var(--space-4);
  z-index: 100;
  transition: top var(--transition-fast);
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 240px;
  }
  
  .admin-main {
    margin-left: 240px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: var(--text-2xl);
  }

  .hero p {
    font-size: var(--text-base);
  }
  
  .hero {
    padding: var(--space-8) var(--space-4);
  }

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

  .scoreboard-teams {
    flex-direction: column;
    gap: var(--space-4);
  }

  .scoreboard-team {
    flex-direction: row;
    max-width: none;
    width: 100%;
    justify-content: space-between;
  }
  
  .scoreboard-score {
    order: -1;
    margin-bottom: var(--space-4);
  }
  
  .scoreboard-score .score {
    font-size: var(--text-3xl);
  }

  .rosters-container {
    grid-template-columns: 1fr;
  }

  .team-hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .team-hero-info h1 {
    font-size: var(--text-2xl);
  }

  .nav {
    gap: var(--space-1);
  }
  
  .nav a {
    padding: var(--space-2) var(--space-2);
    font-size: var(--text-xs);
  }

  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .admin-sidebar-header {
    width: 100%;
    padding: var(--space-4);
  }
  
  .admin-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: var(--space-2);
    gap: var(--space-1);
    overflow-x: auto;
  }
  
  .admin-nav-item {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    border-left: none;
  }
  
  .admin-nav-label,
  .admin-nav-count,
  .admin-sidebar-footer {
    display: none;
  }
  
  .admin-main {
    margin-left: 0;
    padding: var(--space-4);
  }
  
  .match-score-display {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .big-score {
    font-size: var(--text-3xl);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .teams-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-btn {
    flex: 1 1;
    text-align: center;
  }
}

/* ============================================
   PERSON SEARCH SELECT COMPONENT
   ============================================ */
.person-search-select {
  position: relative;
  width: 100%;
}

.person-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.person-search-input-wrapper input[type="text"] {
  width: 100%;
  padding-right: 2rem;
}

.person-search-clear {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.person-search-clear:hover {
  color: var(--danger);
}

.person-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: var(--shadow-md);
}

.person-search-option {
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.person-search-option:hover,
.person-search-option.highlighted {
  background: var(--bg-subtle);
}

.person-search-option.selected {
  background: var(--accent-light);
  color: var(--primary);
}

.person-search-name {
  font-weight: 500;
}

.person-search-cf {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: monospace;
}

.person-search-no-results,
.person-search-more {
  padding: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   EXPIRED MEDICAL INDICATOR
   ============================================ */
.expired-indicator {
  color: var(--danger);
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.player-btn .expired-indicator {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
}

.player-btn.expired {
  border: 2px solid var(--danger);
}

.player-role-badge {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  background: var(--accent);
  color: white;
  font-size: 0.625rem;
  font-weight: bold;
  padding: 0.125rem 0.25rem;
  border-radius: var(--radius-sm);
}

/* ============================================
   COLOR PICKER IMPROVEMENTS
   ============================================ */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-picker-row input[type="color"] {
  width: 50px;
  height: 38px;
  padding: 2px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.color-preview {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.color-picker-row input[type="text"] {
  width: 100px;
  font-family: monospace;
}

.color-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-input input[type="color"] {
  width: 50px;
  height: 38px;
  padding: 2px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.color-input span {
  font-family: monospace;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   SET TIME SECTION
   ============================================ */
.set-time-section {
  background: var(--bg-subtle);
  padding: var(--space-4);
  border-radius: var(--radius);
  margin: var(--space-4) 0;
}

.set-time-section label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.set-time-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.set-time-controls input[type="number"] {
  width: 60px;
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 600;
  padding: var(--space-2);
}

.set-time-controls span {
  font-size: var(--text-xl);
  font-weight: bold;
}

/* ============================================
   PERIOD DURATION SECTION
   ============================================ */
.period-duration-section {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  margin: var(--space-2) 0;
}

.period-duration-section label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.period-duration-section .duration-input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.period-duration-section input[type="number"] {
  width: 60px;
  text-align: center;
  padding: var(--space-2);
}

/* ============================================
   GOALKEEPER SELECTION MODAL 
   ============================================ */
.goalkeeper-selection-modal {
  background: var(--bg-elevated);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.goalkeeper-selection-modal h3 {
  text-align: center;
  margin-bottom: var(--space-4);
  color: var(--primary);
}

.gk-selection-row {
  margin-bottom: var(--space-4);
}

.gk-selection-row label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.gk-selection-row .player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.gk-selection-row .player-btn {
  flex: 1 1;
  min-width: 120px;
}

.gk-selection-row .player-btn.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent-dark);
}

/* ============================================
   PENALTY FORM PANEL
   ============================================ */
.penalty-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.penalty-form .form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.penalty-form .form-row label {
  font-weight: 600;
  color: var(--text-secondary);
}

.penalty-form .time-display {
  font-size: var(--text-lg);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  display: inline-block;
}

.penalty-type-search {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.penalty-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-gap: var(--space-2);
  gap: var(--space-2);
  max-height: 200px;
  overflow-y: auto;
  padding: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius);
}

.penalty-type-btn {
  padding: var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.penalty-type-btn:hover {
  background: var(--bg-muted);
}

.penalty-type-btn.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent-dark);
}

/* Compact Player Grid for forms */
.player-grid.compact {
  max-height: 150px;
  overflow-y: auto;
}

.player-grid.compact .player-btn {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
}

.player-btn.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent-dark);
}

.duration-control {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.duration-control button {
  padding: var(--space-2) var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.duration-control button:hover {
  background: var(--bg-muted);
}

.duration-control span {
  font-size: var(--text-lg);
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

/* ============================================
   ROSTER MANAGER
   ============================================ */
.roster-manager {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.roster-manager h4 {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.roster-add-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.roster-add-row .person-search-select {
  flex: 1 1;
}

.roster-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.roster-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

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

.roster-item .jersey {
  font-weight: 700;
  color: var(--accent);
  min-width: 40px;
}

.roster-item .name {
  flex: 1 1;
}

.roster-item .expired-indicator {
  margin-right: var(--space-2);
}

/* ============================================
   PERSON PROFILE PAGE
   ============================================ */
.person-profile {
  max-width: 900px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-500) 100%);
  border-radius: var(--radius-lg);
  color: white;
}

.profile-photo-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
}

.profile-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  font-weight: 700;
}

.profile-info h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.profile-info .nationality {
  font-size: var(--text-lg);
  opacity: 0.9;
}

.profile-section {
  margin-bottom: var(--space-6);
}

.profile-section h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--border);
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.stat-card h3 {
  font-size: var(--text-lg);
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-gap: var(--space-3);
  gap: var(--space-3);
}

.stats-grid > div {
  text-align: center;
  padding: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius);
}

.stats-grid dt {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-grid dd {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.roles-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.roles-list li {
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ============================================
   TYPE GRID SUGGESTED INDICATOR
   ============================================ */
.type-btn.suggested {
  border: 2px solid var(--success);
  position: relative;
}

.suggested-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--success);
  color: white;
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* ============================================
   RECENT MATCHES LIST
   ============================================ */
.recent-match-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.recent-match-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.recent-match-item .match-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
  min-width: 60px;
}

.recent-match-item .match-teams {
  flex: 1 1;
  font-weight: 500;
}

.recent-match-item .match-score {
  font-weight: 700;
  color: var(--primary);
}

/* ============================================
   BIRTH INFO
   ============================================ */
.profile-info .birth-info {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-top: var(--space-1);
}

/* ============================================
   FORM SECTIONS
   ============================================ */
.form-section {
  margin: var(--space-6) 0;
  padding-top: var(--space-4);
  border-top: 2px solid var(--border);
}

.form-section h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--primary);
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: var(--space-3);
  gap: var(--space-3);
}

.text-muted {
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   FILE UPLOAD COMPONENT
   ============================================ */
.file-upload {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.file-upload-preview {
  position: relative;
  display: inline-block;
}

.file-upload-preview img {
  border-radius: var(--radius);
  border: 2px solid var(--border);
}

.file-upload-clear {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-subtle);
}

.file-upload-dropzone:hover,
.file-upload-dropzone.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.file-upload-dropzone.uploading {
  opacity: 0.6;
  pointer-events: none;
}

.file-upload-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.file-upload-loading {
  color: var(--accent);
  font-weight: 600;
}

.file-upload-error {
  color: var(--danger);
  font-size: var(--text-sm);
}

/* ============================================
   TEAM EVENTS SECTIONS (Reporter Page)
   ============================================ */
.reporter-team-events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-4);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .reporter-team-events {
    grid-template-columns: 1fr;
  }
}

.team-events-section {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 2px solid var(--border);
}

.team-events-section.home {
  border-color: var(--primary);
}

.team-events-section.away {
  border-color: var(--danger);
}

.team-events-header {
  text-align: center;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.team-events-header h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
}

.team-events-section.home .team-events-header h3 {
  color: var(--primary);
}

.team-events-section.away .team-events-header h3 {
  color: var(--danger);
}

.team-subsection {
  margin-bottom: var(--space-4);
}

.team-subsection:last-child {
  margin-bottom: 0;
}

.subsection-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--border-light);
}

.team-subsection .events-list-container {
  max-height: 200px;
  overflow-y: auto;
}

/* Timer Display Only Style */
.timer-display-box.display-only {
  cursor: default;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.timer-max {
  font-size: 0.5em;
  color: var(--text-muted);
  margin-left: var(--space-2);
  font-weight: normal;
}

/* ============================================
   ROSTER MANAGEMENT PANEL
   ============================================ */
.roster-management-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border: 1px solid var(--border);
}

.roster-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--space-2);
}

.roster-tab {
  padding: var(--space-2) var(--space-4);
  border: none;
  background: var(--bg-muted);
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.roster-tab.active {
  background: var(--primary);
  color: white;
}

.roster-tab:hover:not(.active) {
  background: var(--bg-subtle);
}

.roster-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-4);
  gap: var(--space-4);
}

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

.roster-current,
.roster-available {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.roster-current h4,
.roster-available h4 {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.roster-list,
.available-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.roster-search {
  width: 100%;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.roster-item,
.available-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.roster-item.expired,
.available-item.expired {
  border-color: var(--danger);
}

.roster-jersey {
  font-weight: 700;
  min-width: 40px;
  color: var(--text-secondary);
}

.roster-name {
  flex: 1 1;
  font-weight: 500;
}

.roster-role {
  font-size: var(--text-xs);
  padding: 2px 6px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
}

.roster-remove-btn,
.roster-add-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.roster-remove-btn {
  background: var(--danger);
  color: white;
}

.roster-remove-btn:hover {
  background: var(--danger-dark);
}

.roster-add-btn {
  background: var(--success);
  color: white;
}

.roster-add-btn:hover {
  background: var(--success-dark);
}

/* Officials Tab */
.officials-content {
  display: block;
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: var(--space-3);
  gap: var(--space-3);
}

.official-slot {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.official-slot label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.official-slot select {
  width: 100%;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

.official-assigned {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--success);
}

.official-assigned span {
  font-weight: 500;
}

/* ============================================
   PERSON ROLES TOGGLE GRID
   ============================================ */
.roles-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: var(--space-3);
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.role-toggle-item {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: all var(--transition-fast);
}

.role-toggle-item:has(input:checked) {
  background: var(--success-light);
  border: 1px solid var(--success);
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  margin-right: var(--space-2);
}

.toggle-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.toggle-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-left: calc(var(--space-2) + 18px);
}
/* ============================================
   PERSON ROLES LIST
   ============================================ */
.roles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

.role-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.role-badge {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 90px;
  text-align: center;
}

.role-badge.role-player {
  background: var(--primary-light);
  color: var(--primary);
}

.role-badge.role-coach {
  background: #e8f5e9;
  color: #2e7d32;
}

.role-badge.role-manager {
  background: #fff3e0;
  color: #e65100;
}

.role-badge.role-referee {
  background: #e3f2fd;
  color: #1565c0;
}

.role-badge.role-refertista {
  background: #f3e5f5;
  color: #7b1fa2;
}

.role-badge.role-judge {
  background: #fce4ec;
  color: #c2185b;
}

.role-badge.role-none {
  background: var(--bg-muted);
  color: var(--text-muted);
}

/* Role tags container for table cells */
.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.role-details {
  flex: 1 1;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.role-add-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
}

.role-add-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-right: var(--space-2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   REDESIGNED REPORTER PANEL (rp- prefix)
   ============================================ */

:root {
  --color-home: #2563eb;
  --color-away: #dc2626;
}

/* Container */
.rp-container {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: var(--space-8);
  position: relative;
  z-index: 101;
}

/* Loading State */
.rp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: var(--space-4);
  color: var(--text-muted);
}

.rp-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rp-spin 1s linear infinite;
}

@keyframes rp-spin {
  to { transform: rotate(360deg); }
}

.rp-error-state {
  text-align: center;
  padding: var(--space-8);
}

/* Header */
.rp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

.rp-back {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

.rp-back:hover {
  color: var(--text);
}

/* Sync Indicator */
.rp-sync-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.rp-sync-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--indicator-color);
  color: white;
  font-size: 10px;
}

.rp-sync-icon.spinning {
  animation: rp-spin 1s linear infinite;
}

.rp-sync-label {
  color: var(--text-secondary);
}

/* Toast */
.rp-toast {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-weight: 500;
  z-index: 200;
  animation: rp-toast-in 0.3s ease;
  box-shadow: var(--shadow-lg);
}

@keyframes rp-toast-in {
  from { transform: translateX(-50%) translateY(100%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.rp-toast-success {
  background: var(--success);
  color: white;
}

.rp-toast-error {
  background: var(--danger);
  color: white;
}

.rp-toast-info {
  background: var(--primary);
  color: white;
}

.rp-toast button {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.8;
  cursor: pointer;
  font-size: var(--text-lg);
}

/* Buttons */
.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

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

.rp-btn-small {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

.rp-btn-large {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

.rp-btn-block {
  width: 100%;
}

.rp-btn-primary {
  background: var(--primary);
  color: white;
}

.rp-btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.rp-btn-secondary {
  background: var(--bg-muted);
  color: var(--text);
}

.rp-btn-secondary:hover:not(:disabled) {
  background: var(--border);
}

.rp-btn-success {
  background: var(--success);
  color: white;
}

.rp-btn-success:hover:not(:disabled) {
  background: var(--success-dark);
}

.rp-btn-warning {
  background: var(--warning);
  color: var(--warning-dark);
}

.rp-btn-warning:hover:not(:disabled) {
  background: var(--warning-dark);
  color: white;
}

.rp-btn-danger {
  background: var(--danger);
  color: white;
}

/* Scoreboard */
.rp-scoreboard {
  display: flex;
  align-items: stretch;
  background: var(--bg-elevated);
}

.rp-team-score {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.rp-team-score.rp-home {
  background: var(--color-home);
  color: white;
}

.rp-team-score.rp-away {
  background: var(--color-away);
  color: white;
}

.rp-team-name {
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rp-score {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.rp-match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-subtle);
  min-width: 140px;
  gap: var(--space-1);
}

.rp-status-badge {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.rp-status-badge.scheduled {
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.rp-status-badge.in_progress {
  background: var(--danger);
  color: white;
  animation: rp-pulse 2s ease-in-out infinite;
}

.rp-status-badge.completed {
  background: var(--success);
  color: white;
}

@keyframes rp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.rp-period-info {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
}

/* Timer Section (now embedded in scoreboard center) */
.rp-timer-section {
  display: none; /* No longer used as standalone section */
}

/* Compact period controls (inline in scoreboard center) */
.rp-period-controls-inline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.rp-period-btn-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.rp-period-btn-sm:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.rp-period-btn-sm:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.rp-period-label-sm {
  font-size: var(--text-sm);
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* Compact timer display */
.rp-timer-display-compact {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
}

.rp-timer-digits-compact {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  font-size: 1.75rem;
  font-weight: 800;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
}

.rp-timer-digits-compact.running {
  background: var(--warning-light);
  border-color: var(--warning);
  animation: rp-timer-pulse 1s ease-in-out infinite;
}

.rp-timer-max-sm {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* Compact timer controls */
.rp-timer-controls-compact {
  display: flex;
  gap: var(--space-2);
}

.rp-btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

/* Legacy period controls (kept for setTime modal) */
.rp-period-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.rp-period-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: var(--text-xl);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.rp-period-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.rp-period-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.rp-period-label {
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rp-period-label small {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.rp-timer-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.rp-timer-digits {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 3px solid var(--border);
  font-size: 3rem;
  font-weight: 800;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
}

.rp-timer-digits.running {
  background: var(--warning-light);
  border-color: var(--warning);
  animation: rp-timer-pulse 1s ease-in-out infinite;
}

@keyframes rp-timer-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 15px 5px rgba(245, 158, 11, 0.2); }
}

.rp-timer-colon {
  margin: 0 var(--space-1);
  animation: rp-blink 1s step-end infinite;
}

@keyframes rp-blink {
  50% { opacity: 0; }
}

.rp-timer-max {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.rp-timer-controls {
  display: flex;
  gap: var(--space-3);
}

/* Match Control */
.rp-match-control {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

/* Match Control Row */
.rp-match-control-row {
  display: flex;
  gap: var(--space-2);
}

.rp-match-control-row .rp-btn {
  flex: 1 1;
}

/* Tab Navigation */
.rp-tabs {
  display: flex;
  background: var(--bg-elevated);
  border-bottom: 2px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 52px;
  z-index: 90;
}

.rp-tab {
  flex: 1 1;
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.rp-tab:hover {
  color: var(--text);
}

.rp-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Main Content */
.rp-main {
  padding: var(--space-4);
}

/* Quick Actions */
.rp-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-3);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.rp-action-column {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  border: 2px solid var(--border);
}

.rp-action-column.rp-home-col {
  border-color: var(--color-home);
}

.rp-action-column.rp-away-col {
  border-color: var(--color-away);
}

.rp-action-team-name {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-2);
}

.rp-action-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.rp-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius);
  border: none;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rp-action-btn.goal {
  background: var(--success);
  color: white;
}

.rp-action-btn.goal:hover {
  background: var(--success-dark);
}

.rp-action-btn.penalty {
  background: var(--warning);
  color: var(--warning-dark);
}

.rp-action-btn.penalty:hover {
  background: var(--warning-dark);
  color: white;
}

.rp-action-btn.goalkeeper {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.rp-action-btn.goalkeeper:hover {
  background: var(--accent);
  color: white;
}

.rp-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.rp-action-icon {
  font-size: var(--text-base);
  font-weight: 800;
  min-width: 28px;
  text-align: center;
}

/* Events Grid */
.rp-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-4);
  gap: var(--space-4);
}

.rp-events-column {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  border: 1px solid var(--border);
}

.rp-events-column.rp-home-events {
  border-top: 3px solid var(--color-home);
}

.rp-events-column.rp-away-events {
  border-top: 3px solid var(--color-away);
}

.rp-events-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.rp-events-section {
  margin-bottom: var(--space-3);
}

.rp-events-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.rp-events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 200px;
  overflow-y: auto;
}

.rp-no-events {
  color: var(--text-muted);
  font-style: italic;
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-2);
}

/* Event Card */
.rp-event-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border-left: 3px solid var(--team-color, var(--border));
  font-size: var(--text-sm);
}

.rp-event-time {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  min-width: 45px;
}

.rp-event-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-event-main {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.rp-event-player {
  font-weight: 600;
}

.rp-event-badge {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.rp-event-badge.penalty {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.rp-event-badge.gk {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.rp-event-duration {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.rp-event-assists {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.rp-event-delete {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-event-delete:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Roster Tab */
.rp-roster-tab {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rp-roster-team-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.rp-roster-team-tab {
  flex: 1 1;
  padding: var(--space-3);
  background: none;
  border: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
}

.rp-roster-team-tab:hover {
  background: var(--bg-subtle);
}

.rp-roster-team-tab.active {
  color: var(--text);
}

.rp-roster-team-tab.active.home {
  border-bottom-color: var(--color-home);
  color: var(--color-home);
}

.rp-roster-team-tab.active.away {
  border-bottom-color: var(--color-away);
  color: var(--color-away);
}

.rp-roster-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-4);
  gap: var(--space-4);
  padding: var(--space-4);
}

.rp-roster-current,
.rp-roster-available {
  display: flex;
  flex-direction: column;
}

.rp-roster-current h4,
.rp-roster-available h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.rp-search-input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

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

.rp-roster-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 350px;
  overflow-y: auto;
}

.rp-roster-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

.rp-roster-item.expired {
  background: var(--danger-light);
  opacity: 0.8;
}

.rp-roster-item.available {
  background: var(--bg);
  border: 1px solid var(--border);
}

.rp-roster-jersey {
  font-weight: 700;
  min-width: 35px;
}

.rp-roster-name {
  flex: 1 1;
}

.rp-roster-role {
  padding: 2px 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

.rp-roster-role-select,
.rp-captain-select {
  padding: 2px 4px;
  font-size: var(--text-xs);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  max-width: 120px;
}

.rp-roster-role-select:focus,
.rp-captain-select:focus {
  border-color: var(--primary);
  outline: none;
}

.rp-captain-buttons {
  display: flex;
  gap: 4px;
}

.rp-captain-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.rp-captain-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.rp-captain-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.rp-expired-badge {
  padding: 2px 6px;
  background: var(--danger);
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

.rp-roster-remove,
.rp-roster-add {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.rp-roster-remove {
  background: transparent;
  color: var(--text-muted);
}

.rp-roster-remove:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.rp-roster-add {
  background: var(--success);
  color: white;
}

.rp-roster-add:hover {
  background: var(--success-dark);
}

/* Captain/Alternate Button */
.rp-captain-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.rp-captain-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.rp-captain-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.rp-captain-btn.captain {
  background: var(--warning);
  color: white;
  border-color: var(--warning);
}

.rp-captain-btn.captain:hover {
  background: var(--warning-dark);
  color: white;
}

.rp-captain-btn.alternate {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-color: var(--accent-light);
}

.rp-captain-btn.alternate:hover {
  background: var(--accent);
  color: white;
}

/* Officials Tab */
.rp-officials-tab {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.rp-officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: var(--space-3);
  gap: var(--space-3);
}

.rp-official-slot {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.rp-official-slot label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.rp-official-slot select {
  width: 100%;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: var(--text-sm);
}

/* PersonSearchSelect within official slot */
.rp-official-slot .person-search-select {
  width: 100%;
}

.rp-official-slot .person-search-input-wrapper input[type="text"] {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  padding-right: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: var(--text-sm);
  color: var(--text);
}

.rp-official-slot .person-search-input-wrapper input[type="text"]::placeholder {
  color: var(--text-muted);
}

.rp-official-slot .person-search-input-wrapper input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.rp-official-slot .person-search-dropdown {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 2px;
}

.rp-official-assigned {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2);
  background: var(--bg);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
}

.rp-official-assigned button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.rp-official-assigned button:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Staff Section in Roster Tab */
.rp-staff-section {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.rp-staff-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
}

.rp-staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: var(--space-3);
  gap: var(--space-3);
}

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

.rp-staff-slot {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.rp-staff-slot label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.rp-staff-slot .person-search-select {
  width: 100%;
}

.rp-staff-slot .person-search-input-wrapper input[type="text"] {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  padding-right: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: var(--text-sm);
  color: var(--text);
}

.rp-staff-slot .person-search-input-wrapper input[type="text"]::placeholder {
  color: var(--text-muted);
}

.rp-staff-slot .person-search-input-wrapper input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.rp-staff-slot .person-search-dropdown {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 2px;
}

.rp-staff-assigned {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2);
  background: var(--bg);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
}

.rp-staff-assigned button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.rp-staff-assigned button:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Modals */
.rp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space-4);
}

.rp-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  width: 100%;
}

.rp-modal-small {
  max-width: 360px;
}

.rp-modal-medium {
  max-width: 500px;
}

.rp-modal-large {
  max-width: 700px;
}

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

.rp-modal-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.rp-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: var(--text-xl);
  cursor: pointer;
  color: var(--text-muted);
}

.rp-modal-close:hover {
  background: var(--bg-muted);
}

.rp-modal-body {
  padding: var(--space-4);
}

.rp-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  margin-top: var(--space-4);
}

/* Confirm Dialog */
.rp-confirm-dialog .rp-modal-body {
  padding: var(--space-4);
}

.rp-confirm-dialog .rp-modal-body p {
  text-align: center;
  color: var(--text-secondary);
}

.rp-confirm-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4);
}

/* Player Button */
.rp-player-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 70px;
}

.rp-player-btn.compact {
  flex-direction: row;
  min-width: auto;
  padding: var(--space-1) var(--space-2);
}

.rp-player-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.rp-player-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.rp-player-btn.expired {
  border-color: var(--danger);
  opacity: 0.7;
}

.rp-player-number {
  font-weight: 700;
  font-size: var(--text-sm);
}

.rp-player-name {
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

.rp-player-gk {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-player-btn {
  position: relative;
}

.rp-expired-dot {
  position: absolute;
  top: -2px;
  left: -2px;
  color: var(--danger);
  font-size: var(--text-xs);
}

/* Player Grid */
.rp-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  grid-gap: var(--space-2);
  gap: var(--space-2);
  max-height: 200px;
  overflow-y: auto;
  padding: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius);
}

/* Player Select Dropdown */
.rp-player-select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.rp-player-select:focus {
  border-color: var(--primary);
  outline: none;
}

.rp-selected-player {
  display: inline-block;
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Form Sections */
.rp-form-time {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.rp-form-time-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.rp-form-time-value {
  font-size: var(--text-xl);
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.rp-form-section {
  margin-bottom: var(--space-4);
}

.rp-form-section label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.rp-form-section select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  background: var(--bg);
}

.rp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-3);
  gap: var(--space-3);
}

.rp-form-section.half {
  margin-bottom: var(--space-3);
}

/* Type Grid */
.rp-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: var(--space-2);
  gap: var(--space-2);
}

.rp-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.rp-type-btn:hover {
  border-color: var(--primary);
}

.rp-type-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.rp-type-btn.suggested {
  border-color: var(--success);
  background: var(--success-light);
}

.rp-type-btn.suggested.selected {
  background: var(--success);
  color: white;
}

.rp-suggested-label {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 6px;
  background: var(--success);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.rp-type-code {
  font-weight: 700;
  font-size: var(--text-lg);
}

.rp-type-label {
  font-size: var(--text-xs);
  color: inherit;
  opacity: 0.8;
}

/* Penalty Type Grid */
.rp-penalty-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-gap: var(--space-2);
  gap: var(--space-2);
  max-height: 250px;
  overflow-y: auto;
}

.rp-penalty-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2);
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rp-penalty-type-btn:hover {
  border-color: var(--warning);
}

.rp-penalty-type-btn.selected {
  border-color: var(--warning);
  background: var(--warning);
  color: var(--warning-dark);
}

.rp-penalty-label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.rp-penalty-duration {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.rp-penalty-type-btn.selected .rp-penalty-duration {
  color: inherit;
}

/* Foul Type Grid */
.rp-foul-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  grid-gap: var(--space-2);
  gap: var(--space-2);
  max-height: 200px;
  overflow-y: auto;
}

.rp-foul-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rp-foul-type-btn:hover {
  border-color: var(--warning);
}

.rp-foul-type-btn.selected {
  border-color: var(--warning);
  background: var(--warning);
  color: var(--warning-dark, #000);
}

.rp-foul-label {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Severity Chips */
.rp-severity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.rp-severity-chip {
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.rp-severity-chip:hover {
  border-color: var(--warning);
}

.rp-severity-chip.selected {
  border-color: var(--warning);
  background: var(--warning);
  color: var(--warning-dark, #000);
}

.rp-severity-chip.custom {
  border-style: dashed;
}

.rp-severity-chip.custom.selected {
  border-style: solid;
}

/* Custom Duration Input */
.rp-custom-duration-input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rp-custom-duration-input .rp-time-input {
  width: 80px;
}

/* Penalty Summary */
.rp-penalty-summary {
  padding: var(--space-3);
  background: var(--bg-muted);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* Penalty Severity Badge */
.rp-event-badge.penalty-severity {
  background: var(--bg-muted);
  color: var(--text);
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Duration Control */
.rp-duration-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.rp-duration-control button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: var(--text-xl);
  font-weight: 700;
  cursor: pointer;
}

.rp-duration-control button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.rp-duration-control span {
  font-size: var(--text-xl);
  font-weight: 700;
  min-width: 80px;
  text-align: center;
}

/* Goalkeeper Event Grid */
.rp-gk-event-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: var(--space-2);
  gap: var(--space-2);
}

.rp-gk-event-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rp-gk-event-btn:hover {
  border-color: var(--primary);
}

.rp-gk-event-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.rp-gk-event-icon {
  font-size: var(--text-xl);
}

.rp-gk-event-label {
  font-size: var(--text-xs);
  font-weight: 600;
}

/* Toggle label for showing all players in goalie modal */
.rp-toggle-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: var(--space-2);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.rp-toggle-label input[type="checkbox"] {
  accent-color: var(--primary);
}

/* Start Match Content */
.rp-start-match-content {
  padding: var(--space-3);
}

.rp-gk-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-4);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.rp-gk-team h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
  text-align: center;
}

.rp-gk-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  grid-gap: var(--space-2);
  gap: var(--space-2);
}

/* Set Time Content */
.rp-set-time-content {
  text-align: center;
}

.rp-time-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.rp-time-input {
  width: 80px;
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
}

.rp-time-input:focus {
  outline: none;
  border-color: var(--primary);
}

.rp-time-separator {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.rp-quick-times {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.rp-quick-times button {
  padding: var(--space-2) var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.rp-quick-times button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .rp-scoreboard {
    flex-direction: column;
  }
  
  .rp-team-score {
    flex-direction: row;
    justify-content: space-between;
    padding: var(--space-3);
  }
  
  .rp-team-name {
    font-size: var(--text-base);
    margin-bottom: 0;
  }
  
  .rp-score {
    font-size: 2.5rem;
  }
  
  .rp-match-center {
    flex-direction: column;
    padding: var(--space-2);
    gap: var(--space-1);
    order: -1;
    width: 100%;
  }

  .rp-match-center .rp-period-controls-inline,
  .rp-match-center .rp-timer-display-compact,
  .rp-match-center .rp-timer-controls-compact {
    justify-content: center;
  }
  
  .rp-timer-digits-compact {
    font-size: 1.5rem;
  }

  .rp-timer-digits {
    font-size: 2rem;
    padding: var(--space-2) var(--space-3);
  }
  
  .rp-quick-actions {
    grid-template-columns: 1fr;
  }
  
  .rp-events-grid {
    grid-template-columns: 1fr;
  }
  
  .rp-roster-content {
    grid-template-columns: 1fr;
  }
  
  .rp-gk-selection {
    grid-template-columns: 1fr;
  }
  
  .rp-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rp-gk-event-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .rp-form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ROLE CHIPS UI (Person Edit Page)
   ============================================ */

/* -- Chip row -- */
.role-chips-container {
  margin-top: var(--space-2);
}

.role-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: flex-start;
}

/* -- Individual chip button -- */
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}

/* Active (role assigned) chip styles */
.role-chip.active.role-player   { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.role-chip.active.role-coach    { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.role-chip.active.role-manager  { background: #fff3e0; color: #e65100; border-color: #ffcc80; }
.role-chip.active.role-referee  { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.role-chip.active.role-refertista { background: #f3e5f5; color: #7b1fa2; border-color: #ce93d8; }
.role-chip.active.role-judge    { background: #fce4ec; color: #c2185b; border-color: #f48fb1; }
.role-chip.active.role-announcer { background: #e0f2f1; color: #00695c; border-color: #80cbc4; }

.role-chip.active:hover {
  filter: brightness(0.95);
}

/* Inactive (no role) chip styles — outlined / ghost */
.role-chip.inactive {
  background: transparent;
  color: var(--text-muted);
  border: 2px dashed var(--border);
}

.role-chip.inactive.role-player:hover   { border-color: #90caf9; color: #1565c0; background: #e3f2fd33; }
.role-chip.inactive.role-coach:hover    { border-color: #a5d6a7; color: #2e7d32; background: #e8f5e933; }
.role-chip.inactive.role-manager:hover  { border-color: #ffcc80; color: #e65100; background: #fff3e033; }
.role-chip.inactive.role-referee:hover  { border-color: #90caf9; color: #1565c0; background: #e3f2fd33; }
.role-chip.inactive.role-refertista:hover { border-color: #ce93d8; color: #7b1fa2; background: #f3e5f533; }
.role-chip.inactive.role-judge:hover    { border-color: #f48fb1; color: #c2185b; background: #fce4ec33; }
.role-chip.inactive.role-announcer:hover { border-color: #80cbc4; color: #00695c; background: #e0f2f133; }

/* Selected chip highlight */
.role-chip.selected {
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.25);
}

/* "+" icon in chip */
.role-chip-plus {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

/* Disabled indicator dot (for inactive roles) */
.role-chip-disabled {
  font-size: 8px;
  opacity: 0.5;
  margin-left: 2px;
}

/* -- Panel that opens below chips -- */
.role-chip-panel {
  width: 100%;
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: chipPanelIn 0.15s ease;
}

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

/* -- View mode: detail grid -- */
.role-chip-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.role-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.role-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-detail-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.role-detail-value {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
}

/* -- Action buttons row -- */
.role-chip-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* -- Form (edit/add) -- */
.role-chip-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.role-inline-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: var(--space-2);
  gap: var(--space-2);
  align-items: end;
}

.inline-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inline-form-group label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.inline-form-group input,
.inline-form-group select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--bg-elevated);
}

.inline-form-group input:focus,
.inline-form-group select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.15);
}

.role-badge.role-announcer {
  background: #e0f2f1;
  color: #00695c;
}

/* Alert success */
.alert-success {
  background: var(--success-light, #e8f5e9);
  color: var(--success-dark, #2e7d32);
  border: 1px solid var(--success, #4caf50);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .role-chips-row {
    gap: var(--space-1);
  }

  .role-chip {
    font-size: var(--text-xs);
    padding: 5px 10px;
  }

  .role-detail-grid {
    flex-direction: column;
    gap: var(--space-2);
  }

  .role-inline-fields {
    grid-template-columns: 1fr;
  }
}
