    /* Chat Widget */
    .chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 99999; font-family: var(--font-text); }
    .chat-toggle-btn {
      width: 62px; height: 62px; border-radius: 50%;
      background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-deep) 100%);
      border: none; color: #fff; font-size: 1.7rem; cursor: pointer;
      box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
      transition: all 0.3s ease; position: relative;
      display: flex; align-items: center; justify-content: center;
    }
    .chat-toggle-btn:hover { transform: scale(1.08); box-shadow: 0 8px 25px rgba(29, 78, 216, 0.45); }
    .chat-badge {
      position: absolute; top: -5px; right: -5px; background: #dc2626; color: #fff;
      font-size: 0.68rem; padding: 0.3rem 0.6rem; border-radius: 20px; font-weight: 600;
      white-space: nowrap; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    }
    .chat-window {
      position: absolute; bottom: 80px; right: 0; width: 380px; height: 550px;
      background: #fff; border-radius: 18px; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
      display: flex; flex-direction: column; overflow: hidden; animation: slideUp 0.3s ease;
    }
    @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    .chat-header {
      background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-deep) 100%);
      padding: 1.15rem 1.25rem; color: #fff; flex-shrink: 0;
      display: flex; align-items: center; justify-content: space-between;
    }
    .chat-close-btn {
      background: rgba(255,255,255,0.2); border: none; color: #fff; font-size: 1.1rem;
      width: 34px; height: 34px; border-radius: 50%; display: none; align-items: center;
      justify-content: center; cursor: pointer; transition: all 0.2s ease;
    }
    .chat-close-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
    @media (max-width: 768px) { .chat-close-btn { display: flex; } }
    .chat-header-info { display: flex; align-items: center; gap: 0.7rem; }
    .chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
    .chat-messages { flex: 1; padding: 1.15rem; overflow-y: auto; background: var(--surface); -webkit-overflow-scrolling: touch; }
    .message { display: flex; gap: 0.65rem; margin-bottom: 1rem; animation: fadeIn 0.3s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .message-avatar { width: 33px; height: 33px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-deep) 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; flex-shrink: 0; }
    .message-content { background: #fff; padding: 0.85rem 1rem; border-radius: 14px; border-top-left-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); max-width: 280px; }
    .message-content p { margin: 0 0 0.3rem 0; font-size: 0.875rem; line-height: 1.4; }
    .message-time { color: var(--muted); font-size: 0.68rem; }
    .message.user-message { flex-direction: row-reverse; }
    .message.user-message .message-content { background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-deep) 100%); color: #fff; border-radius: 14px; border-top-right-radius: 5px; }
    .message.user-message .message-avatar { background: var(--positive); }
    .chat-input-area { padding: 1rem; background: #fff; border-top: 1px solid var(--rule); flex-shrink: 0; }
    .chat-input-wrapper { display: flex; align-items: flex-end; gap: 0.5rem; background: var(--surface); border-radius: 22px; padding: 0.5rem 0.7rem; }
    .chat-input { flex: 1; border: none; background: transparent; padding: 0.5rem; font-size: 0.9375rem; resize: none; max-height: 100px; outline: none; font-family: inherit; line-height: 1.5; }
    .chat-send-btn { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-deep) 100%); border: none; color: #fff; font-size: 1.05rem; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; flex-shrink: 0; outline: none; }
    .chat-send-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(29,78,216,0.4); }
    .chat-send-btn:active { transform: scale(0.95); }
    .chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
    .chat-notification { padding: 0.7rem 1rem; border-radius: 10px; margin: 0.5rem 0; font-size: 0.83rem; text-align: center; }
    .chat-notification.success { background: linear-gradient(135deg, var(--positive) 0%, #065f46 100%); color: #fff; }
    .chat-notification.error { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); color: #fff; }

    @media (max-width: 768px) {
      .chat-widget { bottom: 20px; right: 20px; }
      .chat-toggle-btn { width: 58px; height: 58px; font-size: 1.5rem; }
      .chat-window {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw;
        height: 100vh; height: calc(var(--vh, 1vh) * 100);
        max-height: 100vh; max-height: calc(var(--vh, 1vh) * 100);
        border-radius: 0; margin: 0; padding: 0; z-index: 100000;
      }
      .chat-header { padding: 1rem 1.25rem; padding-top: max(1rem, env(safe-area-inset-top)); }
      .chat-messages { padding: 1rem; padding-bottom: env(safe-area-inset-bottom, 0); }
      .chat-input-area { padding: 0.75rem 1rem; padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); }
      .message-content { max-width: calc(100vw - 80px); }
      body.chat-keyboard-open .chat-window { height: calc(var(--vh, 1vh) * 100 - var(--keyboard-height, 0px)); }
    }
    @supports (-webkit-touch-callout: none) {
      @media (max-width: 768px) { .chat-window { height: -webkit-fill-available; } }
    }
