/* ============================================
   SOHOC CUSTOM HOMEPAGE - Flatsome Child
   Prefix: .sohoc-* (không ảnh hưởng Flatsome)
   ============================================ */
.course-single {
  --primary: #2b6ef6;
  --primary-dark: #1e57d6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f1f5fb;
  --card: #ffffff;
  --bg: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, .06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  padding: 24px 0 60px;
}


.sohoc-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

.sohoc-page * {
    box-sizing: border-box;
}

/* ============ HERO BANNER ============ */
.sohoc-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1e40af 100%);
    color: #ffffff;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.sohoc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(147, 197, 253, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.sohoc-hero .container {
    position: relative;
    z-index: 1;
}

.sohoc-hero-content {
    padding: 20px 0;
}

.sohoc-hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff !important;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.sohoc-hero-sub {
    font-size: 17px;
    color: #cbd5e1;
    margin: 0 0 32px;
}

.sohoc-hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sohoc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
}

.sohoc-btn-light {
    background: #ffffff;
    color: #1e40af !important;
}

.sohoc-btn-light:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sohoc-btn-outline {
    background: transparent;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.sohoc-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.sohoc-hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}

.sohoc-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sohoc-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

.sohoc-stat span {
    font-size: 13px;
    color: #cbd5e1;
}

.sohoc-hero-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ============ SECTION COMMON ============ */
.sohoc-section {
    padding: 50px 0;
}

.sohoc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px;
}

.sohoc-section-title-plain {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.sohoc-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.sohoc-view-all {
    color: #2563eb !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: color 0.2s;
}

.sohoc-view-all:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

.sohoc-empty {
    text-align: center;
    color: #94a3b8;
    padding: 30px;
    background: #f8fafc;
    border-radius: 8px;
}

/* ============ 3 FEATURE CARDS ============ */
.sohoc-main-cards {
    margin-top: -40px;
    position: relative;
    z-index: 2;
    padding-top: 0;
    padding-bottom: 40px;
}

.sohoc-feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.sohoc-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.sohoc-card-purple { background: linear-gradient(160deg, #f5f3ff 0%, #ffffff 100%); }
.sohoc-card-blue   { background: linear-gradient(160deg, #eff6ff 0%, #ffffff 100%); }
.sohoc-card-green  { background: linear-gradient(160deg, #ecfdf5 0%, #ffffff 100%); }

.sohoc-feature-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.sohoc-feature-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sohoc-feature-head h3 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
}

.sohoc-feature-sub {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.sohoc-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.sohoc-feature-list li {
    padding: 0;
    font-size: 14px;
}

.sohoc-feature-list li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 6px;
    color: #475569 !important;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sohoc-feature-list li a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1e293b !important;
    transform: translateX(4px);
}

.sohoc-feature-list li a svg {
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.2s ease;
}

.sohoc-feature-list li a:hover svg {
    transform: scale(1.15);
}

.sohoc-feature-list li a span {
    flex: 1;
    line-height: 1.5;
}

.sohoc-feature-list small {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.sohoc-feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.2s;
    align-self: flex-start;
}

.sohoc-feature-btn:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

/* ============ CÔNG CỤ NỔI BẬT ============ */
.sohoc-tools-row {
    margin-top: 10px;
}

.sohoc-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sohoc-tool-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.sohoc-tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.sohoc-tool-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 14px;
    line-height: 1.4;
    flex: 1;
}

.sohoc-tool-btn {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #2563eb;
    color: #2563eb !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.sohoc-tool-btn:hover {
    background: #2563eb;
    color: #ffffff !important;
}

/* ============ TEST CARDS ============ */
.sohoc-test-card,
.sohoc-course-card,
.sohoc-article-card {
    display: block;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none !important;
    color: inherit !important;
    height: 100%;
}

.sohoc-test-card:hover,
.sohoc-course-card:hover,
.sohoc-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.sohoc-test-thumb,
.sohoc-course-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.sohoc-test-thumb img,
.sohoc-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sohoc-no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.sohoc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.sohoc-badge-hot        { background: #ef4444; }
.sohoc-badge-new        { background: #f59e0b; }
.sohoc-badge-bestseller { background: #dc2626; }

.sohoc-test-body,
.sohoc-course-body {
    padding: 16px;
}

.sohoc-test-body h4,
.sohoc-course-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sohoc-test-body p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sohoc-test-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.sohoc-test-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============ ARTICLE CARDS ============ */
.sohoc-article-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.sohoc-article-thumb {
    flex-shrink: 0;
    width: 110px;
    overflow: hidden;
    background: #f1f5f9;
}

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

.sohoc-article-body {
    padding: 14px 14px 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.sohoc-article-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sohoc-article-date {
    font-size: 12px;
    color: #94a3b8;
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 991px) {
    .sohoc-hero-title { font-size: 34px; }
    .sohoc-hero { padding: 50px 0 70px; }
    .sohoc-hero-stats { gap: 24px; }
    .sohoc-section { padding: 40px 0; }
}

/* Mobile */
@media (max-width: 767px) {
    .sohoc-hero { padding: 40px 0 50px; }
    .sohoc-hero-title { font-size: 28px; }
    .sohoc-hero-sub { font-size: 15px; margin-bottom: 24px; }

    .sohoc-hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .sohoc-btn { width: 100%; }

    .sohoc-hero-stats {
        gap: 18px;
        justify-content: space-between;
    }
    .sohoc-stat strong { font-size: 18px; }
    .sohoc-stat span { font-size: 11px; }
    .sohoc-stat svg { width: 22px; height: 22px; }

    .sohoc-main-cards { margin-top: -20px; }
    .sohoc-feature-card { padding: 22px; }
    .sohoc-feature-head h3 { font-size: 17px; }

    .sohoc-section-title,
    .sohoc-section-title-plain { font-size: 19px; }

    .sohoc-section { padding: 30px 0; }

    .sohoc-tool-card { padding: 16px 10px; }
    .sohoc-tool-icon { width: 48px; height: 48px; }
    .sohoc-tool-icon svg { width: 26px; height: 26px; }
    .sohoc-tool-title { font-size: 13px; }

    .sohoc-article-thumb { width: 90px; }
    .sohoc-article-body { padding: 12px; }
    .sohoc-article-body h4 { font-size: 13px; }
}

/* Mobile nhỏ */
@media (max-width: 479px) {
    .sohoc-hero-title { font-size: 24px; }
    .sohoc-hero-stats { gap: 12px; }
    .sohoc-stat { gap: 8px; }
}
/* ============================================
   Course Single Page - Pure CSS (Flatsome friendly)
   ============================================ */

* { box-sizing: border-box; }


.course-single .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.course-single img { max-width: 100%; display: block; }
.course-single h1, .course-single h2, .course-single h3 { margin: 0; }
.course-single ul { list-style: none; padding: 0; margin: 0; }
.course-single a { color: inherit; text-decoration: none; }
.course-single p { margin: 0 0 14px; color: #374151; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .bc-sep { color: #9ca3af; flex: none; }
.breadcrumb span { color: var(--text); }

/* ---------- HERO GRID ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.95fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

/* Thumb */
.hero-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #111827;
  box-shadow: var(--shadow-md);
}
.hero-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s ease, background .2s ease;
}
.play-btn:hover { transform: scale(1.07); background: #fff; }
.play-btn svg { margin-left: 4px; }

/* Info */
.hero-info {
  padding-top: 4px;
}
.course-title {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 14px;
}

.course-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.stars svg { width: 16px; height: 16px; }
.stars .rate-num {
  margin-left: 6px;
  color: var(--text);
  font-weight: 500;
}
.course-stats .divider { color: #d1d5db; }
.course-stats .students {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-list {
  display: grid;
  gap: 12px;
  font-size: 15px;
}
.meta-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 14px;
}
.meta-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.meta-value {
  color: var(--text);
  font-weight: 500;
}

/* Price card */
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 20px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 15px;
}
.price-badge {
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-new {
  color: var(--primary);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 18px;
}

.btn {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn + .btn { margin-top: 10px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: #eff4fe; }

.perks {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: #374151;
}
.perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Panels ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.panel-soft {
  background: var(--soft);
  border-color: transparent;
}
.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

/* Two column section */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.check-list, .who-list {
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: #374151;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check-list svg { flex: none; margin-top: 2px; }

.who-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.who-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: #e3edff;
  display: grid;
  place-items: center;
  flex: none;
}

/* ---------- Related ---------- */
.related { margin-top: 26px; }
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.see-all {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100px;
}
.see-all:hover { text-decoration: underline; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-body { padding: 14px 16px 18px; }
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  min-height: 42px;
  margin-bottom: 10px;
}
.card-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}
.stars-sm svg { width: 14px; height: 14px; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "thumb info"
      "price price";
  }
  .hero-thumb { grid-area: thumb; }
  .hero-info  { grid-area: info; }
  .price-card { grid-area: price; position: static; }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small tablet (≤860px) */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumb"
      "info"
      "price";
  }
  .course-title { font-size: 22px; }

  .two-col { grid-template-columns: 1fr; }

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

  .panel { padding: 22px 20px; }
}

/* Mobile (≤560px) */
@media (max-width: 560px) {
  .course-single { padding: 16px 0 40px; }
  .course-single .container { padding: 0 14px; }

  .course-title { font-size: 20px; }

  .meta-list li {
    grid-template-columns: 130px 1fr;
    gap: 10px;
    font-size: 14px;
  }
  .meta-label { gap: 8px; }

  .price-new { font-size: 26px; }
  .price-card { padding: 18px; }

  .panel { padding: 18px 16px; }
  .panel-title { font-size: 17px; }

  .section-title { font-size: 19px; }

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

  .breadcrumb { font-size: 13px; }
  .play-btn { width: 56px; height: 56px; }
  .play-btn svg { width: 22px; height: 22px; }
}

/* Extra small (≤380px) */
@media (max-width: 380px) {
  .meta-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .course-stats { gap: 6px; }
  .course-stats .divider { display: none; }
}
.course-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.course-pagination a,
.course-pagination span {
    padding: 8px 13px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #111827;
}

.course-pagination .current {
    background: #3b82f6;
    color: #fff;
}
/* ── Popup email + result share — tông màu match Mission popup ── */
    .khdt-overlay{
        position:fixed;inset:0;z-index:999999;display:none;
        background:rgba(15,23,42,.6);backdrop-filter:blur(4px);
        align-items:center;justify-content:center;padding:16px;
    }
    .khdt-overlay.is-open{display:flex;}
    .khdt-box{
        background:#fff;border-radius:16px;max-width:460px;width:100%;
        padding:28px 24px;box-shadow:0 20px 60px rgba(0,0,0,.25);
        animation:khdt-pop .25s ease-out;
    }
    @keyframes khdt-pop{
        from{opacity:0;transform:scale(.92) translateY(10px);}
        to{opacity:1;transform:scale(1) translateY(0);}
    }
    .khdt-title{
        margin:0 0 6px;font-size:20px;font-weight:700;color:#0f172a;
        text-align:center;
    }
    .khdt-sub{
        margin:0 0 18px;font-size:14px;color:#64748b;text-align:center;
        line-height:1.5;
    }
    .khdt-input{
        width:100%;padding:12px 14px;border:1.5px solid #cbd5e1;
        border-radius:10px;font-size:15px;outline:none;
        transition:border-color .15s, box-shadow .15s;
        box-sizing:border-box;
    }
    .khdt-input:focus{
        border-color:#2b6ef6;box-shadow:0 0 0 3px rgba(43,110,246,.15);
    }
    .khdt-err{
        color:#dc2626;font-size:13px;margin-top:8px;display:none;
    }
    .khdt-btn{
        width:100%;margin-top:14px;padding:12px;border:0;
        background:#2b6ef6;color:#fff;font-weight:600;font-size:15px;
        border-radius:10px;cursor:pointer;transition:background .15s;
    }
    .khdt-btn:hover:not(:disabled){background:#1d5ad8;}
    .khdt-btn:disabled{background:#94a3b8;cursor:not-allowed;}
    .khdt-btn-ghost{
        background:transparent;color:#64748b;margin-top:8px;font-weight:500;
    }
    .khdt-btn-ghost:hover:not(:disabled){background:#f1f5f9;color:#0f172a;}
    /* Result panel */
    .khdt-result-icon{
        text-align:center;font-size:42px;margin-bottom:8px;
    }
    .khdt-link-wrap{
        display:flex;gap:8px;margin-top:14px;
    }
    .khdt-link-input{
        flex:1;padding:11px 12px;border:1.5px solid #e2e8f0;
        background:#f8fafc;border-radius:10px;font-size:13px;
        color:#0f172a;font-family:monospace;
    }
    .khdt-copy-btn{
        padding:0 16px;background:#0f172a;color:#fff;border:0;
        border-radius:10px;font-weight:600;cursor:pointer;font-size:14px;
        white-space:nowrap;
    }
    .khdt-copy-btn.copied{background:#16a34a;}
    .khdt-warn{
        background:#fef3c7;border:1px solid #fde68a;color:#92400e;
        padding:10px 12px;border-radius:8px;font-size:13px;margin-top:12px;
        line-height:1.5;
    }
    .khdt-close{
        position:absolute;top:12px;right:16px;background:none;border:0;
        font-size:24px;color:#94a3b8;cursor:pointer;line-height:1;
    }
    .khdt-close:hover{color:#0f172a;}
    .khdt-box{position:relative;}