.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary);
  border: 1px solid rgba(139, 92, 246, 0.45);
}

.badge-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.card-highlight {
  position: relative;
  overflow: hidden;
}

.card-highlight::after {
  content: '';
  position: absolute;
  inset: -50% 10%;
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.15));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-highlight:hover::after,
.card-highlight:focus-within::after {
  opacity: 1;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.4);
}

.nav-trigger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  padding: var(--spacing-xl) var(--spacing);
  gap: 1.5rem;
}

.nav-drawer[aria-hidden="false"] {
  display: flex;
}

.nav-drawer a {
  font-size: 1.2rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.75);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing);
  z-index: 30;
}

.modal-backdrop[data-open="true"] {
  display: flex;
}

.modal {
  background: linear-gradient(150deg, rgba(20, 20, 42, 0.98), rgba(11, 11, 18, 0.98));
  border-radius: 18px;
  padding: var(--spacing-lg);
  width: min(520px, 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.modal header {
  position: relative;
  border: none;
  padding: 0;
  margin-bottom: var(--spacing);
}

.modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.toast-stack {
  position: fixed;
  bottom: var(--spacing);
  right: var(--spacing);
  display: grid;
  gap: var(--spacing);
  z-index: 40;
}

.toast {
  padding: var(--spacing);
  border-radius: 12px;
  background: rgba(11, 11, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-width: 260px;
}

.toast.fade-out {
  animation: toastOut 0.3s forwards;
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.6);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.6);
}

.tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-button {
  padding: 0.75rem 1.4rem;
  border-radius: 999px 999px 0 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
}

.tab-button[aria-selected="true"] {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text);
}

.tab-panel {
  display: none;
  padding-top: var(--spacing);
}

.tab-panel[aria-hidden="false"] {
  display: block;
}

.tooltip {
  position: absolute;
  padding: 0.4rem 0.65rem;
  background: rgba(5, 5, 12, 0.95);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow);
  transform: translate(-50%, -110%);
  white-space: nowrap;
  display: none;
  z-index: 50;
}

.tooltip[data-show="true"] {
  display: block;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.pagination {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.pagination button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.pagination button[aria-current="true"] {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #05050a;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.status-open {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.status-success {
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary);
}

.status-closed {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

@media (max-width: 768px) {
  .nav-trigger {
    display: inline-flex;
  }

  .toast-stack {
    left: var(--spacing);
    right: auto;
  }
}
