/* ═══════════════════════════════════════════════════════════
   AGAPE LOVE FC — MANAGEMENT SYSTEM
   Design: Volcanic Glass palette — energetic, sporty, bold
   Fonts: Bricolage Grotesque (display) + Plus Jakarta Sans (body)
═══════════════════════════════════════════════════════════ */

:root {
  --orange:       #FF6B2B;
  --orange-light: #FF8F5E;
  --orange-dark:  #D94F10;
  --orange-glow:  rgba(255,107,43,0.15);
  --black:        #0F0F0F;
  --dark:         #1A1A1A;
  --dark2:        #242424;
  --dark3:        #2E2E2E;
  --mid:          #3A3A3A;
  --muted:        #6B6B6B;
  --light:        #F0EDE8;
  --white:        #FAFAFA;
  --green:        #22C55E;
  --blue:         #3B82F6;
  --purple:       #A855F7;
  --red:          #EF4444;
  --yellow:       #F59E0B;

  --sidebar-w:    260px;
  --topbar-h:     60px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    18px;
  --shadow:       0 4px 24px rgba(0,0,0,0.35);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.2);
  --transition:   0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--dark);
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
}

a { cursor: pointer; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }
.mt-20 { margin-top: 20px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ═══════════════════════════════════════════════════════════
   SPLASH SCREEN
═══════════════════════════════════════════════════════════ */
.splash-screen {
  position: fixed; inset: 0;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

.splash-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,107,43,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,107,43,0.08) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,107,43,0.03) 40px,
      rgba(255,107,43,0.03) 41px
    );
  animation: bgPulse 6s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

.splash-content {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px; text-align: center;
  animation: splashIn 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes splashIn {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-logo-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.splash-logo-ring {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  box-shadow: 0 0 40px rgba(255,107,43,0.4), inset 0 0 40px rgba(255,107,43,0.05);
  display: flex; align-items: center; justify-content: center;
  background: var(--dark2);
  animation: ringPulse 3s ease-in-out infinite;
  overflow: hidden;
}

@keyframes ringPulse {
  0%,100% { box-shadow: 0 0 30px rgba(255,107,43,0.3); }
  50%      { box-shadow: 0 0 60px rgba(255,107,43,0.6); }
}

.splash-logo-img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}

.splash-logo-placeholder svg {
  width: 90px; height: 90px;
}

.splash-badge {
  position: absolute; bottom: -8px; right: -8px;
  background: var(--orange);
  color: white; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  letter-spacing: 1px;
}

.splash-text-block { display: flex; flex-direction: column; gap: 8px; }

.splash-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  display: flex; flex-direction: column; align-items: center;
}

.splash-title-line1 {
  color: var(--white);
  letter-spacing: -1px;
}

.splash-title-line2 {
  color: var(--orange);
  font-size: 1.4em;
  letter-spacing: 8px;
  text-shadow: 0 0 30px rgba(255,107,43,0.5);
}

.splash-tagline {
  font-size: 1.1rem;
  color: var(--orange-light);
  font-weight: 500;
  letter-spacing: 1px;
}

.splash-sub {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.splash-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

.btn-splash-login {
  display: flex; align-items: center; gap: 10px;
  background: var(--orange);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,107,43,0.4);
}

.btn-splash-login:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,43,0.5);
}

.btn-splash-logo {
  display: flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--mid);
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 0.85rem; font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn-splash-logo:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.splash-balls {
  position: absolute;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.ball {
  position: absolute;
  font-size: 2rem;
  opacity: 0.08;
  animation: floatBall linear infinite;
}

.b1 { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.b2 { left: 60%; animation-duration: 16s; animation-delay: -5s; }
.b3 { left: 85%; animation-duration: 10s; animation-delay: -8s; }

@keyframes floatBall {
  from { bottom: -60px; transform: rotate(0deg); }
  to   { bottom: 110%; transform: rotate(720deg); }
}

/* ═══════════════════════════════════════════════════════════
   MODAL SYSTEM
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

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

.modal-box {
  background: var(--dark2);
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

.large-modal { max-width: 720px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header h3 {
  font-size: 1.2rem;
  color: var(--white);
}

.modal-close {
  background: var(--dark3);
  border: none; color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  transition: var(--transition);
}

.modal-close:hover { background: var(--red); color: white; }

.modal-body { padding: 20px 24px; }

.modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--mid);
}

/* Login Modal Specific */
.login-box { max-width: 420px; }

.login-header {
  text-align: center;
  padding: 28px 24px 16px;
}

.login-icon { font-size: 2.5rem; margin-bottom: 12px; }

.login-header h2 {
  font-size: 1.5rem; color: var(--white);
  margin-bottom: 6px;
}

.login-header p { color: var(--muted); font-size: 0.9rem; }

.login-tabs {
  display: flex; gap: 8px;
  padding: 0 24px 16px;
}

.login-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px;
  background: var(--dark3);
  border: 1px solid var(--mid);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
}

.login-tab.active {
  background: var(--orange-glow);
  border-color: var(--orange);
  color: var(--orange);
}

.login-form { padding: 0 24px 20px; }

.login-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--dark3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange);
}

.btn-login-submit {
  width: 100%;
  background: var(--orange);
  color: white; border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  transition: var(--transition);
}

.btn-login-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.login-error {
  margin: 0 24px 16px;
  padding: 10px 14px;
  background: rgba(239,68,68,0.15);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   MAIN APP LAYOUT
═══════════════════════════════════════════════════════════ */
.main-app {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--black);
  border-right: 1px solid var(--dark3);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--transition);
  overflow-y: auto;
}

.sidebar.collapsed { transform: translateX(-100%); }

.sidebar-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--dark3);
  position: sticky; top: 0;
  background: var(--black);
  z-index: 1;
}

.sidebar-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  background: var(--dark2);
  overflow: hidden; flex-shrink: 0;
  font-size: 1.2rem;
}

.sidebar-logo-img {
  width: 100%; height: 100%; object-fit: cover;
}

.sidebar-brand {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}

.sidebar-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar-role {
  font-size: 0.7rem; font-weight: 600;
  color: var(--orange);
  text-transform: uppercase; letter-spacing: 1px;
}

.sidebar-close-btn {
  background: none; border: none;
  color: var(--muted); font-size: 1rem;
  display: none;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 2px;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 8px 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.88rem; font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.nav-item:hover {
  background: var(--dark3);
  color: var(--light);
}

.nav-item.active {
  background: var(--orange-glow);
  color: var(--orange);
  font-weight: 600;
}

.nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--dark3);
}

.btn-logout {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: none; border: 1px solid var(--mid);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.88rem; font-weight: 500;
  transition: var(--transition);
}

.btn-logout:hover {
  background: rgba(239,68,68,0.1);
  border-color: var(--red);
  color: var(--red);
}

/* ── TOPBAR ── */
.topbar {
  position: fixed;
  top: 0; left: var(--sidebar-w); right: 0;
  height: var(--topbar-h);
  background: var(--black);
  border-bottom: 1px solid var(--dark3);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  z-index: 100;
  transition: left var(--transition);
}

.topbar-menu-btn {
  background: none; border: none;
  display: flex; flex-direction: column; gap: 5px;
  padding: 4px;
  display: none;
}

.topbar-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: var(--transition);
}

.topbar-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
  flex: 1;
}

.topbar-right {
  display: flex; align-items: center; gap: 12px;
}

.topbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--dark2);
  border-radius: 50px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--light);
}

/* ── PAGE CONTAINER ── */
.page-container {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 28px;
  min-height: calc(100vh - var(--topbar-h));
  transition: margin-left var(--transition);
}

.page { display: none; animation: pageIn 0.3s ease; }
.page.active { display: block; }

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

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}

.page-header h2 {
  font-size: 1.8rem; color: var(--white);
}

.page-header p {
  color: var(--muted); font-size: 0.9rem; margin-top: 4px;
}

.page-header-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-primary {
  background: var(--orange);
  color: white; border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,43,0.3);
}

.btn-secondary {
  background: var(--dark3);
  color: var(--light); border: 1px solid var(--mid);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--mid);
  border-color: var(--light);
}

.btn-accent {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white; border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-accent:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-icon {
  background: var(--dark3);
  border: 1px solid var(--mid);
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
}

.btn-icon:hover { background: var(--mid); color: var(--white); }
.btn-icon.danger:hover { background: rgba(239,68,68,0.2); border-color: var(--red); color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}

.stat-orange::before { background: var(--orange); }
.stat-green::before  { background: var(--green); }
.stat-blue::before   { background: var(--blue); }
.stat-purple::before { background: var(--purple); }

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.stat-icon { font-size: 2rem; }

.stat-num {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.8rem; color: var(--muted);
  margin-top: 4px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.dash-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.dash-card-header h3 {
  font-size: 1rem; color: var(--white);
}

.dash-header-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}

.notifications-list, .activity-list {
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 200px; overflow-y: auto;
}

.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: var(--light);
}

.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 5px; flex-shrink: 0;
}

.notif-dot.orange { background: var(--orange); }
.notif-dot.green  { background: var(--green); }
.notif-dot.blue   { background: var(--blue); }

.activity-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.83rem; color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--dark3);
}

.activity-item:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   PLAYERS GRID (CARDS)
═══════════════════════════════════════════════════════════ */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px;
}

.player-card {
  background: var(--dark3);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.player-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255,107,43,0.15);
}

.player-card-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  object-fit: cover;
  background: var(--dark2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  overflow: hidden;
}

.player-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.player-card-id {
  font-size: 0.7rem;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.player-card-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--white);
}

.player-card-meta {
  display: flex; gap: 8px;
  font-size: 0.75rem; color: var(--muted);
}

.player-card-badge {
  background: var(--dark2);
  border: 1px solid var(--mid);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--muted);
}

.empty-state-card {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 40px;
  color: var(--muted);
}

.empty-icon { font-size: 3rem; opacity: 0.4; }

.empty-state {
  color: var(--muted); font-size: 0.88rem;
  padding: 20px; text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   FILTER BAR
═══════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-input {
  background: var(--dark2);
  border: 1px solid var(--mid);
  border-radius: var(--radius-sm);
  color: var(--light);
  padding: 9px 14px;
  font-size: 0.88rem;
  min-width: 220px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.filter-select {
  background: var(--dark2);
  border: 1px solid var(--mid);
  border-radius: var(--radius-sm);
  color: var(--light);
  padding: 9px 14px;
  font-size: 0.88rem;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--orange);
}

/* ═══════════════════════════════════════════════════════════
   DATA TABLE
═══════════════════════════════════════════════════════════ */
.players-table-wrap {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table thead tr {
  background: var(--dark3);
  border-bottom: 1px solid var(--mid);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--dark3);
  color: var(--light);
  vertical-align: middle;
}

.data-table tbody tr:hover { background: var(--dark3); }
.data-table tbody tr:last-child td { border-bottom: none; }

.table-photo {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  object-fit: cover;
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  overflow: hidden;
}

.table-photo img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}

.badge-green  { background: rgba(34,197,94,0.15);  color: var(--green); }
.badge-red    { background: rgba(239,68,68,0.15);   color: var(--red); }
.badge-yellow { background: rgba(245,158,11,0.15);  color: var(--yellow); }
.badge-blue   { background: rgba(59,130,246,0.15);  color: var(--blue); }
.badge-orange { background: rgba(255,107,43,0.15);  color: var(--orange); }

.actions-cell { display: flex; gap: 6px; }

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
.form-group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}

.form-group.full-width { grid-column: 1 / -1; }

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

.form-input {
  background: var(--dark3);
  border: 1px solid var(--mid);
  border-radius: var(--radius-sm);
  color: var(--light);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-input::placeholder { color: var(--muted); }

textarea.form-input { resize: vertical; min-height: 80px; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.form-tabs {
  display: flex; gap: 4px;
  margin-bottom: 20px;
  background: var(--dark3);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.form-tab {
  flex: 1;
  padding: 8px;
  background: none; border: none;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
}

.form-tab.active {
  background: var(--orange);
  color: white;
}

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

/* Photo Upload */
.photo-upload-area {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--dark3);
  border-radius: var(--radius);
  border: 1px dashed var(--mid);
}

.photo-preview {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: var(--dark2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  overflow: hidden; flex-shrink: 0;
}

.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.btn-upload-photo {
  background: var(--dark2);
  border: 1px solid var(--mid);
  color: var(--light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-upload-photo:hover { border-color: var(--orange); color: var(--orange); }

/* Docs */
.docs-upload-area { display: flex; flex-direction: column; gap: 12px; }

.doc-upload-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark3);
  border: 1px dashed var(--mid);
  color: var(--muted);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.doc-upload-btn:hover { border-color: var(--orange); color: var(--orange); }

.docs-list { display: flex; flex-direction: column; gap: 8px; }

.doc-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--dark3);
  border-radius: var(--radius-sm);
  font-size: 0.83rem; color: var(--light);
}

.file-name-display {
  font-size: 0.83rem; color: var(--orange);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════
   ATTENDANCE
═══════════════════════════════════════════════════════════ */
.attendance-month-nav {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
}

.attendance-month-nav button {
  background: var(--dark3);
  border: 1px solid var(--mid);
  color: var(--light);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.attendance-month-nav button:hover { border-color: var(--orange); color: var(--orange); }

#attendance-month-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
}

.attendance-summary {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}

.att-sum-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
}

.att-sum-card span { font-weight: 700; }

.attendance-mark-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 360px; overflow-y: auto;
}

.att-mark-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--dark3);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.att-mark-name {
  flex: 1; min-width: 120px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--white);
}

.att-radio-group {
  display: flex; gap: 8px;
}

.att-radio-label {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.8rem; cursor: pointer;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--mid);
  transition: var(--transition);
}

.att-radio-label:has(input:checked) { border-color: var(--orange); background: var(--orange-glow); color: var(--orange); }

.att-radio-label input { display: none; }

.att-leave-reason {
  width: 100%;
  background: var(--dark2);
  border: 1px solid var(--mid);
  border-radius: 6px;
  color: var(--light);
  padding: 6px 10px;
  font-size: 0.82rem;
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   REPORT CARDS
═══════════════════════════════════════════════════════════ */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.report-card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.report-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,107,43,0.1);
}

.report-card-header {
  background: var(--dark3);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--mid);
}

.report-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--white);
}

.report-card-date {
  font-size: 0.75rem; color: var(--muted);
}

.report-card-body {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}

.report-field {
  display: flex; gap: 8px;
  font-size: 0.83rem;
}

.report-field-label {
  color: var(--muted); font-weight: 600;
  min-width: 100px; flex-shrink: 0;
}

.report-field-value { color: var(--light); }

.report-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--dark3);
  display: flex; gap: 8px; justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════
   NGO PROFILE VIEW
═══════════════════════════════════════════════════════════ */
.ngo-profile-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ngo-section {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  padding: 20px;
}

.ngo-section h3 {
  font-size: 0.8rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.ngo-section p {
  font-size: 0.9rem;
  color: var(--light);
  line-height: 1.6;
}

.ngo-section.full-width { grid-column: 1 / -1; }

.ngo-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ngo-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--light);
}

.ngo-contact-icon { font-size: 1rem; }

.social-links {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 8px;
}

.social-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--dark3);
  border: 1px solid var(--mid);
  border-radius: 20px;
  font-size: 0.82rem; color: var(--light);
  transition: var(--transition);
}

.social-link:hover { border-color: var(--orange); color: var(--orange); }

/* ═══════════════════════════════════════════════════════════
   PLAYER PROFILE VIEW
═══════════════════════════════════════════════════════════ */
.player-view-header {
  display: flex; align-items: center; gap: 20px;
  padding: 16px;
  background: var(--dark3);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.player-view-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  object-fit: cover;
  background: var(--dark2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  overflow: hidden; flex-shrink: 0;
}

.player-view-photo img { width: 100%; height: 100%; object-fit: cover; }

.player-view-info h3 {
  font-size: 1.3rem; color: var(--white);
}

.player-view-id {
  color: var(--orange); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1px;
}

.player-view-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.player-view-field {
  background: var(--dark3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.player-view-field label {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.player-view-field span {
  font-size: 0.9rem; color: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--dark2);
  border: 1px solid var(--mid);
  border-left: 4px solid var(--orange);
  color: var(--light);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  max-width: 320px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close-btn { display: block; }

  .topbar { left: 0; }
  .topbar-menu-btn { display: flex; }

  .page-container { margin-left: 0; padding: 16px; }

  .dashboard-grid { grid-template-columns: 1fr; }
  .ngo-profile-view { grid-template-columns: 1fr; }
  .ngo-section.full-width { grid-column: 1; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: 1; }
  .player-view-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .players-grid { grid-template-columns: 1fr 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
  .modal-footer { flex-wrap: wrap; }
  .att-mark-row { flex-direction: column; align-items: flex-start; }
}