/* ==========================================================================
   ICON RP — weboldal téma
   A színek és formák az ic-ui/theme.css-ből és az ic-loadingscreen-ből jönnek,
   hogy az oldal ugyanúgy nézzen ki, mint a szerver UI-jai.
   ========================================================================== */

:root {
    /* kiemelő szín */
    --accent: #20B2AA;
    --accent-hover: #2dd4cb;
    --accent-dim: rgba(32, 178, 170, 0.16);
    --accent-line: rgba(32, 178, 170, 0.5);
    --accent-glow: rgba(32, 178, 170, 0.3);
    --accent-text: #06110f;

    /* felületek */
    --bg: #0c0c0e;
    --bg-2: #121214;
    --glass: rgba(12, 14, 18, 0.82);
    --glass-strong: rgba(12, 14, 18, 0.92);
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.07);
    --well: rgba(0, 0, 0, 0.35);

    /* szöveg + vonal */
    --ink: #f4f5f7;
    --mute: rgba(244, 245, 247, 0.62);
    --faint: rgba(244, 245, 247, 0.34);
    --line: rgba(255, 255, 255, 0.09);

    /* állapot */
    --ok: #20B2AA;
    --warn: #f5a623;
    --danger: #ff5d5d;

    /* forma */
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --pill: 999px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);

    --font: 'Outfit', -apple-system, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
    --wrap: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

/* háttér: halvány türkiz fények + a logó "karcolt" csíkjai */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(600px 420px at 85% 8%, rgba(32, 178, 170, 0.14), transparent 70%),
        radial-gradient(520px 380px at 5% 70%, rgba(32, 178, 170, 0.08), transparent 70%),
        repeating-linear-gradient(-58deg, transparent 0 46px, rgba(32, 178, 170, 0.018) 46px 48px);
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

::selection { background: var(--accent); color: var(--accent-text); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: var(--pill); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   Közös elemek (ic-ui mintára)
   ========================================================================== */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 24px;
    border-radius: var(--pill);
    border: 1px solid transparent;
    font: 700 14px/1 var(--font);
    letter-spacing: 0.03em;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s, box-shadow 0.2s, transform 0.1s, border-color 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.hot { background: var(--accent); color: var(--accent-text); }
.btn.hot:hover { background: var(--accent-hover); color: var(--accent-text); box-shadow: 0 0 26px var(--accent-glow); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.11); border-color: var(--accent-line); color: var(--ink); }
.btn.sm { padding: 10px 18px; font-size: 13px; }

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: var(--pill);
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    background: var(--accent-dim); color: var(--accent);
    border: 1px solid rgba(32, 178, 170, 0.25);
}

.panel {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.key {
    display: inline-grid; place-items: center;
    min-width: 30px; height: 30px; padding: 0 8px;
    border-radius: var(--radius-xs);
    background: var(--accent); color: var(--accent-text);
    font-size: 13px; font-weight: 800;
    box-shadow: 0 0 14px var(--accent-glow);
}

.wordmark { font-weight: 800; letter-spacing: 0.22em; font-size: 15px; color: var(--ink); }
.wordmark span { color: var(--accent); }

/* ==========================================================================
   Fejléc
   ========================================================================== */

.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12, 12, 14, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav::before {
    content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.7;
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px var(--accent-glow)); }

.nav .wrap { width: min(1380px, 100% - 32px); }
.nav-links { display: flex; gap: 2px; margin-left: auto; list-style: none; }
.nav-links a {
    display: block; padding: 9px 12px; border-radius: var(--pill); white-space: nowrap;
    color: var(--mute); font-weight: 600; font-size: 14.5px;
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-dim); }

.nav-cta { display: flex; gap: 10px; }

.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
    color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* közepes szélességen a "Játék indítása" gomb kikerül a fejlécből (a főoldalon nagyban ott van) */
@media (min-width: 1181px) and (max-width: 1440px) {
    .nav-cta .btn.hot { display: none; }
}
@media (max-width: 1180px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav-links, .nav-cta { display: none; }
    .nav.open .nav-inner { flex-wrap: wrap; height: auto; padding: 14px 0 18px; }
    .nav.open .brand { height: 44px; }
    .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; margin: 6px 0 0; }
    .nav.open .nav-links a { padding: 12px 16px; }
    .nav.open .nav-cta { display: flex; width: 100%; order: 4; }
    .nav.open .nav-cta .btn { flex: 1; }
}

/* ==========================================================================
   Főoldal — hero
   ========================================================================== */

.hero { position: relative; padding: 72px 0 96px; }
.hero-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.5rem, 5.6vw, 4.4rem);
    font-weight: 800; line-height: 1.04; letter-spacing: -0.02em;
}
.hero h1 em {
    font-style: normal; color: var(--accent);
    text-shadow: 0 0 34px rgba(32, 178, 170, 0.45);
}
.hero-lead { max-width: 540px; font-size: 18px; color: var(--mute); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* élő státusz kártya */
.status {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    margin-top: 36px; padding: 16px 20px; max-width: 540px;
}
.status-dot {
    position: relative; width: 12px; height: 12px; flex: none; border-radius: 50%;
    background: var(--faint);
}
.status[data-state="online"] .status-dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.status[data-state="online"] .status-dot::after {
    content: ''; position: absolute; inset: -5px; border-radius: 50%;
    border: 2px solid var(--accent); animation: ping 1.8s ease-out infinite;
}
.status[data-state="offline"] .status-dot { background: var(--danger); }
.status-main { flex: 1; min-width: 180px; }
.status-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.status-count { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.status-count small { font-size: 15px; font-weight: 600; color: var(--mute); }
.status-track { height: 5px; margin-top: 8px; background: rgba(255, 255, 255, 0.08); border-radius: var(--pill); overflow: hidden; }
.status-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); border-radius: var(--pill); transition: width 0.6s ease; }

.copy {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: var(--pill);
    background: var(--well); border: 1px solid var(--line);
    color: var(--ink); font: 600 13px/1 var(--font); cursor: pointer;
    transition: border-color 0.15s;
}
.copy:hover { border-color: var(--accent-line); }
.copy code { font-family: inherit; color: var(--accent); }
.copy svg { width: 15px; height: 15px; color: var(--mute); }
.copy.done { border-color: var(--accent); }

/* logó oldal */
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero-art .glow {
    position: absolute; width: 72%; height: 72%; border-radius: 50%;
    background: var(--accent-glow); filter: blur(70px);
    animation: pulse 4.8s ease-in-out infinite;
}
.hero-art img {
    position: relative; width: 82%; height: auto;
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
}
.corner { position: absolute; width: 46px; height: 46px; border: 2px solid var(--accent-hover); opacity: 0.55; }
.corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

@media (max-width: 900px) {
    .hero { padding: 40px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-art { order: -1; width: min(240px, 62vw); margin-inline: auto; }
}

/* ==========================================================================
   Szekciók
   ========================================================================== */

.section { padding: 88px 0; }
.section + .section { padding-top: 24px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 {
    margin-top: 16px;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em;
}
.section-head p { margin-top: 14px; color: var(--mute); font-size: 17px; }

/* funkció kártyák */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    position: relative; padding: 28px 26px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    overflow: hidden;
}
.feature::before {
    content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.feature:hover { background: var(--card-hover); border-color: rgba(32, 178, 170, 0.3); transform: translateY(-3px); }
.feature:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 50px; height: 50px; display: grid; place-items: center;
    border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--accent-line);
    color: var(--accent); margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--mute); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; list-style: none; }
.tags li {
    padding: 3px 10px; border-radius: var(--pill);
    font-size: 12px; font-weight: 600; color: var(--mute);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* csatlakozás lépések */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; }
.step { position: relative; padding: 30px 26px; }
.step-num {
    display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px;
    border-radius: 50%; background: var(--accent); color: var(--accent-text);
    font-weight: 800; font-size: 18px; box-shadow: 0 0 20px var(--accent-glow);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--mute); font-size: 15px; }
.step .btn, .step .copy { margin-top: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Discord sáv */
.cta {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    padding: 44px 48px;
    background: linear-gradient(120deg, rgba(32, 178, 170, 0.18), rgba(32, 178, 170, 0.04) 60%), var(--glass);
    border-color: var(--accent-line);
}
.cta::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
    background: url('/img/logo.png') center / contain no-repeat; opacity: 0.08; pointer-events: none;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.cta p { color: var(--mute); margin-top: 8px; max-width: 520px; }
@media (max-width: 640px) { .cta { padding: 32px 24px; } .cta .btn { width: 100%; } }

/* ==========================================================================
   Aloldalak (szabályzat, GYIK)
   ========================================================================== */

.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: 16px; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; }
.page-head p { margin-top: 12px; max-width: 640px; color: var(--mute); font-size: 17px; }
.page-head .meta { margin-top: 18px; font-size: 13px; color: var(--faint); }

.doc { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 48px 0 96px; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a {
    display: block; padding: 7px 16px; margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--mute); font-size: 15px; font-weight: 500;
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }

.rules-section { padding: 32px; margin-bottom: 20px; }
.rules-section h2 { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.rules-section h2 .num {
    display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
    border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--accent-line);
    color: var(--accent); font-size: 15px;
}
.rules { list-style: none; display: grid; gap: 12px; }
.rules li {
    display: grid; grid-template-columns: 52px 1fr; gap: 8px;
    padding: 14px 16px; border-radius: var(--radius-sm); background: var(--card);
}
.rules li > b { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 1px; }
.rules li strong { color: var(--ink); }
.rules li p { color: var(--mute); font-size: 15px; }
.rules li p strong { font-weight: 700; }

.note {
    display: flex; gap: 14px; padding: 18px 20px; margin-bottom: 24px;
    border-radius: var(--radius-sm); background: rgba(245, 166, 35, 0.1); border: 1px solid rgba(245, 166, 35, 0.35);
    color: var(--ink); font-size: 15px;
}
.note svg { width: 22px; height: 22px; flex: none; color: var(--warn); }

@media (max-width: 900px) {
    .doc { grid-template-columns: 1fr; gap: 24px; }
    .toc { position: static; }
    .rules-section { padding: 24px 18px; }
    .rules li { grid-template-columns: 1fr; gap: 2px; }
}

/* GYIK */
.faq { display: grid; gap: 12px; max-width: 860px; padding: 48px 0 40px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color 0.2s, background 0.2s; }
.faq details[open] { background: var(--card-hover); border-color: rgba(32, 178, 170, 0.35); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px; cursor: pointer; list-style: none;
    font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; flex: none; display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent-dim); color: var(--accent); font-size: 20px; font-weight: 600;
    transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; color: var(--mute); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer code { color: var(--accent); font-family: inherit; font-weight: 600; }

.binds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.bind {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 14px 5px 5px; border-radius: var(--pill);
    background: var(--well); border: 1px solid var(--line);
    color: var(--ink); font-size: 14px; font-weight: 500;
}

/* formázott szöveg (hírek, szabályzat, leírások) */
.prose { color: var(--mute); font-size: 16px; }
.prose > * + * { margin-top: 12px; }
.prose h2 { color: var(--ink); font-size: 24px; margin-top: 28px; }
.prose h3 { color: var(--ink); font-size: 19px; margin-top: 22px; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.lead-prose { margin-top: 12px; max-width: 680px; font-size: 17px; }
.rule-text p { color: var(--mute); font-size: 15px; }
.rule-text p + p { margin-top: 6px; }

/* hírek */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding: 40px 0 72px; }
[data-home-news] .news-grid { padding: 0; }
.news-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.news-card:hover { color: var(--ink); transform: translateY(-3px); border-color: rgba(32, 178, 170, 0.35); background: var(--card-hover); }
.news-card.pinned { border-color: var(--accent-line); }
.news-img { aspect-ratio: 16 / 9; background: var(--well); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.news-body h3 { font-size: 20px; line-height: 1.25; }
.news-body p { color: var(--mute); font-size: 15px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--faint); font-size: 13px; font-weight: 600; }
.news-more { color: var(--accent); font-weight: 700; font-size: 14px; }
.article { max-width: 820px; padding: 40px 0 96px; }
.article h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; margin: 10px 0 24px; }
.article-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; border: 1px solid var(--line); }
.article .prose { font-size: 17px; }
.back { display: inline-block; margin-bottom: 22px; color: var(--mute); font-weight: 600; }
.back:hover { color: var(--accent); }

/* pályázatok / űrlapok */
.form-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding: 40px 0 96px; }
.form-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; color: var(--ink); transition: transform 0.2s, border-color 0.2s; }
.form-card:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--accent-line); }
.form-card h2 { font-size: 22px; line-height: 1.2; }
.form-card .badge { align-self: flex-start; }
.form-card .prose { font-size: 15px; flex: 1; }
.form-card-foot { color: var(--faint); font-size: 13px; font-weight: 600; }
.form-card .btn { align-self: flex-start; }
.form-cards > .empty, .news-grid > .empty { grid-column: 1 / -1; }
.wrap.narrow { max-width: 900px; padding: 32px 0 96px; }
.view.soon { text-align: center; padding: 56px 36px; }
.view.soon .view-icon { margin-inline: auto; }
.view.soon h2 { font-size: 32px; }
.view.soon p { max-width: 520px; margin-inline: auto; }
.view.soon .actions { justify-content: center; }
.view .progress { margin: 0 0 8px; }

/* 404 */
.notfound { min-height: calc(100vh - 72px - 140px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound img { width: 140px; height: auto; margin: 0 auto 24px; filter: drop-shadow(0 0 30px var(--accent-glow)); animation: float 6s ease-in-out infinite; }
.notfound h1 { font-size: 72px; font-weight: 800; line-height: 1; color: var(--accent); }
.notfound p { color: var(--mute); margin: 12px 0 28px; font-size: 18px; }

/* ==========================================================================
   Fiók (fejléc) + értesítés sáv
   ========================================================================== */

.btn.account { padding: 5px 16px 5px 5px; gap: 10px; }
.btn.account img { width: 30px; height: 30px; border-radius: 50%; }
.btn.account span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

.alert {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; margin-bottom: 20px; border-radius: var(--radius-sm);
    background: var(--accent-dim); border: 1px solid var(--accent-line); font-size: 15px;
}
.alert.error { background: rgba(255, 93, 93, 0.12); border-color: rgba(255, 93, 93, 0.45); }
.alert.warn { background: rgba(245, 166, 35, 0.1); border-color: rgba(245, 166, 35, 0.4); }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: var(--pill);
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--accent-dim); color: var(--accent);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.accepted { background: rgba(48, 209, 88, 0.14); color: #30d158; }
.badge.rejected { background: rgba(255, 93, 93, 0.14); color: var(--danger); }

/* ==========================================================================
   Jelentkezés
   ========================================================================== */

.apply { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 40px 0 96px; align-items: start; }
.apply-side { position: sticky; top: 96px; display: grid; gap: 16px; }
/* bejelentkezés előtt nincs oldalsáv → a tartalom középre, ugyanolyan szélesen, mint az űrlap oldalakon */
.apply:has(> .apply-side[hidden]) { grid-template-columns: minmax(0, 900px); justify-content: center; }
@media (max-width: 900px) {
    .apply { grid-template-columns: 1fr; }
    .apply-side { position: static; order: -1; }
}

.view { padding: 36px; }
.view h2 { font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.view > p, .view .lead { color: var(--mute); font-size: 16px; }
.view .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.view-icon {
    width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 20px;
    border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--accent-line); color: var(--accent);
}
.view-icon svg { width: 26px; height: 26px; }
.view-icon.ok { background: rgba(48, 209, 88, 0.14); border-color: rgba(48, 209, 88, 0.5); color: #30d158; }
.view-icon.bad { background: rgba(255, 93, 93, 0.14); border-color: rgba(255, 93, 93, 0.5); color: var(--danger); }
.quote {
    margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--danger);
    background: var(--well); border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    color: var(--ink); white-space: pre-wrap;
}
@media (max-width: 640px) { .view { padding: 24px 18px; } }

.profile { padding: 22px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--accent-line); }
.profile-head b { display: block; font-size: 17px; line-height: 1.2; }
.profile-head small { color: var(--mute); font-size: 13px; }
.profile-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-row h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.profile-row p { font-size: 14px; color: var(--mute); }
.profile-row code { display: block; margin: 6px 0 10px; font: 600 13px var(--font); color: var(--accent); word-break: break-all; }
.profile .btn { width: 100%; margin-top: 10px; }
.linkish { background: none; border: 0; color: var(--mute); font: 500 13px var(--font); cursor: pointer; text-decoration: underline; padding: 0; }
.linkish:hover { color: var(--danger); }

.view-icon.warn { background: rgba(245, 166, 35, 0.14); border-color: rgba(245, 166, 35, 0.5); color: var(--warn); }
.quote.info { border-left-color: var(--warn); }
.quote:empty { display: none; }

/* whitelist kérdések */
.progress {
    position: sticky; top: 80px; z-index: 5;
    margin: 24px -12px 0; padding: 14px 16px;
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.progress-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.progress-row .hint { font-weight: 400; font-size: 13px; color: var(--faint); }
.progress .status-track { margin-top: 10px; }
@media (max-width: 640px) {
    .progress { margin-inline: 0; padding: 10px 14px; }
    .progress-row .hint { display: none; }
    .question { padding: 18px 16px; }
}

.questions { display: grid; gap: 16px; }
.question { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color 0.2s; }
.question.done { border-color: rgba(32, 178, 170, 0.35); }
.question.missing { border-color: rgba(255, 93, 93, 0.6); }
.question-num { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.question h3 { font-size: 18px; margin-top: 6px; line-height: 1.3; }
.question-text { margin: 8px 0 16px; color: var(--mute); white-space: pre-wrap; font-size: 15px; }
.question h3 + .question-text { margin-top: 6px; }
.question:not(:has(h3)) .question-text { color: var(--ink); font-size: 16px; font-weight: 500; }
.options { display: grid; gap: 8px; }
.option {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--well); border: 1px solid transparent; cursor: pointer;
    font-size: 15px; transition: border-color 0.15s, background 0.15s;
}
.option:hover { border-color: var(--line); }
.option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.option:has(input:checked) { background: var(--accent-dim); border-color: var(--accent-line); }
.option b { color: var(--accent); flex: none; }

/* űrlap */
.form { display: grid; gap: 22px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--faint); }
.field-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--faint); }
.field-foot .count.short { color: var(--warn); }
.input, .textarea {
    width: 100%; padding: 13px 16px;
    background: var(--well); border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--ink); font: 400 15px/1.55 var(--font); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 120px; resize: vertical; }
.textarea.tall { min-height: 220px; }
.input:focus, .textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input.narrow { max-width: 140px; }
.form-group { display: grid; gap: 22px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.form-group > h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--mute); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-error { color: var(--danger); font-weight: 600; font-size: 15px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 32px; }
.admin-top h1 { font-size: 32px; font-weight: 800; }
.admin-sections { margin: 0; min-width: 300px; }
.admin { display: grid; grid-template-columns: 380px 1fr; gap: 24px; padding: 24px 0 96px; align-items: start; }
@media (max-width: 1000px) { .admin { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--well); border-radius: var(--pill); margin-bottom: 14px; }
.tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 10px; border: 0; border-radius: var(--pill);
    background: transparent; color: var(--mute); font: 600 13px var(--font); cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--accent); color: var(--accent-text); }
.tab .n { font-size: 11px; opacity: 0.75; }

.app-list { display: grid; gap: 8px; max-height: calc(100vh - 220px); overflow-y: auto; padding-right: 4px; }
.app-item {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--card); border: 1px solid transparent; color: var(--ink);
    font: inherit; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.app-item:hover { background: var(--card-hover); }
.app-item.selected { background: var(--accent-dim); border-color: var(--accent-line); }
.app-item img { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.app-item b { display: block; font-size: 15px; line-height: 1.25; }
.app-item small { color: var(--mute); font-size: 12px; }
.app-item .id { margin-left: auto; color: var(--faint); font-size: 12px; font-weight: 700; }
.empty { padding: 32px 16px; text-align: center; color: var(--faint); }

.detail { padding: 30px; }
.detail-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.detail-head img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--accent-line); }
.detail-head h2 { font-size: 22px; line-height: 1.2; }
.detail-head small { color: var(--mute); }
.detail-head .badge { margin-left: auto; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 22px 0; }
.meta-grid div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--well); }
.meta-grid dt { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.meta-grid dd { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; margin-top: 2px; }
.qa { margin-top: 18px; }
.qa h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.qa p { white-space: pre-wrap; color: var(--ink); font-size: 15px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--card); }
.review { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.review .row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge.voice { background: rgba(245, 166, 35, 0.16); color: var(--warn); }
.score { font-size: 12px; font-weight: 700; color: var(--accent); }
.qa-choices { display: grid; gap: 6px; }
.qa-choices div { padding: 10px 14px; border-radius: var(--radius-xs); background: var(--card); color: var(--mute); font-size: 14px; border: 1px solid transparent; }
.qa-choices .chosen { color: var(--ink); border-color: var(--line); background: var(--card-hover); }
.qa-choices .chosen.right { border-color: rgba(48, 209, 88, 0.6); }
.qa-choices .chosen.wrong { border-color: rgba(255, 93, 93, 0.6); }
.qa-choices .correct::after { content: ' ✓ helyes'; color: #30d158; font-weight: 700; font-size: 12px; }
.qa .q { color: var(--mute); font-size: 14px; white-space: pre-wrap; margin-bottom: 8px; }
.btn.warn { background: rgba(245, 166, 35, 0.16); color: var(--warn); border-color: rgba(245, 166, 35, 0.4); }
.btn.warn:hover { background: rgba(245, 166, 35, 0.26); color: var(--warn); }

/* kérdésszerkesztő */
.qeditor { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* admin menü + elrendezés */
.admin-nav { flex-wrap: wrap; border-radius: var(--radius-sm); margin: 18px 0 8px; }
.admin-nav .tab { flex: 0 1 auto; padding: 10px 18px; font-size: 14px; }
.admin-body { padding-bottom: 96px; }
.section-hint { color: var(--mute); font-size: 14px; margin: 14px 0 6px; }
.subtabs { max-width: 460px; margin: 16px 0 0; }
.admin-body .admin { padding-top: 16px; }
.forms-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; margin-top: 16px; }
.forms-side { display: grid; gap: 10px; position: sticky; top: 96px; }
.forms-list, .news-admin-list { display: grid; gap: 8px; max-height: calc(100vh - 260px); overflow-y: auto; }
.forms-side .app-item .badge { margin-left: auto; flex: none; }
.form-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-head h2 { font-size: 24px; }
.form-head .btn { margin-left: auto; }
.settings-grid { display: grid; gap: 18px; padding: 24px; margin-top: 16px; }
.settings-grid h2 { font-size: 22px; }
.settings-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.block-title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 24px 0 10px; }
.rule-edit-list { display: grid; gap: 10px; }
.rule-edit { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: start; padding: 12px; border-radius: var(--radius-sm); background: var(--well); }
.rule-edit > b { color: var(--accent); padding-top: 12px; font-size: 14px; }
.rule-edit-fields { display: grid; gap: 8px; }
.rule-edit-btns { display: grid; gap: 6px; }
@media (max-width: 1000px) {
    .forms-layout { grid-template-columns: 1fr; }
    .forms-side { position: static; }
}
@media (max-width: 640px) {
    .rule-edit { grid-template-columns: 1fr; }
    .rule-edit-btns { display: flex; }
}
.qeditor-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; }
.qeditor-head h2 { font-size: 22px; }
.qeditor-head p { color: var(--mute); font-size: 14px; margin-top: 4px; max-width: 620px; }
.qeditor-list { display: grid; gap: 12px; }
.qcard { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.qcard-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qcard-head b { color: var(--accent); }
.qcard-head .spacer { flex: 1; }
.icon-btn {
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
    color: var(--ink); cursor: pointer; font-size: 14px;
}
.icon-btn:hover { border-color: var(--accent-line); }
.icon-btn.del:hover { border-color: var(--danger); color: var(--danger); }
.qcard .hint { font-size: 12px; color: var(--faint); }
.qeditor-actions { position: sticky; bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; background: var(--glass-strong); }
.qeditor-actions .form-error { flex: 1; }

.btn.ok { background: #30d158; color: #04140a; }
.btn.ok:hover { background: #4ade70; box-shadow: 0 0 22px rgba(48, 209, 88, 0.35); color: #04140a; }
.btn.danger { background: rgba(255, 93, 93, 0.16); color: var(--danger); border-color: rgba(255, 93, 93, 0.4); }
.btn.danger:hover { background: rgba(255, 93, 93, 0.26); color: var(--danger); }

[hidden] { display: none !important; }

/* ==========================================================================
   Lábléc
   ========================================================================== */

.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--mute); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; }
.footer-links a { color: var(--mute); }
.footer-links a:hover { color: var(--accent); }
.footer small { display: block; margin-top: 6px; color: var(--faint); font-size: 12px; }

/* ==========================================================================
   Animációk
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.06); } }
@keyframes ping { from { opacity: 0.8; transform: scale(0.6); } to { opacity: 0; transform: scale(1.6); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
