:root {
    --bg: #07111f;
    --bg-2: #0d1729;
    --kartya: rgba(10, 20, 38, 0.76);
    --kartya-eros: rgba(13, 24, 44, 0.94);
    --szegely: rgba(118, 144, 255, 0.15);
    --feher: #f6f8ff;
    --szurke: #a4b0cf;
    --lila: #6f5cff;
    --lila-2: #8d7bff;
    --zold: #1ecf86;
    --piros: #ff5c7a;
    --arnyek: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(111, 92, 255, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(0, 174, 255, 0.16), transparent 28%),
        linear-gradient(180deg, var(--bg), #050b15 100%);
    color: var(--feher);
}

.oldal-hatter,
.belepes-hatter {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 90%);
    pointer-events: none;
}

.belepes-oldal .modern-kartya {
    max-width: 520px;
    margin: 0 auto;
}

.belepes-logo {
    max-width: 140px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

.nav-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    padding: 6px;
    background: rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.felso-sav {
    background: rgba(6, 13, 24, 0.78) !important;
    border-bottom: 1px solid var(--szegely);
    backdrop-filter: blur(16px);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--feher) !important;
}

.kis-felirat {
    color: #8c9ed1;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.modern-kartya,
.modern-modal {
    background: linear-gradient(180deg, rgba(14, 24, 44, 0.92), rgba(8, 15, 29, 0.9));
    border: 1px solid var(--szegely);
    border-radius: 24px;
    box-shadow: var(--arnyek);
    backdrop-filter: blur(18px);
}

.modern-alert {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--arnyek);
}

.alert {
    border-radius: 18px;
}

.ikon-doboz,
.ikon-doboz.nagy {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lila), #3c8bff);
    box-shadow: 0 12px 24px rgba(87, 105, 255, 0.35);
    font-size: 1.35rem;
}

.ikon-doboz.nagy {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
}

.form-control-modern,
.input-modern .form-control,
.input-modern .input-group-text {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--feher);
    border-radius: 16px;
    min-height: 52px;
}

.input-modern .input-group-text {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    color: #b8c6ec;
}

.input-modern .form-control {
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-control-modern:focus,
.input-modern .form-control:focus {
    background: rgba(255,255,255,0.06);
    color: var(--feher);
    border-color: rgba(111, 92, 255, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(111, 92, 255, 0.18);
}

.form-control-modern::placeholder,
.input-modern .form-control::placeholder,
textarea::placeholder {
    color: #91a0c8;
}

.form-label {
    color: #d9e1ff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--szurke);
}

.sorok-kozott > * + * {
    margin-top: 1rem;
}

textarea.form-control-modern {
    min-height: 130px;
    resize: vertical;
}

.form-check-input {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

.form-check-input:checked {
    background-color: var(--lila);
    border-color: var(--lila);
}

.form-check-label {
    color: #d8e1ff;
}

.btn-modern {
    border: 0;
    border-radius: 16px;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-modern:hover {
    transform: translateY(-1px);
}

.btn-modern-primary {
    color: white;
    background: linear-gradient(135deg, var(--lila), var(--lila-2));
    box-shadow: 0 14px 26px rgba(111, 92, 255, 0.28);
}

.btn-modern-outline {
    color: #dbe3ff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
}

.btn-modern-outline:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.btn-siker {
    color: white;
    background: linear-gradient(135deg, #119f67, var(--zold));
}

.btn-veszely {
    color: white;
    background: linear-gradient(135deg, #db3d63, var(--piros));
}

.btn-danger {
    border: 0;
    background: linear-gradient(135deg, #cb3158, #ff5c7a);
    box-shadow: 0 14px 26px rgba(255, 92, 122, 0.18);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #bb234b, #f84c6d);
}

.modern-badge {
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #f1f5ff;
    font-weight: 600;
}

.modern-badge.nagy {
    font-size: 0.95rem;
}

.modern-tabla {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.02);
    --bs-table-border-color: rgba(255,255,255,0.08);
    margin-bottom: 0;
}

.modern-tabla thead th {
    color: #9fb1e4;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom-width: 1px;
}

.modern-tabla tbody td {
    vertical-align: middle;
}

/* =========================
   STICKY ADMIN PANEL
========================= */
.admin-sticky-panel {
    position: sticky;
    top: 92px;
}

/* =========================
   ESEMÉNY KÉP / KÁRTYA
========================= */
.esemeny-kep-fejlec {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.esemeny-kep-fejlec.kisebb {
    height: 120px;
}

.kep-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(5, 10, 18, 0.8));
    z-index: 1;
}

.esemeny-kep-fejlec::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.9s ease;
    z-index: 0;
}

.esemeny-kep-fejlec > * {
    position: relative;
    z-index: 2;
}

.tulfolyas-rejtett {
    overflow: hidden;
}

.esemeny-kartya-kicsi {
    min-height: 100%;
    position: relative;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
    will-change: transform, box-shadow;
}

.esemeny-kartya-kicsi:hover {
    transform: translateY(-6px);
}

.esemeny-kartya-kicsi:hover .esemeny-kep-fejlec::before {
    transform: scale(1.07);
}

.esemeny-kartya-kicsi .p-4 {
    padding: 0.95rem !important;
}

.esemeny-kartya-kicsi h3 {
    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 700;
}

.esemeny-kartya-kicsi .modern-badge.nagy {
    font-size: 0.72rem;
    padding: 0.42rem 0.65rem;
    white-space: nowrap;
}

.esemeny-kartya-kicsi .btn {
    font-size: 0.8rem;
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
}

.esemeny-kartya-kicsi .btn i {
    font-size: 0.85rem;
}

.esemeny-kartya-kicsi .h6 {
    font-size: 0.9rem;
}

.esemeny-kartya-kicsi .text-secondary.small,
.esemeny-kartya-kicsi small {
    font-size: 0.74rem !important;
}

.esemeny-kartya-kicsi .resztvevo-doboz {
    padding: 0.75rem;
}

.esemeny-kartya-kicsi .resztvevo-sor .fw-semibold {
    font-size: 0.86rem;
    line-height: 1.25;
}

.esemeny-kartya-kicsi .row.g-2 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

/* =========================
   ÁLLAPOT SZÍNEK
========================= */
.allapot-jelzo {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    line-height: 1;
}

.allapot-jelzo.zold {
    background: rgba(30, 207, 134, 0.18);
    color: #b9ffd9;
}

.allapot-jelzo.kek {
    background: rgba(60, 139, 255, 0.18);
    color: #c8ddff;
}

.allapot-jelzo.szurke {
    background: rgba(180, 188, 214, 0.14);
    color: #dbe1f1;
}

.allapot-aktiv {
    border-color: rgba(30, 207, 134, 0.20);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(30, 207, 134, 0.05),
        0 0 30px rgba(30, 207, 134, 0.10);
}

.allapot-aktiv:hover {
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(30, 207, 134, 0.12),
        0 0 38px rgba(30, 207, 134, 0.16);
}

.allapot-kozelgo {
    border-color: rgba(60, 139, 255, 0.22);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(60, 139, 255, 0.05),
        0 0 30px rgba(60, 139, 255, 0.10);
}

.allapot-kozelgo:hover {
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(60, 139, 255, 0.13),
        0 0 38px rgba(60, 139, 255, 0.18);
}

.allapot-befejezodott {
    border-color: rgba(180, 188, 214, 0.16);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(180, 188, 214, 0.04),
        0 0 24px rgba(180, 188, 214, 0.07);
}

.allapot-befejezodott:hover {
    box-shadow:
        0 24px 66px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(180, 188, 214, 0.09),
        0 0 30px rgba(180, 188, 214, 0.10);
}

.esemeny-inaktiv {
    opacity: 0.78;
    filter: grayscale(14%);
}

.esemeny-inaktiv .esemeny-kep-fejlec::before {
    filter: grayscale(30%);
}

.esemeny-inaktiv:hover {
    transform: translateY(-3px);
}

/* =========================
   BADGE SOR
========================= */
.kartya-badge-sor {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - 20px);
}

.kartya-badge-sor .allapot-jelzo {
    position: static;
    right: auto;
    top: auto;
    margin: 0;
}

.muvelet-badge,
.muvelet-badge-form .muvelet-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    transition: 0.2s ease;
    cursor: pointer;
}

.muvelet-badge:hover,
.muvelet-badge-form .muvelet-badge:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.szerkesztes-badge {
    background: rgba(60, 139, 255, 0.22);
    color: #dcebff;
}

.szerkesztes-badge:hover {
    background: rgba(60, 139, 255, 0.32);
    color: #ffffff;
}

.torles-badge {
    background: rgba(255, 92, 122, 0.22);
    color: #ffe3ea;
    border: 1px solid rgba(255,255,255,0.16);
}

.torles-badge:hover {
    background: rgba(255, 92, 122, 0.34);
    color: #ffffff;
}

.muvelet-badge-form {
    margin: 0;
}

.muvelet-badge-form button {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 92, 122, 0.22);
}

/* =========================
   SZÖVEGEK / LISTÁK
========================= */
.szovegikon-sor {
    color: #c7d2f3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.leiras-doboz {
    white-space: pre-line;
    line-height: 1.55;
}

.leiras-rovid {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 64px;
    font-size: 0.87rem;
    line-height: 1.5;
}

.resztvevo-doboz {
    border-radius: 16px;
    padding: 0.85rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.resztvevo-lista {
    display: grid;
    gap: 0.65rem;
}

.resztvevo-lista-korlatozott {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.resztvevo-lista-korlatozott::-webkit-scrollbar {
    width: 8px;
}

.resztvevo-lista-korlatozott::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
}

.resztvevo-lista-korlatozott::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.14);
    border-radius: 999px;
}

.resztvevo-sor {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}

.resztvevo-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lila), #19a4ff);
    font-weight: 800;
    font-size: 0.82rem;
}

.aktualis-kep {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}

.aktualis-kep-cim {
    font-size: 0.9rem;
    color: #c7d3f4;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-content.modern-modal {
    background: linear-gradient(180deg, rgba(14, 23, 42, 0.97), rgba(8, 15, 29, 0.97));
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.egynapos-kapcsolo-doboz {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    border-radius: 18px;
    padding: 0.9rem 1rem;
}

.egynapos-kapcsolo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    min-height: 42px;
}

.egynapos-kapcsolo .form-check-input {
    width: 3rem;
    height: 1.6rem;
    margin-left: 0 !important;
    margin-top: 0 !important;
    cursor: pointer;
    background-color: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: none;
}

.egynapos-kapcsolo .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 92, 255, 0.18);
    border-color: rgba(111, 92, 255, 0.55);
}

.egynapos-kapcsolo .form-check-input:checked {
    background-color: var(--lila);
    border-color: var(--lila);
}

.egynapos-kapcsolo .form-check-label {
    color: var(--feher);
    font-weight: 700;
    cursor: pointer;
    margin: 0;
    font-size: 0.98rem;
}

.egynapos-segedszoveg {
    margin-top: 0.45rem;
    color: var(--szurke);
    font-size: 0.85rem;
    line-height: 1.45;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1399.98px) {
    .esemeny-kep-fejlec.kisebb {
        height: 115px;
    }

    .esemeny-kartya-kicsi .p-4 {
        padding: 0.9rem !important;
    }
}

@media (max-width: 1199.98px) {
    .admin-sticky-panel {
        position: static;
        top: auto;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .modern-kartya {
        border-radius: 20px;
    }

    .esemeny-kep-fejlec {
        height: 190px;
    }

    .esemeny-kep-fejlec.kisebb {
        height: 140px;
    }
}

@media (max-width: 991.98px) {
    .nav-logo {
        width: 46px;
        height: 46px;
    }

    .esemeny-kep-fejlec.kisebb {
        height: 150px;
    }

    .esemeny-kartya-kicsi .btn {
        font-size: 0.84rem;
    }

    .resztvevo-lista-korlatozott {
        max-height: 180px;
    }
}

@media (max-width: 767.98px) {
    .belepes-logo {
        max-width: 110px;
    }

    .felso-sav .container-fluid {
        gap: 0.75rem;
    }

    .modern-kartya,
    .modern-modal {
        border-radius: 18px;
    }

    .esemeny-kep-fejlec,
    .esemeny-kep-fejlec.kisebb {
        height: 170px;
    }

    .esemeny-kartya-kicsi .p-4 {
        padding: 1rem !important;
    }

    .leiras-rovid {
        -webkit-line-clamp: 4;
        min-height: auto;
    }

    .resztvevo-lista-korlatozott {
        max-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 0.95rem;
    }

    .kis-felirat {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .nav-logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .btn-modern {
        padding: 0.75rem 1rem;
    }

    .esemeny-kep-fejlec,
    .esemeny-kep-fejlec.kisebb {
        height: 155px;
    }

    .resztvevo-sor {
        padding: 0.55rem 0.6rem;
    }

    .resztvevo-avatar {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.78rem;
    }

    .kartya-badge-sor {
        gap: 0.35rem;
    }

    .muvelet-badge,
    .muvelet-badge-form .muvelet-badge {
        padding: 0.42rem 0.62rem;
        font-size: 0.68rem;
    }

    .muvelet-badge span,
    .muvelet-badge-form .muvelet-badge span {
        display: none;
    }

    .esemeny-kartya-kicsi:hover {
        transform: translateY(-2px);
    }
}