﻿/* ============================================================
   course.css  —  Course detail page, plan cards, auth drawer,
                  checkout.  Theme: primary #007FFF · secondary #FF9800
   ============================================================ */

/* ================================================================
   1. COURSE HERO
   ================================================================ */

.course-hero {
  position: relative;
  background: #07122A;
  color: #fff;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
  isolation: isolate;
  margin-top: 64px;
}

.ch-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: .12;
  z-index: 0;
}

.ch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(4,14,40,.96) 0%,
    rgba(4,18,52,.88) 55%,
    rgba(5,22,60,.75) 100%
  );
  z-index: 1;
}

.ch-glow {
  position: absolute;
  top: -140px;
  right: -100px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: var(--glow, rgba(0,127,255,.25));
  filter: blur(100px);
  z-index: 1;
  pointer-events: none;
}

.ch-inner { position: relative; z-index: 2; }

.ch-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: center;
}

.ch-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}
.ch-breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.ch-breadcrumb a:hover { color: #fff; }
.ch-breadcrumb .material-symbols-outlined { font-size: .85rem; }

.ch-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.ch-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ch-tag--class    { background: rgba(0,127,255,.18); color: #7ec8ff; border: 1px solid rgba(0,127,255,.3); }
.ch-tag--board    { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.12); }
.ch-tag--featured { background: rgba(255,152,0,.18); color: #ffbf5e; border: 1px solid rgba(255,152,0,.3); }
.ch-tag--featured .material-symbols-outlined { font-size: .75rem; }

.ch-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 .65rem;
}
.ch-tagline {
  font-size: .97rem;
  color: rgba(255,255,255,.68);
  line-height: 1.6;
  margin: 0 0 1.1rem;
}

.ch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .85rem;
}
.ch-stars { font-weight: 700; font-size: .95rem; color: #fbbf24; }
.ch-rcnt  { color: rgba(255,255,255,.4); }
.ch-stat  { display: flex; align-items: center; gap: .25rem; }
.ch-stat .material-symbols-outlined { font-size: .95rem; }

.ch-teacher {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin: 0 0 1.25rem;
}
.ch-teacher .material-symbols-outlined { font-size: .95rem; }

/* Key highlights list */
.ch-keypoints {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ch-keypoints li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
}
.ch-keypoints li .material-symbols-outlined {
  font-size: 1rem;
  color: #86efac;
  flex-shrink: 0;
}

.ch-actions { margin-top: .25rem; }
.ch-price-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .9rem;
}
.ch-price     { font-size: 2rem; font-weight: 800; color: #fff; font-family: var(--font-heading, 'Poppins', sans-serif); }
.ch-price-old { font-size: .95rem; color: rgba(255,255,255,.35); text-decoration: line-through; }
.ch-discount  {
  background: rgba(34,197,94,.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 999px;
  padding: .12rem .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.ch-cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.ch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .72rem 1.6rem;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  border: none;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}
.ch-btn--primary { background: #007FFF; color: #fff; }
.ch-btn--primary:hover { opacity: .88; transform: translateY(-1px); }
.ch-btn--ghost  { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); text-decoration: none; display: inline-flex; align-items: center; }
.ch-btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

.ch-visual { position: relative; }

.ch-thumb {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}

.ch-thumb-placeholder {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 2.5rem 2rem;
  aspect-ratio: 4 / 3;
}
.ch-thumb-icon  { font-size: 3.5rem; line-height: 1; }
.ch-thumb-label { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.7); text-align: center; }
.ch-thumb-stat  { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: rgba(255,255,255,.4); }
.ch-thumb-stat .material-symbols-outlined { font-size: .9rem; }

.ch-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: .55rem .9rem;
  color: #fff;
  font-size: .78rem;
}
.ch-float-card .material-symbols-outlined { font-size: 1.1rem; color: #fbbf24; }
.ch-float-card strong { font-size: .95rem; font-weight: 800; display: block; }
.ch-float-card small  { color: rgba(255,255,255,.45); font-size: .65rem; display: block; line-height: 1.2; }
.ch-float--tl { top: 12px; left: -18px; }
.ch-float--br { bottom: 14px; right: -18px; }

/* ================================================================
   2. COURSE PAGE BODY  /  GRID LAYOUT
   ================================================================ */

.cd-page-body {
  background: #F0F4FB;
  padding: 2rem 0 5rem;
}

.cd-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.75rem;
  align-items: start;
}

.cd-main { min-width: 0; }

.cd-sidebar {
  position: sticky;
  top: 84px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(0,0,0,.08);
  padding: 1.25rem;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d9ed transparent;
}

.cd-sidebar-thumb {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.cd-sidebar-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #000;
}
.cd-sidebar-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ================================================================
   3. PLAN SWITCHER (tab-based sidebar)
   ================================================================ */

/* Tabs row */
.plan-switcher { margin-top: .25rem; }

.plan-tabs {
  display: flex;
  gap: 0;
  background: #F1F5F9;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 1.1rem;
}
.pt-tab {
  flex: 1;
  padding: .4rem .3rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: .72rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.pt-tab:hover  { color: #0B1628; }
.pt-tab.active {
  background: #fff;
  color: #007FFF;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Panels */
.plan-panel { display: none; animation: ppFadeIn .18s ease; }
.plan-panel.active { display: block; }
@keyframes ppFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Badge */
.pp-badge-row { margin-bottom: .6rem; }
.pp-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .22rem .7rem;
  border-radius: 999px;
}
.pp-badge--popular { background: #FFF3DC; color: #B45309; }
.pp-badge--premium { background: #F3E8FF; color: #7C3AED; }

/* Price block */
.pp-price-block {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}
.pp-price {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: #0B1628;
  line-height: 1;
}
.pp-price--primary { color: #007FFF; }
.pp-price--premium { background: linear-gradient(135deg, #7C3AED, #A855F7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pp-price-old { font-size: .82rem; color: #94A3B8; text-decoration: line-through; }
.pp-duration {
  font-size: .7rem;
  color: #64748B;
  background: #F1F5F9;
  padding: .15rem .5rem;
  border-radius: 999px;
  margin-left: auto;
  align-self: center;
}

/* Highlights list */
.pp-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.pp-highlights li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: #334155;
  line-height: 1.35;
}
.pph-yes {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  font-size: .7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pph-no {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FEE2E2;
  color: #DC2626;
  font-size: .7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* CTA buttons */
.pp-cta {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 10px;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: .88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  letter-spacing: .02em;
}
.pp-cta:hover  { opacity: .88; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.pp-cta:focus  { outline: 3px solid rgba(0,127,255,.4); outline-offset: 2px; }
.pp-cta--outline {
  background: transparent;
  border: 2px solid #007FFF;
  color: #007FFF;
}
.pp-cta--outline:hover { background: #007FFF; color: #fff; }
.pp-cta--primary { background: #007FFF; color: #fff; }
.pp-cta--premium { background: linear-gradient(135deg, #7C3AED, #A855F7); color: #fff; }

/* Guarantee footer */
.pp-guarantee {
  text-align: center;
  font-size: .74rem;
  color: #94A3B8;
  margin-top: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
}

/* ================================================================
   4. CONTENT SECTIONS
   ================================================================ */

.cd-section {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem 1.6rem;
  margin-bottom: 1.1rem;
  border: 1px solid #E2E8F4;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.cd-section--alt { background: #F5F8FF; border-color: #D6E2F8; }
.cd-section--cta {
  background: linear-gradient(135deg, #EEF6FF 0%, #E4F0FF 100%);
  border-color: rgba(0,127,255,.2);
}

.cd-section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0B1628;
  margin: 0 0 1.15rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid #EEF3FC;
}
.cd-section-title .material-symbols-outlined { font-size: 1.25rem; color: #007FFF; flex-shrink: 0; }

.cd-overview-lead { font-size: .97rem; color: #475569; line-height: 1.75; margin: 0 0 .75rem; }

.cd-rich-content { font-size: .95rem; color: #475569; line-height: 1.8; }
.cd-rich-content p        { margin: 0 0 .75rem; }
.cd-rich-content ul,
.cd-rich-content ol       { padding-left: 1.4rem; margin: 0 0 .75rem; }
.cd-rich-content li       { margin-bottom: .4rem; }
.cd-rich-content strong   { color: #0B1628; }
.cd-rich-content h2,
.cd-rich-content h3       { font-size: 1rem; font-weight: 700; color: #0B1628; margin: 1rem 0 .4rem; }

/* ================================================================
   5. FEATURES GRID
   ================================================================ */

.cd-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .55rem .9rem;
}
.cd-feature-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .88rem;
  color: #1E293B;
  line-height: 1.5;
  padding: .45rem .55rem;
  border-radius: 8px;
  transition: background .15s;
}
.cd-feature-item:hover { background: #F5F8FF; }
.cd-fi-icon { font-size: 1.1rem; color: #007FFF; flex-shrink: 0; margin-top: .1rem; }

/* ================================================================
   6. SYLLABUS ACCORDION
   ================================================================ */

.cd-syllabus-meta { font-size: .82rem; color: #64748B; margin: -.55rem 0 .9rem; }

.cd-accordion { border: 1px solid #E2E8F4; border-radius: 12px; overflow: hidden; }
.cd-acc-item  { border-bottom: 1px solid #EEF2FA; }
.cd-acc-item:last-child { border-bottom: none; }

.cd-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: #1E293B;
  transition: background .15s, color .15s;
}
.cd-acc-head:hover              { background: #F8FAFD; }
.cd-acc-item.open .cd-acc-head  { background: #EEF6FF; color: #007FFF; }

.cd-acc-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E8EEF8;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.cd-acc-item.open .cd-acc-num   { background: #007FFF; color: #fff; }
.cd-acc-title                   { flex: 1; min-width: 0; }
.cd-acc-icon {
  font-size: 1.1rem;
  color: #94A3B8;
  transition: transform .25s, color .2s;
  flex-shrink: 0;
}
.cd-acc-item.open .cd-acc-icon  { transform: rotate(180deg); color: #007FFF; }

.cd-acc-body {
  display: none;
  padding: .1rem 1.1rem .9rem 3.1rem;
  border-top: 1px solid #EEF2FA;
}
.cd-acc-item.open .cd-acc-body  { display: block; }
.cd-acc-body p { font-size: .85rem; color: #64748B; line-height: 1.65; margin: .5rem 0 0; }

.cd-faq-acc .cd-acc-num  { display: none; }
.cd-faq-acc .cd-acc-body { padding-left: 1.1rem; }

/* ================================================================
   7. TEACHER CARDS
   ================================================================ */

.cd-teacher-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.1rem;
  background: #F8FAFD;
  border-radius: 12px;
  border: 1px solid #E2E8F4;
  margin-bottom: .75rem;
}
.cd-teacher-card:last-child { margin-bottom: 0; }

.cd-teacher-ava {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #007FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cd-teacher-ava img { width: 100%; height: 100%; object-fit: cover; }
.cd-teacher-ava .material-symbols-outlined { font-size: 1.85rem; }

.cd-teacher-info h3      { font-family: var(--font-heading, 'Poppins', sans-serif); font-size: .97rem; font-weight: 700; margin: 0 0 .3rem; color: #0B1628; }
.cd-teacher-subj-badge   { display: inline-block; background: rgba(0,127,255,.1); color: #007FFF; border-radius: 999px; padding: .1rem .65rem; font-size: .7rem; font-weight: 700; margin-bottom: .35rem; }
.cd-teacher-qual         { font-size: .82rem; color: #64748B; margin: 0 0 .25rem; }
.cd-teacher-rating       { font-size: .82rem; color: #64748B; display: flex; align-items: center; gap: .2rem; margin: 0 0 .45rem; }
.cd-teacher-bio          { font-size: .86rem; color: #64748B; line-height: 1.65; margin: 0; }

/* ================================================================
   8. STUDENT REVIEWS
   ================================================================ */

.cd-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
}
.cd-review-card {
  background: #fff;
  border: 1px solid #E2E8F4;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.cd-rev-stars  { color: #F59E0B; font-size: .95rem; letter-spacing: .05em; }
.cd-rev-text   { font-size: .87rem; color: #334155; line-height: 1.65; font-style: italic; flex: 1; margin: 0; }
.cd-rev-author { display: flex; align-items: center; gap: .6rem; padding-top: .5rem; border-top: 1px solid #EEF2FA; }
.cd-rev-ava    { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #007FFF; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.cd-rev-name   { font-size: .83rem; font-weight: 700; color: #0B1628; margin: 0; }
.cd-rev-class  { font-size: .73rem; color: #94A3B8; margin: 0; }

/* ================================================================
   9. LEAD FORM
   ================================================================ */

.cd-lead-sub   { font-size: .9rem; color: #64748B; margin: -.45rem 0 1.1rem; line-height: 1.5; }
.cd-lead-row   { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.cd-lead-input {
  flex: 1;
  min-width: 150px;
  padding: .7rem 1rem;
  border: 2px solid #D1DAF0;
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  color: #0B1628;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.cd-lead-input:focus { border-color: #007FFF; box-shadow: 0 0 0 3px rgba(0,127,255,.1); }
.cd-lead-btn {
  padding: .7rem 1.5rem;
  background: #007FFF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
}
.cd-lead-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ================================================================
   10. AUTH DRAWER
   ================================================================ */

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,18,42,.5);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.auth-overlay.open { opacity: 1; visibility: visible; }

.auth-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  z-index: 1201;
  box-shadow: -8px 0 48px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  display: flex;
  flex-direction: column;
}
.auth-drawer.open { transform: translateX(0); }

.auth-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #EEF2FA;
  flex-shrink: 0;
}
.auth-drawer-logo { font-family: var(--font-heading, 'Poppins', sans-serif); font-weight: 800; font-size: 1.05rem; color: #0B1628; }
.auth-drawer-logo span { color: #007FFF; }
.auth-drawer-close { width: 34px; height: 34px; border: none; background: rgba(0,0,0,.06); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: background .2s; }
.auth-drawer-close:hover { background: rgba(0,0,0,.12); }

.auth-drawer-body { flex: 1; overflow-y: auto; padding: 2rem 1.5rem; }
.auth-step        { display: none; }
.auth-step.active { display: block; }

.auth-step-title { font-family: var(--font-heading, 'Poppins', sans-serif); font-size: 1.3rem; font-weight: 800; color: #0B1628; margin-bottom: .35rem; }
.auth-step-sub   { font-size: .9rem; color: #64748B; margin-bottom: 1.75rem; line-height: 1.5; }
.auth-step-sub strong { color: #007FFF; }

.auth-plan-preview {
  background: linear-gradient(135deg, #EEF6FF 0%, #FFF6E0 100%);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.auth-plan-preview .app-icon { font-size: 1.5rem; flex-shrink: 0; }
.auth-plan-preview .pp-text  { font-size: .82rem; color: #64748B; }
.auth-plan-preview .pp-name  { font-weight: 700; font-size: .92rem; color: #0B1628; }

.auth-field         { margin-bottom: 1.1rem; }
.auth-field label   { display: block; font-size: .85rem; font-weight: 600; color: #0B1628; margin-bottom: .4rem; }
.auth-field input {
  width: 100%;
  padding: .8rem 1rem;
  border: 2px solid rgba(0,0,0,.1);
  border-radius: 12px;
  font-size: .95rem;
  color: #0B1628;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  box-sizing: border-box;
  outline: none;
}
.auth-field input:focus       { border-color: #007FFF; box-shadow: 0 0 0 3px rgba(0,127,255,.12); }
.auth-field input.error-field { border-color: #EF4444; }
.auth-error      { color: #DC2626; font-size: .82rem; margin-top: .4rem; display: none; }
.auth-error.show { display: block; }

.auth-btn {
  width: 100%;
  padding: .9rem 1rem;
  background: #007FFF;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  margin-top: .25rem;
  letter-spacing: .02em;
}
.auth-btn:hover    { opacity: .88; transform: translateY(-1px); }
.auth-btn:active   { transform: translateY(0); }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; font-size: .82rem; color: #64748B; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,.08); }

.auth-back { background: none; border: none; color: #007FFF; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 0; margin-top: .75rem; display: inline-flex; align-items: center; gap: .3rem; }
.auth-back:hover { text-decoration: underline; }

.auth-user-found-chip { display: inline-flex; align-items: center; gap: .5rem; background: #EEF6FF; color: #007FFF; border-radius: 100px; padding: .35rem .85rem; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }

.auth-spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; margin-right: .4rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   11. CHECKOUT PAGE
   ================================================================ */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0;
}

.checkout-panel { background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.checkout-panel h2 { font-family: var(--font-heading, 'Poppins', sans-serif); font-size: 1.25rem; font-weight: 800; margin-bottom: 1.5rem; color: #0B1628; padding-bottom: .75rem; border-bottom: 2px solid #EEF2FA; }

.checkout-order-card  { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.07); position: sticky; top: 5.5rem; overflow: hidden; }

.checkout-order-head { padding: 1.5rem; background: linear-gradient(135deg, #007FFF 0%, #0062CC 100%); color: #fff; }
.checkout-order-head.head-popular { background: linear-gradient(135deg, #FF9800 0%, #E08000 100%); }
.checkout-order-head.head-premium { background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%); }
.checkout-order-head .co-plan-name   { font-size: .75rem; opacity: .8; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: .4rem; }
.checkout-order-head .co-course-name { font-family: var(--font-heading, 'Poppins', sans-serif); font-size: 1.15rem; font-weight: 800; line-height: 1.3; margin-bottom: .5rem; }
.checkout-order-head .co-price       { font-size: 2rem; font-weight: 800; font-family: var(--font-heading, 'Poppins', sans-serif); }
.checkout-order-head .co-duration    { font-size: .82rem; opacity: .75; }

.checkout-order-body { padding: 1.25rem 1.5rem; }
.checkout-feature-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .45rem; }
.checkout-feature-list li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: #1E293B; }
.checkout-feature-list .cf-check { color: #16A34A; font-weight: 700; font-size: 1rem; flex-shrink: 0; }

.checkout-confirm-btn { width: 100%; padding: 1rem; background: #007FFF; color: #fff; border: none; border-radius: 12px; font-family: var(--font-heading, 'Poppins', sans-serif); font-size: 1rem; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .15s; letter-spacing: .02em; }
.checkout-confirm-btn:hover       { opacity: .88; transform: translateY(-1px); }
.checkout-confirm-btn.btn-popular { background: #FF9800; }
.checkout-confirm-btn.btn-premium { background: linear-gradient(135deg, #7C3AED, #A855F7); }

.payment-methods { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.payment-method { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 2px solid rgba(0,0,0,.08); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.payment-method input[type="radio"] { accent-color: #007FFF; }
.payment-method:has(input:checked) { border-color: #007FFF; background: #EEF6FF; }
.payment-method-label { font-size: .92rem; font-weight: 600; color: #0B1628; flex: 1; }
.payment-method-desc  { font-size: .78rem; color: #64748B; }

/* ================================================================
   12. MISC / RELATED CARDS
   ================================================================ */

.course-card-thumb-link { display: block; }
.course-thumb-img { width: 100%; height: 180px; object-fit: cover; display: block; }

/* ================================================================
   13. RESPONSIVE
   ================================================================ */

@media (max-width: 960px) {
  /* hero */
  .ch-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .ch-visual { max-width: 420px; margin: 0 auto; }
  .ch-float--tl, .ch-float--br { display: none; }

  /* body grid */
  .cd-layout          { grid-template-columns: 1fr; }
  .cd-sidebar         { position: static; max-height: none; }

  /* checkout */
  .checkout-layout    { grid-template-columns: 1fr; }
  .checkout-order-card{ position: static; }
}

@media (max-width: 600px) {
  .course-hero        { padding: 2rem 0 1.75rem; }
  .ch-title           { font-size: 1.4rem; }
  .ch-price           { font-size: 1.6rem; }
  .ch-cta-row .ch-btn { flex: 1; }

  .cd-page-body       { padding: 1.25rem 0 3.5rem; }
  .cd-section         { padding: 1.25rem 1.1rem; border-radius: 12px; }
  .cd-features-grid   { grid-template-columns: 1fr; }
  .cd-teacher-card    { flex-direction: column; }
  .cd-reviews-grid    { grid-template-columns: 1fr; }
  .cd-lead-row        { flex-direction: column; }
  .cd-lead-btn        { width: 100%; }

  .auth-drawer        { width: 100vw; }
  .plan-tabs          { gap: 0; }
  .pt-tab             { font-size: .68rem; padding: .38rem .2rem; }
}
