* { box-sizing: border-box; }
:root {
    --bg: #07111f;
    --panel: #0f172a;
    --panel2: #111827;
    --line: rgba(255,255,255,.10);
    --text: #f8fafc;
    --muted: #94a3b8;
    --red: #d9232e;
    --red2: #b91c1c;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(0,0,0,.32);
    font-family: Aptos, Segoe UI, Arial, sans-serif;
}
body { margin: 0; }
.login-body { min-height: 100vh; background: radial-gradient(circle at 80% 30%, rgba(217,35,46,.22), transparent 35%), linear-gradient(135deg, #030712, #0f172a); color: var(--text); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 440px; gap: 42px; align-items: center; padding: 58px 74px; }
.login-pix-logo { height: 42px; object-fit: contain; margin-bottom: 26px; }
.login-hero h1 { font-size: 58px; margin: 0; letter-spacing: -2px; }
.login-hero h1 span { color: var(--red); }
.login-hero h2 { color: var(--muted); font-size: 20px; letter-spacing: 2px; margin: 8px 0 28px; }
.login-hero p { color: #cbd5e1; max-width: 560px; font-size: 18px; line-height: 1.55; }
.login-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; max-width: 760px; }
.login-feature-grid div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.login-feature-grid i { color: var(--red); font-size: 26px; margin-bottom: 18px; }
.login-feature-grid strong { display: block; margin-bottom: 8px; }
.login-feature-grid span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.operated { margin-top: 42px; color: var(--muted); }
.operated strong { color: var(--white); }
.login-card { background: rgba(15,23,42,.86); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: 34px; backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 18px; }
.login-card h3 { margin: 0 0 8px; font-size: 30px; }
.login-card label { display: flex; flex-direction: column; gap: 8px; color: #cbd5e1; font-weight: 700; }
.login-card input { background: #020617; border: 1px solid rgba(255,255,255,.12); color: var(--text); border-radius: 16px; padding: 15px 16px; font: inherit; }
.login-card button { border: none; border-radius: 16px; padding: 16px; background: linear-gradient(135deg, var(--red), var(--red2)); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.login-error { background: #fee2e2; color: #991b1b; padding: 12px 14px; border-radius: 14px; font-weight: 800; }
.app-body { min-height: 100vh; background: #07111f; color: var(--text); display: grid; grid-template-columns: 280px 1fr; }
.sidebar { background: rgba(2,6,23,.88); border-right: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 26px; }
.brand-area { display: flex; gap: 14px; align-items: center; }
.pix-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-area strong { display: block; }
.brand-area span { display: block; color: var(--muted); font-size: 12px; }
.nav-item { color: #e2e8f0; text-decoration: none; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; margin-bottom: 8px; }
.nav-item:hover { background: rgba(255,255,255,.06); }
.user-box { margin-top: auto; background: rgba(255,255,255,.05); border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 999px; background: var(--red); display: grid; place-items: center; font-weight: 900; }
.user-box span { display: block; color: var(--muted); font-size: 12px; }
.logout-link { grid-column: 1 / -1; color: #fca5a5; text-decoration: none; font-weight: 800; }
.main-content { padding: 34px 46px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.page-header h1 { font-size: 34px; margin: 0; }
.page-header p { color: var(--muted); margin: 8px 0 0; }
.space-section { margin-bottom: 34px; }
.space-section h2 { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; }
.space-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.space-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.space-card, .admin-card { text-decoration: none; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; gap: 16px; align-items: center; min-height: 116px; }

.space-card:hover, .admin-card:hover { 
    border-color: rgba(217,35,46,.55); 
    transform: translateY(-2px); 
}

.space-card.space-commerzbank:hover {
    border-color: rgba(255,204,0,.85);
    box-shadow: 0 0 24px rgba(255,204,0,.25);
}

.space-card.space-samsung:hover {
    border-color: rgba(20,40,160,.85);
    box-shadow: 0 0 24px rgba(20,40,160,.25);
}

.space-card.space-starbucks:hover {
    border-color: rgba(0,112,74,.85);
    box-shadow: 0 0 24px rgba(0,112,74,.25);
}

.pix-space-card:hover {
    border-color: rgba(217,35,46,.85);
    box-shadow: 0 0 24px rgba(217,35,46,.25);
}

.space-card.space-commerzbank:hover i {
    color: #ffcc00;
}

.space-card.space-samsung:hover i {
    color: #1428A0;
}

.space-card.space-starbucks:hover i {
    color: #00704A;
}

.pix-space-card:hover i {
    color: #D9232E;
}

.space-icon { width: 54px; height: 54px; border-radius: 18px; background: rgba(217,35,46,.16); color: #fca5a5; display: grid; place-items: center; font-size: 22px; }
.space-card strong, .admin-card strong { display: block; font-size: 18px; }
.space-card span, .admin-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.placeholder-card, .table-card { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.user-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr 120px; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.user-row.header { color: var(--muted); font-weight: 900; }
@media (max-width: 1000px) { .login-shell, .app-body { grid-template-columns: 1fr; } .sidebar { position: relative; } .space-grid, .space-grid.two, .admin-grid, .login-feature-grid { grid-template-columns: 1fr; } }

/* BRANDSPACE V0.1a - Public white landing page */
.public-landing-body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #050505;
    font-family: Aptos, Segoe UI, Arial, sans-serif;
}

.public-landing {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 120px 1fr 90px;
    padding: 0 64px;
}

.public-brand-top {
    display: flex;
    justify-content: center;
    align-items: end;
}

.public-pix-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.public-landing-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
}

.public-landing-center h1 {
    margin: 0;
    font-size: clamp(52px, 8vw, 86px);
    font-weight: 950;
    letter-spacing: -3px;
}

.public-landing-center h2 {
    margin: 0;
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 950;
    letter-spacing: .5px;
}

.public-login-hint {
    margin-top: 54px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 750;
    font-size: 16px;
}

.public-login-button {
    margin-top: 56px;
    min-width: 160px;
    padding: 12px 30px;
    border: 1px solid #bdbdbd;
    color: #111111;
    text-decoration: none;
    font-weight: 850;
    background: #ffffff;
    transition: .18s ease;
}

.public-login-button:hover {
    background: #111111;
    color: #ffffff;
}

.public-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555555;
}

.public-footer strong {
    color: #111111;
}

/* BRANDSPACE V0.1a - pixPASSION overview / space chooser */
.space-dashboard-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 950;
}

.notification-dot {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--red);
    color: #fff;
    font-weight: 950;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.section-title-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.customer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-space-card {
    min-height: 132px;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}

.space-logo-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(217,35,46,.18);
    color: #fecaca;
    display: grid;
    place-items: center;
    font-weight: 950;
    font-size: 18px;
    flex: 0 0 auto;
}

.space-card.space-starbucks .space-logo-badge,
.space-card.space-commerzbank .space-logo-badge,
.space-card.space-samsung .space-logo-badge {
width: 72px;
height: 72px;
background: rgba(255,255,255,.96);
border-radius: 22px;
padding: 6px;
overflow: hidden;
box-shadow: 0 16px 36px rgba(0,0,0,.22);
}

.space-logo-image {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
}

.customer-logo-image {
width: 60px;
height: 60px;
object-fit: contain;
display: block;
}

.space-card.space-starbucks .customer-logo-image {
border-radius: 50%;
}

.space-logo-badge.pix {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.pix-logo-image {
    width: 66px;
    height: 66px;
    display: block;
    object-fit: contain;
    object-position: center center;
}

.space-logo-badge.muted {
    background: rgba(255,255,255,.08);
    color: var(--muted);
}

.space-card-text {
    flex: 1;
}

.locked-card {
    opacity: .9;
}

.space-status-strip {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
}

.space-status-strip strong,
.space-status-strip span {
    display: block;
}

.space-status-strip span {
    color: var(--muted);
    margin-top: 4px;
    font-size: 13px;
}

.enhanced-admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.primary-admin-card {
    border-color: rgba(217,35,46,.55);
    background: linear-gradient(135deg, rgba(217,35,46,.18), rgba(255,255,255,.04));
}

@media (max-width: 1100px) {
    .public-landing {
        padding: 0 24px;
    }
    .customer-grid,
    .pix-grid,
    .space-status-strip,
    .enhanced-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* BRANDSPACE V0.1a Premium V3 - Login Modal Overlay */
.public-login-button {
    cursor: pointer;
    appearance: none;
    font-family: inherit;
}

.brand-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.brand-login-overlay.active {
    display: flex;
}

.brand-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.brand-login-modal {
    position: relative;
    width: min(460px, 92vw);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 32px;
    box-shadow: 0 34px 90px rgba(15, 23, 42, .28);
    padding: 34px;
    color: #07111f;
    text-align: center;
    animation: brandLoginIn .18s ease-out;
}

@keyframes brandLoginIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.brand-login-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.brand-login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.brand-login-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.brand-login-modal h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -1px;
}

.brand-login-modal p {
    margin: 7px 0 24px;
    color: #64748b;
    font-weight: 850;
    font-size: 13px;
    letter-spacing: .7px;
}

.brand-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.brand-login-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 850;
    color: #0f172a;
}

.brand-login-form input {
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: #ffffff;
    outline: none;
}

.brand-login-form input:focus {
    border-color: #d9232e;
    box-shadow: 0 0 0 4px rgba(217, 35, 46, .12);
}

.brand-login-form button {
    margin-top: 4px;
    border: none;
    border-radius: 16px;
    padding: 15px 18px;
    background: #d9232e;
    color: #ffffff;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-login-form button:hover {
    background: #b91c1c;
}

@media (max-width: 700px) {
    .brand-login-modal {
        padding: 28px 22px;
        border-radius: 26px;
    }
}

/* BRANDSPACE V0.2.1 Benutzerverwaltung */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-header h1 {
    margin: 0 0 8px 0;
    font-size: 34px;
    line-height: 1.15;
}

.page-header p {
    margin: 0;
    color: #9ca3af;
}

.eyebrow {
    margin: 0 0 8px 0 !important;
    color: #e21b2d !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.admin-card {
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
    padding: 22px;
}

.primary-action,
.secondary-action,
.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: .18s ease;
}

.primary-action {
    background: linear-gradient(135deg, #b00020, #e21b2d);
    color: #ffffff;
    border: 0;
    padding: 13px 18px;
    cursor: pointer;
}

.secondary-action {
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, .25);
    padding: 12px 16px;
}

.table-action {
    color: #ffffff;
    background: rgba(226, 27, 45, .18);
    border: 1px solid rgba(226, 27, 45, .34);
    padding: 8px 12px;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    text-align: left;
}

.admin-table th {
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.admin-table td span {
    color: #9ca3af;
    font-size: 13px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.status-pill.active {
    color: #86efac;
    background: rgba(22, 163, 74, .14);
}

.status-pill.inactive {
    color: #fca5a5;
    background: rgba(239, 68, 68, .14);
}

.admin-form {
    display: grid;
    gap: 18px;
}

.form-section h2 {
    margin: 0 0 16px 0;
    font-size: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid label,
.status-toggle {
    display: grid;
    gap: 8px;
    color: #e5e7eb;
    font-weight: 700;
}

.form-grid input,
.form-grid select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: rgba(2, 6, 23, .55);
    color: #ffffff;
    padding: 13px 14px;
    outline: none;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: rgba(226, 27, 45, .8);
    box-shadow: 0 0 0 4px rgba(226, 27, 45, .16);
}

.form-help {
    color: #9ca3af;
    margin-top: -8px;
}

.space-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.space-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 18px;
    background: rgba(2, 6, 23, .32);
}

.space-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #e21b2d;
}

.space-checkbox strong {
    display: block;
    color: #ffffff;
}

.space-checkbox small {
    display: block;
    color: #9ca3af;
    margin-top: 3px;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #e21b2d;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.error-box {
    margin-bottom: 18px;
    border: 1px solid rgba(226, 27, 45, .45);
    background: rgba(226, 27, 45, .13);
    color: #fecdd3;
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .page-header {
        flex-direction: column;
    }

    .form-grid,
    .space-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.space-card.space-commerzbank {
    position: relative;
    overflow: hidden;
}

.space-card.space-commerzbank::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -40px;
    top: -40px;

    border-radius: 50%;

    background: rgba(255, 204, 0, 0.16);

    filter: blur(50px);

    pointer-events: none;
}

.space-card.space-samsung {
    position: relative;
    overflow: hidden;
}

.space-card.space-samsung::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -40px;
    top: -40px;

    border-radius: 50%;

    background: rgba(20, 40, 160, 0.18);

    filter: blur(50px);

    pointer-events: none;
}

.space-card.space-starbucks {
    position: relative;
    overflow: hidden;
}

.space-card.space-starbucks::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -40px;
    top: -40px;

    border-radius: 50%;

    background: rgba(0, 112, 74, 0.18);

    filter: blur(50px);

    pointer-events: none;
}

.pix-space-card {
    position: relative;
    overflow: hidden;
}

.pix-space-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -50px;
    top: -50px;

    border-radius: 50%;

    background: rgba(217, 35, 46, 0.18);

    filter: blur(60px);

    pointer-events: none;
}

.space-card:hover::before {
    opacity: 1;
    transform: scale(1.15);
}

.space-card::before {
    opacity: .75;
    transition: all .25s ease;
}

/* BRANDSPACE V0.4 - Global Mail Center */
.mail-center-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.mail-center-card {
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
    padding: 24px;
}

.mail-center-card h2 {
    margin: 0 0 18px 0;
    font-size: 22px;
    color: #ffffff;
}

.mail-center-card label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: #e5e7eb;
    font-weight: 800;
}

.mail-center-card input,
.mail-center-card select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: rgba(2, 6, 23, .55);
    color: #ffffff;
    padding: 13px 14px;
    outline: none;
    font: inherit;
}

.mail-center-card input:focus,
.mail-center-card select:focus {
    border-color: rgba(226, 27, 45, .8);
    box-shadow: 0 0 0 4px rgba(226, 27, 45, .16);
}

.mail-center-card small {
    color: #94a3b8;
    font-weight: 600;
}

.mail-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mail-status-grid div {
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(2, 6, 23, .34);
    border-radius: 16px;
    padding: 16px;
}

.mail-status-grid span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.mail-status-grid strong {
    color: #ffffff;
}

.mail-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 12px !important;
}

.mail-check input {
    width: 18px;
    height: 18px;
    accent-color: #e21b2d;
}

.mail-center-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(15, 23, 42, .62);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 22px;
    padding: 18px;
}

.mail-test-card {
    margin-top: 20px;
}

.mail-message {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 800;
}

.mail-message.success {
    color: #86efac;
    background: rgba(22, 163, 74, .13);
    border: 1px solid rgba(22, 163, 74, .35);
}

.mail-message.error,
.mail-last-error {
    color: #fecaca;
    background: rgba(239, 68, 68, .13);
    border: 1px solid rgba(239, 68, 68, .35);
}

.mail-last-error {
    border-radius: 14px;
    padding: 12px;
    margin-top: 14px;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .mail-center-grid,
    .mail-status-grid {
        grid-template-columns: 1fr;
    }

    .mail-center-actions {
        flex-direction: column;
    }
}

.space-card-no-access {
    opacity: 0.62;
    filter: grayscale(0.35);
}

.space-card-no-access:hover {
    opacity: 0.88;
}

.space-access-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
}

.access-denied-shell {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.access-denied-card {
    width: min(720px, 100%);
    border-radius: 28px;
    background: #ffffff;
    color: #0f172a;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.access-denied-icon {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc2626;
    font-size: 2rem;
}

.access-denied-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.access-denied-grid > div {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1rem;
    background: #f8fafc;
}

.access-denied-grid span {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.primary-button {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    background: #0f766e;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.form-section-hint {
    margin: -0.4rem 0 1.25rem 0;
    color: #9ca3af;
    font-size: 0.92rem;
    font-weight: 600;
}

.admin-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-check-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.52);
    color: #ffffff;
    cursor: pointer;
}

.admin-check-card input {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: #e11d48;
}

.admin-check-card strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.15;
}

.admin-check-card small {
    display: block;
    margin-top: 0.2rem;
    color: #93c5fd;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.admin-check-card em {
    display: block;
    margin-top: 0.35rem;
    color: #9ca3af;
    font-style: normal;
    font-size: 0.82rem;
    line-height: 1.3;
}

.group-check-card:has(input:checked) {
    border-color: rgba(225, 29, 72, 0.75);
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(15, 23, 42, 0.72));
}

@media (max-width: 1100px) {
    .admin-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* BRANDSPACE V0.5.7 - Benutzerliste: neue Badge-PNGs */
.access-logo-stack {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 220px;
}

.access-badge {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    overflow: visible;
}

.access-badge img {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: contain;
    object-position: center center;
}

.access-badge-fallback {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.05em;
}

.access-empty {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    color: #ffffff;
}

.sortable i {
    margin-left: 6px;
    opacity: .6;
}

/* BRANDSPACE V0.5.4 - Login Passwort-Auge */
.brand-password-field {
    position: relative;
    width: 100%;
}

.brand-password-field input {
    width: 100%;
    padding-right: 52px !important;
}

.brand-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.brand-password-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

Direkt unterhalb der brand-password-toggle-Regeln ergänzen:
.eye-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.eye-icon-open[hidden] {
    display: none !important;
}

.eye-icon-closed[hidden] {
    display: none !important;
}

.eye-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eye-icon-open svg circle {
    fill: currentColor;
    stroke: currentColor;
}

.brand-login-help-row {
    text-align: center;
    margin-top: -4px;
}

.brand-login-help-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
}

.brand-login-help-link:hover {
    color: #e21b2d;
}

/* BRANDSPACE V0.5.5 - Passwort Reset Seiten */
.brand-reset-body {
    min-height: 100vh;
    background: radial-gradient(circle at 80% 30%, rgba(217,35,46,.18), transparent 35%), linear-gradient(135deg, #030712, #0f172a);
    color: #f8fafc;
    display: grid;
    place-items: center;
    padding: 32px;
}

.brand-reset-card {
    width: min(520px, 94vw);
    background: rgba(15, 23, 42, .88);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(0,0,0,.32);
    padding: 38px;
}

.brand-reset-card h1 {
    margin: 0 0 12px 0;
    font-size: 34px;
    letter-spacing: -0.5px;
}

.brand-reset-card p {
    color: #cbd5e1;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.brand-reset-card label {
    display: grid;
    gap: 8px;
    color: #ffffff;
    font-weight: 850;
    margin-bottom: 18px;
}

.brand-reset-card input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 16px;
    background: rgba(2, 6, 23, .55);
    color: #ffffff;
    padding: 15px 16px;
    outline: none;
    font: inherit;
}

.brand-reset-card input:focus {
    border-color: #e21b2d;
    box-shadow: 0 0 0 4px rgba(226, 27, 45, .16);
}

.brand-reset-button {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #b00020, #e21b2d);
    color: #ffffff;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.brand-reset-message {
    border: 1px solid rgba(22, 163, 74, .38);
    background: rgba(22, 163, 74, .14);
    color: #bbf7d0;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-weight: 850;
    text-align: center;
}

.brand-reset-error {
    border: 1px solid rgba(239, 68, 68, .42);
    background: rgba(239, 68, 68, .14);
    color: #fecaca;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-weight: 850;
    text-align: center;
}

.brand-reset-back {
    display: block;
    margin-top: 18px;
    color: #cbd5e1;
    text-decoration: none;
    text-align: center;
    font-weight: 800;
}

.brand-reset-back:hover {
    color: #ffffff;
}

.brand-login-error {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;

    padding: 16px 18px;

    border-radius: 16px;

    background: rgba(185, 28, 28, 0.12);

    border: 1px solid rgba(220, 38, 38, 0.45);

    color: #b91c1c;
}

.brand-login-error-icon {
    width: 32px;
    height: 32px;

    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(220, 38, 38, 0.15);

    font-weight: 900;
    font-size: 18px;

    flex-shrink: 0;
}

.brand-login-error-text {
    font-weight: 800;
    line-height: 1.4;
}