/* ========================================
   Landing Page Styles
   ======================================== */

.landing-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  position: relative;
  overflow-x: hidden;
}

.landing-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.landing-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.landing-bubbles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: bubble 20s infinite linear;
}
.landing-bubbles span:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  bottom: -100px;
  animation-duration: 22s;
}
.landing-bubbles span:nth-child(2) {
  width: 120px;
  height: 120px;
  left: 30%;
  bottom: -150px;
  animation-duration: 28s;
  animation-delay: 2s;
}
.landing-bubbles span:nth-child(3) {
  width: 60px;
  height: 60px;
  left: 55%;
  bottom: -80px;
  animation-duration: 18s;
  animation-delay: 5s;
}
.landing-bubbles span:nth-child(4) {
  width: 100px;
  height: 100px;
  left: 75%;
  bottom: -120px;
  animation-duration: 24s;
  animation-delay: 8s;
}
.landing-bubbles span:nth-child(5) {
  width: 140px;
  height: 140px;
  left: 88%;
  bottom: -180px;
  animation-duration: 30s;
  animation-delay: 1s;
}

@keyframes bubble {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) translateX(40px);
    opacity: 0;
  }
}

.landing-wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.landing-header {
  text-align: center;
  color: #fff;
  margin-bottom: 60px;
}

.landing-logo {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 42px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.landing-header h1 {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.landing-header p {
  font-size: 17px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.landing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

@media (max-width: 720px) {
  .landing-cards {
    grid-template-columns: 1fr;
  }
  .landing-header h1 {
    font-size: 28px;
  }
  .landing-header p {
    font-size: 15px;
  }
  .landing-wrap {
    padding: 40px 18px;
  }
}

.gate-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gate-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 5px;
  background: var(--gate-color, var(--primary));
}
.gate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.gate-card[data-gate="control"] {
  --gate-color: #4f46e5;
}
.gate-card[data-gate="admin"] {
  --gate-color: #06b6d4;
}

.gate-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 38px;
  color: #fff;
  background: var(--gate-color);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--gate-color) 35%, transparent);
}

.gate-card h2 {
  font-size: 23px;
  margin-bottom: 8px;
  color: var(--text);
}

.gate-card p {
  color: var(--text-muted);
  margin-bottom: 22px;
  min-height: 48px;
  font-size: 14px;
}

.gate-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: start;
  width: 100%;
}
.gate-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--text-soft);
  font-size: 13.5px;
}
.gate-features li i {
  color: var(--gate-color);
  font-size: 13px;
  flex-shrink: 0;
}

.gate-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gate-color);
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  margin-top: auto;
}
.gate-card:hover .gate-action {
  gap: 14px;
  transform: translateX(-4px);
}

.landing-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
}
.landing-footer .stack {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.landing-footer .stack span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12.5px;
}

/* ----- Stages picker (control gates) ----- */
.stages-wrap {
  max-width: 1180px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.stages-header {
  margin-bottom: 36px;
}

.stages-logo {
  width: 76px;
  height: 76px;
  font-size: 34px;
  margin-bottom: 18px;
}

.stages-header h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.stages-header p {
  font-size: 15.5px;
  max-width: 640px;
  line-height: 1.75;
}

.stages-info-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.stages-info-pills span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.stages-grid-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}

@media (max-width: 960px) {
  .stages-grid-wrap {
    grid-template-columns: 1fr;
  }
}

.stages-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.15);
}

.stages-panel[data-gender="boys"] .stages-panel-head {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.stages-panel[data-gender="girls"] .stages-panel-head {
  background: linear-gradient(135deg, #9d174d, #ec4899);
}

.stages-panel-head {
  padding: 16px 20px;
  color: #fff;
}

.stages-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stages-panel-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stages-panel-title h2 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.stages-panel-title span {
  font-size: 12px;
  opacity: 0.9;
}

.stages-panel-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stages-section-block {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  padding: 12px 14px 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.stages-section-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.stages-section-label i {
  color: var(--primary);
  font-size: 12px;
}

.stages-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-gate-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.stage-gate-card:hover {
  transform: translateX(-4px);
  border-color: color-mix(in srgb, var(--card-accent, var(--primary)) 40%, var(--border));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--card-accent, var(--primary)) 18%, transparent);
  color: var(--text);
}

.stage-gate-card[data-theme="primary"] {
  --card-accent: #4f46e5;
}
.stage-gate-card[data-theme="upper"] {
  --card-accent: #0891b2;
}
.stage-gate-card[data-theme="middle"] {
  --card-accent: #059669;
}
.stage-gate-card[data-theme="secondary"] {
  --card-accent: #d97706;
}

.stage-gate-card[data-gender="boys"] .stage-gate-icon {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}
.stage-gate-card[data-gender="girls"] .stage-gate-icon {
  background: linear-gradient(135deg, #db2777, #f472b6);
}

.stage-gate-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.stage-gate-body {
  flex: 1;
  min-width: 0;
}

.stage-section-chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--card-accent, var(--primary));
  background: color-mix(in srgb, var(--card-accent, var(--primary)) 12%, transparent);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.stage-gate-body h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.stage-gate-hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

.stage-gate-arrow {
  color: var(--card-accent, var(--primary));
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: var(--transition);
}

.stage-gate-card:hover .stage-gate-arrow {
  opacity: 1;
  transform: translateX(-3px);
}

.stages-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stages-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 100px;
  padding: 10px 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

@media (max-width: 720px) {
  .stages-header h1 {
    font-size: 26px;
  }
  .stages-wrap {
    padding-top: 32px;
  }
}
