/* ĐIỂM TỰA ĐỜI CON — giao diện màn học trong app. Tông kem/rêu/vàng kim. */

#s-diemtua, #s-diemtua-lesson { padding-bottom: 178px; }

/* ---- Hero đầu màn ---- */
.dt-hero { padding: 4px 2px 6px; }
.dt-title {
  font-family: "Cormorant Garamond", Cormorant, Georgia, serif;
  font-size: 34px; font-weight: 600; line-height: 1.1;
  color: var(--xanh-reu, #5A7044); margin: 2px 0 6px;
}
.dt-lead { font-size: 15px; line-height: 1.6; color: var(--nau-dat, #3D2F23); margin: 0 0 14px; }
.dt-lead b { color: #9A6E32; }

/* Thanh tiến độ */
.dt-prog { margin: 4px 0 10px; }
.dt-prog-bar { height: 8px; border-radius: 999px; background: #EAE2CF; overflow: hidden; }
.dt-prog-bar span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #D3A648, #B8902E); transition: width .5s cubic-bezier(.16,1,.3,1); }
.dt-prog-tx { font-size: 12.5px; color: #8A7B63; margin-top: 5px; letter-spacing: .2px; }

/* ---- Thẻ audio thiền ---- */
.dt-med {
  margin: 12px 0 18px; padding: 16px 16px 18px; border-radius: 18px; color: #fff;
  background: linear-gradient(155deg, #5A7044, #3C4E2E);
  box-shadow: 0 18px 34px -18px rgba(60,78,46,.7);
}
.dt-med-h { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.dt-med-s { font-size: 13px; opacity: .9; margin: 5px 0 11px; line-height: 1.5; }
.dt-audio { width: 100%; height: 40px; border-radius: 10px; }

/* ---- Nhóm bài + hàng bài ---- */
.dt-group { margin-top: 8px; }
.dt-group-sub { font-size: 13px; color: #8A7B63; font-style: italic; margin: -4px 0 12px; }

.dt-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--trang-nga, #fff); border: 1px solid #EDE4D2; border-radius: 15px;
  padding: 13px 13px; margin-bottom: 9px; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.dt-row:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -16px rgba(90,112,68,.5); border-color: #DEcFA8; }
.dt-row:active { transform: translateY(0) scale(.995); }
.dt-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  color: #9A6E32; background: #F4EAD2;
}
.dt-row.done .dt-num { color: #fff; background: linear-gradient(150deg, #7DA063, #5A7044); }
.dt-row-main { flex: 1; min-width: 0; }
.dt-row-name { display: block; font-weight: 700; font-size: 15.5px; color: var(--nau-dat, #3D2F23); }
.dt-row-en { font-weight: 500; font-size: 12px; color: #B29A6E; font-style: italic; }
.dt-row-sub { display: block; font-size: 12.5px; color: #7C6E58; line-height: 1.45; margin-top: 2px; }
.dt-row-go { flex: 0 0 auto; font-size: 22px; color: #C9B48A; line-height: 1; }

/* ---- Màn giới thiệu khi CHƯA có quyền ---- */
.dt-lock { text-align: center; padding: 22px 18px 8px; }
.dt-lock-mark { width: 62px; height: 62px; margin: 6px auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: #F4EAD2; }
.dt-lock-t { font-family: "Cormorant Garamond", Cormorant, Georgia, serif;
  font-size: 28px; font-weight: 600; color: var(--xanh-reu, #5A7044); }
.dt-lock-p { font-size: 15px; line-height: 1.65; color: var(--nau-dat, #3D2F23); margin: 12px 4px; text-align: left; }
.dt-lock-note { font-size: 13px; color: #8A7B63; background: #F6F0E2; border-radius: 12px;
  padding: 11px 13px; margin: 14px 0; line-height: 1.55; }
.dt-cta { display: block; text-decoration: none; text-align: center; font-weight: 700; font-size: 16px;
  color: #fff; background: linear-gradient(150deg, #C9A44E, #B8902E); padding: 15px; border-radius: 14px;
  box-shadow: 0 16px 30px -12px rgba(184,144,46,.7); }

/* ---- Chi tiết bài ---- */
.dt-les-head { padding: 4px 2px 4px; }
.dt-les-tag { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #B8902E; }
.dt-les-name { font-family: "Cormorant Garamond", Cormorant, Georgia, serif;
  font-size: 30px; font-weight: 600; line-height: 1.12; color: var(--xanh-reu, #5A7044); margin: 3px 0 4px; }
.dt-les-en { font-size: 16px; font-style: italic; color: #B29A6E; font-family: Georgia, serif; }
.dt-les-sub { font-size: 15px; font-style: italic; color: #7C6E58; line-height: 1.5; }
.dt-les-body { margin: 14px 0; }
.dt-les-body p { font-size: 16px; line-height: 1.72; color: var(--nau-dat, #3D2F23); margin: 0 0 13px; }
.dt-les-body em { font-style: italic; color: #6E5A3A; }

.dt-slot { font-size: 12.5px; color: #8A7B63; background: #F6F0E2; border: 1px dashed #DDCEA8;
  border-radius: 12px; padding: 11px 13px; margin: 4px 0 16px; line-height: 1.5; }

.dt-soi em { font-style: italic; color: #6E5A3A; }
.dt-note-lbl { font-size: 12.5px; color: #8A7B63; margin: 10px 0 6px; line-height: 1.5; }
.dt-note { width: 100%; min-height: 84px; resize: vertical; border: 1px solid #E4D9BF; border-radius: 12px;
  padding: 11px 12px; font: inherit; font-size: 15px; color: var(--nau-dat, #3D2F23); background: #FFFDF8; }
.dt-note:focus { outline: none; border-color: #C9A44E; box-shadow: 0 0 0 3px rgba(201,164,78,.18); }

.dt-nhac { margin: 16px 0; padding: 16px 16px; border-radius: 16px; border-left: 4px solid #D3A648;
  background: linear-gradient(150deg, #FBF3DF, #F6ECD2); }
.dt-nhac-lbl { font-size: 12.5px; font-weight: 700; color: #9A6E32; letter-spacing: .3px; }
.dt-nhac p { font-family: "Cormorant Garamond", Cormorant, Georgia, serif; font-size: 21px; line-height: 1.4;
  color: #5A4A2E; margin: 6px 0 0; font-style: italic; }

.dt-done-btn { width: 100%; padding: 15px; border-radius: 14px; border: 1.5px solid #7DA063;
  background: #fff; color: #5A7044; font-weight: 700; font-size: 15.5px; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease; }
.dt-done-btn:active { transform: scale(.99); }
.dt-done-btn.on { background: linear-gradient(150deg, #7DA063, #5A7044); color: #fff; border-color: transparent;
  box-shadow: 0 14px 26px -14px rgba(90,112,68,.8); }

.dt-nav { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 4px; }
.dt-nav-b { flex: 1; background: #F4EEE0; border: none; border-radius: 12px; padding: 12px 10px;
  font-size: 13px; font-weight: 600; color: #7C6E58; cursor: pointer; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-nav-b.next { text-align: right; }
.dt-nav-b:active { transform: scale(.99); }

@media (prefers-reduced-motion: reduce) {
  .dt-row, .dt-done-btn, .dt-nav-b, .dt-prog-bar span { transition: none; }
}
