/* ╔══════════════════════════════════════════════════════╗
   ║  MKP Admin Panel — Premium CSS                      ║
   ║  DO NOT use <nav> for sidebar — main.css hijacks it ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Login Modal ── */
.adm-ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 6000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.adm-ov.open {
  display: flex;
}

.adm-box {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 24px;
  position: relative;
  animation: admBoxIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes admBoxIn {
  from {
    transform: scale(0.94) translateY(12px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.adm-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.adm-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.adm-x {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.adm-x:hover {
  background: var(--paper3);
  color: var(--ink);
}

/* ── Base Form Fields ── */
.adm-f {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.adm-f label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.adm-f input,
.adm-f select,
.adm-f textarea,
.adm-f-input {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--border);
  padding: 10px 13px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.adm-f input:focus,
.adm-f select:focus,
.adm-f textarea:focus,
.adm-f-input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.14);
}

.adm-textarea {
  height: 80px;
  resize: vertical;
}

.adm-color-input {
  height: 42px;
  padding: 4px;
  cursor: pointer;
}

.adm-field-hint {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 3px;
}

.adm-inline-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.68rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
  font-family: inherit;
  margin-left: 8px;
}

.adm-inline-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
}

/* Grid helpers */
.adm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.adm-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.adm-four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Action row */
.adm-acts {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Save button auto-show when changed container styling */
.adm-acts.adm-save-container {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.adm-acts.adm-save-container.show {
  opacity: 1;
  max-height: 80px;
  margin-top: 20px;
  transform: translateY(0);
  pointer-events: auto;
}

/* ══════════════════════════════════════════════════════
   FULL-SCREEN ADMIN DASHBOARD
   ══════════════════════════════════════════════════════ */
.adm-dashboard {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--paper2);
  flex-direction: row;
  overflow: hidden;
  animation: dashIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-dashboard.open {
  display: flex;
}

@keyframes dashIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── LEFT SIDEBAR ─── */
.adm-sidebar {
  width: 252px;
  min-width: 252px;
  height: 100%;
  background: #0f1117;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  transition:
    width 0.26s cubic-bezier(0.4, 0, 0.2, 1),
    min-width 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.adm-sidebar.collapsed {
  width: 58px;
  min-width: 58px;
}

.adm-sidebar.collapsed .adm-nav-text,
.adm-sidebar.collapsed .adm-nav-group-label,
.adm-sidebar.collapsed .adm-sb-logo-text,
.adm-sidebar.collapsed .adm-sb-logo-sub {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  display: none;
}

.adm-sidebar.collapsed .adm-sb-logo-row {
  justify-content: center;
  gap: 0;
}

.adm-sidebar.collapsed .adm-sb-logo-row > div:not(.adm-sb-logo-icon) {
  display: none;
}

.adm-sidebar.collapsed .adm-sb-session-row,
.adm-sidebar.collapsed .adm-idle-bar-wrap {
  display: none;
}

.adm-sidebar.collapsed .adm-nav-item {
  justify-content: center;
  padding: 11px 0;
  gap: 0;
}

.adm-sidebar.collapsed .adm-sf-btn {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
}

/* Brand */
.adm-sidebar-brand {
  padding: 16px 18px 12px;
  background: linear-gradient(135deg, #1a2f1c 0%, #0f1a10 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.adm-sb-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.adm-sb-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--sage);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.adm-sb-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.adm-sb-logo-sub {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  white-space: nowrap;
}

.adm-idle-bar-wrap {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.adm-idle-bar {
  height: 100%;
  background: var(--sage);
  border-radius: 2px;
  width: 100%;
  transition: width 1s linear;
}

.adm-sb-session-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Nav */
.adm-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.adm-sidebar-nav::-webkit-scrollbar {
  width: 3px;
}

.adm-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.adm-nav-group {
  margin-bottom: 2px;
}

.adm-nav-group-label {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.28);
  padding: 12px 18px 4px;
  white-space: nowrap;
  overflow: hidden;
}

.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition:
    background 0.14s,
    color 0.14s;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  font-family: inherit;
  border-radius: 0;
}

.adm-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.adm-nav-item.active {
  background: rgba(74, 124, 89, 0.18);
  color: #6fcf8e;
  font-weight: 700;
}

.adm-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--sage);
  border-radius: 0 3px 3px 0;
}

.adm-nav-icon {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.adm-nav-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
.adm-sidebar-footer {
  padding: 10px 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.adm-sf-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.17s;
  text-align: left;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
}

.adm-sf-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.adm-sf-btn.danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.adm-sf-btn.danger:hover {
  background: rgba(239, 68, 68, 0.18);
}

/* ─── MAIN CONTENT AREA ─── */
.adm-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

/* Topbar */
.adm-main-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: 54px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.adm-sidebar-toggle {
  background: var(--paper2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink2);
  transition: all 0.17s;
  flex-shrink: 0;
  font-size: 1rem;
}

.adm-sidebar-toggle:hover {
  background: rgba(74, 124, 89, 0.1);
  border-color: var(--sage);
  color: var(--sage);
}

.adm-main-breadcrumb {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Draft/Publish zone */
.adm-draft-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.adm-draft-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(251, 191, 36, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(251, 191, 36, 0.3);
  white-space: nowrap;
}

.adm-discard-btn {
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.17s;
  font-family: inherit;
  white-space: nowrap;
}

.adm-discard-btn:hover {
  background: var(--paper3);
  color: var(--ink);
}

.adm-publish-btn {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage2) 100%);
  border: none;
  border-radius: 7px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: all 0.17s;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(74, 124, 89, 0.3);
}

.adm-publish-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(74, 124, 89, 0.4);
}

/* Topbar right */
.adm-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-clock {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.adm-close-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ef4444;
  font-size: 0.9rem;
  transition: all 0.17s;
}

.adm-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Panel body */
.adm-dash-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 44px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.adm-dash-body::-webkit-scrollbar {
  width: 5px;
}

.adm-dash-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}

.adm-dash-panel {
  display: none;
}

.adm-dash-panel.active {
  display: block;
  animation: panelIn 0.22s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section title */
.adm-dash-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Cards */
.adm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.adm-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-card-title i {
  color: var(--sage);
}

/* Stats grid */
.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.adm-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.adm-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.adm-stats-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--sage);
  margin-bottom: 4px;
}

.adm-stats-lbl {
  font-size: 0.64rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Tables */
.adm-res-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.adm-res-table th {
  text-align: left;
  font-weight: 800;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 9px 12px;
  border-bottom: 2px solid var(--border);
  background: var(--paper2);
  white-space: nowrap;
}

.adm-res-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.adm-res-table tr:last-child td {
  border-bottom: none;
}

.adm-res-table tr:hover td {
  background: rgba(74, 124, 89, 0.05);
}

.adm-drag-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}

.adm-drag-handle:hover {
  color: var(--sage);
}

.adm-drag-handle:active {
  cursor: grabbing;
}

.sortable-ghost td {
  background: rgba(74, 124, 89, 0.08) !important;
  opacity: 0.7;
}

/* Buttons */
.bp {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--sage);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.17s;
  font-family: inherit;
}

.bp:hover {
  background: var(--sage2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74, 124, 89, 0.3);
}

.bs {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--paper2);
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.17s;
  font-family: inherit;
}

.bs:hover {
  background: var(--paper3);
  color: var(--ink);
}

.bd {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.17s;
  font-family: inherit;
}

.bd:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Action icon buttons in tables */
.adm-act-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
  font-size: 0.82rem;
}

.adm-act-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
  background: rgba(74, 124, 89, 0.08);
}

.adm-act-btn.del:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

/* Category chips */
.adm-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adm-cat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s;
  cursor: default;
}

.adm-cat-chip:hover {
  border-color: var(--sage);
  background: rgba(74, 124, 89, 0.06);
}

.adm-cat-chip-name {
  outline: none;
  border: none;
  background: none;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  min-width: 60px;
  cursor: text;
}

.adm-cat-del {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0 0 0 4px;
  font-size: 0.8rem;
  transition: color 0.15s;
  line-height: 1;
}

.adm-cat-del:hover {
  color: #ef4444;
}

.adm-cat-chip-handle {
  color: var(--muted);
  cursor: grab;
  font-size: 0.85rem;
}

/* CV Upload zone */
.adm-cv-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.adm-cv-upload-zone:hover {
  border-color: var(--sage);
  background: rgba(74, 124, 89, 0.04);
}

/* ═══════════════════════════════════════════════════
   UNIVERSAL EDIT MODAL
   ═══════════════════════════════════════════════════ */
.adm-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.adm-modal-overlay.open {
  display: flex;
}

.adm-modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.4);
  animation: modalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.adm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.adm-modal-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.adm-modal-icon {
  color: var(--sage);
  font-size: 1.1rem;
}

.adm-modal-close-btn,
.adm-modal-delete-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.85rem;
}

.adm-modal-close-btn {
  color: var(--muted);
}

.adm-modal-close-btn:hover {
  background: var(--paper3);
  color: var(--ink);
}

.adm-modal-delete-btn {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.adm-modal-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.adm-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  scrollbar-width: thin;
}

.adm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--paper2);
}

.adm-modal-cancel {
  background: var(--paper2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  font-family: inherit;
}

.adm-modal-cancel:hover {
  background: var(--paper3);
  color: var(--ink);
}

.adm-modal-save {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage2) 100%);
  border: none;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.17s;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(74, 124, 89, 0.25);
}

.adm-modal-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(74, 124, 89, 0.4);
}

/* Delete Confirm Dialog */
.adm-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.adm-confirm-overlay.open {
  display: flex;
}

.adm-confirm-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  animation: admBoxIn 0.25s;
}

.adm-confirm-icon {
  font-size: 2.5rem;
  color: #f59e0b;
  margin-bottom: 12px;
  display: block;
}

.adm-confirm-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink);
}

.adm-confirm-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.adm-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ── Admin Bar (bottom) ── */
.admin-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 17, 23, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 10px 24px;
  z-index: 4500;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-bar.visible {
  display: flex;
}

.admin-bar-lbl {
  font-weight: 700;
  margin-right: auto;
  color: var(--sage2);
}

.ab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.76rem;
  transition: all 0.17s;
  font-family: inherit;
}

.ab:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ab.d {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.ab.d:hover {
  background: rgba(239, 68, 68, 0.35);
}

/* ══════════════════════════════════════════
   MOBILE / PHONE  ≤ 768px
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .adm-dashboard {
    flex-direction: column;
  }

  .adm-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    min-width: 0 !important;
    height: auto;
    max-height: 82vh;
    border-right: none;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    overflow: hidden;
  }

  .adm-sidebar.mob-open {
    transform: translateY(0);
  }

  .adm-sidebar.collapsed {
    transform: translateY(100%);
    width: 100% !important;
    min-width: 0 !important;
  }

  .adm-sidebar-brand {
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
  }

  .adm-sb-logo-sub {
    display: none;
  }

  .adm-idle-bar-wrap {
    width: 80px;
    margin-left: auto;
    margin-bottom: 0;
  }

  .adm-sb-session-row {
    display: none;
  }

  .adm-sidebar-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px;
    gap: 6px;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .adm-sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .adm-nav-group {
    display: contents;
  }

  .adm-nav-group-label {
    display: none;
  }

  .adm-nav-item {
    flex-shrink: 0;
    flex-direction: column;
    padding: 9px 12px;
    gap: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.66rem;
    font-weight: 600;
    width: auto;
    min-width: 68px;
    align-items: center;
    text-align: center;
    white-space: nowrap;
  }

  .adm-nav-item.active {
    background: rgba(74, 124, 89, 0.25);
    border-color: var(--sage);
  }

  .adm-nav-item.active::before {
    display: none;
  }

  .adm-nav-icon {
    font-size: 1.1rem;
    width: auto;
  }

  .adm-nav-text {
    font-size: 0.62rem;
  }

  .adm-sidebar-footer {
    flex-direction: row;
    padding: 8px 12px 16px;
    gap: 8px;
  }

  .adm-sf-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 6px;
    font-size: 0.7rem;
  }

  .adm-mob-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
  }

  .adm-mob-backdrop.open {
    display: block;
  }

  .adm-main-area {
    height: 100%;
    width: 100%;
  }

  .adm-main-topbar {
    padding: 0 14px;
    gap: 8px;
  }

  .adm-main-breadcrumb {
    font-size: 0.8rem;
  }

  .adm-draft-zone {
    gap: 5px;
  }

  .adm-draft-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .adm-discard-btn,
  .adm-publish-btn {
    padding: 5px 9px;
    font-size: 0.65rem;
  }

  .adm-dash-body {
    padding: 16px 14px 100px;
  }

  .adm-two-col,
  .adm-three-col,
  .adm-four-col {
    grid-template-columns: 1fr;
  }

  .adm-modal-box {
    max-width: 100%;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .adm-dash-body {
    padding: 12px 12px 120px;
  }

  .adm-res-table th,
  .adm-res-table td {
    padding: 8px;
  }

  .adm-res-table {
    font-size: 0.76rem;
  }
}

/* ════════════════════════════════════════
   INNER TABS (Certifications combined)
   ════════════════════════════════════════ */
.adm-inner-tabs {
  display:flex;gap:6px;flex-wrap:wrap;
  margin-bottom:20px;
  padding:4px;
  background:var(--paper2);
  border:1px solid var(--border);
  border-radius:10px;
  width:fit-content;
}
.adm-inner-tab {
  background:none;border:none;border-radius:7px;padding:7px 16px;
  font-size:.78rem;font-weight:700;cursor:pointer;color:var(--muted);
  display:flex;align-items:center;gap:6px;transition:all .18s;
  font-family:inherit;white-space:nowrap;
}
.adm-inner-tab:hover { background:var(--paper3);color:var(--ink); }
.adm-inner-tab.active { background:var(--sage);color:#fff;box-shadow:0 2px 8px rgba(74,124,89,.25); }
.adm-inner-panel { display:none; }
.adm-inner-panel.active { display:block;animation:panelIn .2s ease; }

/* ════════════════════════════════════════
   COLOR PICKERS — styled row
   ════════════════════════════════════════ */
.adm-color-row {
  display:flex;align-items:center;gap:8px;
}
.adm-color-row input[type="color"] {
  width:40px;height:40px;padding:2px;border-radius:8px;
  border:1.5px solid var(--border);cursor:pointer;flex-shrink:0;
  background:var(--paper);
}
.adm-color-hex {
  flex:1;font-family:monospace;font-size:.82rem;
  background:var(--paper);border:1.5px solid var(--border);
  border-radius:8px;padding:9px 10px;color:var(--ink);
  outline:none;transition:border-color .2s;
}
.adm-color-hex:focus { border-color:var(--sage); }
.adm-color-preview {
  width:36px;height:36px;border-radius:8px;
  border:1.5px solid var(--border);flex-shrink:0;
  transition:background .2s;
}

/* ════════════════════════════════════════
   PIN INPUT DIGITS (Login Step 2)
   ════════════════════════════════════════ */
.adm-pin-digit {
  width:44px;height:52px;text-align:center;
  font-size:1.4rem;font-weight:900;letter-spacing:.1em;
  border:2px solid var(--border);border-radius:10px;
  background:var(--paper);color:var(--ink);
  outline:none;transition:border-color .2s,box-shadow .2s;
  font-family:inherit;
}
.adm-pin-digit:focus {
  border-color:var(--sage);
  box-shadow:0 0 0 3px rgba(74,124,89,.18);
}
.adm-pin-digit.filled { border-color:var(--sage);background:rgba(74,124,89,.06); }

@media (max-width:480px) {
  .adm-pin-digit { width:38px;height:46px;font-size:1.2rem; }
  .adm-inner-tab { font-size:.72rem;padding:6px 11px; }
}
