:root {
  --bg: #05060a;
  --card: #11131a;
  --accent: #2dd4bf;
  --accent-2: #f97316;
  --text: #f5f7fb;
  --muted: #9aa0b3;
  --danger: #fb7185;
  --success: #4ade80;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, rgba(17, 24, 39, 0.9), #020617 60%);
  color: var(--text);
  min-height: 100vh;
}

.muted {
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.navbar-brand:hover {
  color: var(--accent);
}

.navbar-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.45));
}

.navbar-brand span {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links form {
  margin: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
}

.nav-username {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #22d3ee);
  color: #04111e;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: var(--danger);
  color: #0f0507;
}

.btn-muted {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.18), transparent 55%);
  pointer-events: none;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.card small {
  color: var(--muted);
}

.slot-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 260px;
  overflow-y: auto;
}

.slot-item {
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(45, 212, 191, 0.25);
  gap: 0.75rem;
}

.slot-item.cancelled {
  opacity: 0.45;
  text-decoration: line-through;
}

.slot-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.slot-meta {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-xl {
  width: 104px;
  height: 104px;
}

.badge {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge.success {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.badge.warning {
  background: rgba(251, 191, 36, 0.15);
  color: #facc15;
}

.badge.danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-tile {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

form.inline {
  display: inline;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(45, 212, 191, 0.6);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table th {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.alerts {
  max-width: 600px;
  margin: 1rem auto 0;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.alert-success { background: rgba(74, 222, 128, 0.18); }
.alert-danger { background: rgba(248, 113, 113, 0.18); }
.alert-warning { background: rgba(251, 191, 36, 0.2); }
.alert-info { background: rgba(59, 130, 246, 0.18); }

.hero {
  padding: 2.5rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.3);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.35), transparent 60%);
  pointer-events: none;
}

.hero h2 {
  margin: 0;
  font-size: 2rem;
}

.hero p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-card {
  background: rgba(12, 18, 32, 0.8);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-bio {
  margin: 1rem 0;
  line-height: 1.4;
}

.profile-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 1.5rem 0;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.checkbox-row {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
}

.teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.team-card {
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.team-card h4 {
  margin: 0 0 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--muted);
}

.team-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-card li {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title h3 {
  margin: 0;
}

.login-wrapper {
  max-width: 420px;
  margin: 8vh auto;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.login-wrapper h2 {
  margin-top: 0;
}

.login-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .container {
    padding: 1.2rem;
  }
}
