/* =============================================
   LEARNING HUB — learning-hub.css
   ============================================= */

/* ── Page wrapper ── */
.lh-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 28px 60px;
}

/* ── Page header ── */
.lh-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.lh-header-copy { display: flex; flex-direction: column; }
.lh-header-copy h1 {
  font-size: 30px;
  font-weight: 800;
  color: #171412;
  margin: 0 0 5px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.lh-header-copy p {
  margin: 0;
  color: #7a7066;
  font-size: 14px;
  line-height: 1.5;
}

/* ── New Module button ── */
.lh-btn-new-module {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4aa1c 0%, #d4880a 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(212, 136, 10, 0.32);
  transition: opacity 0.15s, transform 0.1s;
  flex-shrink: 0;
  font-family: inherit;
  line-height: 1;
}
.lh-btn-new-module:hover { opacity: 0.9; }
.lh-btn-new-module:active { transform: scale(0.97); }

/* ── Module grid ── */
.lh-module-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Module card (existing module) ── */
.lh-module-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #e8e0d4;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.lh-module-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: #d0c8bc;
}
.lh-module-card-cover {
  width: 72px;
  min-width: 72px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, #f4aa1c 0%, #d4880a 100%);
  display: block;
  flex-shrink: 0;
}
.lh-module-card-info { flex: 1; min-width: 0; }
.lh-module-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #171412;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lh-module-card-meta {
  font-size: 12px;
  color: #9a8e82;
  margin: 0;
}
.lh-module-card-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.lh-module-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f0ebe1;
  color: #5f564d;
  white-space: nowrap;
}
.lh-module-badge-paid { background: #fef3e0; color: #c8962a; }
.lh-module-badge-draft { background: #f0ebe1; color: #9a8e82; }
.lh-module-card-arrow {
  color: #c8b89a;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Create new module placeholder card ── */
.lh-module-create-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1.5px dashed #c8b89a;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.lh-module-create-card:hover {
  border-color: #d4880a;
  background: rgba(244, 170, 28, 0.04);
}
.lh-module-create-icon {
  width: 80px;
  min-width: 80px;
  height: 68px;
  border: 1.5px dashed #c8b89a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #c8b89a;
  background: #f8f4ee;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.lh-module-create-card:hover .lh-module-create-icon {
  color: #d4880a;
  border-color: #d4880a;
}
.lh-module-create-copy { display: flex; flex-direction: column; }
.lh-module-create-copy strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #171412;
  margin-bottom: 4px;
}
.lh-module-create-copy p {
  margin: 0;
  font-size: 13px;
  color: #7a7066;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════
   NEW MODULE MODAL
   ═══════════════════════════════════════════ */
.lh-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
  overflow-y: auto;
  background: rgba(15, 12, 9, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.lh-modal-overlay.is-hidden { display: none !important; }

.lh-modal-box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.24);
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  margin: auto 0;
}

/* Modal head */
.lh-modal-head {
  padding: 26px 28px 18px;
  border-bottom: 1px solid #ede8e0;
  flex-shrink: 0;
}
.lh-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #171412;
  margin: 0 0 3px;
  letter-spacing: -0.02em;
}
.lh-modal-sub {
  font-size: 13px;
  color: #7a7066;
  margin: 0;
  line-height: 1.5;
}
.lh-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #7a7066;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.lh-modal-close:hover { background: #f3ede4; color: #171412; }

/* Modal body */
.lh-modal-body {
  padding: 22px 28px 4px;
  overflow-y: auto;
  flex: 1;
}

/* Field */
.lh-field { margin-bottom: 18px; }
.lh-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #171412;
  margin-bottom: 7px;
}
.lh-field-input,
.lh-field-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d8d0c4;
  border-radius: 10px;
  font-size: 14px;
  color: #171412;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
}
.lh-field-input:focus,
.lh-field-textarea:focus { border-color: #f4aa1c; box-shadow: 0 0 0 3px rgba(244,170,28,0.1); }
.lh-field-input::placeholder,
.lh-field-textarea::placeholder { color: #b0a89e; }
.lh-field-textarea {
  resize: vertical;
  min-height: 88px;
}

/* Cover image upload */
.lh-cover-upload-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1.5px dashed #d8d0c4;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.lh-cover-upload-wrap:hover { border-color: #d4880a; background: rgba(244,170,28,0.03); }
.lh-cover-upload-wrap input[type="file"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.lh-cover-preview {
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4aa1c 0%, #d4880a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.lh-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.lh-cover-preview-icon {
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  line-height: 1;
}
.lh-cover-upload-info { flex: 1; min-width: 0; }
.lh-cover-upload-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #171412;
  margin-bottom: 3px;
}
.lh-cover-upload-hint {
  font-size: 12px;
  color: #9a8e82;
  margin: 0;
}

/* Access settings */
.lh-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #171412;
  margin: 0 0 10px;
  display: block;
}
.lh-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lh-access-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px;
  border: 1.5px solid #e8e0d4;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.lh-access-card:hover { border-color: #c8b89a; }
.lh-access-card.is-selected {
  border-color: #f4aa1c;
  background: rgba(244,170,28,0.04);
}
.lh-access-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.lh-access-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lh-access-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  color: #7a7066;
}
.lh-access-card.is-selected .lh-access-icon { color: #d4880a; }
.lh-access-name {
  font-size: 14px;
  font-weight: 700;
  color: #171412;
  line-height: 1.2;
}
.lh-access-desc {
  font-size: 12px;
  color: #9a8e82;
  margin: 0;
  line-height: 1.4;
}

/* Buy now price box */
.lh-price-box {
  margin-top: 12px;
  padding: 14px 16px;
  background: #fafaf8;
  border: 1px solid #ede8e0;
  border-radius: 12px;
}
.lh-price-box.is-hidden { display: none; }
.lh-price-box-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7066;
  display: block;
  margin-bottom: 10px;
}
.lh-price-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lh-price-currency {
  font-size: 22px;
  font-weight: 700;
  color: #171412;
  line-height: 1;
  flex-shrink: 0;
}
.lh-price-input {
  width: 110px;
  padding: 8px 12px;
  border: 1.5px solid #d8d0c4;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #171412;
  background: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.lh-price-input:focus { border-color: #f4aa1c; }
.lh-price-note { font-size: 12px; color: #9a8e82; margin: 0; }

/* Publish toggle row */
.lh-publish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #ede8e0;
  border-radius: 12px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.lh-publish-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #171412;
  margin-bottom: 2px;
}
.lh-publish-copy span {
  font-size: 12px;
  color: #9a8e82;
  line-height: 1.4;
}
/* Toggle switch */
.lh-toggle {
  position: relative;
  width: 46px;
  min-width: 46px;
  height: 27px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-block;
}
.lh-toggle input { opacity: 0; width: 0; height: 0; }
.lh-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8d0c4;
  transition: background 0.2s;
}
.lh-toggle input:checked ~ .lh-toggle-track {
  background: linear-gradient(135deg, #f4aa1c 0%, #d4880a 100%);
}
.lh-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.22);
  transition: transform 0.2s;
}
.lh-toggle input:checked ~ .lh-toggle-track + .lh-toggle-thumb,
.lh-toggle input:checked ~ .lh-toggle-thumb { transform: translateX(19px); }

/* Modal footer */
.lh-modal-foot {
  padding: 16px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #ede8e0;
  flex-shrink: 0;
}
.lh-btn-cancel {
  padding: 9px 22px;
  border: 1.5px solid #d8d0c4;
  border-radius: 999px;
  background: #fff;
  color: #5f564d;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.lh-btn-cancel:hover { background: #f8f4ee; border-color: #c8b89a; }
.lh-btn-primary {
  padding: 9px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4aa1c 0%, #d4880a 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(212,136,10,0.3);
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}
.lh-btn-primary:hover { opacity: 0.88; }
.lh-btn-primary:active { transform: scale(0.97); }
.lh-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ═══════════════════════════════════════════
   BUILDER PAGE
   ═══════════════════════════════════════════ */
.lh-builder-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 80px;
}

/* Back link */
.lh-builder-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #5f564d;
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.15s;
}
.lh-builder-back:hover { color: #171412; }
.lh-builder-back-arrow { font-size: 16px; line-height: 1; }

/* Module meta */
.lh-builder-module-title {
  font-size: 28px;
  font-weight: 800;
  color: #171412;
  margin: 0 0 5px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.lh-builder-module-desc {
  font-size: 14px;
  color: #7a7066;
  margin: 4px 0 20px;
  line-height: 1.5;
}
.lh-builder-sep {
  border: none;
  border-top: 1px solid #ede8e0;
  margin: 0 0 24px;
}

.lh-builder-summary {
  margin-bottom: 22px;
  padding: 18px 20px 20px;
  border: 1px solid #ede8e0;
  border-radius: 16px;
  background: #fff;
}
.lh-builder-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.lh-builder-summary-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #171412;
}
.lh-builder-summary-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #7a7066;
}
.lh-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lh-rich-tool {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #d8d0c4;
  border-radius: 999px;
  background: #fff;
  color: #171412;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.lh-rich-tool:hover {
  background: #faf4e8;
  border-color: #e4b258;
}
.lh-rich-editor {
  min-height: 180px;
  padding: 16px 18px;
  border: 1.5px solid #e8e0d4;
  border-radius: 14px;
  background: #fafaf8;
  outline: none;
  font-size: 14px;
  line-height: 1.7;
  color: #171412;
}
.lh-rich-editor:focus {
  border-color: #f4aa1c;
  background: #fff;
}
.lh-rich-editor img,
.lh-rich-editor video,
.lh-course-member-content img,
.lh-course-member-content video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.lh-rich-editor a,
.lh-course-member-content a {
  color: #c47d0d;
}

/* 2-column body */
.lh-builder-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  min-height: 520px;
  align-items: start;
}

/* ── Left: lesson panel ── */
.lh-lesson-panel {
  display: flex;
  flex-direction: column;
  background: transparent;
}
.lh-lesson-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 14px;
  flex-shrink: 0;
}
.lh-lesson-panel-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8e82;
  margin: 0;
}
.lh-lesson-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #d4880a;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}
.lh-lesson-add-btn:hover { color: #a06010; }
.lh-lesson-panel-actions {
  display: flex;
  gap: 10px;
}

/* Lesson list */
.lh-lesson-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 4px 8px;
}
.lh-section-group + .lh-section-group {
  padding-top: 0;
}
.lh-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 10px;
}
.lh-section-title-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7066;
  outline: none;
}
.lh-section-actions {
  display: flex;
  gap: 6px;
}
.lh-section-action {
  width: 28px;
  height: 28px;
  border: 1px solid #e4ddd2;
  border-radius: 999px;
  background: #fff;
  color: #7a7066;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.lh-section-action:hover {
  border-color: #d8a64a;
  color: #b0720e;
}
.lh-lesson-empty {
  margin: 16px 14px;
  padding: 18px 14px;
  font-size: 13px;
  color: #9a8e82;
  border: 1.5px dashed #d8d0c4;
  border-radius: 10px;
  text-align: center;
  line-height: 1.5;
}
.lh-lesson-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  border: 1.5px solid #e4ddd4;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 8px;
}
.lh-lesson-item:hover { background: #fafaf8; border-color: #d8cfc4; }
.lh-lesson-item.is-dragging { opacity: 0.55; }
.lh-lesson-item.is-active {
  background: #fef8ee;
  border-color: #d4880a;
}
.lh-lesson-drag,
.lh-lesson-row-delete {
  border: none;
  background: transparent;
  color: #b29e83;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.lh-lesson-drag:hover,
.lh-lesson-row-delete:hover {
  color: #7d5b1f;
}
.lh-lesson-num {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1410;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.12s;
}
.lh-lesson-item.is-active .lh-lesson-num {
  background: #d4880a;
  color: #fff;
}
.lh-lesson-item-info { min-width: 0; flex: 1; }
.lh-lesson-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #171412;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px;
}
.lh-lesson-item-sub {
  font-size: 12px;
  color: #9a8e82;
}

/* ── Right: editor panel ── */
.lh-editor-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid #e4ddd4;
  border-radius: 16px;
  overflow: hidden;
  min-height: 520px;
}
.lh-editor-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  font-size: 14px;
  color: #9a8e82;
  text-align: center;
}
.lh-editor-empty-state.is-hidden { display: none; }

.lh-editor-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px;
}
.lh-editor-pane.is-hidden { display: none; }

/* Editor head: lesson title */
.lh-editor-pane-head {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ede8e0;
}
.lh-rich-toolbar {
  margin-bottom: 16px;
}
.lh-editor-title-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #171412;
  outline: none;
}
.lh-editor-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lh-editor-meta-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #7a7066;
}
.lh-editor-meta-field span {
  font-weight: 700;
}
.lh-editor-meta-field select {
  min-width: 180px;
  padding: 9px 12px;
  border: 1.5px solid #d8d0c4;
  border-radius: 10px;
  background: #fff;
  color: #171412;
  font-family: inherit;
}
.lh-btn-danger-lite {
  color: #b24534;
  border-color: #efd3cd;
}
.lh-editor-content {
  flex: 1;
  margin-bottom: 16px;
}

/* Editor footer */
.lh-editor-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #ede8e0;
  flex-shrink: 0;
}

/* Save-all bar (bottom sticky) */
.lh-builder-save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 28px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #ede8e0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  z-index: 500;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.lh-builder-save-status {
  font-size: 13px;
  color: #7a7066;
}
.lh-builder-save-status.is-success { color: #4a9a6a; }
.lh-builder-save-status.is-error { color: #c8362a; }

/* ── New lesson modal ── */
.lh-lesson-modal-box { max-width: 460px; }

/* ═══════════════════════════════════════════
   DISABLED STATE
   ═══════════════════════════════════════════ */
.lh-disabled-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 12px;
}
.lh-disabled-panel h3 { font-size: 22px; font-weight: 700; color: #171412; margin: 0; }
.lh-disabled-panel p { color: #7a7066; margin: 0; font-size: 14px; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .lh-wrap { padding: 12px 14px 60px; }
  .lh-header { flex-direction: column; align-items: stretch; gap: 14px; }
  .lh-header-copy h1 { font-size: 24px; }
  .lh-btn-new-module { align-self: flex-start; }
  .lh-module-create-card { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Access settings: single column on tiny screens */
  .lh-access-grid { grid-template-columns: 1fr; }

  /* Modal */
  .lh-modal-overlay { padding: 12px 10px 40px; }
  .lh-modal-box { border-radius: 16px; margin-top: 0; }
  .lh-modal-head { padding: 20px 18px 14px; }
  .lh-modal-body { padding: 16px 18px 4px; }
  .lh-modal-foot { padding: 14px 18px 20px; }

  /* Builder */
  .lh-builder-wrap { padding: 16px 14px 100px; }
  .lh-builder-module-title { font-size: 22px; }
  .lh-builder-summary-head,
  .lh-editor-meta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .lh-editor-meta-field select {
    min-width: 0;
    width: 100%;
  }
  .lh-builder-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }
  .lh-lesson-panel {
    border-right: none;
    border-bottom: 1px solid #ede8e0;
    max-height: 260px;
  }
  .lh-builder-save-bar { padding: 12px 14px; }
}

@media (max-width: 480px) {
  .lh-modal-box { border-radius: 14px; }
  .lh-access-grid { grid-template-columns: 1fr; }
}

/* =============================================
   LEARNING HUB LIST REDESIGN
   ============================================= */
.lh-wrap {
  max-width: 1240px;
  padding-top: 18px;
}

.lh-header {
  margin-bottom: 26px;
}

.lh-header-copy h1 {
  margin: 0 0 6px;
  color: #0f2245;
  font-size: clamp(40px, 4vw, 52px);
  line-height: .95;
  letter-spacing: -.04em;
  font-weight: 700;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.lh-header-copy p {
  max-width: 520px;
  color: #6d6257;
  font-size: 15px;
  line-height: 1.55;
}

.lh-btn-new-module {
  min-height: 40px;
  padding: 0 22px;
  background: linear-gradient(135deg, #f2bc45 0%, #df9f24 100%);
  color: #24180a;
  box-shadow: 0 10px 22px rgba(214, 147, 18, 0.16);
  transition: transform .14s ease, box-shadow .18s ease, opacity .18s ease;
}

.lh-btn-new-module:hover {
  opacity: .96;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(214, 147, 18, 0.22);
}

.lh-module-grid {
  display: grid;
  gap: 18px;
}

.lh-module-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d7ccbd;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(45, 31, 14, 0.06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lh-module-card:hover {
  border-color: #ccbda9;
  box-shadow: 0 22px 46px rgba(45, 31, 14, 0.1);
  transform: translateY(-1px);
}

.lh-module-card.is-draft {
  background: linear-gradient(180deg, #fffefb 0%, #fbf6ef 100%);
}

.lh-module-card-main {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.lh-module-card-media {
  width: 194px;
  min-width: 194px;
}

.lh-module-card-cover {
  width: 100%;
  height: 112px;
  border-radius: 14px;
  background: linear-gradient(135deg, #15110c 0%, #48311a 100%);
}

.lh-module-card-info {
  flex: none;
  min-width: 0;
}

.lh-module-card-title {
  margin: 0 0 8px;
  color: #0f2245;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: .96;
  letter-spacing: -.04em;
  font-weight: 700;
  font-family: "Cormorant Garamond", Georgia, serif;
  white-space: normal;
}

.lh-module-card-desc {
  margin: 0 0 10px;
  color: #63584b;
  font-size: 15px;
  line-height: 1.55;
}

.lh-module-card-meta {
  color: #6f6459;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lh-module-meta-sep {
  display: inline-block;
  margin: 0 6px;
}

.lh-module-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lh-module-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lh-module-badge {
  min-height: 28px;
  padding: 0 12px;
  background: #f4eee3;
  color: #5d544b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lh-module-badge-paid {
  background: #fff2d7;
  color: #af7612;
}

.lh-module-badge-draft {
  background: #efebe6;
  color: #938579;
}

.lh-module-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.lh-module-menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid #d7ccbd;
  border-radius: 999px;
  background: #fff;
  color: #3f3529;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.lh-module-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  display: none;
  min-width: 176px;
  padding: 10px;
  border: 1px solid #d7ccbd;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 40px rgba(28, 19, 8, 0.14);
}

.lh-module-menu-wrap.is-open .lh-module-menu {
  display: grid;
  gap: 4px;
}

.lh-module-menu a,
.lh-module-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #1b1713;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.lh-module-menu a:hover,
.lh-module-menu button:hover {
  background: #f8f2e8;
}

.lh-module-menu button.is-danger {
  color: #db4335;
}

.lh-module-create-card {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  border: 2px dashed #d8cdbf;
  border-radius: 22px;
}

.lh-module-create-icon {
  width: 100%;
  min-width: 0;
  min-height: 112px;
  border: 2px dashed #d8cdbf;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
  color: #61708a;
  font-size: 46px;
}

.lh-module-create-copy strong {
  margin-bottom: 6px;
  color: #0f2245;
  font-size: clamp(28px, 2.3vw, 36px);
  line-height: .98;
  letter-spacing: -.04em;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.lh-module-create-copy p {
  color: #62574b;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .lh-module-card,
  .lh-module-create-card {
    grid-template-columns: 1fr;
  }

  .lh-module-card-actions {
    justify-content: flex-start;
  }

  .lh-module-card-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .lh-wrap {
    padding-top: 12px;
  }

  .lh-header-copy h1 {
    font-size: 34px;
  }

  .lh-module-card-main,
  .lh-module-create-card {
    grid-template-columns: 1fr;
  }

  .lh-module-card-media {
    width: 100%;
    min-width: 0;
  }

  .lh-module-card-cover {
    height: 180px;
  }

}

/* =============================================
   MEMBER COURSE VIEW
   ============================================= */
.lh-course-member-view {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  color: #171412;
}

.lh-course-member-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e6ddd1;
}

.lh-course-member-header-copy {
  max-width: 760px;
}

.lh-course-member-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #64594d;
  text-decoration: none;
  margin-bottom: 14px;
}

.lh-course-member-back:hover {
  color: #171412;
  text-decoration: none;
}

.lh-course-member-header h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.lh-course-member-header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #61574b;
}

.lh-course-member-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.lh-course-member-progress {
  min-width: 220px;
  padding: 18px 20px;
  border: 1px solid #eadfce;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(48, 34, 16, 0.06);
}

.lh-course-member-progress strong,
.lh-course-member-progress span {
  display: block;
}

.lh-course-member-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.lh-course-member-summary-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 18px 20px;
  border: 1px solid #eadfce;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(48, 34, 16, 0.05);
}

.lh-course-member-summary-card span {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #867a6d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lh-course-member-summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.35;
  color: #171412;
  text-transform: none;
  letter-spacing: normal;
}

.lh-course-member-summary-card-progress {
  align-items: start;
}

.lh-course-member-progress-track {
  grid-column: 1 / -1;
  margin: 2px 0 0;
}

.lh-course-member-summary-card-progress > span:last-child {
  grid-column: 1 / -1;
  margin-top: -4px;
}

.lh-course-member-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  border: 1px solid #ebd8ad;
  border-radius: 20px;
  background: #fff8e9;
}

.lh-course-member-notice strong,
.lh-course-member-notice span {
  display: block;
}

.lh-course-member-notice strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.lh-course-member-notice span {
  color: #6d604e;
  line-height: 1.55;
}

.lh-course-member-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.lh-course-member-lessons {
  position: sticky;
  top: 24px;
}

.lh-course-member-lessons-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.lh-course-member-lessons-head span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d6257;
}

.lh-course-member-lessons-head small {
  font-size: 12px;
  color: #8c8073;
}

.lh-course-member-lesson {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid #e6ddd1;
  border-radius: 18px;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 24px rgba(48, 34, 16, 0.04);
}

.lh-course-member-lesson:hover {
  border-color: #d9c6a8;
  background: #fffdfa;
}

.lh-course-member-lesson.is-active {
  border-color: #e4a53b;
  background: #fffaf1;
}

.lh-course-member-lesson.is-complete {
  border-color: #d9d9cf;
}

.lh-course-member-lesson-num {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7a62d;
  color: #171412;
  font-size: 11px;
  font-weight: 800;
}

.lh-course-member-lesson-copy {
  min-width: 0;
  flex: 1;
}

.lh-course-member-lesson-copy strong,
.lh-course-member-lesson-copy small,
.lh-course-member-lesson-copy em {
  display: block;
}

.lh-course-member-lesson-copy strong {
  font-size: 14px;
  line-height: 1.4;
  color: #171412;
}

.lh-course-member-lesson-copy small {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: #8b7d70;
}

.lh-course-member-lesson-copy em {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #665b50;
  font-style: normal;
}

.lh-course-member-lesson-state {
  align-self: center;
  padding-left: 4px;
  white-space: nowrap;
}

.lh-course-member-stage {
  min-width: 0;
}

.lh-course-member-panel {
  display: none;
  padding: 34px 40px;
  border: 1px solid #e6ddd1;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(48, 34, 16, 0.08);
}

.lh-course-member-panel.is-active {
  display: block;
}

.lh-course-member-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eee4d8;
}

.lh-course-member-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.lh-course-member-panel-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f6efe4;
  color: #6e6256;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lh-course-member-panel h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 50px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.lh-course-member-panel-body {
  padding-top: 28px;
}

.lh-course-member-media {
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 22px;
  background: #15120e;
}

.lh-course-member-media video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #15120e;
}

.lh-course-member-content {
  font-size: 16px;
  line-height: 1.75;
  color: #201b16;
}

.lh-course-member-content > :first-child {
  margin-top: 0;
}

.lh-course-member-content > :last-child {
  margin-bottom: 0;
}

.lh-course-member-content-preview {
  padding: 20px 22px;
  border-radius: 18px;
  background: #fbf7f1;
  border: 1px solid #eee4d8;
}

.lh-course-member-content-preview p {
  margin: 0;
  white-space: pre-line;
}

.lh-course-member-attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #e6ddd1;
  border-radius: 20px;
  background: #faf7f2;
}

.lh-course-member-attachment-card.is-locked {
  background: #f7f3ec;
}

.lh-course-member-attachment-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  color: #171412;
}

.lh-course-member-attachment-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #685e52;
}

.lh-course-member-empty,
.lh-course-member-empty-state {
  padding: 28px 24px;
  border: 1px dashed #d9cec1;
  border-radius: 20px;
  background: #fcfaf7;
}

.lh-course-member-empty strong,
.lh-course-member-empty-state strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.lh-course-member-empty p,
.lh-course-member-empty-state p {
  margin: 0;
  color: #6f6458;
  line-height: 1.6;
}

.lh-course-member-panel-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 991.98px) {
  .lh-course-member-header,
  .lh-course-member-shell,
  .lh-course-member-summary {
    grid-template-columns: 1fr;
  }

  .lh-course-member-header {
    flex-direction: column;
  }

  .lh-course-member-header-meta {
    width: 100%;
    align-items: flex-start;
  }

  .lh-course-member-progress {
    width: 100%;
  }

  .lh-course-member-shell {
    display: block;
  }

  .lh-course-member-lessons {
    position: static;
    margin-bottom: 20px;
  }
}

@media (max-width: 767.98px) {
  .lh-course-member-view {
    padding: 18px 14px 48px;
  }

  .lh-course-member-header h1,
  .lh-course-member-panel h2 {
    font-size: 42px;
  }

  .lh-course-member-summary,
  .lh-course-member-summary-card {
    grid-template-columns: 1fr;
  }

  .lh-course-member-notice,
  .lh-course-member-attachment-card,
  .lh-course-member-panel-head,
  .lh-course-member-panel-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .lh-course-member-panel {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .lh-course-member-lesson {
    padding: 14px 15px;
  }

  .lh-course-member-lesson-state {
    padding-left: 44px;
    align-self: flex-start;
  }

  .lh-course-member-panel-actions .hc-course-btn,
  .lh-course-member-notice .hc-course-btn,
  .lh-course-member-attachment-card .hc-course-btn {
    width: 100%;
  }
}

@media (max-width: 479.98px) {
  .lh-course-member-header h1,
  .lh-course-member-panel h2 {
    font-size: 34px;
  }
}
