/* ========================================
   BotCamp Trial Portal - Dark Glassmorphic Theme
   Focus AI - גרסת התנסות
   Design: Dark purple base, glass cards, subtle animations
   ======================================== */

/* -----------------------------------------
   Trial Badge in Header
   ----------------------------------------- */
.trial-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
  animation: badge-pulse 3s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3); }
  50% { box-shadow: 0 4px 16px rgba(168, 85, 247, 0.5); }
}

.trial-badge-icon {
  font-size: 0.9rem;
}

/* -----------------------------------------
   Welcome Overlay - Full Screen Dark BG
   ----------------------------------------- */
.trial-welcome-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg,
    #100818 0%,
    #150d20 30%,
    #120a1a 60%,
    #0d0612 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  direction: rtl;
  overflow: hidden;
}

/* Background Grid */
.welcome-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Floating Orbs */
.welcome-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
}

.welcome-orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 60%);
  opacity: 0.15;
  animation: floatOrb1 30s ease-in-out infinite;
}

.welcome-orb-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, #a855f7 0%, transparent 60%);
  opacity: 0.12;
  animation: floatOrb2 25s ease-in-out infinite;
}

.welcome-orb-3 {
  width: 350px;
  height: 350px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #ec4899 0%, transparent 60%);
  opacity: 0.06;
  animation: floatOrb3 20s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 40px) scale(1.05); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* Code Rain */
.welcome-code-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.code-snippet {
  position: absolute;
  bottom: -30px;
  font-family: 'Courier New', monospace;
  color: #a855f7;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
  animation: floatUp linear forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; }
  5% { opacity: var(--snippet-opacity, 0.15); }
  90% { opacity: var(--snippet-opacity, 0.15); }
  100% { transform: translateY(calc(-100vh - 50px)); opacity: 0; }
}

/* -----------------------------------------
   Floating Photos
   ----------------------------------------- */
.welcome-floating-photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-photo {
  position: absolute;
  width: 180px;
  height: auto;
  border-radius: 14px;
  opacity: 0;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.12);
  object-fit: cover;
  animation: photoFadeIn 1.2s ease forwards;
  pointer-events: none;
}

@keyframes photoFadeIn {
  from { opacity: 0; transform: translateY(20px) rotate(var(--fp-rotate, 0deg)); }
  to { opacity: var(--fp-opacity, 0.35); transform: translateY(0) rotate(var(--fp-rotate, 0deg)); }
}

.fp-1 {
  --fp-rotate: -4deg;
  --fp-opacity: 0.3;
  right: 3%;
  top: 8%;
  width: 200px;
  animation-delay: 0.3s;
}

.fp-2 {
  --fp-rotate: 3deg;
  --fp-opacity: 0.25;
  right: 5%;
  bottom: 18%;
  width: 160px;
  animation-delay: 0.6s;
}

.fp-3 {
  --fp-rotate: 5deg;
  --fp-opacity: 0.28;
  left: 3%;
  top: 12%;
  width: 190px;
  animation-delay: 0.5s;
}

.fp-4 {
  --fp-rotate: -3deg;
  --fp-opacity: 0.22;
  left: 6%;
  bottom: 25%;
  width: 150px;
  animation-delay: 0.8s;
}

.fp-5 {
  --fp-rotate: 2deg;
  --fp-opacity: 0.2;
  left: 2%;
  bottom: 5%;
  width: 140px;
  animation-delay: 1s;
}

/* -----------------------------------------
   Glassmorphism Card
   ----------------------------------------- */
.trial-welcome-card {
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(145deg,
    rgba(30, 20, 45, 0.85),
    rgba(18, 12, 28, 0.92));
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 20px;
  padding: 35px 30px;
  max-width: 520px;
  width: 92%;
  text-align: center;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(168, 85, 247, 0.08);
  animation: cardAppear 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  max-height: 92vh;
  overflow-y: auto;
}

/* Card scrollbar */
.trial-welcome-card::-webkit-scrollbar {
  width: 4px;
}

.trial-welcome-card::-webkit-scrollbar-track {
  background: rgba(168, 85, 247, 0.03);
  border-radius: 4px;
}

.trial-welcome-card::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.15);
  border-radius: 4px;
}

.trial-welcome-card::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.25);
}

/* Mobile: stacked layout (default) */
.welcome-hero,
.welcome-body {
  display: contents;
}

/* Desktop: Two-column landscape card */
@media (min-width: 900px) {
  .trial-welcome-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: 1fr auto auto;
    gap: 0 28px;
    max-width: 800px;
    padding: 40px 42px;
    text-align: right;
    max-height: 85vh;
  }

  .welcome-hero {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-inline-end: 1px solid rgba(168, 85, 247, 0.1);
    padding-inline-end: 28px;
  }

  .welcome-hero .welcome-badge {
    margin-bottom: 12px;
  }

  .welcome-hero h1 {
    text-align: center;
    font-size: 1.65rem;
  }

  .welcome-hero .welcome-subtitle {
    text-align: center;
    font-size: 0.92rem;
    margin-bottom: 0;
  }

  .welcome-body {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 55vh;
  }

  .welcome-body::-webkit-scrollbar {
    width: 3px;
  }

  .welcome-body::-webkit-scrollbar-track {
    background: transparent;
  }

  .welcome-body::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.15);
    border-radius: 3px;
  }

  .trial-start-btn {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .welcome-disclaimer {
    grid-column: 1 / -1;
    text-align: center;
  }

  .welcome-features {
    text-align: right;
  }
}

@keyframes cardAppear {
  from { opacity: 0; transform: scale(0.92) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Top glow line */
.trial-welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(168, 85, 247, 0.5) 50%, transparent);
  border-radius: 1px;
}

/* Bottom gradient accent */
.trial-welcome-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent, #ec4899, #a855f7, #06b6d4, transparent);
  opacity: 0.6;
}

/* -----------------------------------------
   Logo
   ----------------------------------------- */
.welcome-logo {
  max-width: 140px;
  height: auto;
  margin-bottom: 16px;
  opacity: 0.9;
  animation: logoFadeIn 0.8s ease 0.1s both;
}

@keyframes logoFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 0.9; transform: scale(1); }
}

/* -----------------------------------------
   Badge
   ----------------------------------------- */
.welcome-badge {
  display: inline-block;
  background: linear-gradient(135deg,
    rgba(168, 85, 247, 0.15),
    rgba(236, 72, 153, 0.1));
  color: #c084fc;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  animation: badgeFadeIn 0.8s ease 0.2s both;
}

@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------
   Title
   ----------------------------------------- */
.trial-welcome-card h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  background: linear-gradient(135deg,
    #fff 0%, #e9d5ff 30%, #fff 60%, #c4b5fd 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleFadeIn 0.8s ease 0.3s both, titleGradientShift 6s ease-in-out 1s infinite;
}

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

@keyframes titleGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.accent-text {
  background: linear-gradient(90deg, #ec4899, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.welcome-subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  margin-bottom: 20px;
  animation: subtitleFadeIn 0.8s ease 0.4s both;
}

@keyframes subtitleFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -----------------------------------------
   View Selector - Pill Tabs
   ----------------------------------------- */
.welcome-selector {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
  animation: selectorFadeIn 0.8s ease 0.45s both;
}

@keyframes selectorFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.selector-tab {
  padding: 6px 16px;
  background: transparent;
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.selector-tab:hover {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(168, 85, 247, 0.25);
}

.selector-tab.active {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

/* -----------------------------------------
   Switchable Views
   ----------------------------------------- */
.welcome-view {
  display: none;
}

.welcome-view.active {
  display: block;
  animation: viewFadeIn 0.35s ease;
}

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

/* -----------------------------------------
   Features
   ----------------------------------------- */
.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  text-align: right;
  animation: featuresFadeIn 0.8s ease 0.5s both;
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.22);
  transform: translateX(-3px);
}

.feature-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.15);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon-box {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.3);
  transform: scale(1.05);
}

/* -----------------------------------------
   Stats
   ----------------------------------------- */
.welcome-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 16px 0;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  animation: statsFadeIn 0.8s ease 0.6s both;
}

@keyframes statsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c084fc, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: #a1a1aa;
}

/* -----------------------------------------
   Curriculum List (View 2)
   ----------------------------------------- */
.curriculum-list {
  max-height: 290px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-left: 4px;
}

.curriculum-list::-webkit-scrollbar {
  width: 4px;
}

.curriculum-list::-webkit-scrollbar-track {
  background: rgba(168, 85, 247, 0.05);
  border-radius: 4px;
}

.curriculum-list::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.2);
  border-radius: 4px;
}

.curriculum-list::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.35);
}

.curriculum-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.curriculum-item:last-child {
  border-bottom: none;
}

.curriculum-item:hover {
  background: rgba(168, 85, 247, 0.06);
  border-radius: 8px;
}

.curriculum-item.free {
  color: rgba(255, 255, 255, 0.9);
}

.curriculum-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.12);
  color: #a1a1aa;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.curriculum-item.free .curriculum-number {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.25);
  color: #c084fc;
}

.curriculum-title {
  flex: 1;
  text-align: right;
  line-height: 1.4;
}

.curriculum-free-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.curriculum-bonus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.08);
  border-radius: 10px;
  margin-bottom: 4px;
}

.bonus-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #c084fc;
}

.bonus-items {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  line-height: 1.5;
}

/* -----------------------------------------
   CTA Button
   ----------------------------------------- */
.trial-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
  animation: btnFadeIn 0.8s ease 0.7s both, btnGlow 3s ease-in-out 2s infinite;
}

.trial-start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.trial-start-btn:active {
  transform: translateY(-1px);
}

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

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3); }
  50% { box-shadow: 0 6px 30px rgba(168, 85, 247, 0.5), 0 0 40px rgba(236, 72, 153, 0.15); }
}

.trial-start-btn svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.trial-start-btn:hover svg {
  transform: rotate(180deg) translateX(4px);
}

/* Disclaimer */
.welcome-disclaimer {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  animation: disclaimerFadeIn 0.8s ease 0.8s both;
}

@keyframes disclaimerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -----------------------------------------
   Locked Lesson Styles
   ----------------------------------------- */
.nav-link.locked {
  opacity: 0.75;
  position: relative;
}

.nav-link.locked .nav-icon::after {
  content: '🔒';
  position: absolute;
  font-size: 0.7rem;
  margin-right: -8px;
  margin-top: -5px;
}

.nav-link.locked:hover {
  background: linear-gradient(135deg,
    rgba(168, 85, 247, 0.1) 0%,
    rgba(236, 72, 153, 0.06) 100%);
}

.nav-link.locked:hover .nav-text {
  color: #7c3aed;
}

.lesson-topics[data-locked="true"] {
  display: none !important;
}

.lesson-lock-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #7c3aed;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* -----------------------------------------
   Locked Lesson Modal
   ----------------------------------------- */
.locked-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
}

.locked-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.locked-modal-content {
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(145deg,
    rgba(30, 20, 45, 0.9),
    rgba(18, 12, 28, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 20px;
  padding: 35px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.08);
  animation: modalAppear 0.3s ease;
}

.locked-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(168, 85, 247, 0.4) 50%, transparent);
}

@keyframes modalAppear {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background: rgba(168, 85, 247, 0.08);
  border-radius: 50%;
  font-size: 1.5rem;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.locked-lesson-preview {
  text-align: center;
  margin-bottom: 25px;
}

.locked-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.locked-lesson-preview h2 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 10px;
  border: none;
  padding: 0;
}

.locked-desc {
  color: #a1a1aa;
  margin-bottom: 20px;
}

.locked-topics-preview {
  text-align: right;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.1);
  padding: 20px;
  border-radius: 12px;
}

.locked-topics-preview h4 {
  font-size: 0.95rem;
  color: #c084fc;
  margin-bottom: 12px;
}

.locked-topics-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.locked-topics-preview li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.08);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.locked-topics-preview li::before {
  content: '✦';
  color: #a855f7;
}

.locked-topics-preview li:last-child {
  border-bottom: none;
}

.locked-cta-section {
  text-align: center;
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.trust-badge {
  font-size: 0.8rem;
  color: #34d399;
  font-weight: 500;
}

.locked-upgrade-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.locked-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
  color: white;
}

.continue-trial-btn {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(161, 161, 170, 0.3);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.continue-trial-btn:hover {
  color: #c084fc;
  text-decoration-color: rgba(192, 132, 252, 0.4);
}

/* -----------------------------------------
   Upgrade Panel (After Lesson Completion)
   ----------------------------------------- */
.upgrade-panel {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.06) 0%,
    rgba(139, 92, 246, 0.08) 50%,
    rgba(236, 72, 153, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-right: 4px solid #8b5cf6;
  border-radius: 16px;
  padding: 30px;
  margin: 40px auto;
  max-width: 600px;
  direction: rtl;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.upgrade-celebration {
  text-align: center;
  margin-bottom: 25px;
}

.celebration-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.upgrade-celebration h3 {
  color: #6b21a8;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.upgrade-celebration p {
  color: #7c3aed;
}

.upgrade-preview h4 {
  color: #6b21a8;
  margin-bottom: 15px;
}

.upgrade-preview ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.upgrade-preview li {
  padding: 8px 0;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.upgrade-preview li:last-child {
  border-bottom: none;
}

.upgrade-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.upgrade-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
  color: white;
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.upgrade-cta-btn:hover .cta-arrow {
  transform: translateX(-5px);
}

/* -----------------------------------------
   Progress Indicator (Trial)
   ----------------------------------------- */
.progress-container.trial-progress {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.06) 0%,
    rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.trial-progress-note {
  font-size: 0.75rem;
  color: #6b21a8;
  margin-top: 8px;
  text-align: center;
}

/* -----------------------------------------
   Footer Trial Styling
   ----------------------------------------- */
.trial-footer .footer-upgrade-banner {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.footer-upgrade-banner p {
  color: white;
  margin: 0;
  font-size: 0.9rem;
}

.footer-upgrade-banner a {
  color: #fef3c7;
  text-decoration: underline;
  font-weight: 600;
}

.footer-upgrade-banner a:hover {
  color: white;
}

.trial-version-tag {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 10px;
}

/* -----------------------------------------
   Celebration Toast
   ----------------------------------------- */
.trial-celebration-toast {
  position: fixed;
  top: 100px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  animation: toast-appear 0.5s ease, toast-disappear 0.5s ease 3s forwards;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  direction: rtl;
}

@keyframes toast-appear {
  from { opacity: 0; transform: translateX(50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(50%) translateY(0); }
}

@keyframes toast-disappear {
  from { opacity: 1; transform: translateX(50%) translateY(0); }
  to { opacity: 0; transform: translateX(50%) translateY(-20px); }
}

.toast-icon {
  font-size: 1.3rem;
}

/* -----------------------------------------
   Demo Conversation Styles
   ----------------------------------------- */
.user-typing-indicator {
  display: flex;
  justify-content: flex-start;
  padding: 8px 12px;
  margin: 4px 0;
}

.user-typing-indicator span {
  background: rgba(99, 102, 241, 0.08);
  color: #6b21a8;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  animation: typing-pulse 1s ease-in-out infinite;
}

@keyframes typing-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.companion-message.system-message {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

.system-message-content {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #6b21a8;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.demo-message {
  animation: message-appear 0.3s ease;
}

@keyframes message-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-upgrade-prompt {
  margin: 20px 0 10px;
  padding: 0 10px;
}

.demo-prompt-content {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.demo-prompt-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: white !important;
}

.demo-prompt-content p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 15px;
  color: white !important;
}

.demo-upgrade-btn {
  display: inline-block;
  background: white;
  color: #a855f7;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.demo-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Demo typing cursor effect in input */
.companion-input.demo-typing-active {
  caret-color: #6366f1;
  animation: demo-cursor-blink 0.8s ease-in-out infinite;
}

@keyframes demo-cursor-blink {
  0%, 100% { border-color: rgba(99, 102, 241, 0.3); }
  50% { border-color: rgba(99, 102, 241, 0.7); }
}

/* -----------------------------------------
   Wide Desktop
   ----------------------------------------- */
@media (min-width: 1200px) {
  .trial-welcome-card {
    max-width: 860px;
    padding: 44px 48px;
  }

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

  .welcome-logo {
    max-width: 155px;
  }
}

/* -----------------------------------------
   Responsive: Hide Photos
   ----------------------------------------- */
@media (max-width: 1200px) {
  .floating-photo {
    width: 140px !important;
  }
  .fp-1 { right: 1%; }
  .fp-2 { right: 2%; }
  .fp-3 { left: 1%; }
  .fp-4 { left: 2%; }
  .fp-5 { left: 0%; }
}

@media (max-width: 1024px) {
  .welcome-floating-photos {
    display: none;
  }
}

/* -----------------------------------------
   Responsive: Tablet
   ----------------------------------------- */
@media (max-width: 768px) {
  .trial-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .trial-welcome-card {
    padding: 28px 22px;
    margin: 12px;
    max-width: calc(100% - 24px);
    max-height: 94vh;
    text-align: center;
  }

  .welcome-logo {
    max-width: 110px;
    margin-bottom: 12px;
  }

  .trial-welcome-card h1 {
    font-size: 1.5rem;
  }

  .welcome-subtitle {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .welcome-badge {
    margin-bottom: 16px;
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .welcome-stats {
    gap: 18px;
    padding: 14px 0;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .feature-item {
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .feature-icon-box {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .welcome-selector {
    margin-bottom: 16px;
  }

  .selector-tab {
    padding: 5px 12px;
    font-size: 0.76rem;
  }

  .curriculum-list {
    max-height: 240px;
  }

  .trial-start-btn {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .welcome-orb-1 {
    width: 400px;
    height: 400px;
  }

  .welcome-orb-2 {
    width: 350px;
    height: 350px;
  }

  .welcome-orb-3 {
    width: 250px;
    height: 250px;
  }

  .locked-modal-content {
    padding: 25px 20px;
    margin: 15px;
  }

  .upgrade-panel {
    margin: 20px 10px;
    padding: 20px;
  }

  .trial-celebration-toast {
    right: 10px;
    left: 10px;
    transform: none;
    justify-content: center;
  }
}

/* -----------------------------------------
   Responsive: Small Phones
   ----------------------------------------- */
@media (max-width: 480px) {
  .trial-badge {
    display: none;
  }

  .trial-welcome-card {
    padding: 22px 16px;
    border-radius: 16px;
    max-height: 96vh;
  }

  .welcome-logo {
    max-width: 90px;
    margin-bottom: 10px;
  }

  .trial-welcome-card h1 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .welcome-subtitle {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  .welcome-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .welcome-stats {
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }

  .stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .stat-number {
    font-size: 1.1rem;
  }

  .feature-item {
    padding: 8px 10px;
    font-size: 0.85rem;
    gap: 10px;
  }

  .feature-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.85rem;
  }

  .welcome-features {
    gap: 8px;
    margin-bottom: 16px;
  }

  .selector-tab {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .curriculum-list {
    max-height: 200px;
  }

  .curriculum-item {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .curriculum-number {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }

  .trial-start-btn {
    padding: 13px 18px;
    font-size: 0.95rem;
  }

  .welcome-disclaimer {
    font-size: 0.78rem;
    margin-top: 10px;
  }

  .welcome-orb-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
  }

  .welcome-orb-2 {
    width: 250px;
    height: 250px;
    bottom: -120px;
    left: -120px;
  }

  .welcome-orb-3 {
    display: none;
  }

  .trust-badges {
    flex-direction: column;
    gap: 8px;
  }
}

/* -----------------------------------------
   Responsive: Very Small Phones
   ----------------------------------------- */
@media (max-width: 360px) {
  .trial-welcome-card {
    padding: 18px 14px;
    margin: 8px;
    max-width: calc(100% - 16px);
  }

  .welcome-logo {
    max-width: 75px;
  }

  .trial-welcome-card h1 {
    font-size: 1.1rem;
  }

  .welcome-subtitle {
    font-size: 0.82rem;
  }

  .welcome-stats {
    gap: 6px;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .feature-item {
    font-size: 0.8rem;
  }

  .curriculum-list {
    max-height: 170px;
  }

  .welcome-orb-1,
  .welcome-orb-2 {
    width: 200px;
    height: 200px;
  }
}
