.phone-mockup-container {
  position: relative;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.phone-mockup {
  position: relative;
  width: 280px;
  max-width: 100%;
  margin: 0;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  will-change: transform, opacity;
  pointer-events: auto;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.5) 0%,
      rgba(118, 75, 162, 0.5) 100%
    ),
    #1a1a1a;
  border-radius: 43px;
  padding: 7px;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8),
    0 30px 60px -30px rgba(102, 126, 234, 0.4),
    inset 0 1px 0 rgba(102, 126, 234, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  overflow: visible;
  margin: 0 auto;
  transition: box-shadow 0.1s linear;
  will-change: box-shadow;
}

.phone-frame::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 140px;
  width: 4px;
  height: 45px;
  background: linear-gradient(
      180deg,
      rgba(102, 126, 234, 0.5) 0%,
      rgba(118, 75, 162, 0.5) 100%
    ),
    #1a1a1a;
  border-radius: 0 2px 2px 0;
  cursor: default;
  z-index: 200;
  transition: none;
}

.phone-frame::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 100px;
  width: 4px;
  height: 65px;
  background: linear-gradient(
      180deg,
      rgba(102, 126, 234, 0.5) 0%,
      rgba(118, 75, 162, 0.5) 100%
    ),
    #1a1a1a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 50px 0 rgba(118, 75, 162, 0.5), 0 50px 0 0 #1a1a1a;
}

.phone-dynamic-island {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.5) 0%,
      rgba(118, 75, 162, 0.5) 100%
    ),
    #1a1a1a;
  border-radius: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 30px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15),
    0 1px 3px rgba(118, 75, 162, 0.1), inset 0 1px 1px rgba(102, 126, 234, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.phone-dynamic-island:hover {
  width: 85px;
  height: 22px;
  border-radius: 22px;
}

.phone-dynamic-island:active {
  transform: translateX(-50%) scale(0.9);
}

.dynamic-island-camera {
  width: 5px;
  height: 5px;
  background: #1a1a2e21;
  border-radius: 50%;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f5f7fa 100%);
  border-radius: 36px;
  overflow: hidden;
}

.white-transition-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f5f7fa 100%);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.white-transition-overlay.active {
  opacity: 1;
  pointer-events: none;
}

.white-transition-overlay.show-courses {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f5f7fa 100%);
}

.courses-content {
  width: 540px;
  height: 220px;
  opacity: 0;
  transform: scale(1) rotate(-90deg);
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 8px 40px;
  transform-origin: center center;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -270px;
  margin-top: -110px;
  pointer-events: none;
  visibility: hidden;
}

.white-transition-overlay.show-courses .courses-content {
  opacity: 1;
  transform: scale(1) rotate(-90deg);
  pointer-events: none;
  visibility: visible;
}

.white-transition-overlay.show-video .courses-content {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.power-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.power-overlay.active {
  opacity: 1;
  visibility: visible;
}

.power-logo {
  animation: powerFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.power-logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(102, 126, 234, 0.4));
}

@keyframes powerFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.phone-home-indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  z-index: 30;
}

.phone-shadow {
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 30px;
  background: radial-gradient(
    ellipse,
    rgba(102, 126, 234, 0.3) 0%,
    transparent 70%
  );
  filter: blur(15px);
  z-index: -1;
}

.tap-effect {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 18px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.15);
  animation: tapPulse 0.35s linear forwards;
}

@keyframes tapPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    border-width: 18px;
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.15);
    border-width: 1px;
    opacity: 0;
  }
}

.home-screen .tap-effect {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2);
}

.safari-browser .tap-effect.tap-purple {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3),
    0 0 40px rgba(102, 126, 234, 0.2);
}

.safari-browser .tap-effect.tap-white {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2);
}

.home-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 5;
  background: #000;
}

.home-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.home-wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 182, 193, 0.9) 0%,
    rgba(255, 218, 185, 0.8) 15%,
    rgba(255, 239, 186, 0.7) 30%,
    rgba(176, 224, 230, 0.6) 50%,
    rgba(135, 206, 235, 0.7) 65%,
    rgba(70, 130, 180, 0.8) 80%,
    rgba(25, 25, 112, 0.95) 100%
  );
  opacity: 1;
  animation: wallpaperShift 20s ease-in-out infinite alternate;
}

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

.app-icons-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 60px 20px 20px;
  z-index: 2;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin: 0 auto;
  transition: none;
}

.app-icon.faded {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-icon.safari-icon {
  background: transparent;
  cursor: default;
  position: relative;
  transform-origin: center;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-icon.safari-icon.opening {
  transform: scale(15);
  z-index: 100;
}

.app-icon.safari-icon:active {
  transform: none;
}

.safari-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  transition: opacity 0.3s ease;
}

.app-icon.safari-icon.opening .safari-svg {
  opacity: 0;
}

.dock {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(30px);
  padding: 12px;
  border-radius: 20px;
  z-index: 2;
}

.safari-opening {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f5f7fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.safari-opening.active {
  opacity: 1;
  visibility: visible;
}

.safari-splash {
  animation: safariPulse 0.5s ease-out;
}

.safari-splash-icon {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 4px 20px rgba(79, 195, 247, 0.4));
}

@keyframes safariPulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.safari-browser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.2);
  transition: all 0.4s ease;
  z-index: 15;
}

.safari-browser.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  animation: safariZoomIn 0.4s ease-out;
}

@keyframes safariZoomIn {
  0% {
    opacity: 0;
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.screen-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 45px 15px 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease-in-out, transform 0.9s ease-in-out,
    filter 0.9s ease-in-out, visibility 0.9s ease-in-out;
  transform: scale(0.92);
  filter: blur(12px);
  overflow-y: auto;
  overflow-x: hidden;
}

.screen-content.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  filter: blur(0);
}

.courses-header {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 8px;
  padding-top: 0;
  opacity: 1;
  flex-shrink: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.courses-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.courses-subtitle {
  font-size: 9px;
  color: #64748b;
  font-weight: 500;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 0;
  flex: 1;
  align-content: center;
  width: 100%;
}

.course-card {
  position: relative;
  background: white;
  padding: 20px 4px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: none;
  cursor: default;
  overflow: visible;
  border: 2px solid transparent;
  opacity: 1;
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 0;
  pointer-events: none;
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-card:hover {
  transform: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.course-card:active {
  transform: none;
}

.course-card.selected {
  border-color: rgba(102, 126, 234, 0.6) !important;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
  animation: pulseCard 0.6s ease-out;
}

@keyframes pulseCard {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.course-icon {
  font-size: 24px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.15) rotate(-5deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
  75% {
    transform: scale(1.05) rotate(-3deg);
  }
}

.course-card:hover .course-icon {
  transform: scale(1.1);
}

.course-name {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
  line-height: 1.1;
}

.course-desc {
  font-size: 8px;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.2;
}

.course-stats {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 7px;
  color: #94a3b8;
}

.course-stats span {
  display: flex;
  align-items: center;
  gap: 1px;
}

.click-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.6) 0%,
    rgba(118, 75, 162, 0.4) 30%,
    rgba(102, 126, 234, 0.2) 50%,
    rgba(102, 126, 234, 0) 70%
  );
  transform: scale(0);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.3);
  filter: blur(1px);
}

.click-ripple.animate {
  animation: rippleEffect 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes rippleEffect {
  0% {
    transform: scale(0);
    opacity: 1;
    filter: blur(0);
  }
  30% {
    opacity: 0.9;
    filter: blur(2px);
  }
  60% {
    opacity: 0.5;
    filter: blur(4px);
  }
  100% {
    transform: scale(5.5);
    opacity: 0;
    filter: blur(6px);
  }
}

.landscape-tap-effect {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 18px solid rgba(102, 126, 234, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3),
    0 0 40px rgba(102, 126, 234, 0.2);
  background: transparent;
}

.landscape-tap-effect.animating {
  animation: landscapeTapPulse 0.35s linear forwards;
}

@keyframes landscapeTapPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    border-width: 18px;
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.15);
    border-width: 18px;
    opacity: 0;
  }
}

.landscape-drag-effect {
  width: 60px;
  height: 60px;
  border: 14px solid rgba(102, 126, 234, 0.6);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.3),
    0 0 30px rgba(102, 126, 234, 0.2);
  transition: width 0.2s ease, height 0.2s ease, border-width 0.2s ease;
  z-index: 99999 !important;
}

.landscape-drag-effect.dragging {
  width: 30px;
  height: 30px;
  border-width: 7px;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.4),
    0 0 20px rgba(102, 126, 234, 0.3);
}

.landscape-drag-effect.releasing {
  animation: dragRelease 0.25s linear forwards;
}

@keyframes dragRelease {
  0% {
    transform: translate(-50%, -50%) scale(1);
    width: 30px;
    height: 30px;
    border-width: 7px;
    opacity: 1;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.2);
    width: 50px;
    height: 50px;
    border-width: 10px;
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    width: 60px;
    height: 60px;
    border-width: 2px;
    opacity: 0;
  }
}

.video-player-content {
  width: 540px;
  height: 220px;
  opacity: 0;
  transform: scale(0.9) rotate(-90deg);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  gap: 8px;
  padding: 8px;
  transform-origin: center center;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -270px;
  margin-top: -110px;
  pointer-events: none;
  visibility: hidden;
}

.white-transition-overlay.show-video .video-player-content {
  opacity: 1;
  transform: scale(1) rotate(-90deg);
  pointer-events: auto;
  visibility: visible;
  animation: videoContentFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes videoContentFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.85) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-90deg);
  }
}

.video-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-player {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  position: relative;
}

.video-screen {
  position: relative;
  background: transparent;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  overflow: hidden;
}

.video-skeleton {
  position: absolute;
  top: 12px;
  width: 260px;
  height: 50px;
  background: #e2e8f0;
  border-radius: 3px;
  z-index: 10;
  opacity: 0;
  transform: scale(0.8);
  animation: showSkeleton 0.4s ease-out forwards;
  animation-delay: 0.5s;
  animation-play-state: paused;
}

.show-video .video-skeleton {
  animation-play-state: running;
}

.writing-animation {
  width: 80%;
  height: 60%;
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.writing-path {
  fill: none;
  stroke: #667eea;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  opacity: 0;
}

.writing-path.path-1 {
  animation: drawWriting 1.2s ease-in-out forwards;
  animation-delay: 0.3s;
  animation-play-state: paused;
}

.writing-path.path-2 {
  animation: drawWriting 1.2s ease-in-out forwards;
  animation-delay: 1.8s;
  animation-play-state: paused;
}

.show-video .writing-path.path-1,
.show-video .writing-path.path-2 {
  animation-play-state: running;
}

@keyframes drawWriting {
  0% {
    stroke-dashoffset: 400;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes fadeInPath {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes showSkeleton {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.problem-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 20;
}

.problem-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
}

.problem-equation {
  display: none;
}

.color-circles {
  position: absolute;
  left: 15px;
  bottom: 30px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  opacity: 0;
  z-index: 20;
}

.color-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: default;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: none;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  overflow: visible;
  position: relative;
}

.color-circle:hover {
  transform: scale(1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.color-circle.selected {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.drawing-container {
  position: absolute;
  width: 80%;
  height: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  overflow: visible;
}

.landscape-draw-effect {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid rgba(102, 126, 234, 0.8);
  background: transparent;
  box-sizing: border-box;
  transition: width 0.25s ease, height 0.25s ease, border-width 0.25s ease;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100;
}

.landscape-draw-effect.drawing {
  width: 30px;
  height: 30px;
  border-width: 2px;
}

.landscape-draw-effect.releasing {
  animation: drawRelease 0.3s ease-out forwards;
}

@keyframes drawRelease {
  0% {
    width: 30px;
    height: 30px;
    opacity: 1;
    border-width: 2px;
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
    border-width: 1px;
  }
}

.test-yourself-content {
  width: 540px;
  height: 220px;
  opacity: 0;
  transform: scale(0.9) rotate(-90deg);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  transform-origin: center center;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -270px;
  margin-top: -110px;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.white-transition-overlay.show-test .test-yourself-content {
  opacity: 1;
  transform: scale(1) rotate(-90deg);
  pointer-events: auto;
  visibility: visible;
}

.test-header {
  text-align: center;
  margin-bottom: 8px;
}

.test-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.test-subtitle {
  font-size: 8px;
  color: #64748b;
  font-weight: 500;
}

.test-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  align-content: center;
  padding: 0 10px;
}

.test-category-card {
  background: white;
  padding: 4px 3px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: none;
  cursor: default;
  border: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  pointer-events: none;
}

.test-category-card:hover {
  transform: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-color: #e2e8f0;
}

.test-category-card:active {
  transform: none;
}

.test-category-card.selected {
  border-color: rgba(102, 126, 234, 0.6) !important;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  animation: pulseCard 0.6s ease-out;
}

.test-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.test-name {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.test-desc {
  font-size: 7px;
  color: #64748b;
  margin-bottom: 3px;
  line-height: 1.3;
}

.test-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 6px;
  color: #94a3b8;
}

.quiz-screen-content {
  width: 540px;
  height: 220px;
  opacity: 0;
  transform: scale(0.9) rotate(-90deg);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  padding: 8px 15px;
  transform-origin: center center;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -270px;
  margin-top: -110px;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.white-transition-overlay.show-quiz .quiz-screen-content {
  opacity: 1;
  transform: scale(1) rotate(-90deg);
  pointer-events: auto;
  visibility: visible;
}

.quiz-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.quiz-timer {
  font-size: 9px;
  font-weight: 700;
  color: #667eea;
}

.quiz-question-number {
  font-size: 8px;
  font-weight: 600;
  color: #64748b;
}

.quiz-question-card {
  background: white;
  padding: 10px;
  border-radius: 10px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.quiz-question-card .question-text {
  font-size: 10px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  text-align: center;
  line-height: 1.3;
}

.quiz-options-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  flex: 1;
}

.quiz-option-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  cursor: default;
  transition: none;
  pointer-events: none;
}

.quiz-option-item:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.quiz-option-item.selected {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  border-color: #667eea;
  border-width: 1.5px;
}

.quiz-option-item.correct {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15) 0%,
    rgba(5, 150, 105, 0.15) 100%
  );
  border-color: #10b981;
}

.quiz-option-item.correct .option-label {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.option-label {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.quiz-option-item.selected .option-label {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.option-text {
  font-size: 8px;
  color: #334155;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  flex: 1;
}

.quiz-actions {
  margin-top: 6px;
  display: flex;
  justify-content: center;
}

.quiz-end-btn {
  padding: 6px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  cursor: default;
  transition: none;
  box-shadow: none;
  width: auto;
  pointer-events: none;
  position: relative;
  overflow: visible;
}

.quiz-end-btn:hover {
  transform: none;
  box-shadow: none;
}

.quiz-end-btn:active {
  transform: none;
}

.quiz-end-btn.selected {
  box-shadow: none;
  animation: pulseButton 0.4s ease-out;
}

@keyframes pulseButton {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.results-screen-content {
  width: 540px;
  height: 220px;
  opacity: 0;
  transform: scale(0.9) rotate(-90deg);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: row;
  padding: 15px 30px;
  transform-origin: center center;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -270px;
  margin-top: -110px;
  pointer-events: none;
  visibility: hidden;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  overflow: hidden;
}

.report-screen-content {
  width: 540px;
  height: 220px;
  opacity: 0;
  transform: scale(0.9) rotate(-90deg);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  padding: 15px 30px;
  transform-origin: center center;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -270px;
  margin-top: -110px;
  pointer-events: none;
  visibility: hidden;
  gap: 10px;
  overflow: hidden;
}

.white-transition-overlay.show-report .report-screen-content {
  opacity: 1;
  transform: scale(1) rotate(-90deg);
  pointer-events: auto;
  visibility: visible;
}

.report-header {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.report-title {
  font-size: 13px;
  font-weight: 800;
  color: white;
  margin-bottom: 3px;
}

.report-subtitle {
  font-size: 9px;
  color: white;
  font-weight: 500;
  opacity: 0.9;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: white;
  padding: 12px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  position: relative;
  overflow: visible;
}

.summary-item.selected {
  border-color: rgba(102, 126, 234, 0.6);
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
  animation: pulseCard 0.6s ease-out;
}

.summary-icon {
  font-size: 18px;
  flex-shrink: 0;
  color: #667eea;
}

.summary-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.summary-label {
  font-size: 8px;
  color: #64748b;
  font-weight: 600;
  text-align: center;
}

.summary-value {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
}

.ai-analysis-content {
  width: 540px;
  height: 220px;
  opacity: 0;
  transform: scale(0.9) rotate(-90deg);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  padding: 8px 20px;
  transform-origin: center center;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -270px;
  margin-top: -110px;
  pointer-events: none;
  visibility: hidden;
  gap: 6px;
  overflow: hidden;
}

.white-transition-overlay.show-analysis .ai-analysis-content {
  opacity: 1;
  transform: scale(1) rotate(-90deg);
  pointer-events: auto;
  visibility: visible;
}

.ai-analysis-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-header-icon {
  font-size: 12px;
  font-weight: 900;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: -0.5px;
}

.ai-header-text {
  flex: 1;
}

.ai-header-title {
  font-size: 10px;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
}

.ai-header-subtitle {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.ai-typing-area {
  flex: 1;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  min-height: 45px;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}

.ai-typing-text {
  font-size: 8px;
  line-height: 1.6;
  color: #334155;
  font-weight: 500;
  display: inline;
}

.ai-cursor {
  display: inline;
  font-size: 9px;
  color: #667eea;
  font-weight: 400;
  animation: aiCursorBlink 0.8s infinite;
  vertical-align: baseline;
}

@keyframes aiCursorBlink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.ai-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ai-stat-widget {
  background: white;
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  position: relative;
  overflow: visible;
}

.ai-stat-widget.selected {
  border-color: rgba(102, 126, 234, 0.6);
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
  animation: pulseCard 0.6s ease-out;
}

.widget-icon {
  font-size: 12px;
}

.widget-value {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.widget-label {
  font-size: 6px;
  color: #64748b;
  font-weight: 600;
}

.logo-screen-content {
  width: 540px;
  height: 220px;
  opacity: 0;
  transform: scale(0.9) rotate(-90deg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -270px;
  margin-top: -110px;
  pointer-events: none;
  visibility: hidden;
}

.white-transition-overlay.show-logo .logo-screen-content {
  opacity: 1;
  transform: scale(1) rotate(-90deg);
  pointer-events: auto;
  visibility: visible;
}

.platform-logo {
  max-width: 200px;
  max-height: 120px;
  object-fit: contain;
  animation: logoFadeIn 0.8s ease-out;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.white-transition-overlay.show-analysis .report-screen-content,
.white-transition-overlay.show-analysis .quiz-screen-content,
.white-transition-overlay.show-analysis .test-yourself-content,
.white-transition-overlay.show-analysis .courses-content,
.white-transition-overlay.show-analysis .video-player-content {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.white-transition-overlay.show-logo .ai-analysis-content,
.white-transition-overlay.show-logo .report-screen-content,
.white-transition-overlay.show-logo .quiz-screen-content,
.white-transition-overlay.show-logo .test-yourself-content,
.white-transition-overlay.show-logo .courses-content,
.white-transition-overlay.show-logo .video-player-content {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.white-transition-overlay.show-test .courses-content,
.white-transition-overlay.show-test .video-player-content {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.white-transition-overlay.show-quiz .test-yourself-content,
.white-transition-overlay.show-quiz .courses-content,
.white-transition-overlay.show-quiz .video-player-content {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.white-transition-overlay.show-report .quiz-screen-content,
.white-transition-overlay.show-report .test-yourself-content,
.white-transition-overlay.show-report .courses-content,
.white-transition-overlay.show-report .video-player-content {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.playlist-section.hidden {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.video-player-content.centered {
  justify-content: center;
}

.video-section.centered {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  transition: width 0.8s ease, transform 0.8s ease;
  transform: translateX(-80px);
}

.video-section.centered .video-player {
  flex: 1;
  transform: scale(1.15);
  transition: transform 0.8s ease;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.03) 60%,
    transparent 100%
  );
  padding: 0;
  height: 25px;
  pointer-events: none;
}

.timeline-container {
  position: absolute;
  bottom: 6px;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: visible;
  cursor: default;
  pointer-events: none;
}

.timeline-progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width: 0%;
  position: absolute;
  left: 0;
  border-radius: 2px;
  animation: timelineProgressSmooth 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  will-change: width;
}

.timeline-progress::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: white;
  border: 2px solid #667eea;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.5),
    0 0 12px rgba(102, 126, 234, 0.3);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes timelineProgressSmooth {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.5),
      0 0 12px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.7),
      0 0 20px rgba(102, 126, 234, 0.5);
  }
}

.playlist-section {
  width: 160px;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
  background: white;
  position: relative;
  z-index: 10;
}

.playlist-title {
  font-size: 10px;
  font-weight: 700;
  color: #1e293b;
}

.playlist-count {
  font-size: 6px;
  color: #64748b;
  background: #f1f5f9;
  padding: 0px 5px;
  border-radius: 5px;
}

.playlist-items {
  flex: 1;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  max-height: calc(100% - 40px);
  padding-bottom: 20px;
  scroll-behavior: auto;
  scroll-padding: 20px;
}

.playlist-items::-webkit-scrollbar {
  width: 3px;
}

.playlist-items::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 2px;
}

.playlist-items::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  background: #f8fafc;
  cursor: default;
  transition: none;
  border: 1px solid transparent;
  min-height: 38px;
  pointer-events: none;
}

.playlist-item:hover {
  background: #f8fafc;
  border-color: transparent;
}

.playlist-item.active {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-color: #667eea;
  animation: playlistItemSelect 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes playlistItemSelect {
  0% {
    transform: scale(1);
    background: white;
    border-color: transparent;
  }
  50% {
    transform: scale(0.97);
    background: linear-gradient(135deg, #667eea25 0%, #764ba225 100%);
    border-color: #667eea;
  }
  100% {
    transform: scale(1);
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-color: #667eea;
  }
}

.item-thumbnail {
  width: 50px;
  height: 32px;
  background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
  border-radius: 4px;
  flex-shrink: 0;
}

.playlist-item.active .item-thumbnail {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.item-title {
  background: #e2e8f0;
  border-radius: 2px;
  height: 8px;
  width: 50px;
  flex-shrink: 0;
  margin-top: 7px;
}

.playlist-item.active .item-title {
  background: #cbd5e1;
  width: 50px;
}

.item-meta {
  display: flex;
  gap: 6px;
  font-size: 6px;
  color: #94a3b8;
  justify-content: center;
  margin-top: 2px;
}

.item-meta span {
  display: flex;
  align-items: center;
  gap: 1px;
}

.item-status {
  font-size: 9px;
  flex-shrink: 0;
  opacity: 0;
}

.playlist-item.active .item-status {
  opacity: 1;
}

.playlist-item.active .item-status {
  animation: playingPulse 1.5s ease-in-out infinite;
}

@keyframes playingPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-text {
  flex: 1;
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.header-subtitle {
  font-size: 12px;
  color: #64748b;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.stat-box {
  background: white;
  padding: 15px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: #64748b;
}

.progress-section {
  background: white;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.progress-bar-wrapper {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quiz-timer,
.quiz-progress {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.quiz-question {
  background: white;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.question-text {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 18px;
  line-height: 1.6;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  padding: 12px 16px;
  background: #f8f9ff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
  cursor: default;
  pointer-events: none;
  transition: none;
}

.quiz-option:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.quiz-option.active {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  border-color: #667eea;
  color: #667eea;
  font-weight: 600;
}

.quiz-nav {
  display: flex;
  gap: 10px;
}

.quiz-btn {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
  transition: none;
}

.quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quiz-btn.prev {
  background: #e2e8f0;
  color: #64748b;
}

.quiz-btn.prev:hover {
  background: #cbd5e1;
  box-shadow: none;
}

.results-header {
  text-align: center;
  background: white;
  padding: 25px 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.results-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.results-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.results-score {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.results-details {
  background: white;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.result-row:last-child {
  border-bottom: none;
}

.result-value {
  font-weight: 700;
  color: #1e293b;
}

.result-value.success {
  color: #10b981;
}

.achievement-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  color: white;
}

.badge-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.badge-text {
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .phone-mockup-container {
    left: 5%;
  }

  .phone-mockup {
    width: 260px;
  }

  .phone-frame {
    width: 260px;
    height: 540px;
    border-radius: 40px;
  }

  .phone-screen {
    border-radius: 38px;
  }
}

@media (max-width: 768px) {
  .phone-mockup-container {
    position: relative;
    top: auto;
    left: auto;
    margin: 2rem auto;
    text-align: center;
  }

  .phone-mockup {
    width: 260px;
    margin: 0 auto;
  }

  .phone-frame {
    width: 260px;
    height: 540px;
  }
}

@media (max-width: 480px) {
  .phone-mockup {
    width: 220px;
  }

  .phone-frame {
    width: 220px;
    height: 460px;
    border-radius: 35px;
  }

  .phone-dynamic-island {
    width: 80px;
    height: 24px;
    top: 12px;
  }

  .phone-screen {
    border-radius: 32px;
  }

  .screen-content {
    padding: 45px 12px 25px;
  }

  .header-title {
    font-size: 14px;
  }

  .stat-value {
    font-size: 18px;
  }

  .results-score {
    font-size: 28px;
  }
}

.screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-text {
  flex: 1;
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.header-subtitle {
  font-size: 12px;
  color: #64748b;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.stat-box {
  background: white;
  padding: 15px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: #64748b;
}

.progress-section {
  background: white;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.progress-bar-wrapper {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quiz-timer,
.quiz-progress {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.quiz-question {
  background: white;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.question-text {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 18px;
  line-height: 1.6;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  padding: 12px 16px;
  background: #f8f9ff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
  cursor: default;
  pointer-events: none;
  transition: none;
}

.quiz-option:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.quiz-option.active {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  border-color: #667eea;
  color: #667eea;
  font-weight: 600;
}

.quiz-nav {
  display: flex;
  gap: 10px;
}

.quiz-btn {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
  transition: none;
}

.quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quiz-btn.prev {
  background: #e2e8f0;
  color: #64748b;
}

.quiz-btn.prev:hover {
  background: #cbd5e1;
  box-shadow: none;
}

.results-header {
  text-align: center;
  background: white;
  padding: 25px 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.results-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.results-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.results-score {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-details {
  background: white;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.result-row:last-child {
  border-bottom: none;
}

.result-value {
  font-weight: 700;
  color: #1e293b;
}

.result-value.success {
  color: #10b981;
}

.achievement-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  color: white;
}

.badge-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.badge-text {
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .phone-mockup-container {
    left: 5%;
  }

  .phone-mockup {
    width: 260px;
  }

  .phone-frame {
    width: 260px;
    height: 540px;
    border-radius: 40px;
  }

  .phone-screen {
    border-radius: 38px;
  }
}

@media (max-width: 768px) {
  .phone-mockup-container {
    position: relative;
    top: auto;
    left: auto;
    margin: 2rem auto;
    text-align: center;
  }

  .phone-mockup {
    width: 260px;
    margin: 0 auto;
  }

  .phone-frame {
    width: 260px;
    height: 540px;
  }
}

@media (max-width: 480px) {
  .phone-mockup {
    width: 220px;
  }

  .phone-frame {
    width: 220px;
    height: 460px;
    border-radius: 35px;
  }

  .phone-dynamic-island {
    width: 80px;
    height: 24px;
    top: 12px;
  }

  .phone-screen {
    border-radius: 32px;
  }

  .screen-content {
    padding: 45px 12px 25px;
  }

  .header-title {
    font-size: 14px;
  }

  .stat-value {
    font-size: 18px;
  }

  .results-score {
    font-size: 28px;
  }
}

.stat-box {
  cursor: default;
  transition: none;
  pointer-events: none;
}
.stat-box.tap-active {
  transform: none;
  box-shadow: none !important;
  background: transparent !important;
}
.quiz-option {
  transition: none;
  pointer-events: none;
}
.quiz-option.tap-active {
  transform: none;
  background: #f8f9ff !important;
  border-color: #e2e8f0 !important;
}
.quiz-btn {
  transition: none;
  pointer-events: none;
}
.quiz-btn.tap-active {
  transform: none;
  box-shadow: none !important;
  filter: none;
}
.achievement-badge {
  cursor: default;
  transition: none;
  pointer-events: none;
}
.achievement-badge.tap-active {
  transform: none;
  filter: none;
  box-shadow: none;
}

.am-phone-showcase-section {
  min-height: 200vh;
  position: relative;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 50%, #f6f8f9 100%);
  overflow: hidden;
}

.phone-animation-container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-wrapper {
  width: 300px;
  height: 600px;
  position: relative;
  transform-origin: center center;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.phone-wrapper * {
  will-change: transform, opacity;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .phone-wrapper {
    width: 240px;
    height: 500px;
  }

  .phone-frame {
    width: 240px;
    height: 500px;
    border-radius: 38px;
    padding: 6px;
  }

  .phone-screen {
    border-radius: 32px;
  }

  .am-phone-showcase-section {
    min-height: 180vh;
  }
}

@media (min-width: 992px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  .am-phone-showcase-section {
    display: none !important;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (min-width: 768px) and (max-width: 1366px) {
    .am-phone-showcase-section {
      display: none !important;
    }
  }
}

@media (max-width: 991px) {
  .am-phone-showcase-section {
    display: none !important;
  }
}
