:root {
  --bg-dark: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #27272a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.15);
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent-green: #10b981;
  --accent-green-dark: #065f46;
  --accent-gold: #fbbf24;
  --accent-gold-dark: #92400e;
  
  --danger: #ef4444;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', sans-serif;
  
  --header-height: 70px;
  --nav-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.5;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.01em;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Main Layout Wrapper */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.header-container {
  max-width: 768px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.logo-gold {
  color: var(--accent-gold);
}

.logo-white {
  color: var(--text-primary);
}

/* Date Selector */
.date-selector-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px 4px;
}

.date-display {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0 10px;
  min-width: 90px;
  text-align: center;
  color: var(--text-primary);
  text-transform: capitalize;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Offline Banner */
.offline-banner {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--danger);
  color: white;
  text-align: center;
  padding: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: slideDown 0.3s ease;
}

.offline-banner.hidden {
  display: none;
}

.offline-banner svg {
  width: 14px;
  height: 14px;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-container {
  max-width: 768px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 33.33%;
  height: 100%;
  font-size: 0.75rem;
  font-weight: 500;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.nav-item.active {
  color: var(--accent-green);
  transform: translateY(-2px);
}

.nav-item.active svg {
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

/* Main Content Containers */
.view-container {
  max-width: 768px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 16px) 16px calc(var(--nav-height) + 30px) 16px;
  min-height: 100vh;
}

/* Loader & Spinners */
.loader-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  width: 100%;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* General Layouts (Card & Groups) */
.league-section {
  margin-bottom: 24px;
  animation: fadeInUp 0.4s ease forwards;
}

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

.league-info-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.league-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
}

.league-name {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-title);
  color: var(--text-primary);
}

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

/* Live Badge */
.live-dot-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 2px 8px;
  margin-left: 8px;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulse 1.5s infinite;
}

.live-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.05em;
}

/* Match Cards */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.match-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.match-card.is-live {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.02);
}

.match-card.is-can {
  border-color: rgba(251, 191, 36, 0.2);
}

.match-card.is-can::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 16px 16px 0;
  border-color: transparent var(--accent-gold) transparent transparent;
}

/* Teams & Scores Layout inside Match Card */
.match-body {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex: 1;
}

.team-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
}

.team-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-name.winner {
  font-weight: 700;
}

/* Center Score Area */
.match-score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.score-divider {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 4px;
}

.score-live-pulse {
  color: var(--accent-green);
  text-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

/* Match Status / Time */
.match-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 2px 10px;
  text-align: center;
}

.match-status.live {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  font-weight: 700;
}

.match-status.finished {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 8px;
}

.match-date-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.match-action-btns {
  display: flex;
  gap: 12px;
}

.favorite-star {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.favorite-star.active {
  color: var(--accent-gold);
  fill: var(--accent-gold);
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
}

.favorite-star svg {
  width: 16px;
  height: 16px;
}

/* MATCH DETAILS SCREEN CSS */
.back-btn-container {
  margin-bottom: 16px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.back-btn svg {
  width: 14px;
  height: 14px;
}

.match-header-hero {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(9, 9, 11, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.match-header-hero .league-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.match-header-hero .league-badge img {
  width: 16px;
  height: 16px;
}

/* Detail Tabs */
.detail-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  gap: 8px;
  padding-bottom: 2px;
}

.detail-tabs::-webkit-scrollbar {
  display: none; /* Hide scrollbar for clean design */
}

.tab-btn {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

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

.tab-btn.active {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

/* Tab Pane Panels */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

/* TIMELINE EVENTS SCREEN */
.timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
  margin-left: 10px;
  border-left: 1px solid var(--border-color);
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.event-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--bg-dark);
}

.event-item.is-special::before {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.event-time {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-green);
  min-width: 32px;
}

.event-icon-box {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.event-icon-box.yellow-card {
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.1);
}

.event-icon-box.red-card {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.event-icon-box.goal {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
}

.event-details {
  flex: 1;
}

.event-player {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.event-assist-team {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* STATS SCREEN */
.stats-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}

.stat-item {
  margin-bottom: 18px;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-header-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.stat-title {
  color: var(--text-primary);
  font-weight: 600;
}

.stat-bar-container {
  display: flex;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.stat-bar-half {
  height: 100%;
}

.stat-bar-home {
  background: var(--accent-green);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.stat-bar-away {
  background: var(--accent-gold);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* LINEUPS SCREEN */
.lineups-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 640px) {
  .lineups-container {
    grid-template-columns: 1fr 1fr;
  }
}

.lineup-team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}

.lineup-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lineup-formation {
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  padding: 2px 8px;
  border-radius: 10px;
}

.players-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-num {
  width: 22px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-pos-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.player-pos-badge.G { background: #3b82f6; color: white; }
.player-pos-badge.D { background: #10b981; color: white; }
.player-pos-badge.M { background: #fbbf24; color: black; }
.player-pos-badge.F { background: #ef4444; color: white; }

.player-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.coach-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  gap: 6px;
}

.coach-row strong {
  color: var(--text-primary);
}

/* VIDEOS HIGHLIGHTS SCREEN */
.video-card-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.video-ratio-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-ratio-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info-overlay {
  padding: 16px;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.video-channel {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.video-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.video-empty svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.2;
  margin-bottom: 12px;
}

/* STANDINGS TABLE SCREEN */
.standings-filter-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.standings-filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: var(--accent-green);
  color: var(--bg-dark);
  border-color: var(--accent-green);
  font-weight: 600;
}

.standings-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.standings-table-container {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

.standings-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color);
}

.standings-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

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

.standings-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.td-rank {
  font-weight: 700;
  width: 32px;
  text-align: center;
}

.td-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.td-team img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.td-num {
  text-align: center;
  font-weight: 500;
}

.td-gd {
  text-align: center;
  font-weight: 600;
}

.td-gd.positive {
  color: var(--accent-green);
}

.td-gd.negative {
  color: var(--danger);
}

.td-pts {
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.form-bubble-wrapper {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.form-bubble {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.form-bubble.W { background: var(--accent-green); color: black; }
.form-bubble.D { background: var(--text-muted); }
.form-bubble.L { background: var(--danger); }

/* empty states */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  stroke-width: 1.2;
}

.empty-state h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.85rem;
  max-width: 280px;
  margin: 0 auto;
}

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

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.4; }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ADMIN DASHBOARD & MODAL STYLES */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-select {
  width: 100%;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.modal-card label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.modal-card input[type="text"],
.modal-card input[type="email"] {
  width: 100%;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 0.88rem;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.permissions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
}

.perm-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem !important;
  color: var(--text-primary) !important;
  cursor: pointer;
}

.modal-submit-btn {
  width: 100%;
  background: var(--accent-green);
  color: var(--bg-dark);
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.modal-submit-btn:hover {
  opacity: 0.9;
}

.role-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-badge.superadmin {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.role-badge.moderator {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

