/* ===== FlowZap Admin - Premium Dark Design ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1e1e35;
  --bg-input: #16162a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #8888aa;
  --text-muted: #5a5a7a;
  --accent: #25d366;
  --accent-hover: #1eba58;
  --accent-glow: rgba(37, 211, 102, 0.2);
  --accent-subtle: rgba(37, 211, 102, 0.08);
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.2);
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --warning: #f59e0b;
  --sidebar-width: 260px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.login-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: orbFloat 15s ease-in-out infinite;
}

.login-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.login-orb-2 {
  width: 350px;
  height: 350px;
  background: var(--purple);
  bottom: -80px;
  right: -80px;
  animation-delay: -5s;
}

.login-orb-3 {
  width: 200px;
  height: 200px;
  background: #0ea5e9;
  top: 50%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(40px, -30px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 50px) scale(0.9);
  }

  75% {
    transform: translate(30px, 20px) scale(1.05);
  }
}

.login-card {
  position: relative;
  z-index: 1;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  margin: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.login-logo-icon svg {
  width: 36px;
  height: 36px;
  color: white;
}

.login-logo h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.login-logo h1 span {
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 44px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.input-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.toggle-password svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: var(--transition);
}

.toggle-password:hover svg {
  color: var(--text-secondary);
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #1eba58);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-login svg {
  width: 20px;
  height: 20px;
}

.login-error {
  color: var(--danger);
  text-align: center;
  font-size: 13px;
  margin-top: 16px;
  animation: shake 0.4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-8px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.login-footer p {
  font-size: 12px;
  color: var(--text-muted);
}

.login-footer code {
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent);
}

/* ===== ADMIN PANEL LAYOUT ===== */
.admin-panel {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: var(--text-primary);
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.sidebar-logo strong {
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: left;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-subtle);
  color: var(--accent);
}

.nav-item.logout {
  color: var(--danger);
}

.nav-item.logout:hover {
  background: rgba(239, 68, 68, 0.08);
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: 100vh;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), #1eba58);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-back:hover {
  color: var(--text-primary);
}

.btn-back svg {
  width: 18px;
  height: 18px;
}

.btn-danger {
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

/* ===== FLOWS GRID ===== */
.flows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.flow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.flow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #0ea5e9);
  opacity: 0;
  transition: var(--transition);
}

.flow-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.flow-card:hover::before {
  opacity: 1;
}

.flow-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flow-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.flow-card-id {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: monospace;
}

.flow-card-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.flow-stat {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.flow-card-actions {
  display: flex;
  gap: 4px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.empty-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===== EDITOR ===== */
.editor-workspace {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  min-height: calc(100vh - 120px);
}

.editor-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.editor-right {
  width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 32px;
}

.live-preview-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  /* Fill screen height minus margins */
  box-shadow: var(--shadow);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.preview-header span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.preview-frame {
  flex: 1;
  width: 100%;
  background: #000;
}

.preview-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.config-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.config-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.config-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.config-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-field input[type="text"],
.config-field input[type="password"],
.config-field input[type="number"],
.config-field input[type="url"],
.config-field textarea,
.config-field select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.config-field input:focus,
.config-field textarea:focus,
.config-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.config-field textarea {
  min-height: 80px;
  resize: vertical;
}

.config-field select {
  cursor: pointer;
}

.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-transform: none;
  font-size: 14px;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ===== FLOW LINK BAR ===== */
.flow-link-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--accent-subtle);
  border: 1px solid rgba(37, 211, 102, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.link-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.flow-link-bar code {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-input);
  padding: 6px 12px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  padding: 6px 16px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--accent-hover);
}

/* ===== STEPS ===== */
.steps-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.steps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.steps-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.add-step-dropdown {
  position: relative;
}

.btn-add-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-subtle);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-step:hover {
  background: rgba(37, 211, 102, 0.15);
}

.btn-add-step svg {
  width: 14px;
  height: 14px;
}

.step-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 50;
  animation: menuAppear 0.15s ease-out;
}

@keyframes menuAppear {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.step-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ===== STEP ITEMS ===== */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  animation: stepAppear 0.3s ease-out;
}

@keyframes stepAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-item:hover {
  border-color: var(--border-hover);
}

.step-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.step-number {
  width: 28px;
  height: 28px;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-type-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-type-text {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.step-type-image {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.step-type-audio {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}

.step-type-video {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.step-type-pdf {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.step-type-buttons {
  background: rgba(37, 211, 102, 0.15);
  color: #4ade80;
}

.step-type-input {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}

.step-type-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: var(--accent);
}

.step-type-delay {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.step-preview {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-actions {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.step-item-body {
  padding: 0 16px 16px;
  display: none;
}

.step-item.expanded .step-item-body {
  display: block;
}

.step-field {
  margin-bottom: 12px;
}

.step-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-field input,
.step-field textarea,
.step-field select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.step-field input:focus,
.step-field textarea:focus,
.step-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.step-field textarea {
  min-height: 80px;
  resize: vertical;
}

/* Buttons sub-editor */
.buttons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.button-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.button-item .config-field {
  flex: 1;
}

.button-item .config-field:last-of-type {
  flex: 1.5;
}

.btn-remove-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 6px;
  color: var(--danger);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  margin-top: 22px;
}

.btn-remove-button:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-add-button {
  padding: 8px 16px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-add-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== SETTINGS ===== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ===== PREVIEW MODAL ===== */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
}

.preview-header button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.preview-header button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.preview-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preview-frame iframe {
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 800px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .editor-config {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }

  .flows-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-actions {
    width: 100%;
  }

  .flow-link-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .login-card {
    padding: 32px 24px;
  }
}

/* ================================================================ */
/*                     LANDING PAGE STYLES                          */
/* ================================================================ */

.landing-page {
  min-height: 100vh;
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* ===== LP CONTAINER ===== */
.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.lp-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.lp-navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.lp-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 500;
}

.lp-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-brand-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.lp-brand strong {
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-nav-links {
  display: flex;
  gap: 32px;
}

.lp-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
}

.lp-nav-links a:hover {
  color: var(--text-primary);
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-btn-ghost {
  padding: 8px 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s;
}

.lp-btn-ghost:hover {
  color: var(--text-primary);
}

.lp-btn-cta-sm {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent), #1eba58);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.lp-btn-cta-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.lp-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.lp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: 0.2s;
}

/* ===== HERO ===== */
.lp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.lp-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.lp-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.lp-hero-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(37, 211, 102, 0.08);
  top: -200px;
  right: -100px;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.lp-hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(14, 165, 233, 0.06);
  bottom: -100px;
  left: -100px;
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

.lp-hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(124, 58, 237, 0.06);
  top: 40%;
  left: 30%;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(30px, -20px);
  }
}

.lp-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.lp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-subtle);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.lp-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.lp-hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.lp-gradient-text {
  background: linear-gradient(135deg, var(--accent), #0ea5e9, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.lp-hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.lp-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), #1eba58);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.lp-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.lp-btn-cta svg {
  width: 18px;
  height: 18px;
  transition: 0.2s;
}

.lp-btn-cta:hover svg {
  transform: translateX(3px);
}

.lp-btn-outline {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: 0.3s;
}

.lp-btn-outline:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.lp-hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.lp-avatars {
  display: flex;
}

.lp-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-left: -8px;
}

.lp-avatar-circle:first-child {
  margin-left: 0;
}

/* ===== PHONE MOCKUP ===== */
.lp-phone-mockup {
  width: 320px;
  margin: 0 auto;
  background: #0b141a;
  border-radius: 32px;
  border: 3px solid #2a3942;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.lp-phone-notch {
  height: 28px;
  background: #0b141a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1f2c34;
}

.lp-phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.lp-phone-name {
  font-size: 14px;
  font-weight: 600;
  color: #e9edef;
}

.lp-phone-status {
  font-size: 11px;
  color: #8696a0;
}

.lp-phone-chat {
  padding: 16px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0b141a;
}

.lp-phone-bubble {
  max-width: 85%;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #e9edef;
  opacity: 0;
  animation: bubbleIn 0.4s ease-out forwards;
}

.lp-bubble-bot {
  background: #202c33;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.lp-bubble-user {
  background: #005c4b;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.lp-bubble-anim-1 {
  animation-delay: 0.5s;
}

.lp-bubble-anim-2 {
  animation-delay: 1.5s;
}

.lp-bubble-anim-3 {
  animation-delay: 2.5s;
}

.lp-bubble-anim-4 {
  animation-delay: 3.5s;
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-phone-pdf {
  background: rgba(0, 0, 0, 0.15);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.lp-phone-pdf span {
  color: #8696a0;
  font-size: 10px;
  display: block;
}

.lp-check {
  color: #53bdeb;
  font-size: 11px;
  margin-left: 4px;
}

.lp-phone-input {
  padding: 10px 14px;
  background: #1f2c34;
  color: #8696a0;
  font-size: 13px;
}

/* ===== FEATURES ===== */
.lp-features {
  padding: 120px 0;
}

.lp-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.lp-section-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-subtle);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 20px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.lp-section-header h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.lp-section-header p {
  color: var(--text-secondary);
  font-size: 17px;
}

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lp-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: 0.3s;
}

.lp-feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.lp-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.lp-feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lp-feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.lp-how {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lp-steps-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
}

.lp-step-card {
  flex: 1;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: 0.3s;
}

.lp-step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.lp-step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin: 0 auto 20px;
}

.lp-step-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.lp-step-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.lp-step-arrow {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 300;
  color: var(--text-muted);
}

/* ===== PRICING ===== */
.lp-pricing {
  padding: 120px 0;
}

.lp-pricing-grid {
  display: flex;
  justify-content: center;
}

.lp-pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(37, 211, 102, 0.1);
}

.lp-pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #0ea5e9, #7c3aed);
}

.lp-pricing-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-subtle);
  border-radius: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.lp-pricing-price {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -2px;
}

.lp-pricing-period {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.lp-pricing-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.lp-pricing-features li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.lp-pricing-features li:last-child {
  border-bottom: none;
}

/* ===== FOOTER ===== */
.lp-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}

.lp-footer-copy p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== AUTH MODAL ===== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(18, 18, 26, 0.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  margin: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: cardAppear 0.3s ease-out;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 4px;
}

.auth-logo p {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-field input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: 0.2s;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-field .input-wrapper {
  position: relative;
}

.auth-field .input-wrapper input {
  padding-right: 44px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.auth-switch p {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-success {
  color: var(--accent);
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

/* ===== SIDEBAR USER ===== */
.sidebar-user {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== LP RESPONSIVE ===== */
@media (max-width: 1024px) {
  .lp-hero-title {
    font-size: 44px;
  }

  .lp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lp-nav-links {
    display: none;
  }

  .lp-btn-ghost {
    display: none;
  }

  .lp-hamburger {
    display: flex;
  }

  .lp-nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .lp-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
  }

  .lp-hero-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .lp-hero-subtitle {
    margin: 0 auto 24px;
  }

  .lp-hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .lp-hero-trust {
    justify-content: center;
  }

  .lp-features-grid {
    grid-template-columns: 1fr;
  }

  .lp-steps-row {
    flex-direction: column;
    align-items: center;
  }

  .lp-step-arrow {
    transform: rotate(90deg);
    font-size: 24px;
  }

  .lp-step-card {
    max-width: 100%;
  }

  .lp-section-header h2 {
    font-size: 30px;
  }

  .lp-pricing-card {
    padding: 32px 24px;
  }

  .lp-footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .auth-card {
    padding: 28px 20px;
  }
}

/* Hide modal preview styles if they aren't used elsewhere */
.preview-modal {
  display: none !important;
}

@media (max-width: 1024px) {
  .editor-workspace {
    flex-direction: column;
  }

  .editor-right {
    width: 100%;
    position: static;
    margin-top: 32px;
  }

  .live-preview-container {
    height: 700px;
  }
}