:root {
  --bg: #7f9caf;
  --bg-dark: #364556;
  --bg-card: #f5f5f5;
  --bg-card-soft: #eff2f4;
  --bg-card-dark: #3f5163;
  --text: #34404d;
  --muted: #8b97a3;
  --line: #d5dadd;
  --accent: #d61d33;
  --accent-dark: #b41628;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(34, 46, 58, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--bg);
}

a {
  color: inherit;
}

button,
a.button {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.site-header,
.site-footer {
  background: var(--bg-dark);
  color: var(--white);
}

.header-inner,
.footer-inner,
.main-inner {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-image {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.header-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  transition: background 120ms ease, color 120ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-button {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.header-button-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.header-link:hover,
.header-link:focus-visible,
.header-button:hover,
.header-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.main-inner {
  padding: 30px 0 64px;
}

.global-status,
.global-success {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.global-status {
  background: #fde9ec;
  color: #8a1f2f;
}

.global-success {
  background: #e8f2ea;
  color: #255238;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: rgba(52, 64, 77, 0.82);
  font-size: 1rem;
}

.breadcrumbs a {
  color: rgba(52, 64, 77, 0.7);
  text-decoration: none;
}

.support-chat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 34, 45, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 24;
}

.support-chat-backdrop-open {
  opacity: 1;
  pointer-events: auto;
}

.support-chat {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: #f7f8fa;
  box-shadow: -18px 0 46px rgba(20, 31, 40, 0.22);
  border-radius: 28px 0 0 28px;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 220ms ease;
  z-index: 25;
  display: flex;
  flex-direction: column;
}

.support-chat-open {
  transform: translateX(0);
}

.support-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.support-chat-kicker {
  margin: 0 0 6px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.support-chat-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.support-chat-close {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.support-chat-body {
  padding: 24px;
  overflow: auto;
  flex: 1 1 auto;
}

.support-chat-list {
  margin: 0 0 18px 18px;
  padding: 0;
  color: var(--text);
}

.support-chat-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 132px);
  border: 0;
  border-radius: 18px;
  background: #ffffff;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.83fr);
  gap: 34px;
  align-items: start;
}

.module-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.83fr);
  column-gap: 34px;
  row-gap: 34px;
  align-items: start;
}

.module-video-cell {
  grid-column: 1;
  grid-row: 1;
}

.module-content-cell {
  grid-column: 1;
  grid-row: 2;
}

.module-sidebar-top,
.module-sidebar-bottom {
  display: grid;
  gap: 34px;
  align-content: start;
}

.module-sidebar-top {
  grid-column: 2;
  grid-row: 1;
}

.module-sidebar-bottom {
  grid-column: 2;
  grid-row: 2;
}

.content-stack,
.sidebar-stack {
  display: grid;
  gap: 34px;
}

.sidebar-stack {
  align-content: start;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body {
  padding: 34px 38px;
}

.auth-layout,
.admin-layout {
  display: grid;
  gap: 28px;
}

.auth-card {
  max-width: 720px;
}

.auth-card-compact {
  max-width: 860px;
}

.auth-eyebrow {
  margin: 0 0 12px;
  color: #6a7682;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-intro {
  max-width: 780px;
  font-size: 1.15rem;
  line-height: 1.65;
}

.auth-button-row {
  margin: 26px 0 8px;
}

.auth-footnote {
  max-width: 780px;
  color: #6a7682;
  font-size: 1rem;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #43505d;
}

.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid #ccd3da;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.auth-links {
  margin-top: 16px;
}

.auth-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.admin-kicker {
  color: #6a7682;
}

.admin-version {
  margin: 8px 0 0;
  color: #6a7682;
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-summary-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-summary-chip {
  border: 1px solid #dde3e8;
  background: #f7f9fb;
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.admin-summary-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7682;
}

.admin-summary-value {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.admin-items {
  display: grid;
  gap: 16px;
}

.admin-item {
  padding: 18px 20px;
  border: 1px solid #e0e5ea;
  border-radius: 18px;
  background: var(--bg-card-soft);
  display: grid;
  gap: 18px;
}

.admin-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-item-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.admin-item-copy {
  margin: 0;
  color: #56626f;
  line-height: 1.5;
}

.org-edit-form {
  padding: 18px;
  border: 1px solid #dde3e8;
  border-radius: 16px;
  background: #ffffff;
}

.org-users {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #e0e5ea;
}

.org-users-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.org-users-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.org-users-count {
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dfe5eb;
  color: #4d5967;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.admin-activity-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(180px, 0.8fr);
  gap: 14px;
  margin: 22px 0 18px;
  padding: 16px 18px;
  border: 1px solid #dde3e8;
  background: #f7f9fb;
  border-radius: 16px;
}

.admin-activity-clear-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #dde3e8;
  background: #f7f9fb;
  border-radius: 16px;
}

.admin-activity-clear-form label,
.admin-activity-filters label {
  display: grid;
  gap: 7px;
  color: #56626f;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.admin-activity-clear-form input,
.admin-activity-clear-form select,
.admin-activity-filters input,
.admin-activity-filters select {
  width: 100%;
  appearance: none;
  border: 1px solid #cfd7df;
  background: #ffffff;
  border-radius: 12px;
  padding: 13px 14px;
  color: #384553;
  font-size: 0.96rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.admin-activity-clear-form input:focus,
.admin-activity-clear-form select:focus,
.admin-activity-filters input:focus,
.admin-activity-filters select:focus {
  outline: none;
  border-color: rgba(223, 36, 60, 0.38);
  box-shadow: 0 0 0 4px rgba(223, 36, 60, 0.12);
}

.admin-activity-clear-form button {
  white-space: nowrap;
  min-height: 48px;
}

.admin-bulk-links-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e0e5ea;
  display: grid;
  gap: 14px;
}

.admin-bulk-links-output {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #dde3e8;
  background: #f7f9fb;
  border-radius: 16px;
}

.bulk-links-textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid #cfd7df;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  color: #384553;
  font-size: 0.92rem;
  line-height: 1.45;
  resize: vertical;
}

.bulk-email-input {
  min-height: 150px;
}

.bulk-links-textarea:focus {
  outline: none;
  border-color: rgba(223, 36, 60, 0.38);
  box-shadow: 0 0 0 4px rgba(223, 36, 60, 0.12);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 10px;
  border-bottom: 1px solid #e3e8ed;
  text-align: left;
  vertical-align: middle;
}

.table-wrap th {
  color: #4d5967;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.row-actions-cell {
  width: 1%;
  white-space: nowrap;
  text-align: right !important;
}

.session-meta {
  display: grid;
  gap: 2px;
  min-width: 180px;
}

.session-meta strong {
  font-size: 0.9rem;
}

.session-meta span {
  color: #5b6772;
  font-size: 0.78rem;
  line-height: 1.4;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.org-toggle-button {
  appearance: none;
  border: 1px solid #cfd7df;
  background: #ffffff;
  color: #3f4b59;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.org-toggle-button:hover,
.org-toggle-button:focus-visible {
  outline: none;
  border-color: rgba(223, 36, 60, 0.38);
  box-shadow: 0 0 0 4px rgba(223, 36, 60, 0.12);
}

.org-toggle-button[aria-expanded="true"] {
  background: #f7f9fb;
}

.table-action {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0;
  color: #4f5b67;
  font-weight: 700;
}

.danger-text-button,
.danger-button {
  color: #b52a39;
  font-weight: 700;
}

.danger-text-button:hover,
.danger-button:hover {
  color: #8f1d2a;
}

.danger-button {
  appearance: none;
  border: 1px solid #f1c5cb;
  background: #fff5f6;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.hero-banner {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 18px 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    var(--bg-dark);
  color: var(--white);
  text-align: center;
}

.hero-banner.overview {
  min-height: 68px;
  align-content: center;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.76;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 3.25rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 16px auto 0;
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: -4px 0 28px;
  max-width: 800px;
  font-size: 1.08rem;
  color: #5a6671;
  line-height: 1.6;
}

.overview-group + .overview-group {
  margin-top: 42px;
}

.overview-group-title {
  margin: 0 0 22px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.lesson-list {
  display: grid;
  gap: 20px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 168px;
  gap: 28px;
  align-items: center;
  padding: 6px 0;
  text-decoration: none;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    #344556;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.thumb.image-thumb {
  background: #344556;
  box-shadow: none;
}

.thumb.image-thumb::before,
.thumb.image-thumb::after {
  display: none;
}

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

.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, var(--accent) 48%, var(--accent) 52%, transparent 52%);
  opacity: 0.95;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 2px;
}

.thumb-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 14px 14px 12px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thumb-module {
  font-size: clamp(1.3rem, 3.2vw, 1.95rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.thumb-title {
  max-width: 90%;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  line-height: 1.1;
  font-weight: 500;
}

.thumb-brand {
  align-self: flex-end;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.76);
}

.lesson-copy {
  min-width: 0;
}

.lesson-title {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.lesson-description {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #909aa4;
}

.progress-pill {
  width: 100%;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a6671;
}

.progress-track {
  height: 7px;
  width: 100%;
  border-radius: 999px;
  background: #d7dbdf;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ef2640);
}

.summary-card {
  padding: 34px 38px;
}

.summary-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.summary-value {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.summary-note {
  margin: 14px 0 0;
  color: #5a6671;
  font-size: 0.72rem;
  line-height: 1.45;
}

.coach-card .card-body {
  padding: 34px;
}

.coach-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.coach-photo {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 25%, #597089, #354556 72%);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 auto;
}

.coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.coach-role {
  margin: 0;
  font-size: 0.82rem;
  color: var(--accent);
}

.coach-bio {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #4c5965;
}

.playlist {
  background: var(--bg-card-dark);
  color: var(--white);
}

.playlist-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 34px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist-title {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.playlist-count {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.playlist-list {
  display: grid;
}

.playlist-item {
  display: grid;
  grid-template-columns: 28px 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.playlist-item.active {
  background: rgba(255, 255, 255, 0.03);
}

.playlist-index {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.74);
}

.playlist-thumb .thumb-content {
  padding: 9px 10px 8px;
}

.playlist-thumb .thumb-module {
  font-size: 0.75rem;
}

.playlist-thumb .thumb-title {
  font-size: 0.46rem;
}

.playlist-name {
  font-size: 0.86rem;
  line-height: 1.3;
}

.video-card {
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  display: block;
  background: #263341;
}

.content-card .card-body {
  display: grid;
  gap: 30px;
}

.lesson-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  color: #43505d;
}

.download-box {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card-soft);
  align-self: start;
}

.download-box-title {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-link {
  justify-self: start;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
}

.download-link::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 2.75h8.2L19.25 7.8V20A1.25 1.25 0 0 1 18 21.25H6A1.25 1.25 0 0 1 4.75 20V4A1.25 1.25 0 0 1 6 2.75Z' stroke='%23d61d33' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M14 2.75V8h5.25' stroke='%23d61d33' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M8 15.25h8' stroke='%23d61d33' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M8 18.25h5.5' stroke='%23d61d33' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}

.download-label {
  display: block;
}

.download-link:hover,
.download-link:focus-visible {
  text-decoration: none;
}

.divider-badge {
  display: block;
  margin: 6px 0 0;
}

.divider-image {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 0 auto;
}

.cta-block {
  display: grid;
  gap: 18px;
}

.helper-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #42515d;
}

.helper-text strong {
  color: var(--accent);
}

.helper-video-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.helper-video-link:hover,
.helper-video-link:focus-visible {
  text-decoration: underline;
}

.cta-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.04;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.resource-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  justify-self: stretch;
  width: 100%;
  color: var(--white);
  background: var(--accent);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(225, 20, 46, 0.18);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.resource-link::after {
  content: "Open";
  align-self: flex-end;
  margin-top: -30px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.resource-link:hover {
  background: #c80f2a;
  box-shadow: 0 18px 34px rgba(225, 20, 46, 0.24);
  transform: translateY(-1px);
}

.resource-link span {
  font-size: 1.2rem;
}

.resource-link small {
  max-width: calc(100% - 64px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.resource-link.disabled {
  color: var(--white);
  background: #8e98a3;
  box-shadow: none;
  cursor: default;
}

.accelerator-list {
  display: grid;
  gap: 16px;
}

.accelerator-item {
  border: 1px solid var(--line);
  background: var(--bg-card-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}

.accelerator-title {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.accelerator-copy {
  margin: 0;
  color: #55626f;
  line-height: 1.55;
}

.accelerator-link {
  justify-self: start;
  text-decoration: none;
  color: var(--white);
  background: var(--accent);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.accelerator-link.disabled {
  background: #8e98a3;
  cursor: default;
  pointer-events: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.secondary-button,
.ghost-button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 16px 24px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--accent);
  color: var(--white);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  background: #dde2e7;
  color: #384553;
}

.ghost-button {
  border: 2px solid #44515f;
  background: transparent;
  color: #44515f;
}

.full-width-button {
  width: 100%;
  padding: 22px 24px;
  font-size: 1.2rem;
  border-radius: 10px;
  justify-content: center;
}

.completion-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.completion-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2f5c3c;
  background: #dceee1;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.completion-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2f9a48;
}

.footer-inner {
  padding: 42px 0 34px;
  display: grid;
  place-items: center;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo-image {
  height: 50px;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.footer-version {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .layout-grid,
  .module-detail-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-stack,
  .module-sidebar-top,
  .module-sidebar-bottom {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .module-video-cell,
  .module-content-cell,
  .module-sidebar-top,
  .module-sidebar-bottom {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .lesson-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .progress-pill {
    max-width: 260px;
  }

  .playlist-item {
    grid-template-columns: 24px 88px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .main-inner {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .admin-activity-filters {
    grid-template-columns: 1fr;
  }

  .admin-activity-clear-form {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-link {
    font-size: 1.05rem;
  }

  .card-body,
  .coach-card .card-body,
  .summary-card {
    padding: 24px 22px;
  }

  .playlist-head {
    padding: 22px 22px 18px;
  }

  .playlist-item {
    grid-template-columns: 1fr;
  }

  .playlist-index {
    display: none;
  }

  .playlist-thumb {
    max-width: 130px;
  }

  .button-row {
    flex-direction: column;
  }

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

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

  .admin-item-head,
  .org-users-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
    text-align: center;
  }
}
