/* ============================================
   ShopFlow — Linear-inspired dark minimal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #000000;
  --bg-raised: #0a0a0a;
  --bg-card: #101010;
  --bg-card-hover: #161616;
  --bg-surface: #1a1a1a;

  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dim: rgba(139, 92, 246, 0.12);
  --accent-glow: rgba(139, 92, 246, 0.06);
  --accent-gradient: linear-gradient(135deg, #8b5cf6, #6366f1);

  --orange: #f97316;
  --green: #22c55e;
  --blue: #3b82f6;

  --text-primary: #f5f5f5;
  --text-secondary: #8a8f98;
  --text-tertiary: #565b63;
  --text-inverse: #000000;

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

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

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

h3 { font-size: 1.25rem; }

.text-gradient {
  background: linear-gradient(135deg, #f5f5f5 0%, #8a8f98 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo svg {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-login {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-login:hover { color: var(--text-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: all 0.15s;
}

.nav-cta:hover {
  background: var(--accent-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 8px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    gap: 4px;
  }
  .nav-links.open a { padding: 10px 14px; }
  .nav-actions .nav-login { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 160px 0 0;
  overflow: visible;
}

/* Gradient sphere */
.hero-sphere {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, rgba(139, 92, 246, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 65% 55%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: sphere-drift 12s ease-in-out infinite;
}

.hero-sphere::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 20%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
  filter: blur(40px);
  animation: sphere-pulse 8s ease-in-out infinite 2s;
}

@keyframes sphere-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 20px) scale(1.03); }
  50% { transform: translate(15px, -15px) scale(0.97); }
  75% { transform: translate(-10px, -25px) scale(1.02); }
}

@keyframes sphere-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-text {
  text-align: left;
  margin-bottom: 48px;
}

.hero h1 {
  position: relative;
  margin-bottom: 24px;
  max-width: 900px;
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-weight: 600;
}

.hero-text-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.15s;
}

.hero-link:hover {
  color: var(--text-primary);
}

.hero-link svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 0; }
  .hero-text-row { flex-direction: column; align-items: flex-start; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: #f5f5f5;
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* --- Hero Preview --- */
.hero-preview {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-preview.editor-active {
  max-width: 1300px;
}

.preview-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.hero-preview.editor-active .preview-window {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow:
    0 0 40px rgba(139, 92, 246, 0.08),
    0 0 80px rgba(139, 92, 246, 0.05),
    0 0 120px rgba(139, 92, 246, 0.03);
}

/* Glow element behind the window */
.preview-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.06) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  filter: blur(40px);
}

.hero-preview.editor-active .preview-glow {
  opacity: 1;
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.5;
}

.preview-bar-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.preview-body {
  padding: 0;
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.wf-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s;
}

.wf-node:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.node-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.wf-connector {
  width: 32px;
  height: 1px;
  background: var(--border-hover);
  position: relative;
}

.wf-connector::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Section shared --- */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-divider {
  height: 1px;
  background: var(--border);
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-cell {
  background: var(--bg);
  padding: 40px;
  transition: background 0.2s;
}

.feature-cell:hover {
  background: var(--bg-raised);
}

.feature-cell-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-cell h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.feature-cell p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* --- Bento Feature Rows --- */
.bento-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.bento-row + .bento-row {
  border-top: 1px solid var(--border);
}

.bento-row.reverse {
  direction: rtl;
}
.bento-row.reverse > * {
  direction: ltr;
}

.bento-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.bento-text p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.bento-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.bento-list li svg {
  flex-shrink: 0;
  color: var(--accent);
}

.bento-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.bento-visual:hover {
  border-color: var(--border-hover);
}

@media (max-width: 768px) {
  .bento-row { grid-template-columns: 1fr; gap: 32px; }
  .bento-row.reverse { direction: ltr; }
}

/* --- Integration Logos --- */
.logo-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.logo-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.logo-item:hover {
  color: var(--text-secondary);
}

/* --- Stats --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat {
  text-align: center;
  padding: 0 48px;
  position: relative;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: var(--border);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .stats-row { flex-direction: column; gap: 32px; }
  .stat { padding: 0; }
  .stat + .stat::before { display: none; }
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.testimonial-quote strong {
  color: var(--text-primary);
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--accent);
}

.testimonial-name {
  font-weight: 600;
  font-size: 13px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* --- CTA --- */
.cta {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta h2 {
  position: relative;
  margin-bottom: 16px;
}

.cta p {
  position: relative;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.cta .hero-ctas {
  position: relative;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all 0.15s;
}

.footer-social a:hover {
  color: var(--text-secondary);
  border-color: var(--border-hover);
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 3px 0;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* --- Reveal (GSAP) --- */
.reveal { visibility: visible; }

/* --- Grid dots decoration --- */
.grid-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 24px;
  pointer-events: none;
  opacity: 0.3;
}

.grid-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--text-tertiary);
  justify-self: center;
  align-self: center;
}

/* --- Interactive Workflow Editor --- */
.wf-canvas {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  cursor: default;
  background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 20px 20px;
}

.wf-canvas-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wf-editor-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: grab;
  user-select: none;
  z-index: 2;
  transition: border-color 0.15s, box-shadow 0.15s;
  touch-action: none;
  white-space: nowrap;
}

.wf-editor-node:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.wf-editor-node.dragging {
  cursor: grabbing;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(139,92,246,0.15);
  z-index: 10;
  transition: none;
}

.wf-node-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: 2px solid var(--bg-card);
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  cursor: pointer;
  z-index: 3;
  padding: 0;
}

.wf-editor-node:hover .wf-node-delete { opacity: 1; }

.wf-port {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  transition: opacity 0.15s;
}

.wf-port-in { left: -4px; }
.wf-port-out { right: -4px; }
.wf-editor-node:hover .wf-port { opacity: 1; }

.wf-palette-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 20;
  transition: all 0.15s;
  font-family: inherit;
}

.wf-palette-toggle:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.wf-palette {
  position: absolute;
  top: 44px;
  left: 12px;
  width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.wf-palette.open { display: flex; }

.wf-palette-title {
  font-size: 11px;
  color: var(--text-tertiary);
  padding: 4px 8px;
  font-weight: 500;
}

.wf-palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: grab;
  transition: background 0.15s;
  touch-action: none;
}

.wf-palette-item:hover { background: var(--bg-surface); }

.wf-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-tertiary);
  z-index: 5;
  pointer-events: none;
  opacity: 0.6;
  white-space: nowrap;
}

/* Node selected state */
.wf-editor-node.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139,92,246,0.2);
}

/* Node config panel (side panel) */
.wf-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-raised);
  border-left: 1px solid var(--border);
  z-index: 15;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-panel.open {
  transform: translateX(0);
}

.wf-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.wf-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.wf-panel-close {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  font-family: inherit;
}

.wf-panel-close:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.wf-panel-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wf-panel-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wf-panel-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wf-panel-input {
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.wf-panel-input:focus {
  border-color: var(--accent);
}

.wf-panel-select {
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.wf-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-secondary);
}

.wf-panel-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.wf-panel-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

@media (max-width: 768px) {
  .wf-canvas { height: 400px; }
  .wf-editor-node { font-size: 11px; padding: 8px 12px; }
  .wf-hint { font-size: 10px; }
  .wf-panel { width: 240px; }
}

