/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
---------------------------------------------------- */
:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Color Palette */
  --bg-color-1: #070a13;
  --bg-color-2: #0d1222;
  --glass-bg: rgba(13, 19, 37, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Team Son (Cyan Neon) */
  --son-primary: #00f2fe;
  --son-secondary: #4facfe;
  --son-glow: rgba(79, 172, 254, 0.35);
  --son-bg: rgba(79, 172, 254, 0.08);

  /* Team Long (Pink/Purple Neon) */
  --long-primary: #e100ff;
  --long-secondary: #7f00ff;
  --long-glow: rgba(225, 0, 255, 0.35);
  --long-bg: rgba(225, 0, 255, 0.08);
  
  /* Common Accent Colors */
  --gold-accent: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.3);
  --success: #10b981;
  --danger: #ef4444;
  --btn-grad-start: #ff7b00;
  --btn-grad-end: #ff007f;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------
   BASE RESET & BACKGROUND
---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color-1);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background glowing blobs */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 20%, rgba(79, 172, 254, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(225, 0, 255, 0.12) 0%, transparent 45%),
    linear-gradient(135deg, var(--bg-color-1) 0%, var(--bg-color-2) 100%);
  background-size: cover;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ----------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.highlight {
  background: linear-gradient(135deg, var(--son-primary) 0%, var(--long-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.logo-area {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

.badge-primary {
  background: rgba(79, 172, 254, 0.15);
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: var(--son-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.app-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.app-header .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ----------------------------------------------------
   GLASSMORPHISM BASE STYLE
---------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

/* ----------------------------------------------------
   WORKSPACE GRID (2 COLS)
---------------------------------------------------- */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.5rem;
  align-items: start;
}

/* Panel Structure */
.panel {
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  overflow: hidden;
}

.pool-panel {
  padding: 1.5rem;
  gap: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.teams-display-panel {
  padding: 1.5rem;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.pool-panel .panel-icon {
  color: var(--gold-accent);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.15);
}

.teams-display-panel .panel-icon {
  color: var(--son-primary);
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.15);
}

.panel-title-area h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.panel-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ----------------------------------------------------
   LEFT COLUMN: PAIRS LISTS
---------------------------------------------------- */
.level-group-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.level-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.level-box-header h3 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.box-count {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

.level-a h3 { color: var(--son-primary); }
.level-b h3 { color: var(--gold-accent); }

.btn-add-pair {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.btn-add-pair:hover {
  background: var(--text-primary);
  color: var(--bg-color-1);
  transform: scale(1.1);
}

.pairs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Pair Card layout */
.pair-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  transition: var(--transition-fast);
  position: relative;
}

.pair-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.pair-index-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 28px;
}

.pair-players-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-right: 8.5rem; /* Leave space for hover actions */
}

.p-display-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-name-1 {
  text-align: right;
}

.p-name-2 {
  text-align: left;
}

.pair-divider-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pair actions */
.pair-actions {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: var(--transition-fast);
}

.pair-card:hover .pair-actions {
  opacity: 1;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.btn-icon:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-move-up:hover, .btn-move-down:hover {
  color: var(--gold-accent);
  background: rgba(245, 158, 11, 0.1);
}

.btn-swap:hover {
  color: var(--long-primary);
  background: rgba(225, 0, 255, 0.1);
}

.btn-edit:hover {
  color: var(--son-primary);
  background: rgba(0, 242, 254, 0.1);
}

.btn-delete:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* Empty placeholder for pairs */
.no-pairs-info {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  font-style: italic;
}

/* ----------------------------------------------------
   RIGHT COLUMN: DRAFT TEAMS VISUAL DISPLAY
---------------------------------------------------- */
.results-quick-actions {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
}

.btn-quick {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.btn-quick:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-success-light {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}
.btn-success-light:hover {
  background: rgba(16, 185, 129, 0.2);
}

/* Capture Wrapper */
.capture-teams-wrapper {
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(7, 10, 19, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.capture-banner-title {
  text-align: center;
  margin-bottom: 1.5rem;
  display: none; /* Only visible in canvas capturing */
}

.capture-banner-title h3 {
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.capture-banner-title p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.capture-banner-footer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  display: none; /* Only visible in canvas capturing */
}

/* Teams Cards Container */
.teams-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  position: relative;
}

/* Floating VS badge in center */
.vs-logo-center {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font-size: 1.75rem;
  font-weight: 900;
  font-style: italic;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--son-primary) 0%, var(--long-primary) 100%);
  color: white;
  border: 2px solid var(--bg-color-2);
  box-shadow: 0 0 20px rgba(225, 0, 255, 0.4);
  z-index: 5;
}

/* Team Card draft details */
.team-draft-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition-normal);
}

.team-son-card {
  border-top: 4px solid var(--son-primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 20px 40px -20px var(--son-bg);
}

.team-long-card {
  border-top: 4px solid var(--long-primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 20px 40px -20px var(--long-bg);
}

.team-draft-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.team-card-header {
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.t-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.t-son-badge {
  background: rgba(0, 242, 254, 0.15);
  color: var(--son-primary);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.t-long-badge {
  background: rgba(225, 0, 255, 0.15);
  color: var(--long-primary);
  border: 1px solid rgba(225, 0, 255, 0.25);
}

.team-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.t-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.15rem;
  display: block;
}

/* Slots for Players */
.team-members-slots {
  display: flex;
  flex-direction: column;
}

.slots-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.slot-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.slot-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Empty slot placeholder */
.slot-empty {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.slot-filled {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  animation: slot-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.team-son-card .slot-filled {
  border-left: 3px solid var(--son-primary);
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.03) 0%, transparent 100%);
}

.team-long-card .slot-filled {
  border-left: 3px solid var(--long-primary);
  background: linear-gradient(90deg, rgba(225, 0, 255, 0.03) 0%, transparent 100%);
}

@keyframes slot-pop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.slot-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 20px;
  flex-shrink: 0;
}

.slot-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.slot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}

.team-son-card .slot-dot { background-color: var(--son-primary); }
.team-long-card .slot-dot { background-color: var(--long-primary); }

/* Controls Area inside panel */
.draft-controls-area {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 0.5rem;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.draw-modes {
  display: flex;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.radio-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-custom {
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.radio-label:hover input ~ .radio-custom {
  border-color: rgba(255, 255, 255, 0.4);
}

.radio-label input:checked ~ .radio-custom {
  background-color: var(--gold-accent);
  border-color: var(--gold-accent);
  box-shadow: 0 0 6px var(--gold-glow);
}

.radio-label input:checked ~ span {
  color: var(--text-primary);
}

.action-buttons-group {
  display: flex;
  gap: 0.5rem;
}

/* Glowing Button */
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 1;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.25);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
  border-radius: 0.5rem;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.5;
  transition: var(--transition-normal);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 0, 127, 0.4);
}

.btn-glow:hover::before {
  opacity: 0.8;
  filter: blur(12px);
}

.btn-pulse {
  animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.25);
  }
  100% {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 0, 127, 0.45);
  }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ----------------------------------------------------
   ANIMATION OVERLAY & DRAFT ARENA
---------------------------------------------------- */
.draw-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 13, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.draw-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.overlay-card {
  width: 90%;
  max-width: 600px;
  border-radius: 1.5rem;
  padding: 2.5rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
}

.overlay-level-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-accent);
  color: var(--bg-color-1);
  font-weight: 800;
  padding: 0.3rem 1.25rem;
  border-radius: 30px;
  font-size: 0.8rem;
  box-shadow: 0 0 20px var(--gold-glow);
}

.overlay-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.draft-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.draft-candidate-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.25rem;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.candidate-tag {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.candidate-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Dividing Coin */
.draft-vs-divider {
  display: flex;
  align-items: center;
  width: 120px;
  flex-shrink: 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.coin-glow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Spinning Animation for Coin */
.coin-spinning {
  animation: coin-spin 0.2s linear infinite;
  background: var(--gold-accent);
  color: var(--bg-color-1);
  border-color: var(--gold-accent);
  box-shadow: 0 0 15px var(--gold-glow);
}

@keyframes coin-spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Candidate Assignment Highlight */
.assign-son {
  border-color: var(--son-primary);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  background: rgba(0, 242, 254, 0.05);
}
.assign-son .candidate-name { color: var(--son-primary); }

.assign-long {
  border-color: var(--long-primary);
  box-shadow: 0 0 20px rgba(225, 0, 255, 0.2);
  background: rgba(225, 0, 255, 0.05);
}
.assign-long .candidate-name { color: var(--long-primary); }

/* Direction labels in overlay */
.direction-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.dir-team {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.team-son-dir { color: var(--son-primary); }
.team-long-dir { color: var(--long-primary); }

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--son-primary), var(--long-primary));
  border-radius: 10px;
  transition: width 0.1s ease;
}

.draw-status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------
   MODAL WINDOW STYLING
---------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 13, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 480px;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: modal-scale var(--transition-normal);
}

@keyframes modal-scale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.close-modal {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-modal:hover {
  color: var(--danger);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

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

.form-group input, .form-group select {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--son-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.form-group select option {
  background: var(--bg-color-2);
  color: #fff;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN (BREAKPOINTS)
---------------------------------------------------- */
@media (max-width: 1100px) {
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  .app-header h1 {
    font-size: 1.75rem;
  }
  
  .teams-columns-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .vs-logo-center {
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .control-row {
    flex-direction: column;
    align-items: stretch;
  }
  .draw-modes {
    justify-content: center;
  }
  .action-buttons-group {
    width: 100%;
  }
  .action-buttons-group button {
    flex: 1;
    justify-content: center;
  }
  
  .draft-arena {
    flex-direction: column;
    gap: 0.75rem;
  }
  .draft-vs-divider {
    width: 100%;
    flex-direction: column;
    height: 60px;
  }
  .divider-line {
    width: 1px;
    height: 100%;
  }
  .coin-glow {
    transform: rotate(90deg);
  }
  .direction-labels {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Capturing Style Adjustments for Html2Canvas */
.html2canvas-container {
  background-color: var(--bg-color-1) !important;
}
.html2canvas-capture-teams .capture-banner-title,
.html2canvas-capture-teams .capture-banner-footer {
  display: block;
}
.html2canvas-capture-teams {
  padding: 2.5rem !important;
  background: linear-gradient(135deg, #070a13 0%, #0d1222 100%) !important;
  border: 2px solid rgba(255,255,255,0.05) !important;
}
.html2canvas-capture-teams .vs-logo-center {
  border-color: #0d1222 !important;
}
