:root {
  --bg: #090018;
  --panel: rgba(255,255,255,.075);
  --panel-2: rgba(255,255,255,.105);
  --line: rgba(255,255,255,.14);
  --text: #ffffff;
  --muted: #d8c8ef;
  --pink: #ff4fde;
  --pink-2: #ff9df2;
  --purple: #8b5cff;
  --danger: #ff3f73;
  --good: #58ffb2;
  --warn: #ffd36a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,79,222,.22), transparent 35%),
    radial-gradient(circle at bottom right, rgba(139,92,255,.20), transparent 38%),
    var(--bg);
  color: var(--text);
}

.mina-cms {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.cms-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: rgba(8, 0, 24, .82);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.cms-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.cms-logo-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 0 24px rgba(255,79,222,.35);
  font-size: 24px;
}

.cms-logo h1 {
  margin: 0;
  font-size: 22px;
  color: var(--pink-2);
}

.cms-logo p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cms-nav {
  display: grid;
  gap: 9px;
}

.cms-nav button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 14px;
  text-align: left;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.cms-nav button:hover,
.cms-nav button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,79,222,.20), rgba(139,92,255,.18));
  border-color: rgba(255,255,255,.13);
}

.cms-links {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.cms-links a {
  color: var(--pink-2);
  text-decoration: none;
  font-weight: 700;
}

.cms-main {
  padding: 26px;
  min-width: 0;
}

.cms-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.cms-top h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  color: #fff;
  text-shadow: 0 0 16px rgba(255,79,222,.25);
}

.cms-top p,
.muted {
  color: var(--muted);
}

.cms-top-actions,
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cms-btn {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.cms-btn:hover {
  filter: brightness(1.15);
}

.cms-btn.primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  box-shadow: 0 0 22px rgba(255,79,222,.22);
}

.cms-btn.danger {
  background: rgba(255,63,115,.24);
  border-color: rgba(255,63,115,.45);
}

.cms-tab {
  display: none;
}

.cms-tab.active {
  display: block;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card,
.cms-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 0 28px rgba(255,79,222,.08);
}

.stat-card {
  padding: 20px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 38px;
  color: var(--pink-2);
}

.cms-panel {
  padding: 20px;
  margin-bottom: 18px;
}

.cms-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--pink-2);
}

.workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.workflow span {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-weight: 800;
}

.skill-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.skill-form input,
.skill-form textarea,
.cms-search {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  color: #fff;
  padding: 13px 14px;
  outline: none;
}

.skill-form textarea {
  min-height: 94px;
  grid-column: span 2;
  resize: vertical;
}

.full {
  grid-column: span 2;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.panel-head .cms-search {
  max-width: 360px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 11px;
  border-bottom: 1px solid rgba(255,255,255,.11);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--pink-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.good {
  background: rgba(88,255,178,.12);
  color: var(--good);
}

.badge.warn {
  background: rgba(255,211,106,.13);
  color: var(--warn);
}

.row-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
}

.icon-btn.edit {
  background: var(--purple);
}

.icon-btn.delete {
  background: var(--danger);
}

.icon-btn.youtube {
  background: #ff0033;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1.5px dashed rgba(255,157,242,.55);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  cursor: pointer;
  text-align: center;
  padding: 24px;
}

.upload-box span {
  font-size: 22px;
  font-weight: 900;
  color: var(--pink-2);
}

.upload-box small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.youtube-list {
  display: grid;
  gap: 12px;
}

.youtube-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
}

.youtube-item strong {
  display: block;
  margin-bottom: 4px;
}

.youtube-item small {
  color: var(--muted);
}

@media (max-width: 980px) {
  .mina-cms {
    grid-template-columns: 1fr;
  }

  .cms-sidebar {
    position: relative;
    height: auto;
  }

  .cms-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cms-top {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 680px) {
  .cms-main {
    padding: 16px;
  }

  .cms-nav,
  .stat-grid,
  .skill-form {
    grid-template-columns: 1fr;
  }

  .skill-form textarea,
  .full {
    grid-column: span 1;
  }

  .panel-head,
  .youtube-item {
    flex-direction: column;
    align-items: stretch;
  }
}
/* ==============================
   MINA ADMIN WIKI UI - NEON FIX
   Dán cuối file css/admin-wiki.css
================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255, 78, 220, .28), transparent 32%),
    radial-gradient(circle at top right, rgba(120, 71, 255, .28), transparent 35%),
    linear-gradient(135deg, #12001f 0%, #070012 48%, #1b0638 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .22;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 87, 230, .75),
    0 0 22px rgba(157, 91, 255, .5);
}

h2 {
  margin-top: 34px;
  font-size: 28px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 80, 220, .55);
}

p {
  color: #ffd7fb;
}

/* Khung tổng */
body > * {
  position: relative;
  z-index: 1;
}

body {
  padding: 32px;
}

/* Form admin */
form,
#skillForm,
.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  padding: 22px;
  margin: 22px 0;
  border: 1px solid rgba(255, 105, 235, .28);
  border-radius: 24px;
  background: rgba(22, 5, 44, .72);
  box-shadow:
    0 18px 60px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
}

/* Label */
label {
  font-weight: 700;
  color: #ffd6fb;
  font-size: 14px;
}

/* Input / select / textarea */
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 135, 235, .3);
  border-radius: 14px;
  padding: 10px 13px;
  color: #fff;
  background: rgba(8, 0, 20, .76);
  outline: none;
  transition: .2s ease;
}

textarea {
  min-height: 78px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,.48);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ff63df;
  box-shadow:
    0 0 0 3px rgba(255, 99, 223, .18),
    0 0 18px rgba(255, 99, 223, .25);
}

/* Checkbox */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: unset;
  accent-color: #ff4fde;
}

/* Button */
button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff4fde, #8b5cff);
  box-shadow:
    0 8px 22px rgba(255, 79, 222, .28),
    0 0 0 1px rgba(255,255,255,.12) inset;
  transition: .2s ease;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

button:active {
  transform: translateY(0);
}

/* Nút xoá */
button.delete,
button.btn-delete,
button[onclick*="delete"],
button[onclick*="remove"] {
  background: linear-gradient(135deg, #ff3b73, #b21c4b);
}

/* Bảng danh sách skill */
table {
  width: 100%;
  margin-top: 18px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(17, 4, 35, .78);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
  border: 1px solid rgba(255, 105, 235, .22);
}

thead th {
  padding: 16px 14px;
  text-align: left;
  font-size: 14px;
  color: #ffb8f5;
  background: linear-gradient(135deg, rgba(255, 79, 222, .18), rgba(139, 92, 255, .16));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

tbody td {
  padding: 15px 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

tbody tr {
  transition: .18s ease;
}

tbody tr:hover {
  background: rgba(255, 79, 222, .08);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Badge hot */
td {
  vertical-align: middle;
}

/* Mobile */
@media (max-width: 1000px) {
  body {
    padding: 18px;
  }

  form,
  #skillForm,
  .admin-form {
    grid-template-columns: repeat(2, 1fr);
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  form,
  #skillForm,
  .admin-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  h1 {
    font-size: 30px;
  }
}
.mina-upload-box {
  margin-top: 10px;
}

.mina-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5bd7, #7c4dff);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 91, 215, 0.45);
  transition: 0.25s ease;
}

.mina-upload-label:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(255, 91, 215, 0.7);
}

.mina-upload-preview {
  margin-top: 12px;
  min-height: 90px;
  border: 1px dashed rgba(255, 120, 230, 0.45);
  border-radius: 16px;
  padding: 12px;
  color: #d9b7ff;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mina-upload-preview img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 14px rgba(255, 91, 215, 0.45);
}

.mina-upload-preview p {
  margin: 0;
  font-size: 14px;
  color: #f3d9ff;
}
/* =====================================================
   MINA ADMIN TOPBAR
===================================================== */

.mina-admin-topbar {
  width: calc(100% - 48px);
  max-width: 1580px;
  margin: 20px auto 10px;
  padding: 12px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  background: rgba(20, 7, 42, 0.88);
  border: 1px solid rgba(227, 69, 220, 0.28);
  border-radius: 18px;

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.25),
    0 0 24px rgba(180, 71, 255, 0.08);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  position: sticky;
  top: 12px;
  z-index: 1000;
}

.mina-admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;

  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.mina-admin-brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.mina-admin-brand small {
  display: block;
  margin-top: 3px;

  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.mina-admin-logo {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 13px;
  color: #ffffff;
  font-size: 20px;

  background: linear-gradient(135deg, #f146d7, #784bff);

  box-shadow:
    0 0 18px rgba(238, 68, 218, 0.38),
    0 8px 20px rgba(121, 75, 255, 0.24);
}

.mina-admin-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.mina-admin-nav-link {
  min-height: 38px;
  padding: 9px 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  text-decoration: none;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mina-admin-nav-link:hover {
  transform: translateY(-2px);

  border-color: rgba(238, 69, 218, 0.5);

  background: linear-gradient(
    135deg,
    rgba(238, 69, 218, 0.88),
    rgba(126, 76, 255, 0.88)
  );

  box-shadow: 0 8px 22px rgba(164, 71, 255, 0.25);
}

.mina-admin-logout {
  border-color: rgba(255, 104, 145, 0.22);
}

.mina-admin-logout:hover {
  background: linear-gradient(135deg, #e83f84, #a44cff);
}

/* Tablet */
@media (max-width: 900px) {
  .mina-admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mina-admin-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .mina-admin-topbar {
    width: calc(100% - 24px);
    margin-top: 10px;
    padding: 12px;

    position: static;
  }

  .mina-admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mina-admin-nav-link {
    width: 100%;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 12px;
  }
}
/* Mina CMS - Xếp 2 bộ lọc trên cùng một hàng */
.wiki-filter-row,
.filters-row,
.filter-group-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: center !important;
}

/* Các ô select bên trong */
.wiki-filter-row select,
.filters-row select,
.filter-group-row select {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Điện thoại nhỏ vẫn giữ gọn */
@media (max-width: 480px) {
  .wiki-filter-row,
  .filters-row,
  .filter-group-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .wiki-filter-row select,
  .filters-row select,
  .filter-group-row select {
    font-size: 11px !important;
    padding: 7px 25px 7px 9px !important;
  }
}
