/* ==========================================================================
   Motion & Animation Vault - Category 5: Ambient, Borders & Loaders
   Demos 29–35
   ========================================================================== */

/* --------------------------------------------------------------------------
   Common Container & Stage Utilities for Cat 5
   -------------------------------------------------------------------------- */
.cat5-demo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.4) 0%, rgba(11, 13, 18, 0.95) 100%);
  padding: 1.25rem;
  box-sizing: border-box;
  user-select: none;
}

.cat5-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  z-index: 10;
  flex-wrap: wrap;
}

.cat5-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cat5-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.cat5-btn:active {
  transform: translateY(0);
}

.cat5-btn.active {
  background: #6366f1;
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* --------------------------------------------------------------------------
   Demo 29: Rotating Gradient Border
   -------------------------------------------------------------------------- */
@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.demo29-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.demo29-card {
  --border-size: 2px;
  --radius: 16px;
  position: relative;
  width: 100%;
  max-width: 280px;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: #111420;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo29-card:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Conic gradient rotating layer via pseudo-element */
.demo29-card::before {
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border-radius: calc(var(--radius) + var(--border-size));
  padding: var(--border-size);
  background: conic-gradient(
    from var(--border-angle),
    transparent 20%,
    #06b6d4 40%,
    #6366f1 60%,
    #ec4899 80%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: demo29-rotate calc(var(--border-speed, 3.5s) / var(--speed-mult, 1)) linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Outer soft ambient glow layer */
.demo29-card::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius) + 6px);
  background: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    rgba(6, 182, 212, 0.35) 45%,
    rgba(99, 102, 241, 0.45) 65%,
    rgba(236, 72, 153, 0.35) 80%,
    transparent 100%
  );
  filter: blur(12px);
  opacity: 0.75;
  animation: demo29-rotate calc(var(--border-speed, 3.5s) / var(--speed-mult, 1)) linear infinite;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.demo29-card:hover::after {
  opacity: 1;
  filter: blur(16px);
}

/* Fixed: Only rotate --border-angle, never transform rotate! */
@keyframes demo29-rotate {
  from {
    --border-angle: 0deg;
  }
  to {
    --border-angle: 360deg;
  }
}

.demo29-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.68rem;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.demo29-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.demo29-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.01em;
}

.demo29-desc {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Demo 30: Aurora / Floating Blobs
   -------------------------------------------------------------------------- */
.demo30-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.demo30-aurora-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: blur(35px);
  opacity: 0.85;
  pointer-events: none;
}

.demo30-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.demo30-blob-1 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
  top: 10%;
  left: 15%;
  animation: demo30-float-1 calc(var(--duration, 9s) / var(--speed-mult, 1)) ease-in-out infinite alternate;
}

.demo30-blob-2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  bottom: 10%;
  right: 15%;
  animation: demo30-float-2 calc(var(--duration, 11s) / var(--speed-mult, 1)) ease-in-out infinite alternate;
}

.demo30-blob-3 {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
  top: 40%;
  right: 25%;
  animation: demo30-float-3 calc(var(--duration, 8s) / var(--speed-mult, 1)) ease-in-out infinite alternate;
}

.demo30-blob-4 {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  bottom: 25%;
  left: 25%;
  animation: demo30-float-4 calc(var(--duration, 10s) / var(--speed-mult, 1)) ease-in-out infinite alternate;
}

@keyframes demo30-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.2); }
  100% { transform: translate(-30px, 60px) scale(0.9); }
}

@keyframes demo30-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.15); }
  100% { transform: translate(40px, -60px) scale(0.85); }
}

@keyframes demo30-float-3 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(-40px, 50px) scale(1.25); }
  100% { transform: translate(30px, -30px) scale(1); }
}

@keyframes demo30-float-4 {
  0% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(45px, -35px) scale(0.8); }
  100% { transform: translate(-35px, 25px) scale(1.15); }
}

.demo30-frosted-card {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 290px;
  padding: 1.4rem;
  border-radius: 16px;
  background: rgba(19, 23, 34, 0.65);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.demo30-frosted-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.demo30-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 0.4rem;
}

.demo30-heading {
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.demo30-text {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Demo 31: SVG Path Drawing
   -------------------------------------------------------------------------- */
.demo31-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.demo31-svg-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  cursor: pointer;
  filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.demo31-svg-wrap:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.65));
}

.demo31-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Path drawing animations */
.demo31-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  will-change: stroke-dashoffset;
}

.demo31-drawing .demo31-path-outer {
  stroke-width: 2.5;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: demo31-draw calc(var(--duration, 2.2s) / var(--speed-mult, 1)) cubic-bezier(0.65, 0, 0.35, 1) calc(var(--delay, 0s) / var(--speed-mult, 1)) forwards;
}

.demo31-drawing .demo31-path-inner {
  stroke-width: 2;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: demo31-draw calc(var(--duration, 2s) / var(--speed-mult, 1)) cubic-bezier(0.65, 0, 0.35, 1) calc(0.3s / var(--speed-mult, 1)) forwards;
}

.demo31-drawing .demo31-path-core {
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: demo31-draw calc(var(--duration, 1.8s) / var(--speed-mult, 1)) cubic-bezier(0.22, 1, 0.36, 1) calc(0.6s / var(--speed-mult, 1)) forwards;
}

.demo31-drawing .demo31-nodes {
  fill: #38bdf8;
  opacity: 0;
  animation: demo31-fadein calc(0.6s / var(--speed-mult, 1)) ease calc(1.8s / var(--speed-mult, 1)) forwards;
}

@keyframes demo31-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes demo31-fadein {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --------------------------------------------------------------------------
   Demo 32: SVG Shape Morphing
   -------------------------------------------------------------------------- */
.demo32-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.demo32-stage {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.3));
  cursor: pointer;
  transition: transform 0.25s ease;
}

.demo32-stage:hover {
  transform: scale(1.06);
}

.demo32-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.demo32-morph-path {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 2;
  transition: d calc(var(--duration, 0.8s) / var(--speed-mult, 1)) var(--easing, cubic-bezier(0.34, 1.56, 0.64, 1));
  will-change: d;
}

.demo32-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Demo 33: Skeleton Shimmer
   -------------------------------------------------------------------------- */
.demo33-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.demo33-card {
  width: 100%;
  max-width: 280px;
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.demo33-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Shimmer animation utility */
.demo33-shimmer {
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

/* Fixed: Hide placeholder text in skeleton state so text doesn't poke through bars */
.demo33-card:not(.is-loaded) .demo33-shimmer {
  color: transparent !important;
  user-select: none;
}

.demo33-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: demo33-shimmer-wave calc(var(--duration, 1.8s) / var(--speed-mult, 1)) infinite ease-in-out;
}

@keyframes demo33-shimmer-wave {
  100% {
    transform: translateX(100%);
  }
}

.demo33-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo33-header-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.demo33-line-name {
  height: 14px;
  width: 65%;
}

.demo33-line-handle {
  height: 10px;
  width: 40%;
}

.demo33-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.demo33-line-full {
  height: 11px;
  width: 100%;
}

.demo33-line-mid {
  height: 11px;
  width: 88%;
}

.demo33-line-short {
  height: 11px;
  width: 55%;
}

.demo33-media-box {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.demo33-actions {
  display: flex;
  gap: 0.5rem;
}

.demo33-chip {
  height: 24px;
  width: 60px;
  border-radius: 9999px;
}

/* Real state preview when toggled */
.demo33-card.is-loaded .demo33-shimmer::after {
  display: none;
}
.demo33-card.is-loaded .demo33-avatar {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%236366f1'/%3E%3Cstop offset='100%25' stop-color='%2306b6d4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='50' fill='url(%23g)'/%3E%3Ctext x='50' y='60' font-size='32' text-anchor='middle' fill='%23ffffff' font-family='sans-serif' font-weight='bold'%3EAG%3C/text%3E%3C/svg%3E") center/cover no-repeat;
}
.demo33-card.is-loaded .demo33-line-name {
  background: none;
  height: auto;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 700;
}
.demo33-card.is-loaded .demo33-line-handle {
  background: none;
  height: auto;
  color: #94a3b8;
  font-size: 0.72rem;
}
.demo33-card.is-loaded .demo33-line-full,
.demo33-card.is-loaded .demo33-line-mid,
.demo33-card.is-loaded .demo33-line-short {
  background: none;
  height: auto;
  color: #cbd5e1;
  font-size: 0.76rem;
  line-height: 1.35;
}
.demo33-card.is-loaded .demo33-media-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
  border: 1px dashed rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
}
.demo33-card.is-loaded .demo33-chip {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Demo 34: Pulse / Radar Ping
   -------------------------------------------------------------------------- */
.demo34-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.demo34-radar-viewport {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(6, 78, 59, 0.2) 60%, rgba(4, 30, 24, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15), inset 0 0 24px rgba(16, 185, 129, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Static grid markings */
.demo34-grid-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.2);
  pointer-events: none;
}
.demo34-grid-ring-1 { width: 55px; height: 55px; }
.demo34-grid-ring-2 { width: 110px; height: 110px; }

.demo34-crosshair-x,
.demo34-crosshair-y {
  position: absolute;
  background: rgba(16, 185, 129, 0.18);
  pointer-events: none;
}
.demo34-crosshair-x { width: 100%; height: 1px; }
.demo34-crosshair-y { height: 100%; width: 1px; }

/* Radar sweeping angular ray */
.demo34-sweep-arm {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(16, 185, 129, 0.4) 0deg,
    rgba(16, 185, 129, 0.08) 45deg,
    transparent 70deg,
    transparent 360deg
  );
  animation: demo34-sweep calc(var(--duration, 4s) / var(--speed-mult, 1)) linear infinite;
  pointer-events: none;
}

@keyframes demo34-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Concentric radar ping rings */
.demo34-ping-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--ping-color, #10b981);
  box-shadow: 0 0 10px var(--ping-color, #10b981);
  opacity: 0;
  pointer-events: none;
  animation: demo34-ping calc(var(--duration, 2.4s) / var(--speed-mult, 1)) cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.demo34-ping-ring:nth-child(2) {
  animation-delay: calc(0.8s / var(--speed-mult, 1));
}
.demo34-ping-ring:nth-child(3) {
  animation-delay: calc(1.6s / var(--speed-mult, 1));
}

@keyframes demo34-ping {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  75% {
    opacity: 0.35;
  }
  100% {
    transform: scale(4.5);
    opacity: 0;
  }
}

/* Core emitter dot */
.demo34-core-dot {
  position: relative;
  z-index: 5;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ping-color, #10b981);
  box-shadow: 0 0 14px var(--ping-color, #10b981), 0 0 4px #ffffff;
  animation: demo34-dot-glow calc(1.2s / var(--speed-mult, 1)) ease-in-out infinite alternate;
}

@keyframes demo34-dot-glow {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.15); box-shadow: 0 0 20px var(--ping-color, #10b981), 0 0 8px #fff; }
}

/* Target blip on radar */
.demo34-target-blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  top: 32%;
  left: 68%;
  opacity: 0;
  animation: demo34-blip calc(var(--duration, 4s) / var(--speed-mult, 1)) linear infinite;
  animation-delay: calc(1.1s / var(--speed-mult, 1));
}

@keyframes demo34-blip {
  0%, 15% { opacity: 0; transform: scale(0.5); }
  20% { opacity: 1; transform: scale(1.3); }
  45% { opacity: 0.3; transform: scale(1); }
  60%, 100% { opacity: 0; }
}

.demo34-status-label {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Status variants */
.demo34-container.is-warning {
  --ping-color: #f59e0b;
}
.demo34-container.is-warning .demo34-radar-viewport {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}
.demo34-container.is-critical {
  --ping-color: #ef4444;
}
.demo34-container.is-critical .demo34-radar-viewport {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

/* --------------------------------------------------------------------------
   Demo 35: Micro-Celebration / Confetti Burst
   -------------------------------------------------------------------------- */
.demo35-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.demo35-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.demo35-btn {
  position: relative;
  z-index: 5;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -4px rgba(79, 70, 229, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.3s ease;
  user-select: none;
}

.demo35-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px -4px rgba(79, 70, 229, 0.65), 0 0 16px rgba(124, 58, 237, 0.4);
}

.demo35-btn:active {
  transform: translateY(1px) scale(0.97);
}

.demo35-btn.completed {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 10px 24px -4px rgba(16, 185, 129, 0.5);
}

.demo35-btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo35-btn.completed .demo35-btn-icon {
  transform: rotate(360deg) scale(1.2);
}

.demo35-counter {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.demo35-count-num {
  color: #38bdf8;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
