/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #070a13;
  --bg-gradient: linear-gradient(135deg, #060913 0%, #0d1527 100%);
  --card-bg: rgba(13, 20, 38, 0.6);
  --card-bg-hover: rgba(20, 30, 58, 0.85);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-active: rgba(99, 102, 241, 0.4);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #475569;
  
  --accent-primary: #6366f1; /* Indigo */
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-yellow: #eab308;
  
  --gold: #f59e0b;
  --silver: #cbd5e1;
  --bronze: #b45309;
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.2);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.2);
}

body {
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Layout */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Header Styling */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.trophy-glow {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
  animation: float 3s ease-in-out infinite;
}

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

.text-gold {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.header-text h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-text h1 span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.meta-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.meta-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent-cyan);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
}

.dot.pulse {
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}

/* Base Card Styling (Glassmorphism) */
.grid-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-title i {
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.header-title h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Tables styling */
.table-container {
  overflow-x: auto;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  font-size: 0.925rem;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Leaderboard columns specs */
.col-rank {
  width: 70px;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
}

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

.col-pts {
  width: 110px;
  color: var(--text-muted);
}

.col-total {
  width: 110px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent-cyan);
}

/* Rank Badge Styles */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 800;
  margin: 0 auto;
}

.rank-1 .rank-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #1e1b4b;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.rank-2 .rank-badge {
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  color: #0f172a;
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.2);
}

.rank-3 .rank-badge {
  background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
  color: #fef3c7;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.2);
}

.rank-other .rank-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Highlight winner row */
.leaderboard-row.rank-1 {
  background: rgba(251, 191, 36, 0.02);
}

.leaderboard-row.rank-1:hover {
  background: rgba(251, 191, 36, 0.04);
}

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

/* Tabs System */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.625rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--text-main);
  background: var(--accent-primary);
  box-shadow: var(--shadow-sm), 0 0 12px rgba(99, 102, 241, 0.2);
}

.tab-content {
  display: none;
}

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

.section-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* Topscorers Admin List */
.topscorers-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

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

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

.topscorer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.topscorer-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.player-info-meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.player-name {
  font-weight: 700;
  color: var(--text-main);
}

.player-position-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: inline-block;
}

.pos-attacker { color: var(--accent-rose); }
.pos-midfielder { color: var(--accent-cyan); }
.pos-defender { color: var(--accent-emerald); }

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.select-pos-dropdown {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.375rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

.goals-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  width: 90px;
}

.goals-input-wrapper button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.goals-input-wrapper button:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.goals-input-wrapper input {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 34px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  outline: none;
}

/* Hide spin buttons */
.goals-input-wrapper input::-webkit-outer-spin-button,
.goals-input-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.goals-points-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent-yellow);
  min-width: 45px;
  text-align: right;
}

/* Form Styling */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.input-with-icon input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.field-help {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Action panels */
.pool-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.pool-actions h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Button Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  opacity: 0.95;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Match Comparison Section */
.comparison-card {
  margin-top: 1rem;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 1rem;
}

.player-selectors {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.selector-group label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.selector-group select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  padding-right: 1.5rem;
}

.vs-divider {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-primary);
  font-size: 0.85rem;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

/* Matches Layout Navigation + Grid */
.matches-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
}

/* Group Nav links */
.groups-nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding-right: 0.75rem;
  max-height: 520px;
  overflow-y: auto;
}

.group-nav-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.group-nav-link.active {
  color: white;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%);
  border-left: 3px solid var(--accent-primary);
  padding-left: 0.625rem;
}

/* Matches Grid */
.matches-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.group-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
}

.group-header-banner h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

.group-rules-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Match Cards */
.match-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.match-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.5rem;
}

.match-id {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.025em;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.match-row-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-display-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.actual-score-input {
  width: 60px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.actual-score-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

/* Predictions Section inside Match Card */
.predictions-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.prediction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pred-player-name {
  color: var(--text-muted);
  font-weight: 500;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pred-content-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pred-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
}

/* Point pills */
.point-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
  font-family: var(--font-display);
}

.pts-45 {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

.pts-30 {
  background: rgba(234, 179, 8, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(234, 179, 8, 0.25);
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.1);
}

.pts-0 {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer Styling */
.main-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.placeholder-text {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.placeholder-row td {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 1rem;
  }
  
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .header-meta {
    width: 100%;
    justify-content: space-between;
  }
  
  .matches-layout {
    grid-template-columns: 1fr;
  }
  
  .groups-nav {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-right: 0;
    padding-bottom: 0.75rem;
    overflow-x: auto;
    max-height: none;
  }
  
  .group-nav-link.active {
    border-left: none;
    border-bottom: 3px solid var(--accent-primary);
  }
}
