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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
}

.dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.dash-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #1a1a2e;
  margin-bottom: 24px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-sub {
  color: #666;
  font-size: 14px;
}

.card {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: #f59e0b;
}

.card p {
  color: #888;
  font-size: 14px;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: #0d0d1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: 'SF Mono', monospace;
}

.form-input:focus {
  outline: none;
  border-color: #f59e0b;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #f59e0b;
}

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

.data-table th {
  text-align: left;
  padding: 10px 12px;
  color: #888;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2a2a4a;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1a1a2e;
  color: #ccc;
}

.data-table tr:hover td {
  background: rgba(245, 158, 11, 0.05);
}

.status-succeeded { color: #22c55e; }
.status-failed { color: #ef4444; }
.status-pending { color: #f59e0b; }

.code-block {
  background: #0d0d1a;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  padding: 16px;
  font-family: 'SF Mono', monospace;
  font-size: 12px;
  color: #22c55e;
  overflow-x: auto;
  white-space: pre;
}

.hidden { display: none; }

.dash-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dash-role {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: linear-gradient(135deg,#f59e0b,#ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.btn-ghost { background: #2a2a4a; color: #ccc; border: none; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px; }
.btn-ghost:hover { background: #35355a; }

.dash-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-tab {
  padding: 10px 16px; border: 1px solid #2a2a4a; background: #0d0d1a; color: #aaa;
  border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.dash-tab.active { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; border-color: transparent; }
.panel-title { font-size: 22px; margin-bottom: 18px; color: #fff; }
.dash-panel { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hint { font-size: 12px; color: #888; }
.kv { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1a1a2e; flex-wrap: wrap; }
.kv-k { width: 180px; color: #888; font-size: 13px; }
.kv-v { color: #fff; font-size: 14px; font-weight: 600; word-break: break-all; }
.mono { font-family: 'SF Mono', monospace; font-size: 12px; }

.faq { list-style: none; }
.faq li { padding: 10px 0; border-bottom: 1px solid #1a1a2e; color: #ccc; font-size: 14px; }
.faq li strong { color: #f59e0b; }

/* ---- Vibecode integration ---- */
.card-note { color: #999; font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.vibe-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.vibe-tab {
  padding: 9px 16px; border: 1px solid #2a2a4a; background: #0d0d1a; color: #aaa;
  border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.vibe-tab.active { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; border-color: transparent; }
.vibe-content { margin-bottom: 8px; }
.vibe-label {
  display: block; font-size: 12px; font-weight: 600; color: #aaa;
  text-transform: uppercase; letter-spacing: .5px; margin: 14px 0 6px;
}
.copy-row { display: flex; gap: 8px; }
.copy-row .inp { flex: 1; }
.inp {
  width: 100%; padding: 10px 12px; background: #0d0d1a; border: 1px solid #333;
  border-radius: 8px; color: #fff; font-size: 13px;
}
.inp.mono { font-family: 'SF Mono', monospace; font-size: 12px; }
.inp:focus { outline: none; border-color: #f59e0b; }
.btn-sm { padding: 8px 14px; font-size: 12px; background: #2a2a4a; color: #ccc; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn-sm:hover { background: #35355a; }
.vibe-content .code-block { margin-bottom: 8px; }
.vibe-content .code-block + .btn-sm { margin-bottom: 12px; }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 20px; }
}
