
    /* ---------- GLOBAL RESET & DESIGN SYSTEM 2026 ---------- */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    :root {
      --bg-deep: #030c15;
      --glass-bg: rgba(8, 28, 48, 0.45);
      --glass-edge: rgba(20, 100, 180, 0.3);
      --primary-neon: #1e90ff;
      --accent-amber: #ffb347;
      --text-bright: #f0f9ff;
      --text-soft: #bfd9f5;
      --glow-color: rgba(30, 144, 255, 0.5);
      --font-display: 'Outfit', sans-serif;
      --border-shine: 1px solid rgba(100, 180, 250, 0.4);
    }
    body {
      font-family: var(--font-display);
      background: var(--bg-deep);
      color: var(--text-bright);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      position: relative;
      overflow-x: hidden;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }
    /* ----- MOVING TECH WAVES & PARTICLES (no gifs) ----- */
    #bg-canvas {
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      z-index: 0;
      pointer-events: none;
      background: radial-gradient(circle at 30% 40%, #0a233a 0%, #020b14 100%);
    }
    .global-glass {
      position: fixed;
      inset: 0;
      backdrop-filter: blur(2px) saturate(200%);
      -webkit-backdrop-filter: blur(2px) saturate(200%);
      background: radial-gradient(circle at 80% 10%, rgba(0, 180, 255, 0.1) 0%, transparent 50%);
      z-index: 1;
      pointer-events: none;
    }
    /* ----- MAIN CARD (glass premium) ----- */
    .app-container {
      position: relative;
      z-index: 10;
      width: 100%;
      max-width: 1500px;
      height: 95vh;
      max-height: 1000px;
      background: rgba(0, 18, 32, 0.4);
      backdrop-filter: blur(24px) saturate(250%);
      -webkit-backdrop-filter: blur(24px) saturate(250%);
      border-radius: 3rem;
      border: 1px solid var(--glass-edge);
      box-shadow: 0 30px 70px -20px #000, 0 0 0 1px rgba(0, 180, 255, 0.2) inset, 0 0 70px rgba(0, 120, 210, 0.4);
      display: flex;
      overflow: hidden;
    }
    /* ----- SIDEBAR (profile, ultra personal) ----- */
    .sidebar {
      width: 340px;
      background: rgba(0, 10, 20, 0.5);
      backdrop-filter: blur(20px);
      border-right: 1px solid #2c5f8a;
      padding: 2rem 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 2rem;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: #3f8fd0 #0a2638;
    }
    .sidebar::-webkit-scrollbar { width: 6px; }
    .sidebar::-webkit-scrollbar-track { background: #0a2638; border-radius: 20px; }
    .sidebar::-webkit-scrollbar-thumb { background: #3f8fd0; border-radius: 20px; }

    .avatar-frame {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .avatar-frame img {
      width: 130px; height: 130px;
      border-radius: 50%;
      border: 4px solid var(--accent-amber);
      box-shadow: 0 0 50px #1e90ff, 0 0 20px gold;
      object-fit: cover;
      transition: transform 0.3s;
    }
    .avatar-frame img:hover { transform: scale(1.02) rotate(0.5deg); }
    .ai-badge {
      background: #103a5a;
      border-radius: 60px;
      padding: 0.4rem 1.5rem;
      font-size: 0.9rem;
      border: 1px solid gold;
      margin-top: 1rem;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .ai-badge i { color: #2ecc71; font-size: 0.7rem; }

    .info-panel {
      background: rgba(0, 40, 70, 0.3);
      border-radius: 2rem;
      padding: 1.5rem;
      border: 1px solid #3a7ca5;
      backdrop-filter: blur(8px);
    }
    .info-panel h4 {
      font-weight: 600;
      font-size: 1.1rem;
      margin-bottom: 1.2rem;
      display: flex;
      align-items: center;
      gap: 8px;
      color: #d4ecff;
    }
    .chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }
    .chip {
      background: #144b74;
      border-radius: 40px;
      padding: 0.2rem 1.1rem;
      font-size: 0.8rem;
      border: 1px solid #5aafe0;
    }
    .contact-item {
      font-size: 0.9rem;
      margin: 0.7rem 0;
      display: flex;
      gap: 0.8rem;
      align-items: center;
    }
    .contact-item i { width: 1.5rem; color: #fdb45e; }

    /* ----- MAIN CHAT AREA (ChatGPT level) ----- */
    .main-panel {
      flex: 1;
      display: flex;
      flex-direction: column;
      background: transparent;
    }
    .chat-header {
      padding: 1.2rem 2rem;
      background: rgba(0, 20, 35, 0.4);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid #2e6f9f;
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .status-pill {
      display: flex;
      align-items: center;
      gap: 6px;
      background: #113e5a;
      padding: 0.3rem 1.2rem;
      border-radius: 60px;
      font-size: 0.8rem;
      border: 1px solid #5da5d8;
    }
    .status-pill i { color: #2ecc71; font-size: 0.6rem; }

    .chat-window {
      flex: 1;
      padding: 1.8rem 2rem;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      scroll-behavior: smooth;
    }
    .message {
      display: flex;
      align-items: flex-end;
      gap: 12px;
      max-width: 80%;
      animation: msgFloat 0.3s cubic-bezier(0.2,0.9,0.3,1);
    }
    @keyframes msgFloat { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }
    .message.user { align-self: flex-end; flex-direction: row-reverse; }
    .msg-avatar {
      width: 44px; height: 44px;
      border-radius: 44px;
      background: #10486b;
      display: flex; align-items: center; justify-content: center;
      border: 2px solid #3d9ef0;
      flex-shrink: 0;
      overflow: hidden;
    }
    .msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .bubble {
      background: rgba(10, 40, 70, 0.7);
      backdrop-filter: blur(16px);
      padding: 0.9rem 1.6rem;
      border-radius: 28px 28px 28px 8px;
      border: 1px solid #4390c7;
      color: #ecf5ff;
      font-size: 1rem;
      line-height: 1.5;
      box-shadow: 0 8px 25px rgba(0,0,0,0.5);
      white-space: pre-wrap;
      word-break: break-word;
    }
    .user .bubble {
      background: rgba(0, 80, 130, 0.7);
      border-radius: 28px 28px 8px 28px;
      border-color: #fabb50;
    }
    .typing-indicator {
      display: flex;
      gap: 6px;
      padding: 0.8rem 1.8rem;
      background: rgba(10, 45, 70, 0.6);
      border-radius: 60px;
      width: fit-content;
      border: 1px solid #4080b0;
    }
    .typing-indicator span {
      width: 10px; height: 10px;
      background: #bbdefa;
      border-radius: 50%;
      animation: blinkTyping 1.4s infinite;
    }
    .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
    .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes blinkTyping { 0%,60%,100%{ opacity: 0.3; transform: scale(1); } 30%{ opacity: 1; transform: scale(1.2); } }

    .input-area {
      padding: 1.5rem 2rem;
      background: rgba(0, 20, 35, 0.5);
      backdrop-filter: blur(20px);
      border-top: 1px solid #2e6f9f;
      display: flex;
      gap: 12px;
    }
    .input-area input {
      flex: 1;
      background: rgba(0, 40, 70, 0.5);
      border: 1px solid #4488c0;
      border-radius: 60px;
      padding: 1rem 1.8rem;
      font-size: 1rem;
      color: white;
      outline: none;
    }
    .input-area input::placeholder { color: #b0d0f0; }
    .send-action {
      background: #1f7ab5;
      border: none;
      border-radius: 60px;
      width: 58px; height: 58px;
      font-size: 1.6rem;
      color: white;
      cursor: pointer;
      transition: 0.2s;
      border: 1px solid #ffdb8b;
      box-shadow: 0 0 20px #0077ff;
    }
    .send-action:hover { background: #3892d4; transform: scale(1.05); }

    .suggestion-chips {
      padding: 0.5rem 2rem 0.2rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .chip-suggest {
      background: #124566;
      border-radius: 30px;
      padding: 0.4rem 1.3rem;
      font-size: 0.85rem;
      border: 1px solid #4797cf;
      cursor: pointer;
      transition: 0.15s;
    }
    .chip-suggest:hover { background: #1d6190; border-color: gold; }

    .footer-note {
      font-size: 0.7rem;
      color: #8db0d0;
      text-align: center;
      padding: 0.3rem;
    }

    /* ----- LOADER (5 sec) ----- */
    #loader-wrapper {
      position: fixed; inset: 0; background: #030c15; z-index: 9999;
      display: flex; align-items: center; justify-content: center;
      transition: opacity 0.6s, visibility 0.6s;
    }
    .loader-hidden { opacity: 0; visibility: hidden; }
    .brain-loader {
      display: flex; flex-direction: column; align-items: center; gap: 2rem;
    }
    .loader-sphere {
      width: 100px; height: 100px; border: 5px solid #1e4e7a; border-top-color: #ffb347; border-radius: 50%;
      animation: spin 1s infinite ease; box-shadow: 0 0 50px #2399ff;
    }
    .loader-text { font-size: 1.4rem; font-weight: 300; letter-spacing: 3px; color: #bbdaff; }
    @keyframes spin { to { transform: rotate(360deg); } }

    @media (max-width: 800px) {
      .app-container { flex-direction: column; border-radius: 2rem; }
      .sidebar { width: 100%; max-height: 38vh; border-right: none; border-bottom: 1px solid #2c577b; }
      .message { max-width: 95%; }
    }