﻿/* ===== Design Tokens (Neon Road) – Globális ===== */
:root {
    --surface-0: #0E0A18;
    --surface-1: #151026;
    --surface-2: #1E1633;
    --line: #2B2350;
    --text: #EAF2FF;
    --muted: #A1A3B0;
    --accent: #A855F7;
    --accent2: #22D3EE;
    --success: #10B981;
    --warn: #F59E0B;
    --danger: #EF4444;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --shadow-neon: 0 0 24px rgba(168,85,247,.45);
    --ring-neon: 0 0 0 3px rgba(168,85,247,.35);
    --container: 1320px;
    --gutter: 24px;
}

/* ===== Alap reset ===== */
*, *::before, *::after {
    box-sizing: border-box
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    color: var(--text);
    background: var(--surface-0);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.brand .brand-logo {
    width: 28px;
    height: 28px;
    display: block;
    border-radius: 6px; /* a kártyás stílushoz igazodik */
    box-shadow: var(--shadow-neon); /* egységes fényudvar a témával */
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter)*2);
    margin-inline: auto;
    padding-inline: var(--gutter)
}

/* ===== Gombok (globális) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary {
    background: linear-gradient(135deg,var(--accent),var(--accent2));
    color: #0b0f14;
    box-shadow: var(--shadow-neon)
}

    .btn-primary:hover {
        transform: translateY(-1px)
    }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(168,85,247,.4);
    font-weight: 700;
    margin-left: 8px;
    color: var(--text);
    background: transparent;
    border-color: color-mix(in oklab,var(--accent) 65%, transparent)
}

    .btn-ghost:hover {
        background: rgba(168,85,247,.08)
    }

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(10px);
    background: color-mix(in oklab, var(--surface-1) 85%, transparent);
    border-bottom: 1px solid var(--line);
    height: 72px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700
}

    .brand .dot {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: linear-gradient(135deg,var(--accent),var(--accent2));
        box-shadow: var(--shadow-neon)
    }

    .brand span {
        letter-spacing: .04em
    }

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
    align-items: center;
}

    .nav-links a {
        opacity: .9;
        padding: .5rem .25rem;
        position: relative
    }

        .nav-links a.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -8px;
            height: 2px;
            background: linear-gradient(90deg,var(--accent),var(--accent2));
            border-radius: 2px;
            box-shadow: var(--shadow-neon);
        }

    /* Navbar link alignment fix */
    .nav-links a,
    .nav-dd-label {
        display: inline-flex;
        align-items: center;
        height: 44px;
        padding: 0 12px;
    }

.avatar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg,#A855F7,#22D3EE);
    color: #0b0f14;
    font-weight: 800;
    font-size: 12px;
    margin-right: 8px;
}

.avatar-img {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    background: #1E1633;
}

.nav-dd-sep {
    height: 1px;
    background: #2B2350;
    margin: 6px 0;
}

.drop-logout {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    color: #ffced1;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

    .drop-logout:hover {
        background: #1E1633;
    }


.nav-dd .inline {
    margin: 0;
}

.nav-dd .drop-logout {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    color: #ffced1;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

    .nav-dd .drop-logout:hover {
        background: #1E1633;
    }

/* ===== Footer ===== */
footer {
    margin-top: 72px;
    border-top: 1px solid var(--line);
    background: #0f0b1a
}

.foot {
    display: grid;
    gap: 24px;
    padding-block: 40px 24px;
    grid-template-columns: repeat(4,1fr)
}

    .foot h5 {
        margin: 0 0 12px;
        font-size: 16px;
        letter-spacing: .02em;
        color: #d8ccff
    }

    .foot ul {
        list-style: none;
        margin: 0;
        padding: 0
    }

    .foot li + li {
        margin-top: 8px
    }

.muted {
    color: var(--muted)
}

.newsletter .row {
    display: flex;
    gap: 10px;
    margin-top: 8px
}

.input {
    flex: 1 1 auto;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    width: 100%;
    outline: none;
}

.checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted)
}

.btn-sub {
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg,var(--accent),var(--accent2));
    color: #0b0f14;
    font-weight: 700;
    box-shadow: var(--shadow-neon);
    cursor: pointer
}

.sub {
    border-top: 1px solid var(--line);
    padding: 14px 0 22px;
    color: var(--muted);
    font-size: 13px
}

/* ===== Hero ===== */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 820px;
    display: flex;
    align-items: center;
    padding-block: 96px 72px;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 50% 100%, rgba(14,10,24,.15), rgba(14,10,24,.75)), url("https://images.unsplash.com/photo-1515939046120-2df494c85cfb?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2071") center/cover no-repeat fixed;
}

    .hero .content {
        max-width: 720px;
        position: relative;
        z-index: 2;
    }

.eyebrow {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 16px
}

.title {
    font-family: "Bebas Neue",sans-serif;
    font-size: 96px;
    line-height: .95;
    letter-spacing: .04em;
    text-shadow: 0 0 24px rgba(168,85,247,.55);
    margin: 0 0 12px;
}

.subtitle {
    font-size: 20px;
    line-height: 30px;
    color: var(--muted);
    margin: 0 0 20px
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px
}

/* --- Főoldal: "Mi ez?" szekció tipó és igazítás --- */
#miez .section-title {
    text-align: center;
    margin-bottom: 16px; /* ha már van margin, ez finomít */
}

#miez .miez-prose {
    text-align: center;
    max-width: 900px; /* kényelmes sorhossz */
    margin: 0 auto; /* középre húzás */
}

    #miez .miez-prose p {
        font-size: 18px;
        line-height: 1.8;
        margin: 0 0 14px;
    }

@media (min-width: 992px) {
    #miez .miez-prose p {
        font-size: 20px; /* nagyobb kijelzőn kicsit nagyobb */
    }
}


/* ── NEON ROAD overlay (perspektíva, két oldalsó csík + középső szaggatott) ── */
.hero::after {
    content: "";
    position: absolute;
    left: -20vw;
    right: -20vw;
    bottom: -18vh;
    top: 35%;
    background: linear-gradient(to top right, transparent 42%, rgba(168,85,247,.55) 46%, rgba(168,85,247,.55) 52%, transparent 56%), linear-gradient(to top left, transparent 42%, rgba(34,211,238,.45) 46%, rgba(34,211,238,.45) 52%, transparent 56%), repeating-linear-gradient(to top, rgba(234,242,255,.92) 0 14px, transparent 14px 36px), radial-gradient(70% 50% at 50% 100%, rgba(168,85,247,.22), transparent 60%);
    transform-origin: center bottom;
    transform: perspective(900px) rotateX(63deg) translateY(6vh);
    filter: blur(.6px);
    pointer-events: none;
    z-index: 1;
}

/* Info pill-ek */
.pill-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

    .pill .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: linear-gradient(135deg,var(--accent),var(--accent2));
        box-shadow: 0 0 8px rgba(168,85,247,.55);
    }

/* ===== Szekciók (általános) ===== */
.section {
    padding-block: 72px
}

.section-title {
    font-family: "Bebas Neue",sans-serif;
    font-size: 44px;
    letter-spacing: .04em;
    margin: 0 0 24px;
    text-shadow: 0 0 16px rgba(168,85,247,.5);
}

/* ===== Közelgő események ===== */
.events .event-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3,1fr)
}

@media (max-width: 900px) {
    .events .event-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width: 640px) {
    .events .event-grid {
        grid-template-columns: 1fr
    }
}

.event-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

    .event-card:hover {
        box-shadow: var(--shadow-neon);
        transform: translateY(-2px)
    }

.event-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.date-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--muted);
    background: color-mix(in oklab, var(--surface-1) 80%, transparent);
}

.status {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(168,85,247,.15);
    color: #dab3ff;
    font-weight: 700;
    letter-spacing: .02em;
}

.status-open {
    background: rgba(16,185,129,.12);
    color: #8ff1c8;
    border-color: #1f3b33
}

.status-wait {
    background: rgba(245,158,11,.12);
    color: #ffd38a;
    border-color: #3b2f1b
}

.status-soon {
    background: rgba(168,85,247,.15);
    color: #dab3ff
}

.event-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700
}

.event-desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.event-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0
}

    .event-meta dt {
        font-size: 12px;
        color: var(--muted)
    }

    .event-meta dd {
        margin: 2px 0 0;
        font-weight: 600
    }

.cap {
    margin-top: 4px
}

.cap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted)
}

.cap-num {
    color: var(--text);
    font-weight: 600
}

.cap-bar {
    height: 8px;
    border-radius: 999px;
    margin-top: 8px;
    background: #1a1430;
    border: 1px solid var(--line);
    overflow: hidden
}

.cap-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: var(--shadow-neon)
}

.event-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px
}

    .event-actions .btn[aria-disabled="true"] {
        opacity: .6;
        pointer-events: none
    }

    /* EventCard action gombok – egységes méret */
    .event-actions .btn,
    .event-actions .btn-ghost,
    .event-actions .btn-primary,
    .event-actions button {
        display: inline-flex;
        align-items: center;
        height: 44px; /* legyen egységesen 44px, mint a ghost */
        padding: 0 16px;
    }


/* ===== Mini galéria ===== */
.gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3,1fr)
}

.thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg,#221a3c,#0f0b1a);
    border: 1px solid var(--line);
    aspect-ratio: 4/3;
    transition: box-shadow .15s ease;
}

    .thumb::after {
        content: "";
        inset: 0;
        position: absolute;
        background: radial-gradient(600px 300px at 65% 80%, rgba(168,85,247,.35), transparent 65%), radial-gradient(600px 300px at 35% 20%, rgba(34,211,238,.25), transparent 65%), linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,.25));
        mix-blend-mode: screen;
        pointer-events: none;
    }

    .thumb:hover {
        box-shadow: var(--shadow-neon)
    }

/* ===== YouTube szekció ===== */
.media {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.6fr .9fr;
    align-items: start
}

.player {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset;
    background: color-mix(in oklab, var(--surface-2) 90%, transparent)
}

    .player iframe {
        width: 100%;
        aspect-ratio: 16/9;
        border: 0;
        display: block
    }

.playlist {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    padding: 12px
}

.pl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 6px 8px
}

    .pl-head h4 {
        margin: 0;
        font-size: 16px;
        color: var(--muted)
    }

/* Playlist badge – csak a lejátszó listában érvényes */
.playlist .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(168,85,247,.15);
    color: #cda9ff;
    font-size: 12px;
    border: 1px solid var(--line)
}

/* Keskeny playlist: balra kis Play-gomb, mellette a thumb, alatta a cím */
.playlist .pl-item {
    grid-template-columns: 44px 1fr; /* BAL: gomb | JOBB: tartalom */
}

/* A Play-gomb stabil mérete és kattinthatósága a stretched-link fölött */
.playlist .pl-ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 6;
}

    .playlist .pl-ctrl .btn {
        width: 36px;
        min-width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 999px;
    }

/* A jobb oldali tartalom legyen a stretched-link referenciája */
.playlist .pl-main {
    position: relative;
}

/* Cím a bélyegkép alatt kényelmes sorközzel */
.playlist .pl-title {
    margin-top: 6px;
    line-height: 1.3;
    word-break: break-word;
}


/* Eseménykártyák badge-e */
.evt-card .badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em
}

.pl-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.pl-item {
    display: grid;
    grid-template-columns: 120px 1fr 52px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid transparent
}

    .pl-item + .pl-item {
        margin-top: 8px
    }

    .pl-item.active {
        border-color: color-mix(in oklab,var(--accent) 65%, transparent);
        box-shadow: var(--shadow-neon)
    }

.pl-thumb {
    background: linear-gradient(135deg,#1b1233,#0b0f14);
    border: 1px solid var(--line);
    border-radius: 10px;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden
}

    .pl-thumb::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(400px 180px at 70% 70%, rgba(168,85,247,.35), transparent 60%);
        mix-blend-mode: screen
    }

.pl-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text)
}

.pl-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px
}

.pl-time {
    font-size: 12px;
    color: var(--muted);
    text-align: right
}

/* ===== Reszponzív ===== */
@media (max-width: 900px) {
    .navbar {
        height: 64px
    }

    .title {
        font-size: 72px
    }

    .gallery {
        grid-template-columns: repeat(2,1fr)
    }

    .media {
        grid-template-columns: 1fr
    }
}

@media (max-width: 640px) {
    .container {
        padding-inline: 16px
    }

    .hero {
        min-height: 680px
    }

        .hero::after {
            top: 45%;
            transform: perspective(800px) rotateX(58deg) translateY(4vh)
        }

    .title {
        font-size: 52px
    }

    .subtitle {
        font-size: 16px;
        line-height: 24px
    }

    .btn {
        height: 44px
    }

    .section {
        padding-block: 56px
    }

    .foot {
        grid-template-columns: 1fr 1fr
    }
}

/* ===== Forms (Neon Road stílus) ===== */
.form-card {
    max-width: 960px;
    margin: 24px auto 0;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column
}

.form-span-2 {
    grid-column: 1 / -1
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 6px;
}

/* Validáció – MVC default osztályok kiváltása a palettához */
.validation-summary-errors {
    background: rgba(239,68,68,.12);
    border: 1px solid #3b1f25;
    color: #ffb4c4;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.field-validation-error {
    color: #ffb4c4;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Akciósor */
.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

/* Reszponzív */
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr
    }

    .form-field:nth-child(4) {
        display: none
    }
    /* a „kitöltő” üres cella eltűnik mobilon */
}

/* ===== Result card (egységes visszajelző nézet) ===== */
.result-card {
    position: relative;
    max-width: 840px;
    margin: 24px auto 0;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset;
}

    .result-card::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 6px;
        border-top-left-radius: inherit;
        border-top-right-radius: inherit;
        background: var(--accent); /* alapértelmezett, ha nincs state */
    }

.result--ok::before {
    background: var(--success)
}

.result--err::before {
    background: var(--danger)
}

.result-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px
}

.result-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: #0b0f14;
    background: var(--accent); /* alap, ha nincs state */
    box-shadow: var(--shadow-neon);
}

.result--ok .result-icon {
    background: var(--success)
}

.result--err .result-icon {
    background: var(--danger)
}

.result-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: .01em;
}

.result-message {
    margin: 8px 0 0;
    color: var(--text);
    font-size: 16px;
    line-height: 24px
}

.result-actions {
    margin-top: 18px
}

/* Neon Road hangolás – csak az eseménykártyákhoz */
.evt-section {
    padding-block: 48px
}

.evt-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 44px;
    letter-spacing: .04em;
    text-shadow: 0 0 16px rgba(168,85,247,.45);
    margin: 0 0 20px;
}

.evt-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

@media (max-width: 1100px) {
    .evt-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 640px) {
    .evt-grid {
        grid-template-columns: 1fr;
    }
}

.evt-card {
    background: #1E1633;
    border: 1px solid #2B2350;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
}

    .evt-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 24px rgba(168,85,247,.35);
    }

.evt-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 0 16px
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #151026;
    border: 1px solid #2B2350;
    color: #A1A3B0;
    font-size: 14px
}

.b-open {
    background: rgba(34,211,238,.15);
    color: #b8f4ff;
    border: 1px solid #2B2350
}

.b-wait {
    background: rgba(245,158,11,.18);
    color: #ffd38a;
    border: 1px solid #2B2350
}

.b-closed {
    background: rgba(156,163,175,.18);
    color: #cbd5e1;
    border: 1px solid #2B2350
}

.b-cancel {
    background: rgba(239,68,68,.18);
    color: #ffb1b1;
    border: 1px solid #2B2350
}

.b-live {
    background: rgba(168,85,247,.25);
    color: #f3d4ff;
    border: 1px solid #2B2350
}

.evt-body {
    padding: 12px 16px 16px 16px
}

.evt-name {
    font-weight: 700;
    font-size: 20px;
    margin: 6px 0 6px
}

.evt-meta {
    color: #A1A3B0;
    font-size: 14px
}

    .evt-meta .sep {
        opacity: .4;
        margin: 0 6px
    }

.progress {
    height: 8px;
    background: #151026;
    border: 1px solid #2B2350;
    border-radius: 10px;
    overflow: hidden
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg,#A855F7,#22D3EE)
}

.evt-foot {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px 16px;
    margin-top: auto
}

    /* Eseménykártyák lábrészében 40px magasak legyenek a gombok */
    .evt-foot .btn,
    .evt-foot .btn-neon,
    .evt-foot .btn-ghost {
        height: 40px;
        padding: 0 14px;
    }

.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 700;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg,#A855F7,#22D3EE);
    color: #0b0f14
}

/* Kattintható gombok: legyen "kéz" kurzor */
.btn-neon,
.btn-ghost,
button[type="submit"],
button[type="button"] {
    cursor: pointer;
}

    /* Letiltott állapot: ne lehessen félrevezető */
    .btn-neon:disabled,
    .btn-ghost:disabled,
    [aria-disabled="true"],
    button:disabled {
        cursor: not-allowed;
        opacity: .6;
    }

.evt-empty {
    padding: 24px;
    border: 1px dashed #2B2350;
    border-radius: 16px;
    color: #A1A3B0
}

/* Neon Road-esztétika: mini UI a kártyákhoz és a táblához */
.admin-title {
    font-family: "Bebas Neue",sans-serif;
    font-size: 48px;
    letter-spacing: .04em;
    text-shadow: 0 0 16px rgba(168,85,247,.5);
    margin: 0 0 20px;
}

.section-gap {
    padding-block: 36px
}

.grid-3 {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3,1fr)
}

@media (max-width:1100px) {
    .grid-3 {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:640px) {
    .grid-3 {
        grid-template-columns: 1fr
    }
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #151026;
    border: 1px solid #2B2350;
    color: #A1A3B0;
    font-size: 12px
}

.st-open {
    background: rgba(34,211,238,.15);
    color: #b8f4ff
}

.st-wait {
    background: rgba(245,158,11,.18);
    color: #ffd38a
}

.st-closed {
    background: rgba(156,163,175,.18);
    color: #cbd5e1
}

.st-cancel {
    background: rgba(239,68,68,.18);
    color: #ffb1b1
}

.st-live {
    background: rgba(168,85,247,.25);
    color: #f3d4ff
}

.bd {
    padding: 12px 16px 16px 16px
}

.name {
    font-weight: 700;
    font-size: 18px;
    margin: 8px 0
}

.meta {
    color: #A1A3B0;
    font-size: 14px
}

    .meta .sep {
        opacity: .4;
        margin: 0 6px
    }

.progress {
    height: 8px;
    background: #151026;
    border: 1px solid #2B2350;
    border-radius: 10px;
    overflow: hidden
}

.bar {
    height: 100%;
    background: linear-gradient(90deg,#A855F7,#22D3EE)
}

.card .ft {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px 16px;
    margin-top: auto
}

.box {
    background: #1E1633;
    border: 1px solid #2B2350;
    border-radius: 16px;
    padding: 16px;
}

    .box h3 {
        margin: 0 0 10px;
        font-size: 20px
    }

.form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap
}

select.form {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #2B2350;
    background: #151026;
    color: #EAF2FF;
    padding: 0 12px;
}

table.tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px
}

    table.tbl th, table.tbl td {
        padding: 10px 12px;
        border-bottom: 1px solid #2B2350
    }

    table.tbl th {
        color: #cfd2ff;
        font-weight: 700;
        text-align: left;
        background: #151026
    }

    table.tbl tr:hover td {
        background: rgba(168,85,247,.05)
    }

/* --- Admin lenyíló menü --- */

.nav-dd {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dd-label {
    padding: .5rem .25rem;
    color: var(--text,#EAF2FF);
    cursor: default; /* nem link/gomb */
    user-select: none;
    outline: none;
}

.nav-dd.is-active .nav-dd-label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg,var(--accent,#A855F7),var(--accent2,#22D3EE));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(168,85,247,.5);
}

/* Lenyíló panel */
.nav-dd-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: var(--surface-2,#1E1633);
    border: 1px solid var(--line,#2B2350);
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(168,85,247,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 100;
}

/* Nyitás hover/focus-within-re – mobilon a label fókuszra nyit */
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dd-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text,#EAF2FF);
    text-decoration: none;
}

    .nav-dd-menu a:hover {
        background: rgba(168,85,247,.08);
    }

/* Admin link feltűnő verzió */
.nav-links a.admin-link,
.nav-dd-label.admin-link {
    background: linear-gradient(135deg, var(--accent,#A855F7), var(--accent2,#22D3EE));
    color: #0B0F14 !important;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 0 24px rgba(168,85,247,.45);
    border: 1px solid rgba(255,255,255,.06);
    height: 44px;
    display: inline-flex;
    align-items: center;
}

    .nav-links a.admin-link:hover,
    .nav-dd-label.admin-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 0 28px rgba(168,85,247,.55);
    }

    .nav-links a.admin-link.active,
    .nav-dd.is-active .nav-dd-label.admin-link {
        outline: 0;
        box-shadow: 0 0 0 3px rgba(168,85,247,.35), 0 0 24px rgba(168,85,247,.45);
    }




/* Esemény felvétel */
.page-title {
    font-family: "Bebas Neue",sans-serif;
    font-size: 48px;
    letter-spacing: .04em;
    text-shadow: 0 0 16px rgba(168,85,247,.5);
    margin: 0 0 12px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px
}

.form-control {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    padding: 0 12px;
    border: 1px solid #2B2350;
    background: #151026;
    color: #EAF2FF;
}

    .form-control[type="datetime-local"] {
        padding: 0 10px;
    }

.help {
    font-size: 12px;
    color: #A1A3B0;
    margin-top: 4px
}

.row-2 {
    grid-column: 1 / -1
}

.val-summary {
    margin: 0 0 12px;
    color: #ffb4b4
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px
}

/* Esemény szerkesztés */

.role-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 4px;
}

    .role-checklist .chk-wrap {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--surface-1);
        font-size: 14px;
    }

    .role-checklist .chk {
        /* a belső checkbox (input) rugalmasan illeszkedjen,
       ne törjük el a layoutot */
        flex: 0 0 auto;
    }

.role-info {
    margin: 6px 0 -6px 0;
}

/* Jelentkezés részletei oldal finomhangolásai */
.my-reg-details .event-title {
    font-size: 26px;
    margin-top: 2px;
}

.my-reg-details .event-desc {
    font-size: 15px;
}

/* Kiegészítő infók blokk címe kisebb, mint a fő cím */
.my-reg-details #details-title {
    font-size: 28px;
    margin-bottom: 12px;
}

/* Kiegészítő kártya */
.my-reg-details .evt-detail {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--surface-1);
}

.my-reg-details .evt-detail-title {
    margin: 0;
    font-size: 18px;
}

.my-reg-details .evt-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

/* Szerep-badge sor a fejlécben */
.my-reg-details .role-info {
    display: flex;
    gap: 8px;
    align-items: center;
}

.alert.role-pending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #3b2f1b;
    background: rgba(245,158,11,.12);
    box-shadow: 0 0 18px rgba(245,158,11,.15) inset;
    margin-top: 2px;
}

    .alert.role-pending .btn-sm {
        height: 36px;
        padding: 0 12px;
    }

/* AminFelhasznalok -> Regisztraciok */
/* Layout / container */
.container--narrow {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.input::placeholder {
    color: #8e8fa3;
}

.chk-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cfd1df;
    cursor: pointer;
}

    .chk-wrap span {
        cursor: pointer;
    }


.chk {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid #2B2350;
    background: #151026;
    position: relative;
    outline: none;
    cursor: pointer;
}

    .chk:checked {
        border-color: #7b5cff;
        background: linear-gradient(135deg, #A855F7, #22D3EE);
    }

        /* X jel a kijelölt állapotban */
        .chk:checked::before,
        .chk:checked::after {
            content: "";
            position: absolute;
            left: 4px;
            right: 4px; /* a négyzet széleitől beljebb hozza a vonalakat */
            top: 50%;
            height: 2px; /* vonalvastagság */
            background: #0b0f14; /* kontraszt az A855F7→22D3EE gradiensre */
            border-radius: 2px;
            transform-origin: center;
        }

        .chk:checked::before {
            transform: translateY(-50%) rotate(45deg);
        }

        .chk:checked::after {
            transform: translateY(-50%) rotate(-45deg);
        }

    /* (opcionális) fókuszjelölés billentyűzetnél */
    .chk:focus-visible {
        outline: 2px solid rgba(34,211,238,.8); /* brand kékebb vége */
        outline-offset: 2px;
    }


/* Cards / table */
.card {
    background: #151026;
    border: 1px solid #2B2350;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

    .table th, .table td {
        padding: 10px 12px;
        border-bottom: 1px solid #2B2350;
        vertical-align: middle;
    }

    .table thead th {
        color: #cfd1df;
        font-weight: 600;
    }

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #1E1633;
    color: #cfd1df;
    border: 1px solid #2B2350;
}

    .badge.ok {
        background: #22c55e;
        color: #053014;
        border: none;
    }

    .badge.warn {
        background: #f59e0b;
        color: #2b1a04;
        border: none;
    }

/* Alerts */
.alert.ok {
    background: #0d3d2b;
    color: #dcffee;
    padding: 8px 12px;
    border-radius: 10px;
    margin: 8px 0;
    border: 1px solid #1b7252;
}

.alert.error {
    background: #451515;
    color: #ffecec;
    padding: 8px 12px;
    border-radius: 10px;
    margin: 8px 0;
    border: 1px solid #7a2323;
}

/*Admin részen a befizetés kezelés*/
.payline {
    margin-bottom: 6px;
}

.inline-form {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

/* ===== Admin › Jelentkezők tábla: vízszintes scroll + sticky első oszlop ===== */
.table-hscroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-1);
    padding: 0;
}

.admin-applicants {
    /* legyen elég széles, hogy a sticky működjön - állítsd igény szerint */
    min-width: 1100px;
}

/* sticky első oszlop (név/azonosító) */
.table-sticky-first {
    border-collapse: separate; /* a sticky miatt fontos */
}

    .table-sticky-first thead th:first-child,
    .table-sticky-first tbody td:first-child {
        position: sticky;
        left: 0;
        background: var(--surface-1);
        z-index: 2;
        box-shadow: 2px 0 0 0 var(--line); /* elválasztó vonal a fix oszlop jobb szélén */
    }

    .table-sticky-first thead th:first-child {
        z-index: 3; /* fejlécre kicsit nagyobb z-index */
    }

/* kisebb esztétika a befizetés cellában */
.payline {
    margin-bottom: 6px;
}

.inline-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}
/* ===== Admin › Jelentkezők: Előrefizetés cella kompaktra ===== */
.paycell {
    min-width: 520px;
}
/* lehet 480–560 között finomhangolni */
.pay-header {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
    margin-bottom: 4px;
}

.pay-form {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap; /* egy sorban marad */
    white-space: nowrap; /* ne törjön új sorba */
}

    .pay-form .pay-amount {
        width: 110px;
        padding-inline: 8px;
    }

    .pay-form .pay-note {
        width: 200px;
        max-width: 260px;
        padding-inline: 8px;
    }

    .pay-form .pay-submit {
        white-space: nowrap;
    }

/* kis finomítás, hogy ne nőjön a sor magasság */
.paycell .form-control-sm {
    padding-top: 4px;
    padding-bottom: 4px;
    height: 28px;
}

.paycell .btn-sm {
    padding: 4px 10px;
    line-height: 1.1;
}

/* (ha még nem tetted meg korábban) vízszintes scroll + sticky első oszlop támogatás */
.table-sticky-first thead th:first-child,
.table-sticky-first tbody td:first-child {
    position: sticky;
    left: 0;
    background: var(--surface-1);
    z-index: 2;
    box-shadow: 2px 0 0 0 var(--line);
}

.table-sticky-first thead th:first-child {
    z-index: 3;
}

/* ===== ApplicantsTable: ne vágja le a buborékot ===== */
.box.box-table {
    overflow: visible;
    position: relative;
}

    .box.box-table .table-hscroll {
        overflow-x: auto;
        overflow-y: visible;
    }

/* ===== Tooltip: szélesebb, tördelhető, sötét téma ===== */
.tooltip {
    position: relative;
    cursor: help;
}

    .tooltip::after {
        content: attr(data-tip);
        position: absolute;
        right: 0;
        bottom: calc(100% + 8px); /* alapértelmezés: felfelé nyílik */
        max-width: 640px; /* ⬅ szélesebb */
        min-width: 420px;
        padding: 12px 14px; /* kicsit „kártyásabb” */
        background: rgba(20,20,28,.98);
        border: 1px solid var(--line);
        border-radius: 10px;
        color: #e9e9ee;
        font-size: 12px;
        line-height: 1.5;
        white-space: pre-wrap; /* \n → új sor; hosszú megjegyzés törik */
        word-break: break-word;
        box-shadow: 0 8px 24px rgba(0,0,0,.35);
        opacity: 0;
        transform: translateY(4px) scale(.98);
        transition: opacity .12s ease, transform .12s ease;
        pointer-events: none;
        z-index: 1000; /* a cím/h3 fölé kerüljön */
    }

    .tooltip::before {
        content: "";
        position: absolute;
        right: 12px;
        bottom: calc(100% + 4px);
        border: 6px solid transparent;
        border-top-color: rgba(20,20,28,.98);
        opacity: 0;
        transition: opacity .12s ease;
        z-index: 1001;
    }

    .tooltip:hover::after,
    .tooltip:hover::before {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* ===== A táblázat tetején lefelé nyíljon, hogy ne csússzon a h3 alá ===== */
/* első 3 sorban lefelé nyitunk (állítható) */
.admin-applicants tbody tr:nth-child(-n+3) .tooltip::after {
    top: calc(100% + 8px);
    bottom: auto;
}

.admin-applicants tbody tr:nth-child(-n+3) .tooltip::before {
    top: calc(100% + 2px);
    bottom: auto;
    border-top-color: transparent;
    border-bottom-color: rgba(20,20,28,.98);
}

/* ===== Gallery (public) – toolbar & sort dropdown ===== */
.gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px; /* lazább elrendezés */
    margin: 0 0 16px;
    justify-content: space-between;
}

    .gallery-toolbar .title {
        margin: 0 0 4px;
    }

    .gallery-toolbar .meta {
        color: var(--muted);
        font-size: 14px;
    }

/* Csak a Részletek oldali dropdownra: #gallerySort (nem írjuk felül a globált) */
#gallerySort {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-1);
    color: var(--text);
    padding: 0 40px 0 12px; /* hely a nyílnak */
    line-height: 44px;
    position: relative;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%), linear-gradient(to right, transparent, transparent);
    background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px, 100% 0;
    background-size: 6px 6px, 6px 6px, 2.5rem 100%;
    background-repeat: no-repeat;
}

    #gallerySort:focus {
        outline: 0;
        border-color: color-mix(in oklab, var(--accent) 65%, transparent);
        box-shadow: var(--shadow-neon);
    }

/* Toolbar gombok egységes, kényelmes magassággal */
.gallery-toolbar .btn,
.gallery-toolbar .btn-primary,
.gallery-toolbar .btn-ghost {
    height: 44px;
}
/* ===== Gallery Lightbox – ikonfüggetlen vezérlők ===== */
/* Tedd a három gombra ezeket az osztályokat a nézetben: lb-ctrl lb-prev / lb-next / lb-close */
.lb-ctrl {
    position: absolute;
    background: #fff;
    color: #0b0f14;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    opacity: .95;
}

.lb-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-close {
    right: 16px;
    top: 16px;
}

.lb-prev::before {
    content: "‹";
    font-size: 22px;
    line-height: 1;
}

.lb-next::before {
    content: "›";
    font-size: 22px;
    line-height: 1;
}

.lb-close::before {
    content: "×";
    font-size: 22px;
    line-height: 1;
}

/* A nagy kép ne lógjon ki, és törött src esetén ne villanjon fel */
#lightboxImg {
    max-width: 92vw;
    max-height: 86vh;
    display: block;
    margin: 0 auto;
}

    #lightboxImg[src=""], #lightboxImg:not([src]) {
        display: none;
    }
/* ===== Gallery Upload – dropzone & preview (Neon Road branddel) ===== */
.dropzone {
    border: 2px dashed var(--line);
    border-radius: 12px;
    padding: 28px;
    background: color-mix(in oklab, var(--surface-1) 85%, transparent);
    text-align: center;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

    .dropzone.dragover {
        background: rgba(34,211,238,.08);
        border-color: color-mix(in oklab, var(--accent2) 65%, transparent);
        box-shadow: var(--shadow-neon);
    }

/* Vertikális ritmus helper – használhatod bárhol */
.stack > * + * {
    margin-top: .7rem;
}

@media (min-width: 992px) {
    .stack > * + * {
        margin-top: .9rem;
    }
}

/* Előnézet rács – levegősebb layout */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.preview-item {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .75rem;
    position: relative;
}

.preview-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    background: #111;
}

.preview-meta {
    font-size: .85rem;
    margin-top: .4rem;
    color: var(--muted);
}

.preview-item .progress {
    height: .4rem;
    margin-top: .5rem;
    background: #151026;
    border: 1px solid var(--line);
    border-radius: 8px;
}

    .preview-item .progress .progress-bar {
        background: linear-gradient(90deg, var(--accent), var(--accent2));
    }
/* ===== Simple masonry (no lib) ===== */
.masonry {
    column-gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
}

.masonry img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: .5rem;
}

.masonry-item img {
    cursor: pointer;
}

@media (min-width:576px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width:992px) {
    .masonry {
        column-count: 3;
    }
}
/* ===== Gallery spacing fixes (Bootstrap nélkül) ===== */

/* Galéria kártya (Index): cím + dátum ne tapadjon */
.gallery-card .card-body {
    padding: 16px !important;
}

/* Feltöltés oldal: card-elev komponensek belső paddingja */
.card-elev > .card-header {
    padding: 12px 16px !important;
}

.card-elev > .card-body {
    padding: 20px !important;
}

.card-elev > .card-footer {
    padding: 12px 16px !important;
}

/* Feltöltés oldal: a megjegyzés blokk körül legyen tér */
.upload-note {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

/* Galéria toolbar – ha még szorosnak érzed */
.gallery-toolbar .title {
    margin-bottom: 4px;
}

.gallery-toolbar .meta {
    font-size: 14px;
}
/* === Helpers (kismértékű kiegészítések) === */
.card-sec {
    padding: 16px;
}

/* ha még nem lenne egységesítve */
.crumbs {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .crumbs .sep {
        opacity: .6;
        margin: 0 6px;
    }


/* Lightbox (Bootstrap nélkül) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    display: grid;
    place-items: center;
    z-index: 9999;
}

    .lightbox img {
        max-width: 96vw;
        max-height: 90vh;
        border-radius: 10px;
    }

.lightbox-close {
    top: 16px;
    right: 16px;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* Spinner placeholder (egyszerű) */
.loading-spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.25);
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin: 8px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Feltöltés elrendezés (Bootstrap grid kiváltása) */
.layout-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
}

/* Kéthasábos elrendezés: bal hasáb széles */
.layout-2--leftwide {
    grid-template-columns: 2fr 1fr;
}

@media (max-width: 768px) {
    .layout-2--leftwide {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 960px) {
    .layout-2 {
        grid-template-columns: 1fr;
    }
}

.col-side, .col-main {
    min-width: 0;
}

.preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    border: 0;
    background: #fff;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* ===== Galéria – kártya kiegészítések (Bootstrap nélkül) ===== */
.gallery-card {
    position: relative;
}

    .gallery-card .stretched-link {
        position: absolute;
        inset: 0;
        z-index: 5;
    }

    .gallery-card .overlay-br {
        position: absolute;
        right: 8px;
        bottom: 8px;
        z-index: 6;
    }

    .gallery-card .overlay-tl {
        position: absolute;
        left: 8px;
        top: 8px;
        z-index: 6;
    }

.thumbframe {
    position: relative;
    padding-top: 56.25%;
    background: #111;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

    .thumbframe > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Toolbar jobbra igazított akciók */
.gallery-toolbar .toolbar-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Breadcrumb (crumbs) */
.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs .sep {
    opacity: .6;
}

/* Egyszerű lightbox overlay (ikonfüggetlen) */
.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.86);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    .lb-overlay.is-open {
        display: flex;
    }

.lb-dialog {
    position: relative;
    max-width: 96vw;
    max-height: 90vh;
}

.lb-img {
    display: block;
    max-width: 96vw;
    max-height: 90vh;
}

/* ===== Utilities – Bootstrap kiváltók (új) ===== */
/* Spacing */
.u-mb-0 {
    margin-bottom: 0 !important;
}

.u-mb-1 {
    margin-bottom: 4px !important;
}

.u-mb-2 {
    margin-bottom: 8px !important;
}

.u-mb-3 {
    margin-bottom: 12px !important;
}

.u-mt-1 {
    margin-top: 4px !important;
}

.u-mt-3 {
    margin-top: 12px !important;
}

.u-mr-1 {
    margin-right: 6px !important;
}

.u-mr-2 {
    margin-right: 10px !important;
}

/* Tipográfia / méret */
.small-text {
    font-size: 12px !important;
}

/* Flex helper-ek */
.flex {
    display: flex !important;
}

.ai-center {
    align-items: center !important;
}

.jc-between {
    justify-content: space-between !important;
}

.wrap {
    flex-wrap: wrap !important;
}

.u-gap-2 {
    gap: 8px !important;
}

/* Input kis ikon-bubival (input-group kiváltása) */
.input-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    padding: 0 10px;
    height: 44px;
}

    .input-with-icon .icon {
        opacity: .7;
        font-size: 14px;
        line-height: 1;
    }

    .input-with-icon .input {
        border: 0;
        padding: 0;
        height: 100%;
        background: transparent;
    }

/* Szélesebb keresőmező variáns */
.input--wide {
    min-width: 280px;
}

/* Kis gomb (btn-sm) – egységes */
.btn-sm {
    height: 36px;
    padding: 0 12px;
}

/* Galéria kártya: „Borító” jelvény */
.cover-badge {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    /*background: rgba(168,85,247,.15);*/
    color: #cda9ff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
}

/* Lightbox overlay – látható állapot (d-none helyett) */
.lb-overlay {
    display: none;
}

    .lb-overlay.is-open {
        display: flex;
    }

.photo-caption {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

    .photo-caption .muted {
        color: var(--muted);
    }
/* --- Home: mini galéria --- */

.home-mini-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}

    .home-mini-badge .event {
        font-weight: 600;
        display: block;
    }

    .home-mini-badge .date {
        opacity: .9;
        display: block;
        font-size: 11px;
    }

/* Mini galéria – a kép töltse ki a .thumb kártyát hézag nélkül */
.gallery .thumb {
    position: relative; /* a gyerek (img) ehhez igazodik */
    display: block; /* <a> ne legyen inline */
    overflow: hidden; /* kicsúszó részeket vágjuk */
    padding: 0; /* ha bárhol kapott paddinget, itt lenullázzuk */
}

    .gallery .thumb img {
        position: absolute; /* teljes kitöltés */
        inset: 0; /* top/right/bottom/left = 0 */
        width: 100%;
        height: 100%;
        object-fit: cover; /* arányt tartva vág */
        display: block; /* baseline rés megszüntetése */
        z-index: 1;
    }

    /* Ha van lilás overlay (::after), az legyen a kép fölött */
    .gallery .thumb::after {
        z-index: 2;
    }

    /* A kis címke (esemény + dátum) a legfelül maradjon */
    .gallery .thumb .home-mini-badge {
        z-index: 3;
    }

/* === Admin/Felhasznalok/Regisztraciok gombsor === */
.btnline {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem; /* térköz a gombok között */
    align-items: center;
}

    .btnline form, .btnline form.inline {
        display: inline;
        margin: 0;
    }

    .btnline button,
    .btnline a {
        white-space: nowrap;
        line-height: 1.1;
        padding: .38rem .6rem; /* kompakt méret (xs) */
        border-radius: .5rem;
        text-decoration: none;
    }

    /* Outline jellegű gombok (pl. szerep állítás) */
    .btnline .btn.outline {
        background: transparent;
        border: 1px solid rgba(255,255,255,.35);
        color: inherit; /* ne legyen rikító fehér, kövesse a szülő színt */
    }

        .btnline .btn.outline:hover {
            border-color: rgba(255,255,255,.6);
        }

    /* Veszély gomb (Törlés) */
    .btnline .btn.danger {
        background: transparent;
        border: 1px solid #e23;
        color: #e23;
    }

        .btnline .btn.danger:hover {
            background: #e23;
            color: #fff;
        }

/* ===== Cookie Banner (consolidated) ===== */
#cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: max(0px, env(safe-area-inset-bottom));
    z-index: 2147480000;
    width: 100%;
    /* TELJESEN FEDŐ HÁTTÉR (nem átlátszó) */
    background-color: var(--surface-2, #1E1633);
    color: var(--text, #EAF2FF);
    border-top: 1px solid var(--line, #2B2350);
    box-shadow: 0 -8px 24px rgba(0,0,0,.35);
    padding: 14px 0;
    transform: translateZ(0);
    animation: cookie-slide-up .35s ease-out both;
}

    #cookie-banner .cookie-banner__inner.container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    #cookie-banner .cookie-banner__content {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1 1 auto;
        min-width: 0;
    }

    #cookie-banner .cookie-banner__title {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
    }

    #cookie-banner .cookie-banner__text {
        margin: 0;
        font-size: 14px;
    }

    #cookie-banner .cookie-banner__link {
        text-decoration: underline;
        color: var(--accent2, #22D3EE);
    }

    #cookie-banner .cookie-banner__actions {
        display: flex;
        gap: 10px;
        flex: 0 0 auto;
    }

    #cookie-banner .btn {
        padding: 10px 14px;
    }

    #cookie-banner.cookie-banner--hide {
        animation: cookie-slide-down .28s ease-in both;
    }

@keyframes cookie-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cookie-slide-down {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Amíg látszik a banner, alul legyen hely a tartalomnak */
body.has-cookie-banner {
    padding-bottom: var(--cookie-banner-height, 88px);
}
/* ===== Cookie Preferences Modal ===== */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: none;
}

    .cookie-modal.is-open {
        display: block;
    }

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
}

.cookie-modal__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(720px, 92vw);
    background: var(--surface-2, #1E1633);
    color: var(--text, #EAF2FF);
    border: 1px solid var(--line, #2B2350);
    border-radius: 14px;
    box-shadow: 0 24px 72px rgba(0,0,0,.4);
    overflow: hidden;
}

.cookie-modal__header, .cookie-modal__footer {
    padding: 14px 16px;
    background: var(--surface-3, #231A3D);
    border-bottom: 1px solid var(--line, #2B2350);
}

.cookie-modal__footer {
    border-top: 1px solid var(--line, #2B2350);
    border-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-modal__spacer {
    flex: 1;
}

.cookie-modal__title {
    margin: 0;
    font-size: 18px;
}

.cookie-modal__close {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cookie-modal__body {
    padding: 16px;
    display: grid;
    gap: 14px;
}

.cookie-toggle {
    border: 1px solid var(--line, #2B2350);
    border-radius: 10px;
    padding: 12px;
    background: var(--surface-1, #191431);
}

.cookie-toggle__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cookie-toggle__text {
    margin-top: 6px;
    opacity: .9;
    font-size: 14px;
}

/* egyszerű switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #555;
    border-radius: 999px;
    transition: .2s;
}

    .slider:before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        top: 3px;
        background: #fff;
        border-radius: 50%;
        transition: .2s;
    }

.switch input:checked + .slider {
    background: var(--accent2, #22D3EE);
}

    .switch input:checked + .slider:before {
        transform: translateX(20px);
    }
