/* ============================================================
   MONK FLOW — Global Styles
   Color System: Black + Green (#00FF88 / #10B981)
   ============================================================ */

:root {
  /* Greens */
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-300: #6ee7b7;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.15);
  --accent-glow-strong: rgba(0, 255, 136, 0.3);

  /* Blacks & Grays */
  --black: #000000;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #161616;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-elevated: #252525;
  --border: #2a2a2a;
  --border-light: #333333;
  --border-accent: rgba(0, 255, 136, 0.2);

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666666;
  --text-accent: #00ff88;

  /* Status */
  --success: #00ff88;
  --warning: #fbbf24;
  --error: #ef4444;
  --info: #3b82f6;

  /* Spacing */
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--green-300); }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

::placeholder { color: var(--text-tertiary); }

.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ============================================================
   LAYOUT
   ============================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

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

.main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo .logo-icon-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px var(--accent-glow);
}

.sidebar-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sidebar-logo .logo-text span {
  color: var(--accent);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-tertiary);
  padding: 16px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.sidebar-user:hover { background: var(--bg-tertiary); }

.sidebar-user .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--black);
}

.sidebar-user .user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user .user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .user-plan {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.topbar-title {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}

.topbar-search {
  position: relative;
  width: 320px;
}

.topbar-search input {
  padding: 8px 14px 8px 36px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 13px;
}

.topbar-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
}

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

.topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.topbar-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.topbar-btn .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--green-300);
  box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 12px;
}
.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
}

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

.card-glow:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.stat-card .stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card .stat-icon.green {
  background: var(--accent-glow);
  color: var(--accent);
}
.stat-card .stat-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}
.stat-card .stat-icon.yellow {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}
.stat-card .stat-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card .stat-change {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: var(--bg-card); }

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-status.active {
  background: rgba(0, 255, 136, 0.1);
  color: var(--success);
}
.badge-status.paused {
  background: rgba(251, 191, 36, 0.1);
  color: var(--warning);
}
.badge-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}
.badge-status.draft {
  background: rgba(160, 160, 160, 0.1);
  color: var(--text-secondary);
}

.badge-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================================
   CHARTS (CSS-based)
   ============================================================ */
.chart-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding-top: 20px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), var(--green-600));
  border-radius: 4px 4px 0 0;
  min-width: 20px;
  position: relative;
  transition: all var(--transition-base);
  opacity: 0.7;
}

.chart-bar:hover {
  opacity: 1;
  box-shadow: 0 0 15px var(--accent-glow);
}

.chart-bar .bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.chart-bar .bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.chart-bar:hover .bar-value { opacity: 1; }

/* Mini sparkline */
.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
}

.sparkline-bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.sparkline-bar:last-child { opacity: 1; }

/* Donut chart */
.donut-chart {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-chart .donut-center {
  position: absolute;
  width: 70px;
  height: 70px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.donut-center .donut-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.donut-center .donut-label {
  font-size: 10px;
  color: var(--text-tertiary);
}

/* ============================================================
   WORKFLOW NODES
   ============================================================ */
.workflow-canvas {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

.workflow-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 200px;
  position: absolute;
  cursor: grab;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.workflow-node:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.workflow-node.trigger {
  border-color: var(--accent);
  border-width: 2px;
}

.node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

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

.node-icon.green { background: var(--accent-glow); color: var(--accent); }
.node-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.node-icon.purple { background: rgba(147, 51, 234, 0.15); color: #a855f7; }
.node-icon.orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }

.node-title {
  font-size: 13px;
  font-weight: 600;
}

.node-desc {
  font-size: 11px;
  color: var(--text-tertiary);
}

.node-connector {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-card);
  position: absolute;
}

.node-connector.out {
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
}

.node-connector.in {
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
}

/* Connection lines */
.connection-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left center;
}

/* ============================================================
   FORMS & TOGGLES
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle.active { background: var(--accent); }

.toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-fast);
}

.toggle.active::after {
  transform: translateX(20px);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row > * { flex: 1; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: toastIn 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--info); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-msg {
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================
   AUTH SCREENS
   ============================================================ */
.auth-screen {
  min-height: 100vh;
  display: flex;
  background: var(--bg-primary);
}

.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-right {
  flex: 1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-left: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.auth-right::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow-strong), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.auth-form-wrapper {
  max-width: 400px;
  width: 100%;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.auth-logo .logo-icon-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px var(--accent-glow);
}

.auth-logo .logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.auth-logo .logo-text span { color: var(--accent); }

.auth-heading {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-subheading {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-social-btns {
  display: flex;
  gap: 12px;
}

.auth-social-btn {
  flex: 1;
  padding: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

.auth-footer {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.auth-hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-hero-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.auth-hero-content p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.7;
}

.auth-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-feature .feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ============================================================
   PAGE SPECIFIC
   ============================================================ */

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--accent-glow);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-header .page-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.page-actions {
  display: flex;
  gap: 10px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

/* Integration cards */
.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.integration-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.integration-card .int-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.integration-card .int-name {
  font-size: 15px;
  font-weight: 700;
}

.integration-card .int-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.integration-card .int-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Agent card */
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
}

.agent-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.agent-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.agent-role {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.agent-stats {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.agent-stat-item {
  text-align: center;
}

.agent-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.agent-stat-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* Settings sections */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.settings-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child { border-bottom: none; }

.settings-row .setting-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.settings-row .setting-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Billing */
.plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-base);
}

.plan-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  position: relative;
}

.plan-card.recommended::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.plan-features {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.plan-feature .check {
  color: var(--accent);
  font-size: 14px;
}

/* Activity feed */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 13px;
  margin-bottom: 2px;
}

.activity-time {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Usage meter */
.usage-meter {
  margin-bottom: 16px;
}

.usage-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.usage-label { color: var(--text-secondary); }
.usage-value { font-weight: 600; }

.usage-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green-400));
  border-radius: 3px;
  transition: width var(--transition-slow);
}

.usage-fill.warning { background: linear-gradient(90deg, var(--warning), #f59e0b); }
.usage-fill.danger { background: linear-gradient(90deg, var(--error), #dc2626); }

/* Logs page */
.log-entry {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}

.log-time { color: var(--text-tertiary); white-space: nowrap; }
.log-level { font-weight: 600; width: 50px; }
.log-level.info { color: var(--info); }
.log-level.warn { color: var(--warning); }
.log-level.error { color: var(--error); }
.log-level.debug { color: var(--text-tertiary); }
.log-msg { color: var(--text-secondary); }

/* ============================================================
   DASHBOARD HERO
   ============================================================ */
.dashboard-hero {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  margin-bottom: 28px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow-strong), transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.text-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Service Quick Cards (Dashboard) */
.service-quick-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.service-quick-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.service-quick-icon {
  color: var(--accent);
  margin-bottom: 12px;
}

.service-quick-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-quick-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* AI Approach Items (Dashboard) */
.ai-approach-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.ai-approach-item:last-child {
  border-bottom: none;
}

.ai-approach-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-approach-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.ai-approach-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.ai-banner {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 255, 136, 0.02));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.ai-banner-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ai-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-banner-content h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--accent);
}

.ai-banner-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--accent-glow);
  border-radius: 12px;
}

.service-card-name {
  font-size: 16px;
  font-weight: 700;
}

.service-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.service-feature .check {
  color: var(--accent);
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 48px 20px;
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow-strong), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* ============================================================
   SCHEDULE PAGE
   ============================================================ */
.schedule-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.calendar-day {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calendar-day:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.calendar-day.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 15px var(--accent-glow);
}

.calendar-day-name {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.calendar-day-num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.calendar-day.selected .calendar-day-num {
  color: var(--accent);
}

.calendar-day-month {
  font-size: 10px;
  color: var(--text-tertiary);
}

.schedule-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-slot {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.time-slot:hover:not(.unavailable) {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.time-slot.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.time-slot.unavailable {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ============================================================
   TESTIMONIALS PAGE
   ============================================================ */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

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

.testimonial-result {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.result-badge svg {
  width: 14px;
  height: 14px;
}

.result-project {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
}

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

/* ============================================================
   LANDING PAGE
   ============================================================ */
#landing-container {
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav-logo .logo-icon-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.landing-nav-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.landing-nav-logo .logo-text span {
  color: var(--accent);
}

.landing-nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.landing-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

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

.landing-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Hero */
.landing-hero {
  position: relative;
  padding: 140px 32px 80px;
  text-align: center;
  overflow: hidden;
}

.landing-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.landing-hero-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.landing-hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.landing-stat {
  text-align: center;
}

.landing-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}

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

/* Sections */
.landing-section {
  padding: 80px 32px;
}

.landing-section-alt {
  background: var(--bg-secondary);
}

.landing-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Landing Services */
.landing-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.landing-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
}

.landing-service-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-3px);
}

.landing-service-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.landing-service-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.landing-service-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.landing-ai-banner {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 255, 136, 0.02));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.landing-ai-banner h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.landing-ai-banner p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Landing Testimonials */
.landing-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Landing Process */
.landing-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.landing-process-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-base);
}

.landing-process-step:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.process-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.landing-process-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.landing-process-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Landing CTA */
.landing-cta {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.landing-cta::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow-strong), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.landing-cta h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.landing-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.landing-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Landing Footer */
.landing-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 32px 32px;
}

.landing-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.landing-footer-inner > * + * {
  margin-top: 32px;
}

.landing-footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 300px;
}

.landing-footer-links {
  display: flex;
  gap: 80px;
}

.landing-footer-links h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.landing-footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

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

.landing-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ============================================================
   SIDEBAR LOGOUT BUTTON
   ============================================================ */
.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* ============================================================
   NOTIFICATIONS PANEL
   ============================================================ */
.notifications-panel {
  position: absolute;
  top: 48px;
  right: 0;
  width: 400px;
  max-height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 200;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.notification-header-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-count {
  background: var(--accent);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.notification-list {
  max-height: 420px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
}

.notification-item:hover {
  background: var(--bg-tertiary);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  border-left: 3px solid var(--accent);
  background: rgba(0, 255, 136, 0.03);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.workflow { background: var(--accent-glow); color: var(--accent); }
.notification-icon.agent { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.notification-icon.system { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.notification-icon.integration { background: rgba(147, 51, 234, 0.15); color: #a855f7; }
.notification-icon.team { background: rgba(0, 255, 136, 0.15); color: var(--accent); }

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.notification-message {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-time {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.notification-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ============================================================
   SEARCH DROPDOWN
   ============================================================ */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
  animation: slideDown 0.15s ease;
}

.search-group-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-tertiary);
  padding: 12px 16px 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover,
.search-result-item.selected {
  background: var(--bg-tertiary);
}

.search-result-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-result-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}

.search-result-type {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================================
   HELP CENTER
   ============================================================ */
.getting-started-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.getting-started-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.help-topic-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.help-topic-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.help-topic-icon {
  color: var(--accent);
  margin-bottom: 12px;
}

.help-topic-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.help-topic-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  transition: transform var(--transition-base);
  color: var(--text-tertiary);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 0 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   WORKFLOW EDITOR
   ============================================================ */
.workflow-editor-container {
  display: flex;
  height: calc(100vh - var(--topbar-height));
  margin: -32px;
  overflow: hidden;
}

.editor-sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.editor-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.editor-sidebar-search {
  padding: 12px 12px 0;
}

.editor-palette {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 12px;
}

.palette-category {
  margin-bottom: 4px;
}

.palette-category-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-tertiary);
  padding: 12px 8px 6px;
}

.editor-palette-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.editor-palette-item:hover {
  background: var(--bg-tertiary);
}

.palette-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.palette-item-icon.green { background: var(--accent-glow); color: var(--accent); }
.palette-item-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.palette-item-icon.purple { background: rgba(147, 51, 234, 0.15); color: #a855f7; }
.palette-item-icon.yellow { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.palette-item-icon.orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }

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

.palette-item-desc {
  font-size: 11px;
  color: var(--text-tertiary);
}

.editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-toolbar {
  height: 48px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.editor-toolbar-left,
.editor-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

.editor-name-input {
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  width: 220px;
}

.editor-name-input:focus {
  border-color: var(--border-light);
  background: var(--bg-tertiary);
}

.editor-zoom-label {
  font-size: 12px;
  color: var(--text-tertiary);
  min-width: 36px;
  text-align: center;
}

.editor-canvas {
  flex: 1;
  position: relative;
  overflow: auto;
  background: var(--bg-tertiary);
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

#editor-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

#editor-nodes .workflow-node {
  z-index: 2;
  user-select: none;
}

#editor-nodes .workflow-node.selected {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow-strong);
}

#editor-nodes .node-connector {
  cursor: crosshair;
  z-index: 3;
  transition: background var(--transition-fast);
}

#editor-nodes .node-connector:hover {
  background: var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .auth-right { display: none; }
  .landing-services-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-process-grid { grid-template-columns: repeat(2, 1fr); }
  .getting-started-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--transition-base); z-index: 50; }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .main-content { padding: 20px; }
  .mobile-menu-btn { display: flex !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-search { display: none; }
  .hero-title, .landing-hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { white-space: normal; }
  .dashboard-hero { padding: 28px 20px; }
  .schedule-calendar { grid-template-columns: repeat(3, 1fr); }
  .schedule-times { grid-template-columns: repeat(2, 1fr); }
  .ai-banner-content { flex-direction: column; }
  .landing-nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-secondary); padding: 16px 32px; border-bottom: 1px solid var(--border); }
  .landing-nav-links.open { display: flex; }
  .landing-nav-actions { display: none; flex-direction: column; position: absolute; top: 200px; left: 0; right: 0; background: var(--bg-secondary); padding: 16px 32px; border-bottom: 1px solid var(--border); }
  .landing-nav-actions.open { display: flex; }
  .landing-menu-btn { display: flex; }
  .landing-services-grid, .landing-testimonials-grid, .landing-process-grid { grid-template-columns: 1fr; }
  .landing-hero-stats { flex-wrap: wrap; gap: 24px; }
  .landing-hero { padding: 120px 20px 60px; }
  .landing-cta-actions { flex-direction: column; width: 100%; }
  .landing-cta-actions .btn { white-space: normal; }
  .landing-footer-links { flex-direction: column; gap: 32px; }
  .notifications-panel { width: 320px; right: -60px; }
  .editor-sidebar { display: none; }
  .getting-started-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .landing-hero-title { font-size: 24px; }
}

/* ============================================================
   SCHEDULING MODAL
   ============================================================ */
.scheduling-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.scheduling-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheduling-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  transition: all 0.2s;
}

.scheduling-step-dot.active {
  background: var(--accent);
  color: var(--black);
}

.scheduling-step-dot.completed {
  background: var(--accent);
  color: var(--black);
}

.scheduling-step-line {
  width: 40px;
  height: 2px;
  background: var(--border-light);
  transition: background 0.2s;
}

.scheduling-step-line.active {
  background: var(--accent);
}

/* Calendar Grid */
.calendar-container {
  margin-bottom: 16px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-header h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.calendar-nav-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.calendar-nav-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  padding: 4px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.calendar-day.today {
  border-color: var(--accent);
  color: var(--accent);
}

.calendar-day.selected {
  background: var(--accent) !important;
  color: var(--black) !important;
  font-weight: 700;
  border-color: var(--accent);
}

.calendar-day.disabled {
  color: var(--text-tertiary);
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-day.empty {
  cursor: default;
}

/* Time Slot Grid */
.time-slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.time-slot {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
}

.time-slot:hover {
  border-color: var(--accent);
  background: rgba(0, 204, 106, 0.08);
}

.time-slot.selected {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
  font-weight: 600;
}

.no-slots-message {
  text-align: center;
  padding: 32px;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Booking confirmation */
.booking-confirmation {
  text-align: center;
  padding: 24px 0;
}

.booking-confirmation .check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 204, 106, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.booking-confirmation .check-circle svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.booking-details {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
}

.booking-details p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.booking-details strong {
  color: var(--text-primary);
}

/* ============================================================
   LOADING SKELETONS
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

.skeleton-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.short {
  width: 40%;
}

.skeleton-line.medium {
  width: 65%;
}

.skeleton-line.tall {
  height: 24px;
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-bar {
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ============================================================
   NODE CONFIG PANEL
   ============================================================ */
.node-config-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-light);
  z-index: 20;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 20px;
}

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

.node-config-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.node-config-panel .panel-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.node-config-panel .config-field {
  margin-bottom: 16px;
}

.node-config-panel .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;
}

.node-config-panel .config-field input,
.node-config-panel .config-field textarea,
.node-config-panel .config-field select {
  width: 100%;
  font-size: 13px;
}

.node-config-panel .config-field textarea {
  min-height: 80px;
  resize: vertical;
}

/* ============================================================
   EXECUTION STATUS BAR
   ============================================================ */
.execution-status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 15;
  font-size: 13px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.execution-status-bar .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.execution-status-bar .status-indicator.running {
  background: var(--info);
}

.execution-status-bar .status-indicator.completed {
  background: var(--accent);
  animation: none;
}

.execution-status-bar .status-indicator.failed {
  background: var(--error);
  animation: none;
}

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

.execution-status-bar .status-text {
  flex: 1;
  color: var(--text-secondary);
}

.execution-status-bar .status-text strong {
  color: var(--text-primary);
}

/* Workflow node execution states */
.workflow-node.node-completed {
  box-shadow: 0 0 0 2px var(--accent), 0 4px 12px rgba(0, 204, 106, 0.2);
}

.workflow-node.node-failed {
  box-shadow: 0 0 0 2px var(--error), 0 4px 12px rgba(239, 68, 68, 0.2);
}

.workflow-node.node-running {
  box-shadow: 0 0 0 2px var(--info), 0 4px 12px rgba(59, 130, 246, 0.2);
  animation: pulse 1.5s infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Node Config Panel */
#node-config-panel input,
#node-config-panel select,
#node-config-panel textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
}
#node-config-panel input:focus,
#node-config-panel select:focus,
#node-config-panel textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ============================================================
   SCHEDULING MODAL RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .calendar-days {
    gap: 2px;
  }

  .calendar-day {
    font-size: 12px;
  }

  .time-slot-grid {
    gap: 6px;
  }

  .time-slot {
    padding: 6px 12px;
    font-size: 12px;
  }

  .scheduling-step-line {
    width: 24px;
  }
}

/* Stonk Bot Dashboard */
.stonk-pnl-bar {
  flex: 1;
  min-width: 4px;
  border-radius: 2px 2px 0 0;
  transition: opacity 0.15s;
  cursor: pointer;
}
.stonk-pnl-bar:hover {
  opacity: 0.75;
}
