.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.button.secondary.dark {
  color: var(--text);
  border-color: var(--border);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 700;
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  outline: none;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-stack {
  display: grid;
  gap: 16px;
}

.inline-error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.92rem;
}

.stat-card {
  display: grid;
  gap: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.nav-card {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  background: #0f172a;
  color: #ffffff;
}

.brand {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav-links,
.nav-footer {
  display: grid;
  gap: 10px;
}

.nav-links {
  margin-bottom: 32px;
}

.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #cbd5e1;
  font-weight: 700;
}

.nav-link.active,
.nav-link:hover {
  color: #ffffff;
  background: rgba(79, 70, 229, 0.25);
  text-decoration: none;
}

.card-item,
.empty-state {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.card-item strong {
  display: block;
  margin-bottom: 4px;
}

.card-item small,
.empty-state {
  color: var(--text-muted);
}

.plan-card {
  display: grid;
  gap: 16px;
}

.plan-card .price {
  font-size: 1.6rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.badge.warning {
  background: rgba(217, 119, 6, 0.12);
  color: var(--warning);
}

.text-link {
  font-weight: 700;
}

.toast-root {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  display: grid;
  gap: 12px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

.toast.info {
  background: var(--bg);
}

.loading-text::after {
  content: "...";
}

@media (max-width: 960px) {
  .nav-card {
    position: static;
    height: auto;
  }
}
