/* Bento card interactive demos: review reply animation */
.review-reply-demo {
  flex: 1; display: flex; flex-direction: column; gap: 12px;
  background: var(--secondary); border-radius: var(--r-md); padding: 14px;
  border: 1px solid var(--border-light); min-height: 280px;
}
.rrd-review { flex-shrink: 0; }
.rrd-stars { display: flex; gap: 3px; margin-bottom: 8px; }
.rrd-stars svg { width: 14px; height: 14px; color: var(--warning); }
.rrd-review-lines { display: grid; gap: 5px; }
.rrd-review-lines i { display: block; height: 7px; background: var(--border); border-radius: 4px; }
.rrd-review-lines i:first-child { width: 92%; } .rrd-review-lines i:last-child { width: 68%; }
.rrd-manager {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
  background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-md);
  overflow: hidden;
}
.rrd-mgr-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid var(--border-light); font-size: 12px; font-weight: 700; color: var(--text-primary);
}
.rrd-mgr-head svg { width: 16px; height: 16px; color: var(--text-secondary); }
.rrd-mgr-body { flex: 1; position: relative; min-height: 210px; }
.rrd-phase {
  position: absolute; inset: 12px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease, visibility .4s;
  pointer-events: none;
}
.rrd-phase.active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.rrd-phase--empty { align-items: center; justify-content: center; text-align: center; gap: 6px; }
.rrd-empty-icon {
  width: 44px; height: 44px; border-radius: var(--r-md); background: var(--secondary);
  display: grid; place-items: center; color: var(--text-tertiary); margin-bottom: 4px;
}
.rrd-empty-icon svg { width: 22px; height: 22px; }
.rrd-phase--empty b { font-size: 13px; color: var(--text-primary); }
.rrd-phase--empty p { font-size: 11px; color: var(--text-secondary); line-height: 1.5; max-width: 220px; }
.rrd-label {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  color: var(--primary); margin-bottom: 8px;
}
.rrd-label svg { width: 14px; height: 14px; }
.rrd-label em { font-style: normal; color: var(--text-tertiary); font-weight: 500; }
.rrd-field {
  flex: 1; min-height: 88px; border: 1px solid #C7D2FE; border-radius: var(--r-sm);
  background: var(--surface); padding: 10px 12px; position: relative; overflow: hidden;
}
.rrd-field p { font-size: 11px; line-height: 1.55; color: var(--text-primary); margin: 0; min-height: 1.55em; }
.rrd-field--reply { border-color: var(--border); background: var(--secondary); }
.rrd-caret {
  display: inline-block; width: 2px; height: 12px; background: var(--primary);
  margin-left: 1px; vertical-align: text-bottom; animation: rrd-blink 1s step-end infinite;
}
.rrd-caret.is-hidden { opacity: 0; animation: none; }
@keyframes rrd-blink { 50% { opacity: 0; } }
.rrd-btn {
  margin-top: 10px; width: 100%; border: none; border-radius: var(--r-sm);
  background: var(--primary); color: #fff; font: 600 11px/1 'Figtree', sans-serif;
  padding: 10px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.rrd-btn svg { width: 14px; height: 14px; }
.rrd-btn.is-loading { pointer-events: none; opacity: .85; }
.rrd-btn.is-loading span::after { content: '…'; animation: rrd-dots 1.2s steps(4, end) infinite; }
@keyframes rrd-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.rrd-btn.is-pulse { transform: scale(.97); box-shadow: inset 0 2px 6px rgba(0,0,0,.15); }
.rrd-btn--publish { background: #16A34A; }
.rrd-ready-reply {
  flex: 1; font-size: 11px; line-height: 1.55; color: var(--text-secondary);
  background: var(--secondary); border: 1px solid var(--border-light); border-radius: var(--r-sm);
  padding: 10px 12px;
}
.rrd-ready-pill {
  margin-top: 12px; align-self: flex-start; display: inline-flex; font-size: 11px; font-weight: 600;
  color: var(--primary); background: var(--primary-light); padding: 5px 12px; border-radius: var(--r-full);
  transform: scale(.85); opacity: 0;
}
.rrd-ready-pill.is-visible { animation: rrd-pill-pop .5s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes rrd-pill-pop {
  0% { transform: scale(.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Analytics line chart demo */
.analytics-chart-demo {
  background: var(--secondary); border: 1px solid var(--border-light);
  border-radius: var(--r-md); padding: 12px; min-height: 150px;
}
.acd-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.acd-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600;
  color: var(--text-secondary); background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--r-full); padding: 4px 8px;
}
.acd-chip i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.acd-chip--views i { background: #64748B; }
.acd-chip--search i { background: #22C55E; }
.acd-chip--calls i { background: #A855F7; }
.acd-chart-wrap { position: relative; }
.acd-svg { display: block; width: 100%; height: 130px; overflow: visible; }
.acd-grid { stroke: var(--border-light); stroke-width: 1; }
.acd-line {
  fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.acd-line--views { stroke: #64748B; }
.acd-line--search { stroke: #22C55E; }
.acd-line--calls { stroke: #A855F7; }
.acd-area { opacity: 0; transform-origin: center bottom; }
.acd-dot { opacity: 0; transform-origin: center; }
.acd-months {
  display: flex; justify-content: space-between; padding: 6px 4px 0;
  font-size: 9px; color: var(--text-tertiary); font-weight: 500;
}
.analytics-chart-demo.is-animating .acd-line--views {
  animation: acd-draw 1.8s cubic-bezier(.4, 0, .2, 1) forwards;
}
.analytics-chart-demo.is-animating .acd-line--search {
  animation: acd-draw 1.8s cubic-bezier(.4, 0, .2, 1) .15s forwards;
}
.analytics-chart-demo.is-animating .acd-line--calls {
  animation: acd-draw 1.8s cubic-bezier(.4, 0, .2, 1) .3s forwards;
}
.analytics-chart-demo.is-animating .acd-area--views {
  animation: acd-area-in .9s ease .5s forwards;
}
.analytics-chart-demo.is-animating .acd-area--search {
  animation: acd-area-in .9s ease .65s forwards;
}
.analytics-chart-demo.is-animating .acd-area--calls {
  animation: acd-area-in .9s ease .8s forwards;
}
.analytics-chart-demo.is-animating .acd-dot--views {
  animation: acd-dot-in .4s ease 1.6s forwards, acd-dot-pulse 2s ease-in-out 2.2s infinite;
}
.analytics-chart-demo.is-animating .acd-dot--search {
  animation: acd-dot-in .4s ease 1.75s forwards, acd-dot-pulse 2s ease-in-out 2.35s infinite;
}
.analytics-chart-demo.is-animating .acd-dot--calls {
  animation: acd-dot-in .4s ease 1.9s forwards, acd-dot-pulse 2s ease-in-out 2.5s infinite;
}
@keyframes acd-draw { to { stroke-dashoffset: 0; } }
@keyframes acd-area-in {
  from { opacity: 0; transform: scaleY(.85); }
  to { opacity: 1; transform: scaleY(1); }
}
@keyframes acd-dot-in {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes acd-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .75; }
}

/* Bulk operations illustration */
.vignette-bulk {
  background: var(--secondary); border: 1px solid var(--border-light);
  border-radius: var(--r-md); padding: 12px; display: grid; gap: 10px;
}
.vbulk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vbulk-badge {
  font-size: 10px; font-weight: 700; color: var(--primary); background: var(--primary-light);
  padding: 4px 8px; border-radius: var(--r-full);
}
.vbulk-head em { font-size: 10px; font-style: normal; color: var(--text-secondary); font-weight: 600; }
.vbulk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vbulk-op {
  background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-sm);
  padding: 10px; display: grid; gap: 6px;
}
.vbulk-op-icon {
  width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center;
}
.vbulk-op-icon svg { width: 15px; height: 15px; }
.vbulk-op-icon--hours { background: #DBEAFE; color: #2563EB; }
.vbulk-op-icon--info { background: #E0E7FF; color: #4F46E5; }
.vbulk-op-icon--attr { background: #FEF3C7; color: #D97706; }
.vbulk-op-icon--photos { background: #DCFCE7; color: #16A34A; }
.vbulk-op > span { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.vbulk-spread { display: flex; align-items: center; gap: 3px; }
.vbulk-spread i {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface);
  background: linear-gradient(135deg, #4F46E5, #7C3AED); margin-left: -5px;
}
.vbulk-spread i:first-child { margin-left: 0; }
.vbulk-spread i:nth-child(2) { background: linear-gradient(135deg, #22C55E, #4ADE80); }
.vbulk-spread i:nth-child(3) { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.vbulk-spread b {
  font-size: 9px; font-weight: 700; color: var(--text-tertiary); margin-left: 2px;
}
.vbulk-apply {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface);
  border: 1px dashed var(--border); font-size: 10px; font-weight: 600; color: var(--text-secondary);
}
.vbulk-apply svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
