/**
 * AG-Kit AgentVisualizer - ChatGPT Command Dock & Interactive Response Card
 * Handles floating chips, prompt input bar, typewriter streaming & draggable chat drawer.
 */
/* Hero Center Interactive Command Dock (Bottom Aligned like original) */
.hero-command-dock{
  position:absolute;bottom:64px;left:50%;transform:translateX(-50%);z-index:36;
  width:min(540px,calc(100vw - 24px));pointer-events:auto;
  display:flex;flex-direction:column;align-items:center;gap:8px;
  transition:transform .28s var(--ease),opacity .28s var(--ease);
}

/* Bottom Chat Bar (ChatGPT style command dock) */
.hcd-chips-row{
  width:100%;display:flex;align-items:center;justify-content:flex-start;gap:6px;overflow-x:auto;scrollbar-width:none;
  padding:2px 4px;
}
.hcd-chips-row::-webkit-scrollbar{display:none}
.hcd-chips-row.is-compact{justify-content:center}
.cmd-chip{
  background:rgba(14,18,24,.75);border:1px solid rgba(255,255,255,.14);
  color:#cbd5e1;border-radius:999px;padding:4px 11px;font-size:11px;font-weight:600;
  cursor:pointer;white-space:nowrap;transition:background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
  display:inline-flex;align-items:center;gap:5px;flex-shrink:0;line-height:1.2;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
@media (hover: hover) and (pointer: fine) {
  .cmd-chip:hover{
    background:rgba(200,255,46,.16);border-color:rgba(200,255,46,.6);color:var(--lime);
    box-shadow:0 0 10px rgba(200,255,46,.25);
  }
}
.cmd-chip:active{
  transform:scale(0.94);
  transition-duration:.06s;
}
.cmd-chip.visited{
  background:rgba(200,255,46,.08);border-color:rgba(200,255,46,.35);
  color:#d4ff66;
}
@media (hover: hover) and (pointer: fine) {
  .cmd-chip.visited:hover{
    background:rgba(200,255,46,.2);border-color:var(--lime);color:#fff;
    box-shadow:0 0 10px rgba(200,255,46,.3);
  }
}
.cmd-chip.active{
  background:var(--lime) !important;border-color:var(--lime) !important;
  color:var(--lime-ink) !important;font-weight:700 !important;
  box-shadow:0 0 14px rgba(200,255,46,.4) !important;
}
.cmd-chip-icon{
  font-size:10px;line-height:1;display:inline-flex;align-items:center;
}
.cmd-chip.visited .cmd-chip-icon{
  color:var(--lime);font-weight:900;
}
.cmd-chip.active .cmd-chip-icon{
  color:var(--lime-ink);font-weight:900;
}

.hcd-chat-bar{
  width:100%;display:flex;align-items:center;gap:10px;
  background:rgba(10,13,17,.96);border:1px solid rgba(200,255,46,.62);
  border-radius:999px;padding:4px 8px 4px 18px;
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  box-shadow:0 16px 40px rgba(0,0,0,.68),0 0 18px rgba(200,255,46,.16);
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.hcd-chat-bar:focus-within{
  border-color:var(--lime);
  box-shadow:0 16px 40px rgba(0,0,0,.78),0 0 26px rgba(200,255,46,.28);
  background:rgba(10,13,17,.99);
}
.hcd-tag{
  color:var(--lime);font-family:"JetBrains Mono",monospace;font-size:10px;font-weight:800;
  letter-spacing:.06em;white-space:nowrap;user-select:none;flex-shrink:0;
}
.hcd-chat-input{
  flex:1;min-width:0;background:transparent;border:none;outline:none;
   font-family:inherit;font-size:13px;color:#f8fafc;padding:4px;
  line-height:1.3;
}
.hcd-chat-input::placeholder{
  color:rgba(255,255,255,.42);font-size:12.5px;
}
.hcd-send-btn{
  width:38px;height:38px;border-radius:50%;border:none;outline:none;
  display:inline-flex;align-items:center;justify-content:center;
   background:var(--lime);color:var(--lime-ink);cursor:pointer;
  transition:all .18s ease;flex-shrink:0;padding:0;
  position:relative;
}
.hcd-send-btn::after{content:"";position:absolute;inset:-3px} /* 44px-Hit-Area bei kompaktem Kern */
.hcd-send-btn svg{
  width:15px;height:15px;stroke-width:2.4;stroke:currentColor;fill:none;
  transition:transform .18s ease;
}
.hcd-send-btn.has-text{
  background:var(--lime);color:var(--lime-ink);
  box-shadow:0 0 12px rgba(200,255,46,.45);transform:scale(1.05);
}
@media (hover:hover) and (pointer:fine){
  .hcd-send-btn:hover{
    background:var(--lime);color:var(--lime-ink);
    box-shadow:0 0 12px rgba(200,255,46,.45);transform:scale(1.05);
  }
  .hcd-send-btn:hover svg,.hcd-send-btn:focus-visible svg{transform:scale(1.2)}
}
.hcd-send-btn:active{
  transform:scale(0.92);
  transition-duration:.06s;
}
.hcd-send-btn:active svg{
  transform:translateY(-1px) scale(1.08);
}

/* Active Response Card (Floats weightlessly above the bar, draggable/resizable) */
.hcd-response-card{
  position:relative;
  width:100%;
  background:transparent;border:none;box-shadow:none;
  padding:2px 4px;
  display:flex;flex-direction:column;gap:8px;
  isolation:isolate;
  -webkit-tap-highlight-color:transparent;
  animation:hcdCardPop .22s cubic-bezier(.16,1,.3,1);
}
.hcd-response-card::before{
  content:"";
  position:absolute;
  inset:-14px -22px;
  border-radius:32px;
  background:radial-gradient(ellipse 85% 75% at 50% 50%, rgba(200,255,46,0.13) 0%, rgba(200,255,46,0.04) 50%, transparent 74%);
  filter:blur(28px);
  z-index:-1;
  pointer-events:none;
  animation:hcdGlowPulse 4.6s ease-in-out infinite alternate;
}
@keyframes hcdGlowPulse{
  0%{
    opacity:0.35;
    transform:scale(0.97);
  }
  100%{
    opacity:0.85;
    transform:scale(1.03);
  }
}
@keyframes hcdCardPop{
  from{opacity:0;transform:translateY(8px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.hcd-resp-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:5px 14px;border-radius:999px;
  background:rgba(12,14,18,.92);border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  font-size:11px;
  cursor:ns-resize;user-select:none;-webkit-user-select:none;touch-action:none !important;
  -webkit-tap-highlight-color:transparent;
  -webkit-touch-callout:none; /* kein iOS-Callout/Magnifier bei Tap-and-Hold */
  transition:border-color .2s ease,box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .hcd-resp-head:hover{
    border-color:rgba(200,255,46,.55);
    box-shadow:0 0 16px rgba(200,255,46,.18);
  }
}
.hcd-resp-head.dragging{
  cursor:grabbing;border-color:var(--lime);
  box-shadow:0 4px 16px rgba(0,0,0,.6);
}
.hcd-resp-agent{display:flex;align-items:center;gap:7px;flex-shrink:0;pointer-events:none}
.hcd-resp-avatar{width:20px;height:20px;border-radius:50%;object-fit:cover;border:1px solid var(--lime)}
.hcd-resp-name{font-weight:700;color:#fff}
.hcd-resp-badge{font-family:"JetBrains Mono",monospace;font-size:9.5px;color:var(--lime)}
.hcd-drag-handle{
  flex:1;display:flex;align-items:center;justify-content:center;
  padding:2px 8px;cursor:ns-resize;touch-action:none !important;
  -webkit-tap-highlight-color:transparent;
  position:relative;
}
.hcd-drag-handle::after{content:"";position:absolute;left:0;right:0;top:-14px;bottom:-14px} /* großzügige Griff-Fläche */
.hcd-drag-bar{
  width:36px;height:4px;border-radius:999px;
  background:rgba(255,255,255,.24);
  transition:background .2s ease, transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease;
  pointer-events:none;
  will-change:transform, background;
}
@media (hover: hover) and (pointer: fine) {
  .hcd-resp-head:hover .hcd-drag-bar{
    background:var(--lime);
    transform:scaleX(1.18);
    box-shadow:0 0 8px rgba(200,255,46,.5);
  }
}
.hcd-resp-head.dragging .hcd-drag-bar{
  background:var(--lime);
  transform:scaleX(1.22);
  box-shadow:0 0 10px rgba(200,255,46,.6);
}
.hcd-close-btn{
  background:transparent;border:0;color:var(--mut);font-size:13px;cursor:pointer;
  padding:2px 6px;line-height:1;border-radius:4px;transition:all .15s ease;flex-shrink:0;
  -webkit-tap-highlight-color:transparent;
  position:relative;
}
.hcd-close-btn::after{content:"";position:absolute;inset:-12px} /* 44px-Hit-Area bei kompaktem Kern */
@media (hover: hover) and (pointer: fine) {
  .hcd-close-btn:hover{color:#fff;background:rgba(255,255,255,.1)}
}
.hcd-close-btn:active{transform:scale(0.92);background:rgba(255,255,255,.15)}

/* Response Card & Body Drag-Performance (Zero-Jank / 120 FPS auf Touchscreens) */
.hcd-response-card.is-dragging{
  transition:none !important;
}
.hcd-resp-body{
  flex:1;overflow-y:auto;height:140px;max-height:140px;
  font-size:12.5px;line-height:1.58;color:#f8fafc;font-weight:500;
  text-shadow:0 1px 12px rgba(0,0,0,.95), 0 2px 4px rgba(0,0,0,.9);
  scrollbar-width:none;-ms-overflow-style:none;
  padding:2px 4px;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  -webkit-tap-highlight-color:transparent !important;
  -webkit-touch-callout:none;
  -webkit-backface-visibility:hidden;backface-visibility:hidden;
}
.hcd-resp-body.animating-height{
  transition:height .22s cubic-bezier(.16,1,.3,1), max-height .22s cubic-bezier(.16,1,.3,1) !important;
}
.hcd-resp-body.is-dragging{
  transition:none !important;
  pointer-events:none;
}
.hcd-resp-body::-webkit-scrollbar{display:none;width:0;height:0}

/* Multi-Turn Thread & Message Turn Styling (WhatsApp-Style Dual-Bubble Layout) */
.hcr-thread{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:4px 2px;
  -webkit-tap-highlight-color:transparent !important;
}
.hcr-turn{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:2px 0;
  -webkit-tap-highlight-color:transparent !important;
  transition:background .35s ease, box-shadow .35s ease;
}
.hcr-turn.highlight-pulse{
  animation:hcrTurnPulse 1.4s ease-out;
}
@keyframes hcrTurnPulse{
  0%{background:rgba(200,255,46,.2);box-shadow:0 0 14px rgba(200,255,46,.3);border-radius:12px}
  100%{background:transparent;box-shadow:none}
}

/* Row-Ausrichtungen: User RECHTS (wie WhatsApp), Agent LINKS */
.hcr-row{
  display:flex;
  width:100%;
  box-sizing:border-box;
}
.hcr-row-user{
  justify-content:flex-end;
}
.hcr-row-agent{
  justify-content:flex-start;
}

/* Gemeinsame Sprechblasen-Basis */
.hcr-bubble{
  position:relative;
  box-sizing:border-box;
  word-break:break-word;
  -webkit-tap-highlight-color:transparent !important;
  -webkit-touch-callout:none;
  -webkit-backface-visibility:hidden;backface-visibility:hidden;
  animation:hcrBubbleIn .18s cubic-bezier(.16,1,.3,1);
}
@keyframes hcrBubbleIn{
  from{opacity:0;transform:translateY(4px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

/* User Sprechblase: RECHTS wie in WhatsApp */
.hcr-bubble-user{
  max-width:82%;
  background:linear-gradient(135deg, rgba(200,255,46,.16) 0%, rgba(140,200,25,.08) 100%);
  border:1px solid rgba(200,255,46,.38);
  border-radius:14px 14px 3px 14px;
  padding:6px 11px 7px 11px;
  box-shadow:0 4px 14px rgba(0,0,0,.35), 0 0 12px rgba(200,255,46,.08);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.hcr-meta-user{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  margin-bottom:3px;
}
.hcr-user-badge{
  font-family:"JetBrains Mono",monospace;
  font-size:10px;
  font-weight:800;
  color:#a3e635;
  background:rgba(200,255,46,.12);
  border:1px solid rgba(200,255,46,.25);
  padding:0.5px 5px;
  border-radius:3px;
  letter-spacing:.6px;
  line-height:1.2;
}
.hcr-bubble-user .hcr-user-txt{
  font-size:12px;
  font-weight:550;
  color:#f8fafc;
  line-height:1.38;
  letter-spacing:.1px;
}

/* Agent Sprechblase: LINKS wie in WhatsApp */
.hcr-bubble-agent{
  max-width:88%;
  background:rgba(15,19,26,.92);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px 14px 14px 3px;
  padding:7px 12px 9px 12px;
  box-shadow:0 6px 20px rgba(0,0,0,.45);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.hcr-meta-agent{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
}
.hcr-agent-badge{
  font-family:"JetBrains Mono",monospace;
  font-size:10px;
  font-weight:800;
  color:var(--lime);
  background:rgba(200,255,46,.14);
  border:1px solid rgba(200,255,46,.35);
  padding:0.5px 5px;
  border-radius:3px;
  letter-spacing:.6px;
  line-height:1.2;
}
.hcr-agent-ans{
  font-size:12.5px;
  line-height:1.48;
  color:#f8fafc;
  font-weight:450;
  text-shadow:0 1px 6px rgba(0,0,0,.85);
}
.hcr-agent-ans strong{
  color:#fff;
  font-weight:700;
}
.hcr-ans-p{
  margin:0 0 6px 0;
  line-height:1.48;
}
.hcr-ans-p:last-child{
  margin-bottom:0;
}
.hcr-stream-wrap{display:inline}
.hcr-thinking{
  display:inline-block;
  margin-left:4px;
  font-family:"JetBrains Mono",monospace;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  white-space:nowrap;
  color:transparent;
  background:linear-gradient(100deg,var(--lime) 20%,#ffffff 40%,var(--lime) 60%);
  background-size:200% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  animation:hcr-shimmer 1.6s linear infinite;
}
@keyframes hcr-shimmer{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}
@media (prefers-reduced-motion:reduce){
  .hcr-thinking{animation:none;color:var(--lime)}
}

@media (max-width:680px){
  .hcr-bubble-user{max-width:92%}
  .hcr-bubble-agent{max-width:94%}
}

.scrollhint{display:none}
.adots{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);z-index:35;display:flex;gap:6px;pointer-events:auto;
   padding:4px 2px;border-radius:999px;background:rgba(10,12,16,.85);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 8px 28px rgba(0,0,0,.7);
   max-width:min(850px,calc(100vw - 24px));overflow-x:auto;scrollbar-width:none}
.adots::-webkit-scrollbar{display:none}
.adot{width:34px;height:34px;flex-shrink:0;border-radius:50%;overflow:hidden;padding:0;cursor:pointer;
   border:2px solid rgba(200,255,46,.4);background:#12151a;transition:transform .22s var(--ease),border-color .22s var(--ease),box-shadow .22s var(--ease)}
@media (min-width:681px){
  .adots{width:max-content;max-width:calc(100vw - 56px);box-sizing:border-box;gap:clamp(4px,.42vw,6px);justify-content:flex-start;overflow:hidden}
  .adot{width:clamp(20px,calc(2.85vw - 6px),34px);height:clamp(20px,calc(2.85vw - 6px),34px)}
}
.adot img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}
@media (hover: hover) and (pointer: fine) {
  .adot:hover{transform:scale(1.18);border-color:var(--lime);z-index:2}
}
.adot:active{transform:scale(0.92);transition-duration:.08s}
.adot.active{border-color:var(--lime);box-shadow:0 0 0 2px rgba(200,255,46,.45),0 0 18px rgba(200,255,46,.45)}

@media (max-width:680px){
  /* Astra Bottom-Sheet Command Dock */
   .hero-command-dock{
      position:fixed;
      top:auto;
      bottom:calc(64px + env(safe-area-inset-bottom, 0px) + var(--keyboard-offset, 0px));
      left:10px;
     right:10px;
     width:auto;
     max-width:100%;
     transform:none;
     z-index:55;
     gap:6px;
      transition:bottom .18s ease,transform .28s var(--ease),opacity .28s ease;
    }
    body.keyboard-open .hero-command-dock,
    body.keyboard-est .hero-command-dock{
      bottom:calc(8px + env(safe-area-inset-bottom, 0px) + var(--keyboard-offset, 0px));
    }
   body.keyboard-open .adots,
   body.keyboard-open .mobile-swipe-guide,
   body.keyboard-est .adots,
   body.keyboard-est .mobile-swipe-guide{display:none !important}
  .hcd-chips-row{
     justify-content:flex-start;
     padding:2px 2px;
   }

  /* Mobile Gesten-Hinweis & Mitarbeiter-Avatar-Dock */
  .mobile-swipe-guide{
    display:flex !important;
    justify-content:center;
    align-items:center;
    position:absolute;
     bottom:calc(165px + env(safe-area-inset-bottom, 0px));
    left:0;
    right:0;
    z-index:36;
    pointer-events:auto;
    user-select:none;
  }
   .adots{
    display:flex !important;
    position:absolute !important;
     bottom:calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    z-index:35 !important;
    padding:4px 8px !important;
    gap:6px !important;
     max-width:calc(100vw - 20px) !important;
     overflow-x:auto !important;
    background:rgba(10,13,18,.90) !important;
    border:1px solid rgba(255,255,255,.16) !important;
    box-shadow:0 8px 28px rgba(0,0,0,.8) !important;
  }
  .adot{
    width:32px !important;
    height:32px !important;
    position:relative;
  }
  .adot::after{content:"";position:absolute;inset:-6px} /* 44px-Hit-Area bei kompaktem Kern */
   .hcd-chat-bar{
     padding:3px 6px 3px 14px;
     background:rgba(10,13,17,.96);
     border:1px solid rgba(200,255,46,.62);
    border-radius:999px;
    box-shadow:0 10px 32px rgba(0,0,0,.75), 0 0 18px rgba(200,255,46,.2);
    backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  }
  .hcd-tag{
    font-size:10px;
    padding:3px 8px;
  }
  .hcd-chat-input{
    font-size:16px; /* Verhindert iOS/WebView-Zoom beim Fokussieren */
    padding:5px 2px;
    -webkit-appearance:none;
  }
   .cmd-chip{
     font-size:10.5px;
     padding:4px 9px;
     min-height:32px;
   }
  .hcd-response-card{
    background:rgba(9,11,15,.96);
    border:1px solid rgba(200,255,46,.5);
    border-radius:20px 20px 14px 14px;
    padding:8px 10px 10px;
    box-shadow:0 -12px 40px rgba(0,0,0,.85), 0 0 30px rgba(200,255,46,.2);
    max-height:calc(100svh - 120px);
  }
  /* svh schrumpft unter Tastatur nicht: Offset abziehen, damit die Card nie dahinter ragt. */
  body.keyboard-open .hcd-response-card,
  body.keyboard-est .hcd-response-card{
    max-height:calc(100svh - 120px - var(--keyboard-offset, 0px));
  }
  .hcd-resp-head{
    padding:6px 10px;
    background:rgba(14,18,24,.98);
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    display:flex;align-items:center;justify-content:space-between;gap:6px;
    width:100%;min-width:0;
  }
  .hcd-response-card.is-dragging .hcd-resp-head{
    box-shadow:0 4px 16px rgba(0,0,0,.6) !important;
  }
  .hcd-resp-agent{
    min-width:0;flex:1;display:flex;align-items:center;gap:4px;overflow:hidden;
  }
  .hcd-resp-avatar{
    width:20px;height:20px;border-radius:50%;flex-shrink:0;
  }
  .hcd-resp-name{
    font-size:11px;font-weight:800;flex-shrink:0;white-space:nowrap;
  }
  .hcd-resp-badge{
    font-size:10px;color:var(--lime);white-space:nowrap;flex-shrink:0;
  }
  /* Sichtbarer Tastatur-Fokus auf allen Dock-Controls (BT-Tastatur, Dex, TalkBack) */
  .cmd-chip:focus-visible,
  .adot:focus-visible,
  .hcd-close-btn:focus-visible,
  .hcd-send-btn:focus-visible{
    outline:2px solid var(--lime);
    outline-offset:2px;
  }
  .hcd-drag-handle{
    flex-shrink:0;padding:0 2px;
  }
}

/* ==========================================================================
   CHAT QUOTA BADGE & PAYWALL LIMIT MODAL (6 Free / 100 Paid)
   ========================================================================== */
.chat-quota-badge {
  display: none !important;
}

/* Inline In-Chat Token Limit Info Card */
.hcd-token-limit-card {
  margin: 14px 4px 8px 4px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(20, 26, 34, 0.96) 0%, rgba(12, 16, 22, 0.98) 100%);
  border: 1px solid rgba(200, 255, 46, 0.45);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 24px rgba(200, 255, 46, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeInLimitCard 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInLimitCard {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime);
  background: rgba(200, 255, 46, 0.12);
  border: 1px solid rgba(200, 255, 46, 0.32);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.tl-title {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.25;
}
.tl-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}
.tl-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.tl-benefit {
  font-size: 11px;
  color: #e2e8f0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tl-btn-buy {
  background: var(--lime);
  color: #070809 !important;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(200, 255, 46, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.tl-btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(200, 255, 46, 0.6);
}
.tl-btn-support {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.tl-btn-support:hover {
  color: #fff;
  text-decoration: underline;
}

/* Chat Limit Modal Backdrop & Dialog */
.chat-limit-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-limit-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.chat-limit-modal {
  width: 100%;
  max-width: 520px;
  background: rgba(13, 16, 22, 0.96);
  border: 1px solid rgba(200, 255, 46, 0.45);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(200, 255, 46, 0.15);
  padding: 28px 24px 24px;
  position: relative;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-limit-modal-backdrop.is-open .chat-limit-modal {
  transform: scale(1) translateY(0);
}
.clm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.clm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 255, 46, 0.12);
  border: 1px solid rgba(200, 255, 46, 0.35);
  color: var(--lime, #c8ff2e);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.clm-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.clm-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.clm-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.clm-body {
  margin-bottom: 24px;
}
.clm-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 16px;
}
.clm-feature-list {
  background: rgba(7, 9, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.clm-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #e2e8f0;
}
.clm-feature-item svg {
  color: var(--lime, #c8ff2e);
  flex-shrink: 0;
}
.clm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clm-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--lime, #c8ff2e);
  color: #07090c;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(200, 255, 46, 0.35);
  transition: all 0.18s ease;
  cursor: pointer;
}
.clm-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 35px rgba(200, 255, 46, 0.5);
  background: #d8ff4f;
}
.clm-unlock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.clm-unlock-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12px;
  color: #fff;
  outline: none;
}
.clm-unlock-input:focus {
  border-color: var(--lime, #c8ff2e);
}
.clm-unlock-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.clm-unlock-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

