:root {
  --primary: #7c4dff;
  --primary-dark: #6236e8;
  --primary-light: #a78bfa;
  --accent: #f4c542;
  --accent-dark: #eab308;
  --bg: #ffffff;
  --bg-soft: #f8f7fc;
  --bg-section: #f3f0ff;
  --text-dark: #17152b;
  --text-medium: #5e5b75;
  --text-light: #8d89a6;
  --border: #e8e5f5;
  --shadow-sm: 0 4px 12px rgba(124, 77, 255, 0.08);
  --shadow-md: 0 8px 24px rgba(124, 77, 255, 0.12);
  --shadow-lg: 0 15px 40px rgba(124, 77, 255, 0.15);
  --gradient-primary: linear-gradient(135deg, #7c4dff 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-hero: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #9333ea 100%);
}

.live-detail-page {
  background:
    linear-gradient(180deg, var(--bg-section) 0, rgba(243, 240, 255, 0) 480px),
    var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  padding: 36px 0 72px;
}

.live-detail-wrap {
  width: min(100% - 32px, 1420px);
  margin: 0 auto;
}

.live-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.live-intro-card,
.pricing-box,
.description-section,
.speaker-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.live-intro-card {
  padding: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge-live-status,
.badge-live-date {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 7px;
  letter-spacing: 0.04em;
  min-height: 32px;
  padding: 7px 11px;
  text-transform: uppercase;
}

.badge-live-status {
  background: var(--gradient-primary);
  color: #ffffff;
}

.badge-live-date {
  background: #fff8dc;
  border: 1px solid rgba(234, 179, 8, 0.32);
  color: #8a6500;
}

.hero-instructor {
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px;
}

.hero-instructor-photo-wrap,
.speaker-img-wrap {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(124, 77, 255, 0.18);
  flex: 0 0 auto;
  padding: 3px;
}

.hero-instructor-photo-wrap {
  height: 88px;
  width: 88px;
}

.hero-instructor-photo,
.speaker-img {
  background: var(--bg-section);
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.instructor-initial {
  align-items: center;
  color: var(--primary-dark);
  display: flex;
  font-size: 2rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.hero-instructor-copy {
  min-width: 0;
}

.hero-instructor-copy span,
.title-label,
.pricing-head span,
.section-title span,
.speaker-head span {
  color: var(--primary);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero-instructor-copy h2 {
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 4px;
}

.hero-instructor-copy p {
  color: var(--text-medium);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.hero-instructor-copy strong {
  align-items: center;
  color: var(--text-light);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 6px;
  line-height: 1.35;
  margin-top: 7px;
}

.hero-title-block {
  margin-bottom: 22px;
}

.hero-title-block h1 {
  color: var(--text-dark);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
}

.session-details-card {
  background: linear-gradient(180deg, var(--bg-section), rgba(243, 240, 255, 0.4));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.session-header,
.section-title,
.speaker-head {
  align-items: center;
  display: flex;
  gap: 12px;
}

.session-header {
  margin-bottom: 16px;
}

.session-header i,
.section-title > i,
.speaker-head > i {
  align-items: center;
  background: var(--gradient-primary);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  flex: 0 0 auto;
  font-size: 1.15rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.session-header h2,
.section-title h2,
.speaker-head h2 {
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

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

.detail-item {
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 11px;
  min-width: 0;
  padding: 14px;
}

.detail-item i {
  align-items: center;
  background: #fff8dc;
  border-radius: 8px;
  color: #8a6500;
  display: flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.detail-item p {
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.detail-item strong {
  color: var(--text-dark);
  display: block;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pricing-side {
  position: relative;
}

.pricing-box {
  padding: 22px;
  position: sticky;
  top: 92px;
}

.pricing-head {
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.pricing-head h2 {
  color: var(--text-dark);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.join-live-btn {
  align-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: 0;
  border-radius: 8px;
  color: var(--text-dark);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 48px;
  padding: 12px 14px;
  text-decoration: none;
  width: 100%;
}

.join-live-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.pricing-label {
  color: var(--text-medium);
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.select-wrap {
  position: relative;
}

.plan-select {
  appearance: none;
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 800;
  min-height: 50px;
  padding: 0 44px 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.plan-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.12);
  outline: none;
}

.select-wrap i {
  color: var(--primary);
  pointer-events: none;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.pricing-note {
  align-items: flex-start;
  background: #fff8dc;
  border: 1px solid rgba(234, 179, 8, 0.32);
  border-radius: 8px;
  color: #8a6500;
  display: flex;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 8px;
  line-height: 1.45;
  margin: 12px 0 0;
  padding: 10px;
}

.plan-summary {
  align-items: center;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 14px 0;
  padding: 14px;
}

.plan-summary span {
  color: var(--text-dark);
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.plan-summary p {
  color: var(--text-medium);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.plan-summary strong {
  color: var(--primary-dark);
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: 900;
}

.total-amount {
  align-items: center;
  background: var(--gradient-hero);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  padding: 16px;
}

.total-amount p {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
}

.total-amount strong {
  font-size: 1.7rem;
  font-weight: 900;
}

.btn-cart,
.btn-buy {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.96rem;
  font-weight: 900;
  gap: 9px;
  justify-content: center;
  min-height: 50px;
  padding: 12px 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.btn-cart {
  background: var(--gradient-primary);
  box-shadow: 0 10px 22px rgba(124, 77, 255, 0.22);
  color: #ffffff;
  margin-bottom: 10px;
}

.btn-cart:hover {
  box-shadow: 0 14px 28px rgba(124, 77, 255, 0.3);
  transform: translateY(-2px);
}

.btn-buy {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 10px 20px rgba(234, 179, 8, 0.2);
  color: var(--text-dark);
}

.btn-buy:hover {
  box-shadow: 0 14px 26px rgba(234, 179, 8, 0.28);
  transform: translateY(-2px);
}

.pricing-features {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
}

.pricing-features p {
  align-items: flex-start;
  color: var(--text-medium);
  display: flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 8px;
  line-height: 1.45;
  margin: 0;
}

.pricing-features i {
  color: var(--primary);
  flex: 0 0 auto;
}

.description-section,
.speaker-section {
  margin-top: 28px;
}

.description-section {
  padding: 24px;
}

.section-title {
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.description-content{
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    line-height: 1.8;
}

.description-content h1{
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 18px;
}

.description-content h2{
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-top: 32px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.description-content h3{
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.description-content p{
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.9;
    margin-bottom: 16px;
}

.description-content ul,
.description-content ol{
    margin-bottom: 18px;
    padding-left: 28px;
}

.description-content li{
    color: var(--text-medium);
    margin-bottom: 10px;
    line-height: 1.8;
}

.description-content li::marker{
    color: var(--primary);
    font-weight: 900;
}

.description-content strong{
    color: var(--text-dark);
    font-weight: 800;
}

.description-content blockquote{
    border-left: 4px solid var(--primary);
    background: white;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.description-content table{
    width:100%;
    border-collapse: collapse;
    margin:20px 0;
}

.description-content table th,
.description-content table td{
    border:1px solid var(--border);
    padding:12px;
}

.description-content table th{
    background:var(--bg-section);
    font-weight:800;
}

.description-content img{
    max-width:100%;
    height:auto;
    border-radius:8px;
    margin:20px 0;
}



.speaker-card {
  padding: 24px;
}

.speaker-head {
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  padding-bottom: 16px;
}

.speaker-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.speaker-img-wrap {
  height: 180px;
  width: 180px;
}

.speaker-info h3 {
  color: var(--text-dark);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 8px;
}

.speaker-role {
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 8px;
}

.speaker-org {
  align-items: center;
  color: var(--text-light);
  display: flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 7px;
  margin: 0 0 16px;
}

.speaker-bio {
  color: var(--text-medium);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.75;
}

.speaker-bio p {
  margin: 0 0 12px;
}

.speaker-bio p:last-child {
  margin-bottom: 0;
}

.webinar-ended-toast {
  background: var(--text-dark);
  border-radius: 8px;
  bottom: 28px;
  box-shadow: 0 18px 36px rgba(23, 21, 43, 0.22);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  opacity: 0;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  right: 28px;
  transform: translateY(40px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99999;
}

.webinar-ended-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .live-hero-grid {
    grid-template-columns: 1fr;
  }

  .pricing-box {
    position: static;
  }
}

@media (max-width: 760px) {
  .live-detail-page {
    padding: 24px 0 48px;
  }

  .live-detail-wrap {
    width: min(100% - 24px, 1220px);
  }

  .live-intro-card,
  .pricing-box,
  .description-section,
  .speaker-card {
    padding: 16px;
  }

  .hero-instructor {
    align-items: flex-start;
  }

  .hero-instructor-photo-wrap {
    height: 68px;
    width: 68px;
  }

  .hero-title-block h1 {
    font-size: 1.75rem;
  }

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

  .speaker-body {
    grid-template-columns: 1fr;
  }

  .speaker-img-wrap {
    height: 140px;
    width: 140px;
  }

  .webinar-ended-toast {
    left: 50%;
    right: auto;
    text-align: center;
    transform: translate(-50%, 40px);
    width: min(90%, 420px);
  }

  .webinar-ended-toast.show {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 520px) {
  .hero-instructor {
    flex-direction: column;
  }

  .plan-summary,
  .total-amount {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .session-header,
  .section-title,
  .speaker-head {
    align-items: flex-start;
  }
}
