.auth-body {
  background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
}

.auth-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
}

.admin-tab.is-active {
  color: #4338ca;
  border-color: #4338ca;
}

.stat-tile {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 1rem;
}

.stat-tile .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #312e81;
}

.stat-tile .label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.tenant-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tenant-card:hover {
  border-color: #818cf8;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
}

.module-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.module-card:not(.is-soon):hover {
  border-color: #c4b5fd;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.1);
  transform: translateY(-1px);
}

.module-card.is-soon {
  opacity: 0.6;
}

/* Dashboard shell (sidebar + top bar layout) */

body.dash-body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
}

.dash-sidebar {
  transition: transform 0.2s ease;
}

.dash-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(15, 23, 42, 0.35);
}

.dash-nav-label {
  padding: 0 0.75rem;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-align: left;
}

.dash-nav-link i {
  width: 1.1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.dash-nav-link:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.dash-nav-link:hover i {
  color: #6d28d9;
}

.dash-nav-link.is-active {
  background: #f5f3ff;
  color: #6d28d9;
}

.dash-nav-link.is-active i {
  color: #7c3aed;
}

.dash-nav-link-muted {
  color: #94a3b8;
}

.dash-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
}

.dash-card-head {
  margin-bottom: 1.125rem;
}

.dash-card-head h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.dash-card-head p {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.dash-card-action {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7c3aed;
}

.dash-card-action:hover {
  color: #6d28d9;
}

.dash-btn-primary {
  background: #7c3aed;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.dash-btn-primary:hover {
  background: #6d28d9;
}

.dash-card-accent {
  background: #f5f3ff;
  border-color: #ede9fe;
  color: #5b21b6;
  font-size: 0.875rem;
}

.dash-card-accent a {
  text-decoration: underline;
  font-weight: 600;
}

.dash-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
}

#profile-grid dt {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

#profile-grid dd {
  color: #1e293b;
  font-weight: 500;
  word-break: break-all;
}

.billing-hero {
  background-image: linear-gradient(135deg, rgba(109, 40, 217, 0.95) 0%, rgba(79, 70, 229, 0.95) 100%);
}

.billing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f5f3ff;
}

.billing-info-card,
.billing-plan-card,
.billing-order-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.billing-plan-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.billing-input {
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.875rem;
  color: #1f2937;
  background: #fff;
}

.billing-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.billing-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #ede9fe;
  color: #6d28d9;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.billing-order-badge.is-success {
  background: #dcfce7;
  color: #15803d;
}

.billing-order-badge.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.billing-empty-state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px dashed #e5e7eb;
  border-radius: 0.95rem;
  padding: 1rem;
  background: #fafafa;
}

.billing-empty-state i {
  font-size: 1rem;
  color: #8b5cf6;
}
