/* ==========================================================
   Szerver weboldal – Nightfall arculat: éjfekete, holdfény-kék, vérvörös.
   A kiemelő szín (--accent) a config.php-ból jön.
   ========================================================== */
:root {
  --bg: #06070b;
  --bg2: #0a0c12;
  --panel: #0d1017;
  --panel2: #131722;
  --line: #222836;
  --rust: #5e0a12;
  --rust2: #c4202c;
  --cream: #eef1f6;
  --text: #c3c9d6;
  --mute: #8a92a4;
  --kick: #ff4a56;
  --moon: #9fb4d6;
  --ok: #7dcf74;
  --warn: #e8a13a;
  --bad: #ff4a56;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --type: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --r: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .65);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--body);
  background-image:
    radial-gradient(1200px 700px at 78% -12%, rgba(120, 150, 205, .14), transparent 62%),
    radial-gradient(900px 600px at -8% 100%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%);
  background-attachment: fixed;
  min-height: 100vh; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--cream); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: .02em; color: var(--cream); line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }

/* zaj + vignetta */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 89;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .65) 100%); }

/* felső készülőben sáv */
.topbar { background: linear-gradient(90deg, #2a060b, var(--rust), #2a060b); color: #ffe4e6; text-align: center;
  font: 500 12.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 9px 12px; position: relative; z-index: 60; }
.topbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 8px; vertical-align: 1px; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* fejléc */
.site-header { position: sticky; top: 0; z-index: 70; background: rgba(6, 7, 11, .84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 23px/1 var(--head); font-style: italic; text-transform: uppercase; letter-spacing: .05em; color: var(--cream); }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 40, 55, .45)); }
.brand em { font-style: normal; color: var(--accent); filter: brightness(1.25); text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
.nav-cta { margin-left: 10px; padding: 10px 16px !important; background: linear-gradient(180deg, #6b78ff, #4752c4); color: #fff !important; border-radius: 9px; display: inline-flex; gap: 8px; align-items: center; }
.nav-cta:hover { background: linear-gradient(180deg, #7b87ff, #5560d6) !important; }
.nav-cta svg { width: 16px; height: 16px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { padding: 9px 13px; border-radius: 9px; font: 500 14px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); transition: color .2s, background .2s; }
.nav a:hover { color: var(--cream); background: rgba(255, 255, 255, .05); }
.nav a.active { color: #fff; background: color-mix(in srgb, var(--accent) 24%, transparent); box-shadow: inset 0 -2px 0 var(--accent); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--cream); transition: transform .25s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 14px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 28px; }
.menu-btn[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* gombok */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, #fff 10%), color-mix(in srgb, var(--accent) 70%, #000 30%)); color: #fff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; }
.btn.ghost { background: rgba(255, 255, 255, .03); border-color: var(--line); color: var(--cream); }
.btn.ghost:hover { border-color: var(--rust2); background: rgba(255, 255, 255, .06); }
.btn svg { width: 18px; height: 18px; }

/* ---------- főoldal: hős (a banner maga a hős) ---------- */
.hero { position: relative; padding: 0 0 clamp(40px, 6vw, 76px); overflow: hidden; }
.hero-banner { position: relative; width: 100%; height: clamp(300px, 52vw, 780px); max-height: 82vh; overflow: hidden; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; animation: zoom 28s ease-in-out infinite alternate; transform-origin: 50% 45%; }
@keyframes zoom { to { transform: scale(1.06); } }
.hero-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 7, 11, .55) 0, transparent 22%, transparent 55%, rgba(6, 7, 11, .85) 88%, var(--bg) 100%); }
.fog { position: absolute; left: -20%; right: -20%; bottom: 0; height: 240px; pointer-events: none; opacity: .55; z-index: 1;
  background: radial-gradient(60% 100% at 20% 100%, rgba(150, 170, 210, .16), transparent 70%), radial-gradient(50% 100% at 75% 100%, rgba(255, 60, 70, .12), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(8%); } }
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.ember { position: absolute; bottom: -12px; width: var(--s); height: var(--s); border-radius: 50%; background: #ff2a38; opacity: 0;
  box-shadow: 0 0 calc(var(--s) * 3) 1px rgba(255, 40, 55, .85); animation: rise var(--d) linear var(--w) infinite; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translate(var(--x), -80vh); opacity: 0; } }
.hero-inner { position: relative; z-index: 3; text-align: center; margin-top: clamp(-120px, -9vw, -40px); display: flex; flex-direction: column; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { margin-bottom: 14px; }
.hero .kicker::after { content: ""; width: 34px; height: 2px; background: var(--kick); box-shadow: 0 0 10px var(--kick); }
.tagline { font: 600 clamp(22px, 3vw, 34px)/1.15 var(--head); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 14px; text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 70%, transparent); }
.tagline b { color: var(--accent); filter: brightness(1.2); font-weight: 600; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text); max-width: 60ch; margin: 0 auto 26px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.btn.discord { background: linear-gradient(180deg, #6b78ff, #4752c4); color: #fff; box-shadow: 0 10px 28px rgba(88, 101, 242, .38), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.discord:hover { color: #fff; box-shadow: 0 14px 36px rgba(88, 101, 242, .55), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.discord.soon { background: rgba(88, 101, 242, .12); border-color: rgba(88, 101, 242, .4); color: #aab3ff; box-shadow: none; cursor: default; }
.btn.discord.soon:hover { transform: none; }

/* nyitási / állapot kártya */
.launch-card { display: flex; gap: 16px; align-items: flex-start; max-width: 560px; text-align: left; margin-inline: auto; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--warn);
  border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); }
.launch-card .lc-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(232, 161, 58, .14); color: var(--warn); font: 700 18px/1 var(--head); }
.launch-card b { display: block; font: 600 15px/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); margin-bottom: 4px; }
.launch-card p { margin: 0; color: var(--mute); font-size: 14.5px; line-height: 1.5; }
.status-card { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; align-items: center; max-width: 560px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.status-card .st { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.led { width: 11px; height: 11px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 rgba(226, 87, 74, .6); }
.led.on { background: var(--ok); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(125, 207, 116, .55); } 100% { box-shadow: 0 0 0 12px transparent; } }
.status-card .big { font: 700 28px/1 var(--head); color: #fff; }
.status-card .big small { font: 500 14px/1 var(--body); color: var(--mute); }
.addr { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px dashed var(--rust2); border-radius: 9px; font: 600 16px/1 var(--type); letter-spacing: .06em; color: var(--cream); background: rgba(0, 0, 0, .3); cursor: pointer; }
.addr:hover { border-color: var(--accent); }

/* ---------- szekciók ---------- */
.block { padding: clamp(44px, 7vw, 84px) 0; position: relative; }
.block.alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .025) 20%, rgba(255, 255, 255, .025) 80%, transparent); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head .kicker { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); }
.section-head p { color: var(--mute); font-size: 17px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: -26px; position: relative; z-index: 2; }
.stat { padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: var(--shadow); }
.stat b { display: block; font: 700 clamp(28px, 3.4vw, 40px)/1 var(--head); color: #fff; letter-spacing: .01em; }
.stat span { display: block; margin-top: 8px; font: 500 12.5px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.feature { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.feature::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent); opacity: 0; transition: opacity .4s; }
.feature:hover { transform: translateY(-4px); border-color: var(--rust2); }
.feature:hover::after { opacity: 1; }
.feature img { width: 62px; height: 62px; object-fit: contain; margin-bottom: 16px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--mute); font-size: 15px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.step { counter-increment: s; position: relative; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.step::before { content: counter(s); position: absolute; top: -18px; left: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  font: 700 20px/1 var(--head); color: #fff; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--mute); font-size: 15px; }

/* mini ranglisták a főoldalon */
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mini { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.mini header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--panel2); }
.mini header h3 { margin: 0; font-size: 19px; }
.mini header a { font: 500 12px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); filter: brightness(1.3); }
.mini ol { list-style: none; margin: 0; padding: 6px 0; }
.mini li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.mini li:last-child { border-bottom: 0; }
.mini li .n { font: 700 15px/1 var(--head); color: var(--mute); }
.mini li:nth-child(1) .n { color: #f2c14e; } .mini li:nth-child(2) .n { color: #c4ccd4; } .mini li:nth-child(3) .n { color: #c98a57; }
.mini li strong { font-weight: 600; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini li em { font: normal 700 17px/1 var(--head); color: #fff; }

.contact-band { margin-top: 10px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 20px; text-align: center;
  background: radial-gradient(500px 200px at 50% 0, color-mix(in srgb, var(--accent) 20%, transparent), transparent), linear-gradient(180deg, var(--panel2), var(--panel)); }
.contact-band h2 { font-size: clamp(28px, 4vw, 44px); }
.contact-band p { color: var(--mute); max-width: 56ch; margin-inline: auto; }

/* Discord sáv */
.discord-band { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 34px); align-items: center; padding: clamp(24px, 3.4vw, 38px); border: 1px solid rgba(88, 101, 242, .4); border-radius: 20px; overflow: hidden;
  background: radial-gradient(520px 220px at 0 0, rgba(88, 101, 242, .26), transparent 70%), radial-gradient(420px 220px at 100% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.discord-band .db-ico { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(180deg, #6b78ff, #4752c4); color: #fff; box-shadow: 0 12px 30px rgba(88, 101, 242, .4); }
.discord-band .db-ico svg { width: 42px; height: 42px; }
.discord-band h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 6px; }
.discord-band p { margin: 0; color: var(--mute); max-width: 58ch; }
@media (max-width: 760px) { .discord-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* elérhetőség kártyák */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; text-align: left; margin-top: 22px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--cream);
  font: inherit; text-align: left; cursor: pointer; width: 100%; transition: transform .2s, border-color .2s, background .2s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--rust2); background: var(--panel2); color: #fff; }
.contact-card .ci { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .06); }
.contact-card .ci svg { width: 24px; height: 24px; }
.contact-card .ct { display: flex; flex-direction: column; min-width: 0; }
.contact-card .ct b { font: 600 15px/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.contact-card .ct small { color: var(--mute); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-card .cc { margin-left: auto; font: 500 11px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); padding: 6px 8px; border-radius: 6px; }
.c-discord .ci, .c-discord_name .ci { background: rgba(88, 101, 242, .22); color: #aab3ff; }
.c-discord { border-color: rgba(88, 101, 242, .45); }
.c-facebook .ci { background: rgba(24, 119, 242, .2); color: #8fbaff; }
.c-youtube .ci { background: rgba(255, 0, 0, .18); color: #ff8f8f; }
.c-tiktok .ci { background: rgba(37, 244, 238, .14); color: #7df3ee; }
.c-instagram .ci { background: rgba(225, 48, 108, .2); color: #ff9dbd; }
.c-email .ci { background: rgba(232, 161, 58, .18); color: var(--warn); }

/* ---------- ranglisták ---------- */
.page-title { padding: clamp(36px, 6vw, 70px) 0 24px; }
.page-title h1 { font-size: clamp(36px, 6vw, 68px); margin-bottom: 10px; }
.page-title p { color: var(--mute); font-size: 18px; max-width: 64ch; margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 22px; }
.tabs [role=tab] { padding: 11px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--mute); cursor: pointer;
  font: 500 14px/1 var(--head); letter-spacing: .07em; text-transform: uppercase; transition: all .2s; }
.tabs [role=tab]:hover { color: var(--cream); border-color: var(--rust2); }
.tabs [role=tab].active { color: #fff; background: color-mix(in srgb, var(--accent) 28%, var(--panel)); border-color: var(--accent); }
.board-panel h2 { font-size: 28px; margin-bottom: 4px; }
.board-panel > p { color: var(--mute); margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table.board { width: 100%; border-collapse: collapse; min-width: 480px; }
.board th { text-align: left; padding: 14px 18px; font: 500 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); background: var(--panel2); border-bottom: 1px solid var(--line); }
.board td { padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, .045); }
.board tr:last-child td { border-bottom: 0; }
.board tbody tr:hover { background: rgba(255, 255, 255, .03); }
.board .r { width: 64px; } .board .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.board th.n { text-align: right; }
.board td.main { font: 700 18px/1 var(--head); color: #fff; letter-spacing: .02em; }
.board .who { color: var(--cream); font-weight: 600; }
.rank { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; font: 700 15px/1 var(--head); color: var(--mute); background: rgba(255, 255, 255, .05); }
.top1 .rank { color: #2a1b00; background: linear-gradient(180deg, #ffe08a, #e2a52b); }
.top2 .rank { color: #1c2024; background: linear-gradient(180deg, #e8edf1, #a9b3bd); }
.top3 .rank { color: #2a1305; background: linear-gradient(180deg, #e8b078, #b46a35); }
.top1 { background: linear-gradient(90deg, rgba(242, 193, 78, .08), transparent 60%); }
.tag { display: inline-block; margin-right: 8px; padding: 3px 7px; border-radius: 5px; font: 600 11px/1 var(--head); letter-spacing: .1em; color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); background: color-mix(in srgb, var(--tc) 14%, transparent); vertical-align: 2px; }
.updated { margin-top: 12px; color: var(--mute); font-size: 13.5px; }
.empty-state { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; border: 1px dashed var(--line); border-radius: 18px; background: rgba(255, 255, 255, .02); }
.empty-state img { width: 96px; opacity: .85; margin-bottom: 10px; }
.empty-state h2 { font-size: 28px; }
.empty-state p { color: var(--mute); max-width: 52ch; margin-inline: auto; }

/* ---------- dokumentum jellegű oldalak ---------- */
.layout-doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 70px; }
.toc { position: sticky; top: 92px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); max-height: calc(100vh - 120px); overflow: auto; }
.toc h4 { font-size: 13px; letter-spacing: .14em; color: var(--mute); margin-bottom: 10px; }
.toc a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--mute); font-size: 14.5px; line-height: 1.3; border-left: 2px solid transparent; }
.toc a:hover { color: var(--cream); background: rgba(255, 255, 255, .04); }
.toc a.on { color: #fff; background: color-mix(in srgb, var(--accent) 16%, transparent); border-left-color: var(--accent); }
.doc section { padding: 6px 0 38px; scroll-margin-top: 90px; }
.doc section + section { border-top: 1px solid var(--line); padding-top: 38px; }
.doc .num { display: inline-block; font: 600 15px/1 var(--type); color: var(--kick); letter-spacing: .12em; margin-bottom: 10px; }
.doc h2 { font-size: clamp(28px, 3.6vw, 40px); }
.doc h3 { font-size: 20px; margin-top: 1.4em; color: var(--cream); }
.doc ul, .doc ol { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc li::marker { color: var(--accent); }
kbd { display: inline-block; min-width: 26px; padding: 3px 8px; border-radius: 6px; border: 1px solid #343b4d; border-bottom-width: 3px; background: #161a24; color: var(--cream); font: 500 13px/1.2 var(--body); text-align: center; white-space: nowrap; }
.callout { display: flex; gap: 14px; padding: 16px 18px; margin: 1.2em 0; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.callout .ci { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 700 15px/1 var(--head); }
.callout p { margin: 0; font-size: 15px; } .callout b { color: var(--cream); }
.callout.tip { border-left: 3px solid var(--ok); } .callout.tip .ci { background: rgba(125, 207, 116, .15); color: var(--ok); }
.callout.warn { border-left: 3px solid var(--warn); } .callout.warn .ci { background: rgba(232, 161, 58, .15); color: var(--warn); }
.callout.danger { border-left: 3px solid var(--bad); } .callout.danger .ci { background: rgba(226, 87, 74, .15); color: var(--bad); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0; }
.pill { padding: 6px 12px; border-radius: 99px; font: 500 12.5px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); color: var(--mute); background: var(--panel); }
.table-lite { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.table-lite th, .table-lite td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-lite th { font: 500 12px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.table-lite td:first-child { color: var(--cream); white-space: nowrap; }

/* rendszerek */
.sys-group { margin-bottom: 52px; }
.sys-group > h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 6px; }
.sys-group > h2 img { width: 46px; height: 46px; object-fit: contain; }
.sys-group > p { color: var(--mute); margin-bottom: 18px; max-width: 70ch; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.sys { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: border-color .25s, transform .25s; }
.sys:hover { border-color: var(--rust2); transform: translateY(-3px); }
.sys h3 { font-size: 19px; margin-bottom: 8px; }
.sys p { margin: 0 0 .7em; color: var(--text); font-size: 15px; }
.sys ul { margin: 0; padding-left: 1.1em; color: var(--mute); font-size: 14.5px; }
.sys li { margin-bottom: .3em; } .sys li::marker { color: var(--accent); }
.sys .keys { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--mute); font-size: 13.5px; }

/* tippek */
.tip-grid { columns: 2 340px; column-gap: 16px; }
.tipc { break-inside: avoid; margin: 0 0 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.tipc .ti { font: 600 14px/1 var(--type); color: var(--kick); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.tipc h3 { font-size: 20px; margin-bottom: 6px; }
.tipc p { margin: 0; color: var(--text); font-size: 15px; }

/* GYIK */
.faq-tools { margin: 6px 0 26px; }
.search { width: 100%; max-width: 560px; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--cream); font: 500 16px/1 var(--body); }
.search::placeholder { color: var(--mute); }
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.faq-cat { margin-bottom: 34px; }
.faq-cat > h2 { font-size: 26px; margin-bottom: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--rust2); background: var(--panel2); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 54px 17px 20px; position: relative; font: 600 17px/1.35 var(--body); color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); font: 500 20px/1 var(--head); color: var(--accent); filter: brightness(1.3); transition: transform .25s; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 22px 18px 20px; color: var(--text); font-size: 15.5px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* lábléc */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); padding-top: 46px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 56px; height: 56px; }
.foot-brand strong { font: 700 22px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--cream); }
.foot-brand p { color: var(--mute); margin: 6px 0 0; font-size: 14.5px; }
.foot-links h4 { font-size: 13px; letter-spacing: .14em; color: var(--mute); margin-bottom: 12px; }
.foot-links a, .foot-links .copy { display: block; padding: 4px 0; color: var(--text); font-size: 15px; cursor: pointer; }
.foot-links a:hover, .foot-links .copy:hover { color: #fff; }
.legal { padding: 20px 0 34px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--mute); font-size: 13px; }
.legal p { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 100; padding: 12px 18px; border-radius: 10px; background: #1a0b0e; border: 1px solid var(--rust2); color: var(--cream); font-size: 14px; transition: all .3s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- reszponzív ---------- */
@media (max-width: 920px) {
  .hero-banner { height: clamp(260px, 70vw, 520px); }
  .layout-doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: rgba(6, 7, 11, .97);
    border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 15px 10px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .05); border-radius: 0; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .foot { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .hero-banner img { object-position: 50% 40%; }
  .stats { margin-top: 0; }
  .board th, .board td { padding: 11px 12px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .tabs [role=tab] { white-space: nowrap; }
}

/* ---------- jelentkezés + admin ---------- */
.apply-form, .app-doc { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font: 600 14px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--kick); margin-bottom: 9px; }
.txt { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--cream); font: 400 16px/1.3 var(--body); transition: border-color .2s, box-shadow .2s; }
.txt:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.txt::placeholder { color: var(--mute); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ed-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--mute); margin-top: 8px; }
.js-warn { color: var(--warn); font-size: 14px; margin: 8px 0 0; }
.apply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.apply-actions .mute { color: var(--mute); font-size: 13px; max-width: 52ch; }
.apply-done { text-align: center; padding: clamp(30px, 5vw, 60px) 20px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(500px 220px at 50% 0, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--panel); }
.apply-done .ad-ico { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; font-size: 34px; color: #fff; background: linear-gradient(180deg, #4cc06a, #2b8a45); box-shadow: 0 10px 28px rgba(60, 190, 100, .35); margin-bottom: 14px; }
.apply-done h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.apply-done p { color: var(--mute); max-width: 52ch; margin: 0 auto; }

/* Quill (szerkesztő) sötét téma */
body .editor-wrap .ql-toolbar.ql-snow { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: 8px; }
body .editor-wrap .ql-container.ql-snow, body .app-doc .ql-container.ql-snow { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: var(--bg2); font: 400 16px/1.6 var(--body); color: var(--text); }
body .app-doc .ql-container.ql-snow { border: 0; background: transparent; font-size: 17px; }
body .ql-snow .ql-editor { min-height: 340px; padding: 16px 18px; }
body .app-doc .ql-snow .ql-editor { min-height: 160px; padding: 4px; }
body .ql-snow .ql-editor.ql-blank::before { color: var(--mute); font-style: normal; }
body .ql-snow .ql-editor h1, body .ql-snow .ql-editor h2, body .ql-snow .ql-editor h3 { color: var(--cream); }
body .ql-snow .ql-editor a { color: var(--kick); }
body .ql-snow .ql-editor blockquote { border-left: 4px solid var(--accent); color: var(--mute); }
body .ql-snow .ql-editor pre.ql-syntax { background: #04050a; color: #e6e9f2; border-radius: 8px; }
body .ql-snow .ql-stroke { stroke: var(--text); }
body .ql-snow .ql-fill, body .ql-snow .ql-stroke.ql-fill { fill: var(--text); }
body .ql-snow .ql-picker { color: var(--text); }
body .ql-snow .ql-picker-options { background: var(--panel2); border-color: var(--line) !important; box-shadow: var(--shadow); }
body .ql-snow.ql-toolbar button:hover .ql-stroke, body .ql-snow.ql-toolbar button.ql-active .ql-stroke, body .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke, body .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke, body .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke, body .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke { stroke: var(--kick); }
body .ql-snow.ql-toolbar button:hover .ql-fill, body .ql-snow.ql-toolbar button.ql-active .ql-fill, body .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill, body .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill { fill: var(--kick); }
body .ql-snow.ql-toolbar .ql-picker-label:hover, body .ql-snow.ql-toolbar .ql-picker-label.ql-active, body .ql-snow.ql-toolbar .ql-picker-item:hover, body .ql-snow.ql-toolbar .ql-picker-item.ql-selected { color: var(--kick); }
body .ql-snow .ql-tooltip { background: var(--panel2); color: var(--text); border-color: var(--line); box-shadow: var(--shadow); }
body .ql-snow .ql-tooltip input[type=text] { background: var(--bg); color: var(--cream); border-color: var(--line); }
body .ql-snow .ql-tooltip a.ql-action::after { content: 'Szerkesztés'; }
body .ql-snow .ql-tooltip a.ql-remove::before { content: 'Eltávolítás'; }
body .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: 'Mentés'; }
body .ql-snow .ql-tooltip[data-mode=link]::before { content: 'Link címe:'; }
body .ql-snow .ql-tooltip::before { content: 'Megnyitás:'; }
body .ql-snow .ql-picker.ql-header .ql-picker-label::before, body .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: 'Normál'; }
body .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, body .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content: 'Nagy cím'; }
body .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, body .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: 'Cím'; }
body .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, body .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: 'Alcím'; }

/* admin */
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 6px 0 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; gap: 8px; align-items: center; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 15px/1 var(--type); letter-spacing: .06em; text-transform: uppercase; }
.tab b { background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 2px 8px; font-size: 13px; }
.tab:hover { border-color: var(--rust2); color: var(--cream); }
.tab.on { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, #fff 5%), color-mix(in srgb, var(--accent) 60%, #000 40%)); border-color: transparent; color: #fff; }
.search { display: flex; flex-wrap: wrap; gap: 8px; }
.search .txt { width: auto; min-width: 190px; padding: 10px 13px; }
.search .btn { padding: 10px 16px; }
.app-list { display: grid; gap: 12px; }
.app-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--mute); background: linear-gradient(180deg, var(--panel2), var(--panel)); transition: border-color .2s, transform .2s; }
.app-row:hover { transform: translateY(-1px); border-color: var(--rust2); }
.app-row.st-accepted { border-left-color: var(--ok); }
.app-row.st-rejected { border-left-color: var(--bad); }
.app-row.st-pending { border-left-color: var(--warn); }
.ar-main { flex: 1 1 340px; min-width: 0; }
.ar-title { display: inline-block; font: 600 22px/1.2 var(--head); color: var(--cream); letter-spacing: .02em; margin-bottom: 6px; }
.ar-title:hover { color: var(--kick); }
.ar-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--mute); font-size: 14px; }
.ar-meta b { color: var(--text); font-weight: 500; }
.ar-ex { margin: 8px 0 0; color: var(--mute); font-size: 15px; overflow-wrap: anywhere; }
.ar-side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn.sm { padding: 9px 14px; font-size: 14px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.4 var(--type); letter-spacing: .1em; text-transform: uppercase; }
.badge.st-pending { background: rgba(232, 161, 58, .16); color: var(--warn); }
.badge.st-accepted { background: rgba(125, 207, 116, .16); color: var(--ok); }
.badge.st-rejected { background: rgba(255, 74, 86, .16); color: var(--bad); }
.ar-act { display: inline-flex; gap: 6px; margin: 0; }
.ab { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--mute); font: 700 20px/1 var(--body); cursor: pointer; transition: all .15s; }
.ab:hover { transform: translateY(-2px); color: #fff; }
.ab.ok:hover, .ab.ok.on { background: #2b8a45; border-color: #4cc06a; color: #fff; box-shadow: 0 6px 18px rgba(60, 190, 100, .3); }
.ab.no:hover, .ab.no.on { background: #a3121c; border-color: #ff4a56; color: #fff; box-shadow: 0 6px 18px rgba(255, 60, 70, .3); }
.ab.wait:hover, .ab.wait.on { background: #8a5a12; border-color: var(--warn); color: #fff; box-shadow: 0 6px 18px rgba(232, 161, 58, .25); }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 16px 20px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); }
.app-meta b { color: var(--cream); font-weight: 600; }
.app-meta .ar-act { margin-left: auto; }
.app-meta a { text-decoration: underline; }
.copy { cursor: pointer; border-bottom: 1px dashed var(--mute); }
