@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Electric Blue & Neon Modern SaaS Palette */
  --primary: #2563eb;            /* Vivid Electric Blue */
  --primary-hover: #1d4ed8;      /* Deep Royal Blue */
  --primary-light: #eff6ff;      /* Soft Ice Blue */
  --primary-border: #bfdbfe;     /* Light Blue Border */
  --primary-glow: rgba(37, 99, 235, 0.18);

  --neon-cyan: #06b6d4;          /* Neon Cyan Accent */
  --neon-pink: #ec4899;          /* Neon Pink Accent */
  --neon-green: #10b981;         /* Electric Emerald */
  --neon-purple: #8b5cf6;        /* Vivid Purple */
  --neon-amber: #f59e0b;         /* Amber Accent */

  --bg-body: #f8fafc;            /* Clean light cool gray */
  --bg-card: #ffffff;            /* Pure White */
  --bg-sidebar: #ffffff;
  --bg-topbar: rgba(255, 255, 255, 0.95);

  --border: #e2e8f0;             /* Subtle gray border */
  --border-light: #f1f5f9;
  --border-hover: #cbd5e1;

  --text-main: #0f172a;          /* Rich Dark Slate */
  --text-muted: #64748b;          /* Slate 500 */
  --text-subtle: #94a3b8;        /* Slate 400 */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 25px -4px rgba(37, 99, 235, 0.1);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.08);

  --sidebar-w: 240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-body);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

/* ------------------------------------------------------------- */
/* Brand & Layout Shell                                          */
/* ------------------------------------------------------------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-body);
}

.app-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
  }
}

/* Sidebar Links */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.sidebar-link:hover {
  background-color: var(--bg-body);
  color: var(--text-main);
}

.sidebar-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
  font-weight: 700;
}

.sidebar-link.active i {
  color: var(--primary);
}

/* App Topbar */
.app-topbar {
  background: var(--bg-topbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}

/* ------------------------------------------------------------- */
/* UI Components & Cards                                         */
/* ------------------------------------------------------------- */
.clean-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.clean-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.clean-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 0.85rem;
  transition: all 0.2s ease;
  outline: none;
}

.clean-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.clean-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 0.85rem;
  transition: all 0.2s ease;
  outline: none;
  resize: vertical;
}

.clean-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Primary Electric Blue Buttons */
.btn-primary-blue {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-blue:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  filter: brightness(1.05);
}

.btn-primary-blue:active {
  transform: translateY(0);
}

/* Secondary & Outline Buttons */
.btn-outline-custom {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-custom:hover {
  border-color: var(--primary-border);
  background: var(--primary-light);
  color: var(--primary);
}

.btn-danger-custom {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-danger-custom:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Badges & Pills */
.badge-blue {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-cyan {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #0891b2;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-purple {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Metric Boxes */
.metric-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.metric-box:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.metric-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ------------------------------------------------------------- */
/* Flow Connectors & Rule Cards                                  */
/* ------------------------------------------------------------- */
.rule-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.rule-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  max-width: 260px;
  min-width: 180px;
}

.flow-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  shrink: 0;
}

.flow-arrow {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

/* iOS Style Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* ------------------------------------------------------------- */
/* Quick Action Cards & Checklist                                */
/* ------------------------------------------------------------- */
.quick-action-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.checklist-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

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

.checklist-card.completed {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* ------------------------------------------------------------- */
/* Pricing Cards & Switchers                                     */
/* ------------------------------------------------------------- */
.pricing-pill-btn {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-pill-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.15);
}

/* ------------------------------------------------------------- */
/* Clean Toast & Modals                                          */
/* ------------------------------------------------------------- */
.clean-toast {
  padding: 12px 18px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Watermark Checkerboard */
.preview-checkerboard {
  background-color: #f1f5f9;
  background-image: 
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.watermark-overlay-handle {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(37, 99, 235, 0.9);
  color: white;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: grab;
  user-select: none;
  z-index: 20;
}

/* Rule Filter Pills */
.rule-filter-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #f1f5f9;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rule-filter-pill:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.rule-filter-pill.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* Hero Interactive Mock Card */
.hero-mock-window {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.hero-mock-sidebar {
  width: 140px;
  background: #f8fafc;
  border-right: 1px solid #f1f5f9;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-mock-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.hero-mock-sidebar-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}

