/* DayDayTalk Global — site overrides */

/* 关闭主题跟随鼠标圆圈 */
.custom-cursor__cursor,
.custom-cursor__cursor-two {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 登录态闪烁：已知已登录时先显示个人中心 */
html.ddt-auth-known [data-ddt-header-auth] [data-auth-guest] {
  display: none !important;
}
html.ddt-auth-known [data-ddt-header-auth] [data-auth-user] {
  display: block !important;
}

/*
 * CJK typography:
 * Theme fonts (Outfit / Roboto Serif) are Latin-first. Put capable Chinese
 * faces immediately after Latin, so CJK glyphs don't fall to mismatched defaults.
 */
:root {
  --ddt-header-height: 56px;
  --ddt-font-cjk: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --fistudy-font: "Outfit", var(--ddt-font-cjk);
  /* Headings: keep Latin serif when available, but CJK still uses clean sans */
  --fistudy-font-two: "Outfit", var(--ddt-font-cjk);
}

body {
  font-family: var(--fistudy-font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.section-title__title,
.banner-one__title,
.ddt-books__title,
.ddt-book__name {
  font-family: var(--fistudy-font-two);
  letter-spacing: 0;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

p, li, label, input, select, textarea, button, a {
  font-family: inherit;
}

/* Header: compact + fixed 常驻 (page-wrapper overflow 会打断 sticky) */

.stricky-header {
  display: none !important;
}

.main-header,
.main-header-three {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.page-wrapper {
  padding-top: var(--ddt-header-height);
}

.main-header.is-scrolled {
  border-bottom-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(16, 35, 72, 0.06);
}

.main-menu__left {
  padding: 8px 0;
  gap: 28px;
}

.main-menu__logo {
  padding: 0;
}

.main-menu__logo a {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
}

.main-menu__logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.main-menu .main-menu__list > li > a {
  font-size: 15px;
  line-height: 16px;
}

.mobile-nav__content .main-menu__list > li.current > a {
  color: var(--fistudy-base, #10a59a);
}

.main-menu__category-btn {
  padding: 5px 10px;
}

.main-menu__category-btn p {
  font-size: 13px;
  margin: 0 6px;
}

.main-menu__btn-box-1 .thm-btn {
  padding: 4px 14px 5px;
  font-size: 14px;
}

.main-menu__btn-box-2 .thm-btn {
  padding: 5px 14px 6px;
  font-size: 14px;
}

.main-menu__btn-boxes [data-auth-guest][hidden],
.main-menu__btn-boxes [data-auth-user][hidden] {
  display: none !important;
}

/* Fixed header is reserved via page-wrapper padding; keep banner compact */
.banner-one {
  padding-top: 72px;
}

.mobile-nav__content .logo-box img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.site-footer__logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* 页脚：网站详情（左）与「联系我们」（右）左右分布，避免长描述把联系挤到下一行 */
.site-footer__logo-and-contact-box-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  flex-wrap: nowrap;
}

.site-footer__logo-box {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(560px, 58%);
}

.site-footer__text {
  margin-top: 16px;
  line-height: 1.65;
}

.site-footer__contact-box {
  flex: 0 0 auto;
  margin-left: auto;
}

.site-footer__contact-box a {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .site-footer__logo-and-contact-box-inner {
    flex-wrap: wrap;
  }

  .site-footer__logo-box {
    max-width: 100%;
  }

  .site-footer__contact-box {
    margin-left: 0;
  }
}

/* 2) Language dropdown: vertical, no icons */
.main-menu__category-sub-menu.ddt-lang-menu {
  min-width: 168px !important;
  max-width: 220px;
  width: 180px;
  padding: 8px !important;
  -moz-column-count: 1 !important;
  column-count: 1 !important;
}

.main-menu__category-sub-menu.ddt-lang-menu li + li {
  margin-top: 2px !important;
}

.main-menu__category-sub-menu.ddt-lang-menu li a {
  display: block;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fistudy-black, #0f172a);
  line-height: 1.4;
}

.main-menu__category-sub-menu.ddt-lang-menu li a:hover,
.main-menu__category-sub-menu.ddt-lang-menu li a.is-active {
  background: #f3f6f8;
  color: var(--fistudy-base, #1f6f5b);
}

.main-menu__category-sub-menu.ddt-lang-menu li a span {
  display: block;
}

.main-menu__category-sub-menu.ddt-lang-menu li a small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--fistudy-gray, #6b7280);
}

.main-menu__right .main-menu__category-box {
  display: block;
}

.main-menu__right .main-menu__category-sub-menu.ddt-lang-menu {
  left: auto;
  right: 0;
}

/* 3) Auth pages */
.ddt-auth {
  padding: 72px 0 90px;
  background:
    radial-gradient(560px 280px at 12% 0%, rgba(31, 111, 91, 0.08), transparent 60%),
    radial-gradient(480px 240px at 100% 20%, rgba(255, 90, 60, 0.06), transparent 55%),
    #f7f9f8;
}

.ddt-auth__shell {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6ebe9;
  border-radius: 16px;
  padding: 36px 32px 32px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.ddt-auth__title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

.ddt-auth__lead {
  margin: 0 0 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.ddt-auth__field {
  margin-bottom: 14px;
}

.ddt-auth__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.ddt-auth__required {
  color: #ef4444;
}

.ddt-auth input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.ddt-auth select,
.ddt-auth__field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.ddt-auth__field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe3e0;
  border-radius: 10px;
  padding: 0 14px;
  outline: none;
  background: #fff;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #111827 !important;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.ddt-auth input[type="checkbox"] {
  box-sizing: border-box !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border-radius: 4px;
  accent-color: #1f6f5b;
  vertical-align: middle;
}

.ddt-auth input::-webkit-input-placeholder,
.ddt-auth select::-webkit-input-placeholder,
.ddt-auth__field input::-webkit-input-placeholder,
.ddt-auth__field select::-webkit-input-placeholder {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #9ca3af !important;
}

.ddt-auth input::-moz-placeholder,
.ddt-auth select::-moz-placeholder,
.ddt-auth__field input::-moz-placeholder,
.ddt-auth__field select::-moz-placeholder {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  opacity: 1 !important;
}

.ddt-auth input:-ms-input-placeholder,
.ddt-auth select:-ms-input-placeholder,
.ddt-auth__field input:-ms-input-placeholder,
.ddt-auth__field select:-ms-input-placeholder {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  opacity: 1 !important;
}

.ddt-auth input::placeholder,
.ddt-auth select::placeholder,
.ddt-auth__field input::placeholder,
.ddt-auth__field select::placeholder {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #9ca3af !important;
}

.ddt-auth__field input:focus,
.ddt-auth__field select:focus {
  border-color: #1f6f5b;
}

.ddt-auth__field input:disabled,
.ddt-auth__field select:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.ddt-auth__code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.ddt-auth__code-btn {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #dbe3e0;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.ddt-auth__code-btn:hover {
  border-color: #1f6f5b;
  color: #1f6f5b;
}

.ddt-auth__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 4px 0 18px;
  font-size: 13px;
  color: #6b7280;
}

.ddt-auth__row a {
  color: #1f6f5b;
  font-weight: 600;
}

.ddt-auth__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7280;
  white-space: nowrap;
}

.ddt-auth__row .ddt-auth__check {
  flex: 0 0 auto;
}

.ddt-auth__check span {
  min-width: 0;
  font-weight: 400;
  line-height: 1.5;
}

.ddt-auth__phone {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.ddt-auth__dial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: auto;
  min-width: 108px;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 8px 0 10px;
  border: 1px solid #dbe3e0;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
}

.ddt-auth__dial:focus-within,
.ddt-auth__phone > input:focus {
  border-color: #1f6f5b;
}

.ddt-auth__field .ddt-auth__dial select,
.ddt-auth__dial select {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 58px !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 14px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 14px !important;
  line-height: 22px !important;
  color: #111827 !important;
  cursor: pointer;
}

.ddt-auth__flag {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 14px;
  border-radius: 2px;
}

.ddt-auth__phone > input {
  flex: 1 1 auto;
  min-width: 0;
}

.ddt-auth__steps {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.ddt-auth__steps li {
  flex: 1;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
}

.ddt-auth__steps li.is-active,
.ddt-auth__steps li.is-done {
  border-color: #0f172a;
  color: #0f172a;
  font-weight: 600;
}

.ddt-auth__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ddt-auth__choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 84px;
  padding: 14px 14px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.ddt-auth__choice strong {
  font-size: 15px;
  font-weight: 700;
}

.ddt-auth__choice span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #6b7280;
}

.ddt-auth__choice:hover,
.ddt-auth__choice.is-active {
  border-color: #1f6f5b;
  background: #f3faf7;
}

.ddt-auth__back {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
}

.ddt-auth__back:hover {
  color: #0f172a;
}

.ddt-auth__hint {
  min-height: 18px;
  margin: 0 0 12px;
  font-size: 13px;
  color: #ef4444;
}

.ddt-auth__hint.is-ok {
  color: #1f6f5b;
}

.ddt-auth__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ddt-captcha-mask {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.42);
  box-sizing: border-box;
}

.ddt-captcha-mask[hidden] {
  display: none !important;
}

body.ddt-captcha-open {
  overflow: hidden;
}

.ddt-captcha {
  position: relative;
  width: min(92vw, 300px);
  padding: 20px 16px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  box-sizing: border-box;
}

.ddt-captcha__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ddt-captcha__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.ddt-captcha__img-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ddt-captcha__img-btn img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: 56px;
  border-radius: 6px;
  background: #f1f5f9;
  object-fit: contain;
}

.ddt-captcha__inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
}

/*
  必须用与 .ddt-auth input:not(...) 同级或更高的 :not 链，
  否则通用规则的 !important 会把字号压回 14px。
*/
.ddt-auth .ddt-captcha__inputs input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.ddt-captcha__inputs input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.ddt-auth .ddt-captcha__inputs input,
.ddt-captcha__inputs input {
  flex: 0 0 auto !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dbe3e0 !important;
  border-radius: 10px !important;
  text-align: center !important;
  font-family: inherit !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 52px !important;
  color: #0f172a !important;
  outline: none !important;
  background: #fff !important;
  box-sizing: border-box !important;
  -webkit-text-fill-color: #0f172a !important;
}

.ddt-auth .ddt-captcha__inputs input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.ddt-captcha__inputs input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.ddt-auth .ddt-captcha__inputs input:focus,
.ddt-captcha__inputs input:focus {
  border-color: #1f6f5b !important;
}

.ddt-captcha__error {
  min-height: 18px;
  margin: 0;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.ddt-captcha__hint {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.ddt-auth__done {
  padding: 12px 0 4px;
  text-align: center;
}

.ddt-auth__done p {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
}

.ddt-auth__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ddt-auth__submit:hover {
  background: #000;
}

.ddt-auth__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 22px 0 16px;
  color: #9ca3af;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ddt-auth__divider::before,
.ddt-auth__divider::after {
  content: "";
  height: 1px;
  background: #e5e7eb;
}

.ddt-auth__agree {
  margin: 4px 0 18px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.ddt-auth__agree a {
  color: #1f6f5b;
  font-weight: 600;
}

.ddt-auth__agree .ddt-auth__check {
  display: flex;
  align-items: flex-start;
  width: 100%;
  white-space: normal;
}

.ddt-auth__agree .ddt-auth__check span {
  flex: 1 1 auto;
}

.ddt-auth__icons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100%;
  margin: 0 auto;
}

a.ddt-auth__icon,
button.ddt-auth__icon,
.ddt-auth__icon {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  line-height: 0 !important;
  font-size: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  vertical-align: middle !important;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

a.ddt-auth__icon img,
button.ddt-auth__icon img,
.ddt-auth__icon img {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

a.ddt-auth__icon:hover,
button.ddt-auth__icon:hover,
.ddt-auth__icon:hover {
  border-color: #d1d5db !important;
  background: #fafafa !important;
  background-color: #fafafa !important;
  box-shadow: none !important;
  transform: none !important;
}

a.ddt-auth__icon:focus,
button.ddt-auth__icon:focus {
  outline: none !important;
}

a.ddt-auth__icon:focus-visible,
button.ddt-auth__icon:focus-visible {
  outline: 2px solid #9ca3af !important;
  outline-offset: 2px !important;
}

.ddt-auth__foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.ddt-auth__foot a {
  color: #1f6f5b;
  font-weight: 700;
}

.ddt-auth__nations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ddt-auth__nation {
  min-height: 40px;
  border: 1px solid #dbe3e0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
}

.ddt-auth__nation.is-active,
.ddt-auth__nation:hover {
  border-color: #1f6f5b;
  color: #1f6f5b;
  background: #f3faf7;
}

body.ddt-modal-open {
  overflow: hidden;
}

.ddt-auth-modal[hidden],
.ddt-auth [hidden] {
  display: none !important;
}

.ddt-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ddt-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.ddt-auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.ddt-auth-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
}

.ddt-auth-modal__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.ddt-auth-modal__lead,
.ddt-auth-modal__hint {
  margin: 0 0 18px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}

.ddt-auth-modal__hint {
  margin-top: -4px;
  color: #ef4444;
}

/* Legal pages (SSR: {{LEGAL_BODY_HTML}}) */
.ddt-legal {
  padding: 64px 0 80px;
  background: #f7f9f8;
}

.ddt-legal__shell {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6ebe9;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.ddt-legal__title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
}

.ddt-legal__body {
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}

.ddt-legal__body h2 {
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.ddt-legal__body p {
  margin: 0 0 12px;
}

.ddt-legal__related {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eef2f0;
  font-size: 14px;
  color: #6b7280;
}

.ddt-legal__related a {
  color: #1f6f5b;
  font-weight: 600;
}

/* Course hub + category skeleton */
.ddt-courses {
  padding: 72px 0 90px;
  background:
    radial-gradient(560px 280px at 12% 0%, rgba(31, 111, 91, 0.08), transparent 60%),
    #f7f9f8;
}

.ddt-courses__intro {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.ddt-courses__eyebrow {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.ddt-courses__eyebrow a {
  color: #1f6f5b;
  font-weight: 600;
}

.ddt-courses__title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
}

.ddt-courses__lead {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
}

.ddt-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.ddt-courses__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 148px;
  padding: 22px 20px;
  border: 1px solid #e6ebe9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ddt-courses__card:hover {
  border-color: #1f6f5b;
  transform: translateY(-2px);
  color: inherit;
}

.ddt-courses__card strong {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.ddt-courses__card-en {
  font-size: 13px;
  font-weight: 600;
  color: #1f6f5b;
}

.ddt-courses__card-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.ddt-courses__library {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #e6ebe9;
  border-radius: 16px;
  background: #fff;
}

.ddt-courses__library h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.ddt-courses__library p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.ddt-courses__alt {
  margin: 20px 0 0;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.ddt-courses__alt a {
  color: #1f6f5b;
  font-weight: 700;
}

.ddt-courses__block {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid #e6ebe9;
  border-radius: 16px;
  background: #fff;
}

.ddt-courses__block h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.ddt-courses__block-lead {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.ddt-courses__block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.ddt-courses__link {
  flex: 0 0 auto;
  color: #1f6f5b;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ddt-courses__stages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ddt-courses__stage {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #dbe3e0;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ddt-courses__stage.is-active,
.ddt-courses__stage:hover {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.ddt-courses__placeholders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ddt-courses__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 13px;
}

@media (max-width: 991px) {
  .ddt-courses__library,
  .ddt-courses__block-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .ddt-courses__grid,
  .ddt-courses__placeholders {
    grid-template-columns: 1fr;
  }
}

/* Textbook library — visual polish */
.ddt-books {
  --ddt-ink: #102348;
  --ddt-brand: #10a59a;
  --ddt-brand-soft: #eaf8f5;
  --ddt-page: #f5f8fc;
  --ddt-card: #ffffff;
  --ddt-muted: #64748b;
  --ddt-line: #e2e8f0;
  --ddt-shadow: 0 10px 28px rgba(16, 35, 72, 0.06);
  --ddt-shadow-hover: 0 14px 32px rgba(16, 35, 72, 0.1);
  background: var(--ddt-page);
  color: var(--ddt-ink);
}

.ddt-books__hero {
  position: relative;
  padding: 40px 0 32px;
  overflow: hidden;
  background:
    radial-gradient(520px 240px at 88% 8%, rgba(16, 165, 154, 0.12), transparent 68%),
    radial-gradient(420px 220px at 6% 0%, rgba(59, 130, 246, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 55%, var(--ddt-page) 100%);
}

.ddt-books__hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: 8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 165, 154, 0.14), transparent 70%);
  pointer-events: none;
}

.ddt-books__hero > .container {
  position: relative;
  z-index: 1;
}

.ddt-books__intro {
  max-width: 720px;
  margin: 0 0 28px;
  text-align: left;
}

.ddt-books__title {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ddt-ink);
}

.ddt-books__lead {
  margin: 0;
  max-width: 560px;
  color: var(--ddt-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ddt-books__dirs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.ddt-books__dir {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 16px 18px;
  border: 1px solid var(--ddt-line);
  border-radius: 14px;
  background: var(--ddt-card);
  box-shadow: 0 1px 2px rgba(16, 35, 72, 0.03);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  outline: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.ddt-books__dir-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--ddt-ink);
  font-size: 15px;
  transition: background-color 180ms ease, color 180ms ease;
}

.ddt-books__dir-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 24px;
}

.ddt-books__dir strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ddt-ink);
}

.ddt-books__dir-copy > span {
  color: var(--ddt-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.ddt-books__dir-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ddt-brand);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.ddt-books__dir:hover {
  border-color: #cbd5e1;
  box-shadow: var(--ddt-shadow);
  transform: translateY(-2px);
}

.ddt-books__dir:focus-visible {
  border-color: var(--ddt-brand);
  box-shadow: 0 0 0 3px rgba(16, 165, 154, 0.22);
}

.ddt-books__dir.is-active {
  border-color: var(--ddt-brand);
  background: var(--ddt-brand-soft);
  box-shadow: 0 0 0 1px var(--ddt-brand), var(--ddt-shadow);
}

.ddt-books__dir.is-active .ddt-books__dir-check {
  display: inline-flex;
}

.ddt-books__dir.is-active .ddt-books__dir-icon {
  background: rgba(16, 165, 154, 0.16);
  color: var(--ddt-brand);
}

.ddt-books__about {
  position: relative;
  margin-bottom: 24px;
  padding: 18px 20px 18px 22px;
  border: 0;
  border-radius: 14px;
  background: rgba(234, 248, 245, 0.72);
  min-height: 88px;
}

.ddt-books__about::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--ddt-brand);
}

.ddt-books__about h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ddt-ink);
}

.ddt-books__about p {
  margin: 0;
  color: var(--ddt-muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.ddt-books__toolbar {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
}

.ddt-books__filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.ddt-books__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  text-align: left;
}

.ddt-books__field legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 10px;
  color: var(--ddt-muted);
  font-size: 12px;
  font-weight: 600;
}

.ddt-books__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  clear: both;
}

.ddt-books__chip {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.ddt-books__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ddt-books__chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ddt-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ddt-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.ddt-books__chip:hover span {
  border-color: #cbd5e1;
}

.ddt-books__chip input:focus-visible + span {
  border-color: var(--ddt-brand);
  box-shadow: 0 0 0 3px rgba(16, 165, 154, 0.18);
}

.ddt-books__chip input:checked + span {
  border-color: var(--ddt-brand);
  background: var(--ddt-brand-soft);
  color: #0f766e;
  box-shadow: 0 0 0 1px var(--ddt-brand);
}

.ddt-books__results {
  padding: 8px 0 88px;
  background: linear-gradient(180deg, var(--ddt-page) 0%, #eef3f9 100%);
}

.ddt-books__recommend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.ddt-books__recommend-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ddt-ink);
}

.ddt-books__reset {
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--ddt-brand);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 4px;
  border-radius: 8px;
}

.ddt-books__reset:hover,
.ddt-books__reset:focus-visible {
  background: var(--ddt-brand-soft);
  outline: none;
}

.ddt-books__count {
  margin: 6px 0 0;
  min-height: 18px;
  color: var(--ddt-muted);
  font-size: 13px;
}

.ddt-books__assist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 22px;
  border: 1px solid var(--ddt-line);
  border-radius: 16px;
  background: var(--ddt-card);
  box-shadow: var(--ddt-shadow);
}

.ddt-books__assist p {
  margin: 0;
  color: var(--ddt-ink);
  font-size: 15px;
  font-weight: 600;
}

.ddt-books__note {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

.ddt-books__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.ddt-book {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ddt-line);
  border-radius: 16px;
  background: var(--ddt-card);
  box-shadow: var(--ddt-shadow);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ddt-book[hidden] {
  display: none !important;
}

.ddt-book:hover {
  transform: translateY(-3px);
  border-color: #d5dee9;
  box-shadow: var(--ddt-shadow-hover);
}

.ddt-book__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, #e8eef6 0%, #f5f8fc 100%);
}

.ddt-book__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.ddt-book:hover .ddt-book__cover img {
  transform: scale(1.03);
}

.ddt-book__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
}

.ddt-book__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ddt-brand-soft);
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.ddt-book__name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ddt-ink);
  line-height: 1.35;
}

.ddt-book__desc {
  margin: 0;
  color: var(--ddt-muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ddt-book__meta {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ddt-book__meta li {
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}

.ddt-book__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--ddt-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.ddt-book__cta:hover,
.ddt-book__cta:focus-visible {
  background: #0d8f86;
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 165, 154, 0.28);
  outline: none;
}

.ddt-books__empty {
  margin: 28px 0 0;
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed var(--ddt-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ddt-muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .ddt-books__dir,
  .ddt-book,
  .ddt-book__cover img,
  .ddt-book__cta,
  .ddt-books__chip span {
    transition: none;
  }

  .ddt-books__dir:hover,
  .ddt-book:hover {
    transform: none;
  }

  .ddt-book:hover .ddt-book__cover img {
    transform: none;
  }
}

@media (max-width: 1199px) {
  .ddt-books__dirs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ddt-books__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .ddt-books__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ddt-books__hero {
    padding: 36px 0 24px;
  }

  .ddt-books__title {
    font-size: 26px;
  }

  .ddt-books__dirs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ddt-books__dir {
    min-height: 0;
    padding: 14px 12px;
  }

  .ddt-books__assist {
    flex-direction: column;
    align-items: stretch;
  }

  .ddt-books__chip span {
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }

  .ddt-books__recommend-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ddt-books__reset {
    align-self: flex-start;
    margin-top: 0;
  }

  .ddt-books__grid {
    grid-template-columns: 1fr;
  }

  .ddt-books__results {
    padding-bottom: 64px;
  }
}

@media (max-width: 575px) {
  .ddt-books__title {
    font-size: 24px;
  }

  .ddt-books__dir strong {
    font-size: 15px;
  }

  .ddt-books__recommend-title h2 {
    font-size: 22px;
  }
}

@media (max-width: 575px) {
  .ddt-auth {
    padding: 40px 0 64px;
  }

  .ddt-auth__shell,
  .ddt-legal__shell {
    padding: 28px 18px;
    border-radius: 12px;
  }

  .ddt-auth__nations {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-menu__logo img {
    height: 28px;
    max-width: 140px;
  }
}

/* ---------- Instructor list (Preply-like cards) ---------- */
.ddt-instructors {
  --ddt-ink: #102348;
  --ddt-muted: #64748b;
  --ddt-line: #e2e8f0;
  --ddt-brand: #10a59a;
  --ddt-brand-soft: #eaf8f5;
  --ddt-page: #f5f8fc;
  --ddt-card: #fff;
  --ddt-shadow: 0 8px 24px rgba(16, 35, 72, 0.06);
  padding: 28px 0 88px;
  background: var(--ddt-page);
  color: var(--ddt-ink);
}

.ddt-instructors__hero {
  margin-bottom: 18px;
}

.ddt-instructors__title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ddt-ink);
}

.ddt-instructors__lead {
  margin: 0;
  color: var(--ddt-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ddt-instructors__toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--ddt-shadow);
}

.ddt-instructors__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 18px;
}

.ddt-instructors__field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ddt-instructors__field legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 8px;
  color: var(--ddt-muted);
  font-size: 12px;
  font-weight: 600;
}

.ddt-instructors__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  clear: both;
}

.ddt-instructors__chip {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.ddt-instructors__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ddt-instructors__chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ddt-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ddt-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ddt-instructors__chip:hover span {
  border-color: #cbd5e1;
}

.ddt-instructors__chip input:checked + span {
  border-color: var(--ddt-brand);
  background: var(--ddt-brand-soft);
  color: #0f766e;
  box-shadow: 0 0 0 1px var(--ddt-brand);
}

.ddt-instructors__chip--gold span {
  gap: 6px;
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
}

.ddt-instructors__chip--gold:hover span {
  border-color: #f59e0b;
}

.ddt-instructors__chip--gold input:checked + span {
  border-color: #d97706;
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  box-shadow: 0 0 0 1px #d97706, 0 6px 14px rgba(245, 158, 11, 0.22);
}

.ddt-gold-icon {
  width: 14px;
  height: 14px;
  color: #d97706;
  flex-shrink: 0;
}

.ddt-gold-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.12);
  color: #92400e;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.ddt-gold-tip::before {
  content: "?";
}

.ddt-gold-tip__bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.ddt-gold-tip__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #0f172a;
}

.ddt-instructors__chip--gold:hover .ddt-gold-tip__bubble,
.ddt-gold-tip:hover .ddt-gold-tip__bubble,
.ddt-gold-tip:focus .ddt-gold-tip__bubble,
.ddt-gold-tip:focus-visible .ddt-gold-tip__bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ddt-instructors__search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ddt-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ddt-ink);
  font-size: 14px;
  outline: none;
}

.ddt-instructors__search input:focus {
  border-color: var(--ddt-brand);
  box-shadow: 0 0 0 3px rgba(16, 165, 154, 0.16);
}

.ddt-instructors__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ddt-instructors__count {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ddt-ink);
}

.ddt-instructors__sub {
  margin: 6px 0 0;
  color: var(--ddt-muted);
  font-size: 13px;
}

.ddt-instructors__reset {
  border: 0;
  background: transparent;
  color: var(--ddt-brand);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 4px;
  border-radius: 8px;
}

.ddt-instructors__reset:hover {
  background: var(--ddt-brand-soft);
}

.ddt-instructors__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  gap: 18px;
  align-items: start;
}

.ddt-instructors__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.ddt-instructors__loading,
.ddt-instructors__empty {
  padding: 36px 18px;
  text-align: center;
  border: 1px dashed var(--ddt-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ddt-muted);
  font-size: 14px;
}

.ddt-instructors__preview {
  position: relative;
  align-self: start;
  top: 0;
  margin-top: 0;
  min-height: 420px;
  border: 1px solid var(--ddt-line);
  border-radius: 18px;
  background: var(--ddt-card);
  box-shadow: var(--ddt-shadow);
  overflow: hidden;
  transition: margin-top 160ms ease;
}

.ddt-preview__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 420px;
  padding: 28px 20px;
  text-align: center;
  color: var(--ddt-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ddt-preview__placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--ddt-brand-soft);
  color: var(--ddt-brand);
  font-size: 18px;
}

.ddt-preview__panel {
  display: flex;
  flex-direction: column;
}

.ddt-preview__video {
  background: #0f172a;
}

.ddt-preview__player {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

.ddt-preview__player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
}

.ddt-preview__video-empty {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #cbd5e1 center/cover no-repeat;
}

.ddt-preview__video-empty-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  text-align: center;
}

.ddt-preview__video-empty-mask strong {
  font-size: 16px;
}

.ddt-preview__video-empty-mask span {
  font-size: 13px;
  opacity: 0.88;
}

.ddt-preview__schedule {
  padding: 14px 14px 16px;
}

.ddt-preview__schedule-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.ddt-preview__schedule-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ddt-ink);
}

.ddt-preview__periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ddt-preview__period {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--ddt-line);
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.ddt-preview__period:hover:not(:disabled):not(.is-disabled) {
  border-color: #cbd5e1;
  color: var(--ddt-ink);
}

.ddt-preview__period.is-active {
  border-color: var(--ddt-brand);
  background: var(--ddt-brand-soft);
  color: #0f766e;
  box-shadow: 0 0 0 1px var(--ddt-brand);
}

.ddt-preview__period.is-disabled,
.ddt-preview__period:disabled {
  border-color: #eef2f7;
  background: #f8fafc;
  color: #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
}

.ddt-preview__period.has-slots:not(.is-active):not(.is-disabled)::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-radius: 999px;
  background: #10a59a;
  vertical-align: middle;
}

.ddt-preview__grid-loading {
  padding: 28px 8px;
  text-align: center;
  color: var(--ddt-muted);
  font-size: 13px;
}

.ddt-avail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.ddt-avail__row {
  display: grid;
  grid-template-columns: 72px repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
}

.ddt-avail__row--head {
  margin-bottom: 2px;
}

.ddt-avail__corner,
.ddt-avail__time {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ddt-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.ddt-avail__day {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2px;
  color: var(--ddt-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.ddt-avail__cell {
  position: relative;
  min-height: 24px;
  border-radius: 5px;
  border: 1px solid #edf2f7;
  background: #f8fafc;
  overflow: hidden;
}

.ddt-avail__cell.is-open {
  border-color: rgba(16, 165, 154, 0.28);
  background: #10a59a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ddt-avail__cell.is-partial {
  border: 0;
  background: transparent;
}

.ddt-avail__half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #10a59a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ddt-avail__cell.is-partial--left .ddt-avail__half {
  left: 0;
  border-radius: 5px 0 0 5px;
}

.ddt-avail__cell.is-partial--right .ddt-avail__half {
  right: 0;
  border-radius: 0 5px 5px 0;
}

.ddt-preview__tz {
  margin: 12px 0 0;
  color: var(--ddt-muted);
  font-size: 11px;
  line-height: 1.5;
}

.ddt-preview__full {
  display: inline-flex;
  margin-top: 10px;
  color: var(--ddt-brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ddt-preview__full:hover {
  text-decoration: underline;
}

.ddt-tutor {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--ddt-line);
  border-radius: 18px;
  background: var(--ddt-card);
  box-shadow: var(--ddt-shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  outline: none;
}

.ddt-tutor:hover,
.ddt-tutor.is-active {
  border-color: rgba(16, 165, 154, 0.45);
  box-shadow: 0 14px 32px rgba(16, 35, 72, 0.08);
  transform: translateY(-1px);
}

.ddt-tutor.is-active {
  box-shadow: 0 0 0 1px rgba(16, 165, 154, 0.35), 0 14px 32px rgba(16, 35, 72, 0.08);
}

.ddt-tutor__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ddt-tutor__avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.ddt-tutor__avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  background: #e8eef6;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.95);
}

.ddt-tutor__avatar--empty {
  display: block;
}

.ddt-tutor__flag {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(16, 35, 72, 0.18);
  background-size: cover;
  background-position: center;
}

.ddt-tutor__flag.is-ph {
  background-image: linear-gradient(180deg, #0038a8 0 33%, #ce1126 33% 66%, #fcd116 66% 100%);
}

.ddt-tutor__flag.is-us {
  background-image: linear-gradient(180deg, #b22234 0 14%, #fff 14% 28%, #b22234 28% 42%, #fff 42% 56%, #b22234 56% 70%, #fff 70% 84%, #3c3b6e 84% 100%);
}

.ddt-tutor__flag.is-cn {
  background-color: #de2910;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23DE2910'/%3E%3Cpolygon fill='%23FFDE00' points='5,2.2 5.88,4.9 8.8,4.9 6.46,6.58 7.34,9.28 5,7.6 2.66,9.28 3.54,6.58 1.2,4.9 4.12,4.9'/%3E%3Cpolygon fill='%23FFDE00' points='9.6,1.6 10.02,2.9 11.4,2.9 10.28,3.7 10.7,5 9.6,4.2 8.5,5 8.92,3.7 7.8,2.9 9.18,2.9'/%3E%3Cpolygon fill='%23FFDE00' points='11.2,3.8 11.62,5.1 13,5.1 11.88,5.9 12.3,7.2 11.2,6.4 10.1,7.2 10.52,5.9 9.4,5.1 10.78,5.1'/%3E%3Cpolygon fill='%23FFDE00' points='11.2,6.6 11.62,7.9 13,7.9 11.88,8.7 12.3,10 11.2,9.2 10.1,10 10.52,8.7 9.4,7.9 10.78,7.9'/%3E%3Cpolygon fill='%23FFDE00' points='9.6,8.6 10.02,9.9 11.4,9.9 10.28,10.7 10.7,12 9.6,11.2 8.5,12 8.92,10.7 7.8,9.9 9.18,9.9'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ddt-tutor__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ddt-ink);
  font-size: 13px;
}

.ddt-tutor__star {
  color: #f59e0b;
  font-size: 14px;
  line-height: 1;
}

.ddt-tutor__main {
  min-width: 0;
}

.ddt-tutor__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ddt-tutor__name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.ddt-tutor__name a {
  color: inherit;
  text-decoration: none;
}

.ddt-tutor__name a:hover {
  color: var(--ddt-brand);
}

.ddt-tutor__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.ddt-tutor__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ddt-tutor__tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.ddt-tutor__tag--gold {
  gap: 4px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.ddt-tutor__tag--gold .ddt-gold-icon {
  width: 12px;
  height: 12px;
}

.ddt-tutor__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 118px;
  align-self: stretch;
}

.ddt-tutor__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ddt-brand);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(16, 165, 154, 0.24);
}

.ddt-tutor__cta:hover {
  filter: brightness(0.96);
  color: #fff !important;
}

.ddt-tutor__link {
  text-align: center;
  color: var(--ddt-brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ddt-tutor__link:hover {
  text-decoration: underline;
}

.ddt-tutor__identity {
  min-width: 0;
  flex: 1;
}

.ddt-tutor__bio {
  margin: 10px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ddt-tutor__bio--muted {
  color: #94a3b8;
}

@media (max-width: 1199px) {
  .ddt-instructors__body {
    grid-template-columns: minmax(0, 6.5fr) minmax(260px, 3.5fr);
  }

  .ddt-tutor {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .ddt-tutor__avatar-wrap,
  .ddt-tutor__avatar {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 991px) {
  .ddt-instructors__body {
    grid-template-columns: 1fr;
  }

  .ddt-instructors__preview {
    display: none !important;
  }

  .ddt-tutor {
    cursor: pointer;
  }
}

@media (max-width: 767px) {
  .ddt-instructors {
    padding: 20px 0 64px;
  }

  .ddt-instructors__title {
    font-size: 26px;
  }

  .ddt-instructors__head {
    flex-direction: column;
    align-items: stretch;
  }

  .ddt-tutor {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .ddt-tutor__avatar-wrap,
  .ddt-tutor__avatar {
    width: 72px;
    height: 72px;
  }

  .ddt-tutor__top {
    flex-direction: column;
    align-items: stretch;
  }

  .ddt-tutor__aside {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
  }

  .ddt-tutor__name {
    font-size: 18px;
  }

  .ddt-avail__row {
    grid-template-columns: 68px repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .ddt-avail__cell {
    min-height: 22px;
  }
}

/* ---------- Shared: 预约老师按钮 ---------- */
.ddt-book-teacher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff !important;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.28);
  cursor: pointer;
  transition: filter 0.18s ease;
}

.ddt-book-teacher-btn i {
  font-size: 13px;
  line-height: 1;
}

.ddt-book-teacher-btn:hover,
.ddt-book-teacher-btn:focus-visible {
  filter: brightness(1.05);
  color: #fff !important;
}

.ddt-book-teacher-btn[hidden] {
  display: none !important;
}

.ddt-tutor__aside .ddt-book-teacher-btn {
  width: auto;
  min-width: 96px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

@media (max-width: 767px) {
  .ddt-tutor__aside .ddt-book-teacher-btn {
    width: 100%;
  }
}

/* ---------- Book teacher modal ---------- */
.ddt-btm {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ddt-btm[hidden] {
  display: none !important;
}

.ddt-btm__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.ddt-btm__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.ddt-btm__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ddt-btm__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.ddt-btm__hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 28px;
  margin-bottom: 18px;
}

.ddt-btm__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #e8eef6;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.ddt-btm__avatar {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
}

.ddt-btm__avatar[hidden] {
  display: none !important;
}

.ddt-btm__avatar-wrap .ddt-tutor__flag {
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
}

.ddt-btm__title {
  margin: 0;
  color: #102348;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.ddt-btm__sub {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.ddt-btm__section + .ddt-btm__section {
  margin-top: 16px;
}

.ddt-btm__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  color: #102348;
  font-size: 13px;
  font-weight: 700;
}

.ddt-btm__hint {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.ddt-btm__dur,
.ddt-btm__soft {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ddt-btm__chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ddt-btm__chip.is-active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  box-shadow: 0 0 0 1px #3b82f6;
}

.ddt-btm__dates {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.ddt-btm__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  padding: 8px 2px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font: inherit;
  cursor: pointer;
}

.ddt-btm__date strong {
  font-size: 13px;
  font-weight: 750;
  color: #102348;
}

.ddt-btm__date span {
  font-size: 11px;
  color: #64748b;
}

.ddt-btm__date.is-active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 0 1px #3b82f6;
}

.ddt-btm__date.is-empty,
.ddt-btm__date:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ddt-btm__periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.ddt-btm__period {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ddt-btm__period.is-active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  box-shadow: 0 0 0 1px #3b82f6;
}

.ddt-btm__period.is-disabled,
.ddt-btm__period:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ddt-btm__times {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.ddt-btm__time {
  min-height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #102348;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.ddt-btm__time.is-active {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}

.ddt-btm__empty {
  grid-column: 1 / -1;
  padding: 18px 8px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.ddt-btm__soft-hint {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  min-height: 1.2em;
}

.ddt-btm__dl {
  margin-left: 6px;
  color: #2563eb;
  font-weight: 650;
  text-decoration: underline;
}

.ddt-btm__dl:hover {
  color: #1d4ed8;
}

.ddt-btm__confirm {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 20px;
  overflow: hidden;
}

.ddt-btm__confirm[hidden] {
  display: none !important;
}

.ddt-btm__confirm-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.ddt-btm__confirm-card {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 20px 18px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.ddt-btm__confirm-title {
  margin: 0 0 12px;
  color: #102348;
  font-size: 17px;
  font-weight: 750;
}

.ddt-btm__confirm-body {
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
}

.ddt-btm__confirm-body p {
  margin: 0 0 6px;
}

.ddt-btm__confirm-warn {
  margin-top: 10px !important;
  color: #b91c1c !important;
  font-size: 13px;
}

.ddt-btm__confirm-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.ddt-btm__confirm-foot .ddt-book-teacher-btn {
  width: auto;
  min-width: 120px;
}

.ddt-btm__msg {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.ddt-btm__msg.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.ddt-btm__msg.is-err {
  background: #fef2f2;
  color: #b91c1c;
}

.ddt-btm__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.ddt-btm__ghost {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.ddt-btm__foot .ddt-book-teacher-btn {
  width: auto;
  min-width: 132px;
}

.ddt-btm__foot .ddt-book-teacher-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  filter: none;
}

body.ddt-btm-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .ddt-btm__dates {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ddt-btm__times {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ddt-btm__foot {
    flex-direction: column-reverse;
  }

  .ddt-btm__ghost,
  .ddt-btm__foot .ddt-book-teacher-btn {
    width: 100%;
  }
}

/* ---------- Book details ---------- */
.ddt-bd {
  --ddt-ink: #102348;
  --ddt-muted: #64748b;
  --ddt-line: #e2e8f0;
  --ddt-brand: #10a59a;
  --ddt-brand-soft: #eaf8f5;
  --ddt-page: #f5f8fc;
  --ddt-card: #fff;
  --ddt-shadow: 0 8px 24px rgba(16, 35, 72, 0.06);
  padding: 28px 0 88px;
  background: var(--ddt-page);
  color: var(--ddt-ink);
}

.ddt-bd__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--ddt-brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ddt-bd__back:hover {
  text-decoration: underline;
}

.ddt-bd__loading,
.ddt-bd__error {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--ddt-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ddt-muted);
  font-size: 14px;
}

.ddt-bd__error {
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  background: #fef2f2;
}

.ddt-bd__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ddt-bd__cover-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--ddt-line);
  border-radius: 18px;
  background: var(--ddt-card);
  box-shadow: var(--ddt-shadow);
}

.ddt-bd__cover-wrap {
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8eef6 0%, #f5f8fc 100%);
  aspect-ratio: 3 / 4;
}

.ddt-bd__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ddt-bd__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}

.ddt-bd__cta i {
  font-size: 13px;
  line-height: 1;
}

.ddt-bd__cta[hidden] {
  display: none !important;
}

.ddt-bd__cta.is-add,
.ddt-bd__cta.is-default {
  background: var(--ddt-brand);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(16, 165, 154, 0.28);
}

.ddt-bd__cta.is-add:hover,
.ddt-bd__cta.is-default:hover {
  filter: brightness(1.05);
}

.ddt-bd-use {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.ddt-bd-use[hidden] {
  display: none !important;
}

.ddt-bd-use__mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(16, 165, 154, 0.18), transparent 42%),
    radial-gradient(circle at 85% 90%, rgba(16, 35, 72, 0.22), transparent 46%),
    rgba(10, 22, 48, 0.48);
}

.ddt-bd-use__dialog {
  position: relative;
  width: min(92vw, 560px);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 28px 26px 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
  box-shadow: 0 24px 64px rgba(16, 35, 72, 0.22);
  box-sizing: border-box;
}

.ddt-bd-use__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ddt-bd-use__hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.ddt-bd-use__cover-wrap {
  overflow: hidden;
  width: 96px;
  height: 128px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8eef6 0%, #f5f8fc 100%);
  box-shadow: 0 10px 24px rgba(16, 35, 72, 0.12);
}

.ddt-bd-use__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ddt-bd-use__book {
  margin: 0 0 8px;
  color: var(--ddt-ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.3;
}

.ddt-bd-use__lead {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.ddt-bd-use__steps {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ddt-bd-use__step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 2px solid rgba(16, 35, 72, 0.08);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.ddt-bd-use__step.is-current {
  border-color: #10a59a;
  background: linear-gradient(180deg, #f2fbf9 0%, #ffffff 70%);
  box-shadow: 0 0 0 3px rgba(16, 165, 154, 0.16), 0 14px 28px rgba(16, 165, 154, 0.12);
}

.ddt-bd-use__step.is-done {
  border-color: #10a59a;
  background: linear-gradient(180deg, #e7f8f4 0%, #ffffff 100%);
  box-shadow: 0 8px 20px rgba(16, 165, 154, 0.1);
}

.ddt-bd-use__step.is-locked {
  opacity: 0.55;
}

.ddt-bd-use__step-index {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0;
  border: 1px solid #dbe3ea;
  border-radius: 50%;
  background: #f8fafc;
  color: #64748b !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-sizing: border-box;
  box-shadow: none;
}

.ddt-bd-use__step.is-current .ddt-bd-use__step-index {
  border-color: rgba(16, 165, 154, 0.45);
  background: #eaf8f5;
  color: #0f766e !important;
}

.ddt-bd-use__step.is-done .ddt-bd-use__step-index {
  border-color: rgba(16, 165, 154, 0.35);
  background: #eaf8f5;
  color: transparent !important;
  font-size: 0 !important;
}

.ddt-bd-use__step.is-done .ddt-bd-use__step-index::after {
  content: "✓";
  font-size: 14px;
  font-weight: 700;
  color: #0f766e;
}

.ddt-bd-use__step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ddt-bd-use__step-head h3 {
  margin: 0;
  color: var(--ddt-ink);
  font-size: 16px;
  font-weight: 750;
}

.ddt-bd-use__badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
}

.ddt-bd-use__step.is-current .ddt-bd-use__badge {
  border-color: rgba(16, 165, 154, 0.28);
  background: #eaf8f5;
  color: #0f766e;
}

.ddt-bd-use__step.is-done .ddt-bd-use__badge {
  border-color: rgba(16, 165, 154, 0.22);
  background: #f0fdfa;
  color: #0f766e;
}

.ddt-bd-use__step-body > p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.ddt-bd-use__action {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #10a59a;
  color: #fff !important;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(16, 165, 154, 0.28);
  cursor: pointer;
}

.ddt-bd-use__action:hover:not(:disabled) {
  filter: brightness(1.05);
}

.ddt-bd-use__action:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

.ddt-bd-use__done-mark {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  color: #0f766e;
  font-size: 14px;
  font-weight: 750;
}

.ddt-bd-use__done-mark[hidden] {
  display: none !important;
}

.ddt-bd-use__msg {
  min-height: 20px;
  margin: 14px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.ddt-bd-use__msg.is-ok {
  color: #0f766e;
}

.ddt-bd-use__msg.is-err {
  color: #dc2626;
}

.ddt-bd-use__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.ddt-bd-use__ghost {
  min-height: 42px;
  padding: 0 18px;
  margin-left: auto;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ddt-bd-use__foot .ddt-book-teacher-btn {
  width: auto;
  min-width: 140px;
  min-height: 42px;
  padding: 0 18px;
}

body.ddt-bd-use-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .ddt-bd-use__dialog {
    padding: 22px 16px 16px;
    border-radius: 18px;
  }

  .ddt-bd-use__hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .ddt-bd-use__cover-wrap {
    width: 72px;
    height: 96px;
  }

  .ddt-bd-use__book {
    font-size: 18px;
  }

  .ddt-bd-use__foot {
    flex-direction: column;
  }

  .ddt-bd-use__ghost,
  .ddt-bd-use__foot .ddt-book-teacher-btn {
    width: 100%;
    margin-left: 0;
  }
}

.ddt-bd__card {
  margin: 0 0 16px;
  padding: 22px 22px 20px;
  border: 1px solid var(--ddt-line);
  border-radius: 18px;
  background: var(--ddt-card);
  box-shadow: var(--ddt-shadow);
}

.ddt-bd__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ddt-bd__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ddt-bd__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ddt-brand-soft);
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.ddt-bd__tag--muted {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

.ddt-bd__buy-tip {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
}

.ddt-bd__buy-tip-main {
  margin: 0 0 4px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.ddt-bd__buy-tip-sub {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

.ddt-bd__buy-tip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 140ms ease, color 140ms ease;
}

.ddt-bd__buy-tip-link:hover {
  background: var(--ddt-brand-soft);
  color: var(--ddt-brand);
}

.ddt-bd__desc {
  color: #475569;
  font-size: 15px;
  line-height: 1.75;
}

.ddt-bd__desc p {
  margin: 0 0 10px;
}

.ddt-bd__desc p:last-child {
  margin-bottom: 0;
}

.ddt-bd__section-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ddt-bd__levels {
  display: flex;
  flex-direction: column;
}

.ddt-bd__level {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid #eef2f7;
  color: inherit;
  cursor: default;
}

.ddt-bd__level:first-child {
  padding-top: 2px;
}

.ddt-bd__level:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.ddt-bd__level-name {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.ddt-bd__muted {
  color: var(--ddt-muted);
  font-size: 14px;
}

@media (max-width: 991px) {
  .ddt-bd__layout {
    grid-template-columns: 1fr;
  }

  .ddt-bd__aside {
    max-width: 280px;
  }

  .ddt-bd__title {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .ddt-bd {
    padding: 20px 0 64px;
  }

  .ddt-bd__aside {
    max-width: none;
  }

  .ddt-bd__cover-card {
    flex-direction: row;
    align-items: center;
  }

  .ddt-bd__cover-wrap {
    width: 96px;
    flex: 0 0 96px;
    aspect-ratio: 3 / 4;
  }

  .ddt-bd__cta {
    flex: 1;
  }

  .ddt-bd__card {
    padding: 16px;
  }

  .ddt-bd__section-title {
    font-size: 18px;
  }
}

/* ---------- Instructor details ---------- */
.ddt-td {
  --ddt-ink: #102348;
  --ddt-muted: #64748b;
  --ddt-line: #e2e8f0;
  --ddt-brand: #10a59a;
  --ddt-brand-soft: #eaf8f5;
  --ddt-page: #f5f8fc;
  --ddt-card: #fff;
  --ddt-shadow: 0 8px 24px rgba(16, 35, 72, 0.06);
  padding: 28px 0 88px;
  background: var(--ddt-page);
  color: var(--ddt-ink);
}

.ddt-td__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--ddt-brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ddt-td__back:hover {
  text-decoration: underline;
}

.ddt-td__loading,
.ddt-td__error {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--ddt-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ddt-muted);
  font-size: 14px;
}

.ddt-td__error {
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  background: #fef2f2;
}

.ddt-td__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  align-content: start;
}

.ddt-td__profile {
  position: relative;
  top: auto;
  margin: 0;
  padding: 0;
  align-self: start;
}

.ddt-td__profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 24px 14px 16px;
  border: 1px solid var(--ddt-line);
  border-radius: 18px;
  background: var(--ddt-card);
  box-shadow: var(--ddt-shadow);
  text-align: center;
  box-sizing: border-box;
}

.ddt-td__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-self: start;
}

.ddt-td__card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--ddt-line);
  border-radius: 18px;
  background: var(--ddt-card);
  box-shadow: var(--ddt-shadow);
}

.ddt-td__card--hero,
.ddt-td__card--schedule {
  padding: 24px;
}

.ddt-td__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.ddt-td__hero-intro,
.ddt-td__hero-video {
  min-width: 0;
}

.ddt-td__avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #e8eef6;
}

.ddt-td__avatar {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;
  background: #e8eef6;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.95);
}

.ddt-td__avatar[hidden] {
  display: none !important;
}

.ddt-td__flag {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(16, 35, 72, 0.18);
  background-size: cover;
  background-position: center;
}

.ddt-td__flag.is-ph {
  background-image: linear-gradient(180deg, #0038a8 0 33%, #ce1126 33% 66%, #fcd116 66% 100%);
}

.ddt-td__flag.is-us {
  background-image: linear-gradient(180deg, #b22234 0 14%, #fff 14% 28%, #b22234 28% 42%, #fff 42% 56%, #b22234 56% 70%, #fff 70% 84%, #3c3b6e 84% 100%);
}

.ddt-td__flag.is-cn {
  background-color: #de2910;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23DE2910'/%3E%3Cpolygon fill='%23FFDE00' points='5,2.2 5.88,4.9 8.8,4.9 6.46,6.58 7.34,9.28 5,7.6 2.66,9.28 3.54,6.58 1.2,4.9 4.12,4.9'/%3E%3Cpolygon fill='%23FFDE00' points='9.6,1.6 10.02,2.9 11.4,2.9 10.28,3.7 10.7,5 9.6,4.2 8.5,5 8.92,3.7 7.8,2.9 9.18,2.9'/%3E%3Cpolygon fill='%23FFDE00' points='11.2,3.8 11.62,5.1 13,5.1 11.88,5.9 12.3,7.2 11.2,6.4 10.1,7.2 10.52,5.9 9.4,5.1 10.78,5.1'/%3E%3Cpolygon fill='%23FFDE00' points='11.2,6.6 11.62,7.9 13,7.9 11.88,8.7 12.3,10 11.2,9.2 10.1,10 10.52,8.7 9.4,7.9 10.78,7.9'/%3E%3Cpolygon fill='%23FFDE00' points='9.6,8.6 10.02,9.9 11.4,9.9 10.28,10.7 10.7,12 9.6,11.2 8.5,12 8.92,10.7 7.8,9.9 9.18,9.9'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ddt-td__name {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: break-word;
}

.ddt-td__gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}

.ddt-td__country {
  color: var(--ddt-muted);
  font-size: 13px;
  font-weight: 600;
}

.ddt-td__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.ddt-td__intro {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.85;
}

.ddt-td__intro p {
  margin: 0 0 0.9em;
}

.ddt-td__intro p:last-child {
  margin-bottom: 0;
}

.ddt-td__notice {
  width: 100%;
  margin-top: 4px;
  text-align: left;
}

.ddt-td-info {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4fbff;
  border: 1px solid #bcdcff;
  border-left: 3px solid #2f80ed;
}

.ddt-td-info__icon {
  float: left;
  width: 18px;
  height: 18px;
  margin: 1px 8px 0 0;
  border-radius: 999px;
  background: #2f80ed;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.ddt-td-info__content {
  overflow: hidden;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.ddt-td-info__label {
  font-weight: 700;
  margin-right: 4px;
}

.ddt-td-soft {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ddt-td-soft__item {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.ddt-td-soft__item:hover {
  color: #2f80ed;
  background: rgba(47, 128, 237, 0.08);
}

.ddt-td-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
}

.ddt-td-modal {
  width: min(420px, 100%);
  padding: 22px 20px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.ddt-td-modal__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ddt-ink);
}

.ddt-td-modal__body {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.ddt-td-modal__ok {
  display: flex;
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ddt-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.ddt-td__section-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ddt-ink);
  letter-spacing: -0.01em;
}

.ddt-td__card--schedule .ddt-preview__schedule-head {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  text-align: left;
}

.ddt-td__card--schedule .ddt-td__section-title {
  margin: 0;
  text-align: left;
  flex: 0 1 auto;
}

.ddt-td__card--schedule .ddt-preview__periods {
  max-width: 320px;
  width: auto;
  flex: 1 1 220px;
  margin-left: auto;
}

.ddt-td__card--schedule.is-full-schedule .ddt-preview__periods {
  display: none;
}

.ddt-td__card--schedule .ddt-avail__row {
  grid-template-columns: 78px repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.ddt-td__card--schedule .ddt-avail--full .ddt-avail__row {
  grid-template-columns: 72px repeat(15, minmax(0, 1fr));
  gap: 4px;
}

.ddt-td__card--schedule .ddt-avail__cell {
  min-height: 34px;
  border-radius: 6px;
}

.ddt-td__card--schedule .ddt-avail--full .ddt-avail__cell {
  min-height: 28px;
}

.ddt-td__card--schedule .ddt-avail__day,
.ddt-td__card--schedule .ddt-avail__time {
  font-size: 13px;
}

.ddt-td__card--schedule .ddt-avail--full .ddt-avail__time {
  font-size: 11px;
}

.ddt-td__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ddt-td__section-head .ddt-td__section-title {
  margin: 0;
}

.ddt-td__eva-count {
  color: var(--ddt-muted);
  font-size: 13px;
}

.ddt-td__muted {
  color: var(--ddt-muted);
  font-size: 14px;
}

.ddt-td__video,
.ddt-td__course-item {
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.ddt-td__player {
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.ddt-td__player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
}

.ddt-td__video-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.ddt-td .ddt-book-teacher-btn {
  margin-top: 6px;
}

.ddt-td__cta-hint {
  margin: 10px 0 0;
  text-align: center;
  color: var(--ddt-muted);
  font-size: 12px;
}

.ddt-td__eva-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ddt-td__eva {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.ddt-td__eva:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ddt-td__eva-avatar {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  background: #e8eef6;
  flex-shrink: 0;
}

.ddt-td__eva-avatar--empty {
  display: block;
}

.ddt-td__eva-body {
  min-width: 0;
  flex: 1;
}

.ddt-td__eva-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.ddt-td__eva-meta strong {
  color: var(--ddt-ink);
}

.ddt-td__eva-stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.ddt-td__eva-time {
  color: var(--ddt-muted);
  font-size: 12px;
}

.ddt-td__eva-content {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.ddt-td__eva-reply {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.ddt-td__more {
  display: inline-flex;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--ddt-brand);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.ddt-td__more:hover {
  text-decoration: underline;
}

@media (max-width: 1199px) {
  .ddt-td__hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .ddt-td__layout {
    grid-template-columns: 1fr;
  }

  .ddt-td__profile {
    position: static;
  }

  .ddt-td__profile-card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
    gap: 12px 16px;
  }

  .ddt-td__tags {
    justify-content: flex-start;
    width: 100%;
  }

  .ddt-td__notice,
  .ddt-td .ddt-book-teacher-btn,
  .ddt-td__cta-hint {
    width: 100%;
  }

  .ddt-td__card--schedule .ddt-preview__schedule-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ddt-td__card--schedule .ddt-preview__periods {
    max-width: none;
    width: 100%;
    flex: none;
    margin-left: 0;
    margin-right: 0;
  }

  .ddt-td__card--schedule .ddt-preview__period {
    width: 100%;
    min-height: 36px;
    writing-mode: horizontal-tb;
  }
}

@media (max-width: 767px) {
  .ddt-td {
    padding: 20px 0 64px;
  }

  .ddt-td__name {
    font-size: 18px;
  }

  .ddt-td__avatar-wrap,
  .ddt-td__avatar {
    width: 72px;
    height: 72px;
  }

  .ddt-td__card,
  .ddt-td__card--hero,
  .ddt-td__card--schedule {
    padding: 16px;
  }

  .ddt-td__section-title {
    font-size: 18px;
  }

  .ddt-td__intro {
    font-size: 15px;
  }

  .ddt-td__card--schedule .ddt-avail__row {
    grid-template-columns: 68px repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .ddt-td__card--schedule .ddt-avail__cell {
    min-height: 26px;
  }
}


/* ========== Personal Center (sidebar + panels) ========== */
.ddt-pc {
  --pc-ink: #102348;
  --pc-muted: #64748b;
  --pc-line: #e2e8f0;
  --pc-brand: #10a59a;
  --pc-brand-deep: #1f6f5b;
  --pc-soft: #eaf8f5;
  --pc-page: #f5f8fc;
  --pc-card: #fff;
  --pc-shadow: 0 8px 24px rgba(16, 35, 72, 0.06);
  padding: 28px 0 88px;
  background: var(--pc-page);
  color: var(--pc-ink);
}

.ddt-pc__loading {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--pc-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--pc-muted);
  font-size: 14px;
  font-weight: 600;
}

.ddt-pc__loading[hidden],
.ddt-pc__guest[hidden],
.ddt-pc__shell[hidden],
.ddt-pc__panel[hidden] {
  display: none !important;
}

.ddt-pc__guest {
  display: flex;
  justify-content: center;
  padding: 24px 0 40px;
}

.ddt-pc__guest-card {
  width: min(100%, 460px);
  padding: 36px 28px;
  border: 1px solid var(--pc-line);
  border-radius: 18px;
  background: var(--pc-card);
  box-shadow: var(--pc-shadow);
  text-align: center;
}

.ddt-pc__guest-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--pc-soft);
  color: var(--pc-brand);
  font-size: 22px;
}

.ddt-pc__guest-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 750;
}

.ddt-pc__guest-card p {
  margin: 0 0 20px;
  color: var(--pc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ddt-pc__guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.ddt-pc__text-link {
  color: var(--pc-brand-deep);
  font-weight: 650;
  text-decoration: none;
}

.ddt-pc__text-link:hover {
  color: var(--pc-brand);
}

.ddt-pc__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ddt-pc__side {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}

.ddt-pc__profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px 18px;
  border: 1px solid var(--pc-line);
  border-radius: 18px;
  background: var(--pc-card);
  box-shadow: var(--pc-shadow);
  text-align: center;
}

.ddt-pc__avatar-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: #e2e8f0;
  box-shadow: 0 8px 18px rgba(16, 165, 154, 0.18);
}

.ddt-pc__avatar {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: #e2e8f0;
}

.ddt-pc__avatar[hidden] {
  display: none !important;
}

.ddt-pc__name {
  margin: 0;
  max-width: 100%;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
  word-break: break-word;
}

.ddt-pc__meta {
  margin: 0;
  color: var(--pc-muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.ddt-pc__profile-card .ddt-book-teacher-btn {
  margin-top: 8px;
}

.ddt-pc__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--pc-line);
  border-radius: 18px;
  background: var(--pc-card);
  box-shadow: var(--pc-shadow);
}

.ddt-pc__nav-item,
.ddt-pc__logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--pc-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ddt-pc__nav-item i,
.ddt-pc__logout i {
  width: 16px;
  text-align: center;
  color: var(--pc-muted);
  font-size: 13px;
}

.ddt-pc__nav-item:hover,
.ddt-pc__logout:hover {
  background: #f8fafc;
}

.ddt-pc__nav-item.is-active {
  background: var(--pc-soft);
  color: var(--pc-brand-deep);
}

.ddt-pc__nav-item.is-active i {
  color: var(--pc-brand);
}

.ddt-pc__logout {
  border: 1px solid var(--pc-line);
  border-radius: 14px;
  background: var(--pc-card);
  color: #dc2626;
  box-shadow: var(--pc-shadow);
}

.ddt-pc__logout i {
  color: #dc2626;
}

.ddt-pc__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ddt-pc__panel {
  display: none;
}

.ddt-pc__panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ddt-pc__panel-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.ddt-pc__panel-head p {
  margin: 0;
  color: var(--pc-muted);
  font-size: 14px;
}

.ddt-pc__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ddt-pc__stat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--pc-line);
  border-radius: 16px;
  background: var(--pc-card);
  box-shadow: var(--pc-shadow);
}

.ddt-pc__stat--inline {
  max-width: 320px;
}

.ddt-pc__stat-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 16px;
}

.ddt-pc__stat-icon.tone-hours { background: #e8f7f4; color: #0f8f84; }
.ddt-pc__stat-icon.tone-lesson { background: #eef2ff; color: #4f46e5; }
.ddt-pc__stat-icon.tone-pref { background: #fff7ed; color: #ea580c; }
.ddt-pc__stat-icon.tone-hw { background: #f0f9ff; color: #0284c7; }

.ddt-pc__stat-label {
  margin: 0 0 4px;
  color: var(--pc-muted);
  font-size: 12px;
}

.ddt-pc__stat-value {
  margin: 0;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.15;
}

.ddt-pc__stat-value small {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pc-muted);
}

.ddt-pc__stat-value--sm {
  font-size: 16px;
}

.ddt-pc__card {
  padding: 18px 18px 16px;
  border: 1px solid var(--pc-line);
  border-radius: 16px;
  background: var(--pc-card);
  box-shadow: var(--pc-shadow);
}

.ddt-pc__card-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 750;
}

.ddt-pc__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ddt-pc__action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--pc-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ddt-pc__action i {
  color: var(--pc-brand);
}

.ddt-pc__action:hover {
  border-color: rgba(16, 165, 154, 0.35);
  background: var(--pc-soft);
}

.ddt-pc__card--feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.ddt-pc__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e8f7f4;
  color: #0f8f84;
  font-size: 20px;
}

.ddt-pc__feature-icon.tone-b { background: #fef3c7; color: #d97706; }
.ddt-pc__feature-icon.tone-c { background: #ede9fe; color: #7c3aed; }

.ddt-pc__feature-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.ddt-pc__feature-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 750;
}

.ddt-pc__feature-copy p {
  margin: 0;
  color: var(--pc-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ddt-pc__tips {
  display: grid;
  gap: 10px;
}

.ddt-pc__tip {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--pc-line);
  color: var(--pc-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ddt-pc__tip strong {
  color: var(--pc-ink);
  margin-right: 6px;
}

.ddt-pc__link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ddt-pc__link-grid a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--pc-ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.ddt-pc__link-grid a:hover {
  border-color: rgba(16, 165, 154, 0.35);
  background: var(--pc-soft);
  color: var(--pc-brand-deep);
}

.ddt-pc__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 260px;
  padding: 32px 20px;
  border: 1px dashed var(--pc-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.ddt-pc__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--pc-soft);
  color: var(--pc-brand);
  font-size: 22px;
}

.ddt-pc__empty-icon.tone-c {
  background: #ede9fe;
  color: #7c3aed;
}

.ddt-pc__empty h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
}

.ddt-pc__empty p {
  margin: 0;
  max-width: 360px;
  color: var(--pc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ddt-pc__kv {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ddt-pc__kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.ddt-pc__kv-row:last-child {
  border-bottom: 0;
}

.ddt-pc__kv-row span {
  color: var(--pc-muted);
}

.ddt-pc__kv-row strong {
  color: var(--pc-ink);
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

.ddt-pc__note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--pc-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ddt-pc__settings-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.ddt-pc__settings-avatar {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.ddt-pc__settings-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.ddt-pc__settings-top h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.ddt-pc__settings-top p {
  margin: 0;
  color: var(--pc-muted);
  font-size: 13px;
  line-height: 1.4;
}

.ddt-pc__support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ddt-pc__support-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--pc-line);
  border-radius: 16px;
  background: var(--pc-card);
  box-shadow: var(--pc-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ddt-pc__support-item:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 165, 154, 0.35);
  color: inherit;
}

.ddt-pc__support-item i {
  color: var(--pc-brand);
  font-size: 18px;
}

.ddt-pc__support-item strong {
  font-size: 15px;
  font-weight: 750;
}

.ddt-pc__support-item small {
  color: var(--pc-muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 991px) {
  .ddt-pc__layout {
    grid-template-columns: 1fr;
  }

  .ddt-pc__side {
    position: static;
  }

  .ddt-pc__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .ddt-pc__nav-item {
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-height: 64px;
    padding: 10px 6px;
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 575px) {
  .ddt-pc {
    padding: 18px 0 64px;
  }

  .ddt-pc__stats,
  .ddt-pc__actions,
  .ddt-pc__link-grid,
  .ddt-pc__support-grid,
  .ddt-pc__nav {
    grid-template-columns: 1fr;
  }

  .ddt-pc__panel-head h2 {
    font-size: 20px;
  }

  .ddt-pc__card--feature .thm-btn {
    width: 100%;
    text-align: center;
  }
}

.ddt-pc__stats--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ddt-pc__tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--pc-line);
  border-radius: 999px;
  background: #fff;
}

.ddt-pc__tab {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pc-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ddt-pc__tab.is-active {
  background: var(--pc-soft);
  color: var(--pc-brand-deep);
}

.ddt-pc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ddt-pc__schedule {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ddt-pc__course {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--pc-line);
  border-radius: 16px;
  background: var(--pc-card);
  box-shadow: var(--pc-shadow);
}

.ddt-pc__course.is-today {
  border-color: rgba(16, 165, 154, 0.55);
  box-shadow:
    0 0 0 1px rgba(16, 165, 154, 0.22),
    0 10px 24px rgba(16, 165, 154, 0.1);
  background:
    linear-gradient(180deg, rgba(232, 250, 247, 0.9) 0%, #fff 42%);
}

.ddt-pc__course-today-tag {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 1;
  transform: translateY(-50%);
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pc-brand, #10a59a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 4px 10px rgba(16, 165, 154, 0.25);
}

.ddt-pc__course-avatar-wrap {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #e2e8f0;
  text-decoration: none;
}

.ddt-pc__course-avatar {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.ddt-pc__course-avatar--empty {
  display: block;
}

.ddt-pc__course-avatar-wrap .ddt-tutor__flag {
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
}

.ddt-pc__course-body {
  min-width: 0;
}

.ddt-pc__course-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ddt-pc__course-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ddt-pc__course-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ddt-pc__course-name {
  font-size: 15px;
  font-weight: 750;
  color: var(--pc-ink, #102348);
  text-decoration: none;
}

a.ddt-pc__course-name:hover {
  color: var(--pc-brand-deep, #0f766e);
  text-decoration: underline;
}

.ddt-pc__course-dur {
  color: var(--pc-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ddt-pc__course-time {
  margin: 0;
  color: var(--pc-muted);
  font-size: 13px;
  line-height: 1.4;
}

.ddt-pc__course-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.ddt-pc__course-soft {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.ddt-pc__course-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ddt-pc__course-btn {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ddt-pc__course-btn.is-primary {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}

.ddt-pc__course-btn.is-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.ddt-pc__course-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ddt-pc__course-enter {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: visible;
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.22);
}

.ddt-pc__course-enter-main,
.ddt-pc__course-enter-caret {
  border: 0;
  background: #3b82f6;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ddt-pc__course-enter-main {
  min-height: 32px;
  padding: 0 12px 0 14px;
  border-radius: 999px 0 0 999px;
  line-height: 32px;
}

.ddt-pc__course-enter-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 32px;
  padding: 0;
  line-height: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0 999px 999px 0;
}

.ddt-pc__course-enter-caret i {
  display: block;
  font-size: 11px;
  line-height: 1;
  transform: translateY(1px);
}

.ddt-pc__course-enter-main:hover,
.ddt-pc__course-enter-caret:hover {
  filter: brightness(1.05);
}

.ddt-pc__course-enter .ddt-pc__course-menu {
  top: calc(100% + 6px);
  right: 0;
  left: auto;
}

.ddt-pc__course-more-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ddt-pc__course-more {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.ddt-pc__course-more span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #94a3b8;
}

.ddt-pc__course-more:hover {
  background: #f1f5f9;
}

.ddt-pc__course-more:hover span {
  background: #64748b;
}

.ddt-pc__course-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 5;
  min-width: 88px;
  padding: 4px;
  border: 1px solid var(--pc-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 35, 72, 0.14);
}

.ddt-pc__course-menu[hidden] {
  display: none !important;
}

.ddt-pc__course-menu button {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b91c1c;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.ddt-pc__course-menu button:hover {
  background: #fef2f2;
}

.ddt-pc__item {
  padding: 16px;
  border: 1px solid var(--pc-line);
  border-radius: 16px;
  background: var(--pc-card);
  box-shadow: var(--pc-shadow);
}

.ddt-pc__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ddt-pc__item-head strong {
  font-size: 15px;
  font-weight: 750;
}

.ddt-pc__item-head span {
  color: var(--pc-muted);
  font-size: 12px;
}

.ddt-pc__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pc-soft);
  color: var(--pc-brand-deep);
  font-size: 12px;
  font-weight: 650;
}

.ddt-pc__item-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.ddt-pc__item-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.ddt-pc__item-rows span {
  color: var(--pc-muted);
}

.ddt-pc__item-rows b {
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

.ddt-pc__item-rows .is-full {
  grid-column: 1 / -1;
}

.ddt-pc__empty-item {
  padding: 36px 16px;
  border: 1px dashed var(--pc-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--pc-muted);
  text-align: center;
  font-size: 14px;
}

.ddt-pc__avatar-edit {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

.ddt-pc__avatar-btn {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pc-brand);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid #fff;
}

.ddt-pc__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.ddt-pc__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ddt-pc__field label,
.ddt-pc__field-label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--pc-muted);
}

.ddt-pc__field input,
.ddt-pc__field select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--pc-ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.ddt-pc__field input:focus,
.ddt-pc__field select:focus {
  border-color: var(--pc-brand);
}

.ddt-pc__field input[readonly] {
  background: #f8fafc;
  color: var(--pc-muted);
}

.ddt-pc__form-msg {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.ddt-pc__form-msg.is-ok {
  color: var(--pc-brand-deep);
}

.ddt-pc__form-msg.is-err {
  color: #dc2626;
}

.ddt-pc__submit {
  align-self: flex-start;
  min-width: 0;
  min-height: 36px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  line-height: 36px !important;
  text-align: center;
}

.ddt-pc__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 575px) {
  .ddt-pc__stats--2,
  .ddt-pc__item-rows {
    grid-template-columns: 1fr;
  }
}


.ddt-pc__avatar {
  opacity: 0;
  transition: opacity 0.18s ease;
}
.ddt-pc__avatar.is-ready {
  opacity: 1;
}
.ddt-pc__avatar-edit {
  cursor: pointer;
}
.ddt-pc__avatar-edit:hover .ddt-pc__avatar-btn {
  background: var(--pc-brand-deep);
}
.ddt-pc__sex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  min-height: 44px;
}
.ddt-pc__sex label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pc-ink);
  cursor: pointer;
}
.ddt-pc__sex input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--pc-brand);
}

.ddt-pc__order {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--pc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 35, 72, 0.05);
}
.ddt-pc__order-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #10a59a, #1f6f5b);
}
.ddt-pc__order.is-invalid .ddt-pc__order-accent {
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}
.ddt-pc__order-body {
  padding: 16px 16px 14px 18px;
}
.ddt-pc__order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ddt-pc__order-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 750;
  color: var(--pc-ink);
}
.ddt-pc__order-sub {
  margin: 0;
  color: var(--pc-muted);
  font-size: 12px;
}
.ddt-pc__order-tag {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pc-soft);
  color: var(--pc-brand-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
}
.ddt-pc__order.is-invalid .ddt-pc__order-tag {
  background: #f1f5f9;
  color: #64748b;
}
.ddt-pc__order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ddt-pc__order-cell {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}
.ddt-pc__order-cell span {
  display: block;
  margin-bottom: 4px;
  color: var(--pc-muted);
  font-size: 11px;
}
.ddt-pc__order-cell strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: var(--pc-ink);
  word-break: break-all;
}
.ddt-pc__order-sn {
  margin-top: 10px;
  color: var(--pc-muted);
  font-size: 12px;
}

.ddt-pc__coupon {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(16, 165, 154, 0.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 35, 72, 0.05);
}
.ddt-pc__coupon-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 10px;
  background: linear-gradient(160deg, #12b5a8, #1f6f5b);
  color: #fff;
  text-align: center;
}
.ddt-pc__coupon-left::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pc-page, #f5f8fc);
  transform: translateY(-50%);
  box-shadow: 0 -28px 0 var(--pc-page, #f5f8fc), 0 28px 0 var(--pc-page, #f5f8fc);
}
.ddt-pc__coupon-count {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.ddt-pc__coupon-unit {
  font-size: 12px;
  opacity: 0.92;
}
.ddt-pc__coupon-right {
  padding: 14px 16px;
}
.ddt-pc__coupon-right h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 750;
}
.ddt-pc__coupon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.ddt-pc__coupon-meta span {
  display: inline-flex;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 650;
  align-items: center;
}
.ddt-pc__coupon-expire {
  margin: 0;
  color: var(--pc-muted);
  font-size: 12px;
}

.ddt-pc__books {
  display: grid;
  gap: 12px;
}
.ddt-pc__book {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--pc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 35, 72, 0.04);
  will-change: transform;
}
.ddt-pc__book.is-removing {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.26s ease;
}
.ddt-pc__book.is-using {
  border: 2px solid #10a59a;
  background: linear-gradient(180deg, #eefbf8 0%, #ffffff 72%);
  box-shadow: 0 0 0 3px rgba(16, 165, 154, 0.14), 0 10px 24px rgba(16, 165, 154, 0.1);
}
.ddt-pc__book-cover {
  width: 72px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
}
.ddt-pc__book-body {
  min-width: 0;
}
.ddt-pc__book-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ddt-pc__book-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--pc-ink);
  text-decoration: none;
}
.ddt-pc__book-title:hover {
  color: var(--pc-brand-deep);
}
.ddt-pc__book-badge {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--pc-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
}
.ddt-pc__book-meta,
.ddt-pc__book-progress {
  margin: 0 0 6px;
  color: var(--pc-muted);
  font-size: 12px;
  line-height: 1.45;
}
.ddt-pc__book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ddt-pc__book-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--pc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pc-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.ddt-pc__book-btn.is-primary {
  border-color: transparent;
  background: var(--pc-brand);
  color: #fff;
}
.ddt-pc__book-btn.is-danger {
  border-color: #fecaca;
  color: #dc2626;
  background: #fff5f5;
}

@media (max-width: 575px) {
  .ddt-pc__order-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ddt-pc__coupon {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

.ddt-pc-confirm[hidden] {
  display: none !important;
}

.ddt-pc-confirm {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ddt-pc-confirm__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.ddt-pc-confirm__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 380px);
  padding: 24px 22px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
}

.ddt-pc-confirm__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 750;
  color: #102348;
}

.ddt-pc-confirm__body {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.ddt-pc-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ddt-pc-confirm__btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #102348;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ddt-pc-confirm__btn.is-primary {
  border-color: transparent;
  background: #10a59a;
  color: #fff;
}

.ddt-pc-confirm__btn.is-danger {
  border-color: transparent;
  background: #dc2626;
  color: #fff;
}

.ddt-pc-confirm__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

body.ddt-pc-confirm-open {
  overflow: hidden;
}
