/* ORIGIN RPG Fórum – a bannerhez igazított téma
   Modern klasszikus: szénfekete felületek, fehér Montserrat címek,
   egyetlen narancs kiemelőszín és a banner íves „swoosh” vonala mint visszatérő motívum. */

:root {
  --ink: #0b0c10;
  --coal: #131419;
  --coal-2: #1a1b21;
  --coal-3: #23252c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f4f4f6;
  --muted: #9a9ca6;
  --orange: #ff7a00;
  --orange-2: #ffa31a;
  --orange-ink: #1a0d00;
  --ok: #3ddc84;
  --danger: #ff5a52;
  --discord: #5865f2;
  --police: #5b8cff;
  --ems: #ff5a6a;
  --mechanic: #ffa31a;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", "Manrope", system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow: 0 20px 40px -24px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 400 1rem/1.65 var(--font);
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(255, 255, 255, .06), transparent 70%),
    radial-gradient(700px 400px at 100% 100%, rgba(255, 122, 0, .06), transparent 70%),
    var(--ink);
  background-attachment: fixed;
}

::selection { background: rgba(255, 122, 0, .4); }
a { color: var(--text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--orange-2); }
.post-content a, .error-steps a, .form-foot a, .reply a, p.muted a {
  color: var(--orange-2); text-decoration: underline; text-decoration-color: rgba(255, 122, 0, .45); text-underline-offset: 3px;
}
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0 0 .45em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
code { font-size: .88em; background: rgba(255, 255, 255, .08); padding: .12em .4em; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
main.wrap { flex: 1; padding-block: 2rem 5rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--orange); color: var(--orange-ink); padding: .5rem 1rem; border-radius: var(--r-sm); }
form.inline { display: inline; }

/* A banner íve: narancs swoosh vonal, címek alatt és a hero alján */
.swoosh, .section-title::after, .panel-title::after, .page-head h1:not(.thread-heading)::after, .form-card > h1::after, .error-wrap h1::after {
  content: ""; display: block; height: 10px; width: 72px; margin-top: .45rem;
  border-top: 3px solid var(--orange); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ---------- Fejléc ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 12, 16, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 2.25rem; min-height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: .35rem; font: 900 1.5rem/1 var(--display); letter-spacing: -.02em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand span:last-child { color: var(--orange); }
.nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.nav > a:not(.btn) { position: relative; color: var(--muted); font-weight: 700; font-size: .93rem; padding: .5rem .85rem; transition: color .15s; }
.nav > a:not(.btn):hover { color: var(--text); }
.nav > a[aria-current="page"] { color: var(--text); }
.nav > a[aria-current="page"]::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -.1rem; height: 6px;
  border-top: 2px solid var(--orange); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.nav-spacer { flex: 1; }
.nav-user { display: inline-flex !important; align-items: center; gap: .55rem; color: var(--text) !important; padding: .3rem .85rem .3rem .3rem !important; border-radius: 999px; background: var(--coal-2); border: 1px solid var(--line); }
.nav-user::after { display: none; }
.nav form.inline { margin-left: .35rem; }
.nav-toggle { display: none; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 700 .92rem/1 var(--font); padding: .8rem 1.3rem; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem .95rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: var(--orange-ink); box-shadow: 0 8px 20px -10px rgba(255, 122, 0, .9); }
.btn-primary:hover { color: var(--orange-ink); filter: brightness(1.06); box-shadow: 0 10px 26px -10px rgba(255, 122, 0, 1); }
.btn-ghost { background: var(--coal-2); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--coal-3); color: var(--text); border-color: rgba(255, 255, 255, .25); }
.btn-danger { background: rgba(255, 90, 82, .08); color: var(--danger); border-color: rgba(255, 90, 82, .35); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord::before {
  content: ""; width: 20px; height: 20px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.3 4.4A19.8 19.8 0 0 0 15.4 3l-.6 1.3a18.4 18.4 0 0 0-5.6 0L8.6 3a19.7 19.7 0 0 0-4.9 1.4C.6 9 -.3 13.6.1 18.1a19.9 19.9 0 0 0 6 3l1.3-2a12.9 12.9 0 0 1-2-1l.5-.4a14.2 14.2 0 0 0 12.2 0l.5.4c-.6.4-1.3.7-2 1l1.3 2a19.8 19.8 0 0 0 6-3c.5-5.2-.8-9.7-3.6-13.7ZM8.5 15.3c-1.2 0-2.2-1.1-2.2-2.4s1-2.4 2.2-2.4 2.2 1.1 2.2 2.4-1 2.4-2.2 2.4Zm7 0c-1.2 0-2.2-1.1-2.2-2.4s1-2.4 2.2-2.4 2.2 1.1 2.2 2.4-1 2.4-2.2 2.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.3 4.4A19.8 19.8 0 0 0 15.4 3l-.6 1.3a18.4 18.4 0 0 0-5.6 0L8.6 3a19.7 19.7 0 0 0-4.9 1.4C.6 9 -.3 13.6.1 18.1a19.9 19.9 0 0 0 6 3l1.3-2a12.9 12.9 0 0 1-2-1l.5-.4a14.2 14.2 0 0 0 12.2 0l.5.4c-.6.4-1.3.7-2 1l1.3 2a19.8 19.8 0 0 0 6-3c.5-5.2-.8-9.7-3.6-13.7ZM8.5 15.3c-1.2 0-2.2-1.1-2.2-2.4s1-2.4 2.2-2.4 2.2 1.1 2.2 2.4-1 2.4-2.2 2.4Zm7 0c-1.2 0-2.2-1.1-2.2-2.4s1-2.4 2.2-2.4 2.2 1.1 2.2 2.4-1 2.4-2.2 2.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-discord:hover { background: #4752c4; color: #fff; }

/* ---------- Hero: a banner ---------- */
.hero {
  margin: .25rem 0 2.75rem; border-radius: var(--r-lg); overflow: hidden;
  background: var(--coal); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-banner { display: block; position: relative; }
.hero-banner img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.hero-banner::after { /* finom átmenet a sáv felé */
  content: ""; position: absolute; inset: auto 0 0; height: 30%;
  background: linear-gradient(180deg, transparent, var(--coal));
  pointer-events: none;
}
.hero-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap;
  padding: 1.1rem 1.6rem 1.35rem;
}
.hero-lead { margin: 0; color: #c9cbd2; font-size: 1.02rem; max-width: 52ch; }
.status { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #5d6070; flex-shrink: 0; }
.is-online .status-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }
.status-text { font-weight: 600; color: #d7d9df; margin-right: .35rem; }
.status-text strong { font: 800 1.15rem/1 var(--display); color: #fff; }
.is-offline .status-text { color: var(--muted); }

/* ---------- Elrendezés ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2rem; align-items: start; }
.section-title { font-size: 1.35rem; margin: 0 0 1.1rem .15rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.page-head p { margin: .2rem 0 0; }
.crumbs { display: flex; gap: .45rem; flex-wrap: wrap; color: var(--muted); font-size: .86rem; font-weight: 600; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange-2); }

/* Közös felület */
.cat-list, .thread-list, .panel, .post, .form-card, .reply .form, .empty, .modbar, .member-list {
  background: var(--coal); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}

/* ---------- Kategóriák ---------- */
.cat-list, .thread-list, .recent, .faction-list, .member-list { list-style: none; margin: 0; padding: 0; }
.cat-list, .thread-list { overflow: hidden; }
.cat-row {
  position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) 150px 240px; gap: 1.1rem; align-items: center;
  padding: 1.05rem 1.3rem; transition: background .18s;
}
.cat-row + .cat-row, .thread-row + .thread-row { border-top: 1px solid var(--line); }
.cat-row::before, .thread-row::before { /* narancs jelölő hoverre */
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--orange); opacity: 0; transition: opacity .18s;
}
.cat-row:hover, .thread-row:hover { background: var(--coal-2); }
.cat-row:hover::before, .thread-row:hover::before { opacity: 1; }
.cat-icon { width: 50px; height: 50px; display: grid; place-items: center; font-size: 1.4rem; border-radius: var(--r-md); background: var(--coal-3); border: 1px solid var(--line); }
.cat-name { font: 700 1.08rem/1.25 var(--display); letter-spacing: -.01em; }
.cat-name::after { content: ""; position: absolute; inset: 0; }
.cat-last a { position: relative; z-index: 1; }
.cat-desc { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.cat-stats, .thread-stats { display: flex; gap: 1.3rem; margin: 0; }
.cat-stats div, .thread-stats div { display: flex; flex-direction: column-reverse; }
.cat-stats dt, .thread-stats dt { font-size: .74rem; color: var(--muted); font-weight: 600; }
.cat-stats dd, .thread-stats dd { margin: 0; font: 800 1.1rem/1.2 var(--display); }
.cat-last { display: flex; flex-direction: column; min-width: 0; padding-left: 1rem; border-left: 1px solid var(--line); }
.cat-last a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: .9rem; }
.cat-last small, .thread-main small, .thread-last small, .recent small { color: var(--muted); font-size: .8rem; }

/* ---------- Témák ---------- */
.thread-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 180px 120px; gap: 1rem; align-items: center; padding: .95rem 1.3rem; transition: background .18s; }
.thread-row.is-pinned { background: linear-gradient(90deg, rgba(255, 122, 0, .09), transparent 65%); }
.thread-main { display: flex; flex-direction: column; min-width: 0; }
.thread-title { font-weight: 700; font-size: 1rem; }
.thread-title::after { content: ""; position: absolute; inset: 0; }
.thread-last { display: flex; flex-direction: column; text-align: right; }
.tag { display: inline-block; font: 700 .68rem/1 var(--font); padding: .32rem .55rem; border-radius: 6px; vertical-align: .2em; margin-right: .4rem; }
.tag-pin { background: var(--orange); color: var(--orange-ink); }
.tag-lock { background: var(--coal-3); color: var(--muted); border: 1px solid var(--line-2); }

/* ---------- Oldalsáv ---------- */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.panel { padding: 1.35rem 1.45rem; }
section > .panel + .panel { margin-top: 1.25rem; }
.panel-title { font-size: 1.05rem; margin-bottom: 1rem; }
.panel-title::after { width: 44px; height: 7px; margin-top: .35rem; border-top-width: 2px; }
.panel-admin { border-color: rgba(255, 122, 0, .4); }
.recent li { display: flex; flex-direction: column; padding: .65rem 0; border-top: 1px solid var(--line); }
.recent li:first-child { border-top: 0; padding-top: 0; }
.recent a { font-weight: 700; font-size: .93rem; line-height: 1.4; }
.faction-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0 0 .9rem; }
.stat-grid div { display: flex; flex-direction: column-reverse; padding: .8rem .9rem; border-radius: var(--r-md); background: var(--coal-2); border: 1px solid var(--line); }
.stat-grid dt { color: var(--muted); font-size: .76rem; font-weight: 600; }
.stat-grid dd { margin: 0; font: 800 1.45rem/1.1 var(--display); }

/* ---------- Jelvények ---------- */
.badge { display: inline-block; font: 700 .7rem/1 var(--font); padding: .35rem .6rem; border-radius: 6px; }
.badge-admin { background: rgba(255, 122, 0, .15); color: var(--orange-2); border: 1px solid rgba(255, 122, 0, .45); }
.badge-mod { background: rgba(91, 140, 255, .14); color: #a2bcff; border: 1px solid rgba(91, 140, 255, .4); }
.badge-banned { background: rgba(0, 0, 0, .5); color: var(--danger); border: 1px solid var(--danger); }
.faction { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.faction-police { color: var(--police); }
.faction-ems { color: var(--ems); }
.faction-mechanic { color: var(--mechanic); }

/* ---------- Avatar ---------- */
.avatar {
  display: inline-grid; place-items: center; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: linear-gradient(135deg, hsl(var(--hue, 220) 18% 38%), hsl(var(--hue, 220) 14% 22%));
  color: #fff; font-family: var(--display); font-weight: 800; box-shadow: 0 0 0 2px var(--line-2);
}
.avatar-sm { width: 28px; height: 28px; font-size: .8rem; }
.avatar-md { width: 44px; height: 44px; font-size: 1.05rem; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.8rem; }
.avatar-xl { width: 120px; height: 120px; font-size: 2.9rem; box-shadow: 0 0 0 4px var(--ink), 0 0 0 6px var(--orange); }

/* ---------- Hozzászólások ---------- */
.thread-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.thread-heading .tag { font-size: .75rem; }
.posts { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.1rem 0; }
.post { display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; scroll-margin-top: 90px; transition: border-color .3s; }
.post.is-first { border-top: 3px solid var(--orange); }
.post:target { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 0, .18), var(--shadow); }
.post-author { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.5rem 1rem; background: var(--coal-2); border-right: 1px solid var(--line); }
.post-name { font: 800 1.02rem/1.2 var(--display); }
.post-body { padding: 1.15rem 1.6rem 1.35rem; display: flex; flex-direction: column; min-width: 0; }
.post-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.post-meta a { color: var(--muted); }
.post-content { max-width: 75ch; overflow-wrap: anywhere; line-height: 1.75; }
.post-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: 1.1rem; }
.modbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .7rem; margin-bottom: 1.1rem; border-style: dashed; border-radius: var(--r-md); box-shadow: none; }
.modbar form { display: flex; gap: .5rem; align-items: center; }
.modbar select { width: auto; padding: .5rem 2.2rem .5rem .8rem; font-size: .85rem; }

/* ---------- Űrlapok ---------- */
.form-card { max-width: 460px; margin: 1.5rem auto; padding: 2.4rem; }
.form-card > h1 { font-size: 1.9rem; }
.form-wide { max-width: 840px; }
.form { display: flex; flex-direction: column; gap: .35rem; }
.form label { font-weight: 700; font-size: .86rem; margin-top: .8rem; color: #d7d9df; }
.form .btn { margin-top: 1.2rem; align-self: flex-start; }
.form .btn-block { align-self: stretch; }
input, textarea, select {
  font: inherit; color: var(--text); width: 100%;
  background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .78rem .95rem;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #6b6e78; }
input:hover, textarea:hover, select:hover { border-color: rgba(255, 255, 255, .25); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 0, .16); }
select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239a9ca6'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; }
select option { background: var(--coal); }
textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500 !important; color: var(--text) !important; }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--orange); flex-shrink: 0; }
.hint { color: var(--muted); font-size: .82rem; margin: .25rem 0 0; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.form-actions .btn { margin-top: 1.2rem; }
.form-foot { text-align: center; color: var(--muted); margin: 1.4rem 0 0; font-size: .92rem; }
.or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .8rem; font-weight: 600; margin: 1.4rem 0 .2rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.reply { margin-top: 2rem; }
.reply .form { padding: 1.4rem 1.6rem; }
.reply .form label { margin-top: 0; font: 800 1.05rem var(--display); color: var(--text); }
.search { display: flex; gap: .5rem; }
.search input { width: 260px; }

/* ---------- Visszajelzések ---------- */
.flash {
  display: flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; margin-bottom: 1.1rem;
  border-radius: var(--r-md); border: 1px solid; font-weight: 600; font-size: .94rem; background: var(--coal);
  animation: flash-in .35s var(--ease);
}
.flash::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.flash-success { color: #8ff0bc; border-color: rgba(61, 220, 132, .35); }
.flash-error { color: #ffaba6; border-color: rgba(255, 90, 82, .4); }
.flash-info { color: #ffc27a; border-color: rgba(255, 122, 0, .4); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }
.empty { text-align: center; color: var(--muted); padding: 3rem 1.5rem; border-style: dashed; box-shadow: none; }
.empty .btn { margin-top: .8rem; }

.pagination { display: flex; gap: .35rem; flex-wrap: wrap; margin: 1.2rem 0; }
.page { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 .7rem; border-radius: var(--r-sm); color: var(--muted); font-weight: 700; font-size: .88rem; background: var(--coal); border: 1px solid var(--line); transition: background .15s, color .15s; }
.page:hover { background: var(--coal-2); color: var(--text); }
.page.current { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.page.gap { background: none; border: 0; }

/* ---------- Profil, tagok ---------- */
.profile-head {
  position: relative; isolation: isolate; overflow: hidden; display: flex; gap: 2rem; align-items: center; padding: 2.2rem; margin-bottom: 2rem;
  border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--coal);
}
.profile-head::after { /* a banner jobb széle: Vinewood és a narancs ív */
  content: ""; position: absolute; inset: 0 0 0 auto; width: 50%; z-index: -1;
  background: url("../img.php?src=banner.jpg&w=1200") 100% 45% / auto 250% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
          mask-image: linear-gradient(90deg, transparent, #000 55%);
  opacity: .85;
}
.profile-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .35rem; }
.profile-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.profile-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.profile-stats div { display: flex; flex-direction: column-reverse; padding: .6rem 1rem; border-radius: var(--r-md); background: rgba(11, 12, 16, .7); border: 1px solid var(--line); }
.profile-stats dt { color: var(--muted); font-size: .74rem; font-weight: 600; }
.profile-stats dd { margin: 0; font: 800 1.1rem/1.2 var(--display); }
.member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .3rem; padding: .5rem; }
.member-list li { display: flex; gap: .85rem; align-items: center; padding: .75rem .85rem; border-radius: var(--r-md); transition: background .15s; }
.member-list li:hover { background: var(--coal-2); }
.member-list li > div { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.user-link { font-weight: 700; }

/* ---------- Lábléc ---------- */
.footer { position: relative; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; background: #08090c; }
.footer::before { /* a banner jobb alsó íve */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange) 50%, transparent);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem; }
.footer code { background: var(--coal-2); border: 1px solid var(--line); padding: .3rem .6rem; border-radius: 6px; }

/* ---------- Hibaoldal ---------- */
.error-body { justify-content: center; }
.error-wrap { width: min(660px, 100% - 2.5rem); margin: 0 auto; padding: 4rem 0; }
.barrier { height: 22px; border-radius: 6px; margin-bottom: 2.5rem; max-width: 260px; background: repeating-linear-gradient(-45deg, var(--orange) 0 18px, #f4f4f6 18px 36px); }
.error-code { display: inline-block; font: 700 .82rem/1 var(--font); color: var(--orange-2); background: rgba(255, 122, 0, .1); border: 1px solid rgba(255, 122, 0, .35); padding: .4rem .75rem; border-radius: 6px; margin: 0 0 1rem; }
.error-wrap h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; max-width: 18ch; }
.error-lead { color: var(--muted); font-size: 1.05rem; max-width: 52ch; margin: 0 0 1.75rem; }
.error-steps { margin: 0 0 2rem; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.error-ref { display: inline-block; font: 800 1rem/1 var(--display); letter-spacing: .05em; background: var(--coal-2); border: 1px solid var(--line-2); padding: .35rem .65rem; border-radius: 6px; user-select: all; }
.error-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.error-debug { margin-top: 2.5rem; border: 1px solid rgba(255, 90, 82, .5); background: rgba(255, 90, 82, .06); border-radius: var(--r-md); padding: 1rem 1.2rem; }
.error-debug summary { cursor: pointer; color: var(--danger); font-weight: 700; }
.error-debug pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; color: var(--muted); margin: .75rem 0 0; }

/* ---------- Reszponzív ---------- */
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .cat-row { grid-template-columns: 50px minmax(0, 1fr) 140px; }
  .cat-last { display: none; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; margin-left: auto; background: var(--coal-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .5rem 1rem; font: 700 .88rem var(--font); cursor: pointer; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(11, 12, 16, .98); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem; gap: .3rem;
  }
  .nav.open { display: flex; animation: flash-in .2s var(--ease); }
  .nav-spacer { display: none; }
  .nav > a[aria-current="page"]::after { display: none; }
  .nav > a[aria-current="page"] { color: var(--orange-2); }
  .nav form.inline { margin: .3rem 0 0; }
  .nav form.inline .btn { width: 100%; }
  .hero { margin-top: 0; }
  .hero-banner img { aspect-ratio: 16 / 9; object-position: 50% 50%; }
  .hero-bar { padding: .9rem 1.1rem 1.2rem; }
  .status { width: 100%; }
  .status-text { flex: 1 1 calc(100% - 1.5rem); margin-right: 0; }
  .status .btn { flex: 1; }
  .cat-row { grid-template-columns: 42px minmax(0, 1fr); padding: .95rem 1rem; }
  .cat-icon { width: 42px; height: 42px; font-size: 1.2rem; }
  .cat-stats { grid-column: 2; }
  .thread-row { grid-template-columns: 40px minmax(0, 1fr); padding: .85rem 1rem; }
  .thread-stats, .thread-last { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; flex-wrap: wrap; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: .85rem 1rem; }
  .post-author .avatar-lg { width: 42px; height: 42px; font-size: 1.05rem; }
  .post-body { padding: 1rem 1.1rem 1.2rem; }
  .profile-head { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .form-card { padding: 1.6rem; }
  .search, .search input { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .is-online .status-dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================
   Ikonok (Phosphor), jogosultság jelzések, admin felület
   ========================================================== */
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; fill: currentColor; }
.btn .ic { width: 1.1rem; height: 1.1rem; margin-left: -.15rem; }
.btn-sm .ic { width: 1rem; height: 1rem; }
.nav > a:not(.btn) { display: inline-flex; align-items: center; gap: .4rem; }
.nav > a .ic { width: 1.05rem; height: 1.05rem; }
.nav-toggle { gap: .4rem; align-items: center; }

/* Kategória ikonok: narancs duotone */
.cat-icon { color: var(--orange); }
.cat-icon .ic { width: 26px; height: 26px; }
.cat-heading { display: flex; align-items: center; gap: .75rem; }
.head-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--coal-2); border: 1px solid var(--line); color: var(--orange); }
.head-icon .ic { width: 26px; height: 26px; }
.page-head h1.cat-heading { flex-wrap: wrap; }
.page-head h1.cat-heading::after { flex-basis: 100%; }

.cat-main { position: relative; }
.cat-lock { position: relative; z-index: 1; display: inline-grid; place-items: center; margin-left: .35rem; color: var(--muted); vertical-align: middle; cursor: help; }
.cat-lock .ic { width: .95rem; height: .95rem; }

.rule-note { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .6rem .9rem; border-radius: var(--r-sm); background: var(--coal); border: 1px solid var(--line-2); color: var(--muted); font-size: .88rem; font-weight: 600; }
.rule-note .ic { color: var(--orange); }
.empty .ic { color: var(--orange); }

.tag { display: inline-flex; align-items: center; gap: .25rem; }
.tag .ic { width: .85rem; height: .85rem; }

/* Jelvények */
.badges { display: inline-flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.member-list .badges { justify-content: flex-start; }
.badge { display: inline-flex; align-items: center; gap: .3rem; }
.badge .ic, .faction .ic { width: .95rem; height: .95rem; }
.badge-rank { --rank: #c9cbd2; color: var(--rank); background: color-mix(in srgb, var(--rank) 12%, transparent); border: 1px solid color-mix(in srgb, var(--rank) 40%, transparent); }
.member-name { display: block; }

/* Hero: ha a banner nem töltődik be */
.hero-banner.is-missing { aspect-ratio: 3 / 1; display: grid; place-items: center; background: radial-gradient(60% 80% at 50% 40%, #23252c, var(--coal)); }
.hero-banner.is-missing img { display: none; }
.hero-banner.is-missing::before { content: "Origin RPG"; font: 900 clamp(2.5rem, 7vw, 5rem)/1 var(--display); letter-spacing: -.02em; color: #fff; }
.status .btn span { pointer-events: none; }

/* Profil: Discord rangok */
.role-chips { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.role-chips li { --rc: #9a9ca6; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--coal-2); border: 1px solid var(--line-2); }
.role-chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.sync-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }

/* Admin: kategóriák */
.admin-cats { display: flex; flex-direction: column; gap: .75rem; }
.cat-admin { padding: 0; overflow: hidden; }
.cat-admin summary { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; cursor: pointer; list-style: none; }
.cat-admin summary::-webkit-details-marker { display: none; }
.cat-admin summary:hover { background: var(--coal-2); }
.cat-admin .cat-icon { width: 44px; height: 44px; }
.cat-admin .cat-icon .ic { width: 24px; height: 24px; }
.cat-admin-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cat-admin-name strong { font: 700 1.02rem/1.3 var(--display); }
.cat-admin-name small { color: var(--muted); font-size: .8rem; }
.cat-admin .caret { color: var(--muted); transition: transform .2s; }
.cat-admin[open] .caret { transform: rotate(180deg); }
.cat-admin[open] summary { border-bottom: 1px solid var(--line); }
.cat-admin > .form { padding: .5rem 1.3rem 1.3rem; }
.cat-new { border-style: dashed; box-shadow: none; }
.cat-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; }
.cat-form-grid > div { display: flex; flex-direction: column; gap: .35rem; }
.cat-form-grid > div[hidden] { display: none; }
.pos-field { max-width: 140px; }

.icon-picker, .role-picker { border: 0; padding: 0; margin: .8rem 0 0; min-width: 0; }
.icon-picker legend, .role-picker legend { font-weight: 700; font-size: .86rem; color: #d7d9df; margin-bottom: .45rem; padding: 0; }
.role-picker legend .muted { font-weight: 500; }
.icon-picker { display: flex; flex-wrap: wrap; gap: .35rem; }
.icon-picker label { margin: 0 !important; cursor: pointer; }
.icon-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-picker label > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--line-2); color: var(--muted); transition: border-color .15s, color .15s, background .15s; }
.icon-picker label > span .ic { width: 22px; height: 22px; }
.icon-picker label:hover > span { color: var(--text); border-color: rgba(255,255,255,.3); }
.icon-picker input:checked + span { color: var(--orange); border-color: var(--orange); background: rgba(255, 122, 0, .1); }
.icon-picker input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .35rem; max-height: 240px; overflow: auto; padding: .15rem; }
.role-option { --rc: #9a9ca6; display: flex !important; align-items: center; gap: .55rem; margin: 0 !important; padding: .5rem .7rem; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--line-2); font-weight: 600 !important; font-size: .85rem !important; cursor: pointer; }
.role-option input { width: 16px; height: 16px; accent-color: var(--orange); flex-shrink: 0; }
.role-option span { border-left: 3px solid var(--rc); padding-left: .45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-option:has(input:checked) { border-color: var(--orange); background: rgba(255, 122, 0, .08); }

.danger-zone { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .9rem 1.3rem; border-top: 1px dashed rgba(255, 90, 82, .3); background: rgba(255, 90, 82, .03); }
.danger-zone label { font-size: .82rem; color: var(--muted); }
.danger-zone input { width: auto; flex: 1; min-width: 160px; padding: .5rem .8rem; }

.role-ids { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .35rem; max-height: 420px; overflow: auto; }
.role-ids li { --rc: #9a9ca6; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-left: .6rem; border-left: 3px solid var(--rc); }
.role-name { font-weight: 700; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-ids .btn { font-size: .72rem; font-variant-numeric: tabular-nums; }
.config-check { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.config-check div { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.config-check dt { color: var(--muted); }
.config-check dd { margin: 0; font-weight: 700; }

/* ==========================================================
   Prémium bolt, vásárlási szabályzat, jogi lábléc
   ========================================================== */
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(.4); transform: none; }

/* Feltételek */
.shop-reqs { margin-bottom: 2.5rem; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; counter-reset: req; }
.req {
  position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--r-md); background: var(--coal-2); border: 1px solid var(--line);
}
.req::after { /* lépés sorszáma: a feltételek sorrendben teljesíthetők */
  counter-increment: req; content: counter(req); position: absolute; top: .8rem; right: 1rem;
  font: 800 1.6rem/1 var(--display); color: rgba(255, 255, 255, .08);
}
.req.is-ok { border-color: rgba(61, 220, 132, .35); }
.req.is-todo:not(.is-ok) { border-color: var(--line-2); }
.req-icon .ic { width: 26px; height: 26px; }
.req.is-ok .req-icon { color: var(--ok); }
.req.is-todo .req-icon { color: var(--muted); }
.req-body { display: flex; flex-direction: column; gap: .15rem; }
.req-body strong { font: 700 .98rem/1.3 var(--display); }
.req-body small { color: var(--muted); font-size: .84rem; }
.req-action { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.req-action:empty { display: none; }
.req-done { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; color: #8ff0bc; font-weight: 700; }
.req-done .ic { width: 1.3rem; height: 1.3rem; }

/* Csomagok */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; align-items: stretch; }
.pkg {
  position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem 1.4rem 1.4rem;
  background: var(--coal); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.pkg.is-featured { border-color: rgba(255, 122, 0, .55); background: linear-gradient(180deg, rgba(255, 122, 0, .08), var(--coal) 45%); }
.pkg-badge {
  position: absolute; top: -.75rem; left: 1.4rem; padding: .35rem .7rem; border-radius: 6px;
  background: var(--orange); color: var(--orange-ink); font: 800 .72rem/1 var(--font);
}
.pkg-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--coal-2); border: 1px solid var(--line); color: var(--orange); margin-bottom: .3rem; }
.pkg-icon .ic { width: 28px; height: 28px; }
.pkg-name { font-size: 1.2rem; margin: 0; }
.pkg-price { margin: 0; font: 900 1.9rem/1.1 var(--display); letter-spacing: -.02em; }
.pkg.is-featured .pkg-price { color: var(--orange-2); }
.pkg-desc { margin: 0; color: var(--muted); font-size: .9rem; }
.pkg-items { list-style: none; margin: .5rem 0 1.1rem; padding: .9rem 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.pkg-items li { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.pkg-items .ic { color: var(--ok); margin-top: .2rem; }
.pkg .btn { margin-top: auto; white-space: normal; text-align: center; line-height: 1.2; }

.consent { margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .7rem; }
.consent .check { font-size: .92rem; }
.consent .check a { color: var(--orange-2); text-decoration: underline; }
.consent .hint { margin: 0; }

.shop-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.info-item { display: flex; gap: .8rem; align-items: flex-start; }
.info-item > .ic { width: 26px; height: 26px; color: var(--orange); flex-shrink: 0; }
.info-item div { display: flex; flex-direction: column; gap: .15rem; }
.info-item strong { font: 700 .95rem/1.3 var(--display); }
.info-item small { color: var(--muted); font-size: .84rem; }

/* Vásárlási szabályzat */
.terms { max-width: 820px; }
.terms-head { margin-bottom: 1.5rem; }
.terms-toc { margin-bottom: 2.5rem; }
.terms-toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.terms-toc li { break-inside: avoid; padding: .15rem 0; font-size: .93rem; }
.terms-toc a { color: #d7d9df; }
.terms-toc a:hover { color: var(--orange-2); }
.terms section { padding: 1.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.terms section h2 { font-size: 1.25rem; margin-bottom: .8rem; }
.terms section p, .terms section li { color: #cfd1d8; max-width: 72ch; }
.terms section ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.terms section a { color: var(--orange-2); text-decoration: underline; text-decoration-color: rgba(255, 122, 0, .45); text-underline-offset: 3px; }
.terms-disclaimer { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: var(--r-md); background: var(--coal); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Lábléc */
.footer-main { display: flex; flex-direction: column; gap: .35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.footer-links a { color: #c9cbd2; font-weight: 600; }
.footer-links a:hover { color: var(--orange-2); }
.footer-legal { padding-bottom: 1.4rem; font-size: .75rem; color: #6f727c; }

@media (max-width: 900px) {
  .req-list, .shop-info { grid-template-columns: 1fr; }
  .terms-toc ol { columns: 1; }
}

/* ==========================================================
   Részletes űrlapok (unban, panasz, jelentkezés…) és elbírálás
   ========================================================== */
.tpl-intro { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1.4rem; padding: .85rem 1rem; border-radius: var(--r-md); background: rgba(255, 122, 0, .07); border: 1px solid rgba(255, 122, 0, .3); color: #e6d6c6; font-size: .93rem; }
.tpl-intro .ic { color: var(--orange); margin-top: .15rem; width: 1.2rem; height: 1.2rem; }

.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.1rem; }
.tpl-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.tpl-field.is-wide { grid-column: 1 / -1; }
.tpl-field > label:not(.check) { margin-top: .8rem; }
.tpl-field .check { margin-top: 1rem; }
.tpl-field .hint { min-height: 0; }
.req-star { color: var(--orange); font-weight: 800; }
.tpl-field.has-error input, .tpl-field.has-error textarea, .tpl-field.has-error select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 90, 82, .14); }
.field-error { display: inline-flex; align-items: center; gap: .3rem; color: #ffaba6; font-weight: 700; }
.field-error .ic { width: 1rem; height: 1rem; }
.counter { float: right; font-variant-numeric: tabular-nums; }
.counter.is-short { color: #ffc27a; }
.counter.is-ok { color: #8ff0bc; }
input[type="date"], input[type="datetime-local"] { color-scheme: dark; }

/* Kitöltött adatok a téma első hozzászólásában */
.tpl-summary { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.tpl-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tpl-facts div { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem; background: var(--coal-2); }
.tpl-facts dt { color: var(--muted); font-size: .75rem; font-weight: 700; }
.tpl-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tpl-long h3, .tpl-body-label { font: 800 .82rem/1.3 var(--display); color: var(--orange-2); margin: 0 0 .35rem; letter-spacing: .01em; }
.tpl-long .post-content, .tpl-body { padding-left: .9rem; border-left: 2px solid var(--line-2); }
.tpl-after { margin: 1.1rem 0 0; }

/* Állapot címkék */
.tag-status { border: 1px solid; }
.tag-open     { background: rgba(255, 163, 26, .1);  color: #ffc27a; border-color: rgba(255, 163, 26, .4); }
.tag-progress { background: rgba(91, 140, 255, .12); color: #a2bcff; border-color: rgba(91, 140, 255, .4); }
.tag-accepted { background: rgba(61, 220, 132, .12); color: #8ff0bc; border-color: rgba(61, 220, 132, .4); }
.tag-rejected { background: rgba(255, 90, 82, .12);  color: #ffaba6; border-color: rgba(255, 90, 82, .4); }

/* Elbírálás panel (staff) */
.review { margin-bottom: 1.1rem; border-color: rgba(255, 122, 0, .35); }
.review .panel-title .ic { color: var(--orange); margin-right: .4rem; }
.status-picker { border: 0; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.status-opt { cursor: pointer; }
.status-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.status-opt span { display: inline-block; padding: .5rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--ink); font-weight: 700; font-size: .88rem; color: var(--muted); transition: all .15s; }
.status-opt:hover span { color: var(--text); }
.status-opt input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.status-open input:checked + span     { color: #ffc27a; border-color: #ffa31a; background: rgba(255, 163, 26, .1); }
.status-progress input:checked + span { color: #a2bcff; border-color: #5b8cff; background: rgba(91, 140, 255, .12); }
.status-accepted input:checked + span { color: #8ff0bc; border-color: #3ddc84; background: rgba(61, 220, 132, .12); }
.status-rejected input:checked + span { color: #ffaba6; border-color: #ff5a52; background: rgba(255, 90, 82, .12); }
.review .form-actions { margin-top: .2rem; }
.review .form-actions .btn { margin-top: .6rem; }

@media (max-width: 780px) {
  .tpl-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Értesítések, staff menü, captcha, jelentések, napló, szabályzat, keresés, képek
   ========================================================== */
.nav-icon { position: relative; display: inline-flex !important; align-items: center; gap: .4rem; color: var(--muted); padding: .5rem .6rem !important; border-radius: var(--r-sm); cursor: pointer; list-style: none; }
.nav-icon::-webkit-details-marker { display: none; }
.nav-icon:hover, .nav-icon[aria-current="page"] { color: var(--text); background: var(--coal-2); }
.nav-icon .ic { width: 1.2rem; height: 1.2rem; }
.nav-icon[aria-current="page"]::after { display: none; }
.nav-icon-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--orange-ink); font: 800 .68rem/1 var(--font); }
.nav-icon .count { position: absolute; top: 1px; right: -2px; }

.staff-menu { position: relative; }
.staff-dropdown { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 230px; padding: .4rem; background: var(--coal); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); z-index: 30; display: flex; flex-direction: column; }
.staff-dropdown a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: var(--r-sm); font-weight: 600; font-size: .9rem; color: #d7d9df; }
.staff-dropdown a:hover { background: var(--coal-2); color: var(--text); }
.staff-dropdown .ic { color: var(--orange); }
.staff-dropdown .count { margin-left: auto; }

.verify-bar { justify-content: space-between; flex-wrap: wrap; }
.verify-bar span { flex: 1; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-weight: 600; font-size: .82rem; color: var(--orange-2); }

/* Captcha */
.captcha { margin-top: .9rem; display: flex; flex-direction: column; gap: .4rem; }
.captcha-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.captcha-img { border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--coal); }
.captcha-text { font: 800 1.4rem var(--display); padding: .5rem .9rem; border-radius: var(--r-sm); background: var(--coal-2); }
.captcha-row input { width: 90px; text-align: center; font-size: 1.1rem; font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Olvasatlan */
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: .45rem; vertical-align: .15em; box-shadow: 0 0 0 3px rgba(255, 122, 0, .2); }
.thread-row.is-unread .thread-title { color: #fff; }
.thread-row:not(.is-unread) .thread-title { color: #c9cbd2; }
.cat-icon.has-unread { position: relative; border-color: rgba(255, 122, 0, .5); }
.cat-icon.has-unread::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); border: 2px solid var(--coal); }

/* Értesítések */
.notif-list { list-style: none; margin: 0; padding: .35rem; background: var(--coal); border: 1px solid var(--line); border-radius: var(--r-lg); }
.notif { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .8rem .9rem; border-radius: var(--r-md); }
.notif + .notif { border-top: 1px solid var(--line); }
.notif:hover { background: var(--coal-2); }
.notif-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--coal-3); color: var(--muted); }
.notif.is-unread .notif-icon { background: rgba(255, 122, 0, .14); color: var(--orange); }
.notif a { font-weight: 600; color: #c9cbd2; }
.notif.is-unread a { color: #fff; font-weight: 700; }
.notif small { color: var(--muted); font-size: .8rem; white-space: nowrap; }

/* Staff jegyzetek */
.notes { margin-bottom: 1.1rem; padding: 0; overflow: hidden; border-style: dashed; border-color: rgba(91, 140, 255, .45); }
.notes summary { display: flex; align-items: center; gap: .55rem; padding: .9rem 1.2rem; cursor: pointer; list-style: none; font-weight: 700; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary .ic:first-child { color: var(--police); }
.notes summary .caret { margin-left: auto; color: var(--muted); }
.notes[open] summary .caret { transform: rotate(180deg); }
.note { padding: .8rem 1.2rem; border-top: 1px solid var(--line); background: rgba(91, 140, 255, .04); }
.note-meta { font-size: .82rem; margin-bottom: .25rem; }
.note-form { padding: .9rem 1.2rem 1.1rem; border-top: 1px solid var(--line); }
.note-form .btn { margin-top: .4rem; }

/* Jelentés gomb a hozzászólásnál */
.post-body { position: relative; }
.report { position: absolute; top: .85rem; right: 1.2rem; }
.report summary { list-style: none; padding: .35rem .6rem; font-size: .78rem; opacity: .55; }
.report summary::-webkit-details-marker { display: none; }
.report summary:hover, .report[open] summary { opacity: 1; }
.report-form { position: absolute; right: 0; top: calc(100% + .4rem); width: min(340px, 80vw); display: flex; flex-direction: column; gap: .5rem; padding: .8rem; background: var(--coal); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); z-index: 10; }
.report-form .btn { align-self: flex-end; }

.report-list { display: flex; flex-direction: column; gap: .9rem; }
.report-card header { display: flex; flex-direction: column; gap: .15rem; margin-bottom: .6rem; }
.report-card.status-open { border-left: 3px solid var(--danger); }
.report-reason { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .6rem; font-weight: 700; color: #ffaba6; }
.report-reason .ic { margin-top: .2rem; }
.report-card blockquote { margin: 0 0 .8rem; padding: .7rem .9rem; border-left: 2px solid var(--line-2); background: var(--coal-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.report-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* Táblázatok (napló, játékosok) */
.table-wrap { padding: 0; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 700; padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.data-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--coal-2); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.ping.good { color: var(--ok); } .ping.ok { color: #ffc27a; } .ping.bad { color: var(--danger); }

/* Szerverszabályzat */
.rule-list { margin: .5rem 0 0; display: flex; flex-direction: column; gap: .9rem; }
.rule { scroll-margin-top: 90px; padding: .2rem 0 .2rem 1rem; border-left: 2px solid var(--line-2); }
.rule:target { border-left-color: var(--orange); background: linear-gradient(90deg, rgba(255, 122, 0, .08), transparent 70%); }
.rule dt { font-weight: 800; font-family: var(--display); margin-bottom: .2rem; }
.rule dd { margin: 0; color: #cfd1d8; }
.rule-code { display: inline-block; min-width: 2.6rem; color: var(--orange-2); font: 800 .95rem var(--display); text-decoration: none !important; }
.rule-chapter summary .rule-code { font-size: 1.1rem; }
.cat-admin summary .rule-code { min-width: 2.8rem; }

/* Keresés */
.search-big { margin-bottom: 1.4rem; }
.search-big input { flex: 1; width: auto; font-size: 1.05rem; }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.search-results li { padding: .9rem 1.1rem; border-radius: var(--r-md); background: var(--coal); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; }
.search-results .snippet { margin: .3rem 0 0; color: #b9bbc3; font-size: .9rem; }
mark { background: rgba(255, 122, 0, .3); color: #fff; border-radius: 3px; padding: 0 .1em; }

/* Képek, megemlítés, feltöltés */
.post-img { display: inline-block; margin: .4rem 0; max-width: 100%; }
.post-img img { display: block; max-width: 100%; max-height: 520px; height: auto; border-radius: var(--r-md); border: 1px solid var(--line-2); }
.mention { color: var(--orange-2); font-weight: 700; }
.upload-bar { display: flex; align-items: center; gap: .7rem; margin-top: .45rem; }
.upload-status { font-size: .82rem; color: var(--muted); }
.upload-bar + .hint { margin-top: .15rem; }

@media (max-width: 780px) {
  .nav-icon-label { position: static; width: auto; height: auto; clip: auto; }
  .nav-icon .count { position: static; }
  .staff-dropdown { position: static; box-shadow: none; margin-top: .3rem; }
  .report { position: static; margin-bottom: .5rem; }
  .report-form { position: static; width: auto; margin-top: .4rem; }
  .notif { grid-template-columns: 32px minmax(0, 1fr); }
  .notif small { grid-column: 2; }
}

.check a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; }
