.dashboard-body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(255,225,68,0.1), transparent 28%),
    linear-gradient(145deg, var(--navy), #0d2234);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 8%, rgba(255,225,68,0.08), transparent 24%),
    linear-gradient(145deg, var(--navy), #0d2234);
}

.sidebar {
  background: linear-gradient(180deg, #102c43 0%, #0a1d2d 100%);
  color: #fff;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: visible;
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: 18px 0 50px rgba(0,0,0,0.14);
}

.sidebar-logo {
  font-size: 40px;
  font-weight: 800;
  color: var(--yellow);
}

.sidebar-label {
  margin-top: 10px;
  opacity: 0.5;
  letter-spacing: 2px;
  font-size: 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.15;
  transition: 0.25s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,225,68,0.12);
  color: #fff;
}

.profile-card {
  margin-top: auto;
  background: rgba(255,255,255,0.1);
  padding: 14px;
  border-radius: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.profile-card > div:last-child {
  min-width: 0;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.profile-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.profile-card p {
  margin: 4px 0 0;
  opacity: 0.72;
  font-size: 12.5px;
  line-height: 1.3;
}

#dashboardUserEmail {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.3;
}

#logoutBtn {
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#logoutBtn:hover,
#logoutBtn:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

#logoutBtn:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.dashboard-main {
  width: 100%;
  max-width: 1720px;
  min-width: 0;
  padding: 72px clamp(48px, 6vw, 104px);
  color: var(--paper);
}

.dashboard-legal-links {
  margin-top: 2rem;
  margin-bottom: 1rem;
  justify-content: center;
  font-size: 0.76rem;
  opacity: 0.62;
}

.dashboard-legal-links a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.dashboard-legal-links a:hover,
.dashboard-legal-links a:focus {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.dashboard-legal-links span {
  color: rgba(255, 255, 255, 0.42);
}

.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(300px, 360px);
  justify-content: space-between;
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin-bottom: 72px;
}

.dashboard-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 680px;
}

.dashboard-platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-platform-link:hover,
.dashboard-platform-link:focus {
  color: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-badge,
.dashboard-label,
.continue-label {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.dashboard-top h1 {
  max-width: 820px;
  font-size: clamp(50px, 5vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 28px 0;
}

.dashboard-top p {
  max-width: 680px;
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255,255,255,0.74);
}

.dashboard-progress-card {
  width: 100%;
  max-width: 360px;
  min-width: 0;
  background: var(--paper);
  color: var(--dark);
  padding: 18px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  justify-self: end;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 24px 70px rgba(0,0,0,0.2);
}

.dashboard-progress-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

.dashboard-progress-cover {
  width: 100%;
  height: 118px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(22,47,69,0.08);
}

.dashboard-progress-cover:empty {
  display: none;
}

.dashboard-progress-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dashboard-progress-main {
  display: block;
  width: 100%;
  min-width: 0;
}

.dashboard-progress-copy {
  display: flex;
  width: 100%;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.dashboard-progress-copy h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.dashboard-progress-btn {
  margin-top: 4px;
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-progress-btn:hover,
.dashboard-progress-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.dashboard-progress-btn:focus-visible {
  outline: 3px solid rgba(255,225,68,0.45);
  outline-offset: 3px;
}

.progress-circle {
  --progress-percent: 0%;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  border: none;
  background:
    radial-gradient(circle, var(--paper) 0 62%, transparent 63%),
    conic-gradient(
      var(--yellow) 0 var(--progress-percent),
      rgba(17,17,17,0.1) var(--progress-percent) 100%
    );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
}

.continue-section {
  width: 100%;
  max-width: 1180px;
  margin-bottom: 56px;
  scroll-margin-top: 32px;
}

.continue-card {
  background: linear-gradient(135deg, #0b1f30, var(--navy));
  color: #fff;
  padding: clamp(34px, 3.5vw, 48px);
  border-radius: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  border: 1px solid rgba(255,225,68,0.3);
  box-shadow: 0 28px 80px rgba(0,0,0,0.24);
}

.continue-card > div {
  max-width: 680px;
}

.path-card-copy {
  width: 100%;
  min-width: 0;
}

.path-card-mini-label {
  display: inline-block;
  margin-top: 22px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

#nastepny-krok .continue-card {
  padding: clamp(28px, 3vw, 40px);
  gap: clamp(24px, 4vw, 48px);
}

#nastepny-krok .path-card-copy {
  max-width: 760px;
}

#nastepny-krok .continue-card h2 {
  margin: 14px 0 18px;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.05;
}

#nastepny-krok .continue-card p {
  max-width: 760px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}

#nastepny-krok .path-card-mini-label {
  margin-top: 14px;
}

#nastepny-krok .continue-btn {
  padding: 15px 26px;
  align-self: center;
}

#nastepny-krok .continue-card {
  display: block;
  background: linear-gradient(135deg, #071a2a, #123450);
  border: 1px solid rgba(255,225,68,0.26);
  overflow: hidden;
}

#nastepny-krok .continue-card.is-dynamic-loading {
  min-height: 260px;
}

#nastepny-krok .support-card-loading {
  min-height: 120px;
  align-content: start;
}

#nastepny-krok .continue-label {
  width: max-content;
  max-width: 100%;
  justify-self: start;
  align-self: start;
}

#nastepny-krok .support-card .continue-label {
  justify-self: center;
}

#nastepny-krok .support-card {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

#nastepny-krok .support-slider {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
}

#nastepny-krok .support-slide {
  position: relative;
  min-height: 260px;
  aspect-ratio: 16 / 8.4;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #071a2a;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 70px rgba(0,0,0,0.22);
}

#nastepny-krok .support-slide-bg,
#nastepny-krok .support-slide-overlay {
  position: absolute;
  inset: 0;
}

#nastepny-krok .support-slide-bg {
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: background-image 0.35s ease;
}

#nastepny-krok .support-slide-overlay {
  background:
    linear-gradient(90deg, rgba(7,26,42,0.82), rgba(7,26,42,0.42) 52%, rgba(7,26,42,0.72)),
    linear-gradient(0deg, rgba(0,0,0,0.28), rgba(0,0,0,0.12));
}

#nastepny-krok .support-slide-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  min-height: 100%;
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#nastepny-krok .support-slide .support-slide-text {
  max-width: 680px;
  margin: 0;
  color: #fffdef;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 8px 28px rgba(0,0,0,0.48);
}

@media (max-width: 900px) {
  #nastepny-krok .support-slide .support-slide-text {
    font-size: clamp(18px, 3.6vw, 24px);
    line-height: 1.22;
  }
}

#nastepny-krok .support-slider-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,225,68,0.5);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--yellow);
  font: inherit;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

#nastepny-krok .support-slider-btn:hover,
#nastepny-krok .support-slider-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,225,68,0.14);
  border-color: rgba(255,225,68,0.72);
}

#nastepny-krok .support-slider-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.5);
  outline-offset: 4px;
}

#nastepny-krok .support-card .support-return {
  max-width: none;
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
  justify-self: center;
}

#nastepny-krok .support-actions {
  display: flex;
  justify-content: center;
}

.continue-card h2 {
  font-size: clamp(44px, 4.5vw, 66px);
  margin: 16px 0;
  line-height: 0.96;
}

.continue-card p {
  max-width: 620px;
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  line-height: 1.65;
}

.continue-btn {
  background: var(--yellow);
  color: #111;
  padding: 18px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.continue-btn:hover,
.continue-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.26);
}

.continue-btn:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}

.modules-section {
  margin-bottom: 80px;
}

.section-top {
  margin-bottom: 40px;
}

.section-top h2 {
  max-width: 1000px;
  font-size: clamp(44px, 5vw, 78px);
  line-height: 0.98;
  margin-top: 20px;
  color: var(--paper);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.module-card {
  background: var(--paper);
  color: var(--dark);
  border-radius: 30px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 20px 55px rgba(0,0,0,0.16);
}

.module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.module-number {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.module-status {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}

.module-status.active {
  background: rgba(105,216,137,0.15);
  color: #1f7a3f;
}

.module-status.locked {
  background: rgba(0,0,0,0.08);
}

.module-card h3 {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 20px;
}

.module-card p {
  color: var(--text-soft);
  line-height: 1.8;
}

.module-progress-wrap {
  width: 100%;
  height: 14px;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 30px;
}

.module-progress-bar {
  height: 100%;
  background: var(--yellow);
}

.module-progress-text {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.6;
}

.lesson-list-dashboard {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-row {
  background: rgba(0,0,0,0.04);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
}

.lesson-row.done {
  opacity: 0.45;
}

.lesson-row.active {
  background: var(--yellow);
}

.locked-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.quick-card {
  background: var(--paper);
  color: var(--dark);
  padding: 40px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 20px 55px rgba(0,0,0,0.16);
}

.quick-card h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.quick-card p {
  color: var(--text-soft);
  line-height: 1.8;
}

@media (max-width: 1200px) {

  .modules-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1000px) {

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

  .sidebar {
    display: none;
  }

  .dashboard-top {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 760px;
  }

  .continue-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-progress-card {
    max-width: 460px;
    justify-self: start;
  }

}

@media (max-width: 768px) {

  .dashboard-main {
    padding: 40px 20px;
  }

  .dashboard-top {
    gap: 28px;
    margin-bottom: 52px;
  }

  .dashboard-top h1 {
    font-size: clamp(42px, 13vw, 60px);
    letter-spacing: -0.045em;
  }

  .dashboard-top p,
  .continue-card p {
    font-size: 16px;
    line-height: 1.65;
  }

  .dashboard-progress-card,
  .continue-card,
  .module-card,
  .quick-card {
    padding: 30px;
  }

  .dashboard-progress-card {
    padding: 18px;
  }

  .continue-card {
    border-radius: 28px;
  }

  .continue-btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  #nastepny-krok .continue-card {
    padding: 26px;
  }

  #nastepny-krok .continue-card h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  #nastepny-krok .continue-btn {
    width: fit-content;
    max-width: calc(100% - 32px);
    align-self: center;
    padding: 15px 28px;
    white-space: nowrap;
  }

  #nastepny-krok .support-slider {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 10px;
  }

  #nastepny-krok .support-slider-btn {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  #nastepny-krok .support-slide {
    min-height: 230px;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }

  #nastepny-krok .support-slide-content {
    min-height: 100%;
    padding: 22px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #nastepny-krok .support-slide .support-slide-text {
    max-width: 82%;
    font-size: clamp(15px, 4.2vw, 19px);
    line-height: 1.22;
    text-align: center;
  }

  #nastepny-krok .support-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .section-top h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

}

@media (max-width: 520px) {

  #nastepny-krok .support-slide .support-slide-text {
    max-width: 84%;
    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.22;
    text-align: center;
  }

  #nastepny-krok .continue-btn {
    width: fit-content;
    max-width: calc(100% - 32px);
    padding: 13px 22px;
    white-space: nowrap;
  }

  .dashboard-progress-card {
    padding: 16px;
  }

  .dashboard-progress-btn {
    width: 100%;
    text-align: center;
  }

  .module-card,
  .quick-card {
    padding: 24px;
    border-radius: 24px;
  }

}


/* =========================
   LEARNING SHELVES
========================= */

.learning-shelf {
  margin: 24px 0 72px;
  scroll-margin-top: 32px;
}

.learning-shelf-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.learning-shelf-label {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.learning-shelf-title {
  margin: 20px 0 16px;
  color: var(--paper);
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.learning-shelf-description {
  max-width: 700px;
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 18px;
  line-height: 1.7;
}

.shelf-row {
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 4px 4px 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: rgba(255,225,68,0.65) rgba(255,255,255,0.08);
  scrollbar-width: thin;
}

.shelf-row::-webkit-scrollbar {
  height: 9px;
}

.shelf-row::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.shelf-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,225,68,0.65);
}

.shelf-card {
  flex: 0 0 clamp(280px, 24vw, 330px);
  min-height: 390px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 28px;
  background: var(--paper);
  color: var(--dark);
  box-shadow: 0 18px 46px rgba(0,0,0,0.16);
  scroll-snap-align: start;
}

.shelf-card.active {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--yellow);
  box-shadow: 0 20px 54px rgba(0,0,0,0.22);
}

.shelf-card-image {
  width: 100%;
  height: 175px;
  flex: 0 0 175px;
  overflow: hidden;
  background: rgba(22,47,69,0.08);
}

.shelf-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf-card-content {
  flex: 1;
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
}

#start-bez-chaosu .shelf-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 470px));
  justify-content: start;
  gap: 24px;
  overflow-x: visible;
  padding: 4px 4px 24px;
}

#start-bez-chaosu .shelf-card {
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: initial;
}

#start-bez-chaosu .shelf-card-image {
  height: 135px;
  flex-basis: 135px;
}

#start-bez-chaosu .shelf-card-content {
  padding: 21px 24px 24px;
}

#start-bez-chaosu .shelf-card-top {
  margin-bottom: 16px;
}

#start-bez-chaosu .shelf-card h3 {
  margin-bottom: 12px;
  font-size: clamp(27px, 2vw, 32px);
  line-height: 1.05;
}

#start-bez-chaosu .shelf-card p {
  margin-bottom: 18px;
  font-size: 14.5px;
  line-height: 1.55;
}

#start-bez-chaosu .shelf-card-progress {
  margin-bottom: 16px;
}

#start-bez-chaosu .shelf-card-action {
  padding: 12px 18px;
  font-size: 13.5px;
}

#startPathPackageCard .shelf-card-content > p {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shelf-card.locked {
  border-color: rgba(255,225,68,0.65);
}

.shelf-card.soon {
  opacity: 0.72;
}

.shelf-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.shelf-module-number {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.shelf-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(22,47,69,0.1);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.shelf-card.active .shelf-status {
  background: var(--yellow);
  color: var(--dark);
}

.shelf-card h3 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.shelf-card p {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.shelf-card.active .shelf-card-content > p {
  margin-bottom: 20px;
}

.shelf-card-progress {
  margin-bottom: 22px;
}

.shelf-card-progress-top {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--navy);
  font-size: 13px;
}

.shelf-card-progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17,17,17,0.08);
}

.shelf-card-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.shelf-card .shelf-card-last-lesson {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.shelf-card-action {
  margin-top: auto;
  padding: 13px 18px;
  align-self: flex-start;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.shelf-card.active .shelf-card-action {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--dark);
}

.shelf-card.locked .shelf-card-action {
  background: transparent;
}

.shelf-card.soon .shelf-card-action {
  border-color: rgba(17,17,17,0.16);
  background: rgba(17,17,17,0.06);
  color: rgba(17,17,17,0.5);
  pointer-events: none;
}

.shelf-card.preparing {
  opacity: 1;
}

.path-package-card {
  opacity: 1;
}

.shelf-card.preparing .shelf-status {
  background: var(--yellow);
  color: var(--dark);
}

.shelf-card.preparing .shelf-card-action {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--dark);
  pointer-events: auto;
}

.shelf-card.preparing .shelf-card-action:hover,
.shelf-card.preparing .shelf-card-action:focus-visible {
  transform: translateY(-1px);
}

.shelf-card.preparing .shelf-card-action:focus-visible {
  outline: 3px solid rgba(255,225,68,0.45);
  outline-offset: 4px;
}

.shelf-card.preparing .shelf-card-action[aria-disabled="true"] {
  border-color: rgba(17,17,17,0.16);
  background: rgba(17,17,17,0.06);
  color: rgba(17,17,17,0.5);
  pointer-events: none;
  transform: none;
}

.song-shelf {
  margin-top: 8px;
}

.song-shelf .shelf-card {
  padding: 0;
  overflow: hidden;
}

.song-shelf .shelf-status {
  background: rgba(22,47,69,0.08);
  color: rgba(22,47,69,0.72);
}

.song-shelf .shelf-card-action {
  border-color: rgba(22,47,69,0.28);
  background: transparent;
  color: rgba(22,47,69,0.62);
}

.theory-shelf {
  margin-top: 8px;
}

.theory-shelf .shelf-card {
  padding: 0;
  overflow: hidden;
}

.theory-shelf .shelf-status {
  background: rgba(22,47,69,0.08);
  color: rgba(22,47,69,0.72);
}

.theory-shelf .shelf-card-action {
  border-color: rgba(22,47,69,0.28);
  background: transparent;
  color: rgba(22,47,69,0.62);
}

@media (max-width: 1180px) {
  #start-bez-chaosu .shelf-row {
    display: flex;
    overflow-x: auto;
  }

  #start-bez-chaosu .shelf-card {
    flex: 0 0 min(82vw, 430px);
  }
}

@media (max-width: 600px) {

  .learning-shelf {
    margin-bottom: 56px;
  }

  .learning-shelf-title {
    font-size: clamp(38px, 12vw, 52px);
  }

  .learning-shelf-description {
    font-size: 16px;
  }

  .shelf-row {
    gap: 14px;
    margin-right: -20px;
    padding-right: 20px;
  }

  .shelf-card {
    flex-basis: min(82vw, 310px);
    min-height: 370px;
    padding: 24px;
  }

  #start-bez-chaosu .shelf-card {
    flex-basis: min(82vw, 310px);
  }

  #start-bez-chaosu .shelf-card-image {
    height: 150px;
    flex-basis: 150px;
  }

}


.saved-cards-shelf {
  margin-top: 8px;
}

.saved-cards-placeholder {
  max-width: 920px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 30px;
  background: var(--paper);
  color: var(--dark);
  box-shadow: 0 20px 55px rgba(0,0,0,0.14);
}

.saved-cards-stack {
  position: relative;
  width: 132px;
  height: 112px;
}

.saved-card-mini {
  position: absolute;
  inset: 0;
  display: block;
  border: 2px solid var(--navy);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.saved-card-mini:nth-child(1) {
  transform: translate(-12px, 10px) rotate(-7deg);
  opacity: 0.62;
}

.saved-card-mini:nth-child(2) {
  transform: translate(12px, 6px) rotate(6deg);
  background: var(--yellow);
  opacity: 0.82;
}

.saved-card-mini:nth-child(3) {
  transform: translateY(-4px);
}

.saved-card-mini:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 8px;
  border-radius: 999px;
  background: var(--yellow);
}

.saved-cards-placeholder h3 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.saved-cards-placeholder p {
  max-width: 650px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.saved-cards-placeholder-label {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(22,47,69,0.1);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.saved-cards-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.saved-card-module-group {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 28px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 18px 44px rgba(22,47,69,0.08);
}

.saved-card-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.saved-card-module-cover {
  flex: 0 0 148px;
  width: 148px;
  height: 92px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(22,47,69,0.08);
}

.saved-card-module-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-card-module-cover:empty {
  display: none;
}

.saved-card-module-copy {
  flex: 1 1 320px;
  min-width: min(100%, 320px);
}

.saved-card-module-copy h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

.saved-card-module-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.saved-card-module-copy p + p {
  margin-top: 4px;
}

.saved-card-module-toggle {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(22,47,69,0.28);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.saved-card-module-toggle:hover,
.saved-card-module-toggle:focus-visible {
  border-color: var(--navy);
  background: rgba(22,47,69,0.06);
  outline: none;
}

.saved-card-module-content {
  margin-top: 18px;
}

.saved-card-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 18px;
  align-items: start;
}

.saved-card-module-group.is-collapsed .saved-card-module-content {
  display: none;
}

.saved-card-item {
  max-width: 320px;
  padding: 18px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  color: var(--dark);
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}

.saved-card-item img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  background: rgba(22,47,69,0.08);
}

.saved-card-item h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.saved-card-item p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.saved-card-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.saved-card-lesson-link {
  border-color: rgba(22,47,69,0.28);
  background: rgba(22,47,69,0.04);
  color: rgba(22,47,69,0.78);
}

.saved-card-lesson-link:hover,
.saved-card-lesson-link:focus-visible {
  border-color: var(--navy);
  color: var(--navy);
  outline: none;
}

.saved-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.saved-card-actions a,
.saved-card-actions button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.saved-card-delete {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(22,47,69,0.28);
  border-radius: 999px;
  background: transparent;
  color: rgba(22,47,69,0.68);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.saved-card-delete:hover,
.saved-card-delete:focus-visible {
  border-color: var(--navy);
  color: var(--navy);
  outline: none;
}

.saved-card-delete:disabled {
  cursor: default;
  opacity: 0.58;
}

@media (max-width: 600px) {

  .saved-cards-placeholder {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .saved-cards-list {
    grid-template-columns: 1fr;
  }

  .saved-card-module-group {
    padding: 20px;
  }

  .saved-card-module-header {
    align-items: stretch;
    flex-direction: column;
  }

  .saved-card-module-cover {
    width: 100%;
    max-width: 180px;
    height: 100px;
  }

  .saved-card-module-toggle {
    width: 100%;
  }

  .saved-card-module-grid {
    grid-template-columns: 1fr;
  }

  .saved-cards-stack {
    width: 112px;
    height: 96px;
    margin-left: 12px;
  }

}


/* =========================
   AUTH / LOGIN PAGE
========================= */

.auth-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255,225,68,0.12), transparent 34%),
    var(--navy);
  color: var(--paper);
}

.auth-layout {
  width: min(1180px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 72px;
}

.auth-panel {
  min-width: 0;
}

.auth-copy {
  max-width: 520px;
}

.auth-copy h1 {
  margin: 18px 0 24px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.auth-copy > p:not(.auth-mini-label) {
  max-width: 470px;
  margin: 0 0 36px;
  color: var(--paper);
  font-size: 19px;
  line-height: 1.7;
  opacity: 0.82;
}

.auth-card {
  padding: 48px;
  border-radius: 32px;
  background: var(--paper);
  color: var(--dark);
  box-shadow: 0 28px 80px rgba(0,0,0,0.24);
}

.auth-card form {
  display: grid;
  gap: 12px;
}

.auth-card form + form {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid rgba(17,17,17,0.12);
}

.auth-card form h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.auth-card label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(17,17,17,0.2);
  border-radius: 14px;
  background: #ffffff;
  color: var(--dark);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input:focus {
  border-color: var(--yellow);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,225,68,0.35);
}

.auth-card button {
  min-height: 52px;
  margin-top: 12px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17,17,17,0.14);
}

.auth-card button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.auth-status {
  min-height: 24px;
  margin: 28px 0 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

body.auth-logged-in .auth-forms {
  display: none;
}

body.auth-logged-in .auth-status {
  margin: 0;
  padding: 28px;
  border-left: 6px solid var(--yellow);
  border-radius: 18px;
  background: var(--navy);
  color: var(--paper);
  font-size: 18px;
  line-height: 1.7;
}

.auth-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.auth-links a {
  color: var(--dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

.auth-return-actions {
  align-items: center;
}

.auth-return-actions #authDashboardLink {
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--dark);
  text-decoration: none;
}

.auth-return-actions #authDashboardLink:hover {
  box-shadow: 0 8px 20px rgba(17,17,17,0.14);
  transform: translateY(-1px);
}

.auth-mini-label {
  margin: 0;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {

  .auth-layout {
    width: min(680px, calc(100% - 48px));
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .auth-copy {
    max-width: 620px;
  }

}

@media (max-width: 600px) {

  .auth-layout {
    width: calc(100% - 32px);
    padding: 40px 0;
    gap: 32px;
  }

  .auth-copy h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .auth-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .auth-card form + form {
    margin-top: 30px;
    padding-top: 30px;
  }

  .auth-links {
    flex-direction: column;
  }

}
