/* Paywall banner */
.paywall-banner {
  background: rgba(251, 191, 36, 0.08);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}
.paywall-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.paywall-icon { font-size: 20px; }
.paywall-text {
  flex: 1;
  font-size: 14px;
  color: var(--fg-muted);
}
.paywall-text strong { color: var(--fg); }

/* dashboard.css — Echo monitoring dashboard styles */

/* NAV already styled in theme.css */

.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.dash-title {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--fg);
  margin-bottom: 6px;
}
.dash-sub { color: var(--fg-muted); font-size: 15px; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-accent {
  background: var(--accent);
  color: #0d0f1a;
}
.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn-icon {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.btn-icon:hover { color: var(--fg); background: var(--border); }

/* Run Status */
.run-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--fg-muted);
}
.run-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.run-status--completed .run-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.run-status--running .run-dot { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: pulse 1s infinite; }
.run-status--failed .run-dot { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.run-status--skipped .run-dot { background: var(--fg-muted); }

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

/* Grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Panels */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.panel-head h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}
.panel-meta { font-size: 12px; color: var(--fg-muted); }

/* Add form */
.add-form {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.add-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--fg);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
}
.add-form input:focus { outline: none; border-color: var(--accent); }
.form-actions { display: flex; gap: 8px; }
.hidden { display: none !important; }

/* Sites list */
.sites-list { display: flex; flex-direction: column; gap: 10px; }
.site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.site-name { font-size: 14px; font-weight: 600; color: var(--fg); }
.site-url { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }

/* Changes list */
.changes-list { display: flex; flex-direction: column; gap: 14px; }
.change-row { display: flex; align-items: flex-start; gap: 12px; }
.change-icon { font-size: 18px; margin-top: 2px; }
.change-icon--green { }
.change-icon--amber { }
.change-site { font-size: 13px; font-weight: 600; color: var(--fg); }
.change-summary { font-size: 13px; color: var(--fg-muted); margin-top: 2px; }
.change-time { font-size: 11px; color: var(--fg-muted); opacity: 0.6; margin-top: 4px; }

.empty-state { padding: 32px 16px; text-align: center; color: var(--fg-muted); font-size: 14px; }

/* Run result */
.run-result {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
}
.run-result--ok { background: var(--accent-dim-green); border: 1px solid var(--green); color: var(--green); }
.run-result--err { background: rgba(239,68,68,0.1); border: 1px solid #ef4444; color: #ef4444; }

/* Responsive */
@media (max-width: 768px) {
  .dashboard { padding: 24px 24px 60px; }
  .dash-grid { grid-template-columns: 1fr; }
}

/* Onboarding Wizard */
.wizard {
  padding: 8px 4px;
}
.wizard-header {
  text-align: center;
  margin-bottom: 28px;
}
.wizard-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 6px;
}
.wizard-sub {
  font-size: 13px;
  color: var(--fg-muted);
}

/* Step indicators */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.step-indicator.active {
  background: var(--accent);
  color: #0d0f1a;
}
.step-indicator.done {
  background: var(--green);
  color: #fff;
}
.step-line {
  width: 48px;
  height: 1px;
  background: var(--border);
}

/* Wizard steps */
.wizard-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.step-hint {
  font-weight: 400;
  color: var(--fg-muted);
  font-size: 12px;
}
.step-hint-below {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: -6px;
}

/* Inputs in wizard */
.wizard input[type="text"],
.wizard input[type="url"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--fg);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  box-sizing: border-box;
}
.wizard input:focus { outline: none; border-color: var(--accent); }

/* URL fields */
#urlFields { display: flex; flex-direction: column; gap: 10px; }

/* Wizard nav */
.wizard-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.wizard-nav .btn-ghost { color: var(--fg-muted); }

/* Loading state */
.wizard-loading {
  text-align: center;
  padding: 24px 0;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wizard-loading p { font-size: 15px; font-weight: 500; color: var(--fg); margin-bottom: 4px; }
.loading-sub { font-size: 12px; color: var(--fg-muted); }

/* Success state */
.wizard-success {
  text-align: center;
  padding: 16px 0;
}
.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
}
.wizard-success h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 6px;
}
.wizard-success p { font-size: 14px; color: var(--fg-muted); margin-bottom: 18px; }

/* Error state */
.wizard-error {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: 8px;
  font-size: 13px;
  color: #ef4444;
  text-align: center;
}