/* ========================================================
   OPEN ENGLISH CLIENT PLATFORM - AUTHENTIC REA STYLING
   ======================================================== */

:root {
  --oe-blue: #0080FF;
  --oe-blue-dark: #0056B3;
  --oe-blue-light: #EDF6FF;
  --oe-cyan: #00D2D3;
  --oe-orange: #FF5A00;
  --oe-orange-hover: #E04E00;
  --oe-green: #00C896;
  --oe-purple: #8A4FFF;
  --text-dark: #1A202C;
  --text-muted: #718096;
  --border-light: #E2E8F0;
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FC;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Nunito', 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--page-bg);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ================= HEADER ================= */
.oe-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.oe-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oe-header-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.oe-logo img {
  display: block;
}

.oe-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--oe-blue);
}

.nav-item.active {
  color: var(--oe-blue);
  font-weight: 700;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 16px;
  right: 16px;
  height: 3px;
  background-color: var(--oe-blue);
  border-radius: 3px 3px 0 0;
}

.oe-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-referral {
  background: var(--oe-cyan);
  color: #03254C;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-referral:hover {
  opacity: 0.9;
}

.btn-teacher-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F0F7FF;
  border: 1px solid #BAE0FF;
  color: #0056B3;
  text-decoration: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 128, 255, 0.08);
}

.btn-teacher-portal-link:hover {
  background: #E1EFFF;
  border-color: #0080FF;
  color: #004085;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 128, 255, 0.16);
}

.header-icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.header-icon-btn:hover {
  background: #EDF2F7;
  color: var(--text-dark);
}

.notification-bell .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #FF4757;
  border-radius: 50%;
  border: 1px solid #FFF;
}

.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= NOTIFICATIONS DROPDOWN ================= */
.notifications-dropdown {
  position: fixed;
  top: 64px;
  right: 80px;
  width: 340px;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 1px solid var(--border-light);
  display: none;
  z-index: 150;
  animation: fadeIn 0.2s ease;
}

.notifications-dropdown.active {
  display: block;
}

/* User Profile Dropdown */
.user-profile-dropdown {
  position: fixed;
  top: 64px;
  right: 20px;
  width: 310px;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border: 1px solid var(--border-light);
  display: none;
  z-index: 160;
  animation: fadeIn 0.15s ease;
  overflow: hidden;
}

.user-profile-dropdown.active {
  display: block;
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.profile-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0079ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.profile-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.profile-email {
  font-size: 12px;
  color: #64748b;
}

.profile-dropdown-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.field-label {
  color: #64748b;
  font-weight: 600;
}

.field-value {
  color: #0f172a;
  font-weight: 600;
}

.profile-dropdown-footer {
  border-top: 1px solid #e2e8f0;
  padding: 8px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-menu-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
}

.profile-menu-item:hover {
  background: #f1f5f9;
}

.profile-menu-item.logout {
  color: #ef4444;
}

.profile-menu-item.logout:hover {
  background: #fee2e2;
}

.notif-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-header h4 {
  font-size: 15px;
  font-weight: 700;
}

.notif-badge {
  background: var(--oe-blue-light);
  color: var(--oe-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.notif-list {
  max-height: 280px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 18px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
}

.notif-item:hover {
  background: #F8FAFC;
}

.notif-item.unread {
  background: #F0F7FF;
}

.notif-icon {
  font-size: 20px;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* ================= MAIN CONTAINER ================= */
.oe-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.oe-view {
  display: none;
  animation: fadeIn 0.25s ease;
}

.oe-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= HERO CARDS ROW ================= */
.hero-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-cards-grid.single-hero {
  grid-template-columns: 1fr;
}

/* LIVE CLASS CARD */
.live-class-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.live-class-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.live-class-thumb-container {
  position: relative;
  width: 130px;
  height: 85px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.live-class-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-live-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #E53E3E;
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.class-subtype {
  font-size: 11px;
  font-weight: 800;
  color: #4A5568;
  letter-spacing: 0.5px;
}

.class-title {
  font-size: 18px;
  font-weight: 800;
  color: #1A202C;
  margin: 2px 0;
}

.class-desc {
  font-size: 12px;
  color: #718096;
  max-width: 250px;
  line-height: 1.3;
}

.class-time {
  font-size: 12px;
  font-weight: 600;
  color: #2D3748;
  margin-top: 4px;
}

.btn-join-live {
  background: var(--oe-orange);
  color: #FFF;
  border: none;
  border-radius: 25px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(255, 90, 0, 0.25);
  flex-shrink: 0;
}

.btn-join-live:hover {
  background: var(--oe-orange-hover);
  transform: translateY(-1px);
}

/* JENNY AI TUTOR BANNER */
.jenny-banner-card {
  background: linear-gradient(90deg, #0080FF 0%, #00C896 100%);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.15);
}

.jenny-avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  overflow: hidden;
  flex-shrink: 0;
  background: #FFF;
}

.jenny-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jenny-banner-text h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.jenny-banner-text p {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.95;
}

.btn-talk-jenny {
  background: #FFFFFF;
  color: #0080FF;
  border: none;
  border-radius: 25px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.btn-talk-jenny:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.18);
}

/* ================= BOARDING PASS SPLIT CARD ================= */
.boarding-pass-section {
  margin-bottom: 24px;
  position: relative;
}

.boarding-pass-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
}

/* WATERMARK SUBTLE MAP */
.boarding-pass-card::before {
  display: none !important;
}

.pass-half {
  padding: 24px 28px;
  position: relative;
  z-index: 2;
}

.pass-left {
  flex: 1.35;
  border-right: none !important;
}

.pass-right {
  flex: 1;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pass-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pass-title-group h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0056B3;
}

.btn-link {
  background: none;
  border: none;
  color: var(--oe-blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* LEVEL RAIL */
.level-rail-container {
  margin-bottom: 26px;
  position: relative;
}

.level-rail-badge {
  display: inline-block;
  background: var(--oe-blue);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.level-rail-bar {
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  position: relative;
}

.level-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--oe-blue);
  border-radius: 2px;
}

.plane-icon {
  position: absolute;
  right: -8px;
  top: -12px;
  font-size: 16px;
  color: var(--oe-blue);
}

.level-rail-stops {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.level-rail-stops .stop {
  font-size: 11px;
  font-weight: 600;
  color: #A0AEC0;
}

.level-rail-stops .stop.active {
  color: var(--oe-blue);
  font-weight: 800;
}

/* 3 GAUGES GRID */
.gauges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circular-chart-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 8px;
}

.circular-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #EDF2F7;
  stroke-width: 3.2;
}

.circle {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.blue-chart .circle { stroke: #0080FF; }
.green-chart .circle { stroke: #00C896; }
.purple-chart .circle { stroke: #D946EF; }

.gauge-numbers {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-num {
  font-size: 20px;
  font-weight: 800;
  color: #1A202C;
  line-height: 1;
}

.sub-num {
  font-size: 11px;
  color: #718096;
  font-weight: 600;
}

.gauge-label {
  font-size: 14px;
  font-weight: 700;
  color: #2D3748;
  margin-bottom: 2px;
}

.btn-module-link {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--oe-orange, #ff6900);
  cursor: pointer;
  padding: 2px 4px;
  transition: opacity 0.2s;
}

.btn-module-link:hover {
  text-decoration: underline;
}

/* SEAM PERFORATION (CLEANED UP - ZERO VERTICAL LINES) */
.ticket-perforation,
.dots-line,
.hole,
.top-hole,
.bottom-hole {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* RIGHT HALF: LEAGUE */
.league-bullet {
  color: var(--oe-blue);
  font-size: 12px;
}

.tag-league {
  background: #EBF8FF;
  color: var(--oe-blue);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.league-postcard {
  background: #FFFFFF;
  border: 1px solid #E2E8F0; box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.league-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ribbon-text {
  font-size: 16px;
  font-weight: 900;
  color: var(--oe-orange);
  letter-spacing: 0.5px;
}

.confetti-illustration {
  font-size: 26px;
  margin: 4px 0;
}

.congrats-title {
  font-size: 18px;
  font-weight: 800;
  color: #1A202C;
  margin-bottom: 4px;
}

.congrats-desc {
  font-size: 12px;
  color: #718096;
  max-width: 260px;
  line-height: 1.4;
  margin-bottom: 18px;
}

.btn-orange-action {
  background: var(--oe-orange);
  color: #FFF;
  border: none;
  border-radius: 25px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(255, 90, 0, 0.25);
  width: 80%;
  max-width: 240px;
}

.btn-orange-action:hover {
  background: var(--oe-orange-hover);
  transform: translateY(-1px);
}

/* ================= ALERT REMINDER BANNER ================= */
.alert-bookmark-banner {
  background: #EBF8FF;
  border: 1px solid #BEE3F8;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.alert-icon {
  font-size: 18px;
}

.alert-text {
  font-size: 13px;
  color: #2B6CB0;
  flex: 1;
}

.btn-close-alert {
  background: none;
  border: none;
  color: #718096;
  font-size: 16px;
  cursor: pointer;
}

/* ================= LIVE CLASSES TRACKER ROW ================= */
.live-classes-tracker-row {
  margin-bottom: 24px;
}

.tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 6px;
}

.tracker-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.tracker-title-group h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0080FF;
}

.tracker-stat {
  font-size: 14px;
  color: #718096;
  font-weight: 700;
}

.tag-cyan-percent {
  background: #00D2D3;
  color: #03254C;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.miles-badge {
  font-size: 12px;
  font-weight: 800;
  color: #718096;
}

.tracker-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: #0080FF;
  margin-top: 8px;
}

/* ================= TOOLS CARDS GRID ================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.tool-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.tool-accent-bar {
  height: 4px;
  background: #0080FF;
}

.tool-content {
  padding: 16px;
}

.tool-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.tool-content h4 {
  font-size: 15px;
  font-weight: 800;
  color: #1A202C;
  margin-bottom: 4px;
}

.tool-content p {
  font-size: 12px;
  color: #718096;
  line-height: 1.35;
}

/* ================= VIEW 2: PROGRESO (FULL) ================= */
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title-row h2 {
  font-size: 24px;
  font-weight: 800;
}

.badge-student-tier {
  background: #EBF8FF;
  color: var(--oe-blue);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

.progress-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.pillar-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pillar-header h4 {
  font-size: 15px;
  font-weight: 800;
}

.pillar-weight {
  font-size: 11px;
  font-weight: 700;
  color: var(--oe-blue);
}

.pillar-metric {
  margin-bottom: 10px;
}

.big-number {
  font-size: 26px;
  font-weight: 800;
}

.dim-number {
  font-size: 14px;
  color: var(--text-muted);
}

.sub-metric-bar {
  height: 8px;
  background: #EDF2F7;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.sub-metric-bar .fill-bar {
  height: 100%;
  background: var(--oe-blue);
  border-radius: 4px;
}

.pillar-note {
  font-size: 12px;
  color: var(--text-muted);
}

.formula-callout {
  background: #F0FFF4;
  border: 1px solid #C6F6D5;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.formula-icon {
  font-size: 22px;
}

.formula-text {
  font-size: 14px;
  color: #22543D;
}

.math-expr {
  font-family: monospace;
  font-size: 14px;
  background: rgba(255,255,255,0.7);
  padding: 2px 6px;
  border-radius: 4px;
}

/* GAMIFICATION SECTION */
.gamification-full-section {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.leaderboard-card, .badges-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.lb-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lb-title h3 {
  font-size: 17px;
  font-weight: 800;
}

.lb-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.lb-stats-pill {
  background: #EDF6FF;
  color: var(--oe-blue);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 16px;
}

.zone-indicator {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.promotion-zone {
  background: #E6FFFA;
  color: #234E52;
  border: 1px solid #B2F5EA;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
}

.leaderboard-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid #F1F5F9;
}

.leaderboard-table tr.my-row {
  background: #FFFDF5;
  font-weight: 700;
}

/* BADGES */
.badges-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}

.badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.badge-item {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.badge-item.earned {
  background: #FFFBF0;
  border-color: #FEEBC8;
}

.badge-item.locked {
  opacity: 0.5;
  background: #F7FAFC;
}

.badge-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.badge-title {
  font-size: 13px;
  font-weight: 700;
}

.badge-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ================= VIEW 3: CURSO (SYLLABUS & LESSONS) ================= */
.course-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.course-header-row h2 {
  font-size: 24px;
  font-weight: 800;
}

.course-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.unit-selector-dropdown select {
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: #FFF;
  cursor: pointer;
}

.unit-overview-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.tag-unit-badge {
  background: #0080FF;
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.unit-banner-left h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 4px 0;
}

.unit-banner-left p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 600px;
}

.unit-stat-ring {
  text-align: center;
}

.unit-percent-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--oe-blue);
  display: block;
}

.unit-stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* LESSONS GRID */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.lesson-card-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.lesson-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.lesson-thumb-wrapper {
  position: relative;
  height: 125px;
  width: 100%;
  background: #EDF2F7;
}

.lesson-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-status-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.lesson-status-pill.complete {
  background: #38A169;
  color: #FFF;
}

.lesson-status-pill.in-progress {
  background: var(--oe-orange);
  color: #FFF;
}

.lesson-status-pill.locked {
  background: #718096;
  color: #FFF;
}

.lesson-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lesson-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 4px;
  line-height: 1.3;
}

.lesson-card-desc {
  font-size: 12px;
  color: #718096;
  line-height: 1.35;
  margin-bottom: 12px;
}

.btn-start-lesson {
  background: #F1F5F9;
  color: #0080FF;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
}

.lesson-card-item:hover .btn-start-lesson {
  background: #0080FF;
  color: #FFFFFF;
}

/* ================= FLOATING BOT WIDGET ================= */
.floating-bot-container {
  position: fixed;
  bottom: 60px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 99;
}

.bot-speech-bubble {
  background: #FFFFFF;
  padding: 10px 16px;
  border-radius: 14px 14px 4px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1A202C;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  cursor: pointer;
  max-width: 260px;
  transition: transform 0.2s ease;
  animation: bounceSlow 3s infinite;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.bot-avatar-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0080FF;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 128, 255, 0.4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.bot-avatar-btn:hover {
  transform: scale(1.05);
}

.bot-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-badge-counter {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #E53E3E;
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #FFF;
}

/* ================= JENNY DRAWER / CHATBOT MODAL ================= */
.jenny-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 200;
}

.jenny-drawer-backdrop.active {
  display: flex;
  justify-content: flex-end;
}

.jenny-drawer {
  width: 440px;
  max-width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 24px rgba(0,0,0,0.15);
  animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.jenny-drawer-header {
  padding: 16px 20px;
  background: linear-gradient(90deg, #0080FF 0%, #00C896 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jenny-profile-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jenny-circle-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #FFF;
  overflow: hidden;
  background: #FFF;
}

.jenny-circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-ai-pill {
  background: rgba(255,255,255,0.25);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.status-online {
  font-size: 11px;
  opacity: 0.9;
  display: block;
}

.jenny-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-voice-toggle {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
}

.btn-close-drawer {
  background: none;
  border: none;
  color: #FFF;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

/* MESSAGES */
.jenny-messages-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #F8FAFC;
}

.msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.jenny-msg {
  background: #FFFFFF;
  color: #1A202C;
  align-self: flex-start;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
}

.user-msg {
  background: #0080FF;
  color: #FFFFFF;
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
}

.msg-time {
  font-size: 10px;
  color: #A0AEC0;
  margin-top: 4px;
  text-align: right;
}

.user-msg .msg-time {
  color: rgba(255,255,255,0.7);
}

/* GRAMMAR TIP BOX */
.grammar-tip-box {
  background: #FFFDF5;
  border-left: 4px solid #ECC94B;
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #744210;
}

/* SPEECHACE PRONUNCIATION ASSESSMENT CARD */
.speechace-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: twFadeIn 0.3s ease-out;
}

.speechace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 8px;
}

.speechace-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4F46E5;
  background: #EEF2FF;
  padding: 4px 10px;
  border-radius: 20px;
}

.speechace-score-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.score-high {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.score-med {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.score-low {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.speechace-metrics-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #64748B;
  font-weight: 500;
}

.speechace-words-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.speechace-word-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 8px;
  gap: 4px;
}

.speechace-word-text {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
}

.speechace-phonemes-row {
  display: flex;
  gap: 3px;
}

.phoneme-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid;
  cursor: help;
  transition: transform 0.15s;
}

.phoneme-chip:hover {
  transform: scale(1.15);
}

.chip-high {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}

.chip-med {
  background: #FFFBEB;
  border-color: #F59E0B;
  color: #92400E;
}

.chip-low {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #991B1B;
}

.speechace-tip {
  background: #F0FDF4;
  border-left: 3px solid #10B981;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #166534;
  line-height: 1.45;
}

/* HINTS BAR */
.jenny-hints-bar {
  padding: 8px 16px;
  background: #FFF;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid #F1F5F9;
}

.hint-chip {
  background: #EDF2F7;
  color: #2D3748;
  border: none;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.hint-chip:hover {
  background: #E2E8F0;
  color: var(--oe-blue);
}

/* INPUT BAR */
.jenny-input-bar {
  padding: 14px 18px;
  background: #FFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-mic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--oe-blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-mic.recording {
  background: #E53E3E;
  color: #FFF;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.jenny-input-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
}

.jenny-input-bar input:focus {
  border-color: var(--oe-blue);
}

.btn-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--oe-blue);
  color: #FFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-send:hover {
  background: var(--oe-blue-dark);
}

/* ================= MODALS ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 250;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

/* LIVE CLASS MODAL */
.class-preview-card {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
}

.modal-class-img {
  width: 220px;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
}

.modal-class-details h4 {
  font-size: 18px;
  font-weight: 800;
  margin: 6px 0;
}

.modal-class-details p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tech-check-list {
  background: #F8FAFC;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  background: #EDF2F7;
  color: #4A5568;
  border: none;
  border-radius: 20px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ================= WEBRTC JITSI LIVE CLASSROOM ================= */
.modal-box.modal-live-class {
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-box.modal-live-class.in-session {
  max-width: 1040px;
  width: 96%;
}

.jitsi-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 12px 12px 0 0;
  gap: 14px;
}

.jitsi-topic-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.live-pulse-badge {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  animation: pulseLive 1.5s infinite;
  white-space: nowrap;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.jitsi-topic-title {
  font-size: 14px;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jitsi-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-room-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-room-control:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.btn-room-leave {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-room-leave:hover {
  background: #B91C1C;
}

.jitsi-container {
  width: 100%;
  height: 520px;
  background: #020617;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  position: relative;
}

.jitsi-fallback-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #FFF;
  text-align: center;
  padding: 24px;
}

/* ================= ADVANCED MULTI-STAGE LESSON PLAYER ================= */
.modal-box.modal-lesson-player {
  max-width: 860px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.lesson-player-header {
  padding: 16px 24px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lesson-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 24px;
  gap: 8px;
  overflow-x: auto;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  transition: all 0.2s;
  white-space: nowrap;
}

.stepper-step:hover {
  color: var(--oe-blue);
}

.stepper-step.active {
  color: var(--oe-blue);
  font-weight: 800;
}

.stepper-step.completed {
  color: #16A34A;
}

.step-bubble {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: #E2E8F0;
  color: #475569;
  transition: all 0.2s;
}

.stepper-step.active .step-bubble {
  background: var(--oe-blue);
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.2);
}

.stepper-step.completed .step-bubble {
  background: #16A34A;
  color: #FFFFFF;
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 4px;
  min-width: 14px;
  transition: background 0.3s;
}

.stepper-line.completed {
  background: #16A34A;
}

.lesson-player-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Stage 1: Presentation Styles */
.lesson-video-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.lesson-video-element {
  width: 100%;
  max-height: 380px;
  display: block;
  background: #000;
}

.lesson-hero-presentation {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  align-items: center;
}

.presentation-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.presentation-content h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.presentation-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.transcript-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.transcript-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.transcript-line {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #F8FAFC;
  align-items: center;
  transition: background 0.15s;
}

.transcript-line:hover {
  background: #EFF6FF;
}

.speaker-badge {
  font-weight: 700;
  font-size: 12px;
  color: var(--oe-blue);
  min-width: 90px;
}

.line-text {
  flex: 1;
  font-size: 14px;
  color: #334155;
}

.btn-mini-audio {
  background: none;
  border: none;
  color: var(--oe-blue);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 14px;
  transition: transform 0.15s;
}

.btn-mini-audio:hover {
  transform: scale(1.15);
}

/* Stage 2: Interactive Flashcards */
.flashcards-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.flashcard-carousel-container {
  perspective: 1200px;
  margin: 16px auto;
  max-width: 540px;
  height: 300px;
  position: relative;
  cursor: pointer;
}

.flashcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.flashcard-inner.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--border-light);
  background: #FFFFFF;
}

.flashcard-front {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
}

.flashcard-back {
  background: linear-gradient(135deg, #F0F9FF 0%, #EDF6FF 100%);
  transform: rotateY(180deg);
  border-color: #BAE6FD;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--oe-blue);
  background: #EBF8FF;
  padding: 3px 10px;
  border-radius: 12px;
}

.card-center-front {
  text-align: center;
  padding: 10px 0;
}

.card-term-large {
  font-size: 34px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.card-phonetic {
  font-family: monospace;
  font-size: 16px;
  color: #0284C7;
  background: #F0F9FF;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
}

.card-center-back {
  text-align: left;
}

.card-def-title {
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card-definition {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}

.card-example-box {
  background: #FFFFFF;
  border-left: 3px solid var(--oe-blue);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}

.card-example-en {
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 4px;
}

.card-example-es {
  font-size: 13px;
  color: #64748B;
}

.card-flip-prompt {
  font-size: 12px;
  color: #94A3B8;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.flashcard-controls-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.flashcard-dots {
  display: flex;
  gap: 8px;
}

.flashcard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s;
}

.flashcard-dot.active {
  background: var(--oe-blue);
  transform: scale(1.3);
}

/* Stage 3: Grammar in Action */
.grammar-stage-container {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}

.grammar-stage-container h4 {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.grammar-instruction {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 16px;
}

.sentence-cloze-box {
  background: #FFFFFF;
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 22px;
  font-size: 18px;
  line-height: 2.2;
  margin-bottom: 18px;
  font-weight: 600;
  color: #1E293B;
}

.cloze-blank {
  display: inline-block;
  min-width: 100px;
  padding: 4px 14px;
  margin: 0 4px;
  border-radius: 8px;
  border: 2px solid var(--oe-blue);
  background: #EFF6FF;
  color: var(--oe-blue);
  text-align: center;
  font-weight: 700;
  transition: all 0.2s;
}

.cloze-blank.filled {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #0284C7;
}

.cloze-blank.correct {
  background: #DCFCE7;
  border-color: #16A34A;
  color: #166534;
}

.cloze-blank.incorrect {
  background: #FEE2E2;
  border-color: #DC2626;
  color: #991B1B;
}

.cloze-options-group {
  margin-top: 14px;
}

.cloze-options-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.word-tiles-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.word-tile-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.word-tile-btn:hover {
  border-color: var(--oe-blue);
  color: var(--oe-blue);
  transform: translateY(-1px);
}

.word-tile-btn.selected {
  background: var(--oe-blue);
  color: #FFFFFF;
  border-color: var(--oe-blue);
}

.grammar-feedback-alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 14px;
  animation: zoomIn 0.2s ease;
}

.grammar-feedback-alert.success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.grammar-feedback-alert.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* Stage 4: Quiz */
.quiz-stage-container {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}

.quiz-header-tag {
  font-size: 11px;
  font-weight: 800;
  color: #D97706;
  background: #FEF3C7;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
}

.quiz-question-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 16px;
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-card {
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-option-card:hover {
  border-color: #93C5FD;
  background: #F8FAFC;
}

.quiz-option-card.selected {
  border-color: var(--oe-blue);
  background: #EFF6FF;
}

.quiz-option-card.correct {
  border-color: #16A34A;
  background: #F0FDF4;
  color: #166534;
}

.quiz-option-card.incorrect {
  border-color: #DC2626;
  background: #FEF2F2;
  color: #991B1B;
}

.quiz-explanation-box {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  animation: zoomIn 0.2s ease;
}

/* Stage 5: Victory / Fanfare */
.victory-container {
  text-align: center;
  padding: 30px 20px;
  animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.victory-trophy {
  font-size: 64px;
  margin-bottom: 12px;
  animation: bounceTrophy 1s infinite alternate ease-in-out;
}

@keyframes bounceTrophy {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.victory-title {
  font-size: 24px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 6px;
}

.victory-subtitle {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 20px;
}

.victory-reward-card {
  display: inline-flex;
  gap: 28px;
  background: #F8FAFC;
  border: 2px solid #BBF7D0;
  border-radius: 14px;
  padding: 16px 36px;
  margin-bottom: 24px;
}

.reward-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reward-value {
  font-size: 22px;
  font-weight: 900;
  color: #16A34A;
}

.reward-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
}

.stage-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  margin-top: 14px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .hero-cards-grid {
    grid-template-columns: 1fr;
  }
  .boarding-pass-card {
    flex-direction: column;
  }
  .ticket-perforation {
  display: none !important;
}
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .progress-details-grid {
    grid-template-columns: 1fr;
  }
  .gamification-full-section {
    grid-template-columns: 1fr;
  }
  .lessons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .lessons-grid {
    grid-template-columns: 1fr;
  }
  .gauges-grid {
    grid-template-columns: 1fr;
  }
  .jenny-drawer {
    width: 100%;
  }
}

/* ========================================================
   IMMERSION HUB & PROFESSIONAL TRACKS STYLING
   ======================================================== */

/* 1. INICIO: IMMERSION SHOWCASE ROW */
.immersion-home-section {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.immersion-home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.immersion-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.immersion-title-group .icon-pulse {
  font-size: 28px;
  background: #EDF6FF;
  border-radius: 12px;
  padding: 8px;
}

.immersion-title-group h3 {
  font-size: 20px;
  font-weight: 800;
  color: #00005C;
}

.immersion-sub {
  font-size: 13px;
  color: #64748B;
  margin-top: 2px;
}

.btn-view-all-immersion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EDF6FF;
  color: var(--oe-blue);
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-view-all-immersion:hover {
  background: var(--oe-blue);
  color: #FFFFFF;
  border-color: var(--oe-blue);
  transform: translateX(2px);
}

.immersion-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1100px) {
  .immersion-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .immersion-home-grid {
    grid-template-columns: 1fr;
  }
}

.immersion-showcase-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.immersion-showcase-card:hover {
  transform: translateY(-4px);
  border-color: #93C5FD;
  box-shadow: 0 10px 22px rgba(0, 128, 255, 0.12);
}

.showcase-thumb-wrap {
  height: 120px;
  position: relative;
  overflow: hidden;
  background: #E2E8F0;
}

.showcase-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.immersion-showcase-card:hover .showcase-thumb-wrap img {
  transform: scale(1.05);
}

.badge-showcase-type {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 92, 0.85);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.badge-showcase-xp {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
}

.showcase-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.showcase-title {
  font-size: 14px;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 6px;
  line-height: 1.35;
}

.showcase-snippet {
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.btn-showcase-action {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--oe-blue);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.immersion-showcase-card:hover .btn-showcase-action {
  background: var(--oe-blue);
  color: #FFFFFF;
  border-color: var(--oe-blue);
}

/* 2. CURSO: SUBNAV PILLS BAR */
.course-subnav-container {
  margin-bottom: 24px;
}

.course-subnav-pills {
  display: flex;
  gap: 12px;
  background: #FFFFFF;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.course-subnav-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.course-subnav-pill:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.course-subnav-pill.active {
  background: var(--oe-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.25);
}

.course-subnav-pill .pill-icon {
  font-size: 18px;
}

.pill-badge-live {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  animation: pulseLiveBadge 1.5s infinite;
}

@keyframes pulseLiveBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pill-badge-count {
  background: #E2E8F0;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.course-subnav-pill.active .pill-badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* 3. IMMERSION HUB HEADER & CATEGORY CHIPS */
.immersion-hub-hero {
  background: linear-gradient(135deg, #00005C 0%, #0047AB 60%, #0080FF 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 92, 0.15);
}

.hub-hero-text h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}

.hub-hero-text p {
  font-size: 14px;
  color: #E2E8F0;
  max-width: 600px;
  line-height: 1.45;
}

.hub-hero-stats {
  display: flex;
  gap: 20px;
}

.hub-stat-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 20px;
  text-align: center;
}

.hub-stat-num {
  font-size: 24px;
  font-weight: 900;
  color: #FFD700;
  display: block;
}

.hub-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #F1F5F9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.immersion-filters-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.hub-filter-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.hub-filter-chip:hover {
  border-color: #93C5FD;
  background: #F8FAFC;
}

.hub-filter-chip.active {
  background: #00005C;
  color: #FFFFFF;
  border-color: #00005C;
  box-shadow: 0 4px 10px rgba(0, 0, 92, 0.2);
}

/* 4. IMMERSION SECTION & CARDS GRID */
.immersion-section {
  margin-bottom: 36px;
}

.immersion-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-left: 4px solid var(--oe-blue);
  padding-left: 12px;
}

.immersion-section-header h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
}

.immersion-section-header p {
  font-size: 13px;
  color: #64748B;
}

.immersion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .immersion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .immersion-grid {
    grid-template-columns: 1fr;
  }
}

/* DAILY NEWS CARD */
.news-catalog-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  cursor: pointer;
}

.news-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 128, 255, 0.12);
  border-color: #93C5FD;
}

.news-img-box {
  height: 160px;
  position: relative;
  background: #E2E8F0;
  overflow: hidden;
}

.news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-catalog-card:hover .news-img-box img {
  transform: scale(1.05);
}

.badge-level-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #00005C;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
}

.badge-xp-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.news-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-category-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--oe-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.news-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 8px;
}

.news-card-summary {
  font-size: 13px;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.news-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94A3B8;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

.btn-read-news {
  background: var(--oe-blue-light);
  color: var(--oe-blue);
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.news-catalog-card:hover .btn-read-news {
  background: var(--oe-blue);
  color: #FFFFFF;
  border-color: var(--oe-blue);
}

/* IDIOM CARD */
.idiom-catalog-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  position: relative;
  transition: all 0.2s;
}

.idiom-catalog-card:hover {
  transform: translateY(-4px);
  border-color: #FCD34D;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.12);
}

.idiom-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.idiom-card-phrase {
  font-size: 18px;
  font-weight: 900;
  color: #00005C;
}

.btn-audio-speak {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-audio-speak:hover {
  background: var(--oe-blue);
  color: #FFFFFF;
  border-color: var(--oe-blue);
}

.idiom-card-meaning-en {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.idiom-card-meaning-es {
  font-size: 12px;
  color: #64748B;
  font-style: italic;
  margin-bottom: 14px;
}

.idiom-card-example-box {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #78350F;
  margin-bottom: 16px;
  line-height: 1.4;
  flex: 1;
}

.idiom-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

.btn-practice-idiom {
  background: #F59E0B;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-practice-idiom:hover {
  background: #D97706;
}

/* VIDEO IMMERSION CARD */
.video-catalog-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  cursor: pointer;
}

.video-catalog-card:hover {
  transform: translateY(-4px);
  border-color: #93C5FD;
  box-shadow: 0 12px 26px rgba(0, 128, 255, 0.12);
}

.video-thumb-container {
  height: 160px;
  position: relative;
  background: #000000;
  overflow: hidden;
}

.video-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.3s;
}

.video-catalog-card:hover .video-thumb-container img {
  transform: scale(1.05);
}

.video-play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 90, 0, 0.9);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: all 0.2s;
}

.video-catalog-card:hover .video-play-overlay-btn {
  background: #FF5A00;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-duration-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.video-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.video-card-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
}

.video-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

/* PRONUNCIATION LAB CARD */
.pron-catalog-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.2s;
}

.pron-catalog-card:hover {
  transform: translateY(-4px);
  border-color: #A78BFA;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.12);
}

.pron-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pron-pair-title {
  font-size: 16px;
  font-weight: 900;
  color: #00005C;
}

.pron-sound-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pron-sound-tag {
  background: #F3E8FF;
  color: #7C3AED;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: monospace;
}

.pron-card-guide {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.pron-words-sample-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pron-sample-word-chip {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}

.pron-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

.btn-practice-pron {
  background: #7C3AED;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-practice-pron:hover {
  background: #6D28D9;
}

/* 5. PROFESSIONAL TRACKS SECTION */
.tracks-hub-hero {
  background: linear-gradient(135deg, #0B192C 0%, #1E3E62 60%, #0080FF 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

@media (max-width: 860px) {
  .tracks-hub-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

.tag-career-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #60A5FA;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.tracks-hero-text h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}

.tracks-hero-text p {
  font-size: 14px;
  color: #CBD5E1;
  max-width: 580px;
  line-height: 1.45;
}

.tracks-search-wrapper {
  min-width: 280px;
}

.tracks-search-wrapper input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
  backdrop-filter: blur(8px);
}

.tracks-search-wrapper input::placeholder {
  color: #94A3B8;
}

.tracks-search-wrapper input:focus {
  border-color: #60A5FA;
  background: rgba(255, 255, 255, 0.18);
}

.tracks-category-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.track-cat-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.track-cat-chip:hover {
  background: #F8FAFC;
  border-color: #93C5FD;
}

.track-cat-chip.active {
  background: #0080FF;
  color: #FFFFFF;
  border-color: #0080FF;
  box-shadow: 0 4px 10px rgba(0, 128, 255, 0.25);
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tracks-grid {
    grid-template-columns: 1fr;
  }
}

.track-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.2s;
  position: relative;
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: #93C5FD;
  box-shadow: 0 12px 24px rgba(0, 128, 255, 0.1);
}

.track-card.enrolled-active {
  border: 2px solid #0080FF;
  background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
}

.track-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.track-icon-code {
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-emoji {
  font-size: 32px;
}

.track-code-pill {
  background: #EDF6FF;
  color: var(--oe-blue);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: monospace;
}

.track-enrolled-badge {
  background: #16A34A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.track-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.track-card-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.track-syllabus-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.track-topic-chip {
  background: #F1F5F9;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.track-card-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
}

.btn-track-details {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #334155;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-track-details:hover {
  background: #E2E8F0;
}

.btn-track-enroll {
  flex: 1;
  background: var(--oe-blue);
  border: 1px solid var(--oe-blue);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-track-enroll:hover {
  background: var(--oe-blue-dark);
}

.btn-track-enroll.active-enrolled {
  background: #F1F5F9;
  color: #64748B;
  border-color: #CBD5E1;
}

.btn-track-enroll.active-enrolled:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

/* 6. MODALS STYLING FOR IMMERSION & TRACKS */
.modal-immersion-reader {
  max-width: 820px !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.immersion-modal-body-scroll {
  overflow-y: auto;
  max-height: calc(90vh - 130px);
  padding: 24px;
}

.news-modal-img-banner {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.news-modal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
}

.btn-read-aloud {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--oe-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-read-aloud:hover {
  background: var(--oe-blue-dark);
}

.news-article-paragraphs {
  font-size: 15px;
  line-height: 1.7;
  color: #1E293B;
  margin-bottom: 24px;
}

.news-article-paragraphs p {
  margin-bottom: 16px;
}

.news-vocab-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.news-vocab-box h4 {
  color: #166534;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vocab-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .vocab-terms-grid {
    grid-template-columns: 1fr;
  }
}

.vocab-term-card {
  background: #FFFFFF;
  border: 1px solid #DCFCE7;
  border-radius: 8px;
  padding: 10px 14px;
}

.vocab-term-title {
  font-size: 14px;
  font-weight: 800;
  color: #15803D;
  display: flex;
  justify-content: space-between;
}

.vocab-term-ipa {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  font-family: monospace;
}

.vocab-term-trans {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-top: 2px;
}

.vocab-term-def {
  font-size: 12px;
  color: #64748B;
  margin-top: 4px;
}

/* VIDEO MODAL & INTERACTIVE TRANSCRIPT */
.video-player-wrapper {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.video-player-wrapper video {
  width: 100%;
  max-height: 380px;
  display: block;
}

.transcript-container {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.transcript-line {
  display: flex;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.transcript-line:hover {
  background: #EFF6FF;
}

.transcript-line.active {
  background: #DBEAFE;
  font-weight: 700;
}

.transcript-time {
  font-family: monospace;
  font-weight: 700;
  color: var(--oe-blue);
  min-width: 42px;
}

.transcript-speaker {
  font-weight: 800;
  color: #0F172A;
  min-width: 80px;
}

.transcript-text {
  color: #334155;
  flex: 1;
}

/* IDIOM MODAL */
.idiom-hero-banner {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2px solid #FCD34D;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.idiom-hero-phrase {
  font-size: 30px;
  font-weight: 900;
  color: #92400E;
  margin-bottom: 8px;
}

.idiom-hero-meaning-es {
  font-size: 16px;
  font-weight: 700;
  color: #B45309;
}

.idiom-origin-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.idiom-origin-box h4 {
  font-size: 14px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px;
}

.idiom-origin-box p {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
}

.speech-practice-box {
  background: #F5F3FF;
  border: 2px dashed #C4B5FD;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.btn-mic-practice {
  background: #7C3AED;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
  transition: all 0.2s;
  margin-bottom: 10px;
}

.btn-mic-practice:hover {
  background: #6D28D9;
  transform: scale(1.08);
}

.btn-mic-practice.recording {
  background: #EF4444;
  animation: pulseLiveBadge 1s infinite;
}

/* XP CONFETTI TOAST */
.xp-toast-container {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.xp-toast-item {
  background: #00005C;
  color: #FFFFFF;
  border-left: 5px solid #16A34A;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInToast 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.xp-toast-pts {
  background: #16A34A;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
}

/* ================= AUTH & PROFILE MODAL STYLES ================= */
.modal-auth {
  max-width: 500px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  animation: zoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-tabs-bar {
  display: flex;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.auth-tab-btn {
  flex: 1;
  padding: 13px 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.auth-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.auth-tab-btn.active {
  color: #0079ff !important;
  border-bottom: 2px solid #0079ff !important;
  background: #ffffff;
}

.auth-profile-card:hover {
  border-color: #0079ff !important;
  background: #f8faff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 121, 255, 0.08);
}

#authProfilesList::-webkit-scrollbar {
  width: 6px;
}

#authProfilesList::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

#authProfilesList::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#authProfilesList::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}



/* ========================================================
   AUTHENTIC OPEN ENGLISH PRÁCTICAS SECTION & CAROUSELS
   ======================================================== */
.practicas-master-section {
  max-width: 1200px;
  margin: 36px auto 48px;
  padding: 0 20px;
  box-sizing: border-box;
}

.practicas-header-row {
  margin-bottom: 24px;
}

.practicas-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.practicas-main-title {
  font-family: 'Nunito', -apple-system, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #0079ff;
  margin: 0;
  letter-spacing: -0.5px;
}

.practicas-hours-stat {
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
}

.practicas-pill-badge {
  background: #0079ff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.practicas-header-divider {
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
}

/* TRACK ROW */
.practicas-track-group {
  margin-bottom: 32px;
}

.practicas-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.practicas-track-title {
  font-family: 'Nunito', -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #0079ff;
  margin: 0;
}

.practicas-track-badge {
  font-size: 11px;
  font-weight: 900;
  color: #0f172a;
  border: 1.5px solid #0f172a;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #ffffff;
}

/* CAROUSEL SHELL */
.practicas-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
}

.practicas-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #0079ff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  user-select: none;
}

.practicas-nav-btn:hover {
  background: #0079ff;
  color: #ffffff;
  border-color: #0079ff;
  transform: translateY(-50%) scale(1.08);
}

.practicas-nav-btn.btn-prev {
  left: -16px;
}

.practicas-nav-btn.btn-next {
  right: -16px;
}

.practicas-track-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.practicas-track-scroll::-webkit-scrollbar {
  display: none;
}

/* INDIVIDUAL PRACTICE CARD */
.practicas-card {
  flex: 0 0 240px;
  width: 240px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.practicas-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #0079ff;
}

.practicas-card-img-wrap {
  width: 100%;
  height: 135px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.practicas-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.practicas-card:hover .practicas-card-img {
  transform: scale(1.04);
}

/* WATERMARKS & TOP BARS */
.practicas-watermark-news {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.practicas-card-top-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #0079ff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* CARD CONTENT */
.practicas-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.practicas-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
  line-height: 1.35;
}

.practicas-card-tag {
  font-size: 12px;
  font-weight: 700;
  color: #0079ff;
  margin-bottom: 6px;
}

.practicas-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.practicas-card-action {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.btn-practica-pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-practica-green {
  background: #84cc16;
  color: #ffffff;
}

.btn-practica-green:hover {
  background: #65a30d;
}

.btn-practica-blue {
  background: #0079ff;
  color: #ffffff;
}

.btn-practica-blue:hover {
  background: #0056b3;
}


/* ==========================================================================
   AUTHENTIC OPEN ENGLISH SPEECHACE PRONUNCIATION MODAL (PARITY WITH EVIDENCE)
   ========================================================================== */

#practicaModal.speechace-mode .modal-box {
  max-width: 760px;
  width: 95%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
}

#practicaModal.speechace-mode .modal-header {
  background: #ffffff !important;
  color: #1e293b !important;
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 24px;
}

#practicaModal.speechace-mode .modal-header h3 {
  color: #111827 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
}

#practicaModal.speechace-mode #practicaModalBadge {
  display: none !important;
}

#practicaModal.speechace-mode .btn-close-modal {
  width: 32px;
  height: 32px;
  border: 1.5px solid #d1d5db !important;
  border-radius: 6px;
  background: #ffffff !important;
  color: #64748b !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  padding: 0;
  transition: all 0.15s ease;
}

#practicaModal.speechace-mode .btn-close-modal:hover {
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  background: #f8fafc !important;
}

#practicaModal.speechace-mode .modal-body {
  padding: 0 !important;
  overflow-y: visible !important;
}

/* SpeechAce Container */
.sa-container {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.sa-stage {
  padding: 18px 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Step Counter (e.g. 1 of 15) */
.sa-counter {
  font-size: 14px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.2px;
}

/* Sentence Row */
.sa-sentence-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 26px;
}

.sa-play-sentence-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #16a34a;
  background: #ffffff;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  padding-left: 2px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sa-play-sentence-btn:hover {
  background: #f0fdf4;
  transform: scale(1.05);
}

.sa-sentence-text {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0.2px;
}

.sa-word-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.sa-word-wrap:hover .sa-word-label {
  opacity: 0.85;
}

.sa-word-label {
  transition: color 0.15s;
}

.sa-word-good {
  color: #15803d;
}

.sa-word-bad {
  color: #dc2626;
}

/* Dotted underlines */
.sa-dots-good {
  width: 100%;
  border-bottom: 2px dotted #15803d;
  height: 0;
  margin-top: 3px;
}

.sa-dots-bad {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 3px;
}

.sa-dots-bad span {
  display: block;
  width: 100%;
  height: 0;
  border-bottom: 1.5px dotted #dc2626;
}

/* Controls row (Replay + Mic) */
.sa-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
}

.sa-replay-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  padding-left: 2px;
  transition: all 0.2s ease;
}

.sa-replay-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.sa-mic-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3.5px solid #06b6d4;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
  transition: all 0.2s ease;
}

.sa-mic-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
}

.sa-mic-btn.sa-recording {
  border-color: #0891b2;
  box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.35);
  animation: saPulse 1.2s infinite ease-in-out;
}

@keyframes saPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(6, 182, 212, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.sa-mic-icon {
  width: 32px;
  height: 32px;
  fill: #06b6d4;
}

/* History Chart */
.sa-chart-wrap {
  width: 580px;
  max-width: 100%;
  position: relative;
  margin-bottom: 24px;
}

.sa-chart-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.sa-grid-line {
  width: 1px;
  background: #e5e7eb;
  height: 100%;
}

.sa-chart-bars {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sa-bar-slot {
  height: 22px;
  width: 100%;
  display: flex;
  align-items: center;
}

.sa-bar-fill {
  height: 100%;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  box-sizing: border-box;
  transition: width 0.4s ease;
}

.sa-bar-last {
  background: #38bdf8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.sa-bar-hatched {
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 5px, #cbd5e1 5px, #cbd5e1 10px);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Bottom Feedback Drawer */
.sa-drawer {
  background: #ffead1;
  border-top: 1px solid #fed7aa;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sa-drawer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sa-score-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #292524;
  font-family: Georgia, 'Times New Roman', serif;
  flex-shrink: 0;
}

.sa-drawer-text {
  display: flex;
  flex-direction: column;
}

.sa-drawer-headline {
  font-size: 16px;
  font-weight: 700;
  color: #292524;
  margin: 0 0 3px 0;
}

.sa-drawer-sub {
  font-size: 13px;
  color: #78716c;
  margin: 0;
}

.sa-btn-continue {
  background: #45611a;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.sa-btn-continue:hover {
  background: #365012;
  transform: translateY(-1px);
}

.sa-btn-continue:active {
  transform: translateY(0);
}

/* Word Tooltip */
.sa-phoneme-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  z-index: 50;
  pointer-events: none;
  animation: twFadeIn 0.2s ease-out;
}
.sa-phoneme-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f172a;
}

/* ================= SHELL & CAROUSEL PARITY ENHANCEMENTS ================= */
.practicas-card {
  flex: 0 0 240px;
  width: 240px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  cursor: pointer !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.practicas-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

/* Generic pill buttons inside cards REMOVED for Open English tile parity */
.practicas-card-action {
  display: none !important;
}

.practicas-card-top-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 5px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 4;
}

.practicas-card-top-banner.badge-status-green,
.badge-status-green {
  background: #28a745 !important;
  color: #ffffff !important;
}

.practicas-card-top-banner.badge-status-blue,
.badge-status-blue {
  background: #0079ff !important;
  color: #ffffff !important;
}

.practicas-watermark-news {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 5;
}

/* Unit 5 Section Header & Carousel Styles */
.unit-tracker-row {
  margin-bottom: 28px;
}

.unit-subhead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
  padding: 0 4px;
}

.unit-subhead-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unit-lessons-count {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.unit-index-link {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--oe-orange, #ff6900);
  cursor: pointer;
  padding: 2px 4px;
  transition: opacity 0.2s;
}

.unit-index-link:hover {
  text-decoration: underline;
}

.unit-quiz-reminder {
  text-align: right;
  margin-top: 10px;
  padding-right: 8px;
}

.btn-quiz-link {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--oe-orange, #ff6900);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-quiz-link:hover {
  text-decoration: underline;
}

/* ========================================================
   AUTHENTIC SOLID BLUE BOTTOM DOCK BAR (OPEN ENGLISH)
======================================================== */
.oe-dock-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: #0079ff;
  display: flex;
  align-items: center;
  justify-content: stretch;
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.oe-dock-item {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  outline: none;
}

.oe-dock-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.oe-dock-divider {
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.35);
}

