  :root {
    --strip-bg: linear-gradient(135deg, #0d5c4a 0%, #1a8c6e 40%, #0f7a5a 70%, #0a4a3a 100%);
    --accent: #3fffc8;
    --accent2: #f5c842;
    --chat-bg: #f0faf4;
    --msg-user: #1a8c6e;
    --msg-bot: #0f3d31;
    --text-light: #e8fff8;
    --border: rgb(3 26 19 / 42%);
    --glow: 0 0 32px rgba(63, 255, 200, .22);
  }



  .chatbot-strip-wrap {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    /* anchor for absolute popup */
    height: 100%;
  }

  .chatbot-strip {
    background: var(--strip-bg);
    border-radius: 20px;
    padding: 0;
    overflow: visible;
    /* allow popup to escape */
    cursor: pointer;
    /* box-shadow: 0 8px 40px rgba(10,74,58,.25), var(--glow); */
    transition: box-shadow .3s ease, transform .3s ease;
    position: relative;
    z-index: 100;
    height: 100%;
  }

  /* decorative pattern sits only on the header */
  .strip-header-bg {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
        transparent,
        transparent 30px,
        rgba(255, 255, 255, .025) 30px,
        rgba(255, 255, 255, .025) 31px);
    pointer-events: none;
    border-radius: 20px;
  }

  .chatbot-strip:hover {
    box-shadow: 0 12px 56px rgba(10, 74, 58, .35), 0 0 48px rgba(63, 255, 200, .3);
    transform: translateY(-2px);
  }

  .strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    gap: 16px;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
  }

  .strip-header-bg {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
        transparent,
        transparent 30px,
        rgba(255, 255, 255, .025) 30px,
        rgba(255, 255, 255, .025) 31px);
    pointer-events: none;
    z-index: 0;
  }

  /* push all direct children of strip-header above the bg */
  .strip-header>*:not(.strip-header-bg) {
    position: relative;
    z-index: 1;
  }

  .strip-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
  }

  .pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(63, 255, 200, .5);
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(63, 255, 200, .5);
    }

    70% {
      box-shadow: 0 0 0 10px rgba(63, 255, 200, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(63, 255, 200, 0);
    }
  }

  .strip-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
  }

  .strip-subtitle {
    font-size: .78rem;
    color: rgba(232, 255, 248, .65);
    margin: 0;
    letter-spacing: .02em;
  }

  .strip-badge {
    background: var(--accent);
    color: #0a3d30;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .72rem;
    padding: 4px 12px;
    border-radius: 30px;
    letter-spacing: .06em;
    text-transform: uppercase;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .strip-badge svg {
    width: 14px;
    height: 14px;
  }

  .lets-chat-btn {
    background: var(--accent2);
    color: #1a1a1a;
    border: none;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    padding: 10px 22px;
    border-radius: 30px;
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
  }

  .lets-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(245, 200, 66, .5);
  }

  .lets-chat-btn svg {
    width: 16px;
    height: 16px;
  }

  .toggle-icon {
    color: var(--accent);
    flex-shrink: 0;
    transition: transform .4s ease;
  }

  /* chevron points DOWN by default; rotates up when expanded */
  .expanded .toggle-icon {
    transform: rotate(180deg);
  }

  .strip-body {
    position: absolute;
    bottom: calc(100% + 0px);
    /* sits below the strip, over page content */
    left: 0;
    right: 0;
    z-index: 200;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 60px rgba(10, 74, 58, .4), 0 0 48px rgba(63, 255, 200, .2);
    /* animation: scale from top edge downward */
    transform-origin: top center;
    transform: scaleY(0) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform .45s cubic-bezier(.4, 0, .2, 1),
      opacity .35s ease;
  }

  .strip-body.open {
    transform: scaleY(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .strip-inner {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 0;
    background: var(--chat-bg);
    border-top: 1px solid var(--border);
  }

  .chat-panel {
    display: flex;
    flex-direction: column;
    height: 420px;
    padding: 20px 20px 16px;
    border-right: 1px solid var(--border);
  }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }

  .chat-messages::-webkit-scrollbar {
    width: 4px;
  }

  .chat-messages::-webkit-scrollbar-track {
    background: #ccc;
  }

  .chat-messages::-webkit-scrollbar-thumb {
    background: #4d4d4d;
    border-radius: 4px;
  }

  .msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: msgIn .3s ease;
  }

  @keyframes msgIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .msg.bot {
    flex-direction: row;
  }

  .msg.user {
    flex-direction: row-reverse;
  }

  .msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 700;
    color: #0a3d30;
  }

  .msg.user .msg-avatar {
    background: var(--accent2);
  }

  .msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
    color: white;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
  }

  /* Suggested Questions Styling */
  .suggested-questions .msg-bubble {
    background: var(--msg-bot);
    border: 1px solid rgba(63, 255, 200, 0.3);
  }

  .suggested-questions-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .suggested-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    opacity: 0.9;
  }

  .suggested-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .suggested-question-btn {
    background: rgba(63, 255, 200, 0.1);
    border: 1px solid rgba(63, 255, 200, 0.3);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
    line-height: 1.4;
  }

  .suggested-question-btn:hover {
    background: rgba(63, 255, 200, 0.2);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(63, 255, 200, 0.2);
  }

  .suggested-question-btn:active {
    transform: translateY(0);
  }

  .msg.bot .msg-bubble {
    background: var(--msg-bot);
    border-bottom-left-radius: 4px;
  }

  .msg.user .msg-bubble {
    background: var(--msg-user);
    border-bottom-right-radius: 4px;
  }

  .typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 6px 0;
  }

  .typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: bounce 1.2s infinite;
  }

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

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

  @keyframes bounce {

    0%,
    80%,
    100% {
      transform: translateY(0);
    }

    40% {
      transform: translateY(-6px);
    }
  }

  .chat-input-area {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    align-items: center;
  }

  .chat-input {
    flex: 1;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 18px;
    color: #000;
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    outline: none;
    transition: border-color .2s;
  }

  .chat-input::placeholder {
    color: #4d4d4d;
  }

  .chat-input:focus {
    border-color: var(--msg-user);
  }

  .send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--msg-user);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .2s, box-shadow .2s;
    color: #fff;
  }

  .send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(63, 255, 200, .4);
  }

  .ai-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    gap: 14px;
    background: linear-gradient(160deg, #0d3d30 0%, #072a20 100%);
    position: relative;
    overflow: hidden;
  }

  .ai-panel::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(63, 255, 200, .12), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .ai-img-wrap {
    position: relative;
    width: 120px;
    height: 120px;
  }

  .ai-img-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent2)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: spin 6s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  .ai-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #1a8c6e, #0d5c4a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* SVG robot face (inline) */
  .ai-face-svg {
    width: 80px;
    height: 80px;
  }

  .ai-label {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    color: var(--accent);
    text-align: center;
    letter-spacing: .06em;
  }

  .ai-desc {
    font-size: .72rem;
    color: rgba(232, 255, 248, .5);
    text-align: center;
    line-height: 1.5;
  }

  .ai-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(63, 255, 200, .1);
    border: 1px solid rgba(63, 255, 200, .2);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: .7rem;
    color: var(--accent);
    font-weight: 500;
  }

  .status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  .welcome-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    text-align: center;
  }

  .welcome-state h5 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
    margin: 0;
  }

  .welcome-state p {
    font-size: .8rem;
    color: rgba(232, 255, 248, .55);
    margin: 0;
    max-width: 240px;
  }

  .start-btn {
    background: linear-gradient(135deg, var(--accent), #1fdfaa);
    color: #0a2e25;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: .04em;
    transition: transform .2s, box-shadow .2s;
  }

  .start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(63, 255, 200, .4);
  }

  .chat-active {
    display: none;
    flex-direction: column;
    height: 100%;
  }

  .chat-active.show {
    display: flex;
  }

  .welcome-state.hide {
    display: none;
  }

  @media (max-width: 600px) {
    .strip-header {
      padding: 14px 18px;
      gap: 10px;
      flex-direction: column;
    }

    .strip-title {
      font-size: .92rem;
    }

    .strip-badge {
      display: none;
    }

    .strip-inner {
      grid-template-columns: 1fr;
      grid-template-rows: 320px auto;
    }

    .chat-panel {
      height: 320px;
      border-right: none;
      border-bottom: 1px solid var(--border);
    }

    .ai-panel {
      display: none;
      flex-direction: row;
      padding: 16px 20px;
      gap: 16px;
      justify-content: flex-start;
    }

    .ai-img-wrap {
      width: 60px;
      height: 60px;
    }

    .ai-img {
      width: 60px;
      height: 60px;
    }

    .ai-img-ring {
      inset: -4px;
    }

    .ai-face-svg {
      width: 40px;
      height: 40px;
    }

    .ai-panel::before {
      display: none;
    }
  }

  /* Markdown formatting inside bot bubble */
  .msg-bubble strong {
    font-weight: 700;
    color: #3fffc8;
  }

  .msg-bubble em {
    font-style: italic;
  }

  .bot-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
  }

  .bot-table th,
  .bot-table td {
    border: 1px solid rgba(63, 255, 200, 0.3);
    padding: 6px 10px;
    text-align: left;
  }

  .bot-table th {
    background: rgba(63, 255, 200, 0.15);
    color: var(--accent);
    font-weight: 600;
  }

  .bot-list {
    margin: 8px 0;
    padding-left: 20px;
  }

  .bot-list li {
    margin-bottom: 4px;
  }