/* ==========================================================================
   Családi Emléktár – futurisztikus üveg (glassmorphism) felület
   ========================================================================== */

/* ---------------------------------------------------------------- tokenek */
:root {
    --bg: #e7ebfb;
    --blob-1: #9fb0ff;
    --blob-2: #f2a8f5;
    --blob-3: #8fdcff;
    --blob-4: #c3b2ff;
    --blob-opacity: .85;

    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .24));
    --glass-bg-strong: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .55));
    --glass-solid: rgba(248, 249, 255, .92);
    --glass-inset: rgba(255, 255, 255, .42);
    --glass-border: rgba(255, 255, 255, .78);
    --glass-border-soft: rgba(255, 255, 255, .5);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .18);
    --glass-shadow: 0 18px 50px -18px rgba(52, 62, 140, .35), 0 2px 8px -2px rgba(52, 62, 140, .08);
    --glass-blur: 22px;

    --text: #1a1f4d;
    --text-2: #4b5384;
    --text-3: #7d85ae;
    --line: rgba(60, 70, 140, .12);

    --accent: #6c5cff;
    --accent-2: #a55cff;
    --accent-3: #ff78c4;
    --grad: linear-gradient(120deg, #6c5cff 0%, #a55cff 52%, #ff78c4 100%);
    --grad-soft: linear-gradient(120deg, rgba(108, 92, 255, .16), rgba(255, 120, 196, .16));
    --focus: 0 0 0 4px rgba(124, 104, 255, .28);

    --ok: #0f9f8a;
    --warn: #d98a06;
    --danger: #e0434f;

    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius: 18px;
    --radius-sm: 12px;

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;

    --rail-w: 76px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #070a1e;
    --blob-1: #3b2fd6;
    --blob-2: #9d1fb4;
    --blob-3: #0b7fa8;
    --blob-4: #5a24c7;
    --blob-opacity: .55;

    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035));
    --glass-bg-strong: linear-gradient(135deg, rgba(30, 34, 74, .88), rgba(18, 21, 52, .82));
    --glass-solid: rgba(20, 23, 56, .95);
    --glass-inset: rgba(255, 255, 255, .06);
    --glass-border: rgba(255, 255, 255, .14);
    --glass-border-soft: rgba(255, 255, 255, .08);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .14);
    --glass-shadow: 0 24px 60px -20px rgba(0, 0, 0, .65);

    --text: #eef0ff;
    --text-2: #b3b9e0;
    --text-3: #7c84b3;
    --line: rgba(255, 255, 255, .1);
    --focus: 0 0 0 4px rgba(150, 130, 255, .35);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #070a1e;
        --blob-1: #3b2fd6;
        --blob-2: #9d1fb4;
        --blob-3: #0b7fa8;
        --blob-4: #5a24c7;
        --blob-opacity: .55;
        --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035));
        --glass-bg-strong: linear-gradient(135deg, rgba(30, 34, 74, .88), rgba(18, 21, 52, .82));
        --glass-solid: rgba(20, 23, 56, .95);
        --glass-inset: rgba(255, 255, 255, .06);
        --glass-border: rgba(255, 255, 255, .14);
        --glass-border-soft: rgba(255, 255, 255, .08);
        --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .14);
        --glass-shadow: 0 24px 60px -20px rgba(0, 0, 0, .65);
        --text: #eef0ff;
        --text-2: #b3b9e0;
        --text-3: #7c84b3;
        --line: rgba(255, 255, 255, .1);
        --focus: 0 0 0 4px rgba(150, 130, 255, .35);
        color-scheme: dark;
    }
}

/* ---------------------------------------------------------------- alap */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { font-family: inherit; font-size: .82em; padding: 1px 7px; border-radius: 7px; background: var(--glass-inset); border: 1px solid var(--glass-border); box-shadow: 0 1px 0 var(--line); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-3); }
:focus-visible { outline: none; box-shadow: var(--focus); }
::selection { background: rgba(140, 110, 255, .3); }

.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .only-dark { display: inline; }
    :root:not([data-theme="light"]) .only-light { display: none; }
}

/* ---------------------------------------------------------------- háttér: aurora */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(1200px 700px at 85% -10%, rgba(255, 255, 255, .55), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(255, 255, 255, .35), transparent 60%);
}
:root[data-theme="dark"] .aurora::before { background: radial-gradient(1000px 600px at 80% -10%, rgba(120, 100, 255, .18), transparent 60%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aurora::before { background: radial-gradient(1000px 600px at 80% -10%, rgba(120, 100, 255, .18), transparent 60%); } }

.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-opacity); will-change: transform; }
.b1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: var(--blob-1); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 44vmax; height: 44vmax; right: -12vmax; top: 8vmax; background: var(--blob-2); animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 40vmax; height: 40vmax; left: 18vmax; bottom: -22vmax; background: var(--blob-3); animation: drift3 28s ease-in-out infinite alternate; }
.b4 { width: 30vmax; height: 30vmax; right: 14vmax; bottom: -8vmax; background: var(--blob-4); animation: drift1 36s ease-in-out infinite alternate-reverse; }
.grain {
    position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-10vmax, 8vmax, 0) scale(.94); } }
@keyframes drift3 { to { transform: translate3d(6vmax, -8vmax, 0) scale(1.1); } }

/* ---------------------------------------------------------------- üveg */
.glass, .glass-strong {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    backdrop-filter: blur(var(--glass-blur)) saturate(170%);
}
.glass-strong { background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
.glass-inset { background: var(--glass-inset); border: 1px solid var(--glass-border-soft); }
.glass-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .75); color: #262b5e;
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.glass-chip svg { width: 14px; height: 14px; }
:root[data-theme="dark"] .glass-chip { background: rgba(20, 22, 56, .5); border-color: rgba(255, 255, 255, .16); color: #eef0ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glass-chip { background: rgba(20, 22, 56, .5); border-color: rgba(255, 255, 255, .16); color: #eef0ff; } }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
:root[data-theme="dark"] .eyebrow { color: #b6a8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: #b6a8ff; } }

/* Gömb („orb”) – a márka díszítőeleme */
.orb {
    display: inline-block; border-radius: 50%; flex: none; position: relative;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 8%, rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at 70% 75%, rgba(255, 120, 196, .9), rgba(255, 120, 196, 0) 55%),
        radial-gradient(circle at 25% 80%, rgba(80, 210, 255, .9), rgba(80, 210, 255, 0) 55%),
        conic-gradient(from 210deg, #6c5cff, #8f6bff, #c06bff, #ff7ac6, #6fd3ff, #6c5cff);
    box-shadow: inset -6px -8px 18px rgba(40, 20, 120, .35), inset 4px 6px 12px rgba(255, 255, 255, .5), 0 10px 30px -8px rgba(124, 92, 255, .6);
    animation: orb-spin 18s linear infinite;
}
.orb-xs { width: 26px; height: 26px; }
.orb-sm { width: 40px; height: 40px; }
.orb-md { width: 42px; height: 42px; }
.orb-lg { width: 64px; height: 64px; }
.orb-xl { width: 120px; height: 120px; }
.orb-hero { width: 260px; height: 260px; }
@keyframes orb-spin { to { filter: hue-rotate(360deg); } }

/* ---------------------------------------------------------------- gombok */
.btn {
    --h: 46px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: var(--h); padding: 0 20px; border-radius: 999px;
    font-weight: 600; font-size: 15px; white-space: nowrap; user-select: none;
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; }
.btn-sm { --h: 38px; padding: 0 15px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
    color: #fff; background: var(--grad); background-size: 140% 140%;
    box-shadow: 0 12px 28px -10px rgba(124, 92, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
    position: relative; overflow: hidden;
}
.btn-primary::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 36px -10px rgba(124, 92, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .45); background-position: 100% 0; }
.btn-glass {
    background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text);
    box-shadow: 0 8px 22px -12px rgba(52, 62, 140, .35), var(--glass-highlight);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.btn-glass:hover { background: var(--glass-bg-strong); }
.btn-danger { color: #fff; background: linear-gradient(120deg, #f0525d, #d93a7a); box-shadow: 0 12px 26px -12px rgba(224, 67, 79, .8); }
.btn-icon-only { width: var(--h); padding: 0; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.btn.is-busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn .chev-r { margin-left: 2px; margin-right: -6px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .25); box-sizing: content-box; }
.btn .chev { width: 16px; height: 16px; margin-right: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
    width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; color: var(--text);
    transition: transform .2s ease;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn-sm {
    width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-2); background: var(--glass-inset); border: 1px solid var(--glass-border-soft); transition: background .2s;
}
.icon-btn-sm:hover { background: var(--glass-bg-strong); color: var(--text); }
.icon-btn-sm svg { width: 17px; height: 17px; }

.tip-btn {
    width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent); background: var(--grad-soft); border: 1px solid rgba(140, 120, 255, .25);
    transition: transform .2s, background .2s; flex: none;
}
.tip-btn svg { width: 16px; height: 16px; }
.tip-btn:hover { transform: scale(1.08); background: rgba(124, 104, 255, .22); }
:root[data-theme="dark"] .tip-btn { color: #c3b8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tip-btn { color: #c3b8ff; } }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.link svg { width: 16px; height: 16px; transition: transform .2s; }
.link:hover svg { transform: translateX(3px); }
:root[data-theme="dark"] .link { color: #b8acff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .link { color: #b8acff; } }

/* ---------------------------------------------------------------- elrendezés */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.rail {
    position: fixed; left: 18px; top: 18px; bottom: 18px; width: var(--rail-w); z-index: 40;
    border-radius: 38px; display: flex; flex-direction: column; align-items: center; padding: 14px 0;
}
.rail-logo { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; }
.rail-items { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rail-bottom { display: flex; flex-direction: column; gap: 10px; }
.rail-btn {
    position: relative; width: 50px; height: 50px; border-radius: 18px;
    display: grid; place-items: center; color: var(--text-2);
    transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}
.rail-btn:hover { background: var(--glass-inset); color: var(--text); }
.rail-btn.is-active {
    color: #fff; background: var(--grad);
    box-shadow: 0 10px 24px -8px rgba(124, 92, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn[data-tip]::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-6px, -50%);
    padding: 7px 12px; border-radius: 10px; white-space: nowrap; font-size: 13px; font-weight: 600;
    background: var(--glass-solid); color: var(--text); border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.rail-btn[data-tip]:hover::after, .rail-btn[data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

.stage { flex: 1; min-width: 0; padding: 18px 28px 40px calc(var(--rail-w) + 46px); display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; }

.topbar { position: relative; z-index: 30; display: flex; align-items: center; gap: 14px; max-width: 1320px; width: 100%; margin: 0 auto 22px; }
.brand-mini { display: none; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.search {
    flex: 1; max-width: 520px; height: 50px; border-radius: 999px;
    display: flex; align-items: center; gap: 10px; padding: 0 8px 0 18px;
}
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search-icon { color: var(--text-3); }
.search-kbd { color: var(--text-3); }
.search:focus-within { box-shadow: var(--glass-shadow), var(--focus); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar-btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; padding: 3px; background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }

.foot { max-width: 1320px; width: 100%; margin: 40px auto 0; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }
.foot a:hover { color: var(--text); }

.bottom-nav { display: none; }
.hide-desktop { display: none; }

/* ---------------------------------------------------------------- menü (legördülő) */
.menu-wrap { position: relative; }
.menu {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 250px;
    border-radius: 20px; padding: 8px; transform-origin: top right; animation: pop .18s ease;
}
.menu-wide { min-width: 300px; }
.menu-up-right { top: calc(100% + 8px); right: 0; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.menu-head strong { font-size: 15px; }
.menu-head span { font-size: 13px; color: var(--text-3); }
.menu-item {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px;
    text-align: left; font-weight: 600; font-size: 14.5px; color: var(--text); transition: background .15s;
}
.menu-item > span { display: flex; flex-direction: column; }
.menu-item small { font-weight: 500; font-size: 12.5px; color: var(--text-3); }
.menu-item:hover { background: var(--glass-inset); }
.menu-item svg { color: var(--text-2); }
.menu-item.danger, .menu-item.danger svg { color: var(--danger); }
.menu form { margin: 0; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

/* ---------------------------------------------------------------- hero */
.hero {
    border-radius: var(--radius-xl); padding: 38px 40px; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.hero-text { position: relative; z-index: 1; max-width: 640px; }
.hero-title { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; margin: 8px 0 12px; }
.hero-sub { color: var(--text-2); font-size: 16.5px; max-width: 560px; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-orb { position: absolute; right: -60px; top: -90px; opacity: .55; filter: blur(2px); pointer-events: none; }
.hero-compact { padding: 32px 36px; }

/* ---------------------------------------------------------------- statisztika */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.stat { border-radius: var(--radius-lg); padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.stat-ic {
    width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none;
    background: var(--grad-soft); color: var(--accent); border: 1px solid rgba(140, 120, 255, .2);
}
:root[data-theme="dark"] .stat-ic { color: #c3b8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat-ic { color: #c3b8ff; } }
.stat strong { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.stat span { font-size: 13.5px; color: var(--text-3); }
.stat-tip { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; }
.stat-tip svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- szekciók */
.section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title h2 { font-size: 23px; font-weight: 600; }

.select-wrap { position: relative; display: inline-flex; align-items: center; height: 44px; border-radius: 999px; padding: 0 14px 0 18px; }
.select-wrap select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; outline: 0; padding-right: 26px; font-weight: 600; font-size: 14px; height: 100%; cursor: pointer; }
.select-wrap select option { color: #1a1f4d; }
.select-wrap svg { position: absolute; right: 14px; width: 16px; height: 16px; pointer-events: none; color: var(--text-3); }

/* ---------------------------------------------------------------- eseménykártyák */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.event-card {
    border-radius: var(--radius-lg); padding: 10px; display: flex; flex-direction: column;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
    animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
.event-card:hover { transform: translateY(-5px); box-shadow: 0 28px 60px -22px hsla(var(--hue), 80%, 50%, .55), var(--glass-highlight); }
.event-cover { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, hsla(var(--hue), 90%, 75%, .55), hsla(calc(var(--hue) + 60), 90%, 72%, .55)); }
.event-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.event-card:hover .event-cover img { transform: scale(1.06); }
.event-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 40, 0) 55%, rgba(10, 12, 40, .28)); pointer-events: none; }
.event-cover-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.event-cover-empty .orb { position: absolute; width: 90px; height: 90px; opacity: .55; filter: blur(1px); }
.event-cover-empty svg { position: relative; width: 34px; height: 34px; color: #fff; stroke-width: 1.6; }
.event-date-chip { position: absolute; left: 10px; top: 10px; z-index: 1; }
.event-body { padding: 14px 10px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.event-title { font-size: 18.5px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.event-meta { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; min-height: 22px; }
.event-meta svg { width: 15px; height: 15px; }
.event-desc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.count { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--glass-inset); border: 1px solid var(--glass-border-soft); color: var(--text-2); }
.count svg { width: 15px; height: 15px; }
.event-go {
    margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: var(--glass-inset); border: 1px solid var(--glass-border-soft); transition: background .3s, color .3s, transform .3s;
}
.event-go svg { width: 17px; height: 17px; }
.event-card:hover .event-go { background: var(--grad); color: #fff; border-color: transparent; transform: translateX(2px); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.event-card:nth-child(2) { animation-delay: .04s; } .event-card:nth-child(3) { animation-delay: .08s; }
.event-card:nth-child(4) { animation-delay: .12s; } .event-card:nth-child(5) { animation-delay: .16s; }
.event-card:nth-child(n+6) { animation-delay: .2s; }

/* ---------------------------------------------------------------- legutóbbiak */
.recent-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.recent-item { position: relative; border-radius: 20px; padding: 6px; scroll-snap-align: start; transition: transform .3s; }
.recent-item:hover { transform: translateY(-3px); }
.recent-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 15px; }
.recent-cap { display: block; padding: 7px 4px 2px; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-badge { position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 12, 40, .45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .35); }
.play-badge svg { width: 14px; height: 14px; margin-left: 2px; }

/* ---------------------------------------------------------------- útmutató blokk */
.howto { border-radius: var(--radius-xl); padding: 30px; }
.howto-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.howto-head h2 { font-size: 23px; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; gap: 14px; padding: 18px; border-radius: 20px; background: var(--glass-inset); border: 1px solid var(--glass-border-soft); }
.steps p { color: var(--text-2); font-size: 14px; margin-top: 3px; }
.step-n { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(124, 92, 255, .8); }
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.device { display: flex; gap: 12px; align-items: flex-start; padding: 4px 6px; }
.device > svg { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.device div { display: flex; flex-direction: column; }
.device span { font-size: 13.5px; color: var(--text-2); }

/* ---------------------------------------------------------------- üres állapot */
.empty { border-radius: var(--radius-xl); padding: 46px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h3 { font-size: 22px; font-weight: 600; }
.empty p { color: var(--text-2); max-width: 480px; }
.empty .btn { margin-top: 8px; }
.empty-sm { padding: 28px; }
.empty-art { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 4px; }
.empty-art .orb { position: absolute; opacity: .75; }
.empty-art svg { position: relative; width: 40px; height: 40px; color: #fff; stroke-width: 1.6; }

/* ---------------------------------------------------------------- figyelmeztetés / tipp */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.alert svg { margin-top: 1px; }
.alert-danger { background: rgba(224, 67, 79, .12); color: #b4232f; border: 1px solid rgba(224, 67, 79, .25); }
.alert-success { background: rgba(15, 159, 138, .12); color: #0b7a69; border: 1px solid rgba(15, 159, 138, .25); }
:root[data-theme="dark"] .alert-danger { color: #ff9aa2; } :root[data-theme="dark"] .alert-success { color: #6fe3cf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert-danger { color: #ff9aa2; } :root:not([data-theme="light"]) .alert-success { color: #6fe3cf; } }
.tip-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--grad-soft); border: 1px solid rgba(140, 120, 255, .22); font-size: 14.5px; }
.tip-box > svg { color: var(--accent); margin-top: 2px; }
.inline-ic { width: 1.05em; height: 1.05em; vertical-align: -.17em; display: inline; }

/* ---------------------------------------------------------------- űrlapok */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.label { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.req { color: var(--accent-3); font-style: normal; }
.opt { font-weight: 500; font-size: 12px; color: var(--text-3); padding: 1px 8px; border-radius: 999px; background: var(--glass-inset); }
.hint { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.hint svg { width: 14px; height: 14px; }
.caps-warn { color: var(--warn); font-weight: 600; }
.input {
    width: 100%; height: 48px; padding: 0 16px; border-radius: 15px; outline: 0;
    background: var(--glass-inset); border: 1px solid var(--glass-border); color: var(--text);
    box-shadow: inset 0 2px 6px rgba(40, 50, 120, .06); transition: border-color .2s, box-shadow .2s, background .2s;
    font-size: 16px; /* iOS: 16px alatt ráközelítene */
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: rgba(124, 104, 255, .65); box-shadow: var(--focus); background: var(--glass-bg-strong); }
.input-lg { height: 54px; }
.textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
input[type="date"].input { appearance: none; -webkit-appearance: none; min-height: 48px; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.input-icon { position: relative; display: block; }
.input-icon > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 46px; }
.input-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--text-3); }
.input-action:hover { color: var(--text); background: var(--glass-inset); }
.input-icon:has(.input-action) .input { padding-right: 52px; }
.pw-hide { display: none; }
.is-shown .pw-show { display: none; } .is-shown .pw-hide { display: block; }

.switch-row { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border-radius: 16px; background: var(--glass-inset); border: 1px solid var(--glass-border-soft); }
.switch-row strong { display: block; font-size: 14px; }
.switch-row small { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.4; margin-top: 2px; }
.switch { position: relative; flex: none; margin-top: 1px; }
.switch input { position: absolute; opacity: 0; inset: 0; }
.switch-track { display: block; width: 48px; height: 28px; border-radius: 999px; background: rgba(120, 130, 180, .3); border: 1px solid var(--glass-border); transition: background .25s; position: relative; }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(20, 20, 60, .3); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked + .switch-track { background: var(--grad); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--focus); }

/* ---------------------------------------------------------------- modális ablak */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
    background: rgba(14, 16, 48, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    animation: fade .2s ease;
}
.modal {
    width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain;
    border-radius: 30px; padding: 30px; animation: modal-in .32s cubic-bezier(.2, .9, .3, 1.1);
}
.modal-sm { max-width: 420px; text-align: center; }
.modal-close { position: absolute; right: 16px; top: 16px; }
.modal-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; padding-right: 30px; }
.modal-badge { width: 50px; height: 50px; flex: none; border-radius: 17px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 22px -10px rgba(124, 92, 255, .9); }
.modal-title { font-size: 23px; font-weight: 600; }
.modal-sub { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.modal-text { color: var(--text-2); margin-top: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.modal-sm .modal-actions { justify-content: center; margin-top: 22px; }
.confirm-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff7a85, #e0434f); box-shadow: 0 14px 30px -12px rgba(224, 67, 79, .8); }
.confirm-icon svg { width: 30px; height: 30px; }
@keyframes fade { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
body.has-modal { overflow: hidden; }

/* bemutató */
.modal-tour { max-width: 500px; text-align: center; padding: 34px 30px 24px; }
.tour-slide { display: none; animation: fade .35s ease; }
.tour-slide.is-active { display: block; }
.tour-slide p { color: var(--text-2); margin-top: 12px; }
.tour-art { position: relative; width: 140px; height: 140px; margin: 0 auto 18px; display: grid; place-items: center; }
.tour-art .orb { position: absolute; }
.tour-glyph { position: relative; width: 46px; height: 46px; color: #fff; stroke-width: 1.6; filter: drop-shadow(0 4px 10px rgba(40, 20, 120, .35)); }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.tour-dots { display: flex; gap: 7px; }
.tour-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .3s, background .3s; }
.tour-dots span.is-active { width: 26px; background: var(--grad); }
.tour-nav { display: flex; gap: 8px; }

/* súgó-buborék */
.help-pop { position: fixed; z-index: 120; width: min(340px, calc(100vw - 24px)); border-radius: 20px; padding: 14px 16px 16px; animation: pop .18s ease; }
.help-pop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.help-pop-head strong { flex: 1; font-size: 15px; }
.help-pop-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.help-pop-icon svg { width: 17px; height: 17px; }
.help-pop-body { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* értesítések */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 24px)); }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 13px 16px; border-radius: 18px; font-weight: 600; font-size: 14.5px;
    background: var(--glass-solid); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast .t-ic { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.toast.is-error .t-ic { background: linear-gradient(135deg, #ff7a85, #e0434f); }
.toast.is-ok .t-ic { background: linear-gradient(135deg, #2fd3b6, #0f9f8a); }
.toast .t-ic svg { width: 17px; height: 17px; }
.toast.is-leaving { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------------------------------------------------------------- belépés */
.is-login { display: grid; }
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 18px; position: relative; overflow: hidden; }
.login-card { width: 100%; max-width: 470px; border-radius: 36px; padding: 38px 36px 28px; position: relative; z-index: 2; animation: modal-in .6s cubic-bezier(.2, .9, .3, 1.05); }
.login-brand { display: flex; align-items: center; gap: 16px; }
.login-title { font-size: 34px; font-weight: 700; margin-top: 2px; }
.login-lead { color: var(--text-2); margin: 16px 0 24px; font-size: 15.5px; }
.login-help { margin-top: 20px; border-radius: 16px; background: var(--glass-inset); border: 1px solid var(--glass-border-soft); }
.login-help summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.login-help summary::-webkit-details-marker { display: none; }
.login-help summary .chev { margin-left: auto; width: 16px; height: 16px; transition: transform .25s; }
.login-help[open] summary .chev { transform: rotate(180deg); }
.login-help ul { margin: 0; padding: 0 18px 16px 36px; font-size: 13.5px; color: var(--text-2); display: grid; gap: 8px; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.login-foot svg { width: 16px; height: 16px; }

.login-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.deco-card { position: absolute; width: 190px; border-radius: 24px; padding: 14px; display: flex; gap: 12px; align-items: center; animation: float 9s ease-in-out infinite; }
.deco-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--grad); flex: none; }
.deco-lines { flex: 1; display: grid; gap: 8px; }
.deco-lines i { display: block; height: 8px; border-radius: 6px; background: var(--line); }
.deco-lines i:last-child { width: 60%; }
.d1 { left: 8%; top: 16%; transform: rotate(-8deg); }
.d2 { right: 9%; top: 24%; transform: rotate(7deg); animation-delay: -3s; }
.d3 { left: 14%; bottom: 14%; transform: rotate(5deg); animation-delay: -6s; }
.deco-ring { position: absolute; border-radius: 50%; border: 1px solid var(--glass-border); }
.r1 { width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .6; }
.r2 { width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .35; }
@keyframes float { 50% { translate: 0 -14px; } }

/* ---------------------------------------------------------------- esemény oldal */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text-2); margin-bottom: 14px; padding: 6px 4px; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; transition: transform .2s; }
.back-link:hover svg { transform: translateX(-3px); }

/* A fejléc NEM vághatja le a legördülő menüket (overflow: visible), ezért a háttérkép maga kerekített; a z-index pedig a következő üvegdoboz fölé emeli. */
.event-hero { border-radius: var(--radius-xl); overflow: visible; min-height: 300px; display: flex; align-items: flex-end; z-index: 5; }
.event-hero-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background-size: cover; background-position: center; }
.event-hero-bg::after { border-radius: inherit; }
.event-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 40, .06) 0%, rgba(10, 12, 40, .25) 45%, rgba(10, 12, 40, .78) 100%); }
.event-hero-bg.is-empty { background: radial-gradient(600px 300px at 20% 0%, hsla(var(--hue), 95%, 75%, .9), transparent 70%), radial-gradient(500px 300px at 90% 100%, hsla(calc(var(--hue) + 70), 95%, 70%, .85), transparent 70%), linear-gradient(135deg, hsl(var(--hue), 70%, 62%), hsl(calc(var(--hue) + 50), 75%, 58%)); }
.event-hero-bg.is-empty::after { background: linear-gradient(180deg, transparent 30%, rgba(10, 12, 40, .45)); }
.event-hero-inner { position: relative; z-index: 1; width: 100%; padding: 34px 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #fff; }
.event-hero-text { max-width: 720px; }
.event-hero-title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; margin-top: 14px; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.event-hero-desc { margin-top: 10px; color: rgba(255, 255, 255, .88); max-width: 640px; font-size: 15.5px; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.event-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.event-hero .btn-glass { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.event-hero .btn-glass:hover { background: rgba(255, 255, 255, .26); }
.event-hero .menu { color: var(--text); }

/* feltöltő */
.uploader { border-radius: var(--radius-xl); padding: 24px; margin-top: 20px; }
.uploader-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.uploader-head h2 { font-size: 22px; font-weight: 600; }
.who { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 14px; border-radius: 999px; min-width: 260px; }
.who > svg { color: var(--text-3); }
.who input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
.who:focus-within { box-shadow: var(--focus); }
.dropzone {
    position: relative; border-radius: 24px; padding: 30px 26px; cursor: pointer;
    display: flex; align-items: center; gap: 22px;
    background: linear-gradient(135deg, rgba(124, 104, 255, .08), rgba(255, 120, 196, .08));
    border: 2px dashed rgba(124, 104, 255, .38); transition: border-color .25s, background .25s, transform .25s;
}
.dropzone:hover, .dropzone.is-over { border-color: rgba(124, 104, 255, .8); background: linear-gradient(135deg, rgba(124, 104, 255, .16), rgba(255, 120, 196, .14)); }
.dropzone.is-over { transform: scale(1.01); }
.dz-art { position: relative; width: 74px; height: 74px; flex: none; display: grid; place-items: center; }
.dz-art .orb { position: absolute; }
.dz-art svg { position: relative; color: #fff; width: 28px; height: 28px; }
.dz-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dz-text strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.dz-text span { color: var(--text-2); font-size: 14px; }
.dz-btn { pointer-events: none; }
.only-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .only-touch { display: block; } .hide-touch { display: none; } }
.dz-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.dz-notes span { display: inline-flex; align-items: center; gap: 7px; }
.dz-notes svg { width: 16px; height: 16px; color: var(--accent); }

.queue { margin-top: 20px; }
.queue-summary { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--glass-inset); border: 1px solid var(--glass-border-soft); }
.queue-sum-text { display: flex; flex-direction: column; }
.queue-sum-text strong { font-size: 15.5px; }
.queue-sum-text span { font-size: 13px; color: var(--text-2); }
.queue-summary .progress { grid-column: 1 / -1; }
.queue-warn { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--warn); }
.queue-warn svg { width: 16px; height: 16px; }
.progress { height: 8px; border-radius: 999px; background: rgba(120, 130, 190, .18); overflow: hidden; position: relative; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .35s ease; position: relative; overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: shine 1.6s linear infinite; }
.progress-lg { height: 10px; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.queue-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; max-height: 460px; overflow-y: auto; }
.q-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--glass-inset); border: 1px solid var(--glass-border-soft); }
.q-thumb { width: 48px; height: 48px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); }
.q-thumb img { width: 100%; height: 100%; object-fit: cover; }
.q-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.q-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-meta { font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; gap: 8px; }
.q-item .progress { height: 6px; }
.q-state { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.q-state svg { width: 17px; height: 17px; }
.q-item.is-done .q-state { color: #fff; background: linear-gradient(135deg, #2fd3b6, #0f9f8a); }
.q-item.is-error { border-color: rgba(224, 67, 79, .4); }
.q-item.is-error .q-meta { color: var(--danger); }
.q-item.is-done .progress span::after, .q-item.is-error .progress span::after { display: none; }
.q-item.is-error .progress span { background: var(--danger); }
.q-cancel:hover { background: var(--glass-bg-strong); color: var(--danger); }

/* szűrő */
.segmented { display: inline-flex; padding: 5px; border-radius: 999px; gap: 4px; }
.segmented button { height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; transition: background .25s, color .25s; }
.segmented button em { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--glass-inset); }
.segmented button.is-active { color: #fff; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(124, 92, 255, .8); }
.segmented button.is-active em { background: rgba(255, 255, 255, .25); }

/* galéria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile {
    position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; cursor: pointer;
    background: var(--glass-inset); border: 1px solid var(--glass-border-soft);
    box-shadow: 0 10px 26px -16px rgba(40, 50, 120, .45);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(80, 60, 200, .55); }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease, transform .6s ease; }
.tile img.is-loaded { opacity: 1; }
.tile:hover img { transform: scale(1.05); }
.tile-badge { position: absolute; right: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(10, 12, 40, .5); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile-badge svg { width: 13px; height: 13px; }
.tile-cover { position: absolute; left: 9px; top: 9px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(124, 92, 255, .9); }
.tile-cover svg { width: 14px; height: 14px; fill: currentColor; }
.tile-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; background: linear-gradient(135deg, rgba(124, 104, 255, .16), rgba(255, 120, 196, .14)); }
.tile-ph svg { width: 30px; height: 30px; color: var(--accent); }
.tile-ph span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.tile-ph small { font-size: 11.5px; color: var(--text-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.is-processing .tile-ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); animation: shine 1.8s linear infinite; }
.tile .spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(124, 104, 255, .25); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.tile.is-new { box-shadow: 0 0 0 3px rgba(124, 104, 255, .55), 0 10px 26px -16px rgba(40, 50, 120, .45); }
.tile-status { position: absolute; left: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(217, 138, 6, .85); }

/* ---------------------------------------------------------------- nagy nézet */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(6, 8, 26, .9); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); color: #fff; display: grid; grid-template-rows: auto 1fr auto; animation: fade .2s ease; touch-action: pan-y; }
.lb-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px; position: relative; z-index: 3; }
.lb-counter { flex: 1; text-align: center; font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.lb-actions { display: flex; gap: 8px; align-items: center; }
.lb-btn { height: 46px; min-width: 46px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; font-size: 14px; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn.is-disabled { opacity: .35; pointer-events: none; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 70px; overflow: hidden; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); object-fit: contain; animation: lb-in .3s ease; }
.lb-stage video { width: auto; height: auto; max-height: calc(100dvh - 160px); background: #000; }
.lb-stage img { max-height: calc(100dvh - 150px); user-select: none; -webkit-user-drag: none; }
.lb-stage .lb-loading { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .9s linear infinite; }
.lb-wait { max-width: 420px; text-align: center; padding: 30px; border-radius: 26px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.lb-wait h3 { font-size: 20px; margin: 14px 0 8px; }
.lb-wait p { color: rgba(255, 255, 255, .78); font-size: 14.5px; }
.lb-wait .btn { margin-top: 16px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); transition: background .2s, opacity .2s; }
.lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-nav svg { width: 26px; height: 26px; }
.lb-nav[disabled] { opacity: 0; pointer-events: none; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-hint { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .5); padding: 10px 16px calc(12px + var(--safe-b)); }
.lb-info { position: absolute; right: 16px; top: 76px; z-index: 4; width: min(340px, calc(100vw - 32px)); border-radius: 22px; padding: 16px 18px; color: var(--text); animation: pop .2s ease; max-height: calc(100dvh - 110px); overflow-y: auto; }
.lb-info-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lb-info dl { margin: 0; display: grid; gap: 10px; }
.lb-info dt { font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.lb-info dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 500; word-break: break-word; }
.lb-info .lb-note { font-size: 13px; color: var(--text-2); padding: 10px 12px; border-radius: 12px; background: var(--grad-soft); }
.lightbox .menu { color: var(--text); }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }

/* ---------------------------------------------------------------- súgó oldal */
.help-layout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.help-toc { position: sticky; top: 18px; border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.help-toc strong { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; padding: 0 10px; }
.help-toc a { padding: 8px 10px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.help-toc a:hover { background: var(--glass-inset); color: var(--text); }
.help-content { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.acc { border-radius: var(--radius-lg); scroll-margin-top: 20px; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .chev { margin-left: auto; transition: transform .3s; color: var(--text-3); }
.acc[open] summary .chev { transform: rotate(180deg); }
.acc-ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(124, 92, 255, .8); }
.acc-ic svg { width: 20px; height: 20px; }
.acc-body { padding: 0 22px 22px 74px; display: flex; flex-direction: column; gap: 12px; color: var(--text-2); font-size: 15px; }
.acc-body strong { color: var(--text); }
.numbered, .bullets { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.numbered li::marker { font-weight: 700; color: var(--accent); }
.faq h4 { font-size: 16px; color: var(--text); margin-top: 6px; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--glass-border-soft); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); background: var(--glass-inset); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--text); }

/* ==========================================================================
   Reszponzív
   ========================================================================== */
@media (max-width: 1180px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .help-layout { grid-template-columns: 1fr; }
    .help-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .help-toc strong { width: 100%; }
    .help-toc a { background: var(--glass-inset); }
    .steps, .devices { grid-template-columns: 1fr; }
}

/* Tablet és telefon: alsó menüsor, nincs oldalsáv */
@media (max-width: 860px) {
    :root { --glass-blur: 18px; }
    .rail { display: none; }
    .stage { padding: 12px 16px calc(110px + var(--safe-b)); }
    .topbar { gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
    .brand-mini { display: inline-flex; }
    .search { order: 3; flex-basis: 100%; max-width: none; height: 48px; }
    .search-kbd { display: none; }
    .hide-desktop { display: inline-flex; }
    .icon-btn, .avatar-btn { width: 44px; height: 44px; }
    .foot { display: none; }

    .bottom-nav {
        display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end;
        position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 90;
        border-radius: 28px; padding: 8px 8px 9px; height: 72px;
    }
    .bottom-nav > a, .bottom-nav > button, .bottom-nav > label { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 4px 0; }
    .bottom-nav > a svg { width: 23px; height: 23px; }
    .bottom-nav > a.is-active { color: var(--accent); }
    :root[data-theme="dark"] .bottom-nav > a.is-active { color: #c3b8ff; }
    .bn-primary { color: var(--text) !important; }
    .bn-plus { width: 54px; height: 54px; margin-top: -28px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 14px 28px -10px rgba(124, 92, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .45); border: 3px solid rgba(255, 255, 255, .6); }
    .bn-plus svg { width: 24px; height: 24px; }

    .hero { padding: 28px 24px; border-radius: 28px; }
    .hero-orb { width: 180px; height: 180px; right: -50px; top: -60px; }
    .event-hero-inner { padding: 26px 22px; }
    .event-hero { min-height: 260px; }
    .uploader { padding: 18px; border-radius: 26px; }
    .who { min-width: 0; flex: 1 1 100%; }
    .lb-stage { padding: 0 8px; }
    .lb-nav { display: none; }
    .lb-label { display: none; }
    .toasts { bottom: calc(96px + var(--safe-b)); }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .hero { padding: 24px 20px; }
    .hero-title { margin: 6px 0 10px; }
    .hero-sub { font-size: 15px; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1 1 auto; }
    .stats { gap: 10px; margin-top: 12px; }
    .stat { padding: 14px; gap: 10px; border-radius: 20px; }
    .stat-ic { width: 38px; height: 38px; border-radius: 12px; }
    .stat-ic svg { width: 18px; height: 18px; }
    .stat strong { font-size: 20px; }
    .section { margin-top: 26px; }
    .section-title h2 { font-size: 20px; }
    .event-grid { grid-template-columns: 1fr; gap: 14px; }
    .event-card { padding: 8px; }
    .event-body { padding: 12px 8px 4px; }
    .howto { padding: 20px; border-radius: 26px; }

    .event-hero-inner { flex-direction: column; align-items: stretch; padding: 22px 18px; }
    .event-hero-actions .btn-lg { flex: 1 1 100%; }
    .event-hero-actions > .menu-wrap:first-of-type { flex: 1; }
    .event-hero-actions > .menu-wrap:first-of-type .btn { width: 100%; }
    .menu { min-width: 0; width: min(320px, calc(100vw - 32px)); }
    .event-hero-actions .menu { right: auto; left: 0; }
    .event-hero-actions .menu-wrap:last-child .menu { left: auto; right: 0; }

    .dropzone { flex-direction: column; text-align: center; padding: 24px 18px; gap: 14px; }
    .dz-btn { width: 100%; }
    .dz-notes { flex-direction: column; gap: 6px; }
    .queue-list { grid-template-columns: 1fr; max-height: 380px; }
    .section-head .segmented { width: 100%; }
    .segmented button { flex: 1; justify-content: center; padding: 0 8px; }
    .gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .tile { border-radius: 14px; }
    .tile-badge { right: 5px; bottom: 5px; padding: 3px 7px 3px 5px; font-size: 11px; }
    .tile-ph span { font-size: 11px; }
    .tile-ph small { display: none; }

    .modal-backdrop { align-items: end; padding: 0; }
    .modal { max-width: none; border-radius: 28px 28px 0 0; padding: 24px 20px calc(22px + var(--safe-b)); max-height: 92dvh; animation: sheet-in .35s cubic-bezier(.2, .9, .3, 1); }
    .modal-sm { border-radius: 28px 28px 0 0; }
    .modal-head { gap: 12px; margin-bottom: 18px; }
    .modal-badge { width: 44px; height: 44px; border-radius: 14px; }
    .modal-title { font-size: 20px; }
    .field-row { grid-template-columns: 1fr; }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .btn { width: 100%; }
    .tour-foot { flex-direction: column; gap: 18px; }
    .tour-nav { width: 100%; } .tour-nav .btn { flex: 1; }

    .help-pop { left: 12px !important; right: 12px; width: auto; top: auto !important; bottom: calc(96px + var(--safe-b)); }

    .login { padding: 16px 12px; align-items: start; padding-top: max(28px, env(safe-area-inset-top)); }
    .login-card { padding: 28px 22px 22px; border-radius: 30px; }
    .login-title { font-size: 29px; }
    .login-deco { display: none; }

    .acc summary { padding: 15px 16px; font-size: 16.5px; gap: 12px; }
    .acc-ic { width: 36px; height: 36px; }
    .acc-body { padding: 0 18px 18px; }
    .lb-top { padding-left: 10px; padding-right: 10px; }
    .lb-btn { height: 42px; min-width: 42px; padding: 0 10px; }
}

@media (max-width: 380px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat > div span { font-size: 12px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Gyengébb gépeken / régi böngészőn, ahol nincs backdrop-filter: kevésbé áttetsző üveg */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass { background: rgba(255, 255, 255, .78); }
    .glass-strong { background: rgba(255, 255, 255, .94); }
    :root[data-theme="dark"] .glass { background: rgba(24, 28, 64, .86); }
    :root[data-theme="dark"] .glass-strong { background: rgba(24, 28, 64, .96); }
}

/* Fájlválasztó: láthatatlan, de NEM display:none (az iPhone Safari csak így nyitja meg megbízhatóan) */
.file-input-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; clip-path: inset(50%); }
label.btn, label.dropzone, label.bn-primary { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Legördülő menük: szinte átlátszatlan háttér (egymásba ágyazott üvegen a homályosítás nem működik),
   és nyitáskor az alsó menüsor fölé görgetjük őket. */
.menu.glass-strong { background: var(--glass-solid); scroll-margin-bottom: calc(110px + var(--safe-b)); scroll-margin-top: 16px; }
.menu.glass-strong { background: #f6f7ff; }
:root[data-theme="dark"] .menu.glass-strong { background: #171b44; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu.glass-strong { background: #171b44; } }
