/* xl - DESKTOP STYLES */ 
@media (min-width: 1200px) {
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  :root {
      --primary: #6C5CE7;
      --primary-light: #a29bfe;
      --primary-dark: #5849c2;
      --secondary: #00D9FF;
      --accent: #FF6B9D;
      --accent-orange: #FFB347;
      --dark: #1e2a3a;
      --darker: #162032;
      --darkest: #0f1829;
      --card-bg: rgba(22, 32, 50, 0.95);
      --light: #ffffff;
      --gray: #7a8ba3;
      --gray-light: #9aa8bd;
      --success: #00E676;
      --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #00D9FF 100%);
      --gradient-accent: linear-gradient(135deg, #FF6B9D 0%, #FFB347 100%);
      --gradient-btn: linear-gradient(135deg, #00D9FF 0%, #6C5CE7 100%);
      --langly-purple-dark: #4a2c82;
      --langly-purple: #6b4799;
      --langly-purple-light: #8b5fbf;
      --langly-violet: #9370db;
  }
  
  .langly-widget-section {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      color: var(--light);
  }
  
  .bg-gradient {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(160deg,
          #1a0f2e 0%,
          #261440 20%,
          #301a50 40%,
          #3a2060 60%,
          #301a50 80%,
          #1a0f2e 100%);
      z-index: 0;
  }
  
  @keyframes bgPulse {
      0% { opacity: 1; }
      100% { opacity: 0.8; }
  }
  
  .orb {
      position: fixed;
      border-radius: 50%;
      filter: blur(120px);
      z-index: 0;
      animation: float 20s infinite ease-in-out;
  }
  
  .orb-1 {
      width: 600px;
      height: 600px;
      background: rgba(138, 79, 201, 0.25);
      top: -200px;
      left: -150px;
  }
  
  .orb-2 {
      width: 500px;
      height: 500px;
      background: rgba(90, 54, 144, 0.35);
      bottom: -150px;
      right: -100px;
      animation-delay: -10s;
  }
  
  .orb-3 {
      width: 350px;
      height: 350px;
      background: rgba(180, 130, 230, 0.15);
      top: 40%;
      right: 20%;
      animation-delay: -5s;
  }
  
  @keyframes float {
      0%, 100% { transform: translate(0, 0) scale(1); }
      25% { transform: translate(30px, -30px) scale(1.05); }
      50% { transform: translate(-20px, 20px) scale(0.95); }
      75% { transform: translate(20px, 30px) scale(1.02); }
  }
  
  .grid-pattern {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
          linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
      background-size: 60px 60px;
      z-index: 0;
  }
  
  .hero {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 60px;
  }
  
  .hero-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 80px;
      max-width: 1400px;
      width: 100%;
  }
  
  .hero-content {
      flex: 1;
      max-width: 600px;
  }
  
  .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 50px;
      font-size: 12px;
      font-weight: 600;
      color: var(--light);
      margin-bottom: 24px;
      text-transform: uppercase;
      letter-spacing: 1px;
      backdrop-filter: blur(10px);
  }
  
  .hero-badge svg {
      width: 16px;
      height: 16px;
  }
  
  .hero-title {
      font-size: 3.2rem;
      font-weight: 800;
      line-height: 1.15;
      margin-bottom: 12px;
      letter-spacing: -0.5px;
      color: var(--light);
  }
  
  .hero-title span {
      background: linear-gradient(135deg, #FF6B6B 0%, #FFB347 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .accent-line {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 20px;
  }
  
  .accent-dot {
      width: 8px;
      height: 8px;
      background: var(--light);
      border-radius: 50%;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  
  .accent-bar {
      width: 60px;
      height: 2px;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
  }
  
  .hero-description {
      font-size: 1.05rem;
      line-height: 1.7;
      color: rgba(255, 255, 255, 0.85);
      margin-bottom: 32px;
  }
  
  .hero-cta {
      display: flex;
      flex-direction: column;
      gap: 16px;
  }
  
  .cta-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 16px 40px;
      background: var(--light);
      border: none;
      border-radius: 50px;
      color: #6b4799;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
      width: fit-content;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }
  
  .cta-button:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  }
  
  .cta-button svg {
      width: 18px;
      height: 18px;
      transition: transform 0.3s;
      stroke: #6b4799;
  }
  
  .cta-button:hover svg {
      transform: translateX(4px);
  }
  
  .cta-button-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 16px 40px;
      background: transparent;
      border: 2px solid rgba(255, 255, 255, 0.5);
      border-radius: 50px;
      color: var(--light);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      width: fit-content;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }
  
  .cta-button-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.8);
  }
  
  .cta-subtext {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.7);
  }
  
  .cta-subtext a {
      color: var(--light);
      text-decoration: underline;
      text-underline-offset: 2px;
      font-weight: 500;
      transition: opacity 0.2s;
  }
  
  .cta-subtext a:hover {
      opacity: 0.8;
  }
  
  .widget-container {
      position: relative;
      flex-shrink: 0;
  }
  
  .widget-frame {
      position: relative;
      padding: 24px;
      border: 1px dashed rgba(255, 255, 255, 0.25);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.03);
  }
  
  .widget-frame::before,
  .widget-frame::after,
  .corner-bl,
  .corner-br {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      border-color: rgba(255, 255, 255, 0.6);
      border-style: solid;
  }
  
  .widget-frame::before {
      top: -1px;
      left: -1px;
      border-width: 2px 0 0 2px;
      border-radius: 8px 0 0 0;
  }
  
  .widget-frame::after {
      top: -1px;
      right: -1px;
      border-width: 2px 2px 0 0;
      border-radius: 0 8px 0 0;
  }
  
  .corner-bl {
      bottom: -1px;
      left: -1px;
      border-width: 0 0 2px 2px;
      border-radius: 0 0 0 8px;
  }
  
  .corner-br {
      bottom: -1px;
      right: -1px;
      border-width: 0 2px 2px 0;
      border-radius: 0 0 8px 0;
  }
  
  .widget-label {
      position: absolute;
      top: -24px;
      left: 50%;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 8px;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 50px;
      font-size: 11px;
      font-weight: 600;
      color: var(--light);
      margin-bottom: 24px;
      text-transform: uppercase;
      letter-spacing: 1px;
      backdrop-filter: blur(10px);
  }
  
  .status-indicator {
      position: absolute;
      top: 24px;
      right: -6px;
      width: 12px;
      height: 12px;
      background: var(--success);
      border-radius: 50%;
      border: 3px solid var(--darkest);
      box-shadow: 0 0 10px var(--success);
      animation: statusPulse 2s infinite;
  }
  
  @keyframes statusPulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.2); opacity: 0.8; }
  }
  
  .chat-window {
      width: 400px;
      height: 480px;
      max-height: 70vh;
      background: var(--card-bg);
      border-radius: 20px;
      box-shadow: 
          0 25px 80px rgba(0, 0, 0, 0.4),
          0 0 0 1px rgba(255, 255, 255, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.1);
      overflow: hidden;
      backdrop-filter: blur(20px);
      display: flex;
      flex-direction: column;
  }
  
  .chat-window::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--gradient-primary);
      z-index: 10;
      border-radius: 20px 20px 0 0;
  }
  
  .chat-header {
      background: linear-gradient(180deg, rgba(108, 92, 231, 0.12) 0%, rgba(108, 92, 231, 0.05) 100%);
      padding: 16px 18px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
  }
  
  .ai-avatar {
      position: relative;
      width: 44px;
      height: 44px;
      flex-shrink: 0;
  }
  
  .ai-avatar-inner {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 
          0 6px 20px rgba(108, 92, 231, 0.4),
          inset 0 1px 0 rgba(255, 255, 255, 0.2);
      position: relative;
      overflow: hidden;
  }
  
  .ai-avatar-inner::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(
          45deg,
          transparent 30%,
          rgba(255, 255, 255, 0.1) 50%,
          transparent 70%
      );
      z-index: 3;
      animation: shimmer 3s infinite linear;
  }
  
  @keyframes shimmer {
      from { transform: translateX(-100%) rotate(45deg); }
      to { transform: translateX(100%) rotate(45deg); }
  }
  
  .ai-avatar-inner svg {
      width: 22px;
      height: 22px;
      color: white;
      position: relative;
      z-index: 1;
  }
  
  .ai-status-dot {
      position: absolute;
      bottom: -2px;
      right: -2px;
      width: 12px;
      height: 12px;
      background: var(--success);
      border-radius: 50%;
      border: 2px solid var(--darker);
      box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
      z-index: 2;
  }
  
  .ai-info {
      flex: 1;
      min-width: 0;
  }
  
  .ai-info h3 {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 2px;
      display: flex;
      align-items: center;
      gap: 6px;
  }
  
  .verified-badge {
      width: 14px;
      height: 14px;
      background: var(--secondary);
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
  }
  
  .verified-badge svg {
      width: 8px;
      height: 8px;
      color: var(--darkest);
  }
  
  .ai-info p {
      font-size: 11px;
      color: var(--success);
      display: flex;
      align-items: center;
      gap: 5px;
  }
  
  .status-dot {
      width: 5px;
      height: 5px;
      background: var(--success);
      border-radius: 50%;
      animation: blink 2s infinite;
  }
  
  @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
  }
  
  .header-badge {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 20px;
      font-size: 10px;
      font-weight: 600;
      color: var(--accent-white);
      flex-shrink: 0;
      letter-spacing: 1.5px;
  }
  
  .chat-body {
      flex: 1;
      padding: 14px;
      overflow-y: auto;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      gap: 10px;
      scroll-behavior: smooth;
      min-height: 0;
  }
  
  .chat-body::-webkit-scrollbar {
      width: 4px;
  }
  
  .chat-body::-webkit-scrollbar-track {
      background: transparent;
  }
  
  .chat-body::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 2px;
  }
  
  .message {
      display: flex;
      gap: 8px;
      animation: messageSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      opacity: 0;
      animation-fill-mode: forwards;
  }
  
  @keyframes messageSlide {
      from { 
          opacity: 0; 
          transform: translateY(12px) scale(0.98); 
      }
      to { 
          opacity: 1; 
          transform: translateY(0) scale(1); 
      }
  }
  
  .message.user {
      flex-direction: row-reverse;
  }
  
  .message-avatar {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 12px;
  }
  
  .message:not(.user) .message-avatar {
      background: var(--gradient-primary);
      box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
  }
  
  .message.user .message-avatar {
      background: linear-gradient(135deg, rgba(167, 33, 245, 0.9), rgba(255, 255, 255, 0.85));
      box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
  }
  
  .message-content {
      max-width: 85%;
  }
  
  .message-bubble {
      padding: 10px 14px;
      border-radius: 16px;
      font-size: 13px;
      line-height: 1.5;
  }
  
  .message:not(.user) .message-bubble {
      background: rgba(108, 92, 231, 0.12);
      border: 1px solid rgba(108, 92, 231, 0.15);
      border-bottom-left-radius: 4px;
  }
  
  .message.user .message-bubble {
      background: var(--gradient-primary);
      border-bottom-right-radius: 4px;
      box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
  }
  
  .message-bubble strong {
      color: var(--secondary);
      font-weight: 600;
  }
  
  .typing-indicator {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 12px 16px;
      background: rgba(108, 92, 231, 0.12);
      border: 1px solid rgba(108, 92, 231, 0.15);
      border-radius: 16px;
      border-bottom-left-radius: 4px;
      width: fit-content;
  }
  
  .typing-indicator span {
      width: 6px;
      height: 6px;
      background: var(--primary-light);
      border-radius: 50%;
      animation: typingBounce 1.4s infinite ease-in-out;
  }
  
  .typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
  .typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
  
  @keyframes typingBounce {
      0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
      30% { transform: translateY(-6px); opacity: 1; }
  }
  
  .response-options {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 4px;
      animation: optionsFade 0.5s ease-out 0.2s both;
  }
  
  @keyframes optionsFade {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
  }
  
  .response-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      color: var(--light);
      font-size: 12px;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      text-align: left;
  }
  
  .response-btn:hover {
      background: rgba(108, 92, 231, 0.15);
      border-color: rgba(108, 92, 231, 0.4);
      transform: translateX(4px);
  }
  
  .response-btn.selected {
      background: rgba(108, 92, 231, 0.25);
      border-color: var(--primary);
  }
  
  .response-btn .icon {
      width: 28px;
      height: 28px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      flex-shrink: 0;
      transition: all 0.25s;
  }
  
  .response-btn:hover .icon {
      background: rgba(108, 92, 231, 0.3);
  }
  
  .response-btn.selected .icon {
      background: var(--primary);
  }
  
  .options-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 6px;
      margin-top: 4px;
  }
  
  .option-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 12px 8px;
      background: rgba(255, 255, 255, 0.03);
      border: 1.5px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .option-card:hover {
      background: rgba(108, 92, 231, 0.12);
      border-color: rgba(108, 92, 231, 0.4);
      transform: translateY(-2px);
  }
  
  .option-card.selected {
      background: rgba(108, 92, 231, 0.2);
      border-color: var(--primary);
  }
  
  .option-card.correct {
      background: rgba(0, 230, 118, 0.15);
      border-color: var(--success);
  }
  
  .option-card.incorrect {
      background: rgba(255, 107, 157, 0.15);
      border-color: var(--accent);
  }
  
  .option-card .emoji {
      font-size: 28px;
      line-height: 1;
      transition: transform 0.25s;
  }
  
  .option-card:hover .emoji {
      transform: scale(1.1);
  }
  
  .option-card .label {
      font-size: 10px;
      color: var(--gray);
      text-align: center;
      font-weight: 500;
  }
  
  .word-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 8px;
  }
  
  .word-chip {
      padding: 8px 12px;
      background: var(--gradient-primary);
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
      box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
  }
  
  .word-chip:hover {
      transform: translateY(-2px) scale(1.02);
  }
  
  .word-chip.used {
      opacity: 0.25;
      pointer-events: none;
      transform: scale(0.95);
  }
  
  .sentence-builder {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      padding: 10px;
      background: rgba(255, 255, 255, 0.02);
      border: 2px dashed rgba(108, 92, 231, 0.25);
      border-radius: 10px;
      min-height: 42px;
      margin-bottom: 8px;
      transition: all 0.3s;
  }
  
  .sentence-builder .placeholder {
      color: var(--gray);
      font-size: 11px;
  }
  
  .sentence-builder.has-words {
      border-style: solid;
      border-color: rgba(108, 92, 231, 0.4);
      background: rgba(108, 92, 231, 0.05);
  }
  
  .sentence-builder.correct {
      border-color: var(--success);
      background: rgba(0, 230, 118, 0.08);
  }
  
  .sentence-builder.incorrect {
      border-color: var(--accent);
      background: rgba(255, 107, 157, 0.08);
  }
  
  .sentence-builder .placed-word {
      padding: 6px 10px;
      background: var(--primary);
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
  }
  
  .audio-box {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px;
      background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(108, 92, 231, 0.08) 100%);
      border: 1px solid rgba(0, 217, 255, 0.2);
      border-radius: 12px;
      margin: 8px 0;
  }
  
  .play-btn {
      width: 36px;
      height: 36px;
      background: var(--gradient-primary);
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.25s;
      flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
  }
  
  .play-btn:hover {
      transform: scale(1.1);
  }
  
  .play-btn svg {
      width: 14px;
      height: 14px;
      color: white;
      margin-left: 2px;
  }
  
  .audio-visual {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 2px;
      height: 24px;
  }
  
  .audio-bar {
      width: 2px;
      background: var(--secondary);
      border-radius: 1px;
      opacity: 0.35;
      transition: all 0.1s;
  }
  
  .audio-bar.active {
      opacity: 1;
  }
  
  .audio-text {
      font-size: 11px;
      color: var(--gray);
      font-style: italic;
      margin-top: 4px;
  }
  
  .context-box {
      padding: 10px 12px;
      background: linear-gradient(135deg, rgba(255, 179, 71, 0.08) 0%, rgba(255, 107, 157, 0.05) 100%);
      border-left: 3px solid var(--accent-orange);
      border-radius: 0 10px 10px 0;
      margin: 8px 0;
  }
  
  .context-box .situation {
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--accent-orange);
      margin-bottom: 4px;
      font-weight: 700;
  }
  
  .context-box .text {
      font-size: 12px;
      line-height: 1.4;
  }
  
  .progress-container {
      padding: 10px 14px 12px;
      background: rgba(0, 0, 0, 0.3);
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      flex-shrink: 0;
  }
  
  .progress-bar {
      height: 4px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 2px;
      overflow: hidden;
  }
  
  .progress-fill {
      height: 100%;
      background: var(--gradient-primary);
      border-radius: 2px;
      transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 0 8px rgba(108, 92, 231, 0.5);
  }
  
  .progress-text {
      display: flex;
      justify-content: space-between;
      margin-top: 6px;
      font-size: 9px;
      color: var(--gray);
      font-weight: 500;
  }
  
  .results-content {
      text-align: center;
      padding: 12px 0;
  }
  
  .result-trophy {
      width: 70px;
      height: 70px;
      background: var(--gradient-accent);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      margin: 0 auto 14px;
      box-shadow: 0 12px 30px rgba(255, 107, 157, 0.4);
      animation: trophyBounce 1s ease infinite;
  }
  
  @keyframes trophyBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
  }
  
  .results-content h2 {
      font-size: 18px;
      margin-bottom: 2px;
      background: var(--gradient-primary);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .results-content > p {
      color: var(--gray);
      font-size: 11px;
  }
  
  .level-display {
      display: inline-block;
      padding: 6px 22px;
      background: var(--gradient-primary);
      border-radius: 25px;
      font-size: 22px;
      font-weight: 800;
      margin: 10px 0;
      box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
  }
  
  .results-stats {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin: 12px 0;
  }
  
  .stat {
      text-align: center;
      padding: 8px 12px;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .stat-value {
      font-size: 18px;
      font-weight: 800;
      background: var(--gradient-primary);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .stat-label {
      font-size: 9px;
      color: var(--gray);
      margin-top: 1px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }
  
  .ai-insight {
      background: rgba(108, 92, 231, 0.08);
      border: 1px solid rgba(108, 92, 231, 0.15);
      border-radius: 12px;
      padding: 10px;
      margin: 10px 0;
      text-align: left;
  }
  
  .ai-insight-header {
      display: flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 6px;
      font-size: 10px;
      color: var(--secondary);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }
  
  .ai-insight-header svg {
      width: 12px;
      height: 12px;
  }
  
  .ai-insight p {
      font-size: 11px;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.85);
  }
  
  .result-cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 12px 24px;
      background: var(--gradient-accent);
      border: none;
      border-radius: 12px;
      color: white;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
      margin-top: 4px;
  }
  
  .result-cta-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 30px rgba(255, 107, 157, 0.5);
  }
  
  .result-cta-btn svg {
      width: 16px;
      height: 16px;
  }
  
  .confetti-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 100;
  }
  
  @media (max-width: 1024px) {
      .hero {
          padding: 40px 30px;
      }
  
      .hero-container {
          gap: 50px;
      }
  
      .hero-title {
          font-size: 2.8rem;
      }
  }
  
  @media (max-width: 900px) {
      .hero-container {
          flex-direction: column;
          text-align: center;
      }
  
      .hero-content {
          max-width: 600px;
      }
  
      .accent-line {
          justify-content: center;
      }
  
      .cta-button {
          margin: 0 auto;
      }
  
      .cta-subtext {
          text-align: center;
      }
  }
  
  @media (max-width: 480px) {
      .hero {
          padding: 30px 16px;
      }
  
      .hero-title {
          font-size: 2rem;
      }
  
      .chat-window {
          width: 100%;
          max-width: 360px;
          height: 440px;
      }
  
      .widget-frame {
          padding: 16px;
      }
  
      .cta-button-secondary {
          display: none;
      }
  
      .cta-subtext {
          display: none;
      }
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --primary-light: #a29bfe;
    --primary-dark: #5849c2;
    --secondary: #00D9FF;
    --accent: #FF6B9D;
    --accent-orange: #FFB347;
    --dark: #1e2a3a;
    --darker: #162032;
    --darkest: #0f1829;
    --card-bg: rgba(22, 32, 50, 0.95);
    --light: #ffffff;
    --gray: #7a8ba3;
    --gray-light: #9aa8bd;
    --success: #00E676;
    --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #00D9FF 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B9D 0%, #FFB347 100%);
    --gradient-btn: linear-gradient(135deg, #00D9FF 0%, #6C5CE7 100%);
    --langly-purple-dark: #4a2c82;
    --langly-purple: #6b4799;
    --langly-purple-light: #8b5fbf;
    --langly-violet: #9370db;
}

.langly-widget-section {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--light);
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg,
        #1a0f2e 0%,
        #261440 20%,
        #301a50 40%,
        #3a2060 60%,
        #301a50 80%,
        #1a0f2e 100%);
    z-index: 0;
}

@keyframes bgPulse {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(138, 79, 201, 0.25);
    top: -200px;
    left: -150px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(90, 54, 144, 0.35);
    bottom: -150px;
    right: -100px;
    animation-delay: -10s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(180, 130, 230, 0.15);
    top: 40%;
    right: 20%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    max-width: 1400px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: var(--light);
}

.hero-title span {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.accent-dot {
    width: 8px;
    height: 8px;
    background: var(--light);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.accent-bar {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--light);
    border: none;
    border-radius: 50px;
    color: #6b4799;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cta-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
    stroke: #6b4799;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: var(--light);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.cta-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.cta-subtext a {
    color: var(--light);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.cta-subtext a:hover {
    opacity: 0.8;
}

.widget-container {
    position: relative;
    flex-shrink: 0;
}

.widget-frame {
    position: relative;
    padding: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.widget-frame::before,
.widget-frame::after,
.corner-bl,
.corner-br {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(255, 255, 255, 0.6);
    border-style: solid;
}

.widget-frame::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
    border-radius: 8px 0 0 0;
}

.widget-frame::after {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
    border-radius: 0 8px 0 0;
}

.corner-bl {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 8px;
}

.corner-br {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 8px 0;
}

.widget-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.status-indicator {
    position: absolute;
    top: 24px;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 3px solid var(--darkest);
    box-shadow: 0 0 10px var(--success);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.chat-window {
    width: 400px;
    height: 480px;
    max-height: 70vh;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

.chat-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    z-index: 10;
    border-radius: 20px 20px 0 0;
}

.chat-header {
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.12) 0%, rgba(108, 92, 231, 0.05) 100%);
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ai-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.ai-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(108, 92, 231, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-avatar-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    z-index: 3;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    from { transform: translateX(-100%) rotate(45deg); }
    to { transform: translateX(100%) rotate(45deg); }
}

.ai-avatar-inner svg {
    width: 22px;
    height: 22px;
    color: white;
    position: relative;
    z-index: 1;
}

.ai-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--darker);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
    z-index: 2;
}

.ai-info {
    flex: 1;
    min-width: 0;
}

.ai-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    width: 14px;
    height: 14px;
    background: var(--secondary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.verified-badge svg {
    width: 8px;
    height: 8px;
    color: var(--darkest);
}

.ai-info p {
    font-size: 11px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 5px;
    height: 5px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-white);
    flex-shrink: 0;
    letter-spacing: 1.5px;
}

.chat-body {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    min-height: 0;
}

.chat-body::-webkit-scrollbar {
    width: 4px;
}

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

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.message {
    display: flex;
    gap: 8px;
    animation: messageSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes messageSlide {
    from { 
        opacity: 0; 
        transform: translateY(12px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.message:not(.user) .message-avatar {
    background: var(--gradient-primary);
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
}

.message.user .message-avatar {
    background: linear-gradient(135deg, rgba(167, 33, 245, 0.9), rgba(255, 255, 255, 0.85));
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
}

.message-content {
    max-width: 85%;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.message:not(.user) .message-bubble {
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
    background: var(--gradient-primary);
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.message-bubble strong {
    color: var(--secondary);
    font-weight: 600;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.response-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    animation: optionsFade 0.5s ease-out 0.2s both;
}

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

.response-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--light);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.response-btn:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.4);
    transform: translateX(4px);
}

.response-btn.selected {
    background: rgba(108, 92, 231, 0.25);
    border-color: var(--primary);
}

.response-btn .icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.25s;
}

.response-btn:hover .icon {
    background: rgba(108, 92, 231, 0.3);
}

.response-btn.selected .icon {
    background: var(--primary);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 4px;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-card:hover {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
}

.option-card.selected {
    background: rgba(108, 92, 231, 0.2);
    border-color: var(--primary);
}

.option-card.correct {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--success);
}

.option-card.incorrect {
    background: rgba(255, 107, 157, 0.15);
    border-color: var(--accent);
}

.option-card .emoji {
    font-size: 28px;
    line-height: 1;
    transition: transform 0.25s;
}

.option-card:hover .emoji {
    transform: scale(1.1);
}

.option-card .label {
    font-size: 10px;
    color: var(--gray);
    text-align: center;
    font-weight: 500;
}

.word-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.word-chip {
    padding: 8px 12px;
    background: var(--gradient-primary);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
}

.word-chip:hover {
    transform: translateY(-2px) scale(1.02);
}

.word-chip.used {
    opacity: 0.25;
    pointer-events: none;
    transform: scale(0.95);
}

.sentence-builder {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(108, 92, 231, 0.25);
    border-radius: 10px;
    min-height: 42px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.sentence-builder .placeholder {
    color: var(--gray);
    font-size: 11px;
}

.sentence-builder.has-words {
    border-style: solid;
    border-color: rgba(108, 92, 231, 0.4);
    background: rgba(108, 92, 231, 0.05);
}

.sentence-builder.correct {
    border-color: var(--success);
    background: rgba(0, 230, 118, 0.08);
}

.sentence-builder.incorrect {
    border-color: var(--accent);
    background: rgba(255, 107, 157, 0.08);
}

.sentence-builder .placed-word {
    padding: 6px 10px;
    background: var(--primary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.audio-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(108, 92, 231, 0.08) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    margin: 8px 0;
}

.play-btn {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn svg {
    width: 14px;
    height: 14px;
    color: white;
    margin-left: 2px;
}

.audio-visual {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
}

.audio-bar {
    width: 2px;
    background: var(--secondary);
    border-radius: 1px;
    opacity: 0.35;
    transition: all 0.1s;
}

.audio-bar.active {
    opacity: 1;
}

.audio-text {
    font-size: 11px;
    color: var(--gray);
    font-style: italic;
    margin-top: 4px;
}

.context-box {
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.08) 0%, rgba(255, 107, 157, 0.05) 100%);
    border-left: 3px solid var(--accent-orange);
    border-radius: 0 10px 10px 0;
    margin: 8px 0;
}

.context-box .situation {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-orange);
    margin-bottom: 4px;
    font-weight: 700;
}

.context-box .text {
    font-size: 12px;
    line-height: 1.4;
}

.progress-container {
    padding: 10px 14px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.5);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 9px;
    color: var(--gray);
    font-weight: 500;
}

.results-content {
    text-align: center;
    padding: 12px 0;
}

.result-trophy {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 14px;
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.4);
    animation: trophyBounce 1s ease infinite;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.results-content h2 {
    font-size: 18px;
    margin-bottom: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-content > p {
    color: var(--gray);
    font-size: 11px;
}

.level-display {
    display: inline-block;
    padding: 6px 22px;
    background: var(--gradient-primary);
    border-radius: 25px;
    font-size: 22px;
    font-weight: 800;
    margin: 10px 0;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.stat {
    text-align: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 9px;
    color: var(--gray);
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-insight {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 12px;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
}

.ai-insight-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    font-size: 10px;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-insight-header svg {
    width: 12px;
    height: 12px;
}

.ai-insight p {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.result-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
    margin-top: 4px;
}

.result-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.5);
}

.result-cta-btn svg {
    width: 16px;
    height: 16px;
}

.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

@media (max-width: 1024px) {
    .hero {
        padding: 40px 30px;
    }

    .hero-container {
        gap: 50px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 600px;
    }

    .accent-line {
        justify-content: center;
    }

    .cta-button {
        margin: 0 auto;
    }

    .cta-subtext {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .chat-window {
        width: 100%;
        max-width: 360px;
        height: 440px;
    }

    .widget-frame {
        padding: 16px;
    }

    .cta-button-secondary {
        display: none;
    }

    .cta-subtext {
        display: none;
    }
}

