  /* ===== DEMO PAGE ONLY (standalone chatbot page) ===== */
  .demo-page {
    text-align: center;
    opacity: 0.3;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
  }

  /* ===== CSS VARIABLES ===== */
  :root {
    --accent: #7c5cfc;
    --accent2: #c084fc;
    --accent3: #38bdf8;
    --glow: rgba(124, 92, 252, 0.35);
    --glow2: rgba(192, 132, 252, 0.25);
    --bg-dark: #0a0a12;
    --bg-card: rgba(12, 12, 22, 0.97);
    --border: rgba(124, 92, 252, 0.12);
    --text: #d4d4dc;
    --text-muted: #6b6b7b;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* ===== CHAT BUBBLE (TRIGGER) ===== */
  .felix-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(from var(--bubble-angle, 0deg), #7c5cfc, #c084fc, #38bdf8, #7c5cfc);
    border: none;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 30px var(--glow), 0 0 60px rgba(124, 92, 252, 0.15);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: bubble-rotate 4s linear infinite, bubble-float 3s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
  }
  .felix-bubble::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from var(--bubble-angle, 0deg), #7c5cfc, #c084fc, #38bdf8, #7c5cfc);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.35;
    animation: bubble-rotate 4s linear infinite;
  }
  /* Inner circle to create ring effect */
  .felix-bubble::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1a1a2e, #0e0e1a);
    z-index: 0;
  }
  .felix-bubble:hover {
    transform: scale(1.12);
  }
  .felix-bubble:active {
    transform: scale(0.95);
  }
  .felix-bubble.hidden { display: none; }
  .felix-bubble svg { 
    width: 26px; height: 26px; fill: white; 
    z-index: 1; 
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.3));
  }
  
  @keyframes bubble-rotate {
    to { --bubble-angle: 360deg; }
  }
  @keyframes bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
  @property --bubble-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
  }

  /* Orbital particles around bubble */
  .felix-bubble .orbit-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    animation: orbit-spin 6s linear infinite;
    z-index: 2;
    pointer-events: none;
  }
  .felix-bubble .orbit-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #c084fc;
    border-radius: 50%;
    box-shadow: 0 0 8px #c084fc, 0 0 16px rgba(192, 132, 252, 0.4);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  .felix-bubble .orbit-dot:nth-child(2) {
    top: auto; bottom: 0;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.4);
  }
  @keyframes orbit-spin {
    to { transform: rotate(360deg); }
  }

  /* ===== NOTIFICATION BADGE ===== */
  .felix-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    z-index: 3;
    animation: badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  }
  @keyframes badge-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }

  /* ===== TEASER MESSAGE ===== */
  .felix-teaser {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px 16px 4px 16px;
    padding: 14px 18px;
    max-width: 270px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #b0b0c0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 1px var(--border), inset 0 1px 0 rgba(255,255,255,0.03);
    -webkit-tap-highlight-color: transparent;
  }
  .felix-teaser.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .felix-teaser .teaser-name {
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 12px;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .felix-teaser .teaser-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
  }

  /* ===== CHAT WINDOW ===== */
  .felix-window {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 400px;
    height: 620px;
    max-height: calc(100vh - 48px);
    background: rgba(10, 10, 18, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
      0 24px 80px rgba(0, 0, 0, 0.5), 
      0 0 1px rgba(124, 92, 252, 0.3),
      0 0 80px rgba(124, 92, 252, 0.06);
  }
  /* Animated gradient border effect */
  .felix-window::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    background: conic-gradient(from var(--window-angle, 0deg), transparent 60%, var(--accent) 70%, var(--accent2) 80%, var(--accent3) 85%, transparent 95%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease;
    animation: window-border-rotate 8s linear infinite;
  }
  .felix-window.open::before {
    opacity: 0.25;
  }
  @property --window-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
  }
  @keyframes window-border-rotate {
    to { --window-angle: 360deg; }
  }
  .felix-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }

  /* ===== MOBILE ===== */
  @media (max-width: 480px) {
    .felix-bubble {
      bottom: 16px;
      right: 16px;
      width: 58px;
      height: 58px;
    }
    .felix-bubble svg { width: 24px; height: 24px; }
    .felix-teaser {
      bottom: 86px;
      right: 16px;
      max-width: calc(100vw - 90px);
    }
    .felix-window {
      width: 100%;
      height: 100%;
      max-height: 100%;
      bottom: 0;
      right: 0;
      border-radius: 0;
      max-height: calc(100vh - calc(100vh - 100%)); /* handles iOS address bar */
    }
    .felix-window::before { display: none; }
    .felix-header { 
      padding: 14px 16px;
      padding-top: max(14px, env(safe-area-inset-top));
    }
    .felix-messages { padding: 14px; }
    .felix-quick-replies { padding: 0 14px 6px; }
    .felix-input-area { 
      padding: 10px 12px;
      padding-bottom: max(10px, var(--safe-bottom));
    }
    .felix-input { 
      padding: 10px 14px; 
      font-size: 16px; /* prevents iOS zoom */
    }
    .felix-msg { font-size: 15px; }
    .felix-powered { 
      padding: 4px;
      padding-bottom: max(4px, var(--safe-bottom)); 
    }
  }
  /* Medium screens */
  @media (min-width: 481px) and (max-width: 768px) {
    .felix-window {
      width: calc(100vw - 32px);
      right: 16px;
      bottom: 16px;
      height: calc(100vh - 100px);
    }
  }

  /* ===== HEADER ===== */
  .felix-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.08), rgba(56, 189, 248, 0.04));
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }
  /* Aurora shimmer across header — very subtle */
  .felix-header::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: -100%; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 252, 0.03), rgba(192, 132, 252, 0.02), transparent);
    animation: aurora-slide 8s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes aurora-slide {
    0% { transform: translateX(-30%); }
    50% { transform: translateX(30%); }
    100% { transform: translateX(-30%); }
  }

  .felix-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: white;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(124, 92, 252, 0.15);
    overflow: hidden;
  }
  .felix-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .felix-avatar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
  }
  }

  .felix-header-info { flex: 1; z-index: 1; }
  .felix-header-name {
    font-size: 15px;
    font-weight: 600;
    color: #f0f0f4;
    letter-spacing: 0.01em;
  }
  .felix-header-status {
    font-size: 12px;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
    font-weight: 500;
  }
  .felix-close {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.25s;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
  }
  .felix-close:hover { background: rgba(255, 255, 255, 0.08); color: #aaa; }

  /* ===== LANGUAGE SELECTOR ===== */
  .felix-lang-flags {
    display: flex;
    gap: 3px;
    margin-left: auto;
    margin-right: 8px;
    z-index: 1;
  }
  .felix-lang-btn {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .felix-lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .felix-lang-btn.active {
    border-color: rgba(124, 92, 252, 0.4);
    background: rgba(124, 92, 252, 0.12);
    box-shadow: 0 0 12px rgba(124, 92, 252, 0.15);
  }

  /* ===== MESSAGES AREA ===== */
  .felix-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Very subtle depth */
    background: transparent;
  }
  .felix-messages::-webkit-scrollbar { width: 3px; }
  .felix-messages::-webkit-scrollbar-track { background: transparent; }
  .felix-messages::-webkit-scrollbar-thumb { background: rgba(124, 92, 252, 0.2); border-radius: 4px; }

  /* Bot message row with avatar */
  .felix-msg-row.bot {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    align-self: flex-start;
    max-width: 90%;
    animation: msg-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .felix-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
  }
  .felix-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Message bubbles */
  .felix-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.65;
    animation: msg-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .felix-msg-row .felix-msg {
    max-width: 100%;
    animation: none;
  }
  .felix-msg.bot {
    align-self: flex-start;
    background: rgba(124, 92, 252, 0.07);
    border: 1px solid rgba(124, 92, 252, 0.1);
    color: var(--text);
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }
  .felix-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #7c5cfc, #6d28d9);
    color: white;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 16px rgba(124, 92, 252, 0.25);
  }
  .felix-msg a {
    color: var(--accent2);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(192, 132, 252, 0.4);
    transition: text-decoration-color 0.2s;
  }
  .felix-msg a:hover { text-decoration-color: var(--accent2); }
  .felix-msg.user a { color: #e8deff; }

  @keyframes msg-in {
    0% { opacity: 0; transform: translateY(10px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* Timestamp */
  .felix-time {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 4px;
    align-self: center;
    margin: 8px 0 4px;
    font-weight: 400;
  }

  /* Typing indicator */
  .felix-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    align-self: flex-start;
    background: rgba(124, 92, 252, 0.06);
    border: 1px solid rgba(124, 92, 252, 0.08);
    border-radius: 18px 18px 18px 6px;
    animation: msg-in 0.3s ease;
  }
  .felix-typing span {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
  }
  .felix-typing span:nth-child(2) { animation-delay: 0.15s; background: var(--accent2); }
  .felix-typing span:nth-child(3) { animation-delay: 0.3s; background: var(--accent3); }
  @keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-7px); opacity: 1; }
  }

  /* ===== QUICK REPLIES ===== */
  .felix-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 20px 8px;
    animation: msg-in 0.4s ease;
  }
  .felix-quick-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(124, 92, 252, 0.2);
    background: rgba(124, 92, 252, 0.04);
    color: var(--accent2);
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  .felix-quick-btn:hover {
    background: rgba(124, 92, 252, 0.12);
    border-color: rgba(124, 92, 252, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 92, 252, 0.15);
  }
  .felix-quick-btn:active {
    transform: translateY(0) scale(0.97);
  }

  /* ===== INPUT AREA ===== */
  .felix-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: rgba(8, 8, 16, 0.6);
    flex-shrink: 0;
  }
  .felix-input {
    flex: 1;
    padding: 11px 16px;
    border-radius: 16px;
    border: 1px solid rgba(124, 92, 252, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #e8e8f0;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    resize: none;
    max-height: 100px;
    min-height: 44px;
    line-height: 1.4;
    -webkit-appearance: none;
  }
  .felix-input:focus {
    border-color: rgba(124, 92, 252, 0.35);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 2px rgba(124, 92, 252, 0.06);
  }
  .felix-input::placeholder { color: #4a4a5a; }
  
  .felix-send {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 12px var(--glow);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
  }
  .felix-send::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    border-radius: inherit;
  }
  .felix-send:hover { 
    transform: scale(1.08); 
    box-shadow: 0 4px 20px var(--glow);
  }
  .felix-send:active { transform: scale(0.92); }
  .felix-send:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }
  .felix-send svg { width: 18px; height: 18px; z-index: 1; }

  /* ===== POWERED BY ===== */
  .felix-powered {
    text-align: center;
    padding: 6px;
    font-size: 11px;
    color: #333;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    font-weight: 400;
  }
  .felix-powered a { 
    color: var(--accent); 
    text-decoration: none;
    transition: color 0.2s;
  }
  .felix-powered a:hover { color: var(--accent2); }

  /* ===== MARKDOWN-LIKE FORMATTING ===== */
  .felix-msg strong { font-weight: 600; color: var(--accent2); }
  .felix-msg.user strong { color: #f0e6ff; }
  .felix-msg ul, .felix-msg ol {
    margin: 6px 0;
    padding-left: 18px;
  }
  .felix-msg li { margin-bottom: 4px; }

  /* ===== TOUCH OPTIMIZATIONS ===== */
  @media (hover: none) and (pointer: coarse) {
    .felix-quick-btn { padding: 10px 16px; font-size: 14px; }
    .felix-quick-btn:hover { transform: none; box-shadow: none; }
    .felix-quick-btn:active { transform: scale(0.97); background: rgba(124, 92, 252, 0.12); }
    .felix-close { width: 40px; height: 40px; }
    .felix-lang-btn { width: 34px; height: 34px; }
    .felix-send { width: 48px; height: 48px; }
  }

  /* ===== REDUCED MOTION ===== */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.15s !important;
    }
  }

  /* ===== CONFETTI ===== */
  .confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10002;
    overflow: hidden;
  }
  .confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10px;
    opacity: 0;
    animation: confetti-fall var(--fall-duration, 3s) var(--fall-delay, 0s) ease-out forwards;
  }
  @keyframes confetti-fall {
    0% { 
      opacity: 1; 
      transform: translateY(0) rotate(0deg) scale(1); 
    }
    80% { opacity: 1; }
    100% { 
      opacity: 0; 
      transform: translateY(100vh) rotate(var(--rotation, 720deg)) scale(0.3); 
    }
  }

  /* ===== SOCIAL PROOF POPUP ===== */
  .felix-social-proof {
    position: fixed;
    bottom: 100px;
    left: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px 12px 14px;
    max-width: 320px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 13px;
    line-height: 1.5;
    color: #b0b0c0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 1px var(--border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .felix-social-proof.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
  }
  .felix-social-proof-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  .felix-social-proof-content { flex: 1; }
  .felix-social-proof-title {
    font-weight: 600;
    color: #e0e0e8;
    font-size: 13px;
    margin-bottom: 2px;
  }
  .felix-social-proof-text {
    font-size: 12px;
    color: #8a8a9a;
  }
  .felix-social-proof-time {
    font-size: 11px;
    color: #555;
    margin-top: 3px;
  }
  .felix-social-proof-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    line-height: 1;
  }
  @media (max-width: 480px) {
    .felix-social-proof {
      left: 12px;
      right: 12px;
      max-width: none;
      bottom: 86px;
    }
  }
