* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  }
  
  body {
    background: #0b141a;
    color: #e9edef;
    height: 100vh;
  }
  
  .app-shell {
    display: flex;
    height: 100vh;
  }
  
  /* SIDEBAR */
  
  .side-panel {
    width: 280px;
    background: #111b21;
    border-right: 1px solid #202c33;
    display: flex;
    flex-direction: column;
    padding: 15px;
  }
  
  .brand {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .brand-icon {
    font-size: 24px;
  }
  
  .brand h1 {
    font-size: 18px;
  }
  
  .brand p {
    font-size: 12px;
    color: #8696a0;
  }
  
  .primary-action {
    background: #25d366;
    border: none;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    color: black;
    font-weight: bold;
  }
  
  .menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .menu-item {
    background: none;
    border: none;
    color: #e9edef;
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
  }
  
  .menu-item:hover {
    background: #202c33;
  }
  
  .menu-item.active {
    background: #202c33;
  }
  
  .menu-item span {
    font-size: 18px;
  }
  
  .menu-item small {
    color: #8696a0;
  }
  
  /* CHAT AREA */
  
  .chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  /* HEADER */
  
  .chat-header {
    height: 60px;
    background: #202c33;
    border-bottom: 1px solid #2a3942;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }
  
  .chat-title h2 {
    font-size: 16px;
  }
  
  .chat-title p {
    font-size: 12px;
    color: #8696a0;
  }
  
  .status-pill {
    font-size: 12px;
    background: #1f2c33;
    padding: 4px 8px;
    border-radius: 12px;
  }
  
  /* MESSAGE AREA */
  
  .messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #0b141a;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .message {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
  }
  
  .message.user {
    background: #005c4b;
    align-self: flex-end;
  }
  
  .message.ai {
    background: #202c33;
    align-self: flex-start;
  }
  
  /* WELCOME CARD */
  
  .welcome-card {
    background: #202c33;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
  }
  
  .welcome-card h3 {
    margin-bottom: 8px;
  }
  
  /* COMPOSER */
  
  .composer {
    display: flex;
    border-top: 1px solid #2a3942;
    background: #202c33;
    padding: 10px;
  }
  
  .composer textarea {
    flex: 1;
    resize: none;
    border: none;
    outline: none;
    padding: 10px;
    border-radius: 8px;
    background: #111b21;
    color: white;
  }
  
  .composer button {
    margin-left: 10px;
    background: #25d366;
    border: none;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
  }
  
  /* MOBILE */
  
  @media (max-width: 800px) {
    body {
      height: 100dvh;
      overflow: hidden;
    }
  
    .app-shell {
      height: 100dvh;
      overflow: hidden;
    }
  
    .chat-area {
      height: 100dvh;
      width: 100%;
    }
  
    .chat-header {
      height: 56px;
      min-height: 56px;
      padding: 0 10px;
    }
  
    .mobile-only {
      display: inline-flex;
    }
  
    .icon-btn {
      background: none;
      border: none;
      color: #e9edef;
      font-size: 24px;
      cursor: pointer;
      margin-right: 8px;
    }
  
    .chat-title h2 {
      font-size: 15px;
    }
  
    .chat-title p {
      font-size: 11px;
    }
  
    .status-pill {
      display: none;
    }
  
    .messages {
      flex: 1;
      padding: 12px;
      overflow-y: auto;
    }
  
    .message {
      max-width: 88%;
      font-size: 14px;
    }
  
    .welcome-card {
      max-width: 100%;
      padding: 14px;
      font-size: 13px;
    }
  
    .composer {
      min-height: 58px;
      padding: 8px;
      position: sticky;
      bottom: 0;
    }
  
    .composer textarea {
      max-height: 90px;
      font-size: 15px;
    }
  
    .composer button {
      min-width: 42px;
      height: 42px;
      border-radius: 50%;
    }
  
    .side-panel {
      position: fixed;
      top: 0;
      left: -86%;
      width: 86%;
      max-width: 320px;
      height: 100dvh;
      z-index: 30;
      transition: left 0.25s ease;
      box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
    }
  
    .side-panel.open {
      left: 0;
    }
  
    .menu-item {
      padding: 12px 10px;
    }
  
    .menu-item strong {
      font-size: 14px;
    }
  
    .menu-item small {
      font-size: 11px;
    }
  
    .drawer-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      z-index: 20;
    }
  
    .drawer-backdrop.show {
      display: block;
    }
  }
  

  .login-btn {
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
  }
  
  .login-btn:hover {
    background: #1d4ed8;
  }
  
  .login-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 14, 0.78);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .hidden {
    display: none !important;
  }
  
  .login-card {
    width: 420px;
    background: #122026;
    border: 1px solid #263942;
    border-radius: 12px;
    color: white;
  }
  
  .login-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #263942;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .login-form {
    padding: 18px 20px 20px;
  }
  
  .login-form label {
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 4px;
    display: block;
  }
  
  .login-form input,
  .login-form select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #334852;
    background: #071115;
    color: white;
    font-size: 13px;
  }
  
  .login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .phone-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
  }
  
  .login-type-radio {
    display: flex;
    gap: 12px;
  }
  
  .login-type-radio label {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .submit-btn {
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #22c55e;
    font-weight: 700;
    cursor: pointer;
  }
  
  .submit-btn:hover {
    background: #16a34a;
  }
  .close-btn {
    background: transparent;
    border: none;
    color: #9fb2bf;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
  }
  
  .close-btn:hover {
    color: #ffffff;
  }

  .login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #263942;
  }
  
  .login-switch-row {
    padding: 10px 20px;
    border-bottom: 1px solid #263942;
    background: #071115;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9fb2bf;
  }
  
  .login-link-btn {
    border: none;
    background: transparent;
    color: #22c55e;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    cursor: pointer;
    padding: 0;
  }
  
  .login-link-btn:hover {
    color: #86efac;
    text-decoration: underline;
  }
  
  .user-initials {
    margin: 18px auto 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #22c55e;
    color: #03120a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
  }
  .logged-user-label {
    margin-left: auto;
    margin-right: 24px;
    font-size: 14px;
    color: #a7f3d0;
    font-weight: 600;
  }