/* ═══════════════════════════════════════════════════════════════════
 * RESOURCE CENTER — styles for recursos-legales, recursos-tecnicos,
 * and admin-recursos pages.
 * ═══════════════════════════════════════════════════════════════════ */

/* ── Search Bar ────────────────────────────────────────────────── */
.rc-search-wrap {
  max-width: 640px;
  margin: 0 auto 32px;
  position: relative;
}
.rc-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hl-fg-3);
  pointer-events: none;
}
.rc-search-icon svg { width: 20px; height: 20px; }
.rc-search-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--hl-font-ui);
  font-size: 15px;
  padding: 14px 48px 14px 52px;
  border-radius: 999px;
  border: 1.5px solid var(--hl-border);
  background: white;
  color: var(--hl-fg-1);
  outline: none;
  transition: border-color 140ms, box-shadow 140ms;
}
.rc-search-input::placeholder { color: var(--hl-fg-3); }
.rc-search-input:focus {
  border-color: var(--hl-blue-500);
  box-shadow: 0 0 0 4px rgba(20, 98, 174, 0.12);
}
body.tecnico-page .rc-search-input:focus {
  border-color: var(--hl-green-500);
  box-shadow: 0 0 0 4px rgba(13, 92, 83, 0.12);
}
.rc-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 999px;
  border: none;
  background: var(--hl-bg-soft);
  color: var(--hl-fg-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms;
}
.rc-search-clear:hover { background: var(--hl-border); }
.rc-search-clear svg { width: 14px; height: 14px; }

/* ── Category Filter Chips ─────────────────────────────────────── */
.rc-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.rc-chip {
  font-family: var(--hl-font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--hl-border);
  background: white;
  color: var(--hl-fg-2);
  cursor: pointer;
  transition: all 160ms var(--hl-ease-out);
  white-space: nowrap;
}
.rc-chip:hover {
  border-color: var(--hl-blue-400);
  color: var(--hl-blue-600);
}
body.tecnico-page .rc-chip:hover {
  border-color: var(--hl-green-500);
  color: var(--hl-green-600);
}
.rc-chip.active {
  background: var(--hl-blue-500);
  color: white;
  border-color: var(--hl-blue-500);
  box-shadow: 0 4px 12px -4px rgba(20, 98, 174, 0.35);
}
body.tecnico-page .rc-chip.active {
  background: var(--hl-green-500);
  border-color: var(--hl-green-500);
  box-shadow: 0 4px 12px -4px rgba(13, 92, 83, 0.35);
}

/* ── Result Count & List Bar ────────────────────────────────────── */
.rc-list-bar {
  margin-bottom: 16px;
}
.rc-count {
  font-family: var(--hl-font-ui);
  font-size: 13.5px;
  color: var(--hl-fg-3);
  margin: 0;
  text-align: center;
}

/* ── Compact List View ─────────────────────────────────────────── */
.rc-list {
  background: white;
  border: 1px solid var(--hl-border);
  border-radius: 16px;
  overflow: hidden;
}
.rc-list-head {
  display: grid;
  grid-template-columns: 1fr 120px 80px 80px 110px;
  gap: 12px;
  padding: 12px 20px;
  background: var(--hl-bg-soft);
  border-bottom: 1px solid var(--hl-border);
}
.rc-list-head span {
  font-family: var(--hl-font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hl-fg-3);
}
.rc-lh-stat { text-align: center; }

/* ── Row ───────────────────────────────────────────────────────── */
.rc-row {
  display: grid;
  grid-template-columns: 36px 1fr 120px 80px 80px 110px;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hl-border);
  cursor: pointer;
  transition: background 120ms;
}
.rc-row:last-child { border-bottom: none; }
.rc-row:hover { background: rgba(20, 98, 174, 0.025); }
body.tecnico-page .rc-row:hover { background: rgba(13, 92, 83, 0.025); }

.rc-row-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--hl-blue-50);
  color: var(--hl-blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.tecnico-page .rc-row-icon {
  background: var(--hl-green-50);
  color: var(--hl-green-500);
}
.rc-row-icon i { width: 18px; height: 18px; }

.rc-row-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rc-row-title {
  font-family: var(--hl-font-ui);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hl-navy-700);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-row-tags {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.rc-row-tags span {
  font-family: var(--hl-font-ui);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--hl-fg-3);
  padding: 1px 8px;
  background: var(--hl-bg-soft);
  border-radius: 999px;
  white-space: nowrap;
}

.rc-row-cat {
  font-family: var(--hl-font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--hl-fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-row-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--hl-font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--hl-fg-3);
}
.rc-row-stat i { width: 14px; height: 14px; }

.rc-row-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--hl-font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hl-blue-500);
  background: var(--hl-blue-50);
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 160ms;
  white-space: nowrap;
}
body.tecnico-page .rc-row-dl {
  color: var(--hl-green-500);
  background: var(--hl-green-50);
}
.rc-row-dl:hover {
  background: var(--hl-blue-500);
  color: white;
}
body.tecnico-page .rc-row-dl:hover {
  background: var(--hl-green-500);
  color: white;
}
.rc-row-dl i { width: 14px; height: 14px; }
.rc-row-dl span { display: inline; }

/* ── Pagination ────────────────────────────────────────────────── */
.rc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.rc-page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--hl-border);
  background: white;
  font-family: var(--hl-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--hl-fg-2);
  cursor: pointer;
  transition: all 160ms var(--hl-ease-out);
  padding: 0 4px;
}
.rc-page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--hl-blue-400);
  color: var(--hl-blue-600);
  background: var(--hl-blue-50);
}
body.tecnico-page .rc-page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--hl-green-500);
  color: var(--hl-green-600);
  background: var(--hl-green-50);
}
.rc-page-btn.active {
  background: var(--hl-blue-500);
  color: white;
  border-color: var(--hl-blue-500);
  box-shadow: 0 4px 12px -4px rgba(20, 98, 174, 0.35);
  font-weight: 600;
}
body.tecnico-page .rc-page-btn.active {
  background: var(--hl-green-500);
  border-color: var(--hl-green-500);
  box-shadow: 0 4px 12px -4px rgba(13, 92, 83, 0.35);
}
.rc-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.rc-page-arrow {
  min-width: 40px;
}
.rc-page-ellipsis {
  font-family: var(--hl-font-ui);
  font-size: 14px;
  color: var(--hl-fg-3);
  padding: 0 4px;
  user-select: none;
}

/* ── Empty State ───────────────────────────────────────────────── */
.rc-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--hl-fg-3);
}
.rc-empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  color: var(--hl-border);
}
.rc-empty p {
  font-family: var(--hl-font-ui);
  font-size: 15px;
  margin: 0;
}

/* ── Toast Notification ────────────────────────────────────────── */
.rc-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--hl-navy-700);
  color: white;
  font-family: var(--hl-font-ui);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(11, 30, 64, 0.35);
  z-index: 999;
  animation: rcToastIn 300ms var(--hl-ease-out) forwards;
  pointer-events: none;
}
@keyframes rcToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Ranked Lists (Most Downloaded / Most Viewed) ──────────────── */
.rc-ranked-section { padding-top: 48px; }
.rc-ranked-list {
  max-width: 800px;
  margin: 0 auto;
}
.rc-ranked-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hl-border);
  cursor: pointer;
  transition: background 160ms;
}
.rc-ranked-item:last-child { border-bottom: none; }
.rc-ranked-item:hover { background: rgba(20, 98, 174, 0.03); margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 12px; }
body.tecnico-page .rc-ranked-item:hover { background: rgba(13, 92, 83, 0.03); }
.rc-rank-num {
  font-family: var(--hl-font-display);
  font-size: 32px;
  font-weight: 600;
  font-style: italic;
  color: var(--hl-blue-500);
  min-width: 48px;
  text-align: center;
  line-height: 1;
}
body.tecnico-page .rc-rank-num { color: var(--hl-green-500); }
.rc-rank-body {
  flex: 1;
  min-width: 0;
}
.rc-rank-name {
  font-family: var(--hl-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--hl-navy-700);
  margin: 0 0 4px;
  line-height: 1.3;
}
.rc-rank-cat {
  font-family: var(--hl-font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--hl-fg-3);
  padding: 2px 10px;
  background: var(--hl-bg-soft);
  border-radius: 999px;
  display: inline-block;
}
.rc-rank-count {
  text-align: right;
  flex-shrink: 0;
}
.rc-rank-count-val {
  font-family: var(--hl-font-ui);
  font-size: 20px;
  font-weight: 700;
  color: var(--hl-navy-700);
  line-height: 1;
}
.rc-rank-count-label {
  font-family: var(--hl-font-ui);
  font-size: 11px;
  color: var(--hl-fg-3);
  margin-top: 2px;
}
.rc-ranked-empty {
  text-align: center;
  padding: 32px 0;
  font-family: var(--hl-font-ui);
  font-size: 14px;
  color: var(--hl-fg-3);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .rc-search-wrap { max-width: 100%; }
  .rc-list-head { display: none; }
  .rc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }
  .rc-row-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
  .rc-row-icon i { width: 16px; height: 16px; }
  .rc-row-name { flex: 1; min-width: 0; }
  .rc-row-title { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .rc-row-tags { display: none; }
  .rc-row-cat { display: none; }
  .rc-row-stat { display: none; }
  .rc-row-dl { flex-shrink: 0; padding: 8px; border-radius: 10px; }
  .rc-row-dl span { display: none; }
  .rc-ranked-item { gap: 14px; }
  .rc-rank-num { font-size: 26px; min-width: 36px; }
  .rc-rank-name { font-size: 15px; }
  .rc-rank-count-val { font-size: 17px; }
  .rc-page-btn { min-width: 36px; height: 36px; font-size: 13px; border-radius: 10px; }
}
@media (max-width: 520px) {
  .rc-filters { gap: 6px; }
  .rc-chip { font-size: 12px; padding: 6px 12px; }
  .rc-pagination { gap: 4px; }
  .rc-page-btn { min-width: 32px; height: 32px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════
 * ADMIN PAGE
 * ═══════════════════════════════════════════════════════════════════ */

/* ── PIN Gate ──────────────────────────────────────────────────── */
.admin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--hl-bg-soft);
}
.admin-gate-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  border: 1px solid var(--hl-border);
  box-shadow: var(--hl-shadow-3);
}
.admin-gate-card img {
  height: 64px;
  margin-bottom: 28px;
}
.admin-gate-card h1 {
  font-family: var(--hl-font-display);
  font-size: 24px;
  color: var(--hl-navy-700);
  margin: 0 0 8px;
}
.admin-gate-card p {
  font-family: var(--hl-font-ui);
  font-size: 14px;
  color: var(--hl-fg-2);
  margin: 0 0 28px;
}
.admin-pin-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--hl-font-ui);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.3em;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1.5px solid var(--hl-border);
  background: var(--hl-bg-soft);
  color: var(--hl-fg-1);
  outline: none;
  transition: border-color 140ms, box-shadow 140ms;
  margin-bottom: 20px;
}
.admin-pin-input:focus {
  border-color: var(--hl-blue-500);
  box-shadow: 0 0 0 4px rgba(20, 98, 174, 0.12);
  background: white;
}
.admin-pin-input.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
  animation: adminShake 400ms ease;
}
@keyframes adminShake {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-8px); }
  40%  { transform: translateX(8px); }
  60%  { transform: translateX(-6px); }
  80%  { transform: translateX(6px); }
}
.admin-pin-error {
  font-family: var(--hl-font-ui);
  font-size: 13px;
  color: #DC2626;
  margin: -12px 0 16px;
}
.admin-gate-btn {
  width: 100%;
  font-family: var(--hl-font-ui);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--hl-blue-500), var(--hl-blue-600));
  color: white;
  cursor: pointer;
  transition: transform 140ms, box-shadow 140ms;
  box-shadow: 0 8px 22px -8px rgba(20, 98, 174, 0.45);
}
.admin-gate-btn:hover { transform: translateY(-2px); }
.admin-gate-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Admin Dashboard ───────────────────────────────────────────── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.admin-stat-card {
  background: white;
  border: 1px solid var(--hl-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.admin-stat-val {
  font-family: var(--hl-font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--hl-navy-700);
  line-height: 1.1;
}
.admin-stat-label {
  font-family: var(--hl-font-ui);
  font-size: 12px;
  color: var(--hl-fg-3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Admin Form ────────────────────────────────────────────────── */
.admin-form-section {
  background: white;
  border: 1px solid var(--hl-border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
}
.admin-form-section h2 {
  font-family: var(--hl-font-display);
  font-size: 22px;
  color: var(--hl-navy-700);
  margin: 0 0 24px;
}
.admin-field {
  margin-bottom: 18px;
}
.admin-field label {
  display: block;
  font-family: var(--hl-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--hl-fg-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-field input,
.admin-field select {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--hl-font-ui);
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--hl-border);
  background: white;
  color: var(--hl-fg-1);
  outline: none;
  transition: border-color 140ms, box-shadow 140ms;
}
.admin-field input:focus,
.admin-field select:focus {
  border-color: var(--hl-blue-500);
  box-shadow: 0 0 0 4px rgba(20, 98, 174, 0.12);
}
.admin-field .hint {
  font-family: var(--hl-font-ui);
  font-size: 12px;
  color: var(--hl-fg-3);
  margin-top: 4px;
}

.admin-type-toggle {
  display: flex;
  gap: 8px;
}
.admin-type-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--hl-border);
  background: white;
  font-family: var(--hl-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--hl-fg-2);
  cursor: pointer;
  transition: all 160ms;
  text-align: center;
}
.admin-type-btn:hover { border-color: var(--hl-blue-400); }
.admin-type-btn.active {
  background: var(--hl-blue-500);
  color: white;
  border-color: var(--hl-blue-500);
}
.admin-type-btn.active.tecnico {
  background: var(--hl-green-500);
  border-color: var(--hl-green-500);
}

.admin-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hl-font-ui);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--hl-blue-500), var(--hl-blue-600));
  color: white;
  cursor: pointer;
  transition: transform 140ms, box-shadow 140ms;
  box-shadow: 0 8px 22px -8px rgba(20, 98, 174, 0.4);
}
.admin-submit-btn:hover { transform: translateY(-2px); }

/* ── Admin Resource List ───────────────────────────────────────── */
.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-list-header h2 {
  font-family: var(--hl-font-display);
  font-size: 22px;
  color: var(--hl-navy-700);
  margin: 0;
}
.admin-filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--hl-bg-soft);
  padding: 4px;
  border-radius: 10px;
}
.admin-filter-tab {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: var(--hl-font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--hl-fg-2);
  cursor: pointer;
  transition: all 140ms;
}
.admin-filter-tab.active {
  background: white;
  color: var(--hl-navy-700);
  box-shadow: var(--hl-shadow-1);
}

.admin-resource-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--hl-border);
  border-radius: 14px;
  margin-bottom: 10px;
  transition: all 160ms;
}
.admin-resource-row:hover { border-color: var(--hl-blue-200); }
.admin-res-info { flex: 1; min-width: 0; }
.admin-res-name {
  font-family: var(--hl-font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--hl-navy-700);
  margin: 0 0 4px;
}
.admin-res-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.admin-res-badge {
  font-family: var(--hl-font-ui);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.admin-res-badge.legal { background: var(--hl-blue-50); color: var(--hl-blue-600); }
.admin-res-badge.tecnico { background: var(--hl-green-50); color: var(--hl-green-600); }
.admin-res-badge.cat { background: var(--hl-bg-soft); color: var(--hl-fg-3); }
.admin-res-stats {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.admin-res-stat-item {
  font-family: var(--hl-font-ui);
  font-size: 12px;
  color: var(--hl-fg-3);
  display: flex;
  align-items: center;
  gap: 3px;
}
.admin-res-stat-item i { width: 14px; height: 14px; }
.admin-res-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.admin-action-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--hl-border);
  background: white;
  color: var(--hl-fg-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 140ms;
}
.admin-action-btn:hover { border-color: var(--hl-blue-300); color: var(--hl-blue-500); }
.admin-action-btn.delete:hover { border-color: #FCA5A5; color: #DC2626; background: #FEF2F2; }
.admin-action-btn i { width: 16px; height: 16px; }

/* ── Admin Edit Inline ─────────────────────────────────────────── */
.admin-edit-row {
  background: var(--hl-bg-soft);
  border: 1.5px solid var(--hl-blue-300);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 10px;
}
.admin-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-edit-grid input {
  font-family: var(--hl-font-ui);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--hl-border);
  background: white;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.admin-edit-grid input:focus { border-color: var(--hl-blue-500); }
.admin-edit-actions {
  display: flex;
  gap: 8px;
}
.admin-edit-save {
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  background: var(--hl-blue-500);
  color: white;
  font-family: var(--hl-font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.admin-edit-cancel {
  padding: 8px 20px;
  border-radius: 10px;
  border: 1px solid var(--hl-border);
  background: white;
  color: var(--hl-fg-2);
  font-family: var(--hl-font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.admin-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--hl-fg-3);
  font-family: var(--hl-font-ui);
  font-size: 14px;
}

/* ── Admin Responsive ──────────────────────────────────────────── */
@media (max-width: 880px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-edit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-form-section { padding: 22px 18px; }
  .admin-resource-row { flex-wrap: wrap; }
  .admin-res-stats { width: 100%; }
  .admin-gate-card { padding: 36px 24px; }
}
