/* --------- Cards --------- */
.card {
  --bs-card-bg: transparent;
  background-color: var(--s-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-lg);
  box-shadow: var(--s-shadow-md);
  transition: box-shadow var(--s-transition);
}

.card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card-body {
  padding: 24px;
}

/* --------- Buttons --------- */
.btn {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 8px;
  transition: all 0.15s;
  line-height: 1.5;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-lg {
  padding: 12px 32px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-primary,
.btn-s {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  box-shadow:
    0 4px 20px rgba(249, 115, 22, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary::before,
.btn-s::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fdba74 0%, #fb923c 50%, #f97316 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  border-radius: inherit;
}

.btn-primary:hover,
.btn-s:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow:
    0 12px 32px rgba(249, 115, 22, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover::before,
.btn-s:hover::before {
  opacity: 1;
}

.btn-primary:active,
.btn-s:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

.btn-primary > *,
.btn-s > * {
  position: relative;
  z-index: 1;
}

.btn-outline-primary,
.btn-outline-s {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
  backdrop-filter: blur(4px);
}

.btn-outline-primary:hover,
.btn-outline-s:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06);
}

.btn-outline-primary:active,
.btn-outline-s:active {
  transform: translateY(-1px);
}

.btn-outline-danger {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
}

.btn-outline-danger:hover {
  background: rgba(239, 83, 80, 0.12);
  border-color: #ef5350;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(239, 83, 80, 0.25);
}

.btn-outline-danger:active {
  transform: translateY(-1px);
}

/* --- Table action buttons --- */
.table tbody td .btn-outline-primary,
.table tbody td .btn-outline-secondary,
.table tbody td .btn-outline-danger {
  padding: 6px 14px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.table tbody td .btn-outline-primary {
  background: linear-gradient(135deg, rgb(50, 130, 70), rgb(40, 110, 60));
  border-color: rgb(65, 155, 85);
  color: rgb(190, 240, 200);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.table tbody td .btn-outline-primary:hover {
  background: linear-gradient(135deg, rgb(65, 155, 85), rgb(50, 135, 75));
  border-color: rgb(80, 180, 100);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.table tbody td .btn-outline-secondary {
  background: linear-gradient(135deg, rgb(160, 130, 50), rgb(145, 115, 40));
  border-color: rgb(190, 160, 65);
  color: rgb(250, 235, 180);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.table tbody td .btn-outline-secondary:hover {
  background: linear-gradient(135deg, rgb(185, 155, 60), rgb(170, 140, 50));
  border-color: rgb(215, 185, 75);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.table tbody td .btn-outline-danger {
  background: linear-gradient(135deg, rgb(150, 50, 50), rgb(130, 40, 40));
  border-color: rgb(180, 60, 60);
  color: rgb(255, 200, 200);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.table tbody td .btn-outline-danger:hover {
  background: linear-gradient(135deg, rgb(175, 60, 60), rgb(155, 50, 50));
  border-color: rgb(210, 70, 70);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* --------- Badges --------- */
.badge {
  font-weight: 600;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.badge.bg-success {
  background: rgba(76, 175, 80, 0.2) !important;
  color: rgba(109, 187, 97, 0.85);
}

.badge.bg-danger {
  background: rgba(239, 83, 80, 0.2) !important;
  color: rgba(239, 83, 80, 0.85);
}

.badge.bg-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.45);
}

/* --------- Alerts --------- */
.alert {
  border-radius: var(--s-radius-lg);
  border: 1px solid transparent;
  font-size: 0.8rem;
  padding: 14px 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  color: rgba(109, 187, 97, 0.85);
  border-color: rgba(76, 175, 80, 0.12);
}

.alert-danger {
  background: rgba(239, 83, 80, 0.1);
  color: rgba(239, 83, 80, 0.85);
  border-color: rgba(239, 83, 80, 0.12);
}
.card h6,
.card .h6 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
/* --------- Code --------- */
code {
  background: var(--s-primary-bg);
  color: #667085;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* --------- Links --------- */
a {
  color: rgba(249, 115, 22, 0.56);
  transition: color var(--s-transition);
}

a:hover {
  color: rgba(249, 115, 22, 0.72);
}

/* ---------------------------------------------------
   ? EXTRACTED INLINE STYLES � Phase 1 refactor
   --------------------------------------------------- */

/* --- Cyber badge status variants --- */
.cyber-badge--published {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.15);
  color: rgb(34, 197, 94);
}

.cyber-badge--draft {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.12);
  color: rgb(239, 68, 68);
}

.cyber-badge--archived {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.12);
  color: rgb(234, 179, 8);
}

/* --- Color dot --- */
.cyber-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cyber-color-dot--lg {
  width: 12px;
  height: 12px;
}
/* --------- Pagination --------- */
.pagination {
  margin-top: 16px;
}

.page-link {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border-radius: var(--s-radius) !important;
  margin: 0 2px;
  transition: all var(--s-transition);
  padding: 8px 14px;
}

.page-link:hover {
  background: rgba(249, 115, 22, 0.06);
  border-color: rgba(249, 115, 22, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

.page-item.active .page-link {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

.page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.03);
}

/* --------- Dropdown (dark theme) --------- */
.dropdown-menu {
  background: rgba(12, 14, 36, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--s-radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  padding: 6px;
  min-width: 160px;
}

.dropdown-menu .dropdown-item {
  border-radius: var(--s-radius);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(249, 115, 22, 0.15);
  color: #fff;
}

.dropdown-menu .dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
}

.dropdown-item-danger {
  color: rgba(239, 83, 80, 0.8) !important;
}

.dropdown-item-danger:hover {
  background: rgba(239, 83, 80, 0.15) !important;
  color: #ef5350 !important;
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

/* --------- Modal --------- */
.modal-content {
  background: linear-gradient(160deg, #0a0a0a, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 22px;
}

.modal-header .modal-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
}

.modal-header .btn-close {
  filter: invert(1);
  opacity: 0.4;
}

.modal-header .btn-close:hover {
  opacity: 0.8;
}

.modal-body {
  padding: 22px;
  color: var(--s-text);
}

.modal-body .form-label {
  color: var(--s-text);
  font-size: 0.82rem;
  font-weight: 500;
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 22px;
}

.modal-backdrop.show {
  opacity: 0.6;
}

/* --------- Empty State --------- */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
}

.empty-state p {
  color: var(--s-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ---------------------------------------------------
   ? CYBER PREMIUM � Section headers & refinements
   --------------------------------------------------- */

/* ---------------------------------------------------
   ? CYBER-MODERN COMPONENTS
   Futuristic glow / glassmorphism design layer
   --------------------------------------------------- */

/* --- Cyber Card --- */
.cyber-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(245, 158, 11, 0.06) inset,
    0 0 40px rgba(245, 158, 11, 0.03);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cyber-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}

.cyber-card:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(245, 158, 11, 0.1) inset,
    0 0 60px rgba(245, 158, 11, 0.06);
  transform: translateY(-2px);
}

/* --- Cyber Table --- */
/* --- Cyber Avatar (glowing initials) --- */
.cyber-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cyber-avatar::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(249, 115, 22, 0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cyber-row:hover .cyber-avatar {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45);
}

.cyber-row:hover .cyber-avatar::after {
  opacity: 1;
}

/* --- Cyber Badge --- */
.cyber-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: rgba(148, 163, 184, 0.08);
  color: rgba(148, 163, 184, 0.7);
}

.cyber-badge--admin {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.15);
  color: rgb(251, 191, 36);
}

.cyber-badge--mod {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.15);
  color: rgb(96, 165, 250);
}

.cyber-badge--user {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.15);
  color: rgb(34, 197, 94);
}

/* --- Cyber Status Dot --- */
.cyber-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cyber-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.cyber-status-dot--active {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.cyber-status-dot--active::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.15);
  animation: cyber-pulse 2s ease-in-out infinite;
}

.cyber-status-dot--inactive {
  background: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.15);
}

@keyframes cyber-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.3;
  }
}

.cyber-status-text {
  color: rgb(16, 185, 129);
}

.cyber-status-text--inactive {
  color: rgb(239, 68, 68);
}

/* Draft / Esborrany — Rojo */
.cyber-status-dot--draft {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.35);
}

.cyber-status-text--draft {
  color: #ef4444;
}

/* Archived / Arxivat */
.cyber-status-dot--archived {
  background: #06b6d4;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.3);
}

.cyber-status-text--archived {
  color: #06b6d4;
}

/* Scheduled / Programat — Naranja */
.cyber-status-dot--scheduled {
  background: #f97316;
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.3);
}

.cyber-status-text--scheduled {
  color: #f97316;
}

/* --- Cyber Action Group --- */
.cyber-actions {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.cyber-actions-divider {
  width: 1px;
  height: 24px;
  background: rgba(148, 163, 184, 0.12);
  display: inline-block;
  margin: 0 4px;
}
/* --- Cyber Button --- Neon Frame Style --- */
.cyber-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  white-space: nowrap;
  color: #fde68a;
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
}

.cyber-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.04));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cyber-btn i {
  font-size: 0.75rem;
  position: relative;
  z-index: 1;
  color: #fde68a;
  transition: color 0.25s ease;
}

.cyber-btn span,
.cyber-btn > *:not(i):not(._exclude) {
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
}

/* --- Projectes (active) --- cyan neon frame --- */
.cyber-btn--projects {
  color: #fde68a;
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

.cyber-btn--projects::before {
  background: linear-gradient(135deg, rgb(245, 158, 11), rgba(245, 158, 11, 0.5));
}

.cyber-btn--projects i {
  color: #fde68a;
}

.cyber-btn--projects:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(2, 6, 23, 0.55);
  box-shadow: none;
}
}

.cyber-btn--projects:hover::before {
  background: linear-gradient(135deg, rgb(245, 158, 11), rgb(249, 115, 22));
}

.cyber-btn--projects:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.08);
}

/* --- Projectes (inactive / muted) --- */
.cyber-btn--projects-inactive {
  color: rgba(148, 163, 184, 0.4);
  background: rgba(2, 6, 23, 0.2);
  box-shadow: none;
}

.cyber-btn--projects-inactive i {
  color: rgba(148, 163, 184, 0.3);
}

.cyber-btn--projects-inactive::before {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), rgba(148, 163, 184, 0.03));
}

.cyber-btn--projects-inactive:hover {
  background: rgba(2, 6, 23, 0.4);
  color: #fde68a;
  box-shadow: 0 0 48px rgba(245, 158, 11, 0.25);
  transform: translateY(-3px);
}

.cyber-btn--projects-inactive:hover i {
  color: #fde68a;
}

.cyber-btn--projects-inactive:hover::before {
  background: linear-gradient(135deg, rgb(245, 158, 11), rgba(245, 158, 11, 0.5));
}

/* --- Action Buttons --- Minimalist Corporate --- */

.cyber-btn--icon,
.cyber-btn--toggle-active,
.cyber-btn--toggle-inactive,
.cyber-btn--toggle-disabled,
.cyber-btn--edit,
.cyber-btn--view,
.cyber-btn--delete,
.cyber-btn--delete-disabled {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
  position: relative;
  overflow: visible;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

.cyber-btn--icon::before,
.cyber-btn--toggle-active::before,
.cyber-btn--toggle-inactive::before,
.cyber-btn--edit::before,
.cyber-btn--view::before,
.cyber-btn--delete::before {
  display: none;
}

.cyber-btn--icon i,
.cyber-btn--toggle-active i,
.cyber-btn--toggle-inactive i,
.cyber-btn--edit i,
.cyber-btn--view i,
.cyber-btn--delete i {
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  transition: color 0.18s ease;
}

/* --- Default: all muted neutral --- */
.cyber-btn--toggle-active,
.cyber-btn--toggle-inactive,
.cyber-btn--edit,
.cyber-btn--view,
.cyber-btn--delete {
  color: rgba(148, 163, 184, 0.85);
}

.cyber-btn--toggle-active i,
.cyber-btn--toggle-inactive i,
.cyber-btn--edit i,
.cyber-btn--view i,
.cyber-btn--delete i {
  color: rgba(148, 163, 184, 0.85);
}

/* --- Toggle Active --- green hint --- */
.cyber-btn--toggle-active {
  color: rgba(34, 197, 94, 0.9);
}

.cyber-btn--toggle-active i {
  color: rgba(34, 197, 94, 0.9);
}

.cyber-btn--toggle-active:hover {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
}

.cyber-btn--toggle-active:hover i {
  color: #22c55e;
}

.cyber-btn--toggle-active:active {
  background: rgba(34, 197, 94, 0.14);
}

/* --- Toggle Inactive --- red on hover --- */
.cyber-btn--toggle-inactive:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.cyber-btn--toggle-inactive:hover i {
  color: #ef4444;
}

.cyber-btn--toggle-inactive:active {
  background: rgba(239, 68, 68, 0.14);
}

/* --- Toggle Disabled --- */
.cyber-btn--toggle-disabled {
  color: rgba(148, 163, 184, 0.18);
  cursor: not-allowed;
}

.cyber-btn--toggle-disabled:hover {
  background: transparent;
  color: rgba(148, 163, 184, 0.18);
}

/* --- Edit --- blue on hover --- */
.cyber-btn--edit:hover {
  background: rgba(249, 115, 22, 0.08);
  color: #f97316;
}

.cyber-btn--edit:hover i {
  color: #f97316;
}

.cyber-btn--edit:active {
  background: rgba(249, 115, 22, 0.14);
}

/* --- View --- cyan on hover --- */
.cyber-btn--view:hover {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

.cyber-btn--view:hover i {
  color: #f59e0b;
}

.cyber-btn--view:active {
  background: rgba(245, 158, 11, 0.14);
}

/* --- Delete --- red on hover --- */
.cyber-btn--delete:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.cyber-btn--delete:hover i {
  color: #ef4444;
}

.cyber-btn--delete:active {
  background: rgba(239, 68, 68, 0.14);
}

/* --- Delete Disabled --- */
.cyber-btn--delete-disabled {
  color: rgba(148, 163, 184, 0.18);
  cursor: not-allowed;
}

.cyber-btn--delete-disabled i {
  color: rgba(148, 163, 184, 0.18) !important;
}

.cyber-btn--delete-disabled:hover {
  background: transparent;
  color: rgba(148, 163, 184, 0.18);
}

/* --- Cyber Empty State --- */
.cyber-empty {
  padding: 60px 24px;
  text-align: center;
}

.cyber-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: rgba(245, 158, 11, 0.3);
}

.cyber-empty-text {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.5);
  margin: 0;
}

/* --- Cyber Back Button --- */
.cyber-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  color: rgba(148, 163, 184, 0.6);
  background: rgba(2, 6, 23, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: none;
}

.cyber-btn-back::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.05));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cyber-btn-back:hover {
  color: #fde68a;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.3);
  transform: translateX(-4px);
}

.cyber-btn-back:hover::before {
  background: linear-gradient(135deg, rgb(245, 158, 11), rgba(245, 158, 11, 0.4));
}

/* --- Cyber Action Bar Button --- Neon Frame --- */
.cyber-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fde68a !important;
  background: rgba(2, 6, 23, 0.4) !important;
  backdrop-filter: blur(8px);
  box-shadow: none !important;
}

.cyber-btn-primary i {
  color: #fde68a !important;
}

.cyber-btn-primary:hover {
  transform: translateY(-2px);
  color: #fff !important;
  background: rgba(2, 6, 23, 0.55) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
}

.cyber-btn-primary:hover i {
  color: #fff;
}

.cyber-btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* --- Responsive Cyber --- */
@media (max-width: 768px) {
  .cyber-table thead {
    display: none;
  }

  .cyber-table,
  .cyber-table tbody,
  .cyber-table tr,
  .cyber-table td {
    display: block;
  }

  .cyber-row {
    margin-bottom: 10px;
    border-radius: 12px;
    position: relative;
    padding: 14px 16px;
  }

  .cyber-cell {
    padding: 4px 0;
    text-align: left !important;
    border-radius: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .cyber-cell:first-child {
    padding-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cyber-cell:last-child {
    padding-bottom: 0;
  }

  /* Label-to-left on mobile */
  .cyber-cell::before {
    content: attr(data-label);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.4);
    flex-shrink: 0;
  }

  .cyber-cell:nth-child(5),
  .cyber-cell:nth-child(6),
  .cyber-cell:nth-child(7) {
    text-align: left !important;
  }

  .cyber-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cyber-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .cyber-form-card {
    max-width: 100%;
  }
}
/* --- SweetAlert Custom --- */
.swal-popup-custom {
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.swal-html-custom {
  margin: 0 !important;
  padding: 0 !important;
}

.swal-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.swal-icon-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 83, 80, 0.2), rgba(185, 28, 28, 0.25));
  border: 2px solid rgba(239, 83, 80, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ef5350;
}

.swal-msg {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 0;
  padding: 0 4px;
}

@keyframes swalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes swalFadeOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
}

.swal-popup-in {
  animation: swalFadeIn 0.25s ease-out forwards !important;
}

.swal-popup-out {
  animation: swalFadeOut 0.2s ease-in forwards !important;
}

.swal-actions-custom {
  gap: 16px !important;
  margin-top: 20px !important;
}

.swal-confirm-btn {
  background: #b91c1c !important;
  border: none !important;
  color: #fff !important;
  transition:
    background 0.2s ease,
    transform 0.15s ease !important;
}

.swal-confirm-btn:hover {
  background: #991b1b !important;
  transform: scale(1.04);
}

.swal-confirm-btn:active {
  transform: scale(0.96);
}

.swal-flash-toast {
  border-radius: 14px !important;
  padding: 14px 18px !important;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.15) !important;
  min-width: 360px;
  max-width: 440px;
}

/* ---------------------------------------------------
   ? EXTRACTED INLINE STYLES � Phase 2 cleanup
   --------------------------------------------------- */

/* --- Button compact variant --- */
.cyber-btn--compact {
  padding: 8px 16px;
  font-size: 0.7rem;
}

/* --- Back button inline --- */
.cyber-btn-back--inline {
  margin-left: 8px;
  margin-bottom: 24px;
  display: inline-flex;
}

/* --- Action button with top margin --- */
.cyber-btn--action {
  margin-top: 16px;
  display: inline-flex;
}

/* --- Badge compact size --- */
.cyber-badge--compact {
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* --- Card empty state --- */
.cyber-card--empty {
  text-align: center;
  padding: 40px 24px;
}

.cyber-card--empty-lg {
  padding: 60px 24px;
  text-align: center;
}

/* --- Section label (other projects heading) --- */
.cyber-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--s-text-secondary);
  opacity: 0.75;
  margin: 0 0 14px;
}

.cyber-section-label i {
  margin-right: 6px;
}

/* --- Other project card body --- */
.project-other-card__body {
  flex: 1;
  min-width: 0;
}

/* --- Empty state larger icons --- */
.cyber-empty-icon--xl {
  font-size: 2.5rem;
  color: rgba(148, 163, 184, 0.15);
  margin-bottom: 12px;
}

.cyber-empty-icon--xxl {
  font-size: 3rem;
  color: rgba(148, 163, 184, 0.15);
  margin-bottom: 12px;
}

/* --- Refactor inline styles ? classes --- */
.cyber-btn--add-field {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.cyber-btn--add-field:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.cyber-btn__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.cyber-card--field-bg {
  background: rgba(15, 23, 42, 0.2);
}

.cyber-badge--field {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* ============================================================
   FAQ Panel
   ============================================================ */
.faq-btn span {
  font-size: 0.7rem;
}

.faq-panel {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 64px 24px 24px 24px;
  visibility: hidden;
  pointer-events: none;
}

.faq-panel--open {
  visibility: visible;
  pointer-events: auto;
}

.faq-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.faq-panel__card {
  position: relative;
  width: 440px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 88px);
  background: linear-gradient(180deg, #0a0a0c 0%, #141418 100%);
  border-radius: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(24px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 64px rgba(245, 158, 11, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.3) transparent;
}

.faq-panel--open .faq-panel__card {
  transform: translateX(0);
}

.faq-panel__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, rgb(245, 158, 11), rgba(245, 158, 11, 0.5));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- FAQ Panel Header --- */
.faq-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.faq-panel__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-panel__header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-panel__header-icon i {
  font-size: 1.2rem;
  color: #f59e0b;
}

.faq-panel__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.3;
}

.faq-panel__subtitle {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.6);
  margin: 2px 0 0 0;
}

.faq-panel__close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: rgba(148, 163, 184, 0.5);
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1;
  transition:
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-panel__close::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgb(245, 158, 11, 0.5), rgba(245, 158, 11, 0.15));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.faq-panel__close i {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-panel__close:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  box-shadow:
    0 0 20px rgba(245, 158, 11, 0.25),
    0 0 40px rgba(245, 158, 11, 0.08);
  transform: scale(1.08);
}

.faq-panel__close:hover i {
  transform: rotate(90deg);
}

.faq-panel__close:hover::before {
  background: linear-gradient(135deg, rgb(251, 191, 36), rgb(245, 158, 11));
  opacity: 1;
}

.faq-panel__close:active {
  transform: scale(0.92);
}

.faq-panel__close:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* --- FAQ Panel Body --- */
.faq-panel__body {
  padding: 8px 0;
}

/* --- FAQ Item --- */
.faq-item {
  border-bottom: 1px solid rgba(245, 158, 11, 0.06);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  gap: 12px;
}

.faq-item__question:hover {
  background: rgba(245, 158, 11, 0.04);
  color: rgba(255, 255, 255, 0.95);
}

.faq-item__question span {
  flex: 1;
  min-width: 0;
}

.faq-item__chevron {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.5);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item--open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item--open .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer p {
  padding: 0 24px 14px 24px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.7);
}

.faq-item__answer strong {
  color: #f59e0b;
  font-weight: 600;
}

/* ============================================================
   FAQ Panel — Light Mode
   ============================================================ */
[data-theme="light"] .faq-panel__backdrop {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

[data-theme="light"] .faq-panel__card {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  box-shadow:
    0 0 64px rgba(245, 158, 11, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .faq-panel__card::before {
  background: linear-gradient(135deg, rgb(245, 158, 11), rgba(245, 158, 11, 0.4));
}

[data-theme="light"] .faq-panel__header {
  border-bottom-color: rgba(245, 158, 11, 0.15);
}

[data-theme="light"] .faq-panel__header-icon {
  background: rgba(245, 158, 11, 0.1);
}

[data-theme="light"] .faq-panel__header-icon i {
  color: #d97706;
}

[data-theme="light"] .faq-panel__title {
  color: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .faq-panel__subtitle {
  color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .faq-panel__close {
  background: rgba(15, 23, 42, 0.03);
  color: rgba(71, 85, 105, 0.4);
}

[data-theme="light"] .faq-panel__close::before {
  background: linear-gradient(135deg, rgb(245, 158, 11, 0.6), rgba(245, 158, 11, 0.15));
}

[data-theme="light"] .faq-panel__close:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  box-shadow:
    0 0 16px rgba(245, 158, 11, 0.2),
    0 0 32px rgba(245, 158, 11, 0.06);
}

[data-theme="light"] .faq-panel__close:hover::before {
  background: linear-gradient(135deg, rgb(251, 191, 36), rgb(245, 158, 11));
}

[data-theme="light"] .faq-item {
  border-bottom-color: rgba(245, 158, 11, 0.08);
}

[data-theme="light"] .faq-item__question {
  color: rgba(15, 23, 42, 0.78);
}

[data-theme="light"] .faq-item__question:hover {
  background: rgba(245, 158, 11, 0.05);
  color: rgba(15, 23, 42, 0.95);
}

[data-theme="light"] .faq-item__chevron {
  color: rgba(71, 85, 105, 0.4);
}

[data-theme="light"] .faq-item__answer p {
  color: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .faq-item__answer strong {
  color: #d97706;
}

/* ═══════════════════════════
   Light Mode — Buttons
   ═══════════════════════════ */
[data-theme="light"] .cyber-btn {
  color: rgba(15, 23, 42, 0.75);
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border: none;
}

[data-theme="light"] .cyber-btn::before {
  display: none;
}

[data-theme="light"] .cyber-btn i {
  color: rgba(15, 23, 42, 0.5);
}

[data-theme="light"] .cyber-btn:hover {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cyber-btn--projects {
  color: #fff !important;
  background: linear-gradient(135deg, #f97316, #f59e0b) !important;
  box-shadow: none !important;
}

[data-theme="light"] .cyber-btn--projects i {
  color: #fff !important;
}

[data-theme="light"] .cyber-btn--projects:hover {
  background: linear-gradient(135deg, #ea580c, #d97706) !important;
  box-shadow: none !important;
  color: #fff !important;
}

[data-theme="light"] .cyber-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #f97316, #f59e0b) !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2) !important;
}

[data-theme="light"] .cyber-btn-primary i {
  color: #fff !important;
}

[data-theme="light"] .cyber-btn-primary:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #ea580c, #d97706) !important;
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4) !important;
}
