/* ============================================
   REN DEMO ANIMATION
   Interactive chat demo on pink circle background
   Used in products tabs "Reports" panel
   ============================================ */
.products-tab-anim[data-tab-anim="reports"] {
  position: relative;
}

.products-tab-anim[data-tab-anim="reports"]::before {
  content: '';
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: var(--pink);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.ren-demo {
  width: 100%;
  max-width: 600px;
  height: 500px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin-left: auto;
  z-index: 1;
}
.ren-demo-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}
.ren-demo-screen.active { opacity: 1; pointer-events: all; }

.ren-demo-screen--welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 52px 80px;
}
.ren-demo-welcome-name {
  font-size: 26px; font-weight: 600; color: var(--white);
  margin-bottom: 8px; text-align: center;
}
.ren-demo-welcome-sub {
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px; text-align: center;
}
.ren-demo-input-shell {
  width: 100%;
  display: flex; align-items: center;
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: 16px; padding: 10px 10px 10px 16px;
  gap: 8px; box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.ren-demo-input-shell input {
  flex: 1; font-family: inherit; font-size: 13px; font-weight: 300;
  background: transparent; border: none; outline: none; color: var(--black);
}
.ren-demo-input-shell input::placeholder { color: var(--gray-mid); }
.ren-demo-send-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--black); border: none;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ren-demo-send-btn svg { width: 11px; height: 11px; }

.ren-demo-screen--gen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
}
.ren-demo-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--white), rgba(255,255,255,0.3), transparent 75%);
  animation: renDemoSpin 0.9s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), var(--black) calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), var(--black) calc(100% - 3px));
}
@keyframes renDemoSpin { to { transform: rotate(360deg); } }
.ren-demo-gen-label {
  font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em; transition: opacity 200ms ease;
}

.ren-demo-screen--float { position: absolute; inset: 0; }
.ren-demo-scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 40px;
  opacity: 0; transition: opacity 400ms ease;
  pointer-events: none;
}
.ren-demo-scene.show { opacity: 1; }

.ren-demo-comp-scene {
  position: relative;
  width: 360px;
  margin-right: 60px;
}
.ren-demo-comp-bars { display: flex; flex-direction: column; gap: 10px; }
.ren-demo-bar-card {
  background: var(--white); border-radius: 12px; padding: 13px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  opacity: 0; transform: translateY(6px);
  transition: opacity 350ms ease, transform 350ms ease;
}
.ren-demo-bar-card.show { opacity: 1; transform: none; }
.ren-demo-bar-top {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 9px;
}
.ren-demo-bar-name { font-size: 13px; font-weight: 400; color: var(--gray-dark); }
.ren-demo-bar-name--lead { font-weight: 600; color: var(--black); }
.ren-demo-bar-rank { font-size: 11px; font-weight: 400; color: var(--gray-mid); }
.ren-demo-bar-rank--lead { font-weight: 600; color: var(--black); }
.ren-demo-bar-track { height: 6px; background: var(--gray-background); border-radius: 99px; overflow: hidden; }
.ren-demo-bar-fill {
  height: 100%; border-radius: 99px; background: var(--gray-light);
  width: 0; transition: width 900ms cubic-bezier(0.4,0,0.2,1);
}
.ren-demo-bar-fill--lead { background: linear-gradient(90deg, var(--fuchsia), var(--amber)); }

.ren-demo-callout {
  position: absolute;
  bottom: -60px; right: -96px;
  width: 180px;
  opacity: 0;
  transform: translateX(8px) scale(0.92);
  transition: opacity 500ms ease, transform 600ms cubic-bezier(0.34,1.3,0.64,1);
  filter: drop-shadow(3px 4px 0px var(--black));
  z-index: 10;
}
.ren-demo-callout.show { opacity: 1; transform: translateX(0) scale(1); }
.ren-demo-callout-inner {
  position: relative; background: var(--white);
  border: 2px solid var(--black); border-radius: 14px; padding: 12px 14px;
}
.ren-demo-callout-inner::after {
  content: ''; position: absolute;
  left: -18px; top: 20px;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-right: 18px solid var(--black);
}
.ren-demo-callout-inner::before {
  content: ''; position: absolute;
  left: -13px; top: 22px;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-right: 13px solid var(--white); z-index: 1;
}
.ren-demo-callout-label {
  font-size: 8px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--fuchsia); margin-bottom: 6px;
}
.ren-demo-callout-text {
  font-size: 11px; font-weight: 500; color: var(--black); line-height: 1.5;
}
.ren-demo-callout-text em {
  font-style: normal;
  background: linear-gradient(90deg, var(--fuchsia), var(--amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 600;
}

/* ============================================
   REN DEMO - RESPONSIVE (900px)
   ============================================ */
@media (max-width: 900px) {
  .ren-demo { height: 380px; }
  .ren-demo-comp-scene { width: 300px; margin-right: 40px; }
  .ren-demo-callout { right: -60px; bottom: -50px; width: 160px; }
}
