/* ===== BASE RESET & THEME (matching your site) ===== */
    * { margin:0; padding:0; box-sizing:border-box; font-family: 'Inter', -apple-system, sans-serif; }
    :root {
      --primary:#0b1a2e;
      --primary-light:#1d3557;
      --accent:#00b894;
      --accent-light:#55efc4;
      --accent-gradient:linear-gradient(145deg, #00b894, #00a381);
      --gray-bg:#f1f5f9;
      --card-bg:#ffffff;
      --shadow:0 10px 25px -8px rgba(0,0,0,0.08);
      --shadow-hover:0 20px 35px -12px rgba(0,0,0,0.15);
      --radius:24px;
      --radius-sm:16px;
      --wa-green:#25D366;
      --wa-dark:#128C7E;
      --wa-light:#DCF8C6;
    }

    /* ===== WHATSAPP MODAL WIDGET ===== */

    /* Backdrop Overlay */
    .wa-modal-overlay {
      position: fixed;
      inset: 0;
      /*background: rgba(11, 26, 46, 0.55);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);*/
      z-index: 9998;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .wa-modal-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    /* Modal Box — anchored bottom-right */
    .wa-modal {
      position: fixed;
      bottom: 10px;
      right: 20px;
      width: 380px;
      max-width: calc(100vw - 40px);
      height: 580px;
      max-height: calc(100vh - 200px);
      background: #fff;
      border-radius: var(--radius-sm);
      box-shadow: 0 25px 60px rgba(0,0,0,0.35);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      z-index: 9999;
      transform: translateY(30px) scale(0.92);
      transform-origin: bottom right;
      opacity: 0;
      visibility: hidden;
      transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                  opacity 0.3s ease,
                  visibility 0.3s ease;
      border: 1px solid #eef2f6;
    }
    .wa-modal.open {
      transform: translateY(0) scale(1);
      opacity: 1;
      visibility: visible;
    }

    /* Modal Header */
    .wa-modal-header {
      background: linear-gradient(135deg, var(--wa-dark), var(--wa-green));
      color: #fff;
      padding: 16px 18px;
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }
    .wa-modal-header .wa-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      overflow: hidden;
      flex-shrink: 0;
      border: 2px solid rgba(255,255,255,0.5);
    }
    .wa-modal-header .wa-header-info {
      flex: 1;
      min-width: 0;
    }
    .wa-modal-header .wa-header-info h4 {
      font-size: 1rem;
      font-weight: 700;
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .wa-modal-header .wa-header-info p {
      font-size: 0.75rem;
      opacity: 0.92;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .wa-modal-header .wa-header-info p::before {
      content: '';
      display: inline-block;
      width: 7px;
      height: 7px;
      background: #4ade80;
      border-radius: 50%;
      animation: waDot 1.5s infinite;
    }
    @keyframes waDot {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }
    .wa-modal-header .wa-close-btn {
      background: rgba(255,255,255,0.18);
      border: none;
      color: #fff;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.2s;
      flex-shrink: 0;
    }
    .wa-modal-header .wa-close-btn:hover {
      background: rgba(255,255,255,0.35);
      transform: rotate(90deg);
    }

    /* Chat Body */
    .wa-modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      background: #e5ddd5;
      background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cdc4' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
      display: flex;
      flex-direction: column;
      gap: 10px;
      scroll-behavior: smooth;
    }
    .wa-modal-body::-webkit-scrollbar { width: 5px; }
    .wa-modal-body::-webkit-scrollbar-thumb { background: #bbb; border-radius: 10px; }

    /* Message Bubbles */
    .wa-msg {
      max-width: 82%;
      padding: 10px 14px;
      border-radius: 12px;
      font-size: 0.87rem;
      line-height: 1.45;
      position: relative;
      word-wrap: break-word;
      animation: waMsgIn 0.3s ease;
    }
    @keyframes waMsgIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .wa-msg.bot {
      background: #fff;
      align-self: flex-start;
      border-top-left-radius: 4px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.08);
      color: #111;
    }
    .wa-msg.user {
      background: var(--wa-light);
      align-self: flex-end;
      border-top-right-radius: 4px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.08);
      color: #111;
    }
    .wa-msg .wa-msg-time {
      display: block;
      font-size: 0.65rem;
      color: #999;
      text-align: right;
      margin-top: 4px;
    }

    /* Typing Indicator */
    .wa-typing {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 10px 14px;
      background: #fff;
      border-radius: 12px;
      border-top-left-radius: 4px;
      align-self: flex-start;
      box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    }
    .wa-typing span {
      width: 7px;
      height: 7px;
      background: #aaa;
      border-radius: 50%;
      animation: waTyping 1.2s infinite;
    }
    .wa-typing span:nth-child(2) { animation-delay: 0.2s; }
    .wa-typing span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes waTyping {
      0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
      30% { transform: translateY(-5px); opacity: 1; }
    }

    /* Quick Replies */
    .wa-quick-replies {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding: 8px 14px 12px;
      background: #e5ddd5;
      border-top: 1px solid rgba(0,0,0,0.06);
      flex-shrink: 0;
    }
    .wa-quick-reply {
      background: #fff;
      border: 1px solid var(--wa-green);
      color: var(--wa-dark);
      padding: 6px 14px;
      border-radius: 40px;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      transition: 0.2s;
      white-space: nowrap;
      animation: waMsgIn 0.3s ease;
    }
    .wa-quick-reply:hover {
      background: var(--wa-green);
      color: #fff;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    }

    /* Chat Footer (input area) */
    .wa-modal-footer {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      background: #f0f0f0;
      border-top: 1px solid #ddd;
      flex-shrink: 0;
    }
    .wa-modal-footer input {
      flex: 1;
      border: none;
      border-radius: 40px;
      padding: 10px 16px;
      font-size: 0.85rem;
      outline: none;
      background: #fff;
      color: #111;
    }
    .wa-modal-footer input::placeholder { color: #aaa; }
    .wa-modal-footer .wa-send-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--wa-green);
      color: #fff;
      border: none;
      cursor: pointer;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.2s;
      flex-shrink: 0;
    }
    .wa-modal-footer .wa-send-btn:hover {
      background: var(--wa-dark);
      transform: scale(1.05);
    }

    /* Floating Trigger Button */
    .wa-float-btn {
      position: fixed;
      bottom: 10px;
      right: 20px;
      width: 62px;
      height: 62px;
      border-radius: 50%;
      background: var(--wa-green);
      color: #fff;
      border: none;
      cursor: pointer;
      box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      z-index: 9997;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      animation: waPulse 2s infinite;
    }
    .wa-float-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    }
    .wa-float-btn.active {
      transform: rotate(90deg);
      background: var(--wa-dark);
      animation: none;
    }
    .wa-float-btn .wa-badge {
      position: absolute;
      top: -2px;
      right: -2px;
      width: 22px;
      height: 22px;
      background: #ff4757;
      border-radius: 50%;
      font-size: 11px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      border: 2px solid #fff;
      opacity: 0;
      transition: opacity 0.3s;
    }
    .wa-float-btn .wa-badge.show { opacity: 1; }

    @keyframes waPulse {
      0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
      70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
      100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 480px) {
      .wa-modal {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 85vh;
        max-height: 85vh;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        transform-origin: bottom center;
      }
      .wa-float-btn {
        bottom: 20px;
        right: 16px;
        width: 56px;
        height: 56px;
        font-size: 28px;
      }
    }

    /* ===== DEMO PAGE STYLES (remove on your site) ===== */
    .demo-content {
      max-width: 800px;
      margin: 60px auto;
      padding: 0 20px;
      text-align: center;
    }
    .demo-content h1 {
      color: var(--primary);
      font-size: 2rem;
      margin-bottom: 12px;
    }
    .demo-content p {
      color: #475569;
      margin-bottom: 20px;
      line-height: 1.6;
    }
    .demo-btn {
      background: var(--accent-gradient);
      color: #fff;
      border: none;
      padding: 14px 32px;
      border-radius: 40px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: 0.2s;
      box-shadow: var(--shadow);
    }
    .demo-btn:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
    }