/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.brand-name span { color: var(--cyan); }
.brand-kicker {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.1;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
  background: var(--bg-deep);
}
.nav-link--ghost {
  border: 1px solid var(--border);
  background: var(--bg-card);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.card + .card { margin-top: 1.25rem; }
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
}
.card-title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 4px 16px rgba(29,111,164,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(29,111,164,0.55); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-bright); }
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}
.btn-outline:hover { background: var(--cyan-dim); }
.btn-success {
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(5,150,105,0.3);
}
.btn-success:hover { background: rgba(5,150,105,0.08); }
.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(220,38,38,0.3);
}
.btn-danger:hover { background: rgba(220,38,38,0.08); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-pending  { background: rgba(217,119,6,0.1); color: var(--amber); border: 1px solid rgba(217,119,6,0.3); }
.badge-approved { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan-glow); }
.badge-active   { background: rgba(5,150,105,0.1); color: var(--green); border: 1px solid rgba(5,150,105,0.3); }
.badge-error    { background: rgba(220,38,38,0.1); color: var(--red); border: 1px solid rgba(220,38,38,0.3); }

.alert {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: 1.25rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.5;
}
.alert.show { display: flex; }
.alert-ok { background: rgba(5,150,105,0.07); border: 1px solid rgba(5,150,105,0.3); color: var(--green); }
.alert-err { background: rgba(220,38,38,0.07); border: 1px solid rgba(220,38,38,0.3); color: var(--red); }
.alert-info { background: var(--cyan-dim); border: 1px solid var(--cyan-glow); color: var(--cyan); }

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  max-width: 360px;
  pointer-events: none;
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.25s;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }

.spinner {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 2px solid rgba(2,132,199,0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 10px; }

.language-switch {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
