* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #07080d;
  --bg-soft: #0b0d14;
  --panel: rgba(13, 15, 24, 0.74);
  --panel-strong: rgba(18, 20, 32, 0.88);
  --surface: rgba(255,255,255,0.045);
  --surface-strong: rgba(255,255,255,0.072);
  --border: rgba(255,255,255,0.092);
  --border-soft: rgba(255,255,255,0.058);
  --accent: #828fff;
  --accent-strong: #5e6ad2;
  --accent-2: #f76cc6;
  --accent-glow: rgba(113,112,255,0.38);
  --text: #f7f8f8;
  --text-soft: #d0d6e0;
  --muted: #8a8f98;
  --muted-2: #62666d;
  --danger: #ff6b7f;
  --danger-bg: rgba(255,95,115,0.13);
  --ok: #10b981;
  --ok-bg: rgba(16,185,129,0.13);
  --radius: 18px;
}
html[data-theme="Light"] {
  --bg: #f4f6fb;
  --bg-soft: #eef1f8;
  --panel: rgba(255,255,255,0.78);
  --panel-strong: rgba(255,255,255,0.92);
  --surface: rgba(15,23,42,0.045);
  --surface-strong: rgba(15,23,42,0.075);
  --border: rgba(15,23,42,0.10);
  --border-soft: rgba(15,23,42,0.06);
  --accent: #5b6ad9;
  --accent-strong: #475bd1;
  --accent-2: #c44b9a;
  --accent-glow: rgba(91,106,217,0.30);
  --text: #1f2540;
  --text-soft: #424a6b;
  --muted: #6b7393;
  --muted-2: #98a0bd;
  --danger: #d6334b;
  --danger-bg: rgba(214,51,75,0.10);
  --ok: #0f9b6e;
  --ok-bg: rgba(15,155,110,0.10);
  color-scheme: light;
}
html { color-scheme: dark; scroll-behavior: smooth; }
html[data-theme="Light"] body {
  background:
    radial-gradient(circle at 10% -8%, rgba(113,112,255,0.22), transparent 29rem),
    radial-gradient(circle at 86% 0%, rgba(247,108,198,0.14), transparent 31rem),
    radial-gradient(circle at 50% 108%, rgba(65,209,255,0.14), transparent 34rem),
    linear-gradient(180deg, #f1f4fb 0%, #e7ebf6 50%, #f1f4fb 100%);
}html[data-theme="Light"] .admin-nav,
html[data-theme="Light"] .section,
html[data-theme="Light"] .stat-box {
  background: rgba(255,255,255,0.65);
  box-shadow: 0 18px 44px rgba(31,41,80,0.08), inset 0 1px 0 rgba(255,255,255,0.55);
}
html[data-theme="Light"] .admin-header {
  background: rgba(255,255,255,0.72);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 10px 30px rgba(31,41,80,0.06);
}
html[data-theme="Light"] .save-dock {
  background: rgba(255,255,255,0.78);
  border-color: var(--border);
  box-shadow: 0 18px 50px rgba(31,41,80,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
}
html[data-theme="Light"] .item-row,
html[data-theme="Light"] .template-option {
  background: rgba(255,255,255,0.65);
  border-color: var(--border-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
html[data-theme="Light"] .item-row:hover {
  background: rgba(91,106,217,0.06);
  border-color: rgba(91,106,217,0.30);
  box-shadow: 0 14px 32px rgba(31,41,80,0.10), 0 0 22px rgba(91,106,217,0.10);
}
html[data-theme="Light"] .template-option:has(input:checked) {
  background: rgba(91,106,217,0.10);
  border-color: rgba(91,106,217,0.45);
  box-shadow: 0 14px 32px rgba(91,106,217,0.14);
}
html[data-theme="Light"] .template-option b { color: var(--text); }
html[data-theme="Light"] .stat-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
}
html[data-theme="Light"] .section {
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
}
html[data-theme="Light"] .section:hover {
  border-color: rgba(91,106,217,0.30);
  box-shadow: 0 22px 50px rgba(31,41,80,0.10), 0 0 30px rgba(91,106,217,0.12);
}
html[data-theme="Light"] .stat-box:hover {
  border-color: rgba(91,106,217,0.32);
  box-shadow: 0 18px 42px rgba(31,41,80,0.10), 0 0 26px rgba(91,106,217,0.14);
}
html[data-theme="Light"] .template-option:hover {
  border-color: rgba(91,106,217,0.36);
  background: rgba(91,106,217,0.06);
  box-shadow: 0 16px 36px rgba(31,41,80,0.10), 0 0 24px rgba(91,106,217,0.14);
}
html[data-theme="Light"] .admin-header a {
  background: rgba(15,23,42,0.04);
  border-color: var(--border);
}
html[data-theme="Light"] .msg-ok { color: #0f7a52; }
html[data-theme="Light"] .msg-err { color: #b1233a; }
html[data-theme="Light"] .admin-nav a:hover { color: var(--text); }
html[data-theme="Light"] .admin-nav a.is-active svg { color: var(--accent); }
html[data-theme="Light"] .admin-nav-indicator {
  background: linear-gradient(135deg, rgba(91,106,217,0.16), rgba(196,75,154,0.10));
  border-color: rgba(91,106,217,0.32);
  box-shadow: 0 10px 26px rgba(91,106,217,0.16), inset 0 1px 0 rgba(255,255,255,0.55);
}
html[data-theme="Light"] .header-pill {
  color: var(--accent-strong);
  border-color: rgba(91,106,217,0.30);
  background: rgba(91,106,217,0.10);
}
html[data-theme="Light"] input,
html[data-theme="Light"] select,
html[data-theme="Light"] textarea {
  background: rgba(255,255,255,0.85);
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="Light"] .help { background: rgba(255,255,255,0.5); }
html[data-theme="Light"] .stat-box::before { background: rgba(91,106,217,0.16); }
html[data-theme="Light"] .pwd-eye {
  background: rgba(15,23,42,0.045);
  color: var(--text-soft);
}
html[data-theme="Light"] button,
html[data-theme="Light"] .btn {
  background: rgba(255,255,255,0.85);
  color: var(--text);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
html[data-theme="Light"] button:hover,
html[data-theme="Light"] .btn:hover {
  background: rgba(255,255,255,1);
  border-color: rgba(91,106,217,0.30);
  box-shadow: 0 10px 22px rgba(31,41,80,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
}
html[data-theme="Light"] .btn-danger {
  background: rgba(214,51,75,0.10);
  color: var(--danger);
  border-color: rgba(214,51,75,0.32);
}
html[data-theme="Light"] .btn-danger:hover {
  background: rgba(214,51,75,0.16);
  border-color: rgba(214,51,75,0.50);
  color: #a82238;
}
html[data-theme="Light"] .btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  border-color: rgba(91,106,217,0.40);
  box-shadow: 0 16px 32px rgba(91,106,217,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
}
html[data-theme="Light"] .btn-primary:hover {
  background: linear-gradient(135deg, #4858c5, #6a78dc);
  border-color: rgba(91,106,217,0.55);
  box-shadow: 0 20px 40px rgba(91,106,217,0.30), inset 0 1px 0 rgba(255,255,255,0.22);
}
html[data-theme="Light"] #admin-theme-toggle {
  background: rgba(255,255,255,0.85);
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, sans-serif;
  font-feature-settings: "cv01", "cv03", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 10% -8%, rgba(113,112,255,0.34), transparent 29rem),
    radial-gradient(circle at 86% 0%, rgba(247,108,198,0.15), transparent 31rem),
    radial-gradient(circle at 50% 108%, rgba(65,209,255,0.10), transparent 34rem),
    linear-gradient(180deg, #07080d 0%, #0b0d14 48%, #07080d 100%);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.62), transparent 72%);
}
body::after {
  inset: -25%;
  background:
    radial-gradient(circle at 24% 18%, rgba(130,143,255,0.22), transparent 22%),
    radial-gradient(circle at 74% 48%, rgba(247,108,198,0.12), transparent 24%);
  filter: blur(58px);
  opacity: .7;
  animation: admin-ambient 32s ease-in-out infinite alternate;
}
@keyframes admin-ambient {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.04); }
}
body > * { position: relative; z-index: 1; }
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-box {
  position: relative;
  width: min(430px, 100%);
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  box-shadow: 0 30px 100px rgba(0,0,0,.54), inset 0 1px 0 rgba(255,255,255,.11);
  backdrop-filter: blur(24px);
  overflow: hidden;
}
.login-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(130,143,255,.72), rgba(255,255,255,.09), rgba(247,108,198,.30));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.login-box::after { content:""; position:absolute; right:-60px; top:-70px; width:180px; height:180px; border-radius:999px; background:rgba(113,112,255,.18); filter:blur(14px); }
.login-box > * { position: relative; z-index: 1; }
.login-box h2 { text-align: center; margin-bottom: 26px; font-size: 26px; font-weight: 590; letter-spacing: -0.05em; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7,8,13,0.70);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus {
  border-color: rgba(130,143,255,.76);
  background: rgba(14,16,25,.94);
  box-shadow: 0 0 0 4px rgba(113,112,255,.13), 0 12px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
}
textarea { min-height: 104px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
  font-weight: 510;
  color: var(--text);
  background: rgba(255,255,255,0.045);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
  transition: transform .18s cubic-bezier(.25,.8,.25,1), background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.078); border-color: rgba(255,255,255,.16); box-shadow: 0 12px 28px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.08); }
button:active, .btn:active { transform: translateY(0); }
button[disabled], .btn[disabled] { opacity: .38; cursor: not-allowed; transform: none !important; }
.btn-primary { background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: #fff; border-color: rgba(130,143,255,.50); box-shadow: 0 16px 34px rgba(94,106,210,.26), inset 0 1px 0 rgba(255,255,255,.16); }
.btn-primary:hover { background: linear-gradient(135deg, #6875e4, #9aa4ff); box-shadow: 0 20px 42px rgba(94,106,210,.36), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-danger { background: var(--danger-bg); color: #ffd8de; border-color: rgba(255,95,115,.30); }
.btn-danger:hover { background: rgba(255,95,115,.21); border-color: rgba(255,95,115,.48); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.btn-block { width: 100%; display: flex; }

/* Admin layout */
.admin { display: none; }
.admin-header {
  background: rgba(8, 9, 16, .74);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 14px 40px rgba(0,0,0,.30);
}
.admin-header h1 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-header h1::before { content:""; width: 8px; height: 8px; border-radius:999px; background: var(--ok); box-shadow: 0 0 12px rgba(16,185,129,.5); }
.header-pill { font-size: 11px; font-weight: 510; letter-spacing: 0; color: #dfe2ff; padding: 4px 9px; border: 1px solid rgba(130,143,255,.38); border-radius: 999px; background: rgba(113,112,255,.14); }
.admin-header a { color: var(--text-soft) !important; border: 1px solid var(--border); background: rgba(255,255,255,.04); padding: 8px 12px; border-radius: 999px; }
.admin-header a:hover { color: var(--text) !important; border-color: rgba(130,143,255,.50); }
.admin-body {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px 24px 84px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.admin-body::after { content: ""; }
.admin-nav {
  position: sticky;
  top: 78px;
  grid-column: 1;
  justify-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 54px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.055);
}
.admin-nav-title {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px 14px;
  font-weight: 600;
}
.admin-nav a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: color .25s ease;
}
.admin-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted-2);
  transition: color .25s ease, transform .35s cubic-bezier(.5,1.4,.4,1);
}
.admin-nav a:hover { color: var(--text); }
.admin-nav a:hover svg { color: var(--text-soft); }
.admin-nav a.is-active {
  color: var(--text);
  background: transparent;
  border-color: transparent;
}
.admin-nav a.is-active svg {
  color: #a5b1ff;
  transform: scale(1.08);
}
.admin-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(116,123,255,.22), rgba(167,139,250,.14));
  border: 1px solid rgba(130,143,255,.30);
  box-shadow: 0 8px 24px rgba(94,106,210,.18), inset 0 1px 0 rgba(255,255,255,.06);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition:
    transform .42s cubic-bezier(.55,1.5,.4,1),
    width .42s cubic-bezier(.55,1.5,.4,1),
    height .42s cubic-bezier(.55,1.5,.4,1),
    opacity .28s ease;
  will-change: transform, width, height;
}
.admin-main { min-width: 0; grid-column: 2; }
#save-msg { position: sticky; top: 74px; z-index: 9; }
.section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.028));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 22px 58px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.07);
  scroll-margin-top: 92px;
  transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.32s ease, border-color 0.24s ease;
}
.section:hover {
  transform: translateY(-4px);
  border-color: rgba(130,143,255,.28);
  box-shadow: 0 28px 70px rgba(0,0,0,.32), 0 0 38px rgba(116,123,255,.14), inset 0 1px 0 rgba(255,255,255,.08);
  will-change: transform;
}
.section::before { content: none; }
.section::after { content: none; }
.section > * { position: relative; z-index: 1; }
.section h3 { margin-bottom: 18px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; color: var(--text); }
label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.01em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.item-row {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background: rgba(7,8,13,0.54);
  border: 1px solid var(--border-soft);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.item-row:hover { border-color: rgba(130,143,255,.30); background: rgba(255,255,255,.06); transform: translateY(-3px); box-shadow: 0 16px 38px rgba(0,0,0,.28), 0 0 24px rgba(116,123,255,.12); }
.item-row.dragging { opacity: .54; border-color: rgba(130,143,255,.72); box-shadow: 0 18px 46px rgba(94,106,210,.22); }
.drag-handle { cursor: grab; user-select: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: rgba(255,255,255,.045); border: 1px solid var(--border-soft); flex: 0 0 auto; }
.drag-handle:active { cursor: grabbing; }
.upload-inline { margin-top:12px; margin-bottom:20px; padding-bottom:4px; }
.item-row input { margin-bottom: 0; flex: 1; }
.item-row .btn { flex-shrink: 0; }
.template-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.template-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(7,8,13,0.56);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.template-option:hover { transform: translateY(-3px); border-color: rgba(130,143,255,.38); background: rgba(255,255,255,.062); box-shadow: 0 16px 38px rgba(0,0,0,.26), 0 0 24px rgba(116,123,255,.14); }
.template-option input { width: auto; flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--accent); }
.template-option span { display: grid; gap: 6px; color: var(--text); }
.template-option b { font-size: 15px; color: #fff; }
.template-option small { color: var(--muted); line-height: 1.55; }
.template-option:has(input:checked) { border-color: rgba(130,143,255,.74); background: rgba(113,112,255,.14); box-shadow: 0 16px 38px rgba(94,106,210,.18); }
.sort-row input { min-width: 220px; }
.site-edit-row select { flex: 0 0 150px; }
.sort-actions { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; }
.sort-actions .btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7,8,13,0.70), rgba(255,255,255,0.032));
  border: 1px solid var(--border-soft);
  border-radius: 17px;
  padding: 18px;
  text-align: left;
  min-height: 104px;
  transition: transform 0.30s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.30s ease, border-color 0.24s ease;
}
.stat-box:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(130,143,255,.32);
  box-shadow: 0 24px 56px rgba(0,0,0,.32), 0 0 38px rgba(116,123,255,.16);
  will-change: transform;
}
.stat-box::before { content: none; }
.stat-box::after { content:""; position:absolute; left:18px; bottom:0; width:42px; height:2px; border-radius:999px; background: linear-gradient(90deg, var(--accent), transparent); }
.stat-num { font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 10px; letter-spacing: 0.02em; }
.msg { padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; font-size: 14px; display: none; border: 1px solid transparent; backdrop-filter: blur(14px); }
.msg-ok { background: var(--ok-bg); color: #a5f3d0; border-color: rgba(16,185,129,.30); display: block; }
.msg-err { background: var(--danger-bg); color: #ffc2ca; border-color: rgba(255,95,115,.32); display: block; }
.help { color: var(--muted); font-size: 12px; margin: -8px 0 14px; line-height: 1.75; padding: 11px 12px; border: 1px solid var(--border-soft); border-radius: 13px; background: rgba(255,255,255,.028); }
.preview-img { max-width: 180px; max-height: 100px; border-radius: 10px; margin-top: 8px; display: block; border: 1px solid var(--border); }
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 50px; }
.pwd-eye { position:absolute; right:8px; top:7px; width:34px; height:30px; padding:0; border-radius:9px; background:rgba(255,255,255,.055); color:var(--text-soft); border:1px solid var(--border); cursor:pointer; box-shadow:none; }
.pwd-eye:hover { background:rgba(113,112,255,.22); color:#fff; border-color:rgba(113,112,255,.44); }
input[type="file"] { padding: 10px; color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; }
.save-dock {
  position: sticky;
  bottom: 18px;
  z-index: 12;
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(8,9,16,.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 22px 70px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.08);
}
.save-dock .btn { padding: 14px; font-size: 16px; }

@media (max-width: 980px) {
  .admin-body { grid-template-columns: 1fr; padding: 18px 14px 74px; }
  .admin-body::after { display:none; }
  .admin-main { grid-column: 1; }
  .admin-nav {
    grid-column: 1;
    justify-self: stretch;
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding: 8px;
    border-radius: 14px;
  }
  .admin-nav-title { display: none; }
  .admin-nav a { white-space: nowrap; padding: 8px 12px; }
}
@media (max-width: 760px) {
  .admin-header { padding: 14px 16px; align-items: flex-start; gap: 12px; flex-direction: column; }
  .admin-header > div { flex-wrap: wrap; }
  .section { padding: 18px; border-radius: 18px; }
  .row, .stat-grid, .template-options { grid-template-columns: 1fr; }
  .item-row { flex-direction: column; align-items: stretch; }
  .item-row input { max-width: none !important; min-width: 0 !important; }
  .site-edit-row select { max-width: none !important; flex: auto; }
  .sort-actions { width: 100%; }
  .sort-actions .btn { flex: 1; }
  .login-box { padding: 28px; }
}

