* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  color: #dcd6ff;
  background: #080812;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, rgba(147, 51, 234, 0.28) 0%, rgba(147, 51, 234, 0.16) 16%, rgba(147, 51, 234, 0.05) 36%, transparent 70%),
              linear-gradient(180deg, #07070f 0%, #090714 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 6.5rem 1.8rem 3rem;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.15rem 1.6rem;
  background: rgba(8, 8, 18, 0.72);
  border: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 0;
  backdrop-filter: blur(22px);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  left: 2rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 52px;
  border-radius: 0;
  background: transparent;
  color: #f6f0ff;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand .eyebrow {
  margin-bottom: 0.15rem;
}

.brand h1 {
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: #f4efff;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
}

.main-nav a {
  color: rgba(220, 214, 255, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0.85rem 0.45rem;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0);
  border: 1px solid rgba(124, 58, 237, 0);
}

.main-nav a::after {
  display: none;
}

.login-trigger {
  padding: 0.92rem 1.25rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(147, 51, 234, 0.15) 100%);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #f4efff;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  position: absolute;
  right: 2rem;
}

.login-trigger:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(147, 51, 234, 0.25) 100%);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.auth-section {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 18px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.username {
  color: #f4efff;
  font-size: 0.95rem;
  font-weight: 500;
}

.user-profile-widget {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 24px;
  background: rgba(14, 10, 26, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.25);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  z-index: 40;
}

.user-profile-widget.hidden {
  display: none !important;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 3px solid rgba(59, 130, 246, 0.7);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-username {
  color: #f4efff;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.1;
}

.profile-id {
  color: rgba(220, 214, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #22c55e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.profile-logout-btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  white-space: nowrap;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-logout-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}

.button-logout {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

/* ============ Modal Styles ============ */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 12, 0.6);
  backdrop-filter: blur(20px);
  z-index: 999;
}

.modal.hidden {
  display: none !important;
}

.modal-content {
  width: min(420px, calc(100% - 2rem));
  background: linear-gradient(135deg, rgba(30, 20, 60, 0.95) 0%, rgba(20, 15, 40, 0.98) 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.modal-header h2 {
  font-size: 1.4rem;
  color: #f4efff;
  margin: 0;
  font-weight: 700;
}

.close-button {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(124, 58, 237, 0.15);
  color: #f4efff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.close-button:hover {
  background: rgba(124, 58, 237, 0.3);
  color: #ffffff;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  color: rgba(220, 214, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  color: #f4efff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input::placeholder {
  color: rgba(220, 214, 255, 0.5);
}

.form-group input:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(124, 58, 237, 0.2) 100%);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #f4efff;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.submit-button:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.5) 0%, rgba(124, 58, 237, 0.4) 100%);
  border-color: rgba(124, 58, 237, 0.8);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}

/* ============ Toast Notification ============ */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.toast {
  padding: 1.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInToast 0.3s ease-out, slideOutToast 0.3s ease-in 4.7s forwards;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.toast.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(16, 185, 129, 0.85) 100%);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.toast.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.85) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
}

.toast.success .toast-icon {
  background: rgba(34, 197, 94, 0.3);
}

.toast.error .toast-icon {
  background: rgba(239, 68, 68, 0.3);
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutToast {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(400px);
  }
}

.status-toast.hidden {
  display: none !important;
}

.status-toast.error {
  background: rgba(239, 68, 68, 0.88);
  border-color: rgba(239, 68, 68, 0.4);
}

.status-toast.info {
  background: rgba(59, 130, 246, 0.88);
  border-color: rgba(59, 130, 246, 0.4);
}

.toast-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.status-toast strong {
  display: block;
  color: #fff;
  margin-bottom: 0.25rem;
}

.status-toast p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  margin: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.main-nav a:hover,
.main-nav a.active {
  color: #f0e5ff;
  background: rgba(124, 58, 237, 0.3);
  border-color: rgba(124, 58, 237, 0.5);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4), inset 0 0 20px rgba(168, 85, 247, 0.1);
  text-decoration: none;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 3.2rem;
  background: linear-gradient(180deg, rgba(59, 48, 112, 0.55), rgba(14, 10, 28, 0.97));
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 30px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  color: #b09dff;
  margin-bottom: 1.2rem;
}

.hero h2,
.hero-copy h2 {
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  margin-bottom: 0.9rem;
  line-height: 1.02;
  color: #ffffff;
}

.hero-copy p {
  max-width: 620px;
  font-size: 1rem;
  color: rgba(227, 221, 255, 0.92);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #f4efff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(70, 40, 170, 0.22);
  background: linear-gradient(135deg, rgba(133, 95, 242, 0.95) 0%, rgba(94, 61, 190, 0.95) 100%);
  color: #fff;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f4efff;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(70, 40, 170, 0.22);
  background: linear-gradient(135deg, rgba(133, 95, 242, 0.95) 0%, rgba(94, 61, 190, 0.95) 100%);
  color: #fff;
}

.hero-panel {
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: rgba(14, 10, 26, 0.85);
  display: grid;
  gap: 1.5rem;
}

.hero-panel .label {
  display: inline-flex;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ae94ff;
}

.hero-panel h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #f4efff;
}

.hero-panel p {
  line-height: 1.75;
  color: rgba(220, 214, 255, 0.88);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stats.single-stat {
  grid-template-columns: 1fr;
}

.stats-card {
  padding: 1.4rem 1.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
}

.stats-card strong {
  display: block;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.stats-card span {
  color: rgba(220, 214, 255, 0.72);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: clamp(2.2rem, 3vw, 3.3rem);
  color: #f4efff;
}

.section-head p {
  max-width: 760px;
  color: rgba(220, 214, 255, 0.8);
}

.rules-section {
  margin-top: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.team-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  overflow: hidden;
  max-width: 980px;
  width: min(980px, 100%);
  margin-inline: auto;
  padding-inline: 18px;
}

.team-carousel {
  position: relative;
  width: 100%;
  max-width: 920px;
  min-height: 340px;
  overflow: hidden;
}

.carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  max-width: 90vw;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
}

.carousel-card.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 4;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
}

.carousel-card.next {
  opacity: 0.55;
  transform: translate(calc(-50% + 280px), -50%) scale(0.92);
  z-index: 3;
}

.carousel-card.prev {
  opacity: 0.55;
  transform: translate(calc(-50% - 280px), -50%) scale(0.92);
  z-index: 3;
}

.hidden-card {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 0;
}

.carousel-button {
  border: none;
  background: rgba(15, 12, 31, 0.9);
  color: #e8deff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-button:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(124, 58, 237, 0.9);
}

.carousel-button--left {
  left: 10px;
}

.carousel-button--right {
  right: 10px;
}

.card {
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.card:hover:not(.carousel-card) {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(70, 40, 170, 0.16);
  background: rgba(131, 84, 238, 0.12);
  border-color: rgba(159, 110, 255, 0.28);
}

.team-carousel-wrapper {
  overflow: hidden;
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 4, 12, 0.45);
  backdrop-filter: blur(18px);
  z-index: 50;
}

.login-overlay.hidden {
  display: none;
}

.login-panel {
  width: min(440px, calc(100% - 2rem));
  padding: 2.25rem;
  border-radius: 28px;
  background: rgba(14, 10, 26, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  position: relative;
}

.login-panel h2 {
  margin-bottom: 0.75rem;
  color: #f4efff;
}

.login-panel p {
  margin-bottom: 1.75rem;
  color: rgba(220, 214, 255, 0.72);
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form label {
  display: grid;
  gap: 0.65rem;
  color: rgba(220, 214, 255, 0.78);
  font-size: 0.95rem;
}

.login-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f4efff;
  font-size: 1rem;
}

.login-form input:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.login-submit {
  width: 100%;
  justify-content: center;
}

.close-login {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 39px;
  height: 39px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  color: #f4efff;
}

.card p {
  color: rgba(220, 214, 255, 0.78);
  line-height: 1.75;
}

.card-chip {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.22);
  color: #e8deff;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.staff-grid {
  margin-top: 3rem;
}

.hero-highlight {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(82, 55, 163, 0.16), rgba(30, 17, 61, 0.92));
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.hero-highlight h3 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  color: #f4efff;
}

.hero-highlight p {
  color: rgba(220, 214, 255, 0.82);
  line-height: 1.85;
}

.hero-highlight .highlight-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
  max-width: 520px;
  margin-inline: auto;
  padding-inline: 0.5rem;
}

.hero-highlight .highlight-list li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: rgba(236, 229, 255, 0.94);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-highlight .highlight-list li::before {
  content: "•";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #d8b4fe;
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .hero-highlight {
    padding: 2rem;
  }

  .hero-highlight .highlight-list {
    max-width: 100%;
    gap: 0.65rem;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }
}

.training-intro {
  margin-top: 3rem;
  padding: 2.3rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(82, 55, 163, 0.12), rgba(18, 11, 42, 0.96));
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.training-intro .training-preview {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
}

.training-intro .training-preview h3 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #f4efff;
}

.training-intro .training-preview p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(220, 214, 255, 0.78);
  line-height: 1.8;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.intro-card {
  padding: 1.35rem 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(124, 58, 237, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.intro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(70, 40, 170, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.intro-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  color: #f4efff;
}

.intro-card p {
  color: rgba(220, 214, 255, 0.72);
  line-height: 1.65;
  font-size: 0.98rem;
}

@media (max-width: 980px) {
  .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cards-grid.cards-grid--team {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  margin-top: 2rem;
  align-items: start;
}

.team-card {
  width: 100%;
  min-width: 380px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(16, 18, 29, 0.96);
  border: 1px solid rgba(124, 58, 237, 0.15);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(22, 24, 38, 0.98);
}

.team-image {
  width: 100%;
  min-height: 320px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 45%, rgba(0,0,0,0.12) 100%);
  display: grid;
  place-items: center;
  color: rgba(220, 214, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.95rem;
}

.team-footer {
  padding: 1.4rem 1.6rem 1.4rem;
  background: rgba(10, 12, 22, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  width: min(100%, 760px);
  margin: 2rem auto 0;
  padding: 1.25rem 1.4rem;
}

footer p {
  margin: 0;
}

.team-name {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
}

.team-role {
  margin: 0.55rem 0 0;
  color: rgba(220, 214, 255, 0.68);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.rule-item {
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}

.rule-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.rule-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #ae94ff;
  letter-spacing: 0.02em;
}

.rule-item p {
  color: rgba(220, 214, 255, 0.78);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.rule-item p:last-of-type {
  margin-bottom: 0;
}

.rule-item strong {
  color: #f4efff;
}

.rule-item ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0 0;
}

.rule-item li {
  color: rgba(220, 214, 255, 0.72);
  line-height: 1.65;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  position: relative;
}

.rule-item li:before {
  content: "⤷";
  position: absolute;
  left: 0;
  color: #ae94ff;
  font-weight: 700;
}

  .options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
  }

  .option-card {
    padding: 1.8rem;
    border-radius: 28px;
    background: rgba(15, 12, 31, 0.96);
    border: 1px solid rgba(124, 58, 237, 0.18);
  }

  .option-card h4 {
    margin-bottom: 1rem;
    color: #e8deff;
    font-size: 1.05rem;
  }

  .option-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .option-card li {
    color: rgba(220, 214, 255, 0.82);
    line-height: 1.75;
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
    position: relative;
  }

  .option-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ae94ff;
    font-weight: 700;
  }


.rank-info li {
  color: rgba(220, 214, 255, 0.72);
  line-height: 1.65;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.rank-info li:before {
  content: "⤷";
  position: absolute;
  left: 0;
  color: #ae94ff;
  font-weight: 700;
}

.rank-table-wrapper {
  overflow-x: auto;
  margin-bottom: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.rank-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 24px;
  overflow: hidden;
  font-size: 0.95rem;
}

.rank-table thead tr:first-child th:first-child {
  border-top-left-radius: 24px;
}

.rank-table thead tr:first-child th:last-child {
  border-top-right-radius: 24px;
}

.rank-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 24px;
}

.rank-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 24px;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rank-table thead {
  background: rgba(124, 58, 237, 0.2);
  border-bottom: 2px solid rgba(124, 58, 237, 0.3);
}

.rank-table th {
  padding: 1rem;
  text-align: left;
  color: #f4efff;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-right: 1px solid rgba(124, 58, 237, 0.15);
}

.rank-table th:last-child {
  border-right: none;
}

.rank-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  border-right: 1px solid rgba(124, 58, 237, 0.08);
  color: rgba(220, 214, 255, 0.78);
}

.rank-table td:last-child {
  border-right: none;
}

.rank-table tbody tr:last-child td {
  border-bottom: none;
}

.rank-leadership {
  background: rgba(139, 0, 0, 0.15);
}

.rank-leadership:hover {
  background: rgba(139, 0, 0, 0.25);
}

.rank-officer {
  background: rgba(184, 134, 11, 0.12);
}

.rank-officer:hover {
  background: rgba(184, 134, 11, 0.2);
}

.rank-junior {
  background: rgba(184, 184, 11, 0.1);
}

.rank-junior:hover {
  background: rgba(184, 184, 11, 0.18);
}

@media (max-width: 1140px) {
  .page-shell {
    padding: 0 1.5rem 3rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.75rem;
  }
}

@media (max-width: 920px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    padding: 2.75rem 1.5rem;
  }
  .topbar {
    gap: 0.75rem;
    align-items: stretch;
  }

  .brand {
    position: relative;
    left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .main-nav {
    gap: 0.7rem;
  }

  .main-nav a {
    padding: 0.75rem 0.8rem;
    font-size: 0.88rem;
  }

  .login-trigger {
    position: static;
    width: 100%;
    max-width: 360px;
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
    text-align: center;
  }

  .rank-item {
    flex-direction: column;
    gap: 0.9rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0 1rem 2rem;
  }

  .hero {
    gap: 1.5rem;
    padding: 2.2rem 1rem;
  }

  .hero-copy h2 {
    font-size: 2.8rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cards-grid,
  .options-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    gap: 0.55rem;
  }

  .main-nav a {
    padding: 0.7rem 0.75rem;
  }

  .hero-panel {
    padding: 1.6rem;
  }

  .stats-card {
    padding: 1.1rem 1.2rem;
  }

  .card {
    padding: 1.2rem;
  }

  .section-head {
    margin-bottom: 3rem;
  }

  .rank-hero {
    padding: 4.5rem 0.75rem 1.5rem;
  }

  .rank-item {
    padding: 0.95rem 1rem;
  }

  .rank-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .rank-details {
    padding-top: 0.75rem;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0.85rem 0.8rem;
  }

  .brand h1 {
    font-size: 1.1rem;
  }

  .hero-copy p,
  .hero-panel p,
  .card p {
    font-size: 0.95rem;
  }

  .hero-panel h3 {
    font-size: 1.35rem;
  }

  .login-form label {
    font-size: 0.92rem;
  }

  .login-form input {
    padding: 0.85rem 0.95rem;
  }

  .login-panel {
    padding: 1.75rem;
  }
}

/* ============ Rangordnung ============ */
.rank-hero {
  text-align: center;
  padding: 6.5rem 1rem 2rem;
}
.rank-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin: 0 0 0.6rem;
  color: #e6eefc;
  letter-spacing: 0.02em;
}
.rank-divider {
  width: min(980px, 86%);
  margin: 0.8rem auto 2.2rem;
  border-top: 1px solid rgba(255, 200, 60, 0.06);
  position: relative;
}
.rank-divider::before {
  content: "OFFIZIERE";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(8,8,18,0.92), rgba(8,8,18,0.92));
  padding: 0 0.75rem;
  color: rgba(255, 200, 60, 0.82);
  letter-spacing: 0.25em;
  font-size: 0.72rem;
}
.rank-container {
  margin-top: 1.5rem;
  padding: 1rem 0 4rem;
}
.rank-list {
  max-width: 1100px;
  margin: 0 auto;
}
.rank-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.15rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
}
.rank-badge {
  width: 64px;
  min-width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 2px solid rgba(255, 200, 60, 0.85);
  color: #ffdca3;
  font-weight: 800;
  background: rgba(8,10,18,0.8);
  flex-shrink: 0;
}
.rank-content { flex: 1; }
.rank-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rank-title h4 { margin: 0; color: #f4efff; font-size: 1.02rem; }
.rank-meta { color: rgba(220,214,255,0.6); font-size: 0.9rem; }
.rank-details { margin-top: 0.9rem; color: rgba(220,214,255,0.78); display: none; border-top: 1px dashed rgba(255,255,255,0.03); padding-top: 0.9rem; }
.rank-item.open .rank-details { display: block; }
.rank-toggle { cursor: pointer; color: rgba(220,214,255,0.6); padding-left: 0.5rem; }

@media (max-width: 920px) {
  .rank-hero { padding-top: 5rem; }
  .rank-badge { width: 52px; height: 52px; min-width: 52px; }
}
