/* ==========================================================================
   ArabiPro — Friendly Assistant Chatbot (static, no backend, zero deps)
   Prefixed cb- to avoid collisions. Brand: green & gold.
   ========================================================================== */
.cb-root, .cb-root * { box-sizing: border-box; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }

.cb-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 9990;
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #0e7a4f, #0b5c3b); color: #fff; font-size: 30px;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(11, 92, 59, 0.45);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.cb-fab:hover { transform: scale(1.08); }
.cb-fab:active { transform: scale(0.95); }
.cb-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid #0e7a4f; animation: cb-pulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes cb-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

.cb-badge {
  position: absolute; top: -2px; right: -2px; min-width: 24px; height: 24px;
  border-radius: 999px; background: #d4a017; color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
  padding: 0 6px; border: 2px solid #fff;
}

.cb-panel {
  position: fixed; right: 20px; bottom: 96px; z-index: 9990;
  width: min(370px, calc(100vw - 32px)); max-height: min(540px, calc(100dvh - 130px));
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  display: flex; flex-direction: column;
  transform: translateY(24px) scale(0.96); opacity: 0; pointer-events: none;
  transform-origin: bottom right;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s;
}
.cb-panel.open { transform: none; opacity: 1; pointer-events: auto; }

.cb-head {
  background: linear-gradient(135deg, #0b5c3b, #0e7a4f); color: #fff;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.cb-av {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #d4a017, #f0c94a);
  display: grid; place-items: center; font-size: 24px; position: relative;
}
.cb-av::after {
  content: ""; position: absolute; bottom: 1px; right: 1px; width: 13px; height: 13px;
  border-radius: 50%; background: #25d366; border: 2px solid #0e7a4f;
}
.cb-head b { display: block; font-size: 16px; }
.cb-head small { color: #cfe8d8; font-size: 12.5px; }
.cb-close {
  margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 20px; display: grid; place-items: center;
  flex: 0 0 auto;
}

.cb-body {
  background: #f3f6f4; padding: 16px; overflow-y: auto; flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.cb-msg {
  max-width: 88%; background: #fff; border-radius: 4px 14px 14px 14px;
  padding: 11px 14px; font-size: 14.5px; line-height: 1.6; color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10); animation: cb-in 0.35s cubic-bezier(0.22,1,0.36,1);
}
.cb-msg a { color: #0e7a4f; font-weight: 600; }
.cb-msg .cb-time { display: block; text-align: right; font-size: 11px; color: #8a8a8a; margin-top: 4px; }
.cb-msg.user {
  align-self: flex-end; background: #0e7a4f; color: #fff;
  border-radius: 14px 4px 14px 14px;
}
.cb-msg.user .cb-time { color: rgba(255,255,255,0.75); }
.cb-msg .cb-wa {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  background: #25d366; color: #fff !important; font-weight: 700; text-decoration: none;
  padding: 11px 20px; border-radius: 999px; font-size: 14.5px;
  min-height: 44px;
}
.cb-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-quick button {
  min-height: 44px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #0e7a4f; background: #fff; color: #0b5c3b;
  font-size: 13.5px; font-weight: 600; transition: all 0.25s;
}
.cb-quick button:hover { background: #0e7a4f; color: #fff; transform: translateY(-2px); }

.cb-foot { display: flex; gap: 8px; padding: 12px; background: #eef2ef; align-items: center; }
.cb-input {
  flex: 1; min-height: 48px; border: 0; border-radius: 999px; padding: 12px 18px;
  font-size: 15px; background: #fff; color: #1a1a1a; outline: none;
  box-shadow: inset 0 0 0 1px #ddd;
}
.cb-input:focus { box-shadow: inset 0 0 0 2px #0e7a4f; }
.cb-send {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; flex: 0 0 auto;
  background: #0e7a4f; color: #fff; font-size: 22px; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(14,122,79,0.45); transition: transform 0.25s;
}
.cb-send:hover { transform: scale(1.08); }
.cb-send:active { transform: scale(0.94); }
.cb-typing { font-style: italic; color: #6b7280; font-size: 13px; }

@keyframes cb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cb-fab::before, .cb-msg { animation: none; } }
