/* ══════════════════════════════════════════════════════════════
   XÂY NHÀ XỊN VIDEO ACADEMY PRO — CSS
   ══════════════════════════════════════════════════════════════ */

:root {
  --xnx-bg-dark: #07090e;
  --xnx-bg-card: #0d121f;
  --xnx-bg-surface: #131b2e;
  --xnx-border: rgba(255, 255, 255, 0.08);
  --xnx-border-active: rgba(249, 115, 22, 0.4);
  --xnx-primary: #f97316;
  --xnx-primary-hover: #ea580c;
  --xnx-primary-glow: rgba(249, 115, 22, 0.25);
  --xnx-text-main: #f8fafc;
  --xnx-text-muted: #94a3b8;
  --xnx-text-dim: #64748b;
  --xnx-success: #10b981;
}

/* ── Global Academy Wrapper ───────────────────────────────── */
.xnx-academy-body {
  background: var(--xnx-bg-dark);
  color: var(--xnx-text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  padding-top: 110px;
}

.xnx-player-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ── Top Bar ─────────────────────────────────────────────── */
.xnx-player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--xnx-border);
  gap: 16px;
  flex-wrap: wrap;
}

.xnx-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--xnx-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.xnx-back-btn:hover {
  color: var(--xnx-primary);
  transform: translateX(-3px);
}

.xnx-course-title-head {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 700px;
}

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

.xnx-btn-cta-gold {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 99px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px var(--xnx-primary-glow);
  transition: all 0.25s ease;
}
.xnx-btn-cta-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.xnx-btn-unlock-topbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}
.xnx-btn-unlock-topbar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.5);
}

/* ── Player Layout Grid ──────────────────────────────────── */
.xnx-theater-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .xnx-theater-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Main Video Area ─────────────────────────────────────── */
.xnx-video-viewport-wrap {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--xnx-border);
}

.xnx-video-aspect-16-9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.xnx-video-frame,
.xnx-video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Lock Overlay when Lesson is Locked */
.xnx-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 10;
  display: none;
}

.xnx-lock-overlay.is-active {
  display: flex;
}

.xnx-lock-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid var(--xnx-border-active);
  color: var(--xnx-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  animation: pulseLock 2s infinite;
}

@keyframes pulseLock {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.xnx-lock-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.xnx-lock-desc {
  font-size: 14px;
  color: var(--xnx-text-muted);
  max-width: 480px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.xnx-btn-unlock {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 30px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--xnx-primary-glow);
  transition: all 0.25s ease;
}
.xnx-btn-unlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5);
}

/* ── Lesson Details Bar ──────────────────────────────────── */
.xnx-lesson-meta-bar {
  background: var(--xnx-bg-card);
  border-radius: 12px;
  border: 1px solid var(--xnx-border);
  padding: 20px 24px;
  margin-top: 16px;
}

.xnx-lesson-title-active {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.4;
}

.xnx-lesson-subhead {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--xnx-text-dim);
  flex-wrap: wrap;
}

.xnx-badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.xnx-badge-series-count {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
}

/* ── Lesson Quick Navigation Bar ─────────────────────────── */
.xnx-lesson-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #090e1a;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.xnx-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #151d30;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.xnx-nav-btn:hover:not(:disabled) {
  background: #1f2a44;
  border-color: rgba(249, 115, 22, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.xnx-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.xnx-nav-btn-next {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.xnx-nav-btn-next:hover:not(:disabled) {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.55);
  transform: translateY(-1px);
}

.xnx-nav-btn-next .xnx-next-icon {
  transition: transform 0.2s ease;
}

.xnx-nav-btn-next:hover .xnx-next-icon {
  transform: translateX(3px);
}

.xnx-nav-info-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.xnx-nav-indicator {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.xnx-view-all-lessons-link {
  font-size: 11px;
  color: var(--xnx-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.xnx-view-all-lessons-link:hover {
  text-decoration: underline;
  color: #fb923c;
}

@media (max-width: 640px) {
  .xnx-lesson-nav-bar {
    padding: 10px 10px;
    gap: 8px;
  }
  .xnx-nav-btn {
    padding: 9px 10px;
    font-size: 12px;
  }
  .xnx-nav-btn-next {
    padding: 9px 14px;
    font-size: 13px;
    flex-grow: 1;
    justify-content: center;
  }
  .xnx-nav-info-center {
    min-width: 75px;
  }
  .xnx-nav-indicator {
    font-size: 12px;
  }
  .xnx-view-all-lessons-link {
    font-size: 10.5px;
  }
}

@keyframes xnxHighlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); border-color: var(--xnx-primary); }
  50% { box-shadow: 0 0 25px 6px rgba(249, 115, 22, 0.5); border-color: var(--xnx-primary); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.xnx-highlight-pulse {
  animation: xnxHighlightPulse 1.4s ease-out;
}

/* ── Contractor Matching Banner Under Video ───────────────── */
.xnx-contractor-match-banner {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12) 0%, rgba(19, 27, 46, 0.8) 100%);
  border: 1px solid var(--xnx-border-active);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.xnx-match-banner-info h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--xnx-primary);
}

.xnx-match-banner-info p {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ── Tabs under Player ───────────────────────────────────── */
.xnx-player-tabs {
  margin-top: 24px;
}

.xnx-tab-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--xnx-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.xnx-tab-btn {
  background: transparent;
  border: none;
  color: var(--xnx-text-dim);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.xnx-tab-btn.is-active,
.xnx-tab-btn:hover {
  color: #fff;
  background: var(--xnx-bg-surface);
}
.xnx-tab-btn.is-active {
  color: var(--xnx-primary);
}

.xnx-tab-pane {
  display: none;
}
.xnx-tab-pane.is-active {
  display: block;
}

/* ── Instructor Box in Tab ───────────────────────────────── */
.xnx-instructor-profile {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--xnx-bg-card);
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid var(--xnx-border);
}

.xnx-inst-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--xnx-primary);
}

.xnx-inst-details h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.xnx-inst-details p {
  margin: 0;
  font-size: 13px;
  color: var(--xnx-text-dim);
}

/* ── Resources & Attachments ─────────────────────────────── */
.xnx-resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--xnx-bg-card);
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--xnx-border);
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.xnx-resource-item:hover {
  border-color: var(--xnx-border-active);
}

.xnx-res-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xnx-res-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--xnx-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.xnx-btn-download {
  background: var(--xnx-bg-surface);
  color: #fff;
  border: 1px solid var(--xnx-border);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.xnx-btn-download:hover {
  background: var(--xnx-primary);
  border-color: var(--xnx-primary);
}

/* ── Curriculum Sidebar ──────────────────────────────────── */
.xnx-curriculum-panel {
  background: var(--xnx-bg-card);
  border-radius: 12px;
  border: 1px solid var(--xnx-border);
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.xnx-curr-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--xnx-border);
  background: var(--xnx-bg-surface);
}

.xnx-curr-header h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.xnx-curr-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.xnx-curr-progress-fill {
  height: 100%;
  background: var(--xnx-primary);
  width: 25%;
  transition: width 0.3s;
}

.xnx-curriculum-scroll {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.xnx-chapter-group {
  border-bottom: 1px solid var(--xnx-border);
}

.xnx-chapter-heading {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.xnx-chapter-heading:hover {
  background: rgba(255, 255, 255, 0.04);
}

.xnx-lesson-item {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.xnx-lesson-item:hover {
  background: rgba(249, 115, 22, 0.05);
}

.xnx-lesson-item.is-current {
  background: rgba(249, 115, 22, 0.12);
  border-left: 3px solid var(--xnx-primary);
}

.xnx-les-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--xnx-text-dim);
}

.xnx-lesson-item.is-current .xnx-les-icon {
  background: var(--xnx-primary);
  color: #fff;
}

.xnx-les-content {
  flex: 1;
  min-width: 0;
}

.xnx-les-name {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  margin: 0 0 3px;
  line-height: 1.4;
  white-space: normal;
}
.xnx-lesson-item.is-current .xnx-les-name {
  color: #fff;
  font-weight: 700;
}

.xnx-les-subinfo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--xnx-text-dim);
}

.xnx-tag-free-sm {
  color: #10b981;
  font-weight: 700;
}

.xnx-tag-locked-sm {
  color: #f59e0b;
}

/* ── Modal Unlock Dialog ─────────────────────────────────── */
.xnx-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.xnx-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.xnx-modal-card {
  background: #0f1628;
  border: 1px solid var(--xnx-border-active);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 2-Step Wizard Indicator ──────────────────────────────── */
.xnx-wizard-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px 8px;
  gap: 12px;
}

.xnx-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--xnx-text-dim);
  transition: color 0.2s;
}

.xnx-step-indicator.is-active {
  color: var(--xnx-primary);
}

.xnx-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.xnx-step-indicator.is-active .xnx-step-num {
  background: var(--xnx-primary);
}

.xnx-step-line {
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.xnx-wizard-step {
  display: none;
}
.xnx-wizard-step.is-active {
  display: block;
  animation: fadeInStep 0.25s ease-out;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.xnx-wizard-body {
  padding: 10px 28px 28px;
}

/* ── 1-Tap Pills for House Type, Floors & Budget ─────────── */
.xnx-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.xnx-pill-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 100px;
  background: #080c16;
  border: 1px solid var(--xnx-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.xnx-pill-btn:hover {
  border-color: rgba(249, 115, 22, 0.4);
  color: #fff;
}

.xnx-pill-btn.is-active {
  background: rgba(249, 115, 22, 0.15);
  border-color: var(--xnx-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}

.xnx-pill-group-sm {
  gap: 6px;
}

.xnx-pill-group-sm .xnx-pill-btn {
  flex: 1;
  min-width: 44px;
  padding: 11px 8px;
}

.xnx-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.xnx-input-addon-wrap {
  position: relative;
}

.xnx-input-addon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--xnx-text-dim);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

/* ── Step 2 Summary Badge & Security Tag ─────────────────── */
.xnx-specs-summary-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 99px;
  display: inline-block;
  margin: 12px auto 6px;
}

.xnx-btn-back-step {
  background: transparent;
  border: none;
  color: var(--xnx-text-dim);
  font-size: 12px;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
  text-align: center;
  transition: color 0.2s;
}
.xnx-btn-back-step:hover {
  color: var(--xnx-text-muted);
  text-decoration: underline;
}

.xnx-security-tag {
  font-size: 11px;
  color: var(--xnx-text-dim);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.xnx-modal-backdrop.is-open .xnx-modal-card {
  transform: translateY(0) scale(1);
}

.xnx-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.xnx-modal-header {
  padding: 28px 28px 10px;
  text-align: center;
}

.xnx-modal-header .xnx-badge {
  background: rgba(249, 115, 22, 0.15);
  color: var(--xnx-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 12px;
}

.xnx-modal-header h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.xnx-modal-header p {
  margin: 0;
  font-size: 13px;
  color: var(--xnx-text-muted);
  line-height: 1.5;
}

.xnx-modal-form {
  padding: 16px 28px 28px;
}

.xnx-form-field {
  margin-bottom: 14px;
}

.xnx-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.xnx-input-text {
  width: 100%;
  background: #080c16;
  border: 1px solid var(--xnx-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.xnx-input-text:focus {
  border-color: var(--xnx-primary);
}

.xnx-btn-submit-unlock {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 20px var(--xnx-primary-glow);
  transition: all 0.2s;
}
.xnx-btn-submit-unlock:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5);
}

.xnx-modal-msg {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  display: none;
}
.xnx-modal-msg.is-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  display: block;
}
.xnx-modal-msg.is-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: block;
}

/* ── Archive Course Catalog (/khoa-hoc/) ────────────────── */
.xnx-catalog-hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
}

.xnx-catalog-eyebrow {
  color: var(--xnx-primary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-block;
}

.xnx-catalog-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}

.xnx-catalog-desc {
  font-size: 16px;
  color: var(--xnx-text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.xnx-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.xnx-course-card {
  background: var(--xnx-bg-card);
  border: 1px solid var(--xnx-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.xnx-course-card:hover {
  transform: translateY(-6px);
  border-color: var(--xnx-border-active);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.xnx-card-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
  overflow: hidden;
}

.xnx-card-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.xnx-course-card:hover .xnx-card-thumb {
  transform: scale(1.05);
}

.xnx-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(6px);
  color: var(--xnx-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--xnx-border-active);
}

.xnx-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.xnx-card-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.xnx-card-desc {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--xnx-text-muted);
  line-height: 1.6;
  flex: 1;
}

.xnx-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--xnx-border);
  padding-top: 14px;
  margin-top: auto;
  font-size: 12px;
  color: var(--xnx-text-dim);
}

.xnx-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #cbd5e1;
}
.xnx-card-author-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Quote & Appraisal Modal Specifics ───────────────────── */
.xnx-quote-modal-card {
  max-width: 540px;
}

.xnx-select-custom {
  background: #080c16;
  color: #fff;
  border: 1px solid var(--xnx-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  width: 100%;
  height: 44px;
}

.xnx-select-custom:focus {
  border-color: var(--xnx-primary);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}

.xnx-select-custom option {
  background: #0d121f;
  color: #fff;
  padding: 8px;
}
