/* ============================================================
   RAQEEB (رقيب) — DEMO & INTERACTIVE SIMULATOR STYLES
   Design System Theme Alignment · SVG Icon System
   Floating Navbar Integration · Phone Mockup Choreography
   ============================================================ */

/* ── 1. Page Background & Container ────────────────────────── */
body.demo-page {
  background-color: var(--color-page-bg, #f4f5f7);
  color: var(--color-text-primary, #111827);
  font-family: var(--font-primary, 'Cairo', sans-serif);
  margin: 0;
  padding: 0;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

/* ── 2. SVG Icon Standards ─────────────────────────────────── */
.sim-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.sim-icon--sm {
  width: 15px;
  height: 15px;
}

.sim-icon--lg {
  width: 22px;
  height: 22px;
}

/* ── 3. Interactive Simulation Toolbar ─────────────────────── */
.demo-sim-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-block-end: 28px;
}

.demo-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-surface, #ffffff);
  color: var(--color-text-primary, #111827);
  transition: all var(--duration-base, 250ms) cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.demo-pill-btn:hover {
  background: var(--color-surface-subtle, #f8fafc);
  border-color: var(--color-primary-400, #35b874);
  color: var(--color-primary-600, #0b7241);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.demo-pill-btn--primary {
  background: linear-gradient(135deg, var(--color-primary-500, #0d824b), var(--color-primary-600, #0b7241));
  color: #ffffff !important;
  border-color: var(--color-primary-500, #0d824b);
  box-shadow: 0 4px 14px rgba(13, 130, 75, 0.28);
}

.demo-pill-btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-600, #0b7241), var(--color-primary-700, #095c35));
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 130, 75, 0.38);
}

.demo-pill-btn--dark {
  background: var(--color-neutral-900, #0f172a);
  color: #ffffff !important;
  border-color: var(--color-neutral-800, #1e293b);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.demo-pill-btn--dark:hover {
  background: var(--color-neutral-950, #020617);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.demo-pill-btn.sound-active {
  background: var(--color-primary-50, #ebf8f1);
  border-color: var(--color-primary-500, #0d824b);
  color: var(--color-primary-700, #095c35);
}

/* ── 4. Scroll Reveal Animations (Continuous & Choreographed) ─ */
.demo-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.demo-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 1. Hero Headline Block: Enters boldly from the RIGHT (العنوان يجي من اليمين) */
.demo-hero-header-block.demo-reveal {
  opacity: 0;
  transform: translate3d(clamp(140px, 18vw, 260px), 0, 0);
  will-change: transform, opacity;
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-hero-header-block.demo-reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 2. Interactive Simulation Toolbar: Enters from BOTTOM to TOP (الازرار من تحت لفوق) */
.demo-sim-toolbar.demo-reveal {
  opacity: 0;
  transform: translate3d(0, clamp(90px, 14vw, 160px), 0);
  will-change: transform, opacity;
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.demo-sim-toolbar.demo-reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 3. Live Flow Step Guide Bar: Enters from BOTTOM to TOP (بار الخطوات من تحت لفوق) */
.demo-flow-card.demo-reveal {
  opacity: 0;
  transform: translate3d(0, clamp(110px, 16vw, 190px), 0);
  will-change: transform, opacity;
  transition:
    opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.32s,
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.32s;
}

.demo-flow-card.demo-reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Staggered opposing entrance for the 3 phones (Sides from Right/Left, Center from Top) */
.phones-grid.demo-reveal {
  opacity: 1;
  transform: none;
}

/* 1. Parent Phone (On Right in RTL): Enters boldly from the RIGHT (يجي من اليمين) */
.phone-mockup-frame--parent,
.phone-mockup-frame--parent.demo-reveal {
  transform: translate3d(clamp(150px, 18vw, 260px), 0, 0);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

/* 2. Teacher Phone (In Center): Enters from TOP to BOTTOM (من فوق لتحت) */
.phone-mockup-frame--teacher,
.phone-mockup-frame--teacher.demo-reveal {
  transform: translate3d(0, calc(-1 * clamp(130px, 16vw, 220px)), 0);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.22s,
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
}

/* 3. Guard Phone (On Left in RTL): Enters boldly from the LEFT (يجي من اليسار) */
.phone-mockup-frame--guard,
.phone-mockup-frame--guard.demo-reveal {
  transform: translate3d(calc(-1 * clamp(150px, 18vw, 260px)), 0, 0);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.phones-grid.visible .phone-mockup-frame--parent,
.phone-mockup-frame--parent.visible,
.phones-grid.visible .phone-mockup-frame--teacher,
.phone-mockup-frame--teacher.visible,
.phones-grid.visible .phone-mockup-frame--guard,
.phone-mockup-frame--guard.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 4. Controls Bar: Enters from BOTTOM to TOP (البار من تحت لفوق كبير وواضح) */
.demo-controls-card.demo-reveal {
  opacity: 0;
  transform: translate3d(0, clamp(90px, 14vw, 160px), 0);
  will-change: transform, opacity;
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-controls-card.demo-reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 5. Features Grid Container & Cascading Cards from the RIGHT (الكاردات من اليمين واحدة تلو الأخرى) */
.demo-features-grid.demo-reveal {
  opacity: 1;
  transform: none;
}

.demo-feature-card {
  opacity: 0;
  transform: translate3d(clamp(140px, 18vw, 240px), 0, 0);
  will-change: transform, opacity;
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    border-color var(--duration-base, 250ms) cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow var(--duration-base, 250ms) cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered delays: one after the other from right to left (واحدة تلو الأخرى) */
.demo-features-grid .demo-feature-card:nth-child(1) {
  transition-delay: 0.1s;
}

.demo-features-grid .demo-feature-card:nth-child(2) {
  transition-delay: 0.28s;
}

.demo-features-grid .demo-feature-card:nth-child(3) {
  transition-delay: 0.46s;
}

.demo-features-grid.visible .demo-feature-card,
.demo-feature-card.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.demo-features-grid.visible .demo-feature-card:hover,
.demo-feature-card.visible:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary-400, #35b874);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  transition-delay: 0s !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .demo-hero-header-block.demo-reveal,
  .demo-sim-toolbar.demo-reveal,
  .demo-flow-card.demo-reveal,
  .demo-controls-card.demo-reveal,
  .demo-features-grid.demo-reveal,
  .demo-feature-card,
  .phone-mockup-frame--parent,
  .phone-mockup-frame--teacher,
  .phone-mockup-frame--guard {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── 5. Demo Hero Section ──────────────────────────────────── */
.demo-hero-section {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 40px 24px 16px;
  text-align: center;
  overflow-x: clip;
}

.demo-hero-header-block {
  text-align: center;
  margin-bottom: 24px;
}

.demo-badge-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-primary-50, #ebf8f1);
  border: 1px solid var(--color-primary-200, #a4e3bf);
  color: var(--color-primary-700, #095c35);
  font-size: var(--text-xs, 0.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.demo-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-500, #0d824b);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(13, 130, 75, 0.6); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(13, 130, 75, 0); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(13, 130, 75, 0); }
}

.demo-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-text-primary, #111827);
  line-height: 1.35;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.demo-title-pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary-500, #0d824b), var(--color-primary-600, #0b7241));
  color: #ffffff;
  padding: 2px 20px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.95em;
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 16px rgba(13, 130, 75, 0.25);
}

.demo-hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted, #64748b);
  max-width: 820px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

/* ── 6. Live Flow Step Guide Bar ───────────────────────────── */
.demo-flow-card {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-2xl, 24px);
  padding: 16px 28px;
  margin: 0 auto 36px;
  max-width: 1100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.flow-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-surface-subtle, #f8fafc);
  border: 1px solid var(--color-border, #e2e8f0);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-muted, #64748b);
  transition: all var(--duration-base, 250ms) cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-pill.active {
  background: var(--color-primary-50, #ebf8f1);
  border-color: var(--color-primary-400, #35b874);
  color: var(--color-primary-800, #08492b);
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(13, 130, 75, 0.18);
}

.flow-pill.completed {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.flow-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-border, #e2e8f0);
  color: var(--color-neutral-700, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.flow-pill.active .flow-num {
  background: var(--color-primary-500, #0d824b);
  color: #ffffff;
}

.flow-pill.completed .flow-num {
  background: #16a34a;
  color: #ffffff;
}

/* ── 7. Simulator Playground & Phone Mockups ───────────────── */
.simulator-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
  overflow-x: clip;
}

.phones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 1040px) {
  .phones-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

.phone-mockup-frame {
  background: #ffffff;
  border: 8px solid #0f172a;
  border-radius: 44px;
  box-shadow:
    0 25px 60px -15px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup-frame.highlighted {
  box-shadow:
    0 0 0 4px var(--color-primary-500, #0d824b),
    0 30px 70px -15px rgba(13, 130, 75, 0.38);
  transform: translateY(-6px);
}

/* Notch & Dynamic Island */
.phone-island {
  width: 110px;
  height: 22px;
  background: #0f172a;
  border-radius: var(--radius-full, 9999px);
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 20;
}

.island-lens {
  width: 8px;
  height: 8px;
  background: #1e293b;
  border-radius: 50%;
}

.phone-top-bar {
  padding: 14px 18px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-top-title {
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-screen-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-surface-subtle, #f8fafc);
  overflow-y: auto;
  position: relative;
}

/* Cards Inside Screen */
.mock-card {
  background: #ffffff;
  border-radius: var(--radius-lg, 16px);
  padding: 16px;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.student-select-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md, 12px);
  background: var(--color-surface-subtle, #f8fafc);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.student-select-item.selected {
  background: var(--color-primary-50, #ebf8f1);
  border-color: var(--color-primary-400, #35b874);
}

.student-avatar-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-500, #0d824b);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Big Call Button */
.btn-call-pulse {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-primary-500, #0d824b), #10b981);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-xl, 20px);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(13, 130, 75, 0.35);
  transition: all var(--duration-base, 250ms) cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-call-pulse:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(13, 130, 75, 0.45);
}

.btn-call-pulse.pulsing {
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Live Pipeline in Phone */
.status-tracker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tracker-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-neutral-400, #94a3b8);
  font-weight: 600;
  transition: all var(--duration-base, 250ms) ease;
}

.tracker-step-item.done {
  color: var(--color-text-primary, #111827);
  font-weight: 700;
}

.tracker-step-item.current {
  color: var(--color-primary-600, #0b7241);
  font-weight: 800;
}

.tracker-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 2px solid var(--color-border, #e2e8f0);
  transition: all 0.25s ease;
  color: var(--color-neutral-500);
}

.tracker-step-item.done .tracker-step-icon {
  background: var(--color-primary-50, #ebf8f1);
  border-color: var(--color-primary-400, #35b874);
  color: var(--color-primary-600, #0b7241);
}

.tracker-step-item.current .tracker-step-icon {
  background: var(--color-primary-500, #0d824b);
  border-color: var(--color-primary-500, #0d824b);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 130, 75, 0.2);
}

/* In-Screen Toast Notifications */
.mock-toast {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-md, 12px);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transform: translateY(-80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mock-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── 8. Controls Bar ───────────────────────────────────────── */
.demo-controls-card {
  background: #ffffff;
  border-radius: var(--radius-2xl, 28px);
  padding: 24px 28px;
  border: 1px solid var(--color-border, #e2e8f0);
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.custom-input-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-input {
  padding: 10px 16px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--color-border, #e2e8f0);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  min-width: 210px;
  background: var(--color-surface-subtle, #f8fafc);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.demo-input:focus {
  border-color: var(--color-primary-500, #0d824b);
  box-shadow: 0 0 0 3px var(--color-primary-100, #d0f0de);
  background: #ffffff;
}

/* ── 9. Feature Grid Below Simulator ───────────────────────── */
.demo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.demo-feature-card {
  background: #ffffff;
  border-radius: var(--radius-xl, 24px);
  padding: 28px;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.demo-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg, 16px);
  background: var(--color-primary-50, #ebf8f1);
  color: var(--color-primary-600, #0b7241);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ── 10. Modals ────────────────────────────────────────────── */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.demo-modal-overlay.active {
  display: flex;
}

.demo-modal-box {
  background: #ffffff;
  border-radius: var(--radius-2xl, 28px);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-border, #e2e8f0);
}

@keyframes modalScaleIn {
  from { transform: scale(0.92) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.demo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.demo-modal-close {
  background: var(--color-neutral-200, #e2e8f0);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-600, #475569);
  transition: all 0.2s ease;
}

.demo-modal-close:hover {
  background: var(--color-neutral-300, #cbd5e1);
  color: var(--color-neutral-900, #0f172a);
}

.demo-tag {
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: var(--radius-full, 9999px);
  font-weight: 700;
}

.demo-tag--parent { background: #dbeafe; color: #1e40af; }
.demo-tag--auth { background: #fef3c7; color: #92400e; }
