:root {
    --bg: #05070b;
    --panel: rgba(15, 18, 25, .82);
    --panel2: rgba(22, 27, 36, .86);
    --line: rgba(255,255,255,.09);
    --text: #f5f6f8;
    --muted: #8f98a8;
    --red: #d32626;
    --red2: #ff3b3b;
    --dark-red: #681111;
    --green: #27c46b;
    --yellow: #f5b942;
    --shadow: 0 25px 90px rgba(0,0,0,.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background:
        linear-gradient(rgba(5, 8, 12, 0.86), rgba(5, 8, 12, 0.92)),
        radial-gradient(circle at top right, rgba(211,47,47,.18), transparent 35%),
        url("/static/img/bcjs-bg.png") center center / cover no-repeat fixed;
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* APP LAYOUT */

.app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 20px;
    background: rgba(4, 7, 12, .88);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--red2), var(--dark-red));
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 0 35px rgba(211,38,38,.45);
}

.brand-mark.large {
    width: 78px;
    height: 78px;
    font-size: 26px;
    margin: auto;
}

.brand h1 {
    margin: 0;
    letter-spacing: 2px;
}

.brand span {
    color: var(--muted);
    font-size: 12px;
}

.system-status {
    margin-bottom: 24px;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(39, 196, 107, .08);
    border: 1px solid rgba(39, 196, 107, .22);
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px rgba(39, 196, 107, .8);
}

.system-status strong {
    display: block;
    font-size: 13px;
}

.system-status small {
    color: var(--green);
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-menu {
    flex: 1;
}

.nav-title {
    margin: 28px 0 9px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    border-radius: 14px;
    color: #dce1ea;
    margin-bottom: 7px;
    transition: .2s ease;
    border: 1px solid transparent;
}

.nav-item span {
    width: 22px;
    display: inline-flex;
    justify-content: center;
}

.nav-item:hover {
    background: rgba(211,38,38,.14);
    border-color: rgba(211,38,38,.35);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 0 25px rgba(211,38,38,.12);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(211,38,38,.25), rgba(255,255,255,.04));
    border-color: rgba(255,59,59,.45);
    color: #fff;
    box-shadow: 0 0 30px rgba(211,38,38,.16);
}

.profile-box {
    margin-top: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
    display: flex;
    gap: 13px;
    align-items: center;
    box-shadow: var(--shadow);
}

.profile-box span,
.profile-box small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.profile-info em {
    display: inline-block;
    margin-top: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    background: rgba(211,38,38,.16);
    color: #ffb3b3;
    border: 1px solid rgba(211,38,38,.22);
}

.avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, #ff6868, transparent 28%),
        linear-gradient(135deg, #222936, var(--red));
    display: inline-grid;
    place-items: center;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.14);
    flex: 0 0 auto;
    box-shadow: 0 0 25px rgba(211,38,38,.25);
}

.avatar.mini {
    width: 38px;
    height: 38px;
    font-size: 12px;
}

.main {
    padding: 30px;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 18px;
}

.topbar h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: .5px;
}

.topbar p {
    margin: 7px 0 0;
    color: var(--muted);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-user {
    text-align: right;
}

.top-user span {
    display: block;
    font-weight: 800;
}

.top-user small {
    color: var(--muted);
}

.page-content {
    animation: pageFade .28s ease both;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* COMMON COMPONENTS */

.card,
.panel {
    background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.card {
    padding: 24px;
    transition: .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(211,38,38,.35);
    box-shadow: 0 25px 90px rgba(211,38,38,.13);
}

.card span {
    color: var(--muted);
    display: block;
    margin-bottom: 12px;
}

.card strong {
    font-size: 38px;
}

.panel {
    padding: 24px;
    margin-bottom: 24px;
}

.panel h3 {
    margin-top: 0;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.panel-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.empty {
    color: var(--muted);
    padding: 15px 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #ff8f8f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.btn {
    border: 0;
    border-radius: 13px;
    padding: 12px 17px;
    color: white;
    background: linear-gradient(135deg, var(--red2), #8d1515);
    cursor: pointer;
    font-weight: 800;
    display: inline-block;
    transition: .18s ease;
    box-shadow: 0 10px 28px rgba(211,38,38,.22);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn.ghost {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    box-shadow: none;
}

.btn.small {
    padding: 8px 11px;
    font-size: 13px;
}

.btn.warning {
    background: linear-gradient(135deg, #d28b18, #81520d);
}

.btn.danger {
    background: linear-gradient(135deg, #b51e1e, #5f1010);
}

.btn.full {
    width: 100%;
    margin-top: 15px;
}

.messages {
    margin-bottom: 16px;
}

.message {
    padding: 12px 14px;
    border-radius: 13px;
    margin-bottom: 8px;
    background: rgba(255,255,255,.08);
}

.message.success {
    border: 1px solid rgba(37,196,111,.5);
}

.message.error {
    border: 1px solid rgba(255,59,59,.5);
}

.message.warning {
    border: 1px solid rgba(247,183,49,.5);
}

/* FORMS */

.form-panel {
    max-width: 820px;
}

.form-grid,
.auth-form {
    display: grid;
    gap: 13px;
}

label {
    color: var(--muted);
    font-size: 14px;
}

input,
textarea,
select {
    width: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 14px;
    color: white;
    outline: none;
    transition: .18s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,.35);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(255,59,59,.55);
    box-shadow: 0 0 0 4px rgba(211,38,38,.12);
}

select option {
    background: #151923;
    color: white;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.actions,
.inline-actions,
.staff-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* AUTH */

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(211,38,38,.26), transparent 35%),
        linear-gradient(135deg, #030509, #121722 55%, #05070b);
}

.auth-panel {
    width: 100%;
    max-width: 470px;
    padding: 36px;
    border-radius: 30px;
    background: rgba(10, 14, 20, .82);
    border: 1px solid rgba(255,255,255,.11);
    box-shadow: 0 35px 110px rgba(0,0,0,.65);
    backdrop-filter: blur(22px);
    animation: authPop .35s ease forwards;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(135deg, rgba(255,59,59,.28), transparent 32%, rgba(255,255,255,.05));
    pointer-events: none;
}

.auth-panel > * {
    position: relative;
    z-index: 1;
}

.auth-brand {
    text-align: center;
    margin-bottom: 26px;
}

.auth-brand h1 {
    margin-bottom: 6px;
}

.auth-brand p,
.switch {
    color: var(--muted);
}

.auth-brand small {
    color: #ffb3b3;
    letter-spacing: 1px;
}

.switch {
    text-align: center;
}

.switch a {
    color: var(--red2);
    font-weight: 900;
}

.auth-enter {
    animation: authPop .35s ease forwards;
}

.auth-leave {
    animation: authOut .26s ease forwards;
}

@keyframes authPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes authOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: translateY(-14px) scale(.97);
        filter: blur(8px);
    }
}

/* DASHBOARD */

.hero {
    min-height: 210px;
    padding: 34px;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.22)),
        radial-gradient(circle at 82% 30%, rgba(255,59,59,.32), transparent 32%),
        linear-gradient(135deg, #151b25, #080b10);
    border: 1px solid var(--line);
    display: flex;
    align-items: end;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "Olaj, rozsda és szakértelem.";
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 460px;
    text-align: right;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .5px;
    color: rgba(255,255,255,.06);
    text-transform: none;
}

.hero h1 {
    margin: 0;
    font-size: 39px;
}

.hero p {
    color: var(--muted);
}

.dashboard-hero {
    min-height: 230px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card span {
    font-weight: 800;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1.7fr .9fr;
    gap: 24px;
    align-items: start;
}

.announcement-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.announcement-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    transition: .18s ease;
}

.announcement-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,59,59,.32);
    background: rgba(211,38,38,.08);
}

.announcement-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(211,38,38,.15);
    border: 1px solid rgba(211,38,38,.25);
    flex: 0 0 auto;
}

.announcement-card strong {
    display: block;
    margin-bottom: 5px;
}

.announcement-card p {
    margin: 0 0 8px;
    color: #cbd1dc;
    line-height: 1.45;
}

.announcement-card small {
    color: var(--muted);
}

.quick-panel {
    position: sticky;
    top: 28px;
}

.quick-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.quick-action {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 15px;
    border-radius: 17px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    transition: .18s ease;
}

.quick-action:hover {
    transform: translateX(4px);
    border-color: rgba(255,59,59,.35);
    background: rgba(211,38,38,.1);
}

.quick-action span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
}

.quick-action strong {
    display: block;
}

.quick-action small {
    color: var(--muted);
}

.mini-member-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-member {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border-radius: 17px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
}

.mini-member strong {
    display: block;
}

.mini-member small {
    color: var(--muted);
}

.mini-member em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

/* TABLES */

.table {
    width: 100%;
    overflow-x: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px 10px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.table-head {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-cell {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* MEMBERS */

.members-header {
    margin-bottom: 22px;
}

.members-header h1 {
    margin: 0;
    font-size: 38px;
}

.members-header p {
    color: var(--muted);
    margin: 8px 0 0;
}

.member-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.mini-stat {
    padding: 20px;
}

.mini-stat strong {
    font-size: 32px;
}

.member-toolbar {
    margin-bottom: 22px;
}

.toolbar-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 16px;
}

.member-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.staff-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: .2s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,59,59,.35);
    box-shadow: 0 28px 90px rgba(211,38,38,.13);
}

.staff-glow {
    position: absolute;
    right: -70px;
    top: -70px;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(211,38,38,.28), transparent 70%);
    pointer-events: none;
}

.staff-head {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.staff-avatar {
    width: 64px;
    height: 64px;
    font-size: 18px;
}

.staff-title h3 {
    margin: 0;
    font-size: 21px;
}

.staff-title p {
    margin: 5px 0 10px;
    color: var(--muted);
}

.position-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid var(--line);
}

.position-badge.director {
    background: rgba(255,59,59,.16);
    color: #ffb3b3;
    border-color: rgba(255,59,59,.35);
}

.position-badge.manager {
    background: rgba(245,185,66,.13);
    color: #ffd98a;
    border-color: rgba(245,185,66,.28);
}

.position-badge.member {
    background: rgba(255,255,255,.07);
    color: #dce2ec;
}

.staff-details {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.staff-details div {
    padding: 13px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
}

.staff-details span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.staff-details strong {
    font-size: 14px;
}

.staff-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 17px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
}

.metric > span {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
}

.metric strong {
    display: block;
    font-size: 22px;
}

.metric small {
    color: var(--muted);
}

.warning-metric {
    border-color: rgba(245,185,66,.22);
}

.staff-note {
    padding: 14px;
    border-radius: 16px;
    background: rgba(245,185,66,.08);
    border: 1px solid rgba(245,185,66,.22);
    margin-bottom: 16px;
}

.staff-note strong {
    color: #ffd98a;
}

.staff-note p {
    margin: 6px 0 0;
    color: #d6d0c2;
}

.staff-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.staff-actions form {
    margin: 0;
}

/* MODAL */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-backdrop.show {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 460px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(12, 16, 23, .96);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 35px 120px rgba(0,0,0,.7);
    animation: modalPop .22s ease both;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.modal-head h3 {
    margin: 0;
}

.modal-head button {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: white;
    cursor: pointer;
    font-size: 22px;
}

.modal-text {
    color: var(--muted);
    margin-bottom: 16px;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* MEMBER PROFILE */

.profile-page {
    display: grid;
    gap: 24px;
}

.profile-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    font-size: 28px;
}

.profile-main h1 {
    margin: 0;
    font-size: 38px;
}

.profile-main p {
    margin: 6px 0 10px;
    color: var(--muted);
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    align-items: start;
}

.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.profile-data-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
}

.profile-data-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.profile-data-grid strong {
    color: white;
}

.profile-summary {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.timeline {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
}

.timeline-dot {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.timeline-content {
    flex: 1;
}

.timeline-item.positive {
    border-color: rgba(39,196,107,.25);
}

.timeline-item.positive .timeline-dot {
    background: rgba(39,196,107,.14);
    color: #8dffbd;
}

.timeline-item.negative {
    border-color: rgba(245,185,66,.28);
}

.timeline-item.negative .timeline-dot {
    background: rgba(245,185,66,.13);
    color: #ffd98a;
}

.timeline-item strong {
    display: block;
    margin-bottom: 6px;
}

.timeline-item p {
    margin: 0 0 8px;
    color: #d8dde7;
    line-height: 1.45;
}

.timeline-item small {
    color: var(--muted);
}

.timeline-item form {
    margin: 0;
}

.icon-delete {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 59, 59, .25);
    background: rgba(255, 59, 59, .08);
    color: #ffb3b3;
    cursor: pointer;
    transition: .18s ease;
    font-size: 15px;
}

.icon-delete:hover {
    background: rgba(255, 59, 59, .18);
    border-color: rgba(255, 59, 59, .45);
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(255, 59, 59, .18);
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .quick-panel {
        position: static;
    }

    .member-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .toolbar-grid {
        grid-template-columns: 1fr;
    }
}

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

    .sidebar {
        position: relative;
        height: auto;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-row {
        grid-template-columns: 1fr;
    }

    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-data-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
    }
}

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

    .member-stats {
        grid-template-columns: 1fr;
    }

    .staff-details,
    .staff-metrics {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 16px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero::after {
        font-size: 54px;
        right: 18px;
    }

    .member-card-grid {
        grid-template-columns: 1fr;
    }
}


/* EDIT MEMBER PAGE */

.edit-member-page {
    display: grid;
    gap: 24px;
}

.edit-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.edit-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.edit-avatar {
    width: 86px;
    height: 86px;
    font-size: 27px;
}

.edit-hero h1 {
    margin: 0;
    font-size: 38px;
}

.edit-hero p {
    margin: 6px 0 10px;
    color: var(--muted);
}

.edit-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.edit-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.edit-summary-card {
    position: sticky;
    top: 28px;
}

.edit-summary-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    margin: 18px 0;
}

.edit-summary-profile strong {
    display: block;
}

.edit-summary-profile span {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.edit-summary-stats {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.edit-info-list {
    display: grid;
    gap: 10px;
}

.edit-info-list div {
    padding: 13px;
    border-radius: 15px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
}

.edit-info-list span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.edit-info-list strong {
    color: #fff;
    font-size: 14px;
}

.edit-warning-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(245,185,66,.08);
    border: 1px solid rgba(245,185,66,.25);
}

.edit-warning-box strong {
    color: #ffd98a;
}

.edit-warning-box p {
    margin: 7px 0 0;
    color: #d6d0c2;
    font-size: 13px;
    line-height: 1.45;
}

.edit-form {
    display: grid;
    gap: 22px;
    margin-top: 20px;
}

.form-section {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--line);
}

.form-section h4 {
    margin: 0 0 15px;
    font-size: 15px;
    color: #ffb3b3;
    text-transform: uppercase;
    letter-spacing: .9px;
}

.edit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.edit-form-grid.single {
    grid-template-columns: 1fr;
}

.field {
    display: grid;
    gap: 7px;
}

.field small {
    color: var(--muted);
    font-size: 12px;
}

.field input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.edit-submit-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .edit-layout {
        grid-template-columns: 1fr;
    }

    .edit-summary-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .edit-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .edit-form-grid {
        grid-template-columns: 1fr;
    }
}

/* SIDEBAR PROFILE VIEW BUTTON */

.sidebar-profile-box {
    display: grid;
    gap: 14px;
}

.sidebar-profile-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.profile-view-btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 13px;
    background: rgba(211,38,38,.14);
    border: 1px solid rgba(255,59,59,.28);
    color: #ffb3b3;
    font-size: 13px;
    font-weight: 900;
    transition: .18s ease;
}

.profile-view-btn:hover {
    background: rgba(255,59,59,.2);
    border-color: rgba(255,59,59,.45);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(211,38,38,.18);
}

/* DISCORD AVATAR */

.avatar-img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    border: 1px solid rgba(255,255,255,.14);
    flex: 0 0 auto;
    box-shadow: 0 0 25px rgba(211,38,38,.25);
    background: #171c26;
}

.avatar-img.mini {
    width: 38px;
    height: 38px;
}

.avatar-img.staff-avatar {
    width: 64px;
    height: 64px;
}

.avatar-img.profile-avatar {
    width: 88px;
    height: 88px;
}

.avatar-img.edit-avatar {
    width: 86px;
    height: 86px;
}

/* DASHBOARD UPDATE */

.home-grid {
    display: grid;
    grid-template-columns: 1.55fr .85fr;
    gap: 24px;
    align-items: start;
}

.home-grid.secondary {
    grid-template-columns: 1.1fr .9fr;
}

.announcements-panel,
.events-panel {
    min-height: 320px;
}

.announcement-content {
    flex: 1;
}

.announcement-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.announcement-topline form {
    margin: 0;
}

.online-panel {
    position: sticky;
    top: 28px;
}

.online-users-list {
    display: grid;
    gap: 11px;
    margin-top: 18px;
}

.online-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 17px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    transition: .18s ease;
}

.online-user-card:hover {
    transform: translateX(4px);
    border-color: rgba(39,196,107,.28);
    background: rgba(39,196,107,.08);
}

.online-avatar {
    width: 42px !important;
    height: 42px !important;
    font-size: 13px;
}

.online-user-card strong {
    display: block;
    font-size: 14px;
}

.online-user-card small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
    font-size: 12px;
}

.online-empty {
    margin: 0;
}

.event-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.event-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 15px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
}

.event-type {
    width: max-content;
    height: max-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(211,38,38,.14);
    border: 1px solid rgba(255,59,59,.24);
    color: #ffb3b3;
    font-size: 12px;
    font-weight: 900;
}

.event-item strong {
    display: block;
}

.event-item p {
    margin: 6px 0 7px;
    color: #d8dde7;
    line-height: 1.45;
}

.event-item small {
    color: var(--muted);
}

.latest-members-panel .mini-member {
    color: inherit;
}

@media (max-width: 1150px) {
    .home-grid,
    .home-grid.secondary {
        grid-template-columns: 1fr;
    }

    .online-panel {
        position: static;
    }
}

@media (max-width: 650px) {
    .event-item {
        grid-template-columns: 1fr;
    }
}
/* FŐOLDAL KÁRTYÁK EGYSÉGES MAGASSÁG + BELSŐ GÖRGETÉS */

/* A főoldali rácsok elemei legyenek egy magasságban */
.home-grid,
.home-grid.secondary {
    align-items: stretch !important;
}

/* Felső sor: közlemények + elérhető felhasználók */
.announcements-panel,
.online-panel {
    height: 430px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Alsó sor: események + legutóbb csatlakozott tagok */
.events-panel,
.latest-members-panel {
    height: 520px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Panel fejlécek ne nyomódjanak össze */
.announcements-panel .panel-head,
.online-panel .panel-head,
.events-panel .panel-head,
.latest-members-panel .panel-head {
    flex: 0 0 auto;
}

/* Listák töltsék ki a maradék helyet, és belül görögjenek */
.announcement-list,
.online-users-list,
.event-list,
.mini-member-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 8px !important;
}

/* Ne legyen fura extra margó */
.announcement-list,
.online-users-list,
.event-list,
.mini-member-list {
    margin-bottom: 0 !important;
}

/* Szebb görgetősáv minden főoldali kártyán */
.announcement-list::-webkit-scrollbar,
.online-users-list::-webkit-scrollbar,
.event-list::-webkit-scrollbar,
.mini-member-list::-webkit-scrollbar {
    width: 7px;
}

.announcement-list::-webkit-scrollbar-track,
.online-users-list::-webkit-scrollbar-track,
.event-list::-webkit-scrollbar-track,
.mini-member-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
}

.announcement-list::-webkit-scrollbar-thumb,
.online-users-list::-webkit-scrollbar-thumb,
.event-list::-webkit-scrollbar-thumb,
.mini-member-list::-webkit-scrollbar-thumb {
    background: rgba(255,59,59,.38);
    border-radius: 999px;
}

.announcement-list::-webkit-scrollbar-thumb:hover,
.online-users-list::-webkit-scrollbar-thumb:hover,
.event-list::-webkit-scrollbar-thumb:hover,
.mini-member-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,59,59,.6);
}

/* Reszponzív nézetben ne legyen túl magas fix kártya */
@media (max-width: 1150px) {
    .announcements-panel,
    .online-panel,
    .events-panel,
    .latest-members-panel {
        height: 430px !important;
    }
}
/* NOTIFICATION SYSTEM */

.notification-wrap {
    position: relative;
}

.notification-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    font-size: 19px;
    transition: .18s ease;
}

.notification-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255,59,59,.42);
    background: rgba(211,38,38,.13);
    box-shadow: 0 0 24px rgba(211,38,38,.16);
}

.notification-count {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--red2);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    border: 2px solid #070a0f;
}

.notification-dropdown {
    position: absolute;
    top: 58px;
    right: 0;
    width: 390px;
    max-width: calc(100vw - 32px);
    padding: 16px;
    border-radius: 22px;
    background: rgba(10, 14, 20, .96);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 35px 120px rgba(0,0,0,.7);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: none;
}

.notification-wrap.open .notification-dropdown {
    display: block;
    animation: notificationPop .18s ease both;
}

@keyframes notificationPop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    margin-bottom: 13px;
}

.notification-head strong {
    font-size: 16px;
}

.notification-head small {
    color: var(--muted);
}

.notification-list {
    display: grid;
    gap: 10px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 7px;
}

.notification-item {
    padding: 13px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
}

.notification-item.unread {
    border-color: rgba(255,59,59,.38);
    background: rgba(211,38,38,.1);
}

.notification-type {
    width: max-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(211,38,38,.14);
    border: 1px solid rgba(255,59,59,.22);
    color: #ffb3b3;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 8px;
}

.notification-item strong {
    display: block;
    margin-bottom: 6px;
}

.notification-item p {
    margin: 0 0 7px;
    color: #d8dde7;
    line-height: 1.4;
    font-size: 13px;
}

.notification-item small {
    color: var(--muted);
    font-size: 12px;
}

.notification-empty {
    margin: 0;
    color: var(--muted);
    padding: 12px 0;
}

.notification-list::-webkit-scrollbar {
    width: 7px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255,59,59,.38);
    border-radius: 999px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,59,59,.6);
}

.profile-logout-btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 13px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    color: #dce2ec;
    font-size: 13px;
    font-weight: 900;
    transition: .18s ease;
}

.profile-logout-btn:hover {
    background: rgba(255,59,59,.12);
    border-color: rgba(255,59,59,.35);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .notification-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 32px);
    }

    .notification-wrap.open .notification-dropdown {
        animation: none;
    }
}
/* TAGOK FEJLETT FUNKCIÓK */

.toolbar-grid.advanced {
    grid-template-columns: 1.35fr .75fr .75fr .75fr;
}

.avatar-status-wrap {
    position: relative;
    width: max-content;
    height: max-content;
    flex: 0 0 auto;
}

.status-indicator {
    position: absolute;
    right: 1px;
    bottom: 2px;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 3px solid #151923;
    background: #7d8695;
    box-shadow: 0 0 14px rgba(0,0,0,.45);
}

.status-indicator.online {
    background: var(--green);
    box-shadow: 0 0 14px rgba(39,196,107,.75);
}

.status-indicator.offline {
    background: #747b88;
}

.status-indicator.idle {
    background: var(--yellow);
    box-shadow: 0 0 14px rgba(245,185,66,.7);
}

.status-indicator.danger {
    background: var(--red2);
    box-shadow: 0 0 14px rgba(255,59,59,.75);
}

.attention-badge {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245,185,66,.13);
    border: 1px solid rgba(245,185,66,.35);
    color: #ffd98a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .4px;
}

.missing-info-box {
    margin-top: 16px;
    padding: 12px 13px;
    border-radius: 15px;
    background: rgba(245,185,66,.08);
    border: 1px solid rgba(245,185,66,.24);
}

.missing-info-box strong {
    display: block;
    color: #ffd98a;
    margin-bottom: 5px;
    font-size: 13px;
}

.missing-info-box span {
    color: #d8d1c0;
    font-size: 13px;
}

.timeline-item.rank {
    border-color: rgba(95,150,255,.28);
}

.timeline-item.rank .timeline-dot {
    background: rgba(95,150,255,.13);
    color: #a9c4ff;
}

.restricted-profile-note {
    border-color: rgba(245,185,66,.22);
    background: rgba(245,185,66,.055);
}

.restricted-profile-note p {
    color: var(--muted);
    margin-bottom: 0;
}

.inactive-card {
    opacity: .9;
}

@media (max-width: 1200px) {
    .toolbar-grid.advanced {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .toolbar-grid.advanced {
        grid-template-columns: 1fr;
    }

    .attention-badge {
        position: static;
        width: max-content;
        margin-bottom: 14px;
    }
}
/* MEMBER PROFILE GRID FIX */

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.profile-data-grid > div {
    min-width: 0;
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
}

.profile-data-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.profile-data-grid strong {
    display: block;
    font-size: 16px;
    line-height: 1.4;
    color: white;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.break-text {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.profile-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.profile-summary .metric {
    min-width: 0;
}

.timeline {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
}

.timeline-content {
    min-width: 0;
}

.timeline-content strong,
.timeline-content p,
.timeline-content small {
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .profile-data-grid {
        grid-template-columns: 1fr;
    }

    .profile-summary {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
}
/* MEMBERS KÁRTYA IGAZÍTÁS FIX */

.staff-card {
    display: flex;
    flex-direction: column;
}

.card-top-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 28px;
    margin-bottom: 10px;
}

.attention-badge {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245,185,66,.13);
    border: 1px solid rgba(245,185,66,.35);
    color: #ffd98a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .3px;
    white-space: nowrap;
}

.placeholder-badge {
    visibility: hidden;
}

.staff-head {
    min-height: 86px;
    align-items: flex-start;
}

.staff-title {
    min-width: 0;
    flex: 1 1 auto;
}

.staff-title h3,
.staff-title p {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.missing-info-box {
    margin-top: 16px;
    min-height: 74px;
    padding: 12px 13px;
    border-radius: 15px;
    background: rgba(245,185,66,.08);
    border: 1px solid rgba(245,185,66,.24);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.missing-info-box strong {
    display: block;
    color: #ffd98a;
    margin-bottom: 5px;
    font-size: 13px;
}

.missing-info-box span {
    color: #d8d1c0;
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.empty-missing-box {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

.empty-missing-box strong,
.empty-missing-box span {
    visibility: hidden;
}
/* TAGKÁRTYA ÜRES HELYEK JAVÍTÁSA */

/* A figyelmet igényel badge csak akkor foglal helyet, ha tényleg van */
.card-top-meta {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    min-height: 0 !important;
    margin: 0 0 8px 0 !important;
}

.card-top-meta:empty {
    display: none !important;
}

/* Ne legyen láthatatlan placeholder */
.placeholder-badge {
    display: none !important;
}

/* A badge ne lógjon bele a névbe */
.attention-badge {
    position: static !important;
    width: max-content !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    background: rgba(245,185,66,.13) !important;
    border: 1px solid rgba(245,185,66,.35) !important;
    color: #ffd98a !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .2px !important;
    white-space: nowrap !important;
}

/* Ha nincs hiányos adat, ne legyen üres doboz */
.empty-missing-box {
    display: none !important;
}

.missing-info-box:empty {
    display: none !important;
}

/* A hiányos adatok doboz ne legyen fix nagy, csak amennyi kell */
.missing-info-box {
    min-height: 0 !important;
    margin-top: 14px !important;
    padding: 11px 12px !important;
}

/* A fejléc maradjon kompakt */
.staff-head {
    min-height: 0 !important;
}

/* Ne maradjon felesleges üres hely a kártyákban */
.staff-card {
    display: flex !important;
    flex-direction: column !important;
}

.staff-details {
    margin-top: 16px !important;
}
/* FIGYELMET IGÉNYEL BADGE A RANG/BEOSZTÁS MELLETT */

/* Régi felső badge/placeholder ne foglaljon helyet */
.card-top-meta,
.placeholder-badge,
.empty-missing-box {
    display: none !important;
}

/* Tagkártyán a hiányos adatok doboz ne jelenjen meg */
.staff-card > .missing-info-box {
    display: none !important;
}

/* A beosztás és a figyelmet igényel badge egy sorban legyen */
.badge-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.attention-badge.inline {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: max-content !important;
    max-width: 100%;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: rgba(245,185,66,.13) !important;
    border: 1px solid rgba(245,185,66,.35) !important;
    color: #ffd98a !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .2px !important;
    white-space: nowrap !important;
}

/* A kártyák ne tartsanak fenn üres helyet */
.staff-head {
    min-height: 0 !important;
}

.staff-details {
    margin-top: 16px !important;
}

/* Profiloldali hiányos adatok panel */
.profile-missing-panel {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-color: rgba(245,185,66,.28) !important;
    background: rgba(245,185,66,.06) !important;
    margin-bottom: 22px;
}

.profile-missing-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(245,185,66,.16);
    border: 1px solid rgba(245,185,66,.35);
    color: #ffd98a;
    font-weight: 900;
}

.profile-missing-panel h3 {
    margin-bottom: 5px;
}

.profile-missing-panel p {
    margin: 0 0 7px;
    color: var(--muted);
}

.profile-missing-panel strong {
    color: #ffd98a;
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* PROFIL OLDAL FINOMÍTÁS + KÉRELMEK */

.refined-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
}

.refined-main {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.profile-avatar-wrap {
    display: grid;
    gap: 10px;
    justify-items: center;
    flex: 0 0 auto;
}

.avatar-state,
.soft-badge,
.status-pill,
.request-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.055);
    color: #dce2ec;
    font-size: 12px;
    font-weight: 900;
}

.online-avatar-state {
    border-color: rgba(39,196,107,.28);
    background: rgba(39,196,107,.09);
    color: #9ff0bd;
}

.missing-avatar-state {
    border-color: rgba(245,185,66,.28);
    background: rgba(245,185,66,.09);
    color: #ffd98a;
}

.profile-identity {
    min-width: 0;
}

.profile-identity h1 {
    margin-bottom: 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.profile-badge-row,
.profile-quick-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.profile-quick-line span {
    color: var(--muted);
    font-size: 13px;
}

.profile-quick-line strong {
    color: #fff;
}

.profile-top-grid,
.profile-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.profile-section-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.status-header p {
    color: var(--muted);
    margin: 5px 0 0;
}

.status-pill.ok {
    border-color: rgba(39,196,107,.28);
    background: rgba(39,196,107,.09);
    color: #9ff0bd;
}

.status-pill.warning {
    border-color: rgba(245,185,66,.28);
    background: rgba(245,185,66,.09);
    color: #ffd98a;
}

.status-reasons {
    display: grid;
    gap: 10px;
}

.status-reason {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    color: #dce2ec;
    font-size: 13px;
}

.status-reason.ok {
    border-color: rgba(39,196,107,.22);
    background: rgba(39,196,107,.06);
}

.status-reason.danger {
    border-color: rgba(255,59,59,.25);
    background: rgba(211,38,38,.08);
}

.status-reason.idle,
.status-reason.missing {
    border-color: rgba(245,185,66,.25);
    background: rgba(245,185,66,.06);
}

.profile-missing-panel {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-color: rgba(245,185,66,.28) !important;
    background: rgba(245,185,66,.06) !important;
}

.profile-missing-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(245,185,66,.16);
    border: 1px solid rgba(245,185,66,.35);
    color: #ffd98a;
    font-weight: 900;
}

.profile-missing-icon.ok {
    background: rgba(39,196,107,.13);
    border-color: rgba(39,196,107,.32);
    color: #9ff0bd;
}

.profile-missing-panel p,
.avatar-info-panel p {
    color: var(--muted);
    margin: 7px 0;
}

.profile-missing-panel strong,
.avatar-info-panel strong {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.refined-data-grid {
    grid-template-columns: 1fr;
    margin-top: 14px;
}

.profile-data-grid > div {
    min-width: 0;
}

.profile-data-grid strong,
.break-text {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.refined-summary {
    margin-top: 14px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.scrollable-profile-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 7px;
}

.refined-log-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.secret-note-panel {
    border-color: rgba(95,150,255,.24) !important;
    background: rgba(95,150,255,.055) !important;
}

.secret-note-panel p {
    color: var(--muted);
}

.secret-note-panel strong {
    display: block;
    margin-top: 10px;
    color: #dce8ff;
}

.inactivity-note-panel {
    border-color: rgba(245,185,66,.24) !important;
    background: rgba(245,185,66,.055) !important;
}

.request-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.request-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.request-state,
.mini-request {
    padding: 12px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
}

.request-state.pending,
.mini-request.pending {
    border-color: rgba(245,185,66,.28);
    background: rgba(245,185,66,.06);
}

.mini-request-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mini-request strong,
.mini-request span,
.mini-request small {
    display: block;
}

.mini-request span {
    margin: 4px 0;
}

.mini-request small {
    color: var(--muted);
}

/* Kérelmek oldal */

.request-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.request-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border-radius: 15px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    color: #dce2ec;
    font-weight: 900;
}

.request-filter.active {
    background: rgba(211,38,38,.13);
    border-color: rgba(255,59,59,.34);
    color: #fff;
}

.request-filter strong {
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.requests-grid {
    display: grid;
    gap: 18px;
}

.request-card {
    display: grid;
    gap: 16px;
}

.request-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.request-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.request-user h3 {
    margin: 0 0 4px;
}

.request-user p {
    margin: 0;
    color: var(--muted);
}

.request-status.pending {
    border-color: rgba(245,185,66,.28);
    background: rgba(245,185,66,.09);
    color: #ffd98a;
}

.request-status.approved {
    border-color: rgba(39,196,107,.28);
    background: rgba(39,196,107,.09);
    color: #9ff0bd;
}

.request-status.rejected {
    border-color: rgba(255,59,59,.28);
    background: rgba(211,38,38,.09);
    color: #ffb3b3;
}

.request-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.request-details > div,
.request-reason,
.request-review {
    padding: 13px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
}

.request-details span,
.request-reason span,
.request-review span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.request-reason p,
.request-review p {
    margin: 0;
    line-height: 1.45;
}

.request-review small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.request-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.request-actions form {
    display: grid;
    gap: 9px;
}

/* Scrollbar profil listákhoz */
.scrollable-profile-list::-webkit-scrollbar {
    width: 7px;
}

.scrollable-profile-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
}

.scrollable-profile-list::-webkit-scrollbar-thumb {
    background: rgba(255,59,59,.35);
    border-radius: 999px;
}

@media (max-width: 1200px) {
    .profile-top-grid,
    .profile-section-grid,
    .profile-section-grid.two {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .refined-hero,
    .refined-main,
    .request-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .request-form-grid,
    .request-details,
    .request-actions,
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}
/* PROFIL + KÉRELMEK JAVÍTÁSOK */

/* A profiloldali rácsok ne csússzanak szét */
.refined-profile .panel {
    min-width: 0;
    overflow: hidden;
}

.profile-top-grid,
.profile-section-grid,
.profile-section-grid.two {
    align-items: stretch !important;
}

.profile-top-grid > .panel,
.profile-section-grid > .panel {
    display: flex;
    flex-direction: column;
}

.profile-data-grid,
.status-reasons,
.mini-request-list,
.avatar-info-panel .scroll-inside {
    min-height: 0;
}

/* Belső csúszka, ha valami kilógna */
.scroll-inside,
.scrollable-profile-list {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 7px;
}

.scroll-inside::-webkit-scrollbar,
.scrollable-profile-list::-webkit-scrollbar {
    width: 7px;
}

.scroll-inside::-webkit-scrollbar-track,
.scrollable-profile-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
}

.scroll-inside::-webkit-scrollbar-thumb,
.scrollable-profile-list::-webkit-scrollbar-thumb {
    background: rgba(255,59,59,.35);
    border-radius: 999px;
}

/* Összesítő kártya törölve, pontszám a cím alatti sorban van */
.refined-summary {
    display: none !important;
}

/* Admin gyorsműveletek ne lógjanak bele semmibe */
.quick-actions-panel {
    gap: 16px;
}

.quick-actions-head {
    margin-bottom: 14px;
}

.quick-actions-grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 4px !important;
}

.quick-actions-grid .btn {
    min-width: 0 !important;
    width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
}

/* Inaktivitás kérelem + inak kártya egymás mellett */
.inactivity-row {
    margin-bottom: 22px;
}

.inactivity-history-panel {
    min-height: 0;
}

.current-inactivity-box {
    padding: 13px;
    border-radius: 16px;
    background: rgba(245,185,66,.07);
    border: 1px solid rgba(245,185,66,.25);
    margin-top: 12px;
    margin-bottom: 12px;
}

.current-inactivity-box strong {
    color: #ffd98a;
}

.current-inactivity-box p {
    margin: 7px 0 0;
    color: #dce2ec;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Lejárt/visszavont inaktivitás halványítva, nem törölve */
.mini-request.faded,
.request-card.faded {
    opacity: .45;
    filter: grayscale(.35);
}

.mini-request.revoked,
.request-card.revoked {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
}

.mini-request-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.mini-request p {
    margin: 8px 0;
    color: #dce2ec;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.inline-revoke-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.inline-revoke-form input {
    width: 100%;
}

.request-status.revoked,
.request-status.expired {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: #b6bfcc;
}

.request-filter-row {
    align-items: center;
}

.request-revoke-form {
    display: grid;
    gap: 9px;
    padding: 13px;
    border-radius: 16px;
    background: rgba(211,38,38,.06);
    border: 1px solid rgba(255,59,59,.22);
}

.request-revoke-form > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.request-revoke-form input {
    width: 100%;
}

/* Szövegtörés minden profil/kérelem kártyán */
.refined-profile strong,
.refined-profile p,
.refined-profile small,
.request-card strong,
.request-card p,
.request-card small {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Mobilon minden egymás alá */
@media (max-width: 1200px) {
    .profile-top-grid,
    .profile-section-grid,
    .profile-section-grid.two {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    .request-revoke-form > div,
    .mini-request-head {
        grid-template-columns: 1fr;
        display: grid;
    }
}
/* INAKTIVITÁS KÁRTYA GÖRGETÉS + SZÉTCSÚSZÁS FIX */

/* Az inaktivitási kérelem és az elfogadott/visszavont inak kártya legyen egy magasságban */
.inactivity-row {
    align-items: stretch !important;
}

.inactivity-row > .panel {
    height: 460px !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* A kártyák címe ne nyomódjon össze */
.inactivity-row > .panel > h3 {
    flex: 0 0 auto !important;
    margin-bottom: 14px !important;
}

/* Az aktuális inaktivitás doboz ne nyújtsa szét az egész kártyát */
.current-inactivity-box {
    flex: 0 0 auto !important;
    max-height: 120px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 8px !important;
}

/* Az elfogadott / visszavont inaktivitások listája legyen belül görgethető */
.inactivity-history-panel .mini-request-list,
.inactivity-history-panel .scroll-inside {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 8px !important;
    display: grid !important;
    gap: 10px !important;
}

/* Egy inaktivitás bejegyzés ne tudja széthúzni a kártyát */
.inactivity-history-panel .mini-request {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Fejléc a kis inak bejegyzésen belül */
.inactivity-history-panel .mini-request-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Hosszú indokok, megjegyzések törjenek sorba */
.inactivity-history-panel .mini-request strong,
.inactivity-history-panel .mini-request span,
.inactivity-history-panel .mini-request p,
.inactivity-history-panel .mini-request small {
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Admin visszavonás form ne lógjon ki */
.inline-revoke-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
}

.inline-revoke-form input,
.inline-revoke-form button {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Szebb görgetősáv */
.inactivity-history-panel .mini-request-list::-webkit-scrollbar,
.inactivity-history-panel .scroll-inside::-webkit-scrollbar,
.current-inactivity-box::-webkit-scrollbar {
    width: 7px;
}

.inactivity-history-panel .mini-request-list::-webkit-scrollbar-track,
.inactivity-history-panel .scroll-inside::-webkit-scrollbar-track,
.current-inactivity-box::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
}

.inactivity-history-panel .mini-request-list::-webkit-scrollbar-thumb,
.inactivity-history-panel .scroll-inside::-webkit-scrollbar-thumb,
.current-inactivity-box::-webkit-scrollbar-thumb {
    background: rgba(255,59,59,.38);
    border-radius: 999px;
}

.inactivity-history-panel .mini-request-list::-webkit-scrollbar-thumb:hover,
.inactivity-history-panel .scroll-inside::-webkit-scrollbar-thumb:hover,
.current-inactivity-box::-webkit-scrollbar-thumb:hover {
    background: rgba(255,59,59,.6);
}

/* Mobilon ne legyen túl magas fix kártya */
@media (max-width: 900px) {
    .inactivity-row > .panel {
        height: 420px !important;
    }
}
/* FŐOLDAL - LEGFRISSEBB ESEMÉNYEK BADGE FIX */

.event-item {
    grid-template-columns: 150px minmax(0, 1fr) !important;
    align-items: flex-start !important;
    gap: 18px !important;
}

.event-type {
    max-width: 140px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

.event-item > div:last-child {
    min-width: 0 !important;
}

.event-item strong,
.event-item p,
.event-item small {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Keskenyebb nézetben a badge menjen a szöveg fölé */
@media (max-width: 900px) {
    .event-item {
        grid-template-columns: 1fr !important;
    }

    .event-type {
        max-width: 100% !important;
        width: max-content !important;
    }
}
/* ACCOUNT KEZELÉS + DEAKTIVÁLT TÖRLÉS */

.account-admin-panel {
    border-color: rgba(95,150,255,.24) !important;
    background: rgba(95,150,255,.045) !important;
}

.account-admin-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.account-admin-form > div {
    min-width: 0;
}

.account-admin-form input {
    width: 100%;
}

.account-admin-form small {
    display: block;
    color: var(--muted);
    margin-top: 7px;
    line-height: 1.35;
}

.inactive-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

@media (max-width: 1000px) {
    .account-admin-form {
        grid-template-columns: 1fr;
    }
}
/* WEBES ACCOUNT KEZELÉS ÁTHELYEZVE EDIT OLDALRA */

.account-admin-panel {
    display: none !important;
}

.account-edit-section {
    border: 1px solid rgba(95,150,255,.24);
    background: rgba(95,150,255,.035);
    border-radius: 22px;
    padding: 18px;
}

.account-edit-section h4 {
    color: #dce8ff;
}

.info-field {
    display: flex;
    flex-direction: column;
}

.edit-info-box {
    min-height: 46px;
    padding: 13px;
    border-radius: 15px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.45;
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* BAL FELSŐ SAJÁT LOGÓ */

.brand-logo-img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    flex: 0 0 auto;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,59,59,.28);
    box-shadow: 0 0 26px rgba(211,38,38,.32);
}
/* TAGOK RANGCSOPORTOS NÉZET */

.ranked-member-board {
    display: grid;
    gap: 28px;
}

.rank-member-section {
    display: grid;
    gap: 16px;
}

.rank-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background:
        linear-gradient(90deg, rgba(211,38,38,.13), rgba(255,255,255,.035)),
        rgba(255,255,255,.035);
    border: 1px solid rgba(255,59,59,.20);
    box-shadow: 0 18px 50px rgba(0,0,0,.20);
}

.rank-section-title span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.rank-section-title h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.rank-section-title strong {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    color: #dce2ec;
    font-size: 12px;
}

.rank-member-grid {
    margin-top: 0;
}

.no-member-result {
    margin-top: 4px;
}

@media (max-width: 760px) {
    .rank-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-section-title h2 {
        font-size: 18px;
    }
}
