/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-4);
  border-radius: 999px; /* more Linear-like */
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  box-shadow: none;
  cursor: pointer;
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}

.btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(148,163,184,0.26);
}

.btn:active { transform: translateY(0px); }

.btn-primary {
  background: var(--accent-600);
  border-color: rgba(59,130,246,0.35);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-700);
  border-color: rgba(59,130,246,0.45);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148,163,184,0.22);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(148,163,184,0.30);
}

/* Optional lift ONLY where you want it (marketing) */
.btn-lift:hover { transform: translateY(-1px); }
.btn-lift:active { transform: translateY(0px); }

/* ---------- Form controls ---------- */
.input, .select, .textarea {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  padding: 10px 12px;
  font-size: var(--text-md);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
  outline: none;
}

.label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-bottom: var(--space-2);
}

/* ---------- Top bar / navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid rgba(148,163,184,0.16);
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.brand-name {
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-tagline {
  color: rgba(148,163,184,0.85);
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-link {
  color: rgba(203, 213, 225, 0.88);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(148,163,184,0.16);
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent-500);
  background: rgba(59,130,246,0.10);
  border-color: rgba(59,130,246,0.18);
}

/* ---------- Pills (status/badges) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.03);
  color: rgba(203,213,225,0.9);
}

.pill-success { border-color: rgba(22, 163, 74, 0.35); }
.pill-warning { border-color: rgba(217, 119, 6, 0.35); }
.pill-danger  { border-color: rgba(220, 38, 38, 0.35); }

/* ---------- Cards (generic containers, not tiles) ---------- */
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: var(--r-lg);
}

.card-hd {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(148,163,184,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.card-bd { padding: var(--space-6); }

/* ---------- Table (if you need it) ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r-lg);
}

.table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.table th, .table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148,163,184,0.14);
  font-size: var(--text-sm);
  text-align: left;
  vertical-align: middle;
}

.table th {
  background: rgba(255,255,255,0.03);
  color: rgba(203,213,225,0.9);
  font-weight: 650;
}

.table tr:last-child td { border-bottom: 0; }

.table tr:hover td {
  background: rgba(59,130,246,0.05); /* subtle, still one accent */
}
