 /* ===== CavBot Head Avatar Wrapper ===== */
  .cavbot-head-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
  }

  .cavbot-head-avatar-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: cavbotFloat 3.6s ease-in-out infinite;
  }

  @keyframes cavbotFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
  }

  /* ===== Antenna (from hero/index) ===== */
  .cavbot-antenna {
    position: relative;
    width: 5px;
    height: 26px;
    margin-bottom: -10px;
    background: linear-gradient(to bottom, #f3f5fb 0%, #c8ccd8 45%, #9ca2b0 100%);
    border-radius: 999px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .cavbot-antenna-tip {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 30% 20%, #ffffff 0%, #e7f2ff 50%, #9fb7ff 100%);
    box-shadow:
      0 0 0 2px rgba(0, 0, 0, 0.55),
      0 0 14px rgba(0, 110, 230, 0.7);
    animation: antennaPulse 1.8s ease-in-out infinite;
  }

  .cavbot-antenna-tip::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(181, 211, 49, 0.65);
    opacity: 0;
    animation: antennaHalo 1.8s ease-in-out infinite;
  }

  @keyframes antennaPulse {
    0%, 100% {
      box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.45),
        0 0 10px rgba(0, 110, 230, 0.6);
    }
    50% {
      box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.7),
        0 0 18px rgba(181, 211, 49, 0.9);
    }
  }

  @keyframes antennaHalo {
    0%, 100% { opacity: 0; transform: scale(0.78); }
    50%      { opacity: 1; transform: scale(1.08); }
  }

  /* ===== Head Shell (from hero/index) ===== */
  .cavbot-head {
    position: relative;
    width: 138px;
    height: 118px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 20% 0%, #ffffff 0%, #f5f7fc 32%, #d4d7e2 65%, #a8afc0 100%);
    box-shadow:
      0 -4px 12px rgba(255, 255, 255, 0.35) inset,
      0 8px 18px rgba(0, 0, 0, 0.35);
    padding: 18px 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cavbot-head::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 26px;
    border-radius: 999px;
    background:
      linear-gradient(135deg, #dadeea 0%, #c4c9d7 45%, #9ea3b5 100%);
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.25),
      0 -2px 6px rgba(255, 255, 255, 0.65) inset;
  }

  /* ===== Face Window + Eyes ===== */
  .cavbot-face {
    position: relative;
    width: 100%;
    height: 78px;
    border-radius: 46px;
    background:
      radial-gradient(circle at 20% 0%, rgba(0, 110, 230, 0.45), transparent 60%),
      radial-gradient(circle at 80% 10%, rgba(120, 82, 169, 0.65), transparent 60%),
      linear-gradient(160deg, #05060a 0%, #05060d 40%, #070c18 100%);
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    box-shadow:
      0 0 0 3px rgba(0, 0, 0, 0.85) inset,
      0 0 18px rgba(0, 110, 230, 0.7);
  }

  .cavbot-eyes-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .cavbot-eye {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6), transparent 65%),
      radial-gradient(circle at 50% 70%, #020306, #020309 80%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cavbot-eye::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(0, 214, 255, 0.8);
    box-shadow:
      0 0 12px rgba(0, 214, 255, 0.9),
      0 0 20px rgba(0, 110, 230, 0.8);
    opacity: 0.8;
    pointer-events: none;
  }

  .cavbot-eye-inner {
    position: relative;
    width: 78%;
    height: 78%;
    border-radius: inherit;
    background: radial-gradient(circle, #020308 0%, #050918 80%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cavbot-eye-track {
    position: relative;
    width: 120%;
    height: 120%;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms ease-out;
  }

  .cavbot-eye-pupil {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 30% 20%, #ffffff 0%, #d8f6ff 18%, #00b8ff 55%, #0060e6 100%);
    box-shadow:
      0 0 12px rgba(0, 184, 255, 0.9),
      0 0 20px rgba(0, 110, 230, 0.8);
  }

  .cavbot-eye-glow {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(181, 211, 49, 0.4) 0%, transparent 75%);
    opacity: 0.18;
    pointer-events: none;
  }

  .cavbot-blink {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.95) 70%);
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    animation: cavbotBlink 7.2s infinite;
  }

  @keyframes cavbotBlink {
    0%, 86%, 100% { transform: scaleY(0); opacity: 0; }
    88%, 90%      { transform: scaleY(1); opacity: 0.9; }
    92%           { transform: scaleY(0); opacity: 0; }
  }

  /* ===== Scan Bar (mouth area) ===== */
  .cavbot-scan {
    position: relative;
    margin-top: 6px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(to right, #05070b, #03040a);
  }

  .cavbot-scan-bar {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(120deg,
        transparent 0%,
        rgba(0, 110, 230, 0.35) 18%,
        rgba(181, 211, 49, 0.7) 50%,
        rgba(120, 82, 169, 0.6) 78%,
        transparent 100%);
    transform: translateX(-100%);
    animation: cavbotScan 3.1s linear infinite;
    opacity: 0.95;
  }

  .cavbot-scan-dots {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    font-size: 0.46rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(211, 218, 240, 0.8);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    opacity: 0.8;
  }

  @keyframes cavbotScan {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }

  /* Optional: respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .cavbot-head-avatar-inner,
    .cavbot-antenna-tip,
    .cavbot-blink,
    .cavbot-scan-bar {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
    }
  }