/* =====================
   TRADEBUDDY BOT CORE
===================== */

.tradebuddy-bot {
    position: relative;
    width: 120px;
    height: 160px;
    isolation: isolate;
  }
  
  /* HEAD */
  .tradebuddy-bot .bot__head {
    position: absolute;
    top: 0;
    left: 50%;
    width: 78px;
    height: 68px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
      radial-gradient(120px 80px at 30% 25%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%),
      linear-gradient(160deg, #161a2e 0%, #0a0c14 60%, #05060b 100%);
    box-shadow:
      inset 0 2px 6px rgba(255,255,255,.12),
      inset 0 -6px 12px rgba(0,0,0,.8),
      0 14px 30px rgba(0,0,0,.55);
  }
  
  /* FACE */
  .tradebuddy-bot .bot__face {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 60px;
    height: 34px;
    transform: translateX(-50%);
    border-radius: 18px;
    background: linear-gradient(180deg, #0a0c14, #05060b);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: inset 0 0 12px rgba(0,0,0,.9);
  }
  
  /* EYES */
  .tradebuddy-bot .bot__eye {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #9fe0ff 0%, #3aa6ff 40%, #0b1b33 70%);
    box-shadow:
      0 0 6px rgba(100,180,255,.8),
      0 0 14px rgba(80,160,255,.6);
  }
  
  /* TORSO */
  .tradebuddy-bot .bot__torso {
    position: absolute;
    top: 70px;
    left: 50%;
    width: 85px;
    height: 60px;
    transform: translateX(-50%);
    border-radius: 34px 34px 20px 20px;
    background: linear-gradient(160deg, #14172b, #070812);
  }
  
  /* CORE */
  .tradebuddy-bot .bot__core {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 26px;
    height: 26px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, #101522, #05060b);
    box-shadow: 0 0 14px rgba(120,180,255,.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .tradebuddy-bot .bot__bolt {
    font-size: 14px;
    color: #9fe0ff;
  }
  
  /* SPEECH */
  .tradebuddy-bot .bot__bubble {
    position: absolute;
    bottom: 160px;
    left: 0;
    width: 240px;
    padding: 12px 14px;
    background: #141622;
    color: #fff;
    font-size: 13px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.55);
  }
  
  /* MATRIX MODE */
  .tradebuddy-bot.matrix .bot__eye {
    background: #001a0d;
    font-family: monospace;
    font-size: 8px;
    color: #00ff66;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* =====================
   BLINK ANIMATION
===================== */

@keyframes bot-blink {
    0%, 92%, 100% {
      transform: scaleY(1);
    }
  
    94%, 96% {
      transform: scaleY(0.1);
    }
  }
  
  .tradebuddy-bot .bot__eye {
    animation: bot-blink 4s infinite ease-in-out;
    transform-origin: center;
  }

  @keyframes bot-blink {
    0%, 95%, 100% {
      transform: scaleY(1);
    }
  
    97% {
      transform: scaleY(0.15);
    }
  }

  /* =====================
   THINKING MODE
===================== */

.tradebuddy-bot.thinking {
    animation: bot-float 3s ease-in-out infinite;
  }
  
  /* Micro flotación */
  @keyframes bot-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
  }
  
  /* Ojos más enfocados */
  .tradebuddy-bot.thinking .bot__eye {
    transform: scaleY(0.6);
    background: radial-gradient(circle, #b8f0ff 0%, #4cc3ff 50%, #0b1b33 80%);
    box-shadow:
      0 0 8px rgba(120,200,255,.9),
      0 0 20px rgba(80,160,255,.6);
    transition: .3s ease;
  }
  
  /* Core más vivo */
  .tradebuddy-bot.thinking .bot__core {
    animation: core-thinking 2s ease-in-out infinite;
  }
  
  @keyframes core-thinking {
    0%   { box-shadow: 0 0 10px rgba(120,180,255,.4); }
    50%  { box-shadow: 0 0 22px rgba(120,180,255,.9); }
    100% { box-shadow: 0 0 10px rgba(120,180,255,.4); }
  }


  /* =====================
   JUDGE MODE  (-.-)
===================== */

.tradebuddy-bot.judge {
    transform: rotate(-2deg);
    transition: .3s ease;
  }
  
  /* Ojos estilo -.- */
  .tradebuddy-bot.judge .bot__eye {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg,#7fcfff,#4cc3ff);
    box-shadow: 0 0 6px rgba(100,180,255,.7);
    transition: .25s ease;
  }
  
  /* Core más frío */
  .tradebuddy-bot.judge .bot__core {
    box-shadow: 0 0 6px rgba(120,180,255,.3);
    transition: .3s ease;
  }

  /* =====================
   CURIOUS MODE 👀
===================== */

.tradebuddy-bot.curious {
    transform: rotate(1deg);
    transition: .3s ease;
  }
  
  .tradebuddy-bot.curious .bot__eye {
    transform: scale(1.2);
    background: radial-gradient(circle, #c8f7ff 0%, #6ed4ff 60%, #0b1b33 90%);
    box-shadow:
      0 0 10px rgba(140,220,255,.9),
      0 0 20px rgba(100,180,255,.5);
    transition: .25s ease;
  }
  
  .tradebuddy-bot.curious .bot__core {
    box-shadow:
      0 0 12px rgba(120,200,255,.5);
    transition: .3s ease;
  }

  /* =====================
   SUSPICIOUS MODE 🧐
===================== */

.tradebuddy-bot.suspicious {
    transform: rotate(-3deg);
    transition: .3s ease;
  }
  
  /* ojo izquierdo normal */
  .tradebuddy-bot.suspicious .bot__eye:first-child {
    transform: scaleY(0.6);
  }
  
  /* ojo derecho más cerrado */
  .tradebuddy-bot.suspicious .bot__eye:last-child {
    transform: scaleY(0.3);
  }
  
  .tradebuddy-bot.suspicious .bot__core {
    box-shadow:
      0 0 6px rgba(120,180,255,.2);
    transition: .3s ease;
  }