/* FiveM Wiki – piros-fekete, átlátszó (glass) design, Roboto */
:root {
  --bg: #060608;
  --red: #e5202e;
  --red-2: #ff3d4d;
  --red-soft: rgba(229, 32, 46, .14);
  --glass: rgba(18, 18, 24, .55);
  --glass-hi: rgba(28, 28, 36, .62);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f3f6;
  --muted: #9b9ba8;
  --radius: 16px;
  --nav-h: 68px;
  --blur: blur(18px) saturate(140%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 88% -10%, rgba(229, 32, 46, .30), transparent 60%),
    radial-gradient(700px 520px at -8% 38%, rgba(229, 32, 46, .15), transparent 60%),
    radial-gradient(900px 600px at 55% 115%, rgba(160, 10, 25, .22), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 75%);
}
a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(229, 32, 46, .5); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(229,32,46,.6); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.glass { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); border-radius: var(--radius); }
mark { background: rgba(229, 32, 46, .38); color: #fff; border-radius: 4px; padding: 0 2px; }
kbd { font: 500 11px 'Roboto', sans-serif; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; background: rgba(255,255,255,.04); }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(8, 8, 11, .6); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border-bottom: 1px solid var(--line); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(229,32,46,.7), transparent); opacity: .7; }
.nav-in { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: .2px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--red-2), #9d0f1c); box-shadow: 0 6px 22px rgba(229, 32, 46, .5), inset 0 1px 0 rgba(255,255,255,.3); }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-item { position: relative; }
.nav-btn { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border: 0; border-radius: 10px; background: transparent; color: #d7d7df; font: 500 14.5px 'Roboto', sans-serif; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.nav-btn .ico { font-size: 15px; }
.nav-btn .chev { opacity: .55; transition: transform .2s; }
.nav-btn:hover, .nav-item.open .nav-btn { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.open .chev { transform: rotate(180deg); }
.dropdown { position: absolute; left: 0; top: 100%; padding-top: 12px; min-width: 300px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
.dropdown-panel { padding: 8px; max-height: 70vh; overflow: auto; background: rgba(14, 14, 19, .93); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(229,32,46,.08); }
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  body:not(.nc) .nav-item:hover .dropdown, body:not(.nc) .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
  body:not(.nc) .nav-item:hover .chev { transform: rotate(180deg); }
  body:not(.nc) .nav-item:hover .nav-btn { background: rgba(255,255,255,.07); color: #fff; }
}
.dropdown a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); }
.dropdown a:hover { background: var(--red-soft); text-decoration: none; }
.dd-head { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--red-2) !important; display: flex !important; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0 !important; margin-bottom: 4px; }
.dd-link b { display: block; font-weight: 500; font-size: 14.5px; }
.dd-link small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.dd-empty { padding: 12px; color: var(--muted); font-size: 13px; }

.search { position: relative; width: 300px; flex-shrink: 0; transition: width .25s; }
.search:focus-within { width: 340px; }
.search input { width: 100%; height: 42px; padding: 0 60px 0 40px; color: var(--text); font: 400 14.5px 'Roboto', sans-serif; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: #7d7d8a; }
.search input:focus { border-color: var(--red); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(229, 32, 46, .18); }
.s-ico { position: absolute; left: 13px; top: 12px; color: var(--muted); pointer-events: none; }
.search kbd { position: absolute; right: 10px; top: 10px; pointer-events: none; }
.search-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(580px, 92vw); max-height: 72vh; overflow: auto; padding: 8px; background: rgba(14, 14, 19, .88); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.search-pop[hidden] { display: none; }
.sr { display: block; padding: 11px 13px; border-radius: 11px; color: var(--text); }
.sr:hover, .sr.active { background: var(--red-soft); text-decoration: none; }
.sr.active { box-shadow: inset 2px 0 0 var(--red); }
.sr b { display: block; font-weight: 500; font-size: 15px; }
.sr small { display: block; color: var(--muted); font-size: 12.8px; line-height: 1.45; margin-top: 2px; }
.sr-cat { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--red-2); margin-bottom: 2px; }
.sr-all { display: flex; justify-content: space-between; padding: 11px 13px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 500; border-radius: 0 0 11px 11px; }
.sr-all:hover, .sr-all.active { background: var(--red-soft); text-decoration: none; }
.sr-empty { padding: 22px; text-align: center; color: #cfcfd8; }
.sr-empty small { display: block; color: var(--muted); margin-top: 4px; }
.sr-note { padding: 6px 13px; font-size: 12px; color: var(--muted); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; place-items: center; }

/* ---------- gombok, közös ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: var(--text); font: 500 14px 'Roboto', sans-serif; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.11); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(145deg, var(--red-2), #b3121f); border-color: rgba(255,255,255,.18); color: #fff; box-shadow: 0 8px 26px rgba(229, 32, 46, .38); }
.btn.primary:hover { box-shadow: 0 10px 34px rgba(229, 32, 46, .55); filter: brightness(1.08); }
.btn.danger { color: #ff6b77; border-color: rgba(229,32,46,.4); background: rgba(229,32,46,.08); }
.btn.danger:hover { background: rgba(229,32,46,.2); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- kezdőlap ---------- */
.hero { text-align: center; padding: 84px 0 56px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; color: #ffb3b9; background: var(--red-soft); border: 1px solid rgba(229,32,46,.35); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 12px var(--red-2); }
.hero h1 { margin: 20px 0 10px; font-size: clamp(40px, 7vw, 76px); line-height: 1.04; font-weight: 900; letter-spacing: -1.5px; background: linear-gradient(180deg, #fff 30%, #ff8d96 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 640px; margin: 0 auto 30px; color: #b9b9c4; font-size: 18px; font-weight: 300; }
.hero-search { display: flex; align-items: center; gap: 12px; width: min(620px, 100%); margin: 0 auto; height: 58px; padding: 0 18px; color: var(--muted); font: 400 16px 'Roboto', sans-serif; text-align: left; cursor: text; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line-2); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.hero-search:hover { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,32,46,.14), 0 10px 40px rgba(229,32,46,.18); }
.hero-search span { flex: 1; }
.stats { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.stats div { padding: 10px 22px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.stats b { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; }
.stats span { font-size: 12.5px; color: var(--muted); }
.sec-title { margin: 44px 0 18px; font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.sec-title::before { content: ""; width: 4px; height: 22px; border-radius: 4px; background: linear-gradient(var(--red-2), #8d0f1b); box-shadow: 0 0 14px rgba(229,32,46,.7); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; padding: 24px; color: var(--text); transition: transform .22s, border-color .22s, box-shadow .22s, background .22s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 160px at 100% 0, rgba(229,32,46,.18), transparent 70%); opacity: 0; transition: opacity .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(229,32,46,.5); box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 40px rgba(229,32,46,.12); text-decoration: none; background: var(--glass-hi); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-ico { width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 15px; margin-bottom: 14px; background: var(--red-soft); border: 1px solid rgba(229,32,46,.3); }
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.card p { margin: 0 0 12px; color: #aeaeba; font-size: 14.5px; }
.card ul { margin: 0 0 16px; padding: 0; list-style: none; }
.card li { color: #c9c9d3; font-size: 13.5px; padding: 3px 0 3px 16px; position: relative; }
.card li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--red-2); }
.card-foot em { font-style: normal; transition: transform .2s; }
.card:hover .card-foot em { transform: translateX(4px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tags span { font-size: 12px; color: #c4c4cf; padding: 2px 9px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.list { overflow: hidden; }
.list a { display: flex; align-items: center; gap: 16px; padding: 14px 20px; color: var(--text); border-bottom: 1px solid var(--line); transition: background .2s; }
.list a:last-child { border-bottom: 0; }
.list a:hover { background: var(--red-soft); text-decoration: none; }
.l-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--red-soft); font-size: 18px; flex-shrink: 0; }
.l-main { flex: 1; min-width: 0; }
.l-main b { display: block; font-weight: 500; }
.l-main small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-date { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- aloldalak ---------- */
.page-head { padding: 44px 0 24px; }
.page-head h1 { margin: 10px 0 6px; font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -.6px; display: flex; align-items: center; gap: 14px; }
.h-ico { width: 56px; height: 56px; display: grid; place-items: center; font-size: 28px; border-radius: 16px; background: var(--red-soft); border: 1px solid rgba(229,32,46,.35); }
.page-head p { margin: 0; color: #b3b3be; font-size: 17px; font-weight: 300; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red-2); text-decoration: none; }
.crumbs b { color: #dcdce4; font-weight: 500; }
.empty { padding: 40px; text-align: center; color: #c4c4cf; }
.empty.big { margin: 80px auto; max-width: 520px; }
.empty.big h1 { margin: 0; font-size: 64px; font-weight: 900; color: var(--red-2); }
.empty small { color: var(--muted); }
.note { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: 28px; padding: 32px 0 20px; align-items: start; }
.side, .toc { position: sticky; top: calc(var(--nav-h) + 22px); }
.side { padding: 14px; }
.side h4, .toc h4 { margin: 4px 8px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.side a { display: block; padding: 8px 12px; border-radius: 9px; color: #cfcfd8; font-size: 14.5px; }
.side a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.side a.active { background: var(--red-soft); color: #fff; box-shadow: inset 3px 0 0 var(--red); font-weight: 500; }
.toc { padding: 4px 0 4px 14px; border-left: 1px solid var(--line); max-height: calc(100vh - 120px); overflow: auto; }
.toc a { display: block; padding: 5px 10px; font-size: 13.5px; color: var(--muted); border-left: 2px solid transparent; margin-left: -15px; }
.toc a.l3 { padding-left: 24px; font-size: 13px; }
.toc a:hover { color: #fff; text-decoration: none; }
.toc a.on { color: #fff; border-left-color: var(--red); }
.doc-title { margin: 12px 0 8px; font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -.8px; line-height: 1.12; }
.doc-sum { margin: 0 0 14px; font-size: 18px; color: #b9b9c4; font-weight: 300; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.meta .tag { padding: 2px 10px; border-radius: 99px; background: var(--red-soft); border: 1px solid rgba(229,32,46,.3); color: #ffb3b9; }
.meta .tag:hover { background: rgba(229,32,46,.3); text-decoration: none; }

.prose { padding: 34px 38px; font-size: 16.5px; line-height: 1.75; color: #deded8; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: #fff; font-weight: 700; line-height: 1.25; }
.prose h2 { font-size: 26px; margin: 2em 0 .6em; padding-left: 14px; border-left: 4px solid var(--red); }
.prose h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--red-2); }
.prose strong { color: #fff; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2em 0; }
.prose img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); margin: .5em 0; }
.prose code { font: 400 .88em ui-monospace, Consolas, monospace; padding: 2px 7px; border-radius: 6px; background: rgba(229,32,46,.14); border: 1px solid rgba(229,32,46,.25); color: #ffc2c7; }
.prose pre { margin: 0 0 1.2em; padding: 16px 18px; overflow: auto; border-radius: 12px; background: rgba(0,0,0,.5); border: 1px solid var(--line); }
.prose pre code { padding: 0; background: none; border: 0; color: #e8e8ee; font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border-radius: 12px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th { text-align: left; padding: 11px 16px; background: rgba(229,32,46,.14); color: #fff; font-weight: 500; }
.prose td { padding: 10px 16px; border-top: 1px solid var(--line); }
.prose tr:hover td { background: rgba(255,255,255,.03); }
.callout { margin: 0 0 1.2em; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--muted); background: rgba(255,255,255,.04); }
.callout > :last-child { margin-bottom: 0; }
.callout p { margin: 0 0 .5em; }
.callout.info { border-left-color: #5aa9ff; background: rgba(90,169,255,.07); }
.callout.tip { border-left-color: #3ddc97; background: rgba(61,220,151,.07); }
.callout.warn { border-left-color: #ffb020; background: rgba(255,176,32,.07); }
.callout.danger { border-left-color: var(--red); background: rgba(229,32,46,.1); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.pager a { display: block; padding: 16px 20px; color: var(--text); transition: border-color .2s, transform .2s; }
.pager a:hover { border-color: rgba(229,32,46,.5); transform: translateY(-2px); text-decoration: none; }
.pager a.r { text-align: right; }
.pager small { display: block; color: var(--red-2); font-weight: 500; }

.search-big { display: flex; align-items: center; gap: 14px; padding: 0 20px; height: 62px; color: var(--muted); }
.search-big:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,32,46,.16); }
.search-big input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 18px 'Roboto', sans-serif; }
.search-big input::-webkit-search-cancel-button { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: #d4d4dc; font: 500 13.5px 'Roboto', sans-serif; cursor: pointer; transition: all .18s; }
.chip i { font-style: normal; font-size: 12px; padding: 0 7px; border-radius: 99px; background: rgba(255,255,255,.1); }
.chip:hover { border-color: rgba(229,32,46,.5); }
.chip.on { background: var(--red-soft); border-color: var(--red); color: #fff; }
.results { display: grid; gap: 14px; }
.result { display: block; padding: 20px 24px; color: var(--text); transition: transform .2s, border-color .2s; }
.result:hover { transform: translateX(4px); border-color: rgba(229,32,46,.5); text-decoration: none; }
.result h3 { margin: 2px 0 6px; font-size: 20px; font-weight: 700; }
.result p { margin: 0 0 10px; color: #aeaeba; font-size: 14.5px; }

.footer { margin-top: 70px; border-top: 1px solid var(--line); background: rgba(0,0,0,.35); }
.foot-in { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; color: var(--muted); font-size: 13.5px; }
.foot-in a { color: var(--muted); }
.foot-in a:hover { color: var(--red-2); }

/* ---------- reszponzív ---------- */
@media (max-width: 1180px) {
  .doc { grid-template-columns: 230px minmax(0, 1fr); }
  .toc { display: none; }
  .search { width: 240px; }
  .search:focus-within { width: 300px; }
}
/* menü összecsukva (JS állítja be: body.nc) */
  body.nc .burger { display: grid; margin-left: auto; order: 3; }
  body.nc .search { order: 2; margin-left: auto; }
  body.nc .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; max-height: calc(100vh - var(--nav-h)); overflow: auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 18px 22px; background: rgba(8, 8, 11, .94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--line-2); display: none; }
  body.nc .nav.open .nav-links { display: flex; }
  body.nc .nav-btn { width: 100%; justify-content: flex-start; padding: 12px 14px; background: rgba(255,255,255,.04); }
  body.nc .nav-btn .chev { margin-left: auto; }
  body.nc .dropdown { position: static; display: none; padding-top: 4px; opacity: 1; visibility: visible; transform: none; }
  body.nc .nav-item.open .dropdown { display: block; }
  body.nc .dropdown-panel { box-shadow: none; background: transparent; border: 0; border-left: 2px solid var(--red); border-radius: 0; margin: 4px 0 6px 18px; padding: 2px 4px; }
  body.nc .dd-link small { max-width: none; }
@media (max-width: 820px) {
  .container { padding: 0 16px; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: 2; }
  .prose { padding: 22px 20px; font-size: 16px; }
  .hero { padding: 54px 0 36px; }
  .pager { grid-template-columns: 1fr; }
  .l-date { display: none; }
  .search kbd { display: none; }
  .search { width: auto; flex: 1; }
  .search:focus-within { width: auto; }
  .brand span:last-child { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}

/* =====================  ADMIN  ===================== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); padding: 38px 34px; text-align: center; box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 80px rgba(229,32,46,.12); }
.login-card .logo { margin: 0 auto 16px; width: 56px; height: 56px; border-radius: 17px; }
.login-card h1 { margin: 0 0 4px; font-size: 26px; font-weight: 900; }
.login-card p { margin: 0 0 24px; color: var(--muted); font-size: 14.5px; }
.field { display: block; text-align: left; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 500; color: #b9b9c4; text-transform: uppercase; letter-spacing: .5px; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 12.5px; }
input.in, select.in, textarea.in { width: 100%; height: 44px; padding: 0 14px; color: var(--text); font: 400 15px 'Roboto', sans-serif; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); border-radius: 11px; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.in { height: auto; padding: 11px 14px; resize: vertical; line-height: 1.5; }
select.in option { background: #15151b; color: #fff; }
.in:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,32,46,.16); }
.err { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: #ffb3b9; background: rgba(229,32,46,.12); border: 1px solid rgba(229,32,46,.35); }

.ad-top { position: sticky; top: 0; z-index: 40; background: rgba(8,8,11,.65); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-bottom: 1px solid var(--line); }
.ad-top .container { display: flex; align-items: center; gap: 14px; height: 64px; }
.ad-top .brand small { color: var(--red-2); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-left: 4px; }
.spacer { flex: 1; }
.ad-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; padding: 28px 0; align-items: start; }
.ad-nav { position: sticky; top: 90px; padding: 10px; display: grid; gap: 4px; }
.ad-nav button { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 0; border-radius: 10px; background: transparent; color: #cfcfd8; font: 500 14.5px 'Roboto', sans-serif; text-align: left; cursor: pointer; transition: background .2s; }
.ad-nav button:hover { background: rgba(255,255,255,.06); }
.ad-nav button.on { background: var(--red-soft); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.ad-main h2 { margin: 0 0 4px; font-size: 26px; font-weight: 900; }
.ad-main .sub { margin: 0 0 22px; color: var(--muted); }
.panel { padding: 22px 24px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 16px; font-size: 17px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px 20px; }
.stat b { display: block; font-size: 28px; font-weight: 700; }
.stat span { color: var(--muted); font-size: 13px; }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.toolbar-row .in { width: auto; flex: 1; min-width: 180px; max-width: 320px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.03); }
.tbl .t-title b { display: block; font-weight: 500; }
.tbl .t-title small { color: var(--muted); }
.tbl .act { text-align: right; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; background: var(--red-soft); border: 1px solid rgba(229,32,46,.3); color: #ffb3b9; }
.tbl-wrap { overflow-x: auto; }

.cat-row { display: grid; grid-template-columns: 70px 1fr 1.6fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cat-row:last-child { border-bottom: 0; }
.cat-row .in { height: 40px; }
.cat-row .ico-in { text-align: center; font-size: 20px; padding: 0; }
.cat-row .row-act { display: flex; gap: 6px; align-items: center; }
.cat-row .cnt { color: var(--muted); font-size: 12.5px; min-width: 56px; text-align: right; }

.ed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.ed-head h2 { margin: 0; font-size: 22px; }
.dirty { display: none; align-items: center; gap: 6px; color: #ffb020; font-size: 13px; }
.dirty.on { display: inline-flex; }
.dirty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffb020; }
.ed-meta { display: grid; grid-template-columns: 2fr 1.2fr 100px; gap: 14px; }
.ed-meta2 { display: grid; grid-template-columns: 2fr 1.2fr; gap: 14px; }
.md-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0; background: rgba(255,255,255,.04); }
.md-bar button { min-width: 34px; height: 32px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: #d4d4dc; font: 500 13px 'Roboto', sans-serif; cursor: pointer; }
.md-bar button:hover { background: var(--red-soft); color: #fff; }
.md-bar i { width: 1px; background: var(--line-2); margin: 4px 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 0 0 12px 12px; overflow: hidden; }
.split textarea { width: 100%; min-height: 560px; padding: 16px 18px; color: #ececf2; font: 400 14.5px/1.65 ui-monospace, Consolas, monospace; background: rgba(0,0,0,.28); border: 0; border-right: 1px solid var(--line); outline: none; resize: vertical; }
.split .preview { padding: 18px 22px; max-height: 760px; overflow: auto; font-size: 15px; background: rgba(255,255,255,.02); border: 0; border-radius: 0; }
.help { margin-top: 12px; color: var(--muted); font-size: 13px; }
.help code { font-size: 12px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; padding: 13px 20px; border-radius: 12px; font-weight: 500; background: rgba(20,20,26,.92); backdrop-filter: blur(16px); border: 1px solid rgba(61,220,151,.5); box-shadow: 0 16px 50px rgba(0,0,0,.6); transform: translateY(20px); opacity: 0; transition: all .25s; pointer-events: none; }
.toast.show { transform: none; opacity: 1; }
.toast.bad { border-color: rgba(229,32,46,.7); color: #ffb3b9; }
@media (max-width: 960px) {
  .ad-shell { grid-template-columns: 1fr; }
  .ad-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .ad-nav button { white-space: nowrap; }
  .split { grid-template-columns: 1fr; }
  .split textarea { border-right: 0; border-bottom: 1px solid var(--line); min-height: 380px; }
  .ed-meta, .ed-meta2 { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: 60px 1fr; }
  .cat-row > :nth-child(3) { grid-column: 1 / -1; }
}
