:root {
  --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --accent-primary: #00d2ff;
  --accent-secondary: #3a7bd5;
  --accent-danger: #ff416c;
  --accent-success: #00b09b;
  --accent-success-muted: #00b09bdd;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.app {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 100;
}

header h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.voice-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}

.voice-selector label {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.voice-selector .custom-select {
  flex: 1;
}

.test-voice-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.test-voice-btn:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.controls button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  font-weight: 600;
}

.controls button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Wizard */
.wizard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.wizard-step {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wizard-step h3 {
  font-family: var(--font-heading);
  color: var(--accent-primary);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.add-row {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  padding: 10px;
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
}

input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.add-row button {
  background: var(--accent-secondary);
  color: white;
}

.add-row button:hover {
  background: var(--accent-primary);
}

.list {
  list-style: none;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 6px;
}

.list li button {
  background: transparent;
  color: var(--accent-danger);
  padding: 4px 8px;
  font-size: 1.2rem;
}

.list li button:hover {
  background: rgba(255, 0, 0, 0.1);
}

.wizard-step>button {
  background: linear-gradient(to right, var(--accent-success), #00d2ff);
  color: white;
  margin-top: auto;
  padding: 12px;
  font-size: 1rem;
}

.wizard-step>button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #555;
}

/* Tournament Layout */
.tournament {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .tournament {
    grid-template-columns: 1fr;
  }
}

.left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card,
.round-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--glass-shadow);
}

.round-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
}

.round-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.game-select select,
.timer-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px;
  border-radius: 8px;
  font-family: var(--font-main);
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-display {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
  min-width: 100px;
  text-align: center;
}

.timer-start {
  background: var(--accent-success);
  color: white;
}

.timer-stop {
  background: var(--accent-danger);
  color: white;
}

/* Groups */
.groups-columns {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.group-column {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid var(--glass-border);
}

.group-header {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.group-player {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: grab;
  transition: all 0.2s ease;
}

.group-player:active {
  cursor: grabbing;
}

.group-player:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(2px);
}

.group-player.dragging {
  opacity: 0.4;
  border: 2px dashed var(--accent-primary);
  background: rgba(0, 210, 255, 0.1);
  transform: scale(0.95);
}

.group-player.drop-target {
  border-top: 4px solid var(--accent-primary);
  margin-top: 6px;
  padding-top: 14px;
  box-shadow: 0 -4px 15px rgba(0, 210, 255, 0.6);
  position: relative;
}

.group-player.drop-target::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--accent-primary) 10%,
      var(--accent-primary) 90%,
      transparent 100%);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
  animation: pulse-line 1s ease-in-out infinite;
}

@keyframes pulse-line {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.gp-name {
  font-weight: 600;
}

.gp-handle {
  color: var(--text-muted);
  cursor: grab;
}

.actions {
  display: flex;
  justify-content: flex-end;
}

.actions button.primary {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  color: white;
  font-size: 1.1rem;
  padding: 12px 24px;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.actions button.primary:hover {
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
  transform: translateY(-2px);
}

/* Leaderboard */
.leaderboard-card h3,
.rounds-card h3 {
  font-family: var(--font-heading);
  color: var(--accent-primary);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.leaderboard-list {
  list-style: none;
}

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-list li:last-child {
  border-bottom: none;
}

.medal {
  margin-right: 10px;
  font-size: 1.2rem;
}

.points {
  font-weight: 700;
  color: var(--accent-secondary);
}

/* Rounds List */
.rounds-list {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
}

.round-summary {
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 5px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.round-summary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.round-details {
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  border-radius: 8px;
}

/* Scoring Modal */
.scoring {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.scoring h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.scoring .muted {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.score-row {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  width: 100%;
  max-width: 600px;
}

.score-row-header {
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 10px;
}

.scoring-actions {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.scoring-actions button:first-child {
  background: var(--accent-success);
  color: white;
  font-size: 1.2rem;
  padding: 12px 30px;
}

.scoring-actions button:last-child {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.scoring-actions button:last-child:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.gp-rank {
  font-weight: 700;
  color: var(--accent-primary);
  width: 30px;
}

footer {
  text-align: center;
  color: var(--text-muted);
  margin-top: 20px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

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

/* Additions for new Game Selection UI */
.pick-game {
  flex: 1;
  min-width: 300px;
}

.game-select {
  display: grid;
  grid-template-columns: 1fr 1fr 20px;
  gap: 20px;
  margin: 0 30px;
}

.select-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.select-row label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.select-row select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px;
  border-radius: 8px;
  font-family: var(--font-main);
  width: 100%;
}

.game-display {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.display-row {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.display-row strong {
  color: var(--accent-secondary);
}

.muted-small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 5px;
}

.group-game {
  font-size: 1.2rem;
  color: var(--accent-primary);
  margin-top: 4px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Timer Bar */
.timer-bar {
  grid-column: 1 / -1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: var(--glass-shadow);
  gap: 20px;
}

.timer-bar.timer-running {
  border-color: var(--accent-success);
  box-shadow: 0 0 20px rgba(0, 176, 155, 0.2);
  background: linear-gradient(90deg, rgba(0, 176, 155, 0.1), rgba(0, 0, 0, 0.2));
}

.timer-bar.timer-finished {
  background: linear-gradient(90deg, rgba(255, 65, 108, 0.2), rgba(0, 0, 0, 0.2));
  border-color: var(--accent-danger);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 65, 108, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 65, 108, 0);
  }
}

.timer-bar.timer-break {
  background: linear-gradient(90deg, rgba(255, 165, 0, 0.15), rgba(0, 0, 0, 0.2));
  border-color: #FFA500;
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
}

.timer-bar.timer-break.timer-running {
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 165, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 165, 0, 0);
  }
}

.timer-label {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.timer-display {
  font-family: 'Courier New', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
  min-width: 140px;
  text-align: center;
}

.timer-btn {
  padding: 10px 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.timer-btn.start:disabled {
  background: var(--glass-border);
  color: white;
}

.timer-btn.stop {
  background: var(--accent-secondary);
  color: white;
}

.timer-btn.reset {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

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

/* Gorgeous Leaderboard */
.leaderboard-scroll {
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 5px;
}

.leaderboard-container {
  column-count: 2;
  column-gap: 20px;
}

.lb-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  padding: 7px 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
  break-inside: avoid;
  margin-bottom: 10px;
}

.lb-rank {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 15px;
  color: var(--text-muted);
}

.lb-info {
  flex: 1;
}

.lb-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
}

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

.lb-points {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

/* Top 3 Styling */
.lb-item.rank-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0));
  border-color: rgba(255, 215, 0, 0.3);
}

.lb-item.rank-1 .lb-rank {
  background: #FFD700;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.lb-item.rank-1 .lb-points {
  color: #FFD700;
}

.lb-item.rank-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), rgba(0, 0, 0, 0));
  border-color: rgba(192, 192, 192, 0.3);
}

.lb-item.rank-2 .lb-rank {
  background: #C0C0C0;
  color: #000;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.lb-item.rank-2 .lb-points {
  color: #C0C0C0;
}

.lb-item.rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), rgba(0, 0, 0, 0));
  border-color: rgba(205, 127, 50, 0.3);
}

.lb-item.rank-3 .lb-rank {
  background: #CD7F32;
  color: #000;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.lb-item.rank-3 .lb-points {
  color: #CD7F32;
}

/* Custom Selects */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300d2ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 12px auto;
  padding-right: 30px !important;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.round-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.primary-btn {
  background: var(--accent-secondary);
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.secondary-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.secondary-btn svg {
  transition: transform 0.3s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover svg {
  transform: rotate(180deg);
}

/* Custom Select */
.custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-main);
}

.custom-select.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.selected-value {
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px;
}

.custom-select.open .selected-value {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.custom-select:not(.disabled) .selected-value:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
}

.arrow {
  font-size: 0.8rem;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

.custom-select.open .arrow {
  transform: rotate(180deg);
}

.options-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a2e;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-top: 5px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.option-item {
  padding: 10px 12px;
  color: var(--text-muted);
  transition: background 0.2s ease;
}

.option-item {
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.option-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.option-item.active {
  background: var(--accent-primary);
  color: #000;
  font-weight: 600;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
}

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

.modal-header h3 {
  font-family: var(--font-heading);
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin: 0;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

/* Group Footer Actions */
.group-footer {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}