:root {
  --bg: #05060c;
  --bg-2: #080b14;
  --surface: rgba(255, 255, 255, 0.038);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.085);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eaecf5;
  --muted: #8b91a8;
  --dim: #5e6480;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #ff6bd6;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(124, 92, 255, 0.22), transparent 62%),
    radial-gradient(760px 460px at 88% 4%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(700px 520px at 50% 110%, rgba(255, 107, 214, 0.09), transparent 65%),
    linear-gradient(180deg, #05060c 0%, #060810 100%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(124, 92, 255, 0.35); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.13); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }
::-webkit-scrollbar-track { background: transparent; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 6, 12, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 64px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 16.5px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 6px 20px -6px rgba(124, 92, 255, 0.9);
}
.brand small { color: var(--dim); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; color: var(--muted);
  font-size: 14px; font-weight: 500; transition: 0.18s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface); }
.nav-cta {
  margin-left: 8px; padding: 8px 16px !important; border-radius: 9px !important;
  background: linear-gradient(135deg, var(--accent), #6a4df5) !important;
  color: #fff !important; font-weight: 600 !important;
  box-shadow: 0 8px 24px -10px rgba(124, 92, 255, 0.95);
}
.nav-cta:hover { filter: brightness(1.1); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-2); border-radius: 9px; padding: 6px 10px; cursor: pointer; }

/* ---------- 通用元件 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); font-weight: 500;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 11px; border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: 0.18s; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6a4df5);
  border-color: transparent; color: #fff;
  box-shadow: 0 14px 34px -16px rgba(124, 92, 255, 1);
}
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--accent), #6a4df5); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.btn-danger { color: #ffd9de; border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.1); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.input, .select, .textarea {
  width: 100%; padding: 11px 15px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border);
  color: var(--text); outline: none; transition: 0.18s; font-size: 14px;
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(124, 92, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.1);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.select {
  cursor: pointer; appearance: none; -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b91a8' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.select option { background: #12141f; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: 0.22s;
}
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.section { padding: 74px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head h2 { font-size: 26px; letter-spacing: -0.03em; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700; margin-bottom: 12px;
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 56px; position: relative; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.08;
  letter-spacing: -0.045em; font-weight: 800; margin: 18px 0 20px;
}
.grad {
  background: linear-gradient(105deg, #fff 8%, var(--accent-2) 48%, var(--accent) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 640px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 52px; }
.hero-stats div b { display: block; font-size: 27px; letter-spacing: -0.03em; font-weight: 700; }
.hero-stats div span { font-size: 12.5px; color: var(--dim); letter-spacing: 0.06em; }

/* 搜索 */
.searchbar { display: flex; gap: 10px; margin-top: 34px; max-width: 620px; }
.searchbar .input, .searchbar .select { padding: 14px 18px; font-size: 15px; height: 50px; }
.searchbar .select { padding-right: 38px; }
.searchbar .btn { padding-inline: 26px; height: 50px; }

/* ---------- 资源卡 ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }

.res {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: 0.22s;
}
.res:hover { transform: translateY(-3px); border-color: var(--border-2); background: var(--surface-2); box-shadow: var(--shadow); }
.res-cover {
  height: 140px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.28), rgba(34, 211, 238, 0.14));
  position: relative; overflow: hidden; flex: none;
}
.res-cover img { width: 100%; height: 100%; object-fit: cover; }
.res-cover .fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 40px; opacity: 0.75;
}
.res-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.res-title { font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.45; }
.res-summary {
  color: var(--muted); font-size: 13px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.res-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--dim); }
.res-meta .tag { color: var(--accent-2); }
.badge {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 700;
  background: rgba(5, 6, 12, 0.72); backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
}
.badge.pin { color: var(--warn); }
.badge.lock { color: var(--accent-3); }

/* 分类胶囊 */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 550;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: 0.18s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.on {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(106, 77, 245, 0.9));
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 26px -14px rgba(124, 92, 255, 1);
}

/* ---------- 特性 ---------- */
.feats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feat { padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feat .ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.14));
  border: 1px solid var(--border-2); font-size: 18px; margin-bottom: 14px;
}
.feat h3 { font-size: 15.5px; font-weight: 650; margin-bottom: 7px; letter-spacing: -0.01em; }
.feat p { color: var(--muted); font-size: 13.5px; line-height: 1.68; }

/* ---------- 公告 ---------- */
.ann { padding: 18px 20px; border-radius: var(--radius); background: rgba(124, 92, 255, 0.07); border: 1px solid rgba(124, 92, 255, 0.22); margin-bottom: 14px; }
.ann h4 { font-size: 14.5px; font-weight: 650; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.ann p { color: var(--muted); font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; }
.ann .t { font-size: 11.5px; color: var(--dim); margin-left: auto; font-weight: 400; }

/* ---------- 详情页 ---------- */
.detail { padding: 42px 0 80px; }
.crumb { font-size: 13px; color: var(--dim); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--text); }
.detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 30px; align-items: start; }
.detail h1 { font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -0.035em; font-weight: 750; line-height: 1.25; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 26px; }
.tag-pill { padding: 4px 11px; border-radius: 8px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.prose { color: #c9cee0; font-size: 14.5px; line-height: 1.85; }
.prose h2 { font-size: 19px; margin: 28px 0 12px; color: var(--text); letter-spacing: -0.02em; }
.prose h3 { font-size: 16px; margin: 22px 0 10px; color: var(--text); }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: 12.8px; background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 5px; color: #a5b4fc; }
.prose pre { background: rgba(0, 0, 0, 0.45); border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow: auto; margin: 16px 0; }
.prose pre code { background: none; padding: 0; color: #cbd5e1; font-size: 12.5px; line-height: 1.7; }
.prose a { color: var(--accent-2); border-bottom: 1px solid rgba(34, 211, 238, 0.35); }

.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.side-card h3 { font-size: 14px; font-weight: 650; margin-bottom: 14px; color: var(--muted); letter-spacing: 0.04em; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed var(--border); }
.kv:last-child { border: 0; }
.kv span { color: var(--dim); }
.kv b { font-weight: 550; }

.link-item { padding: 13px 15px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 10px; }
.link-item .lname { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.link-item .lnote { color: var(--dim); font-size: 12px; margin-top: 5px; }
.codebox {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08); border: 1px dashed rgba(34, 211, 238, 0.3);
  border-radius: 8px; padding: 6px 10px; cursor: pointer;
}
.codebox:hover { background: rgba(34, 211, 238, 0.14); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(3, 4, 9, 0.78); backdrop-filter: blur(8px);
}
.modal-mask.on { display: flex; animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: 100%; max-width: 430px; padding: 28px;
  background: linear-gradient(170deg, #0f1220, #0a0c16);
  border: 1px solid var(--border-2); border-radius: 20px;
  box-shadow: 0 40px 90px -30px #000;
}
.modal h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.modal p.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; line-height: 1.7; }
.modal .row { display: flex; gap: 10px; margin-top: 16px; }
.modal .row .btn { flex: 1; }
.modal-close { position: absolute; }

/* ---------- 提示 ---------- */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 9px; align-items: center; }
.toast {
  padding: 11px 20px; border-radius: 11px; font-size: 13.5px; font-weight: 550;
  background: #14171f; border: 1px solid var(--border-2); box-shadow: 0 18px 40px -16px #000;
  animation: rise 0.22s ease; max-width: 90vw;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.toast.ok { border-color: rgba(52, 211, 153, 0.45); color: #a7f3d0; }
.toast.err { border-color: rgba(251, 113, 133, 0.45); color: #fecdd3; }

/* ---------- 空状态 / 骨架 ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--dim); }
.empty .big { font-size: 42px; margin-bottom: 14px; opacity: 0.55; }
.skel { height: 250px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(255,255,255,.03) 25%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 75%); background-size: 200% 100%; animation: sh 1.4s infinite; }
@keyframes sh { to { background-position: -200% 0 } }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 38px; flex-wrap: wrap; }
.pager button {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; font-size: 13.5px; transition: 0.18s;
}
.pager button:hover { color: var(--text); border-color: var(--border-2); }
.pager button.on { background: var(--accent); border-color: transparent; color: #fff; font-weight: 650; }
.pager button[disabled] { opacity: 0.35; pointer-events: none; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 46px; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; color: var(--dim); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* ---------- 后台 ---------- */
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side {
  border-right: 1px solid var(--border); padding: 22px 14px;
  background: rgba(255, 255, 255, 0.018); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
}
.admin-side .brand { padding: 0 10px 20px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav button {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 13px; border-radius: 10px; background: none; border: 0;
  color: var(--muted); font-size: 13.5px; font-weight: 550; cursor: pointer; transition: 0.16s;
}
.admin-nav button:hover { background: var(--surface-2); color: var(--text); }
.admin-nav button.on { background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(124, 92, 255, 0.06)); color: #fff; border: 1px solid rgba(124, 92, 255, 0.3); }
.admin-side .spacer { flex: 1; }
.admin-main { padding: 30px 34px 70px; max-width: 1100px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.admin-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel h3 { font-size: 15px; font-weight: 650; margin-bottom: 16px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 550; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-size: 26px; letter-spacing: -0.03em; font-weight: 750; }
.stat span { font-size: 12.5px; color: var(--dim); }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; padding: 10px 12px; color: var(--dim); font-weight: 550; font-size: 12px; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); vertical-align: middle; }
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table .actions { display: flex; gap: 7px; flex-wrap: wrap; }

.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 650; }
.status.public, .status.active { color: #a7f3d0; background: rgba(52, 211, 153, 0.13); }
.status.card { color: #c7d2fe; background: rgba(124, 92, 255, 0.16); }
.status.unused { color: #fde68a; background: rgba(251, 191, 36, 0.13); }
.status.expired { color: #fecdd3; background: rgba(251, 113, 133, 0.13); }
.status.disabled { color: #cbd5e1; background: rgba(148, 163, 184, 0.14); }

.list-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-weight: 600; font-size: 13.5px; }
.list-row .d { color: var(--dim); font-size: 12px; margin-top: 2px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-box { width: 100%; max-width: 380px; padding: 32px; }

.code-list { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; max-height: 300px; overflow: auto; }
.code-list div {
  font-family: var(--mono); font-size: 13px; padding: 9px 13px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 940px) {
  .detail-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; overflow-x: auto; align-items: center; padding: 12px; }
  .admin-side .brand { padding: 0 14px 0 6px; }
  .admin-side .spacer { display: none; }
  .admin-nav { flex-direction: row; }
  .admin-main { padding: 22px 18px 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(6, 8, 16, 0.97); border-bottom: 1px solid var(--border);
    padding: 12px 18px 18px; backdrop-filter: blur(18px);
  }
  .nav-toggle { display: block; margin-left: auto; }
  .hero { padding: 52px 0 36px; }
  .hero-stats { gap: 24px; }
  .section { padding: 52px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .searchbar { flex-direction: column; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
}
