:root {
  --team-neon-pink: #ff2db2;
  --team-neon-cyan: #1ae9ff;
  --team-neon-yellow: #ffe24d;
  --team-panel-1: #19062a;
  --team-panel-2: #0b1228;
  --team-line: rgba(255, 45, 178, 0.35);
}

body.team-cyberpunk {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 45, 178, 0.2) 0, rgba(255, 45, 178, 0) 28%),
    radial-gradient(circle at 88% 15%, rgba(26, 233, 255, 0.2) 0, rgba(26, 233, 255, 0) 26%),
    linear-gradient(120deg, #050914 0%, #0b1228 45%, #1a0931 100%);
}

.team-card {
  border-radius: 18px;
  border: 1px solid var(--team-line);
  background:
    linear-gradient(160deg, rgba(255, 45, 178, 0.08), rgba(26, 233, 255, 0.04)),
    linear-gradient(160deg, var(--team-panel-1), var(--team-panel-2));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(255, 45, 178, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42), inset 0 0 30px rgba(26, 233, 255, 0.08);
}

.team-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.team-header .team-logo {
  height: 122px;
  width: 122px;
  object-fit: cover;
  border: 1px solid rgba(26, 233, 255, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(255, 45, 178, 0.35), 0 0 28px rgba(26, 233, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-header .team-logo:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 2px rgba(255, 45, 178, 0.65), 0 0 34px rgba(26, 233, 255, 0.35);
}

.team-header .team-logo.placeholder {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #f6f7ff;
  background: linear-gradient(145deg, rgba(26, 233, 255, 0.2), rgba(255, 45, 178, 0.25));
}

.team-name {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(255, 45, 178, 0.5);
}

.team-owner {
  color: rgba(255, 255, 255, 0.78);
}

.team-points-badge {
  font-size: 0.92rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 226, 77, 0.45);
  background: rgba(255, 226, 77, 0.14) !important;
  color: #ffe24d !important;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.list-group-item.custom-grey {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(140deg, rgba(255, 45, 178, 0.08), rgba(26, 233, 255, 0.04)),
    rgba(8, 14, 30, 0.88) !important;
  border-radius: 10px !important;
  margin-bottom: 8px;
}

.member-avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
  background: #0f1831;
  box-shadow: 0 0 0 2px rgba(26, 233, 255, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.member-avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(255, 45, 178, 0.65);
}

.member-name {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.member-name .member-activision {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  margin-top: 2px;
  color: rgba(26, 233, 255, 0.88);
}

.team-actions form input[type="text"],
.team-actions form input[type="file"],
.team-actions form input[type="number"],
.team-actions .form-select,
.team-actions .form-control {
  background: rgba(9, 17, 35, 0.92);
  border: 1px solid rgba(26, 233, 255, 0.35);
  color: #fff;
}

.team-actions form input[type="text"]:focus,
.team-actions form input[type="file"]:focus,
.team-actions form input[type="number"]:focus,
.team-actions .form-select:focus,
.team-actions .form-control:focus {
  border-color: rgba(255, 45, 178, 0.9);
  box-shadow: 0 0 0 0.16rem rgba(255, 45, 178, 0.22);
}

.btn-primary {
  background: linear-gradient(135deg, #0faadf, #1ae9ff);
  border-color: #1ae9ff;
  color: #05101e;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1ae9ff, #64f1ff);
  border-color: #64f1ff;
}

.btn-outline-info {
  border-color: var(--team-neon-cyan);
  color: var(--team-neon-cyan);
}

.btn-outline-info:hover {
  background: rgba(26, 233, 255, 0.18);
  color: #fff;
}

.btn-outline-danger:hover {
  box-shadow: 0 0 12px rgba(255, 0, 84, 0.4);
}

.modal-content {
  background: linear-gradient(150deg, #170729, #0e1733);
  border: 1px solid rgba(255, 45, 178, 0.35);
}

.modal input.is-valid {
  border-color: #00c878 !important;
}

.modal input.is-invalid {
  border-color: #ff4f68 !important;
}

.modal-backdrop {
  z-index: 1040 !important;
}

.modal {
  z-index: 1050 !important;
}

.modal-dialog {
  pointer-events: all;
}

@media (max-width: 768px) {
  .team-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-header .team-logo {
    margin-bottom: 1rem;
  }

  .team-points-badge {
    width: 100%;
    justify-content: center;
    margin-top: 0.45rem;
  }
}

.club-landing-intro {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(5, 12, 26, 0.62);
}

.club-landing-intro p {
  color: rgba(246, 247, 255, 0.88);
}

.club-landing-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.club-kpi {
  border: 1px solid rgba(26, 233, 255, 0.25);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(140deg, rgba(255, 45, 178, 0.1), rgba(26, 233, 255, 0.06));
}

.club-kpi-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(246, 247, 255, 0.75);
}

.club-kpi-value {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--team-neon-cyan);
}

.club-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-section-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.theme-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.theme-preview-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(10, 18, 35, 0.9);
  color: #fff;
  padding: 0.55rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.theme-preview-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
}

.theme-preview-card.is-active {
  border-color: var(--team-neon-cyan);
  box-shadow: 0 0 0 1px rgba(26, 233, 255, 0.35);
}

.theme-swatch {
  width: 100%;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-swatch-blue { background: linear-gradient(90deg, #2f7df6, #3ea6ff); }
.theme-swatch-red { background: linear-gradient(90deg, #d82b2b, #ff7b39); }
.theme-swatch-green { background: linear-gradient(90deg, #16b26b, #6ce36b); }
.theme-swatch-gold { background: linear-gradient(90deg, #c78a1d, #f4d062); }

.theme-name {
  font-size: 0.72rem;
  line-height: 1.1;
  text-align: center;
}

@media (max-width: 992px) {
  .club-landing-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
