/* =========================================================
   EverestSoftTech – ADMIN PANEL
   Dark full-width dashboard with fixed sidebar
   ========================================================= */

/* Break the admin shell out of the centered .page-shell */
.admin-dashboard-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw); /* escape page-shell max-width */
  min-height: 100vh;
  display: flex;
  background: radial-gradient(circle at top, #020617, #020617);
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */

.admin-dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 16px;
  background: #030819;
  border-right: 1px solid rgba(15, 23, 42, 1);
  z-index: 40;
  overflow-y: auto;
}

/* Sidebar header / brand */

.admin-dashboard-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.admin-dashboard-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-dashboard-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f9fafb;
}

.admin-dashboard-brand-text {
  display: flex;
  flex-direction: column;
}

.admin-dashboard-brand-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.admin-dashboard-brand-subtitle {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Collapse button */

.admin-sidebar-collapse {
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #9ca3af;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s ease-out, color 0.15s ease-out,
              transform 0.12s ease-out;
}

.admin-sidebar-collapse:hover {
  background: rgba(37, 99, 235, 0.98);
  color: #f9fafb;
  transform: translateY(-1px);
}

/* Sidebar nav */

.admin-dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-dashboard-nav-section {
  margin-top: 10px;
  margin-bottom: 4px;
  padding-inline: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}

.admin-dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #9ca3af;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease-out, color 0.15s ease-out,
              transform 0.12s ease-out;
}

.admin-dashboard-nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #020617, #020617);
  border: 1px solid rgba(51, 65, 85, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #9ca3af;
}

.admin-dashboard-nav-label {
  white-space: nowrap;
}

.admin-dashboard-nav-item:hover {
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.admin-dashboard-nav-item:hover .admin-dashboard-nav-icon {
  border-color: rgba(96, 165, 250, 0.9);
  color: #e5e7eb;
}

.admin-dashboard-nav-item-active {
  background: linear-gradient(90deg, #1d4ed8, #7c3aed);
  color: #f9fafb;
}

.admin-dashboard-nav-item-active .admin-dashboard-nav-icon {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(191, 219, 254, 0.9);
  color: #f9fafb;
}

/* Sidebar footer */

.admin-dashboard-sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #020617;
}

.admin-dashboard-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-dashboard-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #334155, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
}

.admin-dashboard-user-meta {
  display: flex;
  flex-direction: column;
}

.admin-dashboard-user-email {
  font-size: 0.78rem;
  color: #e5e7eb;
}

.admin-dashboard-user-role {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Role badges */

.user-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
}

.user-role-admin {
  border-color: rgba(129, 140, 248, 0.95);
  color: #e0e7ff;
  background: rgba(79, 70, 229, 0.22);
}

.user-role-user {
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

/* Status badges */

.user-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.user-status-active {
  border: 1px solid rgba(34, 197, 94, 0.9);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.18);
}

.user-status-banned {
  border: 1px solid rgba(248, 113, 113, 0.9);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.4);
}

/* Edit link */

.admin-small-link {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  color: #e5e7eb;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.admin-small-link:hover {
  border-color: rgba(129, 140, 248, 0.95);
  transform: translateY(-1px);
}



/* ===========================
   ADMIN USER EDIT PAGE
   =========================== */

.admin-user-edit {
  margin-top: 8px;
}

.admin-user-edit-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-user-edit-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-user-email {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  word-break: break-all;
}

.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-user-meta {
  text-align: right;
  font-size: 11px;
  color: #9ca3af;
}

.admin-user-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-user-meta-value {
  color: #e5e7eb;
}

.admin-user-form {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-user-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 10px;
}

.admin-dashboard-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #f97373;
  text-decoration: none;
  background: rgba(30, 64, 175, 0.05);
  border: 1px solid rgba(248, 113, 113, 0.3);
  transition: background 0.15s ease-out, transform 0.12s ease-out,
              border-color 0.15s ease-out;
}

.admin-dashboard-logout:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.7);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   MAIN CONTENT
   --------------------------------------------------------- */

.admin-dashboard-main {
  flex: 1 1 auto;
  margin-left: 260px; /* space for sidebar */
  padding: 26px 32px 40px;
  background: radial-gradient(circle at top, #020617, #020617);
  color: #e5e7eb;
}

/* Plan Grid */

.admin-plans-create {
  margin-top: 10px;
}

.admin-plan-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Provider & status badges */

.payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
}

/* Providers */
.payment-provider-stripe {
  border-color: rgba(59, 130, 246, 0.9);
  color: #bfdbfe;
}

.payment-provider-paypal {
  border-color: rgba(56, 189, 248, 0.9);
  color: #bae6fd;
}

.payment-provider-manual {
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

/* Statuses */
.payment-status-paid {
  border-color: rgba(34, 197, 94, 0.9);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.18);
}

.payment-status-pending {
  border-color: rgba(234, 179, 8, 0.9);
  color: #fef9c3;
  background: rgba(234, 179, 8, 0.18);
}

.payment-status-failed {
  border-color: rgba(248, 113, 113, 0.9);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.4);
}

.payment-status-refunded {
  border-color: rgba(129, 140, 248, 0.9);
  color: #e0e7ff;
  background: rgba(79, 70, 229, 0.22);
}

/* Card groups */

.settings-group-card {
  margin-top: 6px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.settings-group-header {
  margin-bottom: 10px;
}

/* Reuse .admin-section-title and .admin-section-hint */

.settings-grid-1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.settings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* Responsive behavior */

@media (max-width: 900px) {
  .settings-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .settings-grid-2,
  .settings-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Small subgroup label inside cards */

.settings-subgroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-subtitle {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Save button row */

.settings-save-row {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}


/* Dashboard header */

.admin-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-dashboard-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.admin-dashboard-title {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #e5e7eb;
}

.admin-dashboard-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.admin-dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-dashboard-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.75rem;
  color: #9ca3af;
  background: rgba(15, 23, 42, 0.9);
}

/* Stats cards */

.admin-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-dashboard-stat-card {
  border-radius: 18px;
  padding: 12px 14px;
  background: radial-gradient(circle at top left, #020617, #020617);
  border: 1px solid rgba(30, 64, 175, 0.35);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
}

.admin-dashboard-stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 2px;
}

.admin-dashboard-stat-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: #e5e7eb;
}

.admin-dashboard-stat-foot {
  margin-top: 3px;
  font-size: 0.72rem;
  color: #6b7280;
}

.admin-dashboard-stat-users {
  border-top: 3px solid #4f46e5;
  border-radius: 10px;
}
.admin-dashboard-stat-animations {
  border-top: 3px solid #22c55e;
  border-radius: 10px;
}
.admin-dashboard-stat-credits {
  border-top: 3px solid #0ea5e9;
  border-radius: 10px;
}
.admin-dashboard-stat-revenue {
  border-top: 3px solid #f97316;
  border-radius: 10px;
}

/* Panels row */

.admin-dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.admin-dashboard-panel {
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: radial-gradient(circle at top left, #020617, #020617);
  border: 1px solid rgba(30, 64, 175, 0.3);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.95);
}

.admin-dashboard-panel-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.admin-dashboard-panel-text {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Usage table */

.admin-dashboard-usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.admin-dashboard-usage-table td {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(51, 65, 85, 0.8);
}

.admin-dashboard-usage-table tr:last-child td {
  border-bottom: none;
}

.admin-dashboard-usage-table td:first-child {
  color: #9ca3af;
}

.admin-dashboard-usage-table td:last-child {
  text-align: right;
  color: #e5e7eb;
}

/* Quick links */

.admin-dashboard-quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-dashboard-quick-link {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(30, 64, 175, 0.4);
  transition: background 0.15s ease-out, transform 0.12s ease-out,
              border-color 0.15s ease-out;
}

.admin-dashboard-quick-link:hover {
  background: rgba(30, 64, 175, 0.95);
  border-color: rgba(129, 140, 248, 0.9);
  transform: translateY(-2px);
}

.admin-dashboard-quick-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #4f46e5, #0f172a);
  color: #f9fafb;
  font-size: 0.85rem;
}

.admin-dashboard-quick-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #e5e7eb;
}

.admin-dashboard-quick-text {
  font-size: 0.75rem;
  color: #cbd5f5;
}

/* =========================================================
   GENERIC ADMIN FORMS / CARDS / TABLES
   (content UI – settings, users, plans, payments, etc.)
   ========================================================= */

.admin-section {
  margin-top: 18px;
}

.admin-card {
  border-radius: 18px;
  padding: 18px 18px 14px;
  background: radial-gradient(circle at top left, #020617, #020617);
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
}

/* Section header */

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.admin-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4cff1b;
  box-shadow: 0 0 10px rgba(22, 249, 62, 0.9);
}

.admin-dot-pink {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #e500d3;
  box-shadow: 0 0 10px rgba(186, 4, 232, 0.9);
}

.admin-dot-cynn {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #05d1ff;
  box-shadow: 0 0 10px rgba(0, 174, 226, 0.9);
}

.admin-title {
  margin: 6px 0 4px;
  font-size: 1.2rem;
  font-weight: 600;
}

.admin-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #9ca3af;
}

.admin-section-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.admin-section-hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.admin-empty-text {
  font-size: 0.82rem;
  color: #6b7280;
}

/* Forms */

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-label {
  font-size: 0.78rem;
  color: #e5e7eb;
}

.admin-label small {
  font-size: 0.7rem;
  color: #9ca3af;
}

.admin-input,
.admin-select,
.admin-textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  font-size: 0.85rem;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out,
              background 0.15s ease-out;
}

.admin-textarea {
  border-radius: 14px;
  min-height: 90px;
  padding: 7px 10px;
  resize: vertical;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.8);
  background: rgba(15, 23, 42, 1);
}

.admin-input::placeholder,
.admin-textarea::placeholder {
  color: #6b7280;
}

/* Actions / buttons */

.admin-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* primary button */
.admin-btn-primary {
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #4f46e5, #ec4899);
  color: #f9fafb;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(79, 70, 229, 0.9);
  transition: transform 0.12s ease-out, box-shadow 0.15s ease-out,
              filter 0.12s ease-out;
}

.admin-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 46px rgba(79, 70, 229, 1);
}

/* ghost button */
.admin-btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  padding: 7px 12px;
  font-size: 0.82rem;
  color: #e5e7eb;
  cursor: pointer;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}

.admin-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(129, 140, 248, 0.9);
}

/* Tables */

.admin-table-wrap {
  border-radius: 12px;
  margin-top: 5px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.admin-table thead {
  background: rgba(15, 23, 42, 0.98);
}

.admin-table th,
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.admin-table th {
  text-align: left;
  font-weight: 500;
  color: #9ca3af;
}

.admin-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.92);
}

.admin-table tbody tr:hover {
  background: rgba(30, 64, 175, 0.75);
}

/* badges / pills */

.pill-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.pill-soft-small {
  padding: 2px 6px;
  font-size: 0.68rem;
}

.pill-soft-success {
  background: rgba(22, 163, 74, 0.1);
  color: #bbf7d0;
}

.pill-soft-warning {
  background: rgba(234, 179, 8, 0.08);
  color: #facc15;
}

.pill-soft-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.pill-soft-neutral {
  background: rgba(75, 85, 99, 0.28);
  color: #e5e7eb;
}

/* Flash messages */

.flash {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.flash-success {
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
}

.flash-error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.85);
  color: #fecaca;
}

.flash-hide {
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Text helpers */

.text-danger {
  color: #fecaca;
}

.text-success {
  color: #bbf7d0;
}

/* =========================================================
   RESPONSIVE / COLLAPSED SIDEBAR
   (keeps your existing JS that toggles .is-sidebar-collapsed)
   ========================================================= */

/* Collapsed sidebar on desktop */
.admin-dashboard-shell.is-sidebar-collapsed .admin-dashboard-sidebar {
  width: 78px;
}

.admin-dashboard-shell.is-sidebar-collapsed .admin-dashboard-main {
  margin-left: 78px;
}

.admin-dashboard-shell.is-sidebar-collapsed .admin-dashboard-brand-text,
.admin-dashboard-shell.is-sidebar-collapsed .admin-dashboard-nav-label,
.admin-dashboard-shell.is-sidebar-collapsed .admin-dashboard-user-meta {
  display: none;
}

.admin-dashboard-shell.is-sidebar-collapsed .admin-dashboard-sidebar {
  align-items: center;
}

.admin-dashboard-shell.is-sidebar-collapsed .admin-dashboard-nav-item {
  justify-content: center;
}

.admin-dashboard-shell.is-sidebar-collapsed .admin-dashboard-nav-icon {
  margin-right: 0;
}

/* Mobile layout – sidebar slides in */
@media (max-width: 900px) {
  .admin-dashboard-shell {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
  }

  .admin-dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  

  /* class .is-sidebar-open should be toggled on #adminShell by JS */
  .admin-dashboard-shell.is-sidebar-open .admin-dashboard-sidebar {
    transform: translateX(0);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  }

  .admin-dashboard-main {
    margin-left: 0;
    padding: 20px 16px 28px;
  }

  .admin-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Very small screens */
@media (max-width: 600px) {
  .admin-dashboard-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tables – horizontal scroll on mobile */
@media (max-width: 900px) {
  .admin-table-wrap {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 720px;
  }
}

/* ---------- Mobile-only hamburger for admin sidebar ---------- */

/* Default: hide on desktop and everything */
.admin-mobile-topbar,
.admin-mobile-toggle {
  display: none;
}

/* Mobile breakpoint: show it only when window is narrow */
@media (max-width: 900px) {
  .admin-mobile-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
  }
  

  .admin-mobile-topbar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
  }

  .admin-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
    font-size: 1rem;
    transition:
      transform 0.12s ease-out,
      box-shadow 0.15s ease-out,
      background 0.15s ease-out;
  }

  .admin-mobile-toggle:hover {
    transform: translateY(-1px);
    background: rgba(30, 64, 175, 0.98);
    box-shadow: 0 14px 40px rgba(30, 64, 175, 0.95);
  }

  /* Hide the desktop collapse arrow on mobile */
  .admin-sidebar-collapse {
    display: none;
  }
}

/* Safety: REALLY hide hamburger on wide screens */
@media (min-width: 901px) {
  .admin-mobile-topbar,
  .admin-mobile-toggle {
    display: none !important;
  }
}

/* Backdrop behind sidebar on mobile when open */
.admin-sidebar-backdrop {
  display: none;
}

/* Mobile-only overlay */
@media (max-width: 900px) {
  .admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: #020617a6;
    backdrop-filter: blur(2px);
    z-index: 40;
  }

  .admin-dashboard-shell.is-sidebar-open .admin-sidebar-backdrop {
    display: block;
  }

  .admin-dashboard-sidebar {
    z-index: 50;
  }

  .admin-dashboard-main {
    position: relative;
    z-index: 10;
  }
}

/* admin/signin.php for admin panel protection */

  .admin-lock-shell {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
  }
  .admin-lock-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    padding: 40px 32px 32px;
    border-radius: 24px;
    background: radial-gradient(circle at top, #020617, #020617);
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.9),
      0 0 0 1px rgba(148, 163, 184, 0.25);
  }
  .admin-lock-title {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
  }
  .admin-lock-subtitle {
    margin-bottom: 28px;
    color: #9ca3af;
  }
  .admin-lock-icon {
    font-size: 60px;
    margin-bottom: 24px;
    color: #6b7280;
  }
  .admin-lock-pill {
    border-radius: 999px;
    border: 1px solid rgba(156, 163, 175, 0.5);
    padding: 10px 22px;
    font-size: 0.9rem;
    margin-bottom: 28px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e5e7eb;
  }
  .admin-lock-form .field-input {
    text-align: center;
    letter-spacing: 0.4em;
    font-weight: 600;
  }
  .admin-lock-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 8px;
  }


