/* =========================================================================
   GLOBAL ADMIN THEME – LIGHT (WHITE) + GOLD ACCENT, RESPONSIVE, CLEAN
   ========================================================================= */

/* ---------- Design tokenek ---------- */
:root {
    --bg-page: #f4f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fafd;
    --surface-muted: #f1f5f9;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --divider: #eef0f3;

    --text: #0f172a;
    --text-soft: #334155;
    --muted: #667085;

    --primary: #d4af37;
    --primary-soft: rgba(212, 175, 55, .16);

    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, .10);

    --radius-xl: 26px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --shadow-xs: 0 8px 24px rgba(17, 24, 39, .05);
    --shadow-sm: 0 18px 42px rgba(17, 24, 39, .07);
    --shadow-md: 0 28px 64px rgba(17, 24, 39, .10);

    --header-h: 68px;
    --rail-compact-w: 84px;
    --rail-expanded-w: 252px;
    --content-max: 1480px;
    --shell-gutter: clamp(1rem, 1.45vw, 1.75rem);
    --content-outer-max: calc(var(--content-max) + (var(--shell-gutter) * 2));

    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 2rem;
    --space-8: 2.5rem;

    --transition-fast: 140ms ease-out;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Aptos", "SF Pro Text", "Segoe UI", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.55;

    background:
        linear-gradient(180deg, #fafbfe 0%, #f4f6fb 38%, #f3f6fb 100%);
    color: var(--text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Linkek */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Képek */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Listák */
ul,
ol {
    margin: 0;
    padding-left: 1.2rem;
}

/* =========================================================================
   LAYOUT – FEJLÉC, SIDEBAR, TARTALOM
   ========================================================================= */

body {
    --shell-offset: 0px;
}

body.nav-open {
    overflow: hidden;
}

.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1200;
    background: rgba(252, 252, 249, .88);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.app-topbar__inner {
    box-sizing: border-box;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, var(--content-outer-max));
    margin-inline: auto;
    padding: 0 var(--shell-gutter);
    transition:
        margin-left var(--transition-fast),
        width var(--transition-fast),
        padding var(--transition-fast);
}

.app-topbar__start,
.app-topbar__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.app-topbar__actions {
    margin-left: auto;
}

.app-topbar__toggle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .72);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.app-topbar__toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, .42);
    box-shadow: var(--shadow-xs);
    background: rgba(255, 255, 255, .95);
}

.app-topbar__toggle:focus-visible,
.app-topbar__brand:focus-visible,
.app-userchip:focus-visible,
.app-rail__pin:focus-visible,
.app-rail__link:focus-visible,
.app-usermenu__link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .16);
    border-color: rgba(212, 175, 55, .52);
}

.app-topbar__toggle-icon,
.app-userchip__chevron,
.app-usermenu__icon,
.app-rail__icon,
.app-rail__pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-topbar__toggle-icon svg,
.app-userchip__chevron svg,
.app-usermenu__icon svg,
.app-rail__icon svg,
.app-rail__pin svg {
    width: 18px;
    height: 18px;
}

.app-topbar__brand {
    display: inline-flex;
    align-items: center;
    padding: .35rem 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
}

.app-topbar__logo {
    height: 34px;
    width: auto;
}

.app-user {
    position: relative;
}

.app-userchip {
    min-height: 46px;
    padding: .36rem .52rem .36rem .42rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-xs);
    display: inline-flex;
    align-items: center;
    gap: .68rem;
    color: var(--text);
    cursor: pointer;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.app-userchip:hover,
body.user-menu-open .app-userchip {
    border-color: rgba(212, 175, 55, .42);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}

.app-userchip__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(212, 175, 55, .22), rgba(212, 175, 55, .12));
    color: #6d5300;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.app-userchip__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.app-userchip__label {
    font-size: .70rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--muted);
}

.app-userchip__name {
    font-size: .92rem;
    font-weight: 760;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 156px;
}

.app-userchip__chevron {
    color: var(--muted);
    transition: transform var(--transition-fast);
}

body.user-menu-open .app-userchip__chevron {
    transform: rotate(180deg);
}

.app-usermenu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: .5rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .10);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast);
}

body.user-menu-open .app-usermenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.app-usermenu__link {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 42px;
    padding: .6rem .7rem;
    border-radius: 14px;
    color: var(--text);
    font-weight: 600;
    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.app-usermenu__link:hover {
    background: rgba(248, 250, 253, .96);
}

.app-usermenu__icon {
    width: 18px;
    color: var(--muted);
}

.app-rail {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(84vw, 320px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 249, 245, .98));
    border-right: 1px solid rgba(148, 163, 184, .15);
    box-shadow: 14px 0 44px rgba(15, 23, 42, .06);
    z-index: 1150;
    transform: translateX(-100%);
    transition:
        width var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

body.nav-open .app-rail {
    transform: translateX(0);
}

.app-rail__scroll {
    min-height: 100%;
    overflow: visible;
    padding: .45rem .5rem .65rem;
    display: flex;
    flex-direction: column;
    gap: .36rem;
}

.app-rail__scroll::-webkit-scrollbar {
    width: 6px;
}

.app-rail__scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, .16);
    border-radius: 999px;
}

.app-rail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    min-height: 34px;
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: .3rem;
    background: linear-gradient(180deg, rgba(251, 252, 249, .98) 62%, rgba(251, 252, 249, 0));
}

.app-rail__brand {
    display: flex;
    align-items: center;
    gap: .48rem;
    min-width: 0;
}

.app-rail__brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .05rem;
}

.app-rail__brand-kicker {
    font-size: .58rem;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.app-rail__brand-title {
    font-size: .74rem;
    line-height: 1.1;
    font-weight: 760;
    color: var(--text);
}

.app-rail__mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, .24);
    background: linear-gradient(180deg, rgba(212, 175, 55, .24), rgba(212, 175, 55, .1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .1em;
    color: #6d5300;
}

.app-rail__pin {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(255, 255, 255, .72);
    color: var(--muted);
    cursor: pointer;
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.app-rail__pin:hover,
body.rail-pinned .app-rail__pin {
    color: var(--text);
    border-color: rgba(212, 175, 55, .42);
    background: rgba(212, 175, 55, .12);
}

.app-rail__group {
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.app-rail__group + .app-rail__group {
    padding-top: .16rem;
    border-top: 1px solid rgba(148, 163, 184, .12);
}

.app-rail__group.is-active .app-rail__group-title {
    color: var(--text-soft);
}

.app-rail__group-title {
    padding: 0 .4rem;
    font-size: .54rem;
    line-height: 1.15;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.app-rail__links {
    display: flex;
    flex-direction: column;
    gap: .08rem;
}

.app-rail__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .62rem;
    min-height: 36px;
    padding: .2rem .36rem;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--text-soft);
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.app-rail__link:hover {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(148, 163, 184, .1);
    color: var(--text);
    transform: none;
    box-shadow: none;
}

.app-rail__link.is-active {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(212, 175, 55, .26);
    color: var(--text);
    box-shadow: none;
}

.app-rail__link.is-active::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    border-radius: 999px;
    background: rgba(212, 175, 55, .9);
}

.app-rail__icon {
    width: 20px;
    height: 20px;
    border-radius: 0;
    flex: 0 0 20px;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--muted);
    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.app-rail__link:hover .app-rail__icon,
.app-rail__link.is-active .app-rail__icon {
    color: var(--text);
    transform: none;
}

.app-rail__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .76rem;
    font-weight: 680;
}

.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .38);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 1100;
}

body.nav-open .app-overlay {
    opacity: 1;
    pointer-events: auto;
}

.maincontainer {
    box-sizing: border-box;
    width: min(100%, var(--content-outer-max));
    max-width: none;
    margin-inline: auto;
    padding: calc(var(--header-h) + 2rem) var(--shell-gutter) 3rem;
    transition:
        margin-left var(--transition-fast),
        width var(--transition-fast),
        padding var(--transition-fast);
}

main.maincontainer[data-page],
main.maincontainer {
    min-height: calc(100vh - var(--header-h));
}

/* Globális alert */
.global-alert {
    position: fixed;
    top: calc(var(--header-h) + .6rem);
    left: 50%;
    transform: translateX(-50%);
    max-width: 560px;
    width: calc(100% - 2rem);
    padding: .85rem 1.15rem;
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #86efac;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    font-size: .82rem;
    display: none;
    opacity: 0;
    z-index: 1200;
    transition: opacity var(--transition-fast);
}

.global-alert.is-visible {
    display: block;
    opacity: 1;
}

.global-alert.show {
    display: block;
    opacity: 1;
}

.global-alert.success {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
}

.global-alert.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.global-alert.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.global-alert.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

/* =========================================================================
   FEJLÉC A TARTALOMBAN
   ========================================================================= */
.page-head,
.partnerek-header,
.autok-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.55rem;
    flex-wrap: wrap;
}

.page-head > *,
.partnerek-header > *,
.autok-header > * {
    min-width: 0;
}

.page-title,
.section-title {
    font-size: clamp(1.7rem, 1.28rem + 1vw, 2.2rem);
    line-height: 1.12;
    font-weight: 780;
    margin: 0;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
}

.page-actions {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

/* =========================================================================
   KÁRTYÁK / WIDGETEK – egyszínű
   ========================================================================= */
.widget,
.felh-card,
.filters-card,
.partners-filter-card,
.auto-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 253, .98));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.35rem 1.4rem;
    margin-bottom: 1.25rem;
}

.widget-title,
.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .8rem;
    color: var(--text);
}

.widget-head {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1rem;
}

.widget-body {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.widget-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.widget-header h1,
.widget-header h2,
.widget-header h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 760;
}

.widget-actions {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.lead {
    margin: 0;
    max-width: 72ch;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-soft);
}

/* =========================================================================
   GOMBOK
   ========================================================================= */
.btn-auth,
.alsogomb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;

    min-height: 40px;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);

    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);

    transition:
        background var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
    white-space: nowrap;
}

.btn-auth:hover,
.alsogomb:hover {
    box-shadow: var(--shadow-xs);
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, .75);
    background: rgba(243, 244, 246, .95);
}

.btn--primary {
    background: var(--primary);
    border-color: rgba(212, 175, 55, .95);
    color: #111827;
    box-shadow: var(--shadow-xs);
}

.btn--primary:hover {
    box-shadow: var(--shadow-sm);
}

.btn--ghost {
    background: rgba(255, 255, 255, .88);
    border-color: var(--border-strong);
    color: var(--text);
    padding-inline: 1.05rem;
}

.btn--ghost:hover {
    background: rgba(243, 244, 246, .95);
}

.btn-auth-secondary {
    background: rgba(255, 255, 255, .78);
    border-color: var(--border);
    color: var(--muted);
}

.btn-auth-secondary:hover {
    background: rgba(243, 244, 246, .98);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--sm {
    min-height: 34px;
    padding: .32rem .75rem;
    font-size: .72rem;
}

.btn--danger {
    background: var(--danger-soft);
    border-color: rgba(220, 38, 38, .55);
    color: #991b1b;
}

.alsogomb {
    min-height: 36px;
    padding: .4rem .85rem;
    font-size: .78rem;
}

/* =========================================================================
   FORM MEZŐK
   ========================================================================= */
.mezo {
    display: flex;
    flex-direction: column;
    gap: .38rem;
    margin-bottom: 1rem;
}

.mezo label {
    font-size: .78rem;
    font-weight: 650;
    color: var(--muted);
}

.mezo input,
.mezo select,
.mezo textarea {
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: .62rem .78rem;
    font: inherit;

    background: #ffffff;
    color: var(--text);
    min-height: 42px;
    line-height: 1.5;
}

.mezo textarea {
    resize: vertical;
    min-height: 110px;
}

.mezo select[multiple] {
    min-height: 160px;
    padding-block: .5rem;
}

.mezo input[type="file"] {
    min-height: auto;
    padding: .45rem .55rem;
}

.mezo input::placeholder,
.mezo textarea::placeholder {
    color: #9ca3af;
}

.mezo input:focus,
.mezo select:focus,
.mezo textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary-soft);
}

.input {
    width: 100%;
    min-height: 44px;
    padding: .68rem .86rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font: inherit;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.input::placeholder {
    color: #9ca3af;
}

.input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, .82);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .14);
}

.input--sm {
    min-height: 38px;
    padding-block: .48rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.2rem;
    align-items: start;
}

.form-grid > * {
    min-width: 0;
}

.form-block {
    min-width: 0;
}

.form-block.full-width,
.full-width {
    grid-column: 1 / -1;
}

.form-block h2,
.form-block h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 760;
    color: var(--text);
}

.form-section h2,
.form-section h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 760;
    color: var(--text);
}

/* Két oszlopos grid */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.2rem;
}

.form-inline {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem 1.25rem 1.3rem;
}

.inline-form,
.toolbar,
.bulkbar,
.stack {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

.inline-form,
.toolbar,
.bulkbar {
    align-items: center;
}

.stack {
    align-items: flex-start;
}

.bulkbar {
    padding: 1rem 1.15rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    box-shadow: var(--shadow-xs);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .72rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(212, 175, 55, .12);
    color: var(--text);
    font-size: .78rem;
    font-weight: 600;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 40px;
    font-size: .88rem;
}

.checkbox input {
    width: auto;
    margin: 0;
}

.switch {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 24px;
}

.switch .sw {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.switch .slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d1d5db;
    transition: background var(--transition-fast);
}

.switch .slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(17, 24, 39, .18);
    transition: transform var(--transition-fast);
}

.switch .sw:checked + .slider {
    background: rgba(16, 185, 129, .75);
}

.switch .sw:checked + .slider::before {
    transform: translateX(18px);
}

/* Form footer */
.form-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

/* Hibadoboz */
.alert,
.felh-error {
    padding: .85rem 1rem;
    border-radius: 16px;
    font-size: .82rem;
    margin-bottom: .8rem;
}

.alert--error,
.felh-error {
    background: var(--danger-soft);
    border: 1px solid rgba(220, 38, 38, .45);
    color: #991b1b;
}

.alert-success,
.alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #166534;
}

.alert-danger,
.alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* =========================================================================
   TÁBLÁK – egyszínű wrapper
   ========================================================================= */
.table-auth-wrapper,
.table-wrapper,
.autok-tablewrap {
    margin-top: 1rem;
    overflow-x: auto;
    max-width: 100%;
    border-radius: 24px;

    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 18px 46px rgba(17, 24, 39, .08);
}

.table-auth,
.autok-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: .84rem;
}

.table-auth th,
.table-auth td,
.autok-table th,
.autok-table td {
    padding: .82rem 1rem;
    border-bottom: 1px solid var(--divider);
    text-align: left;
    vertical-align: middle;
    line-height: 1.45;
}

.table-auth thead th,
.autok-table thead th {
    background: #f9fafb;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
}

.table-auth tbody tr,
.autok-table tbody tr {
    background: #ffffff;
}

.table-auth tbody tr:nth-child(even),
.autok-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.table-auth tbody tr:hover,
.autok-table tbody tr:hover {
    background: #f1f5f9;
}

.table-auth th.sticky {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
}

/* Státusz badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .22rem .62rem;
    border-radius: 999px;
    font-size: .73rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
}

.badge.badge--ok {
    background: rgba(16, 185, 129, .16);
    border-color: rgba(16, 185, 129, .32);
    color: #065f46;
}

.badge.badge--danger {
    background: rgba(220, 38, 38, .14);
    border-color: rgba(220, 38, 38, .28);
    color: #991b1b;
}

.link-small {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .78rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.link-small:hover {
    color: #111827;
    text-decoration: underline;
}

.help,
.help-text {
    margin-top: .35rem;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--muted);
}

.mezo small,
.form-block small,
.form-section small {
    display: block;
    margin-top: .35rem;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--muted);
}

.resz-form {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.resz-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.resz-item {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    line-height: 1.35;
}

.resz-item input {
    margin-top: .1rem;
}

.inline-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.inline-form select,
.inline-form textarea {
    min-height: 34px;
    padding: .38rem .62rem;
    border-radius: .65rem;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.inline-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.inline-form select:focus,
.inline-form textarea:focus {
    outline: none;
    border-color: rgba(212, 175, 55, .82);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .14);
}

/* =========================================================================
   HELPER OSZTÁLYOK
   ========================================================================= */
.text-muted {
    color: var(--muted);
}

.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;
}

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

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: .5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: .5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.u-d-none {
    display: none !important;
}

.u-d-inline {
    display: inline;
}

.u-d-block {
    display: block;
}

.u-grid-full {
    grid-column: 1 / -1;
}

.u-grid-gap6 {
    display: grid;
    gap: 6px;
}

.u-flex-gap-4 {
    display: flex;
    gap: .4rem;
}

.u-flex-gap-5 {
    display: flex;
    gap: .5rem;
}

.u-flex-gap6 {
    display: flex;
    gap: 6px;
}

.u-flex-gap8-center {
    display: flex;
    gap: 8px;
    align-items: center;
}

.u-flex-gap8-wrap-center {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.u-flex-gap10 {
    display: flex;
    gap: 10px;
}

.u-flex-gap10-center {
    display: flex;
    gap: 10px;
    align-items: center;
}

.u-flex-gap10-endalign {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.u-flex-gap10-end {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.u-flex-end-gap5 {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

.u-flex-gap10-wrap-end-between {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
}

.u-flex-gap10-wrap-center-between {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.u-flex-gap12 {
    display: flex;
    gap: 12px;
}

.u-flex-gap12-center-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.u-flex-between-gap12-start-wrap {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.u-j-start {
    justify-content: flex-start;
}

.u-self-end {
    align-self: flex-end;
}

.u-gap-12 {
    gap: 12px;
}

.u-m0 {
    margin: 0;
}

.u-m0-mb10 {
    margin: 0 0 10px;
}

.u-m0-mb8 {
    margin: 0 0 8px;
}

.u-m0-mb4 {
    margin: 0 0 4px;
}

.u-m0-pl18 {
    margin: 0;
    padding-left: 18px;
}

.u-mb-1 {
    margin-bottom: 1rem;
}

.u-mb-2 {
    margin-bottom: 2px;
}

.u-mt-0 {
    margin-top: 0;
}

.u-mt-025 {
    margin-top: .25rem;
}

.u-mt-05 {
    margin-top: .5rem;
}

.u-mt-08 {
    margin-top: .8rem;
}

.u-mt-1 {
    margin-top: 1rem;
}

.u-mt-4 {
    margin-top: 4px;
}

.u-mt-6 {
    margin-top: 6px;
}

.u-mt-8 {
    margin-top: 8px;
}

.u-mt-10 {
    margin-top: 10px;
}

.u-mt-12 {
    margin-top: 12px;
}

.u-mt-14 {
    margin-top: 14px;
}

.u-mt-22 {
    margin-top: 22px;
}

.u-my-05 {
    margin: .5rem 0;
}

.u-ml-auto {
    margin-left: auto;
}

.u-pl-10 {
    padding-left: 10px;
}

.u-pad-2-6 {
    padding: 2px 6px;
}

.u-mt4-pad2-8-fs12 {
    margin-top: 4px;
    padding: 2px 8px;
    font-size: 12px;
}

.u-fs-12 {
    font-size: 12px;
}

.u-fs-075 {
    font-size: .75rem;
}

.u-nowrap {
    white-space: nowrap;
}

.u-prewrap {
    white-space: pre-wrap;
}

.u-op-70 {
    opacity: .7;
}

.u-op-75 {
    opacity: .75;
}

.u-max-820 {
    max-width: 820px;
}

.u-text-danger {
    color: #b00020;
}

.u-text-center {
    text-align: center;
}

.u-text-red-900 {
    color: #991b1b;
}

.u-text-teal-700 {
    color: #0f766e;
}

.u-alert-inline {
    padding: 1rem;
    border-radius: 10px;
}

.u-alert-inline--success {
    color: #1f7a1f;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.u-alert-inline--error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.u-alert-inline--soft-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.u-border-danger-light {
    border: 1px solid rgba(255, 0, 0, .25);
}

.hidden {
    display: none !important;
}

.row-muted {
    opacity: .55;
}

.col-center {
    text-align: center;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1280px) {
    .maincontainer {
        padding-inline: clamp(1rem, 1.8vw, 1.75rem);
    }

    .table-auth,
    .autok-table {
        min-width: 560px;
    }
}

@media (min-width: 1200px) {
    body {
        --shell-offset: var(--rail-expanded-w);
    }

    .app-rail {
        transform: translateX(0);
        width: var(--rail-expanded-w);
        box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    }

    .app-overlay {
        display: none !important;
    }

    .app-topbar__inner,
    .maincontainer {
        width: min(calc(100vw - var(--shell-offset)), var(--content-outer-max));
        margin-left: calc(var(--shell-offset) + max((100vw - var(--shell-offset) - var(--content-outer-max)) / 2, 0px));
        margin-right: 0;
    }

    .app-topbar__inner {
        padding-inline: var(--shell-gutter);
    }

    .maincontainer {
        padding-top: calc(var(--header-h) + 2rem);
        padding-inline: var(--shell-gutter);
    }

    .app-topbar__toggle {
        display: none;
    }

    .app-rail__scroll {
        padding-inline: .62rem;
    }

    .app-rail__brand-copy,
    .app-rail__group-title,
    .app-rail__label {
        opacity: 1;
        max-width: 220px;
        pointer-events: auto;
    }

    .app-rail__group-title {
        height: auto;
        margin-bottom: .2rem;
        overflow: visible;
    }

    .app-rail__link {
        justify-content: flex-start;
        padding-inline: .44rem;
    }

    .app-rail__pin {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 1366px) {
    .app-userchip__name {
        max-width: 120px;
    }

    .app-topbar__inner {
        gap: .6rem;
    }
}

@media (max-width: 768px) {
    .form-grid,
    .form-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .widget,
    .felh-card,
    .filters-card,
    .partners-filter-card,
    .auto-card,
    .form-inline {
        padding: 1.05rem 1rem 1.1rem;
    }

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

    .app-topbar__inner {
        padding-inline: .9rem;
    }

    .app-topbar__brand {
        padding-inline: 0;
    }

    .app-topbar__logo {
        height: 28px;
    }

    .app-userchip__meta {
        display: none;
    }

    .page-head,
    .partnerek-header,
    .autok-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title,
    .section-title {
        font-size: clamp(1.32rem, 1.12rem + 1vw, 1.65rem);
    }

    .table-auth,
    .autok-table {
        min-width: 440px;
    }

    .stack,
    .inline-form,
    .toolbar,
    .bulkbar {
        width: 100%;
        align-items: stretch;
    }

    .toolbar .u-ml-auto,
    .bulkbar .u-ml-auto {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .app-topbar__inner {
        padding-inline: .7rem;
    }

    .maincontainer {
        padding-inline: .95rem;
        padding-top: calc(var(--header-h) + 1.15rem);
    }

    .app-rail {
        width: min(88vw, 320px);
    }

    .app-userchip {
        padding-right: .4rem;
    }

    .app-userchip__avatar {
        width: 32px;
        height: 32px;
    }

    .app-topbar__toggle {
        width: 40px;
        height: 40px;
    }

    .page-actions {
        width: 100%;
    }

    .btn-auth,
    .alsogomb {
        max-width: 100%;
    }

    .page-actions .btn-auth,
    .page-actions .alsogomb,
    .form-actions .btn-auth,
    .form-actions .alsogomb,
    .toolbar .btn-auth,
    .bulkbar .btn-auth {
        width: 100%;
        justify-content: center;
    }

    .toolbar .input,
    .bulkbar .input,
    .inline-form .input {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .maincontainer {
        padding-inline: .7rem;
    }

    .app-topbar__inner {
        padding-inline: .55rem;
    }

    .btn-auth,
    .alsogomb {
        font-size: .78rem;
        padding-inline: .8rem;
    }

    .page-title,
    .section-title {
        font-size: 1.28rem;
    }
}
