/* Novabk VPS Dashboard — Dark Gradient Theme */

:root {
  --bg: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.96);
  --surface: rgba(15, 23, 42, 0.94);
  --border: rgba(30, 64, 175, 0.6);
  --border-light: rgba(148, 163, 184, 0.35);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #22c55e;
  --accent-blue: #0ea5e9;
  --accent-dim: rgba(34, 197, 94, 0.14);
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, #0f172a 0, rgba(15, 23, 42, 0.4) 45%, transparent 70%),
    radial-gradient(circle at 90% 0%, #1d4ed8 0, rgba(15, 23, 42, 0.2) 40%, transparent 70%),
    radial-gradient(circle at 50% 100%, #020617 0, #000 55%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: #38bdf8; }
a:hover { color: #7dd3fc; }

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 6px;
  color: #a5f3fc;
}

/* ── Shell ──────────────────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 210px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

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

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #020617;
  border-radius: 10px;
  text-align: center;
  line-height: 36px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  margin-bottom: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.nav-item:hover { background: rgba(34, 197, 94, 0.08); color: var(--text); }
.nav-item.active { background: rgba(34, 197, 94, 0.15); color: #22c55e; }

.nav-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.nav-label { white-space: nowrap; }

.main-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar h1 { font-size: 18px; font-weight: 600; }
.topbar p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 12px;
  color: #22c55e;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

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

.content {
  padding: 24px;
  flex: 1;
  max-width: 1200px;
  width: 100%;
}

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: linear-gradient(145deg, var(--bg-elevated), var(--surface));
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.85);
  margin-bottom: 16px;
}

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

.card-header h2 { font-size: 15px; font-weight: 600; }

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.section-tag {
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  white-space: nowrap;
}

/* ── Stats ───────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), var(--bg-elevated));
}

.stat-value { font-size: 22px; font-weight: 700; margin: 4px 0; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-meta { font-size: 11px; color: #64748b; margin-top: 2px; }

/* ── DB Banner ───────────────────────────────────────────────────────── */
.db-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), var(--bg-elevated));
  margin-bottom: 16px;
}

.db-banner-empty {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), var(--bg-elevated));
}

.db-banner-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.db-banner-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.db-banner-stats strong { color: var(--text); }
.db-banner-actions { display: flex; gap: 8px; align-items: flex-start; }
.db-path { word-break: break-all; margin-top: 4px; }

/* ── Settings ────────────────────────────────────────────────────────── */
.settings-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.info-value { font-size: 20px; font-weight: 700; }

.db-path-inline {
  display: block;
  font-size: 11px;
  word-break: break-all;
  margin-top: 4px;
}

.settings-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.stack-status-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stack-stat {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-width: 0;
}

.stack-stat .info-value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.stack-status-fullrow {
  grid-column: 1 / -1;
}

.ext-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ext-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.ext-tag.baked {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.bake-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.bake-modal-backdrop.open { display: flex; }

.bake-modal {
  background: var(--card-bg, #111827);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 12px);
  padding: 20px 22px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.bake-modal h3 { margin: 0 0 8px; font-size: 16px; }

.bake-ext-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.bake-ext-option:last-child { border-bottom: none; }

.bake-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.checklist {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.checklist li { margin-bottom: 4px; }
.checklist strong { color: var(--text); }

/* ── Tables ──────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-top: 8px;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }

th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.2);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(34, 197, 94, 0.03); }

.domain-cell { font-weight: 600; color: #a5f3fc; }
.source-domains { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cookie-name { font-family: Consolas, monospace; font-size: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-warning,
.btn-build {
  border: none;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
  line-height: 1.4;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-build:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.btn-warning:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary,
.btn-build {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #020617;
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #020617;
}

.btn-git {
  background: linear-gradient(135deg, #f05133, #d03a1f);
  color: #fff;
}

.btn-sm { padding: 5px 12px; font-size: 12px; }

.btn-link {
  color: #22c55e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.btn-link:hover { text-decoration: underline; color: #4ade80; }

.btn-link-inline {
  background: none;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}

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

.quick-actions .btn-link {
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  background: rgba(15, 23, 42, 0.6);
  text-decoration: none;
}

.quick-actions .btn-link:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  text-decoration: none;
}

.action-row,
.actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

td.actions,
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 16px;
}

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

.form-field,
.form-grid > label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-field label,
.form-grid > label { font-size: 11px; color: var(--text-muted); }

.form-field input,
.form-field select,
.form-field textarea,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field select:focus,
.form-grid input:focus,
.form-grid select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.form-field input[readonly],
.form-grid input[readonly] {
  opacity: 0.75;
  cursor: default;
}

.form-field-wide { grid-column: 1 / -1; }

.form-grid .hint,
.form-field .hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 2px;
}

/* ── Build / Install ─────────────────────────────────────────────────── */
.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.build-box {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
}

.build-icon { font-size: 28px; margin-bottom: 8px; }
.build-box h3 { font-size: 15px; margin-bottom: 6px; }
.build-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }

.build-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.extension-build-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.extension-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.ext-table-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ext-list {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  min-height: 60px;
}

.ext-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

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

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.download-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #38bdf8;
}

.url-copy {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
  font-size: 12px;
  font-family: Consolas, monospace;
  margin: 8px 0;
}

.install-card { max-width: 640px; }
.install-lead { font-size: 14px; margin-bottom: 16px; }

.install-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #020617;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 12px;
}

.install-btn:hover { filter: brightness(1.1); color: #020617; }

.install-steps {
  margin: 12px 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 20px 0;
}

/* ── Import zone ─────────────────────────────────────────────────────── */
.import-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.import-zone:hover,
.import-zone.dragover {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.05);
}

.import-zone p { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }

/* ── Targets ─────────────────────────────────────────────────────────── */
.targets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.target-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.target-card.target-running {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.target-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.15);
}

.target-icon { font-size: 20px; }
.target-name { font-weight: 600; font-size: 14px; flex: 1; }
.target-status { font-size: 14px; }

.target-card-body {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.target-url {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
  word-break: break-all;
}

.target-info { font-size: 11px; }

.target-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px 14px;
}

.active-session {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: rgba(34, 197, 94, 0.05);
  margin-bottom: 8px;
  font-size: 13px;
}

.session-actions { display: flex; gap: 6px; margin-left: auto; }

.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.session-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.session-icon { font-size: 1.5rem; flex-shrink: 0; }
.session-info { flex: 1; min-width: 200px; }
.session-title { font-size: 14px; margin-bottom: 4px; }
.session-id { font-size: 11px; background: rgba(0, 0, 0, 0.35); padding: 2px 6px; border-radius: 4px; }
.session-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Modal ───────────────────────────────────────────────────────────── */
.modal[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(145deg, var(--bg-elevated), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal-wide { width: min(960px, 100%); }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-header h2 { font-size: 16px; }

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.modal-table-wrap { max-height: 50vh; overflow: auto; }

.toggle-values {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

/* ── Logs / JSON ─────────────────────────────────────────────────────── */
.deploy-log,
.cred-json,
.cookie-json {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
  line-height: 1.6;
  color: #cbd5e1;
}

.deploy-log { min-height: 150px; }

.cred-url { font-size: 13px; word-break: break-all; }

.flag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ── Status messages ─────────────────────────────────────────────────── */
.hint { font-size: 11px; color: #64748b; line-height: 1.5; }
.muted { color: var(--text-muted); font-size: 13px; }
.empty { font-size: 13px; color: var(--text-muted); padding: 20px 0; text-align: center; line-height: 1.6; }

.status {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 10px;
  display: inline-block;
}

.status.ok { color: #22c55e; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.25); }
.status.error { color: #ef4444; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); }

.status-area {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
  min-height: 20px;
}

.status-area.ok { color: #22c55e; border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.status-area.error { color: #ef4444; border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }

/* ── Creds ───────────────────────────────────────────────────────────── */
.cred-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.cred-card .cred-domain { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cred-card .cred-type { font-size: 11px; color: var(--text-muted); }
.cred-card .cred-fields { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── Sync log ──────────────────────────────────────────────────────────── */
.sync-log {
  font-size: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  gap: 12px;
  align-items: center;
}

.sync-log .time { color: var(--text-muted); font-family: monospace; font-size: 11px; width: 70px; flex-shrink: 0; }
.sync-log .action { color: #22c55e; font-weight: 500; width: 90px; flex-shrink: 0; }
.sync-log .detail { flex: 1; color: var(--text-muted); }

/* ── Version cards ───────────────────────────────────────────────────── */
.version-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 10px;
}

.version-card h3 { font-size: 14px; margin-bottom: 4px; }
.version-card .ready-tag { color: #22c55e; font-weight: 600; }
.version-card .not-ready-tag { color: #f59e0b; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 12px;
    gap: 2px;
  }
  .sidebar-nav { flex-direction: row; }
  .brand-mark { display: none; }
  .nav-item { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
  .nav-label { display: none; }
  .content { padding: 16px; }
  .card { padding: 18px 16px; }
  .targets-grid { grid-template-columns: 1fr; }
  .settings-info-grid { grid-template-columns: 1fr 1fr; }
}
