              :root {
                  --brand: #2563eb;
                  --brand-dark: #1d4ed8;
                  --bg: #0f172a;
                  --bubble-bot: #f1f5f9;
                  --bubble-user: #2563eb;
                  --text: #0f172a;
                  --muted: #64748b;
              }

              * {
                  box-sizing: border-box;
              }

              /* ---- Floating launcher button ---- */
              #chat-launcher {
                  /*position: fixed;*/
                  bottom: 24px;
                  /*right: 24px;
                  width: 60px;
                  height: 60px;
                  border-radius: 50%;*/
                  color: #fff;
                  padding: 15px;
                  border-radius: 9px;
                  margin-top: 10px;
                  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
                  box-shadow:
                      0 0 0 1px rgba(147, 197, 253, 0.35),
                      0 0 12px rgba(96, 165, 250, 0.7),
                      0 0 24px rgba(59, 130, 246, 0.55),
                      0 0 48px rgba(37, 99, 235, 0.4),
                      inset 0 2px 4px rgba(255, 255, 255, 0.18);
                  border: none;
                  cursor: pointer;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  z-index: 9999;
                  transition: transform .15s ease;
              }

              #chat-launcher1 {
                  /*position: fixed;*/
                  bottom: 24px;

                  color: #fff;
                  padding: 8px;
                  border-radius: 9px;
                  margin-top: 10px;
                  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
                  box-shadow:
                      0 0 0 1px rgba(147, 197, 253, 0.35),
                      0 0 12px rgba(96, 165, 250, 0.7),
                      0 0 24px rgba(59, 130, 246, 0.55),
                      0 0 48px rgba(37, 99, 235, 0.4),
                      inset 0 2px 4px rgba(255, 255, 255, 0.18);
                  border: none;
                  cursor: pointer;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  z-index: 9999;
                  transition: transform .15s ease;
              }

              #chat-launcher:hover,
              #chat-launcher1:hover {
                  transform: scale(1.06);
              }

              #chat-launcher svg,
              #chat-launcher1 svg {
                  width: 35px;
                  height: 35px;
              }

              /* ---- Chat window ---- */
              #chat-window {
                  position: fixed;
                  bottom: 96px;
                  right: 24px;
                  width: 380px;
                  max-width: 92vw;
                  height: 560px;
                  max-height: 80vh;
                  background: #fff;
                  border-radius: 16px;
                  box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
                  display: none;
                  flex-direction: column;
                  overflow: hidden;
                  z-index: 9999;
                  border: 1px solid #e2e8f0;
              }

              #chat-window.open {
                  display: flex;
              }

              #chat-header {
                  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
                  color: #fff;
                  padding: 16px 18px;
                  display: flex;
                  align-items: center;
                  gap: 12px;
              }

              #chat-header img {
                  width: 36px;
                  height: 36px;
                  border-radius: 8px;
                  background: #fff;
                  object-fit: contain;
                  padding: 3px;
              }

              #chat-header .titles {
                  flex: 1;
              }

              #chat-header .titles h1 {
                  font-size: 14.5px;
                  margin: 0;
                  font-weight: 600;
                  line-height: 1rem;
              }

              #chat-header .titles p {
                  font-size: 11.5px;
                  margin: 1px 0 0;
                  opacity: .85;
              }

              #chat-close {
                  background: rgba(255, 255, 255, .15);
                  border: none;
                  color: #fff;
                  width: 28px;
                  height: 28px;
                  border-radius: 50%;
                  cursor: pointer;
                  font-size: 16px;
                  line-height: 1;
                  display: flex;
                  align-items: center;
                  justify-content: center;
              }

              #chat-close:hover {
                  background: rgba(255, 255, 255, .28);
              }

              #chat-messages {
                  flex: 1;
                  overflow-y: auto;
                  padding: 16px;
                  display: flex;
                  flex-direction: column;
                  gap: 10px;
                  background: #f8fafc;
              }

              .msg {
                  max-width: 84%;
                  padding: 10px 13px;
                  border-radius: 14px;
                  font-size: 14px;
                  line-height: 1.45;
                  white-space: pre-wrap;
                  word-wrap: break-word;
              }

              .msg.bot {
                  background: var(--bubble-bot);
                  color: var(--text);
                  align-self: flex-start;
                  border-bottom-left-radius: 4px;
              }

              .msg.user {
                  background: var(--bubble-user);
                  color: #fff;
                  align-self: flex-end;
                  border-bottom-right-radius: 4px;
              }

              .msg.bot a {
                  color: var(--brand-dark);
              }

              .typing {
                  align-self: flex-start;
                  display: flex;
                  gap: 4px;
                  padding: 12px 14px;
                  background: var(--bubble-bot);
                  border-radius: 14px;
                  border-bottom-left-radius: 4px;
              }

              .typing span {
                  width: 6px;
                  height: 6px;
                  border-radius: 50%;
                  background: #94a3b8;
                  animation: bounce 1.2s infinite ease-in-out;
              }

              .typing span:nth-child(2) {
                  animation-delay: .15s;
              }

              .typing span:nth-child(3) {
                  animation-delay: .3s;
              }

              @keyframes bounce {

                  0%,
                  60%,
                  100% {
                      transform: translateY(0);
                      opacity: .5;
                  }

                  30% {
                      transform: translateY(-5px);
                      opacity: 1;
                  }
              }

              #suggestions {
                  display: flex;
                  flex-wrap: wrap;
                  gap: 6px;
                  padding: 0 16px 12px;
                  background: #f8fafc;
              }

              .chip {
                  border: 1px solid #cbd5e1;
                  background: #fff;
                  color: #334155;
                  font-size: 12px;
                  padding: 6px 10px;
                  border-radius: 999px;
                  cursor: pointer;
                  transition: .15s;
              }

              .chip:hover {
                  background: var(--brand);
                  color: #fff;
                  border-color: var(--brand);
              }

              #chat-input-row {
                  display: flex;
                  align-items: center;
                  gap: 8px;
                  padding: 12px;
                  border-top: 1px solid #e2e8f0;
                  background: #fff;
              }

              #chat-input {
                  flex: 1;
                  border: 1px solid #cbd5e1;
                  border-radius: 22px;
                  padding: 10px 16px;
                  font-size: 14px;
                  outline: none;
                  font-family: inherit;
              }

              #chat-input:focus {
                  border-color: var(--brand);
              }

              #chat-send {
                  background: var(--brand);
                  border: none;
                  color: #fff;
                  width: 38px;
                  height: 38px;
                  border-radius: 50%;
                  cursor: pointer;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  flex-shrink: 0;
              }

              #chat-send:hover {
                  background: var(--brand-dark);
              }

              #chat-send:disabled {
                  opacity: .5;
                  cursor: not-allowed;
              }

              #chat-footer-note {
                  font-size: 10.5px;
                  color: var(--muted);
                  text-align: center;
                  padding: 6px 0 10px;
                  background: #fff;
              }

              .demo-wrap {
                  max-width: 640px;
                  background: #fff;
                  border-radius: 16px;
                  padding: 32px;
                  box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
              }

              .demo-wrap h2 {
                  margin-top: 0;
              }

              .demo-wrap code {
                  background: #f1f5f9;
                  padding: 2px 6px;
                  border-radius: 4px;
                  font-size: 13px;
              }

              .swiper {
                  height: 100%;
              }

              .swiper-slide {
                  height: auto;
              }

              .card {
                  width: 100%;
                  height: 100%;
              }

              .portfolio-thumb {
                  border: 2px solid gray;
                  opacity: 0.6;
                  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
              }

              .portfolio-thumb:hover {
                  opacity: 0.85;
              }

              .portfolio-thumb-active {
                  border: 2px solid #1E3A8A;
                  opacity: 1;
                  transform: scale(1.03);
              }
