/* ============================================
   DARION Customer-Demo · Shared Design System
   ============================================ */

:root {
  --darion-bg: #030014;
  --darion-bg-elevated: rgba(255,255,255,0.04);
  --indigo: 99, 102, 241;
  --purple: 168, 85, 247;
  --pink: 236, 72, 153;
  --emerald: 34, 197, 94;
  --amber: 245, 158, 11;
  --rose: 244, 63, 94;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--darion-bg);
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
}

/* === Glass === */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.glass-strong {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* === Backgrounds === */
.spotlight-bg {
  position: fixed;
  top: -300px; left: -300px;
  width: 1000px; height: 1000px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(120px, 80px); } }

.beam-path {
  stroke-dasharray: 12 800;
  animation: beam-flow 10s linear infinite;
}
@keyframes beam-flow { to { stroke-dashoffset: -812; } }

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.4; }
}

.meteor {
  position: absolute;
  top: -10px;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px white;
  animation: meteor-fall linear infinite;
}
.meteor::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(215deg);
  transform-origin: 0 0;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, white, transparent);
}
@keyframes meteor-fall {
  0% { transform: translate(0,0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(-200px, 400px); opacity: 0; }
}

/* === Border Beam === */
.border-beam { position: relative; }
.border-beam::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--bb-angle, 0deg),
    transparent 0deg,
    rgb(99, 102, 241) 30deg,
    rgb(168, 85, 247) 60deg,
    transparent 90deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rot-bb 4s linear infinite;
  pointer-events: none;
}
@property --bb-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rot-bb { to { --bb-angle: 360deg; } }

/* === Hover Border Gradient === */
.hover-border-grad {
  position: relative;
  padding: 1px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #6366f1);
  background-size: 300% 100%;
  animation: grad-flow 4s linear infinite;
  display: inline-block;
}
@keyframes grad-flow { to { background-position: 300% 0%; } }

/* === Card Spotlight === */
.card-spotlight { position: relative; overflow: hidden; }
.card-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 200px at var(--mx, -100px) var(--my, -100px), rgba(99,102,241,0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card-spotlight:hover::before { opacity: 1; }

/* === Sparkle === */
.sparkle {
  position: absolute;
  width: 3px; height: 3px;
  background: white;
  border-radius: 50%;
  animation: sparkle-tw 2s ease-in-out infinite;
  box-shadow: 0 0 6px white;
}
@keyframes sparkle-tw {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* === Tilt === */
.tilt-card { transition: transform 0.2s ease; transform-style: preserve-3d; }

/* === Word Fade === */
.word-fade {
  opacity: 0;
  filter: blur(8px);
  animation: word-in 0.5s ease-out forwards;
  display: inline-block;
  margin-right: 0.25em;
}
@keyframes word-in { to { opacity: 1; filter: blur(0); } }

/* === Glare === */
.glare { position: relative; overflow: hidden; }
.glare::after {
  content: '';
  position: absolute;
  top: -50%; left: -100%;
  width: 200%; height: 200%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transition: left 0.7s ease;
}
.glare:hover::after { left: 100%; }

/* === Pulse Ring === */
@keyframes ping-soft { 75%, 100% { transform: scale(2); opacity: 0; } }
.ping-soft { animation: ping-soft 2s cubic-bezier(0,0,0.2,1) infinite; }

/* === Animated Beam === */
.beam-track { position: relative; overflow: hidden; }
.beam-track::after {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgb(99,102,241), transparent);
  animation: bf 1.4s linear infinite;
  box-shadow: 0 0 8px rgb(99,102,241);
}
@keyframes bf { to { left: 150%; } }

/* === Tracing Beam === */
.tracing-beam {
  width: 2px;
  background: linear-gradient(180deg, transparent, rgb(99,102,241), rgb(168,85,247), transparent);
  background-size: 100% 200%;
  animation: tracing 5s linear infinite;
}
@keyframes tracing { to { background-position: 0% 200%; } }

/* === Marquee === */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 30s linear infinite; display: flex; gap: 2rem; align-items: center; width: max-content; }
.marquee-mask {
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

/* === Lamp === */
.lamp { position: relative; isolation: isolate; }
.lamp::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 80px;
  background: radial-gradient(ellipse at top, rgba(99,102,241,0.5), transparent 70%);
  filter: blur(20px);
}

/* === Number ticker === */
@keyframes ticker-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.ticker-anim { animation: ticker-up 0.8s ease-out; }

/* === Fade up === */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.5s ease-out backwards; }

/* === Status dot === */
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
  display: inline-block;
}

/* === Sidebar nav === */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #9ca3af;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: white; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(99,102,241,0.15), transparent);
  color: white;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  background: linear-gradient(180deg, rgb(99,102,241), rgb(168,85,247));
  border-radius: 0 2px 2px 0;
}
.nav-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  padding: 12px 12px 6px;
}
.nav-badge {
  margin-left: auto;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(99,102,241,0.2);
  color: rgb(165, 180, 252);
}

/* === Magnetic Dock === */
.dock-item { transition: transform 0.2s ease, background 0.2s; }
.dock-item:hover {
  transform: translateY(-12px) scale(1.4);
  background: rgba(99,102,241,0.2) !important;
}

/* === Search shortcut === */
.search-shortcut {
  font-size: 9px;
  padding: 2px 5px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: #6b7280;
  background: rgba(255,255,255,0.03);
}

/* === Demo top-link === */
.demo-link {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  transition: all 0.2s;
}
.demo-link:hover { color: white; border-color: rgba(255,255,255,0.3); }
.demo-link.active { color: rgb(165, 180, 252); border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.1); }

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }

/* === Pricing badge === */
.badge-popular {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  color: white;
}

/* === Risk level === */
.risk-low { color: rgb(34,197,94); background: rgba(34,197,94,0.1); }
.risk-med { color: rgb(245,158,11); background: rgba(245,158,11,0.1); }
.risk-high { color: rgb(244,63,94); background: rgba(244,63,94,0.1); }
.risk-crit { color: white; background: rgba(244,63,94,0.5); }

/* === Section header === */
.section-header {
  background: linear-gradient(90deg, rgba(99,102,241,0.1), transparent);
  border-left: 3px solid rgb(99,102,241);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

/* === Vortex === */
.vortex-bg {
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(99,102,241,0.3),
    rgba(168,85,247,0.3),
    rgba(236,72,153,0.3),
    rgba(99,102,241,0.3));
  animation: vortex-spin 8s linear infinite;
  filter: blur(40px);
}
@keyframes vortex-spin { to { transform: rotate(360deg); } }

/* ============================================
   APP-SHELL DESIGN-SYSTEM (v2 — disciplined)
   ============================================ */

/* === Sidebar === */
.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(10,10,30,0.6) 0%, rgba(5,5,20,0.6) 100%);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.brand-row {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ws-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s;
  width: 100%;
}
.ws-switcher:hover { background: rgba(255,255,255,0.04); }
.ws-logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.sb-search {
  margin: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px;
  font-size: 11px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.sb-search:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.sb-search-kbd {
  margin-left: auto;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  color: #9ca3af;
  font-family: ui-monospace, monospace;
}
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 8px 8px; }
.sb-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b5563;
  padding: 12px 10px 4px;
}
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 6px;
  font-size: 13px; color: #9ca3af;
  transition: all 0.12s; position: relative;
  min-height: 30px;
}
.sb-item:hover { background: rgba(255,255,255,0.04); color: #e5e7eb; }
.sb-item.active { color: white; background: rgba(99,102,241,0.12); }
.sb-item.active::before {
  content: '';
  position: absolute;
  left: -8px; top: 6px; bottom: 6px;
  width: 2.5px;
  background: linear-gradient(180deg, #6366f1, #a855f7);
  border-radius: 0 2px 2px 0;
}
.sb-icon { width: 18px; display: flex; justify-content: center; flex-shrink: 0; font-size: 14px; }
.sb-label { flex: 1; min-width: 0; }
.sb-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(99,102,241,0.18);
  color: rgb(165,180,252);
  font-weight: 500;
  flex-shrink: 0;
}
.sb-badge.warn { background: rgba(245,158,11,0.18); color: rgb(252,211,77); }
.sb-badge.alert { background: rgba(244,63,94,0.18); color: rgb(252,165,165); }
.sb-user {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 8px;
  transition: background 0.15s; cursor: pointer;
}
.sb-user:hover { background: rgba(255,255,255,0.03); }
.sb-user-avatar {
  width: 30px; height: 30px;
  border-radius: 99px;
  background: linear-gradient(135deg, #ec4899, #f97316);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.sb-user-name { font-size: 12px; color: white; font-weight: 500; }
.sb-user-meta { font-size: 10px; color: #6b7280; display: flex; align-items: center; gap: 4px; }

/* === Top bar === */
.topbar {
  height: 52px; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(5,5,20,0.5); backdrop-filter: blur(20px);
  flex-shrink: 0;
}
.topbar-title { font-size: 14px; font-weight: 600; color: white; }
.topbar-sub { font-size: 11px; color: #6b7280; }
.topbar-btn {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af; cursor: pointer; transition: all 0.12s; position: relative;
}
.topbar-btn:hover { background: rgba(255,255,255,0.05); color: white; }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.topbar-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.08); margin: 0 8px; }

/* === Main === */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.content { flex: 1; overflow-y: auto; }
.content-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
}

/* === Card base === */
.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.012) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.card-title { font-size: 13px; font-weight: 600; color: white; margin-bottom: 2px; }
.card-sub { font-size: 11px; color: #6b7280; }
.card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
}
.card-action { font-size: 10px; color: rgb(165,180,252); transition: color 0.1s; }
.card-action:hover { color: white; }

/* === KPI === */
.kpi { display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s; }
.kpi:hover { transform: translateY(-1px); border-color: rgba(99,102,241,0.25); }
.kpi-label {
  font-size: 10px; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.kpi-value { font-size: 26px; font-weight: 700; color: white; line-height: 1; margin-bottom: 4px; }
.kpi-icon-wrap {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.kpi-trend { font-size: 10px; padding: 2px 6px; border-radius: 99px; font-weight: 500; }
.kpi-trend.up { background: rgba(34,197,94,0.15); color: rgb(74,222,128); }
.kpi-trend.warn { background: rgba(245,158,11,0.15); color: rgb(252,211,77); }
.kpi-trend.alert { background: rgba(244,63,94,0.15); color: rgb(252,165,165); }
.kpi-trend.flat { background: rgba(255,255,255,0.06); color: #9ca3af; }

/* === Grids === */
.grid-23 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-equal-h > * { display: flex; flex-direction: column; }

/* === Pool pill === */
.pool-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: rgb(134,239,172);
}

/* === Demo chip (bottom-center, kollidiert nicht mit topbar/sidebar/dock) === */
.demo-chip {
  position: fixed;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(10,10,30,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 10px;
  max-width: calc(100vw - 320px);
  overflow: hidden;
}
.demo-chip-toggle {
  cursor: pointer; padding: 2px 8px; border-radius: 999px;
  color: #fbbf24; font-weight: 600;
  letter-spacing: 0.04em; font-size: 9px;
  text-transform: uppercase;
}
.demo-chip-links {
  display: flex; align-items: center; gap: 2px;
  max-width: 0; overflow: hidden;
  transition: max-width 0.4s ease, margin-left 0.4s;
}
.demo-chip.open .demo-chip-links { max-width: 1000px; margin-left: 4px; }
.demo-chip-links a {
  padding: 3px 8px; border-radius: 999px;
  color: #9ca3af; white-space: nowrap;
  transition: all 0.12s;
}
.demo-chip-links a:hover { background: rgba(255,255,255,0.06); color: white; }
.demo-chip-links a.active { background: rgba(99,102,241,0.2); color: rgb(165,180,252); }

/* === User pop === */
.user-pop {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 240px; padding: 6px;
  border-radius: 10px;
  background: rgba(15,15,35,0.96);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(-4px);
  pointer-events: none;
  transition: all 0.15s;
  z-index: 50;
}
.user-pop.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.user-pop-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 6px;
  font-size: 12px; color: #d1d5db;
  transition: background 0.1s;
}
.user-pop-item:hover { background: rgba(255,255,255,0.05); color: white; }

/* === Module tile === */
.module-tile {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.2s, border-color 0.2s;
  display: block;
  position: relative;
  overflow: hidden;
}
.module-tile:hover { transform: translateY(-2px); border-color: rgba(99,102,241,0.3); }
.module-tile-icon { font-size: 18px; margin-bottom: 6px; }
.module-tile-title { font-size: 12px; font-weight: 600; color: white; }
.module-tile-meta { font-size: 10px; color: #9ca3af; margin-top: 1px; }

/* === Page header (consistent across modules) === */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 0;
}
.page-eyebrow {
  font-size: 10px; color: rgb(165,180,252);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.page-title { font-size: 22px; font-weight: 700; color: white; line-height: 1.2; }
.page-sub { font-size: 13px; color: #9ca3af; margin-top: 4px; }

/* === Action button === */
.btn-primary {
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white; font-size: 12px; font-weight: 500;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }
.btn-secondary {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #d1d5db; font-size: 12px;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: white; }

/* === Filter bar === */
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.filter-bar input,
.filter-bar select {
  padding: 7px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  font-size: 12px;
  color: #e5e7eb;
  outline: none;
  transition: border-color 0.15s;
}
.filter-bar input:focus,
.filter-bar select:focus { border-color: rgba(99,102,241,0.5); }
.filter-bar .search-input { padding-left: 32px; flex: 1; max-width: 320px; }

/* === Status pills === */
.status-pill {
  font-size: 10px; padding: 2px 8px; border-radius: 99px;
  font-weight: 500;
}
.status-pill.success { background: rgba(34,197,94,0.18); color: rgb(134,239,172); }
.status-pill.warn { background: rgba(245,158,11,0.18); color: rgb(252,211,77); }
.status-pill.danger { background: rgba(244,63,94,0.18); color: rgb(252,165,165); }
.status-pill.info { background: rgba(99,102,241,0.18); color: rgb(165,180,252); }
.status-pill.muted { background: rgba(255,255,255,0.06); color: #9ca3af; }

/* === Data table === */
.dtable { width: 100%; font-size: 12px; }
.dtable thead { background: rgba(255,255,255,0.03); }
.dtable thead th {
  text-align: left; padding: 10px 12px;
  color: #6b7280; font-weight: 500;
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}
.dtable thead th:hover { color: white; }
.dtable tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.1s;
}
.dtable tbody tr:hover { background: rgba(255,255,255,0.02); }
.dtable td { padding: 10px 12px; color: #e5e7eb; }
.dtable td.mono { font-family: ui-monospace, monospace; color: rgb(165,180,252); }
.dtable td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* === Floating dock fix === */
.fdock { position: fixed; bottom: 24px; right: 24px; z-index: 30; }
.fdock-trigger {
  width: 48px; height: 48px;
  border-radius: 99px;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 32px rgba(99,102,241,0.5);
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
}
.fdock-trigger:hover { transform: scale(1.08); }

/* ============================================
   Demo-Runtime · Sticky-Header-CTA + Mobile-Banner
   (injected by demo-runtime.js)
   ============================================ */

body.has-demo-sticky-cta {
  padding-top: 44px;
}

.demo-sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: #f7f8f8;
  background: linear-gradient(135deg, rgba(8,10,30,0.95) 0%, rgba(20,16,48,0.95) 100%);
  border-bottom: 1px solid rgba(113,112,255,0.45);
  box-shadow: 0 6px 24px -8px rgba(113,112,255,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.demo-sticky-cta__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e5e7eb;
  letter-spacing: -0.005em;
}

.demo-sticky-cta__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7170ff;
  box-shadow: 0 0 10px #7170ff;
  animation: demoPulse 2s ease-in-out infinite;
}

@keyframes demoPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.demo-sticky-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 510;
  letter-spacing: -0.005em;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #7170ff 0%, #5e6ad2 100%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 18px -6px rgba(113,112,255,0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.demo-sticky-cta__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(113,112,255,0.85);
}

/* Mobile-Banner — only visible on narrow viewports */
.demo-mobile-banner {
  display: none;
}

@media (max-width: 768px) {
  body.has-demo-sticky-cta {
    padding-top: 132px;
  }
  .demo-sticky-cta {
    flex-direction: column;
    height: auto;
    gap: 6px;
    padding: 8px 14px;
    text-align: center;
    font-size: 12px;
  }
  .demo-sticky-cta__link {
    padding: 5px 12px;
    font-size: 12px;
  }
  .demo-mobile-banner {
    display: block;
    position: relative;
    z-index: 99;
    margin: 0;
    padding: 12px 16px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #f7f8f8;
    background: linear-gradient(135deg, rgba(245,158,11,0.18) 0%, rgba(244,63,94,0.12) 100%);
    border-bottom: 1px solid rgba(245,158,11,0.45);
  }
  .demo-mobile-banner strong {
    display: block;
    margin-bottom: 4px;
    color: #fde68a;
    font-weight: 600;
  }
  .demo-mobile-banner span {
    display: block;
    color: #e5e7eb;
  }
  .demo-mobile-banner__link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 510;
    color: #ffffff;
    text-decoration: none;
    background: rgba(113,112,255,0.25);
    border: 1px solid rgba(113,112,255,0.5);
  }
}
