/* ════════════════════════════════════════════════════════════════════
   LeaguEvo Demo Walkthrough — Design System
   Brand: LeaguEvo v1 Final
   Typography: Inter + Manrope
   Colors: Navy #061B33, Teal #00D4AA, Shadow #009E83
   Spacing: 8-point grid
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@700;800&display=swap');

:root {
  /* Brand Colors */
  --lv-navy: #061B33;
  --lv-navy-light: #0c2d4d;
  --lv-navy-mid: #1a3f5e;
  --lv-teal: #00D4AA;
  --lv-teal-shadow: #009E83;
  --lv-teal-glow: rgba(0, 212, 170, 0.12);
  --lv-teal-light: #ccfff4;
  --lv-dark: #0F172A;

  /* Semantic Colors */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #eff6ff;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --destructive: #ef4444;
  --destructive-light: #fef2f2;

  /* Neutral Palette */
  --foreground: #0f172a;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --muted: #f8fafc;
  --background: #ffffff;
  --card: #ffffff;

  /* Spacing (8pt grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(6,27,51,0.04);
  --shadow-sm: 0 2px 4px rgba(6,27,51,0.06);
  --shadow: 0 4px 12px rgba(6,27,51,0.08);
  --shadow-md: 0 8px 24px rgba(6,27,51,0.1);
  --shadow-lg: 0 16px 40px rgba(6,27,51,0.12);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  color: var(--foreground);
  background: #f4f7fa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--primary-dark); }

code {
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.84em;
  background: var(--border-light);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--lv-navy);
}

/* ════════════════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════════════════ */
.demo-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  grid-template-rows: 56px 1fr;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════ */
.demo-header {
  grid-column: 1 / -1;
  background: var(--lv-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,212,170,0.15), 0 4px 12px rgba(6,27,51,0.3);
}

.demo-header .logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: white;
}
.demo-header .logo:hover { text-decoration: none; color: white; }
.demo-header .logo span { color: var(--lv-teal); }

.demo-header .persona-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.demo-header .persona-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lv-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--lv-navy);
  box-shadow: 0 0 0 2px rgba(0,212,170,0.3);
}

.demo-header .persona-info { text-align: right; }
.demo-header .persona-name { font-weight: 600; font-size: 0.82rem; }
.demo-header .persona-role { color: rgba(255,255,255,0.5); font-size: 0.7rem; }

.demo-header .progress-section {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.progress-bar {
  width: 160px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--lv-teal);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.progress-label { font-size: 0.68rem; color: rgba(255,255,255,0.5); white-space: nowrap; }

/* ════════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════════ */
.demo-sidebar {
  background: var(--background);
  border-right: 1px solid var(--border);
  padding: var(--space-5) var(--space-3);
  overflow-y: auto;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
}

.demo-sidebar .nav-section { margin-bottom: var(--space-2); }

.demo-sidebar .nav-section-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  padding: var(--space-2) var(--space-3) var(--space-1);
}

.demo-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  font-weight: 500;
  margin-bottom: 1px;
}

.demo-sidebar .nav-link:hover {
  background: var(--border-light);
  color: var(--foreground);
  text-decoration: none;
}

.demo-sidebar .nav-link.active {
  background: var(--lv-navy);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.demo-sidebar .nav-link .nav-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.demo-sidebar .nav-link.active .nav-number {
  background: var(--lv-teal);
  color: var(--lv-navy);
}

/* ════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════════════════════════════════ */
.demo-main {
  padding: var(--space-10) var(--space-12);
  max-width: 1060px;
  overflow-y: auto;
}

/* ════════════════════════════════════════════════════════════════════
   PAGE HEADER
   ════════════════════════════════════════════════════════════════════ */
.page-header { margin-bottom: var(--space-10); }
.page-header .breadcrumb { font-size: 0.76rem; color: var(--muted-foreground); margin-bottom: var(--space-2); }
.page-header .breadcrumb a { color: var(--lv-teal-shadow); }
.page-header .breadcrumb a:hover { color: var(--lv-teal); text-decoration: underline; }
.page-header h1 { font-family: 'Manrope', 'Inter', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--lv-navy); letter-spacing: -0.4px; margin-bottom: var(--space-2); }
.page-header .subtitle { font-size: 0.9rem; color: var(--muted-foreground); max-width: 620px; line-height: 1.55; }

/* ════════════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════════════ */
.screen-section, .demo-section { margin-bottom: var(--space-12); }
.screen-section-title, .demo-section > h2 { font-family: 'Manrope', 'Inter', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--lv-navy); margin-bottom: var(--space-4); letter-spacing: -0.2px; }
.section-description { font-size: 0.86rem; color: var(--muted-foreground); margin-bottom: var(--space-4); margin-top: -var(--space-2); line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.card-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--muted);
}

.card-header h3, .card-header .card-title { font-size: 0.9rem; font-weight: 700; color: var(--lv-navy); margin: 0; }
.card-header .card-actions { display: flex; gap: var(--space-2); align-items: center; }
.card-body { padding: var(--space-5); }
.card-footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border); background: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.card-template { transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.card-template:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-inner { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-xs); }
.card-highlight { border-color: var(--lv-teal); border-width: 2px; }
.card-email { background: var(--muted); }

/* ════════════════════════════════════════════════════════════════════
   ANNOTATIONS
   ════════════════════════════════════════════════════════════════════ */
.annotation {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: linear-gradient(135deg, rgba(0,212,170,0.06) 0%, rgba(0,212,170,0.03) 100%);
  border: 1px solid rgba(0,212,170,0.25);
  border-left: 4px solid var(--lv-teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
}

.annotation-icon { flex-shrink: 0; font-size: 1.1rem; line-height: 1.4; }
.annotation-content { font-size: 0.84rem; color: var(--lv-navy); line-height: 1.55; font-weight: 500; }

.annotation-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--lv-teal); display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; color: var(--lv-navy);
  cursor: pointer; animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,212,170,0); }
}

.annotation-tooltip { font-size: 0.84rem; color: var(--lv-navy); line-height: 1.55; font-weight: 500; }
.annotation-tooltip .tooltip-title { font-weight: 700; margin-bottom: var(--space-1); color: var(--lv-teal-shadow); }

/* ════════════════════════════════════════════════════════════════════
   CALLOUTS
   ════════════════════════════════════════════════════════════════════ */
.callout {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-4) 0;
  font-size: 0.85rem;
  line-height: 1.55;
}
.callout strong { display: block; margin-bottom: var(--space-1); font-weight: 700; color: #92400e; }
.callout-info { background: var(--primary-light); border-left-color: var(--primary); }
.callout-info strong { color: var(--primary-dark); }
.callout-success { background: var(--success-light); border-left-color: var(--success); }
.callout-success strong { color: #065f46; }

/* ════════════════════════════════════════════════════════════════════
   BADGES
   ════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; white-space: nowrap;
}
.badge-success, .badge-green { background: var(--success-light); color: #065f46; }
.badge-warning, .badge-yellow { background: var(--warning-light); color: #92400e; }
.badge-danger, .badge-red { background: var(--destructive-light); color: #991b1b; }
.badge-info { background: var(--primary-light); color: #1e40af; }
.badge-muted, .badge-gray { background: var(--border-light); color: var(--muted-foreground); }
.badge-teal { background: rgba(0,212,170,0.1); color: var(--lv-teal-shadow); }
.badge-league { background: #ede9fe; color: #5b21b6; }
.badge-persona { background: var(--primary-light); color: var(--primary-dark); }

/* ════════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 0.84rem; font-weight: 600; border: none;
  cursor: pointer; transition: all var(--duration) var(--ease);
  text-decoration: none; white-space: nowrap; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--lv-teal); color: var(--lv-navy); }
.btn-primary:hover { background: var(--lv-teal-shadow); color: white; box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--lv-navy); color: white; }
.btn-secondary:hover { background: var(--lv-navy-light); box-shadow: var(--shadow-sm); }
.btn-outline { background: white; border: 1.5px solid var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); border-color: var(--lv-navy-mid); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--destructive); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #d97706; }
.btn-ghost { background: transparent; color: var(--muted-foreground); padding: 6px 10px; }
.btn-ghost:hover { background: var(--border-light); color: var(--foreground); transform: none; }
.btn-link { background: none; border: none; color: var(--primary); padding: 4px 8px; font-size: 0.8rem; }
.btn-link:hover { text-decoration: underline; transform: none; }
.btn-danger-text { color: var(--destructive) !important; }
.btn-sm { padding: 6px 12px; font-size: 0.76rem; }

/* ════════════════════════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════════════════════════ */
.table-wrapper, .table-responsive { overflow-x: auto; }

table, .table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
table th, .table th {
  text-align: left; padding: 11px 18px;
  font-weight: 600; color: var(--muted-foreground);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 2px solid var(--border); background: var(--muted);
}
table td, .table td {
  padding: 13px 18px; border-bottom: 1px solid var(--border-light); vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: rgba(0,212,170,0.02); }
.row-vacant td { color: var(--muted-foreground); font-style: italic; }
.table-compact td { padding: 9px 14px; font-size: 0.82rem; }
.table-compact th { padding: 8px 14px; }

/* ════════════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: var(--space-4); }
.form-label { display: block; font-size: 0.76rem; font-weight: 600; margin-bottom: 6px; color: var(--foreground); }

.form-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.88rem; background: var(--background); color: var(--foreground);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.form-input:focus { outline: none; border-color: var(--lv-teal); box-shadow: 0 0 0 3px rgba(0,212,170,0.12); }
.form-input:disabled, .form-input-filled, .input-muted {
  background: var(--muted); color: var(--muted-foreground); border-color: var(--border-light);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.form-grid .full-width { grid-column: 1 / -1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 14px; }
.demo-form { }

.form-section-title {
  font-size: 0.86rem; font-weight: 700; color: var(--lv-navy);
  margin: var(--space-6) 0 var(--space-4);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--border-light);
}
.form-section-title:first-child { margin-top: 0; }

/* Form values in review mode */
.form-input label, .form-grid .form-input label {
  display: block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted-foreground); margin-bottom: 4px;
}
.form-value { font-size: 0.88rem; font-weight: 500; color: var(--foreground); }
.form-value a { color: var(--primary); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border-light); }

/* Fix form-input used as container (subagent pattern) */
.form-grid .form-input { width: auto; padding: 0; border: none; background: none; }

/* ════════════════════════════════════════════════════════════════════
   STEPPER
   ════════════════════════════════════════════════════════════════════ */
.stepper { display: flex; align-items: center; margin-bottom: var(--space-8); flex-wrap: wrap; }
.stepper-step { display: flex; align-items: center; gap: var(--space-2); }
.stepper-circle, .stepper-indicator {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  background: var(--border-light); color: var(--muted-foreground);
  flex-shrink: 0; border: 2px solid var(--border); transition: all var(--duration) var(--ease);
}
.stepper-step.active .stepper-circle, .stepper-step.active .stepper-indicator {
  background: var(--lv-teal); color: var(--lv-navy); border-color: var(--lv-teal); box-shadow: 0 0 0 4px rgba(0,212,170,0.15);
}
.stepper-step.completed .stepper-circle, .stepper-step.completed .stepper-indicator {
  background: var(--success); color: white; border-color: var(--success);
}
.stepper-label { font-size: 0.78rem; font-weight: 500; color: var(--muted-foreground); }
.stepper-step.active .stepper-label { font-weight: 700; color: var(--lv-navy); }
.stepper-step.completed .stepper-label { color: var(--success); }
.stepper-connector { width: 32px; height: 2px; background: var(--border); margin: 0 6px; border-radius: 1px; }
.stepper-connector.completed { background: var(--success); }

/* ════════════════════════════════════════════════════════════════════
   CHIPS
   ════════════════════════════════════════════════════════════════════ */
.chip-list, .chips-container { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 500;
  border: 1.5px solid var(--border); background: var(--background);
  cursor: default; transition: all var(--duration) var(--ease);
}
.chip:hover { border-color: var(--lv-teal); }
.chip.selected, .chip-selected, .chip.chip-selected {
  background: var(--lv-navy); color: white; border-color: var(--lv-navy); font-weight: 600;
}
.chip-small { padding: 4px 10px; font-size: 0.74rem; }

/* ════════════════════════════════════════════════════════════════════
   STATS
   ════════════════════════════════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.stats-grid-2col { grid-template-columns: 1fr 1fr; }
.stats-grid-3col { grid-template-columns: 1fr 1fr 1fr; }

.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-5); transition: box-shadow var(--duration) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card .stat-label { font-size: 0.7rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--lv-navy); margin-top: var(--space-1); letter-spacing: -0.5px; }
.stat-card .stat-change { font-size: 0.72rem; margin-top: var(--space-2); font-weight: 500; }
.stat-card .stat-change.positive { color: var(--success); }
.stat-card .stat-change.negative { color: var(--destructive); }

/* Stats row (used in club detail) */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: var(--space-4); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border-light); }
.stat-item { text-align: center; }
.stat-item .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--lv-navy); letter-spacing: -0.5px; }
.stat-item .stat-label { font-size: 0.7rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-top: 2px; }

/* ════════════════════════════════════════════════════════════════════
   CLUB DETAIL
   ════════════════════════════════════════════════════════════════════ */
.club-header { display: flex; align-items: flex-start; gap: var(--space-5); }
.club-logo-placeholder {
  width: 68px; height: 68px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(0,158,131,0.08));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: var(--lv-teal-shadow);
  flex-shrink: 0; border: 2px solid var(--border);
}
.club-info { flex: 1; }
.club-name-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-1); }
.club-name-row h3 { font-size: 1.2rem; font-weight: 800; color: var(--lv-navy); margin: 0; }
.club-slug { font-size: 0.78rem; color: var(--muted-foreground); margin-bottom: var(--space-3); }
.club-contact { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: 0.82rem; color: var(--muted-foreground); }
.club-contact a { color: var(--primary); }

/* ════════════════════════════════════════════════════════════════════
   DETAIL GRID (league detail)
   ════════════════════════════════════════════════════════════════════ */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-6); }
.detail-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); margin-bottom: var(--space-1); }
.detail-value { font-size: 0.88rem; font-weight: 500; color: var(--foreground); }

/* ════════════════════════════════════════════════════════════════════
   REQUEST ITEMS
   ════════════════════════════════════════════════════════════════════ */
.request-item { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--border-light); }
.request-item:last-child { border-bottom: none; }
.request-info { display: flex; align-items: flex-start; gap: var(--space-4); flex: 1; }
.request-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), rgba(0,212,170,0.1)); display: flex; align-items: center; justify-content: center; font-size: 0.76rem; font-weight: 700; color: var(--lv-navy); flex-shrink: 0; }
.request-details { display: flex; flex-direction: column; gap: 3px; }
.request-details strong { font-size: 0.88rem; color: var(--foreground); }
.request-meta { font-size: 0.76rem; color: var(--muted-foreground); }
.request-note { font-size: 0.82rem; color: var(--lv-navy-mid); font-style: italic; margin-top: var(--space-1); padding-left: var(--space-3); border-left: 2px solid var(--border); }
.request-actions { display: flex; gap: var(--space-2); flex-shrink: 0; align-items: flex-start; }

/* ════════════════════════════════════════════════════════════════════
   LIST ITEMS & AVATARS
   ════════════════════════════════════════════════════════════════════ */
.list-item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-light); transition: background var(--duration) var(--ease); }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--muted); }
.list-item-content { flex: 1; min-width: 0; }
.list-item-title { font-weight: 600; font-size: 0.86rem; color: var(--foreground); }
.list-item-subtitle { font-size: 0.76rem; color: var(--muted-foreground); margin-top: 2px; }
.list-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.avatar-lg { width: 52px; height: 52px; font-size: 0.88rem; }

/* Checklist items */
.list-item.checklist { display: flex; align-items: center; gap: var(--space-3); }
.checklist-icon { font-size: 1.1rem; flex-shrink: 0; }
.checklist-complete .list-item-title { color: var(--success); }
.checklist-pending .list-item-title { color: var(--warning); }
.checklist-missing .list-item-title { color: var(--destructive); }

/* ════════════════════════════════════════════════════════════════════
   MISCELLANEOUS
   ════════════════════════════════════════════════════════════════════ */
.tiebreaker-list { list-style: decimal; padding-left: 20px; font-size: 0.85rem; line-height: 2; }
.constraint-list { list-style: none; padding: 0; font-size: 0.85rem; line-height: 2.2; }
.constraint-list li::before { content: "✅ "; }
.slot-list { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.status-actions { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.text-muted { color: var(--muted-foreground); }
.module-subtitle { font-size: 0.9rem; color: var(--muted-foreground); margin-bottom: var(--space-5); }
.color-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid rgba(0,0,0,0.08); }
.toggle { display: inline-flex; align-items: center; gap: var(--space-2); }
.toggle-switch { width: 36px; height: 20px; border-radius: 10px; background: var(--border); position: relative; }
.toggle-switch.on { background: var(--lv-teal); }
.toggle-switch::after { content: ''; width: 16px; height: 16px; border-radius: 50%; background: white; position: absolute; top: 2px; left: 2px; transition: left 0.2s; box-shadow: var(--shadow-xs); }
.toggle-switch.on::after { left: 18px; }

/* Score helpers */
.score-highlight { font-weight: 700; color: var(--lv-navy); }
.score-positive { color: var(--success); font-weight: 600; }
.score-negative { color: var(--destructive); font-weight: 600; }

/* Grids & dividers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-5); }
.divider { height: 1px; background: var(--border); margin: var(--space-6) 0; }

/* Tabs */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: var(--space-5); }
.tab { padding: var(--space-3) var(--space-5); font-size: 0.84rem; font-weight: 600; color: var(--muted-foreground); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--duration) var(--ease); }
.tab:hover { color: var(--foreground); }
.tab.active { color: var(--lv-teal-shadow); border-bottom-color: var(--lv-teal); }

/* Navigation footer */
.nav-footer, #nav-footer { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--border); }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .demo-layout { grid-template-columns: 1fr; }
  .demo-sidebar { display: none; }
  .demo-main { padding: var(--space-6) var(--space-5) var(--space-12); }
  .form-grid, .form-row { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .club-header { flex-direction: column; }
  .request-item { flex-direction: column; }
  .request-actions { align-self: flex-start; }
  .stepper-connector { width: 16px; }
}

@media (max-width: 480px) {
  .stats-grid, .stats-row { grid-template-columns: 1fr; }
  .demo-main { padding: var(--space-4) var(--space-3) var(--space-10); }
  .card-body { padding: var(--space-4); }
  .page-header h1 { font-size: 1.3rem; }
}

/* ════════════════════════════════════════════════════════════════════
   FORM ELEMENTS (select, textarea, inputs inside forms)
   ════════════════════════════════════════════════════════════════════ */
.demo-form select,
.demo-form textarea,
.demo-form input,
.form-input select,
.form-input textarea,
.form-input input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--background);
  color: var(--foreground);
  transition: border-color var(--duration) var(--ease);
}

.demo-form select:disabled,
.demo-form textarea[readonly],
.demo-form input[readonly],
.demo-form input:disabled {
  background: var(--muted);
  color: var(--muted-foreground);
  border-color: var(--border-light);
  cursor: default;
}

.demo-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.demo-form textarea { resize: vertical; min-height: 60px; }

/* Form inputs as containers (review mode in subagent pages) */
.demo-form .form-input {
  width: auto;
  padding: 0;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-form .form-input label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

/* ════════════════════════════════════════════════════════════════════
   MISSING CLASSES FROM MODULE PAGES
   ════════════════════════════════════════════════════════════════════ */

/* Detail field (used in league detail grid) */
.detail-field { }

/* Club detail card (no extra styles needed beyond .card) */
.club-detail-card { }

/* ════════════════════════════════════════════════════════════════════
   HR STYLING (used as section dividers in module 02)
   ════════════════════════════════════════════════════════════════════ */
hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: var(--space-6) 0;
}

/* ════════════════════════════════════════════════════════════════════
   H4 INSIDE CARDS (sub-headings for config sections)
   ════════════════════════════════════════════════════════════════════ */
.card-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lv-navy);
  margin-bottom: var(--space-3);
}

/* ════════════════════════════════════════════════════════════════════
   STATUS ACTIONS (league detail transitions) — fix alignment
   ════════════════════════════════════════════════════════════════════ */
.status-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.status-actions .detail-label {
  margin-bottom: 0;
  margin-right: var(--space-2);
}

/* ════════════════════════════════════════════════════════════════════
   UL/OL LIST FIXES (when .list-item is used on a <ul> container)
   ════════════════════════════════════════════════════════════════════ */
ul.list-item,
ol.list-item {
  display: block;
  list-style: none;
  padding: var(--space-3) var(--space-5);
  border-bottom: none;
  gap: 0;
}

ul.list-item li,
ol.list-item li {
  display: block;
  padding: 6px 0;
  font-size: 0.86rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border-light);
}

ul.list-item li:last-child,
ol.list-item li:last-child {
  border-bottom: none;
}

ul.list-item li strong {
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.78rem;
  margin-right: 6px;
}

/* Checklist variant */
ul.list-item.checklist {
  padding: var(--space-4) var(--space-5);
}

ul.list-item.checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 0;
}
