/* ══════════════════════════════════════════════════════════
   VisualForge — Premium Design System (Framer-inspired)
   ══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Colors — Refined Dark Theme */
  --bg-primary: #0c0c0f;
  --bg-secondary: #131316;
  --bg-tertiary: #19191e;
  --bg-elevated: #1e1e24;
  --bg-hover: rgba(255, 255, 255, 0.04);
  --bg-active: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.03);

  --border-color: rgba(255, 255, 255, 0.055);
  --border-color-hover: rgba(255, 255, 255, 0.1);
  --border-color-active: rgba(99, 102, 241, 0.4);

  --text-primary: #ededf0;
  --text-secondary: #8b8b9e;
  --text-tertiary: #55556a;
  --text-inverse: #0c0c0f;

  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-glow: rgba(99, 102, 241, 0.2);

  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, 0.12);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 24px rgba(99,102,241,0.12);
  --shadow-canvas: 0 4px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);

  /* Layout */
  --topbar-h: 52px;
  --sidebar-w: 260px;

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 120ms var(--ease);
  --t-normal: 200ms var(--ease);
  --t-slow: 350ms var(--ease);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit; font-size: inherit;
  border: none; background: none; color: inherit;
  cursor: pointer; outline: none;
}

input, select, textarea {
  font-family: inherit; font-size: 12px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder { color: var(--text-tertiary); }

/* Scrollbar — ultra minimal */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════
   TOP BAR — Minimal, airy
   ══════════════════════════════════════════════════════════ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 100;
  gap: 8px;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 4px; }
.topbar__center { display: flex; align-items: center; gap: 4px; }

.topbar__logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: -0.3px;
  color: var(--text-primary);
  user-select: none;
  padding-right: 12px;
}

.topbar__divider {
  width: 1px; height: 18px;
  background: var(--border-color);
  margin: 0 4px;
}

.topbar__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 12px; font-weight: 500;
  white-space: nowrap;
  transition: all var(--t-fast);
  position: relative;
}
.topbar__btn:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.topbar__btn:active:not(:disabled) {
  transform: scale(0.95);
  background: var(--bg-active);
}
.topbar__btn:disabled { opacity: 0.3; cursor: not-allowed; }

.topbar__btn--primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.topbar__btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.topbar__viewport-group {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--r-sm);
  padding: 2px;
  gap: 2px;
}
.topbar__viewport-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 4px 7px;
  border-radius: var(--r-xs);
  color: var(--text-tertiary);
  transition: all var(--t-fast);
}
.topbar__viewport-btn:hover { color: var(--text-secondary); }
.topbar__viewport-btn.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}

.topbar__zoom-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-tertiary);
  min-width: 40px; text-align: center;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════ */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   SIDEBARS — Clean and spacious
   ══════════════════════════════════════════════════════════ */
.sidebar {
  background: var(--bg-secondary);
  display: flex; flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
}
.sidebar--right {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

/* Tabs — subtle underline style */
.sidebar__tabs {
  display: flex;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  gap: 0;
}
.sidebar__tab {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 12px 14px;
  font-size: 12px; font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast);
}
.sidebar__tab:hover { color: var(--text-secondary); }
.sidebar__tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* Right sidebar header */
.sidebar__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.sidebar__header h3 {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.sidebar__element-tag {
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.2px;
}

/* Sidebar Panels */
.sidebar__panel { flex: 1; overflow-y: auto; overflow-x: hidden; }

/* Search — refined */
.sidebar__search {
  display: flex; align-items: center; gap: 8px;
  margin: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  color: var(--text-tertiary);
}
.sidebar__search:focus-within {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}
.sidebar__search input {
  flex: 1; border: none; background: none; padding: 0;
  font-size: 12px; color: var(--text-primary);
}
.sidebar__search input:focus { box-shadow: none; }
.sidebar__search input::placeholder { color: var(--text-tertiary); }

/* ── Block Items — Clean list style ────────────────── */
.sidebar__blocks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px 16px;
}

.blocks-category {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-tertiary);
  padding: 16px 8px 6px;
}
.blocks-category:first-child { padding-top: 8px; }

.block-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  cursor: grab;
  user-select: none;
  transition: all var(--t-fast);
}
.block-item:hover {
  background: var(--bg-hover);
}
.block-item:active {
  cursor: grabbing;
  transform: scale(0.98);
  background: var(--bg-active);
}
.block-item__icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.block-item:hover .block-item__icon {
  background: rgba(99,102,241,0.2);
}
.block-item__label {
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.block-item:hover .block-item__label { color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════
   LAYERS — Refined tree
   ══════════════════════════════════════════════════════════ */
.layers-tree { padding: 8px; }
.layer-node {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 12px; color: var(--text-secondary);
  user-select: none;
  transition: all var(--t-fast);
}
.layer-node:hover { background: var(--bg-hover); color: var(--text-primary); }
.layer-node.selected {
  background: var(--accent-soft);
  color: var(--accent);
}
.layer-node__icon {
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); flex-shrink: 0;
}
.layer-node.selected .layer-node__icon { color: var(--accent); }
.layer-node__label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-node__toggle {
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  transition: transform var(--t-fast);
  flex-shrink: 0; font-size: 10px;
}
.layer-node__toggle.expanded { transform: rotate(90deg); }
.layer-children {
  padding-left: 12px;
  margin-left: 12px;
  border-left: 1px solid var(--border-color);
}

/* ══════════════════════════════════════════════════════════
   CANVAS — Spacious and centered
   ══════════════════════════════════════════════════════════ */
.canvas-area {
  background: #0a0a0d;
  overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center;
  position: relative;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 20px 20px;
}
.canvas-area.no-grid { background-image: none; }

.canvas-scroll {
  width: 100%; height: 100%;
  overflow: auto;
  display: flex; justify-content: center;
  padding: 40px 40px 80px;
}

.canvas-wrapper {
  transition: transform 250ms var(--ease);
  transform-origin: top center;
  flex-shrink: 0;
}

.canvas {
  width: 1440px;
  min-height: 500px;
  background: #ffffff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-canvas);
  position: relative;
  transition: width 450ms var(--ease);
  overflow: hidden;
}
.canvas.viewport-tablet { width: 768px; }
.canvas.viewport-mobile { width: 375px; }

.canvas__empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  padding: 120px 32px;
  color: #b0b0b0;
  text-align: center;
  pointer-events: none;
  animation: fadeInSlow 600ms var(--ease);
}
.canvas__empty p { font-size: 14px; font-weight: 500; color: #999; }
.canvas__empty span { font-size: 12px; color: #777; }

/* ── Element Selection ─────────────────────────────── */
.canvas [data-element-id] {
  position: relative;
  cursor: pointer;
  transition: outline-color 80ms ease, box-shadow 150ms ease;
  outline: 2px solid transparent;
  outline-offset: -2px;
}
.canvas [data-element-id]:hover {
  outline-color: rgba(99,102,241,0.25);
}
.canvas [data-element-id].vf-selected {
  outline-color: var(--accent) !important;
  outline-offset: 0px;
}
.canvas [data-element-id].vf-selected::after {
  content: attr(data-element-type);
  position: absolute;
  top: -22px; left: 0;
  font-size: 10px; font-weight: 600;
  font-family: var(--font);
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  z-index: 10;
  pointer-events: none;
  text-transform: capitalize;
  white-space: nowrap;
  letter-spacing: 0.2px;
  animation: labelPop 200ms var(--ease-spring);
}
.canvas [data-element-id].vf-drag-over {
  outline-color: var(--accent) !important;
  outline-style: dashed;
}
.canvas [data-element-id].vf-editing {
  outline-color: var(--success) !important;
  cursor: text;
}

/* Drop Indicator */
.drop-indicator {
  position: fixed;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  pointer-events: none;
  z-index: 9999;
  display: none;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: top 50ms ease, left 50ms ease, width 50ms ease;
}
.drop-indicator::before, .drop-indicator::after {
  content: '';
  position: absolute; top: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.drop-indicator::before { left: -3px; }
.drop-indicator::after { right: -3px; }

/* ══════════════════════════════════════════════════════════
   STYLE PANEL — Refined
   ══════════════════════════════════════════════════════════ */
.style-panel { flex: 1; overflow-y: auto; overflow-x: hidden; }

.style-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}
.style-empty p { font-size: 12px; color: var(--text-tertiary); line-height: 1.6; }

/* Actions — compact pill buttons */
.style-actions {
  display: flex; gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}
.style-action-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--border-color);
  transition: all var(--t-fast);
}
.style-action-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}
.style-action-btn--danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(244,63,94,0.25);
}

/* Accordion Sections */
.style-section {
  border-bottom: 1px solid var(--border-color);
}
.style-section__header {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  font-size: 11px; font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  user-select: none;
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: all var(--t-fast);
}
.style-section__header::-webkit-details-marker { display: none; }
.style-section__header::after {
  content: '';
  margin-left: auto;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid var(--text-tertiary);
  transition: transform var(--t-fast);
}
.style-section[open] > .style-section__header::after { transform: rotate(180deg); }
.style-section__header:hover { color: var(--text-secondary); }

.style-section__body {
  padding: 0 16px 14px;
  display: flex; flex-direction: column;
  gap: 10px;
  animation: sectionReveal 200ms var(--ease);
}

/* Style Rows */
.style-row {
  display: flex; align-items: center; gap: 8px;
}
.style-label {
  font-size: 11px; font-weight: 500;
  color: var(--text-tertiary);
  min-width: 60px; flex-shrink: 0;
}
.style-input { flex: 1; min-width: 0; }
.style-input input,
.style-input select {
  width: 100%; font-size: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--r-sm);
}

/* Color picker row */
.style-color-row { display: flex; align-items: center; gap: 8px; }
.style-color-row input[type="color"] { flex-shrink: 0; }
.style-color-row input[type="text"] { flex: 1; }

input[type="color"] {
  width: 30px; height: 30px;
  padding: 2px; cursor: pointer;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-color);
  background: transparent;
}

/* Spacing multi-input group */
.style-input-group {
  display: flex; gap: 1px;
  background: var(--border-color);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.style-input-group__cell {
  display: flex; flex-direction: column;
  flex: 1; min-width: 0;
}
.style-input-group__label {
  font-size: 9px; font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  padding: 3px 0;
  background: var(--bg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.style-input-group__cell input {
  background: var(--bg-primary);
  padding: 5px 4px; font-size: 11px;
  border-radius: 0; border: none;
  text-align: center;
}

/* Alignment buttons */
.style-btn-group {
  display: flex;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.style-btn-group button {
  flex: 1; padding: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--t-fast);
  border-right: 1px solid var(--border-color);
}
.style-btn-group button:last-child { border-right: none; }
.style-btn-group button:hover { color: var(--text-primary); background: var(--bg-hover); }
.style-btn-group button.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ══════════════════════════════════════════════════════════
   MODAL / PREVIEW
   ══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  animation: fadeIn 150ms var(--ease);
}
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalReveal 300ms var(--ease-spring);
}
.modal-content--preview {
  width: 92vw; height: 88vh;
  display: flex; flex-direction: column;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { font-size: 13px; font-weight: 600; }
.modal-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  font-size: 18px; color: var(--text-tertiary);
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.preview-iframe { flex: 1; border: none; background: #fff; }

/* ══════════════════════════════════════════════════════════
   TOASTS — Smooth, minimal
   ══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  font-size: 12px; font-weight: 500;
  color: var(--text-primary);
  animation: toastIn 350ms var(--ease-spring);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.toast--success { border-color: rgba(16,185,129,0.3); }
.toast--success::before {
  content: '✓'; color: var(--success);
  font-weight: 700; font-size: 13px;
}
.toast--error { border-color: rgba(244,63,94,0.3); }
.toast--error::before {
  content: '✕'; color: var(--danger);
  font-weight: 700; font-size: 13px;
}
.toast--info { border-color: rgba(99,102,241,0.3); }
.toast--info::before {
  content: 'ℹ'; color: var(--accent);
  font-weight: 700; font-size: 13px;
}

/* ══════════════════════════════════════════════════════════
   CONTEXT MENU
   ══════════════════════════════════════════════════════════ */
.context-menu {
  position: fixed; z-index: 9999;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 4px;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  animation: contextPop 150ms var(--ease-spring);
  backdrop-filter: blur(16px);
}
.context-menu__item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 12px; color: var(--text-secondary);
  transition: all var(--t-fast);
  width: 100%; text-align: left;
}
.context-menu__item:hover { background: var(--bg-hover); color: var(--text-primary); }
.context-menu__item--danger:hover { background: var(--danger-soft); color: var(--danger); }
.context-menu__divider { height: 1px; background: var(--border-color); margin: 4px 0; }
.context-menu__shortcut {
  margin-left: auto;
  font-size: 10px; color: var(--text-tertiary);
  font-weight: 500; opacity: 0.6;
}

/* Drag Ghost */
.drag-ghost {
  position: fixed; top: -9999px; left: -9999px;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px; font-weight: 600;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  z-index: 99999;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes fadeInSlow {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalReveal {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9) translateY(4px); }
}
@keyframes contextPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes labelPop {
  from { opacity: 0; transform: translateY(4px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes elementEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.vf-element-enter { animation: elementEnter 250ms var(--ease); }
