/* ==========================================================================
   ATECH Admin v3 — dashboard SaaS tối giản (tham chiếu Linear / Vercel).
   Nền #0d0d0d, sidebar #0a0a0a, accent gold duy nhất, spacing scale 4px.
   Transition 160ms chỉ trên background/border/color/opacity/transform.
   ========================================================================== */

:root {
  --adm-bg: #0d0d0d;
  --adm-side-bg: #0a0a0a;
  --adm-surface: rgba(255, 255, 255, 0.02);
  --adm-ink: #f4f5f7;
  --adm-muted: rgba(233, 236, 242, 0.6);
  --adm-faint: rgba(233, 236, 242, 0.55);
  --adm-gold: #ffd700;
  --adm-gold-hover: #ffe34d;
  --adm-gold-soft: rgba(255, 215, 0, 0.1);
  --adm-gold-ring: rgba(255, 215, 0, 0.35);
  --adm-line: rgba(255, 255, 255, 0.08);
  --adm-line-strong: rgba(255, 255, 255, 0.16);
  --adm-green: #9bd7b5;
  --adm-green-bg: rgba(32, 103, 73, 0.15);
  --adm-danger: #f1a698;
  --adm-danger-hover: #f7beb4;
  --adm-on-gold: #141001;
  --adm-radius: 10px;
  --adm-radius-input: 8px;
  --adm-side-w: 260px;
  --adm-pad-x: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; }

body.adm-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--adm-bg);
  color: var(--adm-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar mảnh */
body.adm-page * {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
body.adm-page ::-webkit-scrollbar { width: 8px; height: 8px; }
body.adm-page ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}
body.adm-page ::-webkit-scrollbar-track { background: transparent; }

/* ---------- Focus ring gold thống nhất ---------- */
.adm-btn:focus-visible,
.adm-iconbtn:focus-visible,
.adm-linkbtn:focus-visible,
.adm-link:focus-visible,
.adm-nav-link:focus-visible,
.adm-brand:focus-visible,
.adm-skip:focus-visible,
.adm-input:focus-visible,
.adm-select:focus-visible,
.adm-textarea:focus-visible,
.adm-switch-input:focus-visible + .adm-switch-track {
  outline: 2px solid var(--adm-gold);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.adm-skip {
  position: fixed;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.adm-skip:focus-visible {
  clip-path: none;
  height: auto;
  width: auto;
  top: 16px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--adm-radius-input);
  background: var(--adm-gold);
  color: var(--adm-on-gold);
  font-weight: 600;
  text-decoration: none;
}

.adm-sr-only {
  position: absolute;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.adm-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.adm-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: var(--adm-side-w);
  flex-shrink: 0;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--adm-side-bg);
  border-right: 1px solid var(--adm-line);
}

.adm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: var(--adm-radius-input);
}
.adm-brand img { height: 36px; width: 36px; object-fit: contain; display: block; }
.adm-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.adm-brand-text b {
  color: var(--adm-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.adm-brand-text small {
  color: var(--adm-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.adm-nav { display: flex; flex-direction: column; gap: 20px; }
.adm-nav-group { display: flex; flex-direction: column; gap: 2px; }
.adm-nav-label {
  margin: 0 0 6px;
  padding: 0 12px;
  color: var(--adm-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.adm-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 12px 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--adm-radius-input) var(--adm-radius-input) 0;
  color: var(--adm-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.adm-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.adm-nav-link:hover { color: var(--adm-ink); background: rgba(255, 255, 255, 0.04); }
.adm-nav-link.is-active {
  color: var(--adm-gold);
  background: rgba(255, 215, 0, 0.08);
  border-left-color: var(--adm-gold);
}

/* User card cuối sidebar */
.adm-side-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 2px;
  border-top: 1px solid var(--adm-line);
}
.adm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--adm-gold-soft);
  color: var(--adm-gold);
  font-size: 13px;
  font-weight: 700;
}
.adm-side-user-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.adm-side-user-info b {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-side-user-info small {
  color: var(--adm-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius-input);
  background: transparent;
  color: var(--adm-muted);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.adm-iconbtn:hover { color: var(--adm-ink); background: rgba(255, 255, 255, 0.05); border-color: var(--adm-line-strong); }

/* ==========================================================================
   Main content
   ========================================================================== */
.adm-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px var(--adm-pad-x) 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adm-view { display: flex; flex-direction: column; gap: 16px; }
.adm-view[hidden] { display: none; }

.adm-view-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.adm-view-desc { margin: 4px 0 0; color: var(--adm-muted); font-size: 13px; }
.adm-view-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.adm-view-status { min-height: 1em; color: var(--adm-muted); font-size: 13px; }

/* ==========================================================================
   Buttons — một primary duy nhất (gold solid, chữ tối) + ghost
   ========================================================================== */
.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--adm-gold);
  border-radius: var(--adm-radius-input);
  background: var(--adm-gold);
  color: var(--adm-on-gold);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}
.adm-btn svg { flex-shrink: 0; }
.adm-btn:hover { background: var(--adm-gold-hover); border-color: var(--adm-gold-hover); }
.adm-btn:disabled { opacity: 0.55; cursor: default; }
.adm-btn--ghost {
  background: transparent;
  border-color: var(--adm-line-strong);
  color: var(--adm-ink);
}
.adm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--adm-ink);
}
.adm-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

.adm-link {
  color: var(--adm-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 160ms ease;
}
.adm-link:hover { color: var(--adm-gold); }

.adm-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--adm-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease;
}
.adm-linkbtn:hover { color: var(--adm-ink); }
.adm-linkbtn--danger { color: var(--adm-danger); }
.adm-linkbtn--danger:hover { color: var(--adm-danger-hover); }

/* ==========================================================================
   Stat cards (Tổng quan)
   ========================================================================== */
.adm-stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.adm-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
  transition: border-color 160ms ease;
}
.adm-stat:hover { border-color: var(--adm-line-strong); }
.adm-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--adm-radius);
  background: var(--adm-gold-soft);
  color: var(--adm-gold);
}
.adm-stat-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--adm-ink);
  overflow-wrap: anywhere;
}
.adm-stat-value--sm { font-size: 16px; line-height: 1.4; padding: 5px 0; }
.adm-stat-label { color: var(--adm-muted); font-size: 12px; }
.adm-quick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Breadcrumb nhỏ trên tiêu đề view ---------- */
.adm-crumb {
  margin: 0 0 6px;
  color: var(--adm-faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.adm-crumb span { color: var(--adm-muted); }

/* ---------- Tổng quan: nội dung phụ (recent + liên kết nhanh) ---------- */
.adm-overview-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.adm-recent-list { list-style: none; margin: 0; padding: 0; }
.adm-recent-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--adm-line);
  background: none;
  color: var(--adm-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.adm-recent-list li:last-child .adm-recent-btn { border-bottom: 0; }
.adm-recent-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease;
}
.adm-recent-btn:hover .adm-recent-title { color: var(--adm-gold); }
.adm-recent-meta { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.adm-recent-date { color: var(--adm-faint); font-size: 11px; white-space: nowrap; }
.adm-recent-empty { padding: 10px 0; color: var(--adm-faint); font-size: 13px; }

.adm-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.adm-links-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--adm-line);
  color: var(--adm-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 160ms ease;
}
.adm-links-list li:last-child .adm-links-item { border-bottom: 0; }
.adm-links-item:hover { color: var(--adm-gold); }
.adm-links-item svg { flex-shrink: 0; transition: transform 160ms ease; }
.adm-links-item:hover svg { transform: translateX(3px); }

/* ---------- Panel form: tiêu đề + nút "← Danh sách" ---------- */
.adm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.adm-panel-head h2 { margin: 0; }
.adm-panel-head .adm-linkbtn { min-height: 44px; padding: 0 4px; }

/* ==========================================================================
   Bảng dữ liệu
   ========================================================================== */
.adm-table-wrap {
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
  background: var(--adm-surface);
  overflow-x: auto;
}
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--adm-line);
  color: var(--adm-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.adm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--adm-line);
  vertical-align: middle;
}
.adm-table tbody tr { transition: background-color 160ms ease; }
.adm-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.adm-table tbody tr:last-child td { border-bottom: 0; }

.adm-cell-title { font-weight: 600; color: var(--adm-ink); }
.adm-cell-sub {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 46ch;
  margin-top: 3px;
  color: var(--adm-muted);
  font-size: 13px;
  font-weight: 400;
}

.adm-col-date { text-align: right; white-space: nowrap; color: var(--adm-muted); font-size: 13px; }
.adm-col-actions { text-align: right; white-space: nowrap; }
.adm-table th.adm-col-date,
.adm-table th.adm-col-actions { text-align: right; }
.adm-col-actions .adm-linkbtn + .adm-linkbtn { margin-left: 16px; }

/* Status pill */
.adm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.adm-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.adm-pill--draft { background: rgba(255, 255, 255, 0.06); color: var(--adm-muted); }
.adm-pill--published { background: var(--adm-green-bg); color: var(--adm-green); }

/* Empty state */
.adm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 44px 16px;
  text-align: center;
  color: var(--adm-muted);
}
.adm-empty svg { width: 34px; height: 34px; opacity: 0.5; }
.adm-empty p { margin: 0; font-size: 14px; }

/* Khi đang sửa: panel thay thế bảng */
.adm-view.is-editing .adm-table-wrap,
.adm-view.is-editing .adm-view-status { display: none; }

/* ==========================================================================
   Form panel + inputs
   ========================================================================== */
.adm-panel {
  padding: 24px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
}
.adm-panel[hidden] { display: none; }
.adm-panel h2 { margin: 0 0 18px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

.adm-form { display: flex; flex-direction: column; gap: 16px; }
.adm-field { display: flex; flex-direction: column; gap: 6px; }
.adm-label { font-size: 13px; font-weight: 500; color: var(--adm-ink); }

.adm-input,
.adm-select,
.adm-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--adm-line-strong);
  border-radius: var(--adm-radius-input);
  background: rgba(0, 0, 0, 0.35);
  color: var(--adm-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.adm-input:hover,
.adm-select:hover,
.adm-textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.adm-input--lg { font-size: 16px; padding: 11px 14px; }
.adm-select { min-height: 40px; }
.adm-textarea { resize: vertical; line-height: 1.6; }
.adm-textarea--mono {
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.adm-hint { margin: 0; color: var(--adm-faint); font-size: 11px; }
.adm-hint code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--adm-line);
  font-size: 11px;
}

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

.adm-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-form-msg { color: var(--adm-muted); font-size: 13px; }

/* Card (Cấu hình) */
.adm-card {
  padding: 24px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
}
.adm-card h2 { margin: 0 0 16px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Toggle switch (checkbox tự làm) ---------- */
.adm-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  margin: 16px 0;
}
.adm-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.adm-switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--adm-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.adm-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--adm-ink);
  transition: transform 160ms ease, background-color 160ms ease;
}
.adm-switch-input:checked + .adm-switch-track {
  background: var(--adm-gold);
  border-color: var(--adm-gold);
}
.adm-switch-input:checked + .adm-switch-track .adm-switch-knob {
  transform: translateX(18px);
  background: var(--adm-on-gold);
}

/* ---------- Skeleton shimmer ---------- */
.adm-skel { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.adm-skel-row td { border-bottom: 1px solid var(--adm-line); }
.adm-table tbody tr.adm-skel-row:last-child td { border-bottom: 0; }
.adm-table tbody tr.adm-skel-row:hover { background: transparent; }
.adm-skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: adm-shimmer 1.4s ease infinite;
}
.adm-skel-line:nth-child(2) { width: 62%; }
@keyframes adm-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- Footer ---------- */
.adm-foot {
  padding: 18px var(--adm-pad-x) 28px;
  border-top: 1px solid var(--adm-line);
  color: var(--adm-faint);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Trang 403 / chưa đăng nhập
   ========================================================================== */
.adm-page--denied { justify-content: center; }
.adm-denied {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px;
}
.adm-denied-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: var(--adm-radius);
  background: var(--adm-gold-soft);
  color: var(--adm-gold);
}
.adm-denied h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.adm-denied p { margin: 0; max-width: 42ch; color: var(--adm-muted); font-size: 14px; }
.adm-denied .adm-btn { margin-top: 10px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1079.98px) {
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959.98px) {
  :root { --adm-pad-x: 20px; }
  .adm-overview-grid { grid-template-columns: 1fr; }
  .adm-shell { flex-direction: column; }
  .adm-side {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--adm-line);
    overflow: visible;
  }
  .adm-brand { margin-right: auto; padding: 0; }
  .adm-nav {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    order: 3;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Nav group trải ngang: label ẩn, link xếp hàng cuộn ngang */
  .adm-nav-group { display: contents; }
  .adm-nav-label { display: none; }
  .adm-nav-link {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: var(--adm-radius-input) var(--adm-radius-input) 0 0;
    padding: 8px 12px;
    min-height: 38px;
  }
  .adm-nav-link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--adm-gold);
  }
  .adm-side-user { margin-left: 0; padding: 0; border-top: 0; order: 2; }
  .adm-content { padding: 24px var(--adm-pad-x) 48px; }
  .adm-view-head--row { flex-direction: column; }
  .adm-view-head--row .adm-btn { align-self: flex-start; }
  .adm-foot { border-top: 0; padding-top: 0; }
}

@media (max-width: 639.98px) {
  .adm-fields { grid-template-columns: 1fr; }
  .adm-stats { grid-template-columns: 1fr; }
  .adm-links-list { grid-template-columns: 1fr; }
  .adm-side-user-info { display: none; }
  .adm-panel, .adm-card { padding: 18px 16px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .adm-btn,
  .adm-iconbtn,
  .adm-linkbtn,
  .adm-link,
  .adm-nav-link,
  .adm-stat,
  .adm-table tbody tr,
  .adm-input,
  .adm-select,
  .adm-textarea,
  .adm-switch-track,
  .adm-switch-knob,
  .adm-recent-title,
  .adm-links-item,
  .adm-links-item svg { transition: none; }
  .adm-skel-line { animation: none; }
}

/* ---------- Trang công khai (/blog, /ky-nang): grid card + badge danh mục ---------- */
.adm-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.adm-module {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
}
.adm-module h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.adm-module h2 a { color: inherit; text-decoration: none; }
.adm-module h2 a:hover { color: var(--adm-gold); }
.adm-module p { margin: 0; font-size: 13.5px; }

.adm-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--adm-line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--adm-muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.adm-badge--ai { background: rgba(139, 116, 255, 0.14); border-color: rgba(139, 116, 255, 0.35); color: #beb2ff; }
.adm-badge--automation { background: rgba(96, 178, 235, 0.14); border-color: rgba(96, 178, 235, 0.35); color: #9ed2f5; }
.adm-badge--website { background: var(--adm-gold-soft); border-color: var(--adm-gold-ring); color: var(--adm-gold); }
.adm-badge--marketing { background: rgba(240, 130, 160, 0.14); border-color: rgba(240, 130, 160, 0.35); color: #f4aec4; }
.adm-badge--other { background: rgba(255, 255, 255, 0.06); border-color: var(--adm-line-strong); color: var(--adm-muted); }

.adm-skill-card .adm-skill-desc { color: var(--adm-muted); }
.adm-skill-card .adm-skill-link { font-size: 13.5px; }
.adm-skill-card .adm-skill-date { margin-top: auto; font-size: 12px; }

main.adm-main h1 { margin: 0 0 20px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Header/main trang công khai (/blog, /ky-nang) ---------- */
.adm-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--adm-pad-x);
  background: var(--adm-side-bg);
  border-bottom: 1px solid var(--adm-line);
}
.adm-top .adm-brand { margin-right: auto; }
.adm-title { font-size: 15px; font-weight: 600; color: var(--adm-ink); }
.adm-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px var(--adm-pad-x) 48px;
}
