:root {
  --kc-ink: #121018;
  --kc-muted: #6f6978;
  --kc-line: #e9e4ee;
  --kc-surface: #f8f6fb;
  --kc-purple: #791cff;
  --kc-pink: #e8008c;
  --kc-red: #ff2948;
  --kc-orange: #ff8a00;
  --kc-gradient: linear-gradient(120deg,
      var(--kc-purple),
      var(--kc-pink) 44%,
      var(--kc-red) 72%,
      var(--kc-orange));
  --kc-shadow: 0 24px 70px rgba(39, 17, 62, 0.13);
  --admin-sidebar-width: 280px;
  --calendar-primary: var(--admin-primary, #6d4aff);
  --calendar-secondary: var(--admin-secondary, #9b55ff);
  --calendar-light: #f3efff;
  --calendar-text: #242238;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--kc-ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--kc-pink);
}

.topbar {
  padding: 0.55rem 0;
  color: rgba(255, 255, 255, 0.76);
  background: #0d0c13;
  font-size: 0.78rem;
}

.topbar a {
  color: #fff;
}

.main-nav {
  z-index: 1030;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(28, 16, 48, 0.06);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(24, 11, 47, 0.05);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--kc-ink);
}

.site-brand:hover {
  color: var(--kc-ink);
}

.site-brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.site-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.site-brand strong {
  font-size: 1.08rem;
  font-weight: 850;
}

.site-brand small {
  margin-top: 0.25rem;
  color: var(--kc-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav .nav-link {
  padding: 0.7rem 0.62rem !important;
  color: #37323c;
  font-size: 0.87rem;
  font-weight: 700;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--kc-purple);
}

.main-nav .dropdown-menu {
  min-width: 245px;
  padding: 0.7rem;
  border: 1px solid rgba(30, 16, 51, 0.08);
  border-radius: 16px;
  box-shadow: var(--kc-shadow);
}

.main-nav .dropdown-item {
  padding: 0.64rem 0.72rem;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 650;
}

.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
  color: var(--kc-purple);
  background: rgba(121, 28, 255, 0.07);
}

.btn-gradient {
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  background: var(--kc-gradient);
  box-shadow: 0 14px 30px rgba(178, 15, 158, 0.22);
  font-weight: 800;
}

.btn-gradient:hover,
.btn-gradient:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(178, 15, 158, 0.3);
}

.btn-soft {
  color: var(--kc-purple);
  border: 1px solid rgba(121, 28, 255, 0.15);
  border-radius: 12px;
  background: rgba(121, 28, 255, 0.07);
  font-weight: 800;
}

.btn-soft:hover,
.btn-soft:focus {
  color: #fff;
  background: var(--kc-purple);
}

.section-space {
  padding: 6rem 0;
}

.section-soft {
  background: var(--kc-surface);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--kc-purple);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 880;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-copy {
  max-width: 720px;
  color: var(--kc-muted);
  line-height: 1.75;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%,
      rgba(255, 138, 0, 0.42),
      transparent 24rem),
    radial-gradient(circle at 12% 82%,
      rgba(121, 28, 255, 0.45),
      transparent 25rem),
    linear-gradient(145deg, #111018 0%, #351048 48%, #851168 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero::before {
  right: -15rem;
  bottom: -17rem;
  width: 43rem;
  height: 43rem;
}

.hero::after {
  top: -13rem;
  left: -14rem;
  width: 32rem;
  height: 32rem;
}

.hero .container-xxl {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd2ec;
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 1.4rem;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-actions .btn {
  min-height: 52px;
  padding: 0.85rem 1.25rem;
}

.hero-logo-card {
  position: relative;
  width: min(100%, 440px);
  margin-left: auto;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.27);
  transform: rotate(2deg);
  backdrop-filter: blur(14px);
}

.hero-logo-card img {
  width: 100%;
  border-radius: 25px;
}

.stats-strip {
  position: relative;
  z-index: 3;
  margin-top: -2.1rem;
}

.stats-card {
  padding: 1.5rem;
  border: 1px solid var(--kc-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--kc-shadow);
}

.stat-item {
  padding: 0.5rem 1rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
}

.stat-item span {
  color: var(--kc-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.league-card,
.feature-card,
.announcement-card,
.calendar-card,
.gallery-card {
  height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--kc-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(38, 17, 61, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.league-card:hover,
.feature-card:hover,
.announcement-card:hover,
.calendar-card:hover,
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--kc-shadow);
}

.icon-box {
  display: inline-grid;
  width: 52px;
  height: 52px;
  margin-bottom: 1.15rem;
  color: #fff;
  border-radius: 15px;
  background: var(--kc-gradient);
  font-size: 1.35rem;
  place-items: center;
}

.league-card h3,
.feature-card h3,
.announcement-card h3,
.calendar-card h3 {
  font-size: 1.12rem;
  font-weight: 850;
}

.league-card p,
.feature-card p,
.announcement-card p,
.calendar-card p {
  margin-bottom: 0;
  color: var(--kc-muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

.step-number {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: #fff;
  border-radius: 50%;
  background: var(--kc-gradient);
  font-weight: 900;
  place-items: center;
}

.date-box {
  min-width: 66px;
  padding: 0.6rem;
  color: #fff;
  border-radius: 15px;
  background: var(--kc-gradient);
  text-align: center;
}

.date-box strong,
.date-box span {
  display: block;
}

.date-box strong {
  font-size: 1.35rem;
}

.date-box span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 240px;
  color: #fff;
  background: linear-gradient(145deg, #24102f, #7a1cff 55%, #ff2948);
  place-items: end start;
}

.gallery-card:nth-child(2n) {
  background: linear-gradient(145deg, #351048, #e9008c 58%, #ff8a00);
}

.gallery-card i {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  color: rgba(255, 255, 255, 0.32);
  font-size: 4rem;
}

.gallery-card strong {
  position: relative;
  z-index: 1;
  font-size: 1.08rem;
}

.app-panel,
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #fff;
  border-radius: 30px;
  background: linear-gradient(135deg, #17121f, #50105c 55%, #b21170);
  box-shadow: var(--kc-shadow);
}

.app-panel p,
.cta-panel p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.accordion-item {
  margin-bottom: 0.8rem;
  border: 1px solid var(--kc-line) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.accordion-button {
  padding: 1.2rem;
  font-weight: 800;
}

.accordion-button:not(.collapsed) {
  color: var(--kc-purple);
  background: rgba(121, 28, 255, 0.06);
  box-shadow: none;
}

.page-hero {
  padding: 4.6rem 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%,
      rgba(255, 138, 0, 0.34),
      transparent 18rem),
    linear-gradient(135deg, #111018, #421052 58%, #8e135e);
}

.page-hero h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.form-section {
  padding: 5.5rem 0;
  background: var(--kc-surface);
}

.form-card,
.aside-card {
  border: 1px solid var(--kc-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--kc-shadow);
}

.form-card {
  padding: clamp(1.4rem, 4vw, 2.8rem);
}

.aside-card {
  padding: 2rem;
}

.form-card h2,
.aside-card h2 {
  font-weight: 880;
  letter-spacing: -0.04em;
}

.form-intro {
  color: var(--kc-muted);
  line-height: 1.7;
}

.form-label {
  margin-bottom: 0.45rem;
  color: #3d3744;
  font-size: 0.86rem;
  font-weight: 780;
}

.form-control,
.form-select {
  min-height: 52px;
  padding: 0.76rem 0.9rem;
  border-color: #dcd7e2;
  border-radius: 12px;
  box-shadow: none !important;
}

textarea.form-control {
  min-height: 132px;
  resize: vertical;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--kc-purple);
}

.validation-errors {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  color: #8a1d2b;
  border: 1px solid #f1b9c1;
  border-radius: 14px;
  background: #fff3f5;
}

.validation-errors strong {
  display: block;
  margin-bottom: 0.35rem;
}

.validation-errors p,
.validation-errors ul {
  margin-bottom: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.validation-errors ul {
  padding-left: 1.2rem;
}

.form-help {
  margin-top: 0.38rem;
  color: var(--kc-muted);
  font-size: 0.76rem;
}

.portal-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.portal-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--kc-line);
  border-radius: 14px;
  background: var(--kc-surface);
}

.portal-item i {
  display: inline-grid;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  color: #fff;
  border-radius: 11px;
  background: var(--kc-gradient);
  font-size: 1rem;
  line-height: 1;
  place-items: center;
}

.portal-item>div {
  flex: 1 1 auto;
  min-width: 0;
}

.portal-item strong,
.portal-item small {
  display: block;
}

.portal-item small {
  color: var(--kc-muted);
}

.contact-point {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.contact-point i {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--kc-purple);
  border-radius: 12px;
  background: rgba(121, 28, 255, 0.08);
  place-items: center;
}

.contact-point strong,
.contact-point span {
  display: block;
}

.contact-point span {
  color: var(--kc-muted);
  font-size: 0.86rem;
}

.site-footer {
  padding: 5rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.66);
  background: #0d0c13;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 850;
}

.footer-brand:hover {
  color: #fff;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer h6 {
  margin-bottom: 1.15rem;
  color: #fff;
  font-weight: 800;
}

.site-footer a {
  display: block;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  max-width: 500px;
  line-height: 1.72;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

@media (max-width: 1199.98px) {
  .main-nav .navbar-collapse {
    max-height: calc(100vh - 90px);
    padding: 1rem 0;
    overflow-y: auto;
  }

  .main-nav .nav-item {
    width: 100%;
  }

  .main-nav .btn-gradient {
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding: 5.5rem 0;
  }

  .hero-logo-card {
    width: min(100%, 360px);
    margin: 3rem auto 0;
  }

  .section-space {
    padding: 4.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .topbar {
    display: none;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .main-nav {
    padding: 0.65rem 0;
  }

  .site-brand {
    gap: 0.55rem;
    max-width: calc(100% - 70px);
  }

  .site-brand img {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
  }

  .site-brand span {
    display: flex;
    min-width: 0;
  }

  .site-brand strong {
    overflow: hidden;
    font-size: 0.92rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .site-brand small {
    overflow: hidden;
    margin-top: 0.2rem;
    font-size: 0.52rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .navbar-toggler {
    flex: 0 0 auto;
    padding: 0.55rem 0.7rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-space,
  .form-section {
    padding: 3.5rem 0;
  }

  .page-hero {
    padding: 3.5rem 0;
  }

  .form-card,
  .aside-card {
    border-radius: 18px;
  }
}

/* Admin dashboard */
.admin-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #f5f3f8;
}

.admin-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 1040;
  display: flex;
  align-self: start;
  width: var(--admin-sidebar-width);
  overflow-y: auto;
  height: 100vh;
  min-height: 100vh;
  padding: 1.25rem 1rem;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 20% 5%,
      rgba(121, 28, 255, 0.28),
      transparent 16rem),
    #111018;
  flex-direction: column;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.35rem 0.45rem 1.2rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-brand:hover {
  color: #fff;
}

.admin-brand-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  color: #fff;
}

.admin-brand-link:hover {
  color: #fff;
}

.admin-brand img {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  object-fit: cover;
}

.admin-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.admin-brand strong {
  font-size: 1rem;
  font-weight: 850;
}

.admin-brand small {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  cursor: pointer;
}

.menu-close-icon {
  display: none;
}

.admin-menu-wrap {
  padding-top: 1rem;
}

.admin-menu-label {
  margin: 1.1rem 0 0.45rem;
  padding: 0 0.75rem;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-menu {
  display: grid;
  gap: 0.24rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.72rem 0.78rem;
  color: rgba(255, 255, 255, 0.68);
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 680;
}

.admin-menu a:hover,
.admin-menu a.active {
  color: #fff;
  background: linear-gradient(115deg,
      rgba(121, 28, 255, 0.62),
      rgba(232, 0, 140, 0.48));
}

.admin-menu a i {
  width: 20px;
  font-size: 1rem;
  text-align: center;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 1.15rem 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.72rem;
}

.admin-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
}

.admin-page-content {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
}

.admin-page-content>.admin-main {
  width: 100%;
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 0.9rem 1.75rem;
  border-bottom: 1px solid var(--kc-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.admin-breadcrumb {
  margin: 0;
  color: var(--kc-muted);
  font-size: 0.82rem;
}

.admin-breadcrumb strong {
  color: var(--kc-ink);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 12px;
  background: var(--kc-gradient);
  font-weight: 900;
  place-items: center;
}

.admin-user strong,
.admin-user small {
  display: block;
}

.admin-user small {
  color: var(--kc-muted);
  font-size: 0.72rem;
}

.admin-main {
  width: 100%;
  min-width: 0;
  padding: 2rem;
}

.admin-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.admin-page-heading h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.admin-page-heading p {
  margin: 0;
  color: var(--kc-muted);
}

.admin-card {
  height: auto;
  padding: 1.35rem;
  border: 1px solid var(--kc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(37, 16, 62, 0.055);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.admin-card-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 850;
}

.admin-card-header p {
  margin: 0.2rem 0 0;
  color: var(--kc-muted);
  font-size: 0.8rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-icon {
  display: inline-grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  margin: 0;
  color: #fff;
  border-radius: 16px;
  background: var(--kc-gradient);
  font-size: 1.35rem;
  line-height: 1;
  place-items: center;
}

.metric-icon i {
  display: block;
  color: inherit;
  font-size: inherit;
  line-height: 1;
}

.metric-card>div {
  min-width: 0;
}

.metric-card>div>strong,
.metric-card>div>span {
  display: block;
}

.metric-card>div>strong {
  color: var(--kc-ink);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.metric-card>div>span {
  margin-top: 0.35rem;
  color: var(--kc-muted);
  font-size: 0.8rem;
  font-weight: 680;
}

.admin-quick-actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-action {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.86rem;
  color: var(--kc-ink);
  border: 1px solid var(--kc-line);
  border-radius: 13px;
  background: var(--kc-surface);
  font-size: 0.82rem;
  font-weight: 750;
}

.admin-action:hover {
  color: var(--kc-purple);
  border-color: rgba(121, 28, 255, 0.25);
  background: rgba(121, 28, 255, 0.06);
}

.admin-action i {
  display: inline-grid;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 10px;
  background: var(--kc-gradient);
  place-items: center;
}

.admin-table {
  margin-bottom: 0;
  font-size: 0.82rem;
  vertical-align: middle;
}

.admin-table thead th {
  padding: 0.8rem;
  color: var(--kc-muted);
  border-bottom-color: var(--kc-line);
  background: var(--kc-surface);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-table tbody td {
  padding: 0.92rem 0.8rem;
  border-bottom-color: var(--kc-line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.58rem;
  color: #087443;
  border-radius: 999px;
  background: #eaf8f1;
  font-size: 0.7rem;
  font-weight: 800;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.activity-list {
  display: grid;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.activity-item i {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--kc-purple);
  border-radius: 11px;
  background: rgba(121, 28, 255, 0.08);
  place-items: center;
}

.activity-item strong,
.activity-item small {
  display: block;
}

.activity-item strong {
  font-size: 0.82rem;
}

.activity-item small {
  margin-top: 0.2rem;
  color: var(--kc-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.admin-form .form-control,
.admin-form .form-select {
  min-height: 46px;
  font-size: 0.84rem;
}

.admin-form .validation-errors {
  margin-top: 0;
  padding: 0.8rem 0.9rem;
}

.admin-footer {
  position: static !important;
  inset: auto !important;
  z-index: auto;
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  margin-top: auto;
  padding: 1.25rem 2rem 2rem;
  color: var(--kc-muted);
  font-size: 0.74rem;
}

@media (max-width: 1199.98px) {
  :root {
    --admin-sidebar-width: 250px;
  }
}

@media (max-width: 991.98px) {
  .admin-shell {
    display: block;
    width: 100%;
    min-height: 100vh;
  }

  .admin-content {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 1080;
    display: flex;
    width: 100%;
    max-width: 100%;
    height: auto;

    /* Important mobile fix */
    min-height: 0;
    align-self: auto;

    padding: 1rem;
    overflow: visible;
  }

  .admin-brand {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
    border-bottom: 0;
  }

  .admin-brand-link {
    min-width: 0;
  }

  .admin-brand img {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
  }

  .admin-brand span {
    min-width: 0;
  }

  .admin-brand strong {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-mobile-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .admin-menu-wrap {
    display: none;
    width: 100%;
    padding: 1rem 0 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    overscroll-behavior: contain;
  }

  .admin-nav-check:checked~.admin-menu-wrap {
    display: block;
  }

  .admin-sidebar:has(.admin-nav-check:checked) {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1rem;
    overflow: hidden;
  }

  .admin-sidebar:has(.admin-nav-check:checked) .admin-menu-wrap {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    margin: 1rem -1rem 0;
    padding: 0 1rem 2rem;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .admin-sidebar:has(.admin-nav-check:checked) .menu-open-icon {
    display: none;
  }

  .admin-sidebar:has(.admin-nav-check:checked) .menu-close-icon {
    display: inline-block;
  }

  .admin-body:has(.admin-nav-check:checked) {
    overflow: hidden;
  }

  .admin-sidebar-footer {
    display: none;
  }

  .admin-topbar {
    position: static;
    width: 100%;
  }

  .admin-page-content,
  .admin-page-content>.admin-main {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .admin-main {
    padding: 1.25rem;
  }

  .admin-topbar {
    padding: 0.8rem 1.25rem;
  }

  .admin-user div:last-child {
    display: none;
  }

  .admin-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-quick-actions {
    grid-template-columns: 1fr;
  }

  .admin-footer {
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
  }
}

/* KnowChamp Flatpickr Theme */
.flatpickr-calendar {
  width: 320px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(39, 31, 87, 0.18);
  overflow: hidden;
  font-family: inherit;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
  border-bottom-color: var(--calendar-primary);
}

.flatpickr-months {
  padding: 8px 6px;
  background: linear-gradient(135deg,
      var(--calendar-primary),
      var(--calendar-secondary));
}

.flatpickr-months .flatpickr-month {
  height: 42px;
  color: #fff;
  background: transparent;
}

.flatpickr-current-month {
  padding-top: 7px;
  color: #fff;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #fff;
  background: transparent;
  font-weight: 700;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover {
  background: rgba(255, 255, 255, 0.12);
}

.flatpickr-monthDropdown-months option {
  color: var(--calendar-text);
  background: #fff;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 8px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: rgba(255, 255, 255, 0.15);
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  fill: #fff;
}

.flatpickr-weekdays {
  background: var(--calendar-light);
}

span.flatpickr-weekday {
  color: var(--calendar-primary);
  background: transparent;
  font-weight: 700;
}

.flatpickr-innerContainer {
  padding: 8px;
}

.flatpickr-days {
  border: 0;
}

.flatpickr-day {
  border-radius: 10px;
  color: var(--calendar-text);
  font-weight: 500;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  border-color: var(--calendar-light);
  background: var(--calendar-light);
  color: var(--calendar-primary);
}

.flatpickr-day.today {
  border-color: var(--calendar-primary);
  color: var(--calendar-primary);
  font-weight: 700;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
  border-color: var(--calendar-primary);
  background: var(--calendar-primary);
  color: #fff;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  border-color: var(--calendar-primary);
  background: linear-gradient(135deg,
      var(--calendar-primary),
      var(--calendar-secondary));
  color: #fff;
  box-shadow: 0 6px 14px rgba(109, 74, 255, 0.25);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay.flatpickr-disabled,
.flatpickr-day.nextMonthDay.flatpickr-disabled {
  border-color: transparent;
  background: transparent;
  color: #c9c7d2;
  opacity: 0.55;
  cursor: not-allowed;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #aaa7b5;
}

.flatpickr-input[readonly],
.form-control.flatpickr-input {
  background-color: #fff;
  cursor: pointer;
}

/* Fix admin sidebar scrollbar */
@media (min-width: 992px) {
  .admin-sidebar {
    overflow: hidden;
  }

  .admin-menu-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .admin-menu-wrap::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

/* Professional dashboard */
.dashboard-welcome-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
  gap: 2rem;
  padding: 2rem;
  overflow: hidden;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.22), transparent 13rem),
    linear-gradient(125deg, #34116d 0%, #791cff 46%, #e8008c 100%);
  box-shadow: 0 22px 55px rgba(83, 23, 143, 0.22);
}

.dashboard-welcome-card::before,
.dashboard-welcome-card::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-welcome-card::before {
  top: -90px;
  right: -30px;
  width: 260px;
  height: 260px;
}

.dashboard-welcome-card::after {
  right: 155px;
  bottom: -130px;
  width: 220px;
  height: 220px;
}

.dashboard-welcome-content,
.dashboard-welcome-action {
  position: relative;
  z-index: 2;
}

.dashboard-welcome-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.dashboard-welcome-avatar,
.dashboard-profile-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
  font-weight: 900;
  place-items: center;
}

.dashboard-welcome-avatar {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  font-size: 1.45rem;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.08);
}

.dashboard-welcome-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-welcome-card h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.dashboard-welcome-card p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-info-success {
  color: #fff;
  background: rgba(26, 188, 106, 0.28);
}

.dashboard-welcome-action .btn {
  color: var(--kc-purple);
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-table-label {
  display: inline-flex;
  padding: 0.38rem 0.65rem;
  color: var(--kc-purple);
  border-radius: 999px;
  background: rgba(121, 28, 255, 0.08);
  font-size: 0.73rem;
  font-weight: 750;
}

.dashboard-empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 430px;
  margin: auto;
}

.dashboard-empty-state>span {
  display: inline-grid;
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  color: var(--kc-purple);
  border-radius: 16px;
  background: rgba(121, 28, 255, 0.08);
  font-size: 1.3rem;
  place-items: center;
}

.dashboard-empty-state strong {
  display: block;
  margin-bottom: 0.25rem;
}

.dashboard-empty-state p {
  margin: 0;
  color: var(--kc-muted);
  font-size: 0.82rem;
}

.dashboard-notice-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--kc-line);
  border-radius: 12px;
  background: var(--kc-surface);
}

.dashboard-notice-item>i {
  color: var(--kc-orange);
}

.dashboard-notice-item strong,
.dashboard-notice-item small {
  display: block;
}

.dashboard-notice-item small {
  margin-top: 0.2rem;
  color: var(--kc-muted);
}

.dashboard-profile-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--kc-line);
}

.dashboard-profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--kc-gradient);
}

.dashboard-profile-header>div:nth-child(2) {
  min-width: 0;
}

.dashboard-profile-label {
  display: block;
  color: var(--kc-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-profile-header h2 {
  overflow: hidden;
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-profile-header small {
  color: var(--kc-muted);
}

.dashboard-edit-button {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-left: auto;
  color: var(--kc-purple);
  border: 1px solid rgba(121, 28, 255, 0.15);
  border-radius: 11px;
  background: rgba(121, 28, 255, 0.06);
  place-items: center;
}

.dashboard-edit-button:hover {
  color: #fff;
  background: var(--kc-gradient);
}

.dashboard-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.15rem;
}

.dashboard-profile-grid>div {
  min-width: 0;
}

.dashboard-profile-grid span,
.dashboard-profile-grid strong {
  display: block;
}

.dashboard-profile-grid span {
  margin-bottom: 0.3rem;
  color: var(--kc-muted);
  font-size: 0.7rem;
}

.dashboard-profile-grid strong {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.dashboard-profile-wide {
  grid-column: 1 / -1;
}

.dashboard-quick-grid {
  display: grid;
  gap: 0.75rem;
}

.dashboard-quick-link {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0.9rem;
  color: var(--kc-ink);
  border: 1px solid var(--kc-line);
  border-radius: 14px;
  background: #fff;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.dashboard-quick-link:hover {
  color: var(--kc-ink);
  border-color: rgba(121, 28, 255, 0.3);
  box-shadow: 0 12px 28px rgba(65, 25, 103, 0.1);
  transform: translateY(-2px);
}

.dashboard-quick-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 12px;
  background: var(--kc-gradient);
  place-items: center;
}

.dashboard-quick-link strong,
.dashboard-quick-link small {
  display: block;
}

.dashboard-quick-link strong {
  margin-bottom: 0.15rem;
  font-size: 0.84rem;
}

.dashboard-quick-link small {
  color: var(--kc-muted);
  font-size: 0.7rem;
}

.dashboard-quick-arrow {
  color: var(--kc-purple);
}

@media (max-width: 767.98px) {
  .dashboard-welcome-card {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 1.35rem;
    border-radius: 18px;
  }

  .dashboard-welcome-content {
    align-items: flex-start;
  }

  .dashboard-welcome-avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .dashboard-welcome-card h2 {
    font-size: 1.35rem;
  }

  .dashboard-welcome-action,
  .dashboard-welcome-action .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .dashboard-welcome-content {
    flex-direction: column;
  }

  .dashboard-profile-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-profile-wide {
    grid-column: auto;
  }
}

/* Admin dashboard extension */
.dashboard-welcome-admin {
  background:
    radial-gradient(circle at 88% 15%,
      rgba(255, 255, 255, 0.18),
      transparent 14rem),
    linear-gradient(125deg,
      #171023 0%,
      #3b146d 38%,
      #791cff 70%,
      #e8008c 100%);
}

.dashboard-attention-stack {
  grid-template-columns: 1fr;
}

.dashboard-league-list {
  display: grid;
  gap: 1rem;
}

.dashboard-league-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--kc-line);
  border-radius: 16px;
  background:
    linear-gradient(135deg,
      rgba(121, 28, 255, 0.025),
      rgba(232, 0, 140, 0.018));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.dashboard-league-item:hover {
  border-color: rgba(121, 28, 255, 0.2);
  box-shadow: 0 14px 32px rgba(53, 20, 84, 0.08);
  transform: translateY(-2px);
}

.dashboard-league-icon {
  display: inline-grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 15px;
  background: var(--kc-gradient);
  font-size: 1.2rem;
  place-items: center;
}

.dashboard-league-content {
  flex: 1;
  min-width: 0;
}

.dashboard-league-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-league-heading h3 {
  display: inline;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 850;
}

.dashboard-league-heading small {
  color: var(--kc-muted);
  font-size: 0.7rem;
}

.dashboard-league-meta {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.2fr 1.1fr 0.8fr;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--kc-line);
}

.dashboard-league-meta>div {
  min-width: 0;
}

.dashboard-league-meta span,
.dashboard-league-meta strong,
.dashboard-league-meta small {
  display: block;
}

.dashboard-league-meta span {
  margin-bottom: 0.25rem;
  color: var(--kc-muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dashboard-league-meta strong {
  overflow-wrap: anywhere;
  font-size: 0.76rem;
}

.dashboard-league-meta small {
  margin-top: 0.15rem;
  color: var(--kc-muted);
  font-size: 0.66rem;
}

@media (max-width: 1399.98px) {
  .dashboard-league-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .dashboard-league-item {
    flex-direction: column;
  }

  .dashboard-league-heading {
    width: 100%;
  }

  .dashboard-league-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .dashboard-league-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-league-heading .btn {
    width: 100%;
  }

  .dashboard-league-meta {
    grid-template-columns: 1fr;
  }
}

/* Pending action panel */
.pending-actions-title-icon {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #b86b00;
  border-radius: 9px;
  background: rgba(255, 138, 0, 0.12);
  font-size: 0.9rem;
  place-items: center;
}

.pending-actions-total {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  color: #8a4f00;
  border: 1px solid rgba(255, 138, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
}

.pending-action-list {
  display: grid;
  gap: 0.75rem;
}

.pending-action-link {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.9rem;
  color: var(--kc-ink);
  border: 1px solid var(--kc-line);
  border-radius: 14px;
  background: linear-gradient(135deg,
      rgba(121, 28, 255, 0.025),
      rgba(255, 255, 255, 1));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.pending-action-link:hover {
  color: var(--kc-ink);
  border-color: rgba(121, 28, 255, 0.25);
  box-shadow: 0 12px 28px rgba(57, 21, 91, 0.09);
  transform: translateY(-2px);
}

.pending-action-icon {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, #5f20dc, #8d37ff);
  font-size: 1.05rem;
  place-items: center;
}

.pending-action-icon-pink {
  background: linear-gradient(135deg, #b1008a, #ed258c);
}

.pending-action-icon-orange {
  background: linear-gradient(135deg, #e25d00, #ff9b19);
}

.pending-action-content {
  min-width: 0;
}

.pending-action-content strong,
.pending-action-content small {
  display: block;
}

.pending-action-content strong {
  overflow: hidden;
  color: var(--kc-ink);
  font-size: 0.84rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-action-content small {
  margin-top: 0.2rem;
  color: var(--kc-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.pending-action-end {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.pending-action-count {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  padding: 0 0.5rem;
  color: var(--kc-purple);
  border-radius: 9px;
  background: rgba(121, 28, 255, 0.09);
  font-size: 0.75rem;
  font-weight: 900;
  place-items: center;
}

.pending-action-arrow {
  color: var(--kc-purple);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.pending-action-link:hover .pending-action-arrow {
  transform: translateX(3px);
}

.pending-actions-clear {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 105px;
  padding: 1rem;
  border: 1px solid rgba(26, 166, 98, 0.18);
  border-radius: 15px;
  background: linear-gradient(135deg,
      rgba(26, 166, 98, 0.08),
      rgba(121, 28, 255, 0.025));
}

.pending-actions-clear-icon {
  display: inline-grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  color: #168952;
  border-radius: 16px;
  background: rgba(26, 166, 98, 0.12);
  font-size: 1.4rem;
  place-items: center;
}

.pending-actions-clear strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 850;
}

.pending-actions-clear p {
  margin: 0;
  color: var(--kc-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  .pending-action-link {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pending-action-end {
    grid-column: 2;
    justify-content: space-between;
  }

  .pending-action-content strong {
    white-space: normal;
  }

  .pending-actions-clear {
    align-items: flex-start;
  }
}

/* Homepage gallery slider */
.gallery-slider {
  position: relative;
  width: 100%;
  min-width: 0;
}

.gallery-slider-track {
  display: flex;
  width: 100%;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.gallery-slider-track::-webkit-scrollbar {
  display: none;
}

.gallery-slider-item {
  flex: 0 0 calc((100% - 4.5rem) / 4);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gallery-slider-item .gallery-card {
  width: 100%;
  min-height: 300px;
}

.gallery-slider-button {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--kc-purple);
  border: 1px solid rgba(121, 28, 255, 0.2);
  border-radius: 50%;
  background: rgba(121, 28, 255, 0.06);
  box-shadow: 0 8px 20px rgba(38, 17, 61, 0.08);
  place-items: center;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.gallery-slider-button:hover,
.gallery-slider-button:focus {
  color: #fff;
  border-color: var(--kc-purple);
  background: var(--kc-gradient);
  box-shadow: 0 12px 24px rgba(121, 28, 255, 0.22);
  transform: translateY(-2px);
}

.gallery-slider-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1199.98px) {
  .gallery-slider-item {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 767.98px) {
  .gallery-slider-track {
    gap: 1rem;
  }

  .gallery-slider-item {
    flex-basis: 100%;
  }

  .gallery-slider-item .gallery-card {
    min-height: 280px;
  }

  .gallery-slider-button {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slider-track {
    scroll-behavior: auto;
  }
}

/* ================================================================
   Refined homepage hero slider
   ================================================================ */

.hero.hero-slider {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-slider .carousel {
  position: relative;
  z-index: 2;
}

.hero-slider .carousel-inner {
  overflow: hidden;
}

.hero-slider .carousel-item {
  min-height: 610px;
  padding: 4.75rem 0 5.75rem;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slider .carousel-item .row {
  min-height: 430px;
}

.hero-slider h1 {
  max-width: 740px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.hero-slider p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

.hero-slider .hero-badge {
  margin-bottom: 1.15rem;
  padding: 0.65rem 1rem;
  color: #ffe0f2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.hero-slider .hero-actions {
  margin-top: 1.75rem;
}

.hero-slider .hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.78rem 1.2rem;
  border-radius: 12px;
}

/* Hero logo */
.hero-slider .hero-logo-card {
  width: min(100%, 390px);
  margin-left: auto;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.24);
  transform: rotate(1deg);
  backdrop-filter: blur(16px);
}

.hero-slider .hero-logo-card::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.16),
      transparent 45%,
      rgba(255, 41, 72, 0.18));
}

.hero-slider .hero-logo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 23px;
  object-fit: cover;
}

.hero-logo-label {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  left: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  background: rgba(14, 9, 23, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(12px);
}

/* Indicators are intentionally hidden because arrow controls are provided. */
.hero-slider .carousel-indicators,
.hero-slider .hero-slider-indicators,
.hero-slider-indicators {
  display: none !important;
}

/* Previous and next controls */
.hero-slider-control {
  position: absolute;
  z-index: 30;
  bottom: 3.5rem;
  display: inline-grid;
  width: 50px;
  height: 50px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(17, 10, 28, 0.82);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  place-items: center;
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(14px);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hero-slider-control i {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
}

.hero-slider-control:hover,
.hero-slider-control:focus {
  color: #fff;
  border-color: transparent;
  background: var(--kc-gradient);
  box-shadow:
    0 16px 36px rgba(121, 28, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.hero-slider-control:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.hero-slider-previous {
  right: 6.6rem;
  left: auto;
}

.hero-slider-next {
  right: 2.5rem;
  left: auto;
}

/* ================================================================
   Hero slider: slide first, then reveal text
   ================================================================ */

.hero-slider .carousel-item {
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.hero-slider .carousel-item.active,
.hero-slider .carousel-item-next,
.hero-slider .carousel-item-prev,
.hero-slider .carousel-item-start,
.hero-slider .carousel-item-end {
  backface-visibility: hidden;
}

.hero-slider .carousel-item img {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/*
 * Prevent the outgoing and incoming right-side cards from overlapping.
 * The outgoing card remains visible while it slides away. The incoming
 * card stays hidden until Bootstrap finishes the horizontal transition.
 */
.hero-slider .carousel-item .hero-logo-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
  transform: translateX(26px) scale(0.97) rotate(1deg) translateZ(0);
  will-change: opacity, transform;
}

/* Settled active slide: reveal the new image only after sliding ends. */
.hero-slider
  .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end)
  .hero-logo-card {
  visibility: visible;
  pointer-events: auto;
  animation: heroImageAfterSlide 500ms cubic-bezier(0.22, 1, 0.36, 1)
    90ms both;
}

/* Keep only the outgoing image visible while its slide moves away. */
.hero-slider
  .carousel-item.active.carousel-item-start
  .hero-logo-card,
.hero-slider
  .carousel-item.active.carousel-item-end
  .hero-logo-card {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  animation: none;
  transform: rotate(1deg) translateZ(0);
}

/* Never show the incoming image during the horizontal slide movement. */
.hero-slider .carousel-item-next .hero-logo-card,
.hero-slider .carousel-item-prev .hero-logo-card,
.hero-slider
  .carousel-item-next.carousel-item-start
  .hero-logo-card,
.hero-slider
  .carousel-item-prev.carousel-item-end
  .hero-logo-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
  transform: translateX(26px) scale(0.97) rotate(1deg) translateZ(0);
}

@keyframes heroImageAfterSlide {
  from {
    opacity: 0;
    transform: translateX(26px) scale(0.97) rotate(1deg) translateZ(0);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(1deg) translateZ(0);
  }
}

/* Keep the image and label stable during GPU-accelerated movement. */
.hero-slider .hero-logo-card,
.hero-slider .hero-logo-card img,
.hero-slider .hero-logo-label {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-slider .carousel-item .hero-badge,
.hero-slider .carousel-item h1,
.hero-slider .carousel-item p,
.hero-slider .carousel-item .hero-actions {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 620ms;
  will-change: opacity, transform;
}

.hero-slider .carousel-item.active .hero-badge,
.hero-slider .carousel-item.active h1,
.hero-slider .carousel-item.active p,
.hero-slider .carousel-item.active .hero-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.hero-slider .carousel-item.active .hero-badge {
  transition-delay: 60ms;
}

.hero-slider .carousel-item.active h1 {
  transition-delay: 150ms;
}

.hero-slider .carousel-item.active p {
  transition-delay: 260ms;
}

.hero-slider .carousel-item.active .hero-actions {
  transition-delay: 370ms;
}

/*
 * The outgoing slide remains fully visible while it moves away.
 * Bootstrap adds carousel-item-start/end during that movement.
 */
.hero-slider .carousel-item.active.carousel-item-start .hero-badge,
.hero-slider .carousel-item.active.carousel-item-start h1,
.hero-slider .carousel-item.active.carousel-item-start p,
.hero-slider .carousel-item.active.carousel-item-start .hero-actions,
.hero-slider .carousel-item.active.carousel-item-end .hero-badge,
.hero-slider .carousel-item.active.carousel-item-end h1,
.hero-slider .carousel-item.active.carousel-item-end p,
.hero-slider .carousel-item.active.carousel-item-end .hero-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: none;
}

/* Tablet */
@media (max-width: 1199.98px) {
  .hero-slider .carousel-item {
    min-height: 570px;
    padding-top: 4rem;
  }

  .hero-slider h1 {
    font-size: clamp(3rem, 5.5vw, 4.3rem);
  }

  .hero-slider .hero-logo-card {
    width: min(100%, 350px);
  }
}

/* Mobile and tablet navigation */
@media (max-width: 991.98px) {
  .hero-slider .carousel-item {
    min-height: auto;
    padding: 4.5rem 0 6.5rem;
  }

  .hero-slider .carousel-item .row {
    min-height: auto;
  }

  .hero-slider .hero-logo-card {
    width: min(100%, 330px);
    margin: 1.5rem auto 0;
  }

  .hero-slider-control {
    bottom: 4.5rem;
  }

  .hero-slider-previous {
    right: 5.8rem;
    left: auto;
  }

  .hero-slider-next {
    right: 1.5rem;
    left: auto;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .hero-slider .carousel-item {
    padding: 3.5rem 0 6rem;
  }

  .hero-slider h1 {
    font-size: clamp(2.65rem, 13vw, 3.6rem);
    line-height: 0.98;
  }

  .hero-slider p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hero-slider .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero-slider .hero-actions .btn {
    width: 100%;
  }

  .hero-slider .hero-logo-card {
    width: min(100%, 290px);
    padding: 0.75rem;
    border-radius: 25px;
  }

  .hero-slider .hero-logo-card img {
    border-radius: 19px;
  }

  .hero-logo-label {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    min-height: 42px;
    font-size: 0.7rem;
  }

  .hero-slider-control {
    bottom: 2.50rem;
    width: 44px;
    height: 44px;
  }

  .hero-slider-previous {
    right: auto;
    left: calc(50% - 52px);
  }

  .hero-slider-next {
    right: auto;
    left: calc(50% + 8px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-slider .carousel-item,
  .hero-slider-control {
    transition: none !important;
  }

  .hero-slider
    .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end)
    .hero-logo-card {
    opacity: 1;
    visibility: visible;
    animation: none;
    transform: rotate(1deg) translateZ(0);
  }
}

/* ================================================================
   CMS visual and HTML editor
   ================================================================ */

[x-cloak] {
  display: none !important;
}

.cms-content-editor,
.cms-content-preview {
  color: var(--kc-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.cms-content-editor {
  min-height: 430px;
  max-height: 620px;
  padding: 1rem 1.1rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  cursor: text;
  white-space: normal;
}

.cms-content-editor:focus {
  outline: 0;
  background: #fff;
}

.cms-content-editor:empty::before {
  color: #8b94a7;
  content: attr(data-placeholder);
  pointer-events: none;
}

.cms-content-editor p,
.cms-content-preview p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.cms-content-editor h2,
.cms-content-preview h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--kc-ink);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.cms-content-editor h3,
.cms-content-preview h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--kc-ink);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 820;
  line-height: 1.3;
}

.cms-content-editor ul,
.cms-content-editor ol,
.cms-content-preview ul,
.cms-content-preview ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.cms-content-editor li,
.cms-content-preview li {
  margin-bottom: 0.4rem;
}

.cms-content-editor li:last-child,
.cms-content-preview li:last-child {
  margin-bottom: 0;
}

.cms-content-editor strong,
.cms-content-preview strong {
  font-weight: 800;
}

.cms-content-editor a,
.cms-content-preview a {
  color: var(--kc-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cms-content-editor a:hover,
.cms-content-preview a:hover {
  color: var(--kc-pink);
}

.cms-content-editor span[style*="font-size"],
.cms-content-preview span[style*="font-size"] {
  line-height: inherit;
}

.cms-html-editor,
textarea.form-control.cms-html-editor {
  width: 100%;
  min-height: 430px;
  max-height: 620px;
  padding: 1.1rem;
  overflow: auto;
  color: #e5e7eb;
  caret-color: #fff;
  border: 0;
  border-radius: 0;
  background: #111827;
  box-shadow: none !important;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  tab-size: 4;
  white-space: pre;
}

.cms-html-editor:focus,
textarea.form-control.cms-html-editor:focus {
  color: #fff;
  border-color: transparent;
  outline: 0;
  background: #111827;
  box-shadow: none !important;
}

.cms-html-editor::placeholder {
  color: #8b94a7;
}

.cms-html-editor::selection {
  color: #fff;
  background: rgba(121, 28, 255, 0.55);
}

@media (max-width: 767.98px) {

  .cms-content-editor,
  .cms-html-editor,
  textarea.form-control.cms-html-editor {
    min-height: 360px;
    max-height: 540px;
  }

  .cms-content-editor {
    padding: 0.9rem;
  }

  .cms-html-editor,
  textarea.form-control.cms-html-editor {
    padding: 0.9rem;
    font-size: 13px;
  }
}

/* ================================================================
   KnowChamp error pages
   ================================================================ */

.kc-error-page {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  background:
    radial-gradient(circle at 88% 15%,
      rgba(255, 138, 0, 0.12),
      transparent 22rem),
    radial-gradient(circle at 10% 90%,
      rgba(121, 28, 255, 0.13),
      transparent 25rem),
    var(--kc-surface);
}

.kc-error-section {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 5.5rem 0;
}

.kc-error-card {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--kc-line);
  border-radius: 32px;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.98),
      rgba(250, 247, 253, 0.96));
  box-shadow: var(--kc-shadow);
}

.kc-error-card::before {
  position: absolute;
  top: -13rem;
  right: -10rem;
  width: 28rem;
  height: 28rem;
  content: "";
  border-radius: 50%;
  background: linear-gradient(135deg,
      rgba(121, 28, 255, 0.09),
      rgba(232, 0, 140, 0.08));
  pointer-events: none;
}

.kc-error-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.kc-error-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.58rem 0.82rem;
  color: var(--kc-purple);
  border: 1px solid rgba(121, 28, 255, 0.14);
  border-radius: 999px;
  background: rgba(121, 28, 255, 0.07);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kc-error-number {
  display: block;
  width: max-content;
  margin-bottom: 0.6rem;
  background: var(--kc-gradient);
  background-clip: text;
  color: transparent;
  font-size: clamp(5.5rem, 13vw, 10rem);
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 0.8;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kc-error-content h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  color: var(--kc-ink);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.kc-error-content>p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--kc-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.kc-error-path {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 700px;
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  color: var(--kc-muted);
  border: 1px solid var(--kc-line);
  border-radius: 14px;
  background: #fff;
  font-size: 0.82rem;
}

.kc-error-path i {
  flex: 0 0 auto;
  color: var(--kc-purple);
  font-size: 1rem;
}

.kc-error-path span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kc-error-path strong {
  color: var(--kc-ink);
}

.kc-error-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 700px;
  margin-top: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(255, 138, 0, 0.18);
  border-radius: 15px;
  background: rgba(255, 138, 0, 0.07);
}

.kc-error-notice-icon {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: #b86600;
  border-radius: 12px;
  background: rgba(255, 138, 0, 0.12);
  place-items: center;
}

.kc-error-notice strong,
.kc-error-notice span {
  display: block;
}

.kc-error-notice strong {
  margin-bottom: 0.2rem;
  color: var(--kc-ink);
  font-size: 0.86rem;
}

.kc-error-notice span {
  color: var(--kc-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.kc-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.kc-error-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.78rem 1.15rem;
  border-radius: 12px;
  font-weight: 800;
}

.kc-error-actions form {
  margin: 0;
}

.kc-error-visual {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
}

.kc-error-icon {
  position: relative;
  z-index: 3;
  display: grid;
  width: clamp(180px, 23vw, 260px);
  height: clamp(180px, 23vw, 260px);
  color: #fff;
  border: 12px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%,
      rgba(255, 255, 255, 0.24),
      transparent 30%),
    var(--kc-gradient);
  box-shadow:
    0 35px 75px rgba(103, 24, 147, 0.3),
    inset 0 0 50px rgba(255, 255, 255, 0.1);
  font-size: clamp(4rem, 8vw, 7rem);
  place-items: center;
}

.kc-error-icon-lock {
  background:
    radial-gradient(circle at 35% 25%,
      rgba(255, 255, 255, 0.22),
      transparent 30%),
    linear-gradient(135deg, #35106f, #791cff 52%, #e8008c);
}

.kc-error-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(121, 28, 255, 0.15);
  border-radius: 50%;
}

.kc-error-orbit-large {
  width: 340px;
  height: 340px;
}

.kc-error-orbit-small {
  width: 290px;
  height: 290px;
  border-style: dashed;
  animation: kcErrorOrbit 18s linear infinite;
}

.kc-error-floating-icon {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 54px;
  height: 54px;
  color: var(--kc-purple);
  border: 1px solid rgba(121, 28, 255, 0.13);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(61, 22, 93, 0.14);
  font-size: 1.3rem;
  place-items: center;
  animation: kcErrorFloat 4s ease-in-out infinite;
}

.kc-error-floating-one {
  top: 15%;
  left: 8%;
}

.kc-error-floating-two {
  right: 4%;
  bottom: 18%;
  animation-delay: 700ms;
}

.kc-error-floating-three {
  right: 13%;
  top: 8%;
  animation-delay: 1.4s;
}

@keyframes kcErrorOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes kcErrorFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

@media (max-width: 991.98px) {
  .kc-error-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .kc-error-card {
    grid-template-columns: 1fr;
  }

  .kc-error-visual {
    min-height: 330px;
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .kc-error-section {
    padding: 2.5rem 0;
  }

  .kc-error-card {
    gap: 1.5rem;
    padding: 1.4rem;
    border-radius: 22px;
  }

  .kc-error-visual {
    min-height: 260px;
  }

  .kc-error-icon {
    width: 170px;
    height: 170px;
    border-width: 8px;
    font-size: 4rem;
  }

  .kc-error-orbit-large {
    width: 235px;
    height: 235px;
  }

  .kc-error-orbit-small {
    width: 205px;
    height: 205px;
  }

  .kc-error-floating-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1rem;
  }

  .kc-error-actions,
  .kc-error-actions .btn,
  .kc-error-actions form,
  .kc-error-actions form .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .kc-error-orbit-small,
  .kc-error-floating-icon {
    animation: none;
  }
}

/* ================================================================
   KnowChamp refined 403 page
   ================================================================ */

.kc-access-page {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background:
    radial-gradient(circle at 8% 88%, rgba(121, 28, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 93% 8%, rgba(255, 138, 0, 0.11), transparent 22rem),
    #f8f6fb;
}

.kc-access-card {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  max-width: 1200px;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 3.75rem);
  overflow: hidden;
  border: 1px solid rgba(38, 17, 61, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 75px rgba(45, 18, 70, 0.12);
}

.kc-access-card::before {
  position: absolute;
  top: -245px;
  right: -195px;
  width: 510px;
  height: 510px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(145deg,
      rgba(121, 28, 255, 0.1),
      rgba(232, 0, 140, 0.07));
  pointer-events: none;
}

.kc-access-content {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.kc-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  padding: 0.58rem 0.85rem;
  color: var(--kc-purple);
  border: 1px solid rgba(121, 28, 255, 0.16);
  border-radius: 999px;
  background: rgba(121, 28, 255, 0.07);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kc-access-content h1 {
  max-width: 650px;
  margin: 0 0 1rem;
  color: var(--kc-ink);
  font-size: clamp(2.4rem, 4vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.kc-access-description {
  max-width: 650px;
  margin: 0;
  color: var(--kc-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.kc-access-notice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 650px;
  margin-top: 1.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 138, 0, 0.22);
  border-radius: 15px;
  background: rgba(255, 138, 0, 0.07);
}

.kc-access-notice-icon {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: #b86600;
  border-radius: 12px;
  background: rgba(255, 138, 0, 0.14);
  place-items: center;
}

.kc-access-notice strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--kc-ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.kc-access-notice p {
  margin: 0;
  color: var(--kc-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.kc-access-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.kc-access-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.kc-access-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.kc-access-visual-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 370px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.13), transparent 26%),
    radial-gradient(circle at 86% 80%, rgba(255, 138, 0, 0.2), transparent 27%),
    linear-gradient(145deg, #111018 0%, #351048 48%, #851168 100%);
  box-shadow: 0 25px 55px rgba(55, 16, 80, 0.24);
  flex-direction: column;
}

.kc-access-visual-card::before {
  position: absolute;
  top: -78px;
  right: -70px;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.kc-access-visual-card::after {
  position: absolute;
  bottom: -105px;
  left: -85px;
  width: 250px;
  height: 250px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.kc-access-shield {
  position: relative;
  z-index: 4;
  display: grid;
  width: 86px;
  height: 86px;
  margin-bottom: 0.85rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 25px;
  background: var(--kc-gradient);
  box-shadow:
    0 18px 40px rgba(232, 0, 140, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 2.25rem;
  place-items: center;
}

.kc-access-number {
  position: relative;
  z-index: 4;
  display: block;
  color: #fff;
  font-size: clamp(4.5rem, 7vw, 6rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.88;
}

.kc-access-label {
  position: relative;
  z-index: 4;
  display: block;
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kc-access-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.kc-access-orbit-one {
  width: 280px;
  height: 280px;
}

.kc-access-orbit-two {
  width: 230px;
  height: 230px;
  border-style: dashed;
  animation: kcAccessOrbit 20s linear infinite;
}

.kc-access-floating {
  position: absolute;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--kc-purple);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  font-size: 1.12rem;
  place-items: center;
  animation: kcAccessFloat 4s ease-in-out infinite;
}

.kc-access-floating-key {
  top: 13%;
  left: 10%;
}

.kc-access-floating-user {
  right: 9%;
  bottom: 14%;
  animation-delay: 900ms;
}

@keyframes kcAccessOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes kcAccessFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1199.98px) {
  .kc-access-card {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.5rem;
  }

  .kc-access-content h1 {
    font-size: clamp(2.35rem, 4vw, 3.3rem);
  }

  .kc-access-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 991.98px) {
  .kc-access-page {
    padding: 3.5rem 0;
  }

  .kc-access-card {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .kc-access-visual {
    order: -1;
  }

  .kc-access-visual-card {
    width: min(100%, 330px);
  }

  .kc-access-content {
    text-align: center;
  }

  .kc-access-description,
  .kc-access-notice {
    margin-right: auto;
    margin-left: auto;
  }

  .kc-access-notice {
    text-align: left;
  }

  .kc-access-actions {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .kc-access-page {
    padding: 2rem 0;
  }

  .kc-access-card {
    gap: 1.75rem;
    padding: 1.25rem;
    border-radius: 21px;
  }

  .kc-access-content h1 {
    font-size: 2.2rem;
  }

  .kc-access-visual-card {
    width: min(100%, 260px);
    border-radius: 23px;
  }

  .kc-access-shield {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    font-size: 1.85rem;
  }

  .kc-access-number {
    font-size: 3.7rem;
  }

  .kc-access-orbit-one {
    width: 205px;
    height: 205px;
  }

  .kc-access-orbit-two {
    width: 170px;
    height: 170px;
  }

  .kc-access-floating {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .kc-access-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .kc-access-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .kc-access-orbit-two,
  .kc-access-floating {
    animation: none;
  }
}