﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Oxanium:wght@500;600;700&display=swap');

:root {
    --bg: #0b0d11;
    --panel: rgba(16, 20, 28, 0.92);
    --panel-alt: rgba(20, 25, 34, 0.95);
    --text: #f6f7fb;
    --muted: #9aa3b2;
    --accent: #d72638;
    --accent-2: #ff7a18;
    --accent-3: #f7b538;
    --success: #19b37e;
    --card-radius: 18px;
    --shadow: 0 18px 45px rgba(5, 8, 14, 0.4);
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --font-body: 'Space Grotesk', sans-serif;
    --font-display: 'Oxanium', sans-serif;
}

/* Accounting */
.accounting-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 20px;
}

.accounting-hero-main {
    max-width: 520px;
}

.accounting-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.accounting-hero-panel {
    flex: 1;
    min-width: 280px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 16, 22, 0.85);
    padding: 16px;
    display: grid;
    gap: 14px;
    box-shadow: var(--shadow);
}

.accounting-balance-card {
    display: grid;
    gap: 6px;
}

.accounting-balance-card strong {
    font-size: 28px;
    letter-spacing: 0.5px;
}

.accounting-balance-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.accounting-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.accounting-kpi {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 20, 26, 0.8);
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.accounting-kpi strong {
    font-size: 16px;
}

.accounting-shell {
    display: grid;
    gap: 18px;
}

.accounting-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.accounting-tab-button {
    border-radius: 999px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.7);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.accounting-tab-button.is-active {
    background: rgba(215, 38, 56, 0.18);
    border-color: rgba(215, 38, 56, 0.5);
    box-shadow: 0 0 18px rgba(215, 38, 56, 0.2);
}

.accounting-tab {
    display: none;
}

.accounting-tab.is-active {
    display: block;
    animation: accFade 0.25s ease;
}

.accounting-panel {
    display: grid;
    gap: 16px;
}

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

.accounting-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.accounting-filters label input,
.accounting-filters label select,
.accounting-category-form input,
.accounting-category-form select,
.accounting-settings-card input,
.accounting-settings-card select,
.accounting-settings-card textarea,
.accounting-form-grid input,
.accounting-form-grid select,
.accounting-form-grid textarea {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 12, 18, 0.9);
    color: var(--text);
    padding: 8px 10px;
}

.accounting-list {
    display: grid;
    gap: 12px;
}

.accounting-entry {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 15, 20, 0.8);
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.accounting-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 32px rgba(4, 8, 14, 0.35);
}

.accounting-entry-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accounting-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.accounting-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.accounting-entry-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #d2d6df;
}

.accounting-entry-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.accounting-amount {
    font-size: 18px;
    font-weight: 700;
}

.accounting-amount.is-income {
    color: var(--success);
}

.accounting-amount.is-expense {
    color: var(--accent);
}

.accounting-receipt-list {
    display: grid;
    gap: 10px;
}

.accounting-receipt-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 15, 20, 0.75);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.accounting-receipt-actions {
    display: flex;
    gap: 8px;
}

.accounting-category-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    align-items: end;
}

.accounting-category-list {
    display: grid;
    gap: 10px;
}

.accounting-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 15, 20, 0.8);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-info span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.category-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.accounting-settings-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.accounting-settings-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.78);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.accounting-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 50;
}

.accounting-modal.is-open {
    display: grid;
    place-items: center;
}

.accounting-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, 0.75);
    backdrop-filter: blur(6px);
}

.accounting-modal-card {
    position: relative;
    z-index: 2;
    width: min(760px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.96);
    padding: 18px;
    display: grid;
    gap: 12px;
    box-shadow: var(--shadow);
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 38, 56, 0.6) rgba(255, 255, 255, 0.08);
}

.accounting-modal-card.wide {
    width: min(860px, 94vw);
}

.accounting-modal-card::-webkit-scrollbar {
    width: 8px;
}

.accounting-modal-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.accounting-modal-card::-webkit-scrollbar-thumb {
    background: rgba(215, 38, 56, 0.6);
    border-radius: 999px;
}

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

.accounting-type-toggle {
    display: flex;
    gap: 8px;
}

.acc-type-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.7);
    color: var(--text);
    padding: 6px 14px;
    cursor: pointer;
}

.acc-type-btn.is-active {
    border-color: rgba(215, 38, 56, 0.45);
    background: rgba(215, 38, 56, 0.2);
}

.accounting-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.accounting-form-grid .full {
    grid-column: 1 / -1;
}

.accounting-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.accounting-files-list {
    display: grid;
    gap: 10px;
}

.accounting-file-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 15, 20, 0.85);
}

.accounting-file-actions {
    display: flex;
    gap: 8px;
}

.accounting-files-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

@keyframes accFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Receipt */
.receipt-view .sidebar {
    display: none;
}

.receipt-view .main-content {
    margin-left: 0;
    padding-left: 0;
}

.receipt-panel {
    max-width: 980px;
    margin: 0 auto;
}

.receipt-toolbar {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.receipt-card {
    position: relative;
    overflow: hidden;
    --receipt-accent: var(--accent);
    --receipt-accent-2: var(--accent-2);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(150deg, rgba(18, 22, 30, 0.98), rgba(9, 11, 17, 0.98)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 6px);
    padding: 26px;
    display: grid;
    gap: 18px;
    box-shadow: 0 28px 55px rgba(3, 6, 12, 0.55);
    animation: receiptEnter 0.45s ease;
}

.receipt-card::before {
    content: attr(data-brand);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: clamp(34px, 6vw, 92px);
    letter-spacing: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.04);
    transform: rotate(-12deg);
    pointer-events: none;
}

.receipt-card::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 18px;
    bottom: 18px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--receipt-accent), var(--receipt-accent-2), var(--accent-3));
    box-shadow: 0 0 18px rgba(215, 38, 56, 0.4);
    opacity: 0.85;
}

.receipt-type-income {
    --receipt-accent: var(--success);
    --receipt-accent-2: #6de4a8;
}

.receipt-type-expense .receipt-type-pill {
    color: var(--accent);
    border-color: rgba(215, 38, 56, 0.5);
    background: rgba(215, 38, 56, 0.12);
}

.receipt-type-income .receipt-type-pill {
    color: var(--success);
    border-color: rgba(25, 179, 126, 0.5);
    background: rgba(25, 179, 126, 0.12);
}

.receipt-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.receipt-brand-block {
    display: grid;
    gap: 6px;
}

.receipt-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.receipt-type-pill {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.receipt-brand {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: 1px;
    margin: 0;
}

.receipt-id {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.receipt-meta {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 12, 18, 0.75);
    min-width: 230px;
    position: relative;
    z-index: 1;
}

.receipt-meta div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.receipt-meta span {
    font-weight: 600;
    color: var(--text);
}

.receipt-meta strong {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: var(--muted);
}

.receipt-body {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.2fr);
    align-items: start;
    position: relative;
    z-index: 1;
}

.receipt-amount {
    font-size: 30px;
    font-weight: 700;
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(7, 10, 16, 0.7));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.receipt-amount small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.receipt-type-expense .receipt-amount {
    color: var(--accent);
}

.receipt-type-income .receipt-amount {
    color: var(--success);
}

.receipt-details {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.receipt-details strong {
    display: block;
}

.receipt-details em {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    font-style: normal;
}

.receipt-details > div {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 18, 0.75);
    padding: 12px 14px;
    display: grid;
    gap: 6px;
}

.receipt-details > div strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.receipt-details > div span {
    font-size: 14px;
    font-weight: 600;
}

.receipt-details > div em {
    font-size: 12px;
    color: #cfd5df;
}

.receipt-files {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 18, 0.75);
    padding: 12px 14px;
    grid-column: 1 / -1;
}

.receipt-files ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.receipt-files li a {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
}

.receipt-files li a:hover {
    text-decoration: underline;
}

.receipt-note {
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 12px 14px;
    font-size: 12px;
    color: var(--muted);
    background: rgba(9, 12, 18, 0.7);
}

.receipt-signature {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 10px;
    position: relative;
    z-index: 1;
}

.receipt-layout-classic .receipt-card {
    background:
        linear-gradient(180deg, rgba(12, 14, 20, 0.98), rgba(8, 9, 14, 0.98)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 6px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Invoice Module */
.invoice-panel {
    display: grid;
    gap: 16px;
}

.invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.invoice-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.invoice-kpi {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 15, 20, 0.8);
    padding: 12px 14px;
    display: grid;
    gap: 6px;
}

.invoice-kpi strong {
    font-size: 18px;
}

.invoice-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.invoice-filters input,
.invoice-filters select,
.invoice-form-grid input,
.invoice-form-grid select,
.invoice-form-grid textarea,
.invoice-customer-form input,
.invoice-customer-form textarea,
.invoice-item-form input,
.invoice-item-form textarea,
.invoice-settings-form input,
.invoice-settings-form textarea,
.invoice-settings-form select {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 12, 18, 0.9);
    color: var(--text);
    padding: 8px 10px;
}

.invoice-list {
    display: grid;
    gap: 12px;
}

.invoice-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.82);
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.invoice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 32px rgba(4, 8, 14, 0.35);
}

.invoice-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.invoice-card-title strong {
    font-size: 16px;
}

.invoice-status {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.invoice-status.is-paid {
    border-color: rgba(25, 179, 126, 0.5);
    color: var(--success);
    background: rgba(25, 179, 126, 0.14);
}

.invoice-status.is-overdue {
    border-color: rgba(215, 38, 56, 0.5);
    color: var(--accent);
    background: rgba(215, 38, 56, 0.12);
}

.invoice-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.invoice-card-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.invoice-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.invoice-amount {
    font-size: 18px;
    font-weight: 700;
}

.invoice-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 60;
}

.invoice-modal.is-open {
    display: grid;
    place-items: center;
}

.invoice-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, 0.75);
    backdrop-filter: blur(6px);
}

.invoice-modal-card {
    position: relative;
    z-index: 2;
    width: min(980px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.97);
    padding: 18px;
    display: grid;
    gap: 14px;
    box-shadow: var(--shadow);
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 38, 56, 0.6) rgba(255, 255, 255, 0.08);
}

.invoice-modal-card::-webkit-scrollbar {
    width: 8px;
}

.invoice-modal-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.invoice-modal-card::-webkit-scrollbar-thumb {
    background: rgba(215, 38, 56, 0.6);
    border-radius: 999px;
}

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

.invoice-stepper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.invoice-stepper .invoice-step {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 15, 20, 0.6);
    color: var(--muted);
    padding: 6px 12px;
    cursor: pointer;
}

.invoice-stepper .invoice-step.is-active {
    border-color: rgba(215, 38, 56, 0.5);
    color: var(--text);
    background: rgba(215, 38, 56, 0.18);
}

.invoice-step-panel {
    display: none;
}

.invoice-step-panel.is-active {
    display: block;
    animation: accFade 0.25s ease;
}

.invoice-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.invoice-form-grid .full {
    grid-column: 1 / -1;
}

.invoice-inline-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.invoice-lines-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.invoice-lines-table {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 12, 18, 0.8);
    padding: 10px;
    display: grid;
    gap: 10px;
}

.invoice-line-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) 100px 140px 100px 100px 100px auto;
    gap: 8px;
    align-items: center;
}

.invoice-line-row input {
    width: 100%;
}

.invoice-line-row .ghost-button {
    justify-self: end;
}

.invoice-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.invoice-summary-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.8);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.invoice-summary-card input,
.invoice-summary-card textarea {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 10, 16, 0.75);
    color: var(--text);
    padding: 8px 10px;
    width: 100%;
}

.invoice-summary-row,
.invoice-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.invoice-summary-total strong {
    font-size: 18px;
}

.invoice-customer-form,
.invoice-item-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    align-items: end;
}

.invoice-customer-list,
.invoice-item-list {
    display: grid;
    gap: 8px;
}

.invoice-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 12, 18, 0.8);
}

.invoice-view .sidebar {
    display: none;
}

.invoice-view .main-content {
    margin-left: 0;
    padding-left: 0;
}

.invoice-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.invoice-sheet {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.92);
    padding: 26px;
    display: grid;
    gap: 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.invoice-sheet::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 18px;
    bottom: 18px;
    width: 5px;
    background: var(--invoice-accent);
    border-radius: 999px;
    opacity: 0.8;
}

.invoice-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.invoice-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.invoice-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px;
}

.invoice-meta {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 12, 18, 0.75);
    min-width: 220px;
}

.invoice-meta div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.invoice-address {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 18, 0.8);
}

.invoice-address span {
    display: block;
    font-size: 13px;
    color: #d5d9e4;
}

.invoice-lines table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-lines th,
.invoice-lines td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.invoice-lines th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: var(--muted);
}

.invoice-lines td span.muted {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.invoice-summary {
    justify-self: end;
    width: min(360px, 100%);
    display: grid;
    gap: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 18, 0.8);
    padding: 14px;
}

.invoice-summary-row,
.invoice-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.invoice-summary-total strong {
    font-size: 18px;
}

.invoice-notes {
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(10, 12, 18, 0.7);
    padding: 12px 14px;
    font-size: 12px;
    color: var(--muted);
}

.invoice-footer {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

body.invoice-light .invoice-panel,
body.invoice-light .invoice-card,
body.invoice-light .invoice-kpi,
body.invoice-light .invoice-summary-card,
body.invoice-light .invoice-lines-table {
    background: rgba(255, 255, 255, 0.92);
    color: #111;
}

body.invoice-light .invoice-card,
body.invoice-light .invoice-kpi,
body.invoice-light .invoice-summary-card,
body.invoice-light .invoice-lines-table {
    border-color: rgba(0, 0, 0, 0.1);
}

body.invoice-light .invoice-card-meta,
body.invoice-light .invoice-status,
body.invoice-light .invoice-panel .muted {
    color: rgba(17, 17, 17, 0.7);
}

@media (max-width: 900px) {
    .invoice-line-row {
        grid-template-columns: 1fr 90px 120px 80px 80px 90px auto;
    }
}

.receipt-layout-classic .receipt-card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
    box-shadow: none;
}

@keyframes receiptEnter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 960px) {
    .accounting-hero {
        flex-direction: column;
    }
    .accounting-hero-panel {
        width: 100%;
    }
    .receipt-body {
        grid-template-columns: 1fr;
    }
    .receipt-card {
        padding: 20px;
    }
    .receipt-meta {
        width: 100%;
    }
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }
    body {
        background: #f3f5f9 !important;
        color: #1b2331 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .receipt-view .sidebar,
    .receipt-view .topbar,
    .receipt-toolbar,
    .invoice-view .sidebar,
    .invoice-view .topbar,
    .invoice-toolbar {
        display: none !important;
    }
    .receipt-panel,
    .invoice-panel {
        max-width: 100%;
        margin: 0;
    }
    .receipt-card {
        border: 1px solid #d4dceb !important;
        background: linear-gradient(165deg, #ffffff 0%, #f8fafd 63%, #edf2f9 100%) !important;
        box-shadow: 0 12px 28px rgba(29, 39, 54, 0.16) !important;
        padding: 14mm 12mm !important;
        border-radius: 16px !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .receipt-card::before {
        color: rgba(37, 53, 75, 0.06) !important;
        font-size: 48px !important;
    }
    .receipt-card::after {
        opacity: 1 !important;
        width: 6px !important;
        left: 12px !important;
        top: 12px !important;
        bottom: 12px !important;
    }
    .receipt-meta,
    .receipt-details > div,
    .receipt-files,
    .receipt-note,
    .receipt-amount {
        background: #ffffff !important;
        border: 1px solid #d8deea !important;
        box-shadow: none !important;
        color: #1b2331 !important;
    }
    .receipt-type-expense .receipt-amount {
        color: #bc2431 !important;
    }
    .receipt-type-income .receipt-amount {
        color: #148a64 !important;
    }
    .receipt-type-pill {
        border: 1px solid #b9c5d9 !important;
        color: #1d2a3f !important;
        background: #f1f5fb !important;
    }
    .receipt-brand,
    .receipt-meta span,
    .receipt-details > div span {
        color: #1d2a3f !important;
    }
    .receipt-meta strong,
    .receipt-details > div strong,
    .receipt-amount small {
        color: #47566f !important;
    }
    .receipt-signature {
        border-color: #d8deea !important;
        color: #4a5b72 !important;
    }
    .receipt-files li a {
        color: #1d2a3f !important;
        text-decoration: none !important;
    }
    a {
        color: inherit !important;
        text-decoration: none !important;
    }
    .receipt-body {
        grid-template-columns: 1fr 1.3fr;
    }
    .invoice-sheet {
        background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%) !important;
        border: 1px solid #d4dceb !important;
        box-shadow: 0 12px 30px rgba(29, 39, 54, 0.16) !important;
        padding: 14mm 12mm !important;
        border-radius: 16px !important;
    }
    .invoice-sheet::before {
        display: block !important;
        width: 6px !important;
        left: 12px !important;
        top: 12px !important;
        bottom: 12px !important;
        opacity: 1 !important;
    }
    .invoice-head {
        padding: 12px 14px !important;
        border-radius: 12px !important;
        background: linear-gradient(120deg, var(--invoice-accent), #ff8a30) !important;
    }
    .invoice-head h2,
    .invoice-head .eyebrow,
    .invoice-head p,
    .invoice-head strong,
    .invoice-head span,
    .invoice-head .muted {
        color: #ffffff !important;
    }
    .invoice-meta,
    .invoice-address,
    .invoice-summary,
    .invoice-notes {
        background: #ffffff !important;
        border: 1px solid #d8deea !important;
        color: #1b2331 !important;
    }
    .invoice-meta {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.46) !important;
        color: #ffffff !important;
    }
    .invoice-meta strong,
    .invoice-meta span {
        color: #ffffff !important;
    }
    .invoice-lines th,
    .invoice-lines td {
        border-color: #d9deea !important;
        color: #1d2a3f !important;
    }
    .invoice-lines th {
        background: #eef3fa !important;
        color: #3a4b65 !important;
    }
    .invoice-footer {
        color: #3d4c63 !important;
        border-color: #d9deea !important;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(900px circle at 10% 8%, rgba(215, 38, 56, 0.24), transparent 60%),
        radial-gradient(720px circle at 92% 18%, rgba(255, 122, 24, 0.18), transparent 55%),
        radial-gradient(820px circle at 20% 90%, rgba(247, 181, 56, 0.12), transparent 55%),
        linear-gradient(180deg, #0a0c10 0%, #11111a 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.receipt-view {
    background:
        radial-gradient(880px circle at 12% 12%, rgba(247, 181, 56, 0.12), transparent 55%),
        radial-gradient(760px circle at 88% 18%, rgba(215, 38, 56, 0.16), transparent 55%),
        radial-gradient(620px circle at 50% 90%, rgba(255, 255, 255, 0.05), transparent 55%),
        linear-gradient(180deg, #0c1016 0%, #0b0d12 100%);
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.06), transparent 40%);
    animation: ambientFloat 18s ease-in-out infinite;
}

body::after {
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 8px);
    opacity: 0.4;
}

body.public-view {
    background:
        radial-gradient(900px circle at 10% 8%, rgba(215, 38, 56, 0.24), transparent 60%),
        radial-gradient(720px circle at 92% 18%, rgba(255, 122, 24, 0.2), transparent 55%),
        linear-gradient(180deg, #0a0c10 0%, #141422 100%);
    color: var(--text);
}

h1,
h2,
h3,
.brand-text strong,
.topbar-title h1 {
    font-family: var(--font-display);
    letter-spacing: 0.6px;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, rgba(14, 12, 16, 0.98) 0%, rgba(10, 10, 14, 0.95) 100%);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    box-shadow: 10px 0 40px rgba(4, 6, 10, 0.45);
    backdrop-filter: blur(12px);
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 10%, rgba(215, 38, 56, 0.25), transparent 55%),
        radial-gradient(circle at 80% 60%, rgba(255, 122, 24, 0.2), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

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

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

.brand-mark {
    width: 58px;
    height: 58px;
    padding: 6px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 95, 45, 0.24), transparent 62%),
        linear-gradient(145deg, rgba(18, 16, 22, 0.96), rgba(12, 11, 16, 0.96));
    border-radius: 16px;
    border: 1px solid rgba(255, 90, 36, 0.35);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

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

.brand-text strong {
    display: block;
    font-size: 18px;
    letter-spacing: 1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

body[data-sidebar-align='center'] .sidebar-nav {
    align-items: center;
}

body[data-sidebar-align='center'] .nav-item {
    text-align: center;
    width: 100%;
    justify-content: center;
}

body[data-sidebar-align='right'] .sidebar-nav {
    align-items: flex-end;
}

body[data-sidebar-align='right'] .nav-item {
    text-align: right;
    width: 100%;
    justify-content: flex-end;
}

.nav-item {
    text-decoration: none;
    color: var(--text);
    padding: 10px 14px;
    border-radius: 14px;
    background: transparent;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.nav-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
    flex: 0 0 28px;
}

.nav-label {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(215, 38, 56, 0.9), rgba(255, 122, 24, 0.9));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(24, 18, 22, 0.85);
    transform: translateX(4px);
    box-shadow: 0 12px 24px rgba(10, 6, 10, 0.35);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(215, 38, 56, 0.92), rgba(255, 122, 24, 0.88));
    box-shadow: var(--shadow);
    border-color: transparent;
    color: #0a0c10;
    font-weight: 600;
}

.nav-item.active span {
    color: #0a0c10;
}

.nav-item.active::before {
    opacity: 1;
}

.nav-item.has-unread {
    border-color: rgba(215, 38, 56, 0.5);
}

.nav-badge {
    background: #ff3b3b;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 14px rgba(255, 59, 59, 0.4);
    min-width: 22px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
}

.ghost-button {
    background: transparent;
    border: 1px solid #2f3136;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ghost-button:hover {
    border-color: var(--accent);
    color: var(--accent-3);
    background: rgba(241, 90, 36, 0.05);
}

.ghost-button.small {
    padding: 6px 12px;
    font-size: 13px;
}

.ghost-button.danger {
    border-color: rgba(181, 18, 18, 0.6);
    color: #ffb3b3;
    background: rgba(181, 18, 18, 0.12);
}

.ghost-button.danger:hover {
    border-color: rgba(240, 69, 69, 0.8);
    color: #ffd2d2;
    background: rgba(181, 18, 18, 0.25);
}

.main-content {
    flex: 1;
    padding: 28px 36px 60px;
}

.topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(14, 18, 26, 0.8);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.topbar-title h1 {
    margin: 6px 0 0;
    letter-spacing: 1px;
}

.topbar-eyebrow {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.topbar-user {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-inbox {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(145deg, rgba(22, 24, 30, 0.95), rgba(12, 14, 18, 0.85));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 auto;
}

.topbar-inbox::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 1px solid rgba(215, 38, 56, 0.18);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.topbar-inbox:hover {
    transform: translateY(-1px);
    border-color: rgba(215, 38, 56, 0.45);
    box-shadow: 0 6px 14px rgba(215, 38, 56, 0.18);
}

.topbar-inbox.has-unread {
    border-color: rgba(215, 38, 56, 0.7);
    box-shadow: 0 0 0 2px rgba(215, 38, 56, 0.18);
}

.topbar-inbox.has-unread::after {
    opacity: 1;
}

.inbox-icon {
    font-size: 12px;
}

.topbar-inbox .nav-badge {
    position: absolute;
    top: -7px;
    right: -7px;
}

.user-menu-tools .topbar-inbox .nav-badge {
    top: -8px;
    right: -8px;
}

.topbar-title {
    min-width: 0;
}

.user-meta {
    text-align: right;
    max-width: 320px;
    display: grid;
    gap: 4px;
}

.user-name {
    display: inline-block;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-title h1 {
    line-height: 1.1;
}

.user-name {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.user-link {
    font-size: 12px;
    color: var(--accent-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.ghost-button.small {
    padding: 6px 10px;
    font-size: 12px;
}

.user-rank,
.user-qual {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

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

.card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 20px;
}

.dashboard-v2 {
    display: grid;
    gap: 20px;
}

.dashboard-v2-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.dashboard-v2-stats .stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-v2-stats .stat-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -40% -20%;
    height: 140%;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.15), transparent 60%);
    opacity: 0.35;
    pointer-events: none;
}

.dashboard-v2-stats .stat-card.reveal {
    animation: dashRise 0.6s ease forwards;
}

.dashboard-v2-stats .stat-card.reveal:nth-child(1) { animation-delay: 0.05s; }
.dashboard-v2-stats .stat-card.reveal:nth-child(2) { animation-delay: 0.12s; }
.dashboard-v2-stats .stat-card.reveal:nth-child(3) { animation-delay: 0.19s; }
.dashboard-v2-stats .stat-card.reveal:nth-child(4) { animation-delay: 0.26s; }

.dashboard-v2-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: stretch;
}

.dashboard-v2-media.spotlight-panel {
    max-width: none;
    margin: 0;
    padding: 0;
}

.dashboard-v2-media .spotlight-media {
    border-radius: 20px;
    min-height: 360px;
}

.dashboard-v2-media .spotlight-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(215, 38, 56, 0.2), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.dashboard-v2-stack {
    display: grid;
    gap: 18px;
    align-content: start;
}

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

@media (max-width: 900px) {
    .dashboard-v2-stats {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

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

.dashboard-row--spotlight {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}

.spotlight-panel {
    padding: 0;
    overflow: hidden;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.spotlight-header {
    padding: 12px 14px 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.spotlight-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    max-height: 520px;
    background: linear-gradient(135deg, #1f1f2a, #09090f);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.spotlight-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.spotlight-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 6, 8, 0.9), rgba(5, 6, 8, 0.1));
    pointer-events: none;
}

.spotlight-overlay {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 80%;
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.spotlight-overlay h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #fff;
}

.spotlight-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.spotlight-controls {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

@media (max-width: 980px) {
    .spotlight-header {
        padding: 12px 12px 0;
    }
}

.dashboard-row .panel {
    min-width: 0;
}

.button-grid a {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.stat-card {
    background: var(--panel);
    border-radius: var(--card-radius);
    padding: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
}

.js-enabled .stat-card {
    opacity: 0;
    transform: translateY(12px);
}

.stat-card.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.22s ease-out;
}

.stat-card strong {
    font-size: 28px;
}

.gradient-a {
    background: linear-gradient(135deg, #2e2255, #6c4ad1);
}

.gradient-b {
    background: linear-gradient(135deg, #4a1320, #f24d72);
}

.gradient-c {
    background: linear-gradient(135deg, #0d3b2f, #2fd38f);
}

.gradient-d {
    background: linear-gradient(135deg, #2a2f5a, #5b6bd6);
}

.gradient-e {
    background: linear-gradient(135deg, #45205e, #8c58d2);
}

.dashboard-row {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 18px;
}

.dashboard-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 18px;
}

.dash-panel {
    position: relative;
    overflow: hidden;
}

.dash-panel--birthdays::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 10%, rgba(215, 38, 56, 0.22), transparent 55%);
    pointer-events: none;
}

.dash-panel--quick::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(215, 38, 56, 0.18), transparent 55%);
    pointer-events: none;
}

.birthday-hero {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.birthday-countdown {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(12, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.birthday-countdown strong {
    font-size: 20px;
    color: var(--accent-3);
}

.birthday-timer {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: birthdayPulse 2.4s ease-in-out infinite;
}

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

.birthday-person {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 15, 20, 0.6);
    font-size: 13px;
}

.birthday-person strong {
    color: var(--text);
}

.birthday-chip {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(215, 38, 56, 0.2);
    border: 1px solid rgba(215, 38, 56, 0.35);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.birthday-empty {
    margin-top: 10px;
    text-align: center;
}

.dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

@keyframes birthdayPulse {
    0% {
        transform: translateY(0);
        text-shadow: none;
    }
    50% {
        transform: translateY(-1px);
        text-shadow: 0 0 10px rgba(215, 38, 56, 0.4);
    }
    100% {
        transform: translateY(0);
        text-shadow: none;
    }
}

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

.panel {
    background: var(--panel);
    border-radius: var(--card-radius);
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
}

.panel.wide {
    grid-column: span 2;
}

.js-enabled .panel {
    opacity: 0;
    transform: translateY(12px);
}

.panel.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.22s ease-out;
}

.js-enabled .request-card,
.js-enabled .request-tile,
.js-enabled .wiki-card,
.js-enabled .mail-card,
.js-enabled .verwaltung-post,
.js-enabled .verwaltung-verhalten-card,
.js-enabled .verwaltung-weekly-row,
.js-enabled .verwaltung-stats-row,
.js-enabled .verwaltung-stats-bar {
    opacity: 0;
    transform: translateY(12px);
}

.request-card.reveal,
.request-tile.reveal,
.wiki-card.reveal,
.mail-card.reveal,
.verwaltung-post.reveal,
.verwaltung-verhalten-card.reveal,
.verwaltung-weekly-row.reveal,
.verwaltung-stats-row.reveal,
.verwaltung-stats-bar.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s ease-out;
}

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

.panel-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.panel-toggle {
    border-color: rgba(255, 255, 255, 0.12);
}

.panel.is-collapsed header {
    margin-bottom: 0;
}

.panel.is-collapsed .panel-body {
    display: none;
}

.panel.is-collapsed {
    padding: 12px 16px;
    border-color: rgba(255, 255, 255, 0.06);
}

.panel-body {
    color: var(--muted);
}

.panel-body.empty {
    padding: 20px;
    border: 1px dashed #3a3d44;
    border-radius: 12px;
}

.task-line {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #2b2e35;
    padding: 10px 0;
    color: var(--text);
}

.availability {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.green {
    background: #24d06b;
}

.dot.amber {
    background: #f2b84d;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.button-grid button {
    background: transparent;
    border: 1px solid #363a42;
    color: var(--text);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.button-grid a {
    text-align: center;
}

.feed div {
    padding: 10px 0;
    border-bottom: 1px solid #2b2e35;
}

.feed div:last-child {
    border-bottom: none;
}

.public-shell {
    flex: 1;
    padding: 60px 6vw;
}

body.public-view .app-shell {
    background: transparent;
}

body.public-view .public-shell {
    width: 100%;
    display: grid;
    place-items: center;
    padding: 80px 16px;
}

.public-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: center;
}

.login-hero {
    max-width: 520px;
    margin: 0 auto;
}

.public-card {
    background: linear-gradient(160deg, #1b1b1f 0%, #2b1111 100%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.js-enabled .public-card {
    opacity: 0;
    transform: translateY(12px);
}

body.public-view .public-panel {
    display: none;
}

body.public-view .public-card {
    width: min(480px, 92vw);
    background: linear-gradient(160deg, #1b1b1f 0%, #2b1111 100%);
    border: 1px solid #2a2d33;
    box-shadow: var(--shadow);
}

body.public-view .login-shell {
    width: 100%;
    display: grid;
    place-items: center;
    padding: 80px 16px;
}

.login-stage {
    position: relative;
    width: min(1100px, 94vw);
    padding: 28px;
    border-radius: 28px;
    background: radial-gradient(circle at 20% 20%, rgba(215, 38, 56, 0.18), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(255, 122, 24, 0.18), transparent 45%),
        linear-gradient(140deg, rgba(10, 12, 18, 0.9), rgba(12, 16, 24, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.login-stage::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 122, 24, 0.25), transparent 55%);
    animation: loginGlow 16s ease-in-out infinite;
    opacity: 0.7;
    pointer-events: none;
}

.login-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 40%, transparent 80%);
    animation: loginSheen 12s linear infinite;
    pointer-events: none;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.7;
    animation: loginFloat 10s ease-in-out infinite;
    pointer-events: none;
}

.login-orb--a {
    width: 180px;
    height: 180px;
    top: -60px;
    right: 12%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 122, 24, 0.55), transparent 65%);
}

.login-orb--b {
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: 8%;
    background: radial-gradient(circle at 30% 30%, rgba(215, 38, 56, 0.5), transparent 70%);
    animation-delay: -3s;
}

body.public-view .login-card {
    position: relative;
    background: linear-gradient(150deg, rgba(16, 18, 26, 0.92), rgba(20, 16, 24, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    padding: 36px;
    width: min(980px, 92vw);
}

.login-card::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 18px;
    border: 1px solid rgba(215, 38, 56, 0.25);
    opacity: 0.6;
    pointer-events: none;
}

.login-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 24, 0.3);
    color: #ffd1b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 122, 24, 0.1);
}

.login-head h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 36px);
}

.login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 28px;
    margin-top: 20px;
}

.login-feature-list {
    display: grid;
    gap: 12px;
}

.login-feature {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 18, 0.65);
    display: grid;
    gap: 6px;
}

.login-feature strong {
    font-size: 14px;
}

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

.login-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.login-status-card {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 14, 20, 0.7);
    display: grid;
    gap: 6px;
}

.login-status-card strong {
    font-size: 16px;
}

.login-status-card small {
    font-size: 11px;
    color: var(--muted);
}

.login-notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 122, 24, 0.4);
    color: #ffd7bf;
    background: rgba(255, 122, 24, 0.08);
    font-size: 12px;
}

.login-action {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 14, 20, 0.8);
    position: relative;
    overflow: hidden;
}

.login-action::after {
    content: '';
    position: absolute;
    inset: auto -40% -50% -40%;
    height: 120%;
    background: radial-gradient(circle at 40% 20%, rgba(215, 38, 56, 0.2), transparent 55%);
    animation: loginGlow 14s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
}

.login-steps {
    display: grid;
    gap: 10px;
}

.login-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
}

.login-step span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    background: rgba(255, 122, 24, 0.2);
    border: 1px solid rgba(255, 122, 24, 0.5);
    color: #ffd1b8;
}

.discord-login-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #ff5a24, #ff2d55);
    box-shadow: 0 12px 28px rgba(255, 90, 36, 0.35);
    overflow: hidden;
}

.discord-login-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 45%, transparent 80%);
    transform: translateX(-120%);
    animation: loginSheen 4s ease-in-out infinite;
}

.discord-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(255, 90, 36, 0.45);
}

.discord-login-button:active {
    transform: translateY(0);
}

.discord-login-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
}

.discord-login-icon svg {
    width: 22px;
    height: 22px;
}

.discord-login-glow {
    position: absolute;
    inset: auto 14px 10px 14px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(10px);
    opacity: 0.6;
}

.login-help {
    font-size: 12px;
    color: var(--muted);
}

@keyframes loginGlow {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0.6;
    }
    50% {
        transform: translate3d(10px, -12px, 0);
        opacity: 0.9;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.6;
    }
}

@keyframes loginSheen {
    0% {
        transform: translateX(-120%);
    }
    60% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes loginFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -18px, 0);
    }
}

body.public-view .badge {
    background: #2a2b30;
    color: var(--text);
}

body.public-view .lead {
    color: var(--muted);
}

body.public-view .login-form label {
    color: var(--text);
}

body.public-view .login-form input {
    background: #141518;
    border-color: #2f3136;
    color: var(--text);
}

body.public-view .primary-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 10px 20px rgba(181, 18, 18, 0.35);
}

.public-card.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s ease-out;
}

.public-card.warning {
    border: 1px solid #5b1a1a;
}

.badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: #2a2b30;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.badge.danger {
    background: #4a0f0f;
    color: #ffb3b3;
}

.lead {
    color: var(--muted);
}

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

.login-form input {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
}

.form-error {
    color: #f76b6b;
    font-size: 13px;
}

.primary-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(181, 18, 18, 0.3);
    position: relative;
    overflow: hidden;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(181, 18, 18, 0.4);
}

.primary-button:hover::before {
    width: 300px;
    height: 300px;
}

.primary-button:active {
    transform: translateY(0);
}

.primary-button.small {
    padding: 8px 14px;
    font-size: 13px;
}

.primary-button.danger {
    background: linear-gradient(135deg, #5d0e0e, #f04545);
}

.primary-button.danger:hover {
    box-shadow: 0 8px 16px rgba(240, 69, 69, 0.3);
}

.status-box {
    border: 1px solid #343741;
    padding: 12px;
    border-radius: 12px;
    margin: 18px 0;
    color: var(--muted);
}

.status-box.success {
    border-color: #2c4c3d;
    color: #b7e5c7;
}

.notice-box {
    background: #fff3cd;
    border: 1px solid #f0c36e;
    color: #8b5a00;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 14px 0 4px;
    font-size: 13px;
}

.hidden {
    display: none;
}

.logo-wrap {
    display: grid;
    place-items: center;
    margin: 18px 0;
}

.logo-wrap img {
    width: 138px;
    height: 138px;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid rgba(255, 90, 36, 0.3);
    background: linear-gradient(165deg, rgba(14, 14, 18, 0.95), rgba(10, 10, 14, 0.95));
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

.status-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.limited-stage .primary-button,
.limited-stage .ghost-button {
    width: min(260px, 100%);
    margin: 10px auto 0;
}

.discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    margin: 12px auto 0;
}

.limited-stage .discord-button {
    justify-content: center;
    width: min(260px, 100%);
}

.discord-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f7c0a8;
    box-shadow: 0 0 10px rgba(241, 90, 36, 0.7);
}

.public-panel .glow-card {
    background: radial-gradient(circle at top left, #3b0f0f 0%, #1b1b1f 60%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.js-enabled .public-panel .glow-card {
    opacity: 0;
    transform: translateY(12px);
}

.glow-card.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s ease-out;
}

.pulse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.pulse-grid span {
    height: 46px;
    border-radius: 10px;
    background: #2c2d32;
    animation: pulse 2.2s infinite;
}

.pulse-grid span:nth-child(2) {
    animation-delay: 0.3s;
}

.pulse-grid span:nth-child(3) {
    animation-delay: 0.6s;
}

.pulse-grid span:nth-child(4) {
    animation-delay: 0.9s;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.4;
    }
}

.wiki-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.wiki-hero--v3 {
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(18, 20, 26, 0.9), rgba(12, 14, 20, 0.85));
    box-shadow: var(--shadow);
}

.wiki-hero-main {
    display: grid;
    gap: 12px;
}

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

.wiki-hero-card {
    background: linear-gradient(160deg, rgba(24, 28, 36, 0.9), rgba(12, 15, 20, 0.85));
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 16px;
}

.wiki-hero-card--live {
    position: relative;
    overflow: hidden;
}

.wiki-hero-card--live::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 122, 24, 0.25), transparent 55%);
    pointer-events: none;
}

.wiki-hub-hero {
    position: relative;
    overflow: hidden;
}

.wiki-hub-hero::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(215, 38, 56, 0.22), transparent 60%);
    opacity: 0.35;
    animation: wiki-hero-glow 12s ease-in-out infinite;
    pointer-events: none;
}

.wiki-hub-hero > * {
    position: relative;
    z-index: 2;
}

.wiki-hero-metrics {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

.wiki-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.wiki-hub-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 26px;
}

.wiki-hub-card {
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 190px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.wiki-hub-card > * {
    position: relative;
    z-index: 2;
}

.wiki-hub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(215, 38, 56, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wiki-hub-card::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    right: -80px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(255, 122, 24, 0.25), transparent 70%);
    opacity: 0.5;
    animation: wiki-card-float 10s ease-in-out infinite;
    pointer-events: none;
}

.wiki-hub-card:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 38, 56, 0.4);
    box-shadow: 0 16px 30px rgba(8, 10, 14, 0.35);
}

.wiki-hub-card:hover::before {
    opacity: 1;
}

.wiki-hub-card h3 {
    margin: 0;
}

.wiki-hub-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.wiki-hub-cta {
    margin-top: auto;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #f2b84d;
}

.wiki-hub-split {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.wiki-hub-panel {
    position: relative;
    overflow: hidden;
}

.wiki-hub-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0.5;
    transform: translateX(-100%);
    animation: wiki-panel-scan 8s ease-in-out infinite;
    pointer-events: none;
}

.wiki-hub-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.wiki-hub-step {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(16, 18, 22, 0.8);
    text-align: center;
}

.wiki-hub-step strong {
    font-size: 16px;
    color: #f2b84d;
}

.wiki-hub-tip {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes wiki-hero-glow {
    0%, 100% {
        transform: translate(-4%, -3%) scale(1);
        opacity: 0.25;
    }
    50% {
        transform: translate(4%, 6%) scale(1.05);
        opacity: 0.45;
    }
}

@keyframes wiki-card-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes wiki-panel-scan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Mitarbeiterliste - HQ Redesign */
.employee-hq .employee-command {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 24px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(140deg, rgba(18, 20, 28, 0.95), rgba(12, 14, 20, 0.9));
    box-shadow: 0 18px 36px rgba(7, 9, 14, 0.45);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.employee-hq .employee-command::before {
    content: '';
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 20% 20%, rgba(215, 38, 56, 0.28), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255, 122, 24, 0.22), transparent 60%);
    opacity: 0.6;
    animation: employeeHalo 16s ease-in-out infinite;
    pointer-events: none;
}

.employee-hq .employee-command::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    animation: employeeScan 10s ease-in-out infinite;
    pointer-events: none;
}

.employee-hq .employee-command > * {
    position: relative;
    z-index: 2;
}

.employee-hq .employee-command-main {
    display: grid;
    gap: 12px;
}

.employee-hq .employee-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.employee-hq .employee-command-badge {
    display: grid;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 16, 22, 0.85);
    min-width: 160px;
}

.employee-hq .employee-command-badge strong {
    font-size: 15px;
    color: #f2b84d;
}

.employee-hq .employee-command-side {
    display: grid;
    gap: 14px;
}

.employee-hq .employee-kpi-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.employee-hq .employee-kpi {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(12, 14, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.employee-hq .employee-kpi::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 122, 24, 0.25), transparent 55%);
    opacity: 0.5;
    animation: employeePulse 6s ease-in-out infinite;
    pointer-events: none;
}

.employee-hq .employee-kpi strong {
    font-size: 20px;
    color: var(--accent-3);
}

.employee-hq .employee-command-note {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 18, 24, 0.75);
}

.employee-hq .employee-control-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 20px;
}

.employee-hq .employee-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.employee-hq .employee-filter-panel .filter-row {
    gap: 8px;
}

.employee-hq .employee-filter-note {
    font-size: 12px;
    color: var(--muted);
}

.employee-hq .employee-intel-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-hq .employee-intel-grid div {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 16, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.employee-hq .employee-intel-grid strong {
    color: #f2b84d;
}

.employee-hq .employee-filter-bar {
    margin-bottom: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 14, 18, 0.85);
    padding: 12px 16px;
}

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

.employee-hq .employee-card {
    border-radius: 20px;
    background: linear-gradient(150deg, rgba(20, 22, 30, 0.95), rgba(10, 12, 18, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 28px rgba(6, 8, 12, 0.45);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.employee-hq .employee-card:hover {
    transform: translateY(-6px);
    border-color: rgba(215, 38, 56, 0.4);
    box-shadow: 0 22px 38px rgba(6, 8, 12, 0.6);
}

.employee-hq .employee-cta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.employee-hq .employee-modal {
    background: rgba(5, 6, 9, 0.75);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.employee-hq .employee-modal.open {
    opacity: 1;
    visibility: visible;
}

.employee-hq .employee-modal-window {
    position: relative;
    width: min(860px, 92vw);
    margin: 40px auto;
    animation: employeeModalIn 0.5s ease both;
}

.employee-hq .employee-modal-frame {
    position: relative;
    background: linear-gradient(160deg, rgba(20, 22, 30, 0.98), rgba(10, 12, 18, 0.96));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    z-index: 2;
}

.employee-hq .employee-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(120deg, rgba(215, 38, 56, 0.35), rgba(255, 122, 24, 0.12));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.employee-hq .employee-modal-shell {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.employee-hq .employee-modal-body {
    display: grid;
    gap: 16px;
}

.employee-hq .employee-modal-glow {
    position: absolute;
    inset: 12px;
    background: rgba(215, 38, 56, 0.25);
    filter: blur(30px);
    border-radius: 26px;
    z-index: 1;
    animation: employeeGlow 2.2s ease-in-out infinite;
}

.employee-hq .employee-modal-banner {
    height: 120px;
    border-radius: 16px;
}

.employee-hq .employee-modal-header {
    background: rgba(12, 14, 18, 0.8);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes employeeHalo {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.45;
    }
    50% {
        transform: translate3d(-12px, 10px, 0);
        opacity: 0.8;
    }
}

@keyframes employeeScan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    40% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes employeePulse {
    0%, 100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes employeeModalIn {
    from {
        transform: translateY(18px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes employeeGlow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.wiki-quick-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 24px;
}

.wiki-quick-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.wiki-quick-card h3 {
    margin: 0;
}

.wiki-quick-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.wiki-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 24px;
    align-self: start;
}

.wiki-nav-card {
    display: grid;
    gap: 12px;
}

.wiki-nav {
    display: grid;
    gap: 8px;
}

.wiki-nav a {
    text-decoration: none;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: rgba(18, 20, 26, 0.7);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wiki-nav a:hover {
    transform: translateX(3px);
    border-color: rgba(215, 38, 56, 0.5);
    background: rgba(215, 38, 56, 0.08);
}

.wiki-nav a[aria-current='page'] {
    border-color: rgba(215, 38, 56, 0.6);
    background: rgba(215, 38, 56, 0.18);
}

.wiki-content {
    display: grid;
    gap: 18px;
}

.wiki-grid,
.employee-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.employee-empty {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 14px;
    text-align: center;
    background: rgba(215, 38, 56, 0.08);
    border: 1px dashed rgba(215, 38, 56, 0.35);
    font-weight: 600;
}

.wiki-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wiki-empty {
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    background: rgba(215, 38, 56, 0.08);
    border: 1px dashed rgba(215, 38, 56, 0.4);
    font-weight: 600;
}

.wiki-org-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wiki-org-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 18, 24, 0.7);
}

.wiki-card .tag {
    font-size: 12px;
    color: var(--accent-3);
    text-transform: uppercase;
}

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

.employee-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}

.employee-hero--revamp {
    position: relative;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(16, 18, 24, 0.92), rgba(20, 16, 24, 0.88));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.employee-hero--revamp::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 20%, rgba(215, 38, 56, 0.25), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255, 122, 24, 0.18), transparent 60%);
    animation: ambientFloat 18s ease-in-out infinite;
    pointer-events: none;
}

.employee-hero--revamp > * {
    position: relative;
    z-index: 1;
}

.employee-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--muted);
}

.employee-hero-main {
    display: grid;
    gap: 12px;
}

.employee-toolbar {
    display: grid;
    gap: 12px;
}

.employee-hero-panels {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.employee-search-panel,
.employee-guide-panel {
    display: grid;
    gap: 12px;
}

.employee-guide-panel p {
    margin: 0;
}

.employee-panel-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.employee-search-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.employee-guide-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-guide-grid div {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 16, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    min-width: 0;
}

.employee-guide-grid span {
    overflow-wrap: anywhere;
}

.employee-guide-grid strong {
    color: var(--accent-3);
}

.employee-guide-hint {
    font-size: 12px;
    color: var(--muted);
}

.search-field {
    display: grid;
    gap: 6px;
}

.search-field input {
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    padding: 12px 14px;
    background: rgba(12, 15, 20, 0.8);
    color: var(--text);
}

.search-field textarea {
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    padding: 12px 14px;
    background: rgba(12, 15, 20, 0.8);
    color: var(--text);
    resize: vertical;
}

.search-field select {
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    padding: 12px 14px;
    background: rgba(12, 15, 20, 0.8);
    color: var(--text);
}

.search-field input:focus {
    outline: none;
    border-color: rgba(215, 38, 56, 0.6);
    box-shadow: 0 0 0 3px rgba(215, 38, 56, 0.12);
}

.search-field textarea:focus {
    outline: none;
    border-color: rgba(215, 38, 56, 0.6);
    box-shadow: 0 0 0 3px rgba(215, 38, 56, 0.12);
}

.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-row .ghost-button.small.is-active {
    background: rgba(215, 38, 56, 0.2);
    border-color: rgba(215, 38, 56, 0.45);
    color: #ffd1d8;
}

.employee-hero-aside {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.hero-stat {
    background: linear-gradient(160deg, rgba(24, 28, 36, 0.9), rgba(14, 17, 23, 0.7));
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 14px 16px;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.hero-stat strong {
    font-size: 24px;
}

.employee-hero-card {
    background: linear-gradient(150deg, rgba(24, 28, 36, 0.9), rgba(12, 15, 20, 0.9));
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 14px 16px;
}

.employee-hero-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.employee-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.employee-filter-info {
    display: grid;
    gap: 6px;
}

.employee-filter-info strong {
    color: var(--accent-3);
    font-size: 18px;
}

.employee-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.employee-filter-chip {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
    white-space: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.employee-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.employee-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    color: var(--text);
    border: 1px solid var(--border-soft);
    background: linear-gradient(135deg, rgba(18, 20, 26, 0.92), rgba(10, 12, 16, 0.9));
    border-radius: 18px;
    padding: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.js-enabled .employee-card {
    opacity: 0;
    transform: translateY(12px);
}

.employee-card.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s ease-out;
}

.employee-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.employee-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #2e0b0b);
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.employee-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.employee-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.employee-title strong {
    overflow-wrap: anywhere;
}

.employee-chip {
    background: #2a0f0f;
    border: 1px solid #4a1414;
    color: #f3b2a0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
}

.employee-chip.ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
    text-transform: none;
    letter-spacing: 0.3px;
}

.employee-chip.locked {
    background: rgba(242, 107, 107, 0.2);
    border-color: rgba(242, 107, 107, 0.5);
    color: #f26b6b;
}

.employee-subline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}

.employee-specials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.dot-sep {
    opacity: 0.6;
}

.employee-cta {
    background: rgba(215, 38, 56, 0.16);
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid rgba(215, 38, 56, 0.4);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.employee-card:hover {
    transform: translateY(-3px);
    border-color: rgba(215, 38, 56, 0.55);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.employee-card:hover::after {
    opacity: 1;
}

.employee-card:focus {
    outline: 2px solid rgba(215, 38, 56, 0.7);
    outline-offset: 2px;
}

.employee-modal {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 14, 0.8);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 18px 40px;
    overflow-y: auto;
    z-index: 1000;
}

.employee-modal.open {
    display: flex;
}

.employee-modal-content {
    background: linear-gradient(160deg, rgba(20, 22, 28, 0.98), rgba(12, 14, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    width: min(640px, 92vw);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.close-button {
    float: right;
    background: rgba(10, 12, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.modal-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 16px;
}

.modal-grid > div {
    background: rgba(12, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.modal-grid span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.modal-section {
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(12, 16, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-section h4 {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: 0.6px;
}

.modal-headline {
    display: grid;
    gap: 4px;
}

.modal-status-pill {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    align-items: flex-start;
}

.status-chip {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.status-chip--ok {
    background: rgba(31, 109, 67, 0.2);
    border-color: rgba(46, 170, 93, 0.4);
    color: #9fe8c1;
}

.status-chip--warn {
    background: rgba(255, 168, 0, 0.15);
    border-color: rgba(255, 168, 0, 0.35);
    color: #ffd080;
}

.status-chip--danger {
    background: rgba(215, 38, 56, 0.2);
    border-color: rgba(215, 38, 56, 0.5);
    color: #ffb1bb;
}

.special-grid {
    display: grid;
    gap: 10px;
}

.special-group {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 15, 20, 0.7);
    display: grid;
    gap: 6px;
}

.special-group strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-3);
}

.special-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.special-empty {
    color: var(--muted);
    font-size: 13px;
    padding: 6px 4px;
}

.lock-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.chip-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
    color: var(--text);
}

.chip.ghost {
    background: rgba(255, 255, 255, 0.04);
}

.profile-detail-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.profile-detail-grid span {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.modal-skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

.modal-note {
    margin-top: 16px;
    background: rgba(215, 38, 56, 0.12);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(215, 38, 56, 0.35);
    font-size: 13px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.85);
    display: grid;
    place-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--panel-alt);
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.modal-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.team-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.team-grid.is-compact {
    grid-template-columns: minmax(0, 1fr);
}

.team-grid.is-compact .panel.wide {
    grid-column: auto;
}

.team-view .team-grid {
    display: block;
    columns: 2;
    column-gap: 18px;
}

.team-view .team-grid.is-compact {
    columns: 1;
}

.team-view .team-grid .panel {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 18px;
}

.inbox-send-form {
    display: grid;
    gap: 12px;
}

.inbox-send-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.team-panel {
    position: sticky;
    top: 20px;
}

.team-panel-card {
    padding: 16px;
    display: grid;
    gap: 14px;
    background: linear-gradient(160deg, rgba(24, 26, 30, 0.95), rgba(18, 19, 22, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-panel-head h3 {
    margin: 4px 0 0;
}

.team-panel-actions {
    display: grid;
    gap: 8px;
}

.team-panel-nav {
    display: grid;
    gap: 8px;
}

.team-tab {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 22, 26, 0.9);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 14px;
}

.team-tab:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(24, 26, 30, 0.95);
}

.team-tab.is-active {
    border-color: rgba(241, 90, 36, 0.6);
    background: linear-gradient(135deg, rgba(255, 90, 36, 0.2), rgba(255, 90, 36, 0.05));
    color: var(--accent-3);
}

.team-panel .ghost-button {
    width: 100%;
    justify-content: center;
}

.team-view .panel.is-filtered-out {
    display: none;
}

@media (max-width: 1100px) {
    .team-view .team-grid {
        columns: 1;
    }
}

@media (max-width: 980px) {
    .team-shell {
        grid-template-columns: 1fr;
    }

    .team-panel {
        position: static;
    }
}

.team-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.team-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--muted);
}

.permission-hub {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

.permission-block {
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 20, 24, 0.7);
    color: var(--text);
    min-width: 0;
}

.permission-block-head h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.permission-block-head p {
    margin: 0;
}

.permission-block-body {
    display: grid;
    gap: 12px;
}

.permission-hint {
    font-size: 12px;
}

.web-role-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    align-items: start;
    min-width: 0;
}

.web-role-stack {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.web-role-create {
    display: grid;
    gap: 8px;
}

.web-role-create-label {
    display: grid;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.web-role-create input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
}

.web-role-create .primary-button {
    width: 100%;
}

.web-role-list {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 38, 56, 0.65) rgba(255, 255, 255, 0.08);
}

.web-role-list::-webkit-scrollbar {
    width: 8px;
}

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

.web-role-list::-webkit-scrollbar-thumb {
    background: rgba(215, 38, 56, 0.65);
    border-radius: 999px;
}

.web-role-item {
    border: 1px solid #2b2e35;
    background: #17181c;
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    display: grid;
    gap: 4px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.web-role-item:hover {
    border-color: rgba(241, 90, 36, 0.45);
    transform: translateY(-1px);
}

.web-role-item.is-active {
    border-color: rgba(241, 90, 36, 0.7);
    background: linear-gradient(135deg, rgba(181, 18, 18, 0.35), rgba(241, 90, 36, 0.08));
}

.web-role-item-title {
    font-weight: 600;
}

.web-role-item-meta {
    font-size: 12px;
    color: var(--muted);
}

.web-role-detail {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 18, 22, 0.75);
    padding: 14px;
    color: var(--text);
    min-width: 0;
}

.web-role-empty {
    display: grid;
    gap: 6px;
}

.web-role-detail-body {
    display: grid;
    gap: 12px;
}

.web-role-fields {
    display: grid;
    gap: 10px;
}

.web-role-fields label {
    display: grid;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.web-role-fields input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
}

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

.web-role-section {
    display: grid;
    gap: 10px;
}

.web-role-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.web-role-section-head h4 {
    margin: 0;
    font-size: 14px;
}

.web-role-users {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 38, 56, 0.65) rgba(255, 255, 255, 0.08);
}

.web-role-users::-webkit-scrollbar {
    width: 8px;
}

.web-role-users::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.web-role-users::-webkit-scrollbar-thumb {
    background: rgba(215, 38, 56, 0.65);
    border-radius: 999px;
}

.web-role-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #181a1e;
    border: 1px solid #2b2e35;
    color: var(--text);
}

.web-role-assign {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.web-role-assign select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
}


.align-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.align-picker .is-active {
    border-color: var(--accent);
    background: #1a1b1f;
}

.blackboard-form {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.blackboard-form input,
.blackboard-form textarea {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
}

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

.blackboard-entry {
    background: #181a1e;
    border: 1px solid #2b2e35;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.blackboard-entry p,
.changelog-entry p {
    margin: 0;
}

.superuser-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.superuser-pill {
    background: #1a1b1f;
    border: 1px solid #2b2e35;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
}

.editor-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.editor-shell textarea {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
    min-height: 160px;
}

.editor-preview {
    border: 1px dashed #2f3136;
    border-radius: 10px;
    padding: 10px;
    background: #141518;
    display: none;
    min-height: 160px;
    overflow-y: auto;
}

.editor-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.changelog-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.changelog-entry {
    background: linear-gradient(145deg, rgba(28, 29, 32, 0.95), rgba(18, 19, 22, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 10px;
}

.changelog-entry--preview {
    border-style: dashed;
    background: rgba(20, 22, 25, 0.6);
}

.changelog-title-wrap {
    display: grid;
    gap: 4px;
}

.changelog-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.changelog-body {
    display: grid;
    gap: 12px;
    color: var(--text);
}

.changelog-update {
    display: grid;
    gap: 12px;
}

.changelog-note {
    border: 1px solid rgba(255, 90, 36, 0.35);
    background: rgba(255, 90, 36, 0.08);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.changelog-note-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.changelog-note-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255, 90, 36, 0.2);
    color: var(--accent-3);
    font-weight: 700;
}

.changelog-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 20, 26, 0.7);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.changelog-section.is-add {
    border-color: rgba(47, 211, 143, 0.45);
}

.changelog-section.is-change {
    border-color: rgba(241, 90, 36, 0.45);
}

.changelog-section.is-remove {
    border-color: rgba(242, 107, 107, 0.5);
}

.changelog-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.changelog-section-head h4 {
    margin: 0;
    font-size: 15px;
}

.changelog-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
}

.changelog-section.is-add .changelog-section-icon {
    background: rgba(47, 211, 143, 0.2);
    color: #2fd38f;
}

.changelog-section.is-change .changelog-section-icon {
    background: rgba(241, 90, 36, 0.18);
    color: var(--accent-3);
}

.changelog-section.is-remove .changelog-section-icon {
    background: rgba(242, 107, 107, 0.18);
    color: #f26b6b;
}

.changelog-group {
    display: grid;
    gap: 6px;
}

.changelog-group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.changelog-group ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.changelog-group li {
    line-height: 1.4;
}

.changelog-editor {
    display: grid;
    gap: 14px;
}

.changelog-editor-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.changelog-editor-note textarea {
    min-height: 90px;
}

.changelog-editor-sections {
    display: grid;
    gap: 12px;
}

.changelog-editor-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 22, 26, 0.7);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.changelog-editor-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.changelog-editor-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
}

.changelog-editor-icon.is-add {
    background: rgba(47, 211, 143, 0.2);
    color: #2fd38f;
}

.changelog-editor-icon.is-change {
    background: rgba(241, 90, 36, 0.18);
    color: var(--accent-3);
}

.changelog-editor-icon.is-remove {
    background: rgba(242, 107, 107, 0.18);
    color: #f26b6b;
}

.changelog-editor-fields {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(140px, 1fr) minmax(200px, 2fr) auto;
    align-items: center;
}

.changelog-editor-items {
    display: grid;
    gap: 8px;
}

.changelog-editor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.changelog-editor-item-text {
    display: grid;
    gap: 4px;
}

.changelog-editor-item-group {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.changelog-editor-item-body {
    font-size: 13px;
}

.changelog-preview-wrap {
    display: grid;
    gap: 8px;
}

.changelog-preview-actions {
    display: flex;
    justify-content: flex-end;
}

.changelog-preview {
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px;
    background: rgba(17, 18, 20, 0.6);
}

@media (max-width: 720px) {
    .changelog-editor-fields {
        grid-template-columns: 1fr;
    }
}

.maintenance-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2b2e35;
}

.maintenance-item:last-child {
    border-bottom: none;
}

.lock-form {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 12px;
}

.lock-form input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
}

.lock-log {
    display: grid;
    gap: 8px;
}

.lock-entry {
    background: #181a1e;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    gap: 6px;
}

.admin-grid,
.admin-grid-wide {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.admin-tile {
    background: #181a1e;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #2b2e35;
    display: grid;
    gap: 8px;
}

.restricted {
    border: 1px dashed #3a3d44;
}

.user-picker {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.user-picker select {
    background: #141518;
    border: 1px solid #2f3136;
    color: var(--text);
    border-radius: 10px;
    padding: 8px 10px;
}

.toggles {
    display: grid;
    gap: 8px;
}

.toggles label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #2b2e35;
    background: #181a1e;
    color: var(--text);
    font-size: 14px;
}

.toggle-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    line-height: 1.2;
}

.perm-source {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.perm-source.is-discord {
    background: rgba(88, 101, 242, 0.18);
    color: #d0d7ff;
    border-color: rgba(88, 101, 242, 0.45);
}

.toggles label .perm-source {
    margin-left: auto;
}

.toggles input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.calendar-panel {
    grid-column: span 2;
}

.calendar-form {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 14px;
}

.calendar-form input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
}

.calendar-view {
    display: grid;
    gap: 12px;
}

.calendar-header {
    font-weight: 600;
    text-transform: capitalize;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-cell {
    background: #181a1e;
    border-radius: 10px;
    min-height: 76px;
    padding: 8px;
    display: grid;
    gap: 6px;
}

.calendar-weekday {
    background: transparent;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11px;
    align-items: center;
    justify-items: center;
    min-height: auto;
}

.calendar-day {
    font-weight: 600;
}

.calendar-event {
    background: #2a0f0f;
    border: 1px solid #4a1414;
    color: #f3b2a0;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-muted {
    opacity: 0.4;
}

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

.maintenance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #181a1e;
    border: 1px solid #2b2e35;
}

.maintenance-row.empty {
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
}

.maintenance-controls {
    display: grid;
    gap: 10px;
    align-items: center;
}

.whitelist-wrap {
    display: grid;
    gap: 6px;
    background: #141518;
    border-radius: 10px;
    padding: 10px;
    border: 1px dashed #2b2e35;
    min-width: 240px;
}

.whitelist-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.whitelist-chip {
    background: #2a2b30;
    border: 1px solid #343741;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}

.whitelist-add {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.whitelist-add input,\n.whitelist-add select {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #2f3136;
    background: #0f1012;
    color: var(--text);
    font-size: 12px;
}

.maintenance-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.maintenance-meta strong {
    display: block;
}

.maintenance-meta small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.maintenance-emoji {
    font-size: 20px;
}

.maintenance-toggle {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #1d2b1f, #2a6b3d);
    color: #f3f4f6;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.maintenance-toggle.danger {
    background: linear-gradient(135deg, #3a1315, #b01219);
    box-shadow: 0 10px 18px rgba(176, 18, 25, 0.25);
}

.maintenance-toggle.is-on {
    background: linear-gradient(135deg, #401313, #b51212);
    box-shadow: 0 10px 20px rgba(181, 18, 18, 0.3);
}

.maintenance-toggle:hover {
    transform: translateY(-2px);
}

.maintenance-toggle:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

.backup-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.backup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #181a1e;
}

.profile-shell {
    display: grid;
    gap: 18px;
}

.profile-card {
    background: var(--panel);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-banner,
.profile-preview-banner {
    height: 160px;
    background: linear-gradient(135deg, #401313, #0f1726);
    background-size: cover;
    background-position: center;
}

.profile-body {
    display: flex;
    gap: 16px;
    padding: 18px;
    align-items: center;
}

.profile-avatar,
.profile-preview-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #1a1b1f;
    background-size: cover;
    background-position: center;
}

.profile-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.profile-form input,
.profile-form textarea {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
}

.profile-form input[type='file'] {
    padding: 8px;
    border-style: dashed;
}

.profile-preview-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2b2e35;
}

.profile-preview-body {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 16px;
}

.announcements {
    text-align: center;
}

.announcements h2 {
    margin: 0 0 8px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

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

.maintenance-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

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

.maintenance-panel {
    border: 1px dashed #3a3d44;
    background: linear-gradient(160deg, #1b1b1f 0%, #2b1111 100%);
}

.coming-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-top: 18px;
}

.coming-grid div {
    background: #191a1e;
    padding: 12px;
    border-radius: 12px;
}

.coming-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.form-hint {
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    margin: 30px 24px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 90, 36, 0.28);
    background:
        radial-gradient(620px 260px at 6% -25%, rgba(215, 38, 56, 0.22), transparent 70%),
        radial-gradient(520px 240px at 94% -24%, rgba(255, 122, 24, 0.16), transparent 72%),
        linear-gradient(160deg, rgba(10, 12, 16, 0.98) 0%, rgba(14, 16, 22, 0.98) 55%, rgba(8, 10, 14, 0.98) 100%);
    color: var(--muted);
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(4, 6, 10, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 90, 36, 0.08) 35%, transparent 70%),
        repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 12px);
    animation: footerGlow 13s ease-in-out infinite;
    pointer-events: none;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
    position: relative;
    z-index: 1;
}

.footer-panel {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(150deg, rgba(18, 20, 26, 0.86), rgba(12, 14, 20, 0.9));
    box-shadow: 0 12px 24px rgba(2, 3, 6, 0.32);
    padding: 14px;
    min-height: 100%;
    backdrop-filter: blur(8px);
    animation: footerPanelIn 0.55s ease both;
}

.footer-panel--notice {
    animation-delay: 0.08s;
}

.footer-panel--crest {
    animation-delay: 0.14s;
}

.footer-eyebrow {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffb98c;
}

.footer-panel h3 {
    margin: 6px 0 0;
    color: var(--text);
    font-size: 26px;
}

.footer-panel h4 {
    margin: 0;
    font-size: 15px;
    color: var(--text);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.footer-panel p {
    margin: 10px 0 0;
    line-height: 1.55;
}

.footer-chip-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 4px 10px;
    font-size: 11px;
}

.footer-crest-wrap {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.footer-crest-wrap img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 90, 36, 0.32);
    background: rgba(10, 12, 16, 0.9);
    padding: 4px;
}

.footer-crest-wrap strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.footer-crest-wrap small {
    color: var(--muted);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: wrap;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 22px 16px;
    font-size: 12px;
}

body.public-view .site-footer {
    margin-top: 18px;
}

body.public-view .footer-bottom {
    justify-content: center;
    text-align: center;
}

@keyframes footerGlow {
    0%, 100% {
        opacity: 0.42;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes footerPanelIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer::before,
    .footer-panel {
        animation: none;
    }
}

@media (max-width: 960px) {
    .footer-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-inline: 12px;
    }
    .footer-shell {
        padding: 16px;
    }
    .footer-panel h3 {
        font-size: 22px;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
        padding: 12px 16px 16px;
    }
}

.confetti-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

/* Bewerbungsportal */
.bewerbung-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.bewerbung-hero-card {
    background: linear-gradient(135deg, rgba(20, 22, 28, 0.9), rgba(36, 15, 15, 0.9));
    border-radius: 20px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.bewerbung-hero-info {
    display: grid;
    gap: 12px;
}

.info-card {
    background: rgba(20, 22, 26, 0.8);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card ol {
    margin: 8px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.info-card.accent {
    border-color: rgba(241, 90, 36, 0.45);
}

.bewerbung-shell {
    display: grid;
    gap: 20px;
    animation: panel-fade-in 0.4s ease both;
}

/* micro-animations and refined UI */
@keyframes panel-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bewerbung-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bewerbung-panel {
    transition: transform 0.22s cubic-bezier(.2,.9,.2,1), box-shadow 0.22s ease;
    will-change: transform;
}
.bewerbung-panel:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(0,0,0,0.6); }

.bewerbung-grid .bewerbung-panel {
    animation: bewerbung-rise 0.5s ease both;
}

.bewerbung-grid .bewerbung-panel:nth-child(2) {
    animation-delay: 0.06s;
}

.bewerbung-status,
.bewerbung-guide,
.bewerbung-faq,
.bewerbung-finale {
    animation: bewerbung-rise 0.5s ease both;
    animation-delay: 0.08s;
}

/* toolbar active state */
.editor-btn.is-active {
    background: linear-gradient(135deg, rgba(241,90,36,0.12), rgba(181,18,18,0.06));
    border-color: rgba(241,90,36,0.45);
    color: var(--accent-3);
}

.bewerbung-editor:focus-within {
    box-shadow: 0 6px 30px rgba(181,18,18,0.08);
    border-color: rgba(241,90,36,0.18);
}

.bewerbung-editor-body:focus {
    outline: none;
}

/* improved CTA */
.primary-button {
    background: linear-gradient(135deg, #ff6b4d, #b51212);
    box-shadow: 0 14px 36px rgba(181,18,18,0.18);
}
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(181,18,18,0.22); }

/* pagination minor polish */
#bewerbung-pagination { display:flex; gap:10px; align-items:center; justify-content:flex-end; margin-top:12px; }
#bewerbung-pagination .muted { margin: 0 6px; }

/* subtle background highlight for hero */
.bewerbung-hero::before {
    content: '';
    position: absolute;
    inset: -40px -6vw;
    background: radial-gradient(circle at 10% 20%, rgba(241,90,36,0.03), transparent 25%), radial-gradient(circle at 90% 30%, rgba(255,255,255,0.01), transparent 35%);
    pointer-events: none;
    z-index: 0;
}

.bewerbung-hero > * { position: relative; z-index: 1; }

.bewerbung-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bewerbung-panel {
    background: rgba(18, 20, 24, 0.85);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 14px;
}

.panel-title .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: var(--muted);
}

.bewerbung-types {
    display: grid;
    gap: 10px;
}

.bewerbung-type {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #17181c;
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    display: grid;
    gap: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.bewerbung-type span {
    color: var(--muted);
    font-size: 13px;
}

.bewerbung-type:hover {
    border-color: rgba(241, 90, 36, 0.45);
    transform: translateY(-1px);
}

.bewerbung-type.is-active {
    border-color: rgba(241, 90, 36, 0.7);
    background: linear-gradient(135deg, rgba(181, 18, 18, 0.35), rgba(241, 90, 36, 0.08));
}

.bewerbung-type-detail {
    border-radius: 12px;
    padding: 12px;
    background: rgba(20, 22, 26, 0.8);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--muted);
}

.bewerbung-type-detail strong {
    display: block;
    color: var(--text);
    margin-bottom: 6px;
}

.bewerbung-form {
    display: grid;
    gap: 10px;
}

.bewerbung-form textarea {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
    resize: vertical;
}

.bewerbung-facts {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.bewerbung-facts div {
    background: #1a1b1f;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #2b2e35;
    display: grid;
    gap: 4px;
    font-size: 13px;
}

.bewerbung-status {
    background: rgba(18, 20, 24, 0.85);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 12px;
}

.bewerbung-status-card {
    display: grid;
    gap: 12px;
}

.bewerbung-status-row {
    background: #181a1e;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #2b2e35;
    display: grid;
    gap: 8px;
}

.bewerbung-status-title {
    font-weight: 600;
}

.bewerbung-status-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}

.bewerbung-status-note {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.bewerbung-finale {
    background: rgba(20, 22, 26, 0.9);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(241, 90, 36, 0.4);
    display: grid;
    gap: 8px;
}

.bewerbung-guide {
    background: rgba(18, 20, 24, 0.85);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 14px;
}

.bewerbung-guide-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bewerbung-guide-card {
    background: #181a1e;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #2b2e35;
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.bewerbung-guide-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 6px;
}

.bewerbung-guide-card.accent {
    border-color: rgba(241, 90, 36, 0.5);
}

.bewerbung-faq {
    background: rgba(18, 20, 24, 0.85);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 14px;
}

.bewerbung-faq-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.bewerbung-faq-item {
    background: #181a1e;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #2b2e35;
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.bewerbung-admin-controls {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(160px, 1fr);
    margin-top: 10px;
}

.bewerbung-admin-controls input {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
    font-size: 13px;
}

.bewerbung-note-preview {
    font-size: 13px;
    color: var(--muted);
}

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

.bewerbung-modal-window {
    width: min(760px, 92vw);
}

.bewerbung-modal-header h3 {
    margin: 8px 0 0;
}

.bewerbung-modal-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}

.bewerbung-modal-body {
    background: rgba(14, 15, 18, 0.6);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.6;
    max-height: 320px;
    overflow: auto;
}

.bewerbung-modal-body p {
    margin: 0 0 10px;
}

.bewerbung-modal-body h3,
.bewerbung-modal-body h4 {
    margin: 0 0 8px;
}

.bewerbung-modal-body ul,
.bewerbung-modal-body ol {
    margin: 0 0 10px 18px;
    color: var(--muted);
}

.bewerbung-modal-body blockquote {
    margin: 0 0 10px;
    padding-left: 12px;
    border-left: 3px solid rgba(241, 90, 36, 0.35);
    color: var(--muted);
}

.bewerbung-modal-note {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(241, 90, 36, 0.08);
    border: 1px solid rgba(241, 90, 36, 0.25);
    font-size: 13px;
}

.bewerbung-modal-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.bewerbung-stats {
    display: grid;
    gap: 10px;
}

.bewerbung-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #181a1e;
    border: 1px solid #2b2e35;
}

.bewerbung-stat-name {
    font-weight: 600;
}

.bewerbung-stat-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-3);
}

@media (min-width: 880px) {
    .bewerbung-admin-controls {
        grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) auto;
    }
}

.confetti-wrap span {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 16px;
    opacity: 0.9;
    animation: confetti-fall 4.5s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0);
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
    }
}

@media (max-width: 960px) {
    .app-shell {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        overflow-x: auto;
    }
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .main-content {
        padding: 20px;
    }
    .topbar {
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 12px;
    }
    .topbar-center,
    .topbar-right {
        width: 100%;
        justify-content: flex-start;
    }
    .user-card {
        width: 100%;
    }
    .wiki-shell {
        grid-template-columns: 1fr;
    }
    .wiki-sidebar {
        position: static;
    }
    .employee-hero {
        grid-template-columns: 1fr;
    }
    .employee-hero--revamp {
        padding: 18px;
    }
    .employee-hero-panels {
        grid-template-columns: 1fr;
    }
    .employee-hero-aside {
        grid-template-columns: 1fr;
    }
    .employee-card {
        grid-template-columns: auto 1fr;
    }
    .employee-cta {
        justify-self: start;
    }
    .panel.wide {
        grid-column: span 1;
    }
    .editor-shell {
        grid-template-columns: 1fr;
    }
    .site-footer {
        margin-inline: 12px;
    }
    .footer-shell {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .footer-panel h3 {
        font-size: 24px;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
        padding: 12px 16px 16px;
    }
}

/* Topbar refresh */
.topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    border-radius: 14px;
    padding: 10px 14px;
    background: linear-gradient(120deg, rgba(22, 12, 14, 0.92), rgba(12, 14, 20, 0.95));
    border: 1px solid rgba(215, 38, 56, 0.26);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
    position: relative;
    overflow: visible;
    z-index: 900;
}

.topbar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 10% 10%, rgba(215, 38, 56, 0.18), transparent 60%);
    pointer-events: none;
}

.topbar::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(215, 38, 56, 0.8), rgba(255, 122, 24, 0.2), transparent);
    opacity: 0.6;
    pointer-events: none;
}

.topbar-left,
.topbar-center,
.topbar-right {
    position: relative;
    z-index: 1;
}

.topbar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.topbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.topbar-title h1,
.topbar-left h1 {
    margin: 2px 0 0;
    font-size: clamp(18px, 2.4vw, 24px);
}

.user-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    padding: 6px 10px;
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(16, 18, 24, 0.95), rgba(12, 14, 20, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 2;
}

.user-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 22px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #2e0b0b);
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    font-weight: 700;
    grid-row: auto;
    align-self: center;
}

.user-meta {
    text-align: left;
    grid-row: auto;
    align-self: center;
}

.user-actions {
    display: flex;
    column-gap: 8px;
    row-gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
    grid-row: auto;
    align-self: center;
}

.user-actions-secondary {
    grid-row: auto;
    align-self: center;
    justify-content: flex-end;
    margin-top: 0;
}

.user-menu-tools {
    display: grid;
    gap: 12px;
    align-items: center;
    justify-items: center;
    min-width: 34px;
    padding-left: 4px;
}

.user-menu-tools .topbar-inbox {
    width: 30px;
    height: 30px;
    border-radius: 11px;
}

.user-menu-tools .inbox-icon {
    font-size: 12px;
}

.user-menu-toggle {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 12, 18, 0.75);
    color: var(--muted);
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.user-card:hover .user-menu-toggle,
.user-card:focus-within .user-menu-toggle {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text);
    transform: translateY(-1px);
}

.user-menu {
    position: absolute;
    right: 6px;
    top: calc(100% + 2px);
    background: rgba(12, 15, 20, 0.98);
    border: 1px solid #2b2e35;
    border-radius: 14px;
    padding: 10px;
    display: grid;
    gap: 8px;
    min-width: 220px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 950;
}

.user-card:hover .user-menu,
.user-card:focus-within .user-menu,
.user-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.user-menu .user-actions,
.user-menu .user-actions-secondary {
    justify-content: flex-start;
    row-gap: 6px;
}

.user-menu .user-actions-secondary {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

#gl-online[data-state='error'] {
    color: #f6c27a;
}

#gl-online[data-state='offline'] {
    color: #f26b6b;
}

/* Schwarzes Brett */
.blackboard-board {
    position: relative;
    border-radius: 18px;
    padding: 16px;
    background: radial-gradient(circle at top left, rgba(38, 75, 59, 0.35), transparent 55%),
        linear-gradient(145deg, #16211a, #0d1512);
    border: 2px solid #2b352f;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 20px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.blackboard-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 6px);
    opacity: 0.2;
    pointer-events: none;
}

.blackboard-list {
    position: relative;
    z-index: 1;
    gap: 12px;
}

.callsign-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.callsign-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.callsign-controls input[type='search'] {
    flex: 1 1 220px;
    background: rgba(12, 15, 20, 0.85);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
}

.callsign-controls select {
    background: rgba(12, 15, 20, 0.85);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 9px 12px;
    border-radius: 12px;
    width: auto;
    min-width: 160px;
}

.callsign-pager {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.callsign-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 18, 24, 0.85);
    border: 1px solid var(--border-soft);
}

.callsign-row--admin {
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto auto;
    cursor: pointer;
}

.callsign-row.dragging {
    opacity: 0.6;
}

.callsign-handle {
    color: var(--muted);
    cursor: grab;
}

.callsign-row--admin.is-editing {
    border-color: rgba(215, 38, 56, 0.6);
    box-shadow: 0 12px 24px rgba(215, 38, 56, 0.2);
}

.callsign-fav[data-active='1'] {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(215, 38, 56, 0.16);
}

.callsign-old {
    font-weight: 600;
}

.callsign-domain {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.callsign-new {
    font-weight: 600;
    color: var(--accent-2);
}

.callsign-arrow {
    color: var(--muted);
}

.callsign-empty {
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    background: rgba(215, 38, 56, 0.08);
    border: 1px dashed rgba(215, 38, 56, 0.4);
    font-weight: 700;
    letter-spacing: 1px;
}

.callsign-admin-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.blackboard-entry {
    background: rgba(7, 12, 10, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.blackboard-entry strong {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.blackboard-entry .muted {
    font-size: 11px;
}

.blackboard-entry button {
    justify-self: start;
}

.rich-editor {
    border-radius: 12px;
    border: 1px solid #2b2e35;
    background: #0f1114;
    padding: 10px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.editor-toolbar button {
    border: 1px solid #2f3136;
    background: #1a1b1f;
    color: var(--text);
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
}

.editor-body {
    min-height: 120px;
    outline: none;
}

/* Coming soon animation */
.coming-soon h2 {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.coming-soon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(241, 90, 36, 0.6);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: coming-float 3.8s ease-in-out infinite;
}

@keyframes coming-float {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(241, 90, 36, 0.0);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(241, 90, 36, 0.1);
    }
    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(241, 90, 36, 0.0);
    }
}

@media (max-width: 960px) {
    .user-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    .user-menu {
        right: 0;
        min-width: 200px;
    }
}
/* Mitarbeiter-Modal */
.employee-modal-content {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.employee-modal-banner {
    height: 150px;
    margin: -24px -24px 14px;
    background: linear-gradient(135deg, #401313, #0f1726);
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.employee-modal-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(215, 38, 56, 0.28), transparent 55%);
    opacity: 0.85;
    pointer-events: none;
}

.employee-modal-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.employee-modal-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #1a1b1f;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.modal-bio {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(15, 17, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.modal-profile {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(15, 18, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-profile h4 {
    margin: 0 0 10px;
}

.profile-detail-list {
    display: grid;
    gap: 8px;
}

.profile-detail {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.modal-perms h4 {
    margin: 16px 0 8px;
}

.perm-grid {
    display: grid;
    gap: 8px;
}

.perm-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #2b2e35;
    background: #181a1e;
    color: var(--text);
    font-size: 14px;
}

.perm-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.perm-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #1c1d22;
    border: 1px solid #2f3136;
    font-size: 12px;
    margin: 4px 6px 0 0;
}

.perm-pill.is-on {
    background: #2a0f0f;
    border-color: #4a1414;
    color: #f3b2a0;
}

.modal-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Sidebar order */
.sortable-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.sortable-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #2b2e35;
    background: #181a1e;
    cursor: grab;
}

.sortable-item.dragging {
    opacity: 0.5;
}

.sortable-handle {
    font-size: 18px;
    opacity: 0.6;
}

.visibility-controls {
    display: grid;
    gap: 8px;
}
.button-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
/* Zeugnis-AntrÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¤ge */
.request-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text);
}

.form-hint {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    text-align: center;
}

.link-button {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 8px;
    background: rgba(255, 90, 36, 0.1);
    border: 1px solid rgba(255, 90, 36, 0.3);
    border-radius: 8px;
    color: var(--accent-3);
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-button:hover {
    background: rgba(255, 90, 36, 0.2);
    border-color: rgba(255, 90, 36, 0.5);
    transform: translateY(-2px);
}

.request-form input,
.request-form textarea {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 21, 24, 0.8);
    color: var(--text);
    transition: all 0.3s ease;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}

.request-form input:focus,
.request-form textarea:focus {
    outline: none;
    border-color: rgba(255, 90, 36, 0.5);
    background: rgba(20, 21, 24, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 90, 36, 0.1);
}

.request-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Modern File Upload Button with Animation */
.file-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    border: 2px dashed rgba(255, 90, 36, 0.4);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 90, 36, 0.08), rgba(255, 90, 36, 0.03));
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 15px;
}

.file-upload-label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 90, 36, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.file-upload-label:hover {
    border-color: rgba(255, 90, 36, 0.7);
    background: linear-gradient(135deg, rgba(255, 90, 36, 0.15), rgba(255, 90, 36, 0.08));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 90, 36, 0.2);
}

.file-upload-label:hover::before {
    width: 300px;
    height: 300px;
}

.file-upload-label:active {
    transform: translateY(0);
}

.file-upload-label svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.file-upload-label:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.file-upload-wrapper input[type='file'] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.request-form input[type='file'] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-filename {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 90, 36, 0.1);
    border: 1px solid rgba(255, 90, 36, 0.3);
    border-radius: 10px;
    font-size: 13px;
    color: var(--accent-3);
    display: none;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

.file-upload-filename.show {
    display: flex;
}

.file-upload-filename::before {
    content: "\1F4C4";
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 90, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 90, 36, 0);
    }
}

.file-upload-label.uploading {
    animation: pulse 2s infinite;
    pointer-events: none;
}

.request-list {
    display: grid;
    gap: 12px;
}

.request-card {
    background: #181a1e;
    border: 1px solid #2b2e35;
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 8px;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #343741;
}

.status-badge[data-status='submitted'] {
    background: rgba(242, 184, 77, 0.2);
    color: #f2b84d;
}

.status-badge[data-status='in_review'] {
    background: rgba(90, 166, 255, 0.2);
    color: #5aa6ff;
}

.status-badge[data-status='approved'] {
    background: rgba(36, 208, 107, 0.2);
    color: #24d06b;
}

.status-badge[data-status='rejected'] {
    background: rgba(242, 107, 107, 0.2);
    color: #f26b6b;
}

.status-badge[data-status='withdrawn'] {
    background: rgba(154, 160, 168, 0.2);
    color: #9aa0a8;
}

.status-badge[data-status='scheduled'] {
    background: rgba(90, 166, 255, 0.2);
    color: #5aa6ff;
}

.status-badge[data-status='closed'] {
    background: rgba(154, 160, 168, 0.2);
    color: #9aa0a8;
}

.request-actions,
.request-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.request-card.is-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-card.is-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.decision-note {
    background: #141518;
    border: 1px dashed #2f3136;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
}

/* Topbar Live Status */
.topbar-live {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.live-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(17, 18, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43a047;
    box-shadow: 0 0 12px rgba(67, 160, 71, 0.8);
}

.live-pill[data-state='error'] .live-dot {
    background: #ef5350;
    box-shadow: 0 0 12px rgba(239, 83, 80, 0.8);
}

.live-count {
    font-weight: 700;
    font-size: 11px;
}

/* Request Pages */
.request-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(28, 29, 32, 0.5) 0%, rgba(20, 21, 24, 0.3) 100%);
    border: 1px solid rgba(255, 102, 51, 0.1);
    border-radius: 16px;
}

.request-hero > div:first-child {
    flex: 1;
}

.request-hero .eyebrow {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-3);
    margin-bottom: 8px;
    font-weight: 600;
}

.request-hero h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.request-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Organigramm */
.org-diagram {
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: auto;
}

.org-svg {
    width: 100%;
    min-width: 1400px;
    height: auto;
    overflow: visible;
    display: block;
}

.org-box {
    rx: 6;
    ry: 6;
    filter: url(#org-shadow);
}

.org-box-lead {
    fill: #f3c64a;
    stroke: #2f2f2f;
    stroke-width: 2;
}

.org-box-chief {
    fill: #f0c13c;
    stroke: #2f2f2f;
    stroke-width: 2;
}

.org-box-sub {
    fill: #f8e3a2;
    stroke: #2f2f2f;
    stroke-width: 2;
}

.org-box-team {
    fill: #e9e9e9;
    stroke: #2f2f2f;
    stroke-width: 2;
}

.org-box-rep {
    fill: #55b8e0;
    stroke: #2f2f2f;
    stroke-width: 2;
}

.org-oval {
    fill: #f8e3a2;
    stroke: #2f2f2f;
    stroke-width: 2;
}

.org-text {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-anchor: middle;
    dominant-baseline: middle;
    fill: #121212;
}

.org-line {
    stroke: #2f2f2f;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: org-line 1.6s ease forwards;
}

.org-line--dashed {
    stroke-dasharray: 6 6;
}

.org-node {
    opacity: 0;
    transform: scale(0.98);
    transform-origin: center;
    transform-box: fill-box;
    animation: org-node 1.1s ease forwards;
}

.org-node:nth-of-type(1) { animation-delay: 0.1s; }
.org-node:nth-of-type(2) { animation-delay: 0.15s; }
.org-node:nth-of-type(3) { animation-delay: 0.2s; }
.org-node:nth-of-type(4) { animation-delay: 0.25s; }
.org-node:nth-of-type(5) { animation-delay: 0.3s; }

@keyframes org-line {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes org-node {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Organigramm Wiki */
.orgchart-wrap {
    display: grid;
    gap: 10px;
}

.orgchart-diagram {
    background: transparent;
    border-radius: 0;
    border: 0;
    overflow: visible;
    box-shadow: none;
}

.orgchart-svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.orgchart-base {
    pointer-events: none;
}

.orgchart-stand-mask {
    fill: #c81414;
}

.orgchart-stand-text {
    font-family: "Oswald", "Arial", sans-serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
    fill: #ffffff;
    letter-spacing: 1px;
}

.orgchart-node {
    cursor: pointer;
    outline: none;
}

.orgchart-node:focus-visible .orgchart-box,
.orgchart-node:focus .orgchart-box {
    stroke: #c81414;
    stroke-width: 2;
}

.orgchart-box--lead {
    fill: #fbfe65;
}

.orgchart-box--sub {
    fill: #fef1a0;
}

.orgchart-box--team {
    fill: #bebebe;
}

.orgchart-box--blue {
    fill: #5d86ff;
}

.orgchart-box--fire {
    fill: #990e0e;
}

.orgchart-box--rep {
    fill: #65ccfe;
}

.orgchart-text {
    font-family: "Arial", "Helvetica", sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 500;
    fill: #000000;
    text-anchor: middle;
}

.orgchart-hint {
    font-size: 12px;
    text-align: right;
}

.orgchart-modal .modal-headline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.orgchart-modal-text h3 {
    margin: 0;
    font-size: 22px;
}

.orgchart-modal-text p {
    margin: 4px 0 0;
    font-size: 13px;
}

.orgchart-detail-window {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(18, 20, 28, 0.98), rgba(10, 12, 16, 0.95));
    overflow: hidden;
}

.orgchart-detail-window::before {
    content: '';
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 180deg, transparent, rgba(255, 90, 36, 0.22), transparent);
    opacity: 0.25;
    animation: orgchart-orbit 18s linear infinite;
}

.orgchart-detail-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(200, 20, 20, 0.35), rgba(255, 90, 36, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.orgchart-detail-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-100%);
    animation: orgchart-scan 6s ease-in-out infinite;
}

.orgchart-detail-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ff8b5b;
    box-shadow: 0 0 12px rgba(255, 139, 91, 0.6);
    animation: orgchart-dot 1.6s ease-in-out infinite;
}

.orgchart-detail-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.orgchart-detail-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.orgchart-detail-title {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
}

.orgchart-detail-status {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.orgchart-detail-body {
    position: relative;
    z-index: 2;
    padding: 18px;
    display: grid;
    gap: 16px;
}

.orgchart-detail-hero,
.orgchart-detail-copy,
.orgchart-detail-tags {
    opacity: 0;
    transform: translateY(8px);
}

.orgchart-modal.is-open .orgchart-detail-hero {
    animation: orgchart-rise 0.5s ease forwards;
}

.orgchart-modal.is-open .orgchart-detail-copy {
    animation: orgchart-rise 0.6s ease forwards;
    animation-delay: 0.05s;
}

.orgchart-modal.is-open .orgchart-detail-tags {
    animation: orgchart-rise 0.6s ease forwards;
    animation-delay: 0.1s;
}

.orgchart-detail-kicker {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #f2b84d;
}

.orgchart-detail-headline {
    margin: 0;
    font-size: 24px;
}

.orgchart-detail-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.orgchart-area-media {
    display: grid;
    gap: 8px;
}

.orgchart-area-media-figure {
    margin: 0;
    display: grid;
    gap: 8px;
}

.orgchart-area-media-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 14, 18, 0.9);
}

.orgchart-area-media-caption {
    font-size: 12px;
    color: var(--muted);
}

.orgchart-area-media-placeholder {
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(12, 14, 18, 0.75);
    padding: 16px;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
}

.orgchart-area-media-placeholder p {
    margin: 0;
    font-size: 13px;
    color: #d7dbe2;
}

.orgchart-area-media-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.orgchart-area-media-loader span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff8b5b, #ff6b3d);
    animation: orgchart-bounce 1.2s ease-in-out infinite;
}

.orgchart-area-media-loader span:nth-child(2) {
    animation-delay: 0.15s;
}

.orgchart-area-media-loader span:nth-child(3) {
    animation-delay: 0.3s;
}

.orgchart-detail-copy p {
    margin: 0 0 10px;
    line-height: 1.6;
    color: #d9dce1;
}

.orgchart-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.orgchart-detail-chip {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.4px;
    background: rgba(255, 90, 36, 0.14);
    border: 1px solid rgba(255, 90, 36, 0.32);
    color: #ffb384;
}

.orgchart-detail-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.orgchart-detail-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 12px;
    background: rgba(18, 20, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(8px);
}

.orgchart-detail-card::before {
    content: '';
    position: absolute;
    inset: -60% 30% 40% -60%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.2;
    animation: orgchart-scan 5s ease-in-out infinite;
}

.orgchart-detail-card strong {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.orgchart-detail-pulse {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 16px;
}

.orgchart-detail-pulse span {
    width: 6px;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff8b5b, #ff6b3d);
    animation: orgchart-pulse 1.2s ease-in-out infinite;
    transform-origin: bottom;
}

.orgchart-detail-pulse span:nth-child(2) {
    animation-delay: 0.15s;
}

.orgchart-detail-pulse span:nth-child(3) {
    animation-delay: 0.3s;
}

.orgchart-detail-pulse span:nth-child(4) {
    animation-delay: 0.45s;
}

.orgchart-modal.is-open .orgchart-detail-card {
    animation: orgchart-rise 0.6s ease forwards;
}

.orgchart-modal.is-open .orgchart-detail-card:nth-child(1) { animation-delay: 0.12s; }
.orgchart-modal.is-open .orgchart-detail-card:nth-child(2) { animation-delay: 0.18s; }
.orgchart-modal.is-open .orgchart-detail-card:nth-child(3) { animation-delay: 0.24s; }

.orgchart-coming {
    animation: orgchart-rise 0.5s ease both;
}

.orgchart-soon-window {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 16, 20, 0.95);
    overflow: hidden;
}

.orgchart-soon-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(200, 20, 20, 0.35), rgba(200, 20, 20, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.orgchart-soon-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ff8b5b;
    animation: orgchart-dot 1.6s ease-in-out infinite;
}

.orgchart-soon-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.orgchart-soon-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.orgchart-soon-title {
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.orgchart-soon-body {
    padding: 18px;
    display: grid;
    gap: 10px;
    text-align: center;
}

.orgchart-soon-loader {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.orgchart-soon-loader span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff8b5b;
    animation: orgchart-bounce 1.2s ease-in-out infinite;
}

.orgchart-soon-loader span:nth-child(2) {
    animation-delay: 0.15s;
}

.orgchart-soon-loader span:nth-child(3) {
    animation-delay: 0.3s;
}

.orgchart-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.orgchart-admin-group {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 18, 22, 0.75);
    margin-bottom: 16px;
}

.orgchart-admin-head h4 {
    margin: 0;
    font-size: 16px;
}

.orgchart-admin-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.orgchart-admin-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 14, 18, 0.9);
}

.orgchart-admin-card--meta {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 14px;
}

.orgchart-admin-card input {
    background: rgba(16, 20, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
}

.orgchart-admin-card input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.orgchart-admin-card input:focus {
    outline: none;
    border-color: rgba(255, 90, 36, 0.6);
    box-shadow: 0 0 0 2px rgba(255, 90, 36, 0.2);
}

.orgchart-admin-media {
    margin-top: 8px;
    display: grid;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.orgchart-admin-media-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.orgchart-admin-media-placeholder {
    min-height: 64px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(16, 20, 28, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
}

.orgchart-admin-media-input {
    font-size: 12px;
}

.orgchart-admin-media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@keyframes orgchart-dot {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes orgchart-bounce {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes orgchart-orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orgchart-scan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    45% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes orgchart-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orgchart-pulse {
    0%, 100% {
        transform: scaleY(0.4);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Modern Role Selection UI - 2026 Design */
.role-select-wrapper {
    position: relative;
    width: 100%;
}

.role-select-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border: 2px solid rgba(255, 90, 36, 0.25);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(28, 29, 32, 0.9), rgba(20, 21, 24, 0.7));
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.role-select-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 90, 36, 0.1), transparent);
    transition: left 0.5s ease;
}

.role-select-button:hover::before {
    left: 100%;
}

.role-select-button:hover {
    border-color: rgba(255, 90, 36, 0.6);
    background: linear-gradient(135deg, rgba(255, 90, 36, 0.12), rgba(255, 90, 36, 0.06));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 90, 36, 0.25);
}

.role-select-button.active {
    border-color: rgba(255, 90, 36, 0.8);
    background: linear-gradient(135deg, rgba(255, 90, 36, 0.18), rgba(255, 90, 36, 0.12));
    box-shadow: 0 0 0 4px rgba(255, 90, 36, 0.15), 0 12px 32px rgba(255, 90, 36, 0.3);
}

.role-select-text {
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-select-text::before {
    content: "\1F3AD";
    font-size: 20px;
    opacity: 0.8;
}

.role-select-text.selected {
    color: var(--accent-3);
}

.role-select-text.selected::before {
    opacity: 1;
    transform: scale(1.1);
}

.role-select-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 90, 36, 0.1);
}

.role-select-button.active .role-select-arrow {
    transform: rotate(180deg);
    background: rgba(255, 90, 36, 0.2);
    opacity: 1;
}

.role-select-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(20, 21, 24, 0.98), rgba(17, 18, 20, 0.98));
    border: 1px solid rgba(255, 90, 36, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 90, 36, 0.1);
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(20px);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.role-select-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.role-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 90, 36, 0.3);
    border-radius: 4px;
}

.role-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 90, 36, 0.5);
}

.role-select-dropdown.show {
    display: block;
}

.role-select-wrapper .role-select-button,
.role-select-wrapper .role-select-dropdown {
    display: none;
}

.role-select-wrapper.is-ready .role-select-button {
    display: flex;
}

.role-select-wrapper.is-ready .role-select-dropdown {
    display: none;
}

.role-select-wrapper.is-ready .role-select-dropdown.show {
    display: block;
}

.role-select-wrapper.is-ready .role-request-select {
    display: none;
}

.role-select-option {
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.role-select-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-3);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.role-select-option:last-child {
    border-bottom: none;
}

.role-select-option:hover {
    background: linear-gradient(90deg, rgba(255, 90, 36, 0.1), rgba(255, 90, 36, 0.05));
    padding-left: 32px;
    transform: translateX(4px);
}

.role-select-option:hover::before {
    transform: scaleY(1);
}

.role-select-option.selected {
    background: linear-gradient(90deg, rgba(255, 90, 36, 0.15), rgba(255, 90, 36, 0.08));
    color: var(--accent-3);
    font-weight: 600;
    padding-left: 32px;
}

.role-select-option.selected::before {
    transform: scaleY(1);
}

.role-select-option-icon {
    font-size: 20px;
    opacity: 0.7;
    transition: all 0.25s ease;
    min-width: 24px;
    text-align: center;
}

.role-select-option:hover .role-select-option-icon,
.role-select-option.selected .role-select-option-icon {
    opacity: 1;
    transform: scale(1.15);
}

.role-select-option.selected .role-select-option-icon {
    color: #ffb47a;
    text-shadow: 0 0 12px rgba(255, 90, 36, 0.35);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Rollen-Anfrage Konfiguration */
.role-request-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 20, 26, 0.7);
    margin-bottom: 8px;
    cursor: grab;
}

.role-request-row.dragging {
    opacity: 0.5;
}

.role-request-handle {
    color: var(--muted);
}

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

.role-request-form input {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #2f3136;
    background: #141518;
    color: var(--text);
}

/* Rettungsdienst Medikamentenhilfe */
.med-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.med-card {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    animation: float-in 0.6s ease both;
}

.med-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.med-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.med-body {
    display: grid;
    gap: 6px;
    font-size: 13px;
}

/* Wiki Medikamentenhilfe */
.medhelp-shell {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.medhelp-hero-card {
    border-color: rgba(255, 255, 255, 0.12);
}

.medhelp-hero-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.medhelp-alert {
    margin-bottom: 16px;
    border: 1px dashed rgba(242, 107, 107, 0.6);
    background: rgba(242, 107, 107, 0.08);
    display: grid;
    gap: 6px;
    animation: float-in 0.6s ease both;
}

.medhelp-alert p {
    margin: 0;
    color: var(--muted);
}

.medhelp-controls {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 16px;
}

.medhelp-search-panel {
    display: grid;
    gap: 12px;
    grid-column: span 2;
}

.medhelp-panel-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.medhelp-filter-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.medhelp-controls-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.medhelp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.medhelp-toolbar-main {
    display: grid;
    gap: 6px;
}

.medhelp-toolbar-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.medhelp-sort select {
    min-width: 200px;
}

.medhelp-active {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.medhelp-chip {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(215, 38, 56, 0.12);
    border: 1px solid rgba(215, 38, 56, 0.3);
    color: #ffd1d8;
    white-space: normal;
    line-height: 1.2;
}

.medhelp-results {
    display: grid;
    gap: 16px;
}

.medhelp-status-bar {
    margin-bottom: 16px;
}

.medhelp-status-left {
    display: grid;
    gap: 6px;
}

.medhelp-status-left strong {
    color: var(--accent-3);
    font-size: 18px;
}

.medhelp-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.medhelp-card {
    position: relative;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 20, 26, 0.92), rgba(10, 12, 16, 0.86));
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 12px;
    animation: float-in 0.6s ease both;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.medhelp-card.is-pinned {
    border-color: rgba(255, 122, 24, 0.5);
    box-shadow: 0 16px 36px rgba(255, 122, 24, 0.2);
}

.medhelp-card.medhelp-highlight {
    border-color: rgba(215, 38, 56, 0.8);
    box-shadow: 0 0 0 2px rgba(215, 38, 56, 0.4), 0 18px 36px rgba(215, 38, 56, 0.25);
    animation: medhelpPulse 1.2s ease-in-out infinite;
}

.medhelp-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.medhelp-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.medhelp-card-head > div {
    min-width: 0;
}

.medhelp-card-head h3 {
    margin: 0;
    font-size: 18px;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.medhelp-subtitle {
    display: inline-flex;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.medhelp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.medhelp-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.medhelp-badge[data-tone='critical'] {
    background: rgba(215, 38, 56, 0.2);
    border-color: rgba(215, 38, 56, 0.45);
    color: #ffd1d8;
}

.medhelp-badge[data-tone='warn'] {
    background: rgba(247, 181, 56, 0.16);
    border-color: rgba(247, 181, 56, 0.4);
    color: #ffe2a3;
}

.medhelp-badge[data-tone='calm'] {
    background: rgba(80, 200, 120, 0.14);
    border-color: rgba(80, 200, 120, 0.35);
    color: #c4f2d5;
}

.medhelp-badge[data-tone='neutral'] {
    background: rgba(154, 163, 178, 0.14);
    border-color: rgba(154, 163, 178, 0.35);
    color: #dbe2f0;
}

.medhelp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.medhelp-stat {
    background: rgba(12, 15, 20, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.medhelp-stat span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
}

.medhelp-stat strong {
    font-size: 15px;
}

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

.medhelp-actions .ghost-button.small.is-active {
    border-color: rgba(255, 122, 24, 0.6);
    color: #ffd7b0;
    background: rgba(255, 122, 24, 0.15);
}

.medhelp-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.medhelp-card[data-open='1'] .medhelp-details {
    max-height: 320px;
    opacity: 1;
}

.medhelp-modal {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 14, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px 18px 40px;
    z-index: 1100;
    overflow-y: auto;
}

.medhelp-modal.open {
    display: flex;
    animation: modal-pop 0.4s ease both;
}

.medhelp-modal-content {
    width: min(680px, 92vw);
    background: rgba(12, 16, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    position: relative;
    display: grid;
    gap: 16px;
}

.medhelp-modal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.medhelp-modal-title h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

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

.medhelp-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.medhelp-modal-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.medhelp-modal-grid div {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 16, 0.6);
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.medhelp-modal-grid span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.medhelp-modal-note {
    border-radius: 14px;
    border: 1px dashed rgba(255, 122, 24, 0.4);
    background: rgba(255, 122, 24, 0.08);
    padding: 12px 14px;
    font-size: 12px;
    color: var(--muted);
    display: grid;
    gap: 6px;
}

@media (max-width: 720px) {
    .medhelp-modal-content {
        padding: 18px;
    }
}

.medhelp-summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.medhelp-summary-grid div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.medhelp-summary-grid span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.medhelp-summary-grid strong {
    color: var(--accent-3);
}

.medhelp-pins-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.medhelp-pins-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.medhelp-pin-chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(14, 18, 24, 0.7);
    color: var(--text);
    cursor: pointer;
}

.medhelp-pin-chip:hover {
    border-color: rgba(255, 122, 24, 0.5);
    color: var(--accent-3);
}

.medhelp-pin-chip.is-muted {
    opacity: 0.5;
}

.medhelp-empty {
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    background: rgba(215, 38, 56, 0.08);
    border: 1px dashed rgba(215, 38, 56, 0.35);
    color: var(--muted);
}

.medhelp-assistant {
    display: grid;
    gap: 12px;
}

.medhelp-assistant-head h4 {
    margin-bottom: 4px;
}

.medhelp-assistant-head p {
    margin: 0;
}

.medhelp-alpha-pill {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(242, 107, 107, 0.2);
    border: 1px solid rgba(242, 107, 107, 0.5);
    color: #f9b1b1;
    margin-left: 6px;
    letter-spacing: 1px;
}

.medhelp-assistant-result {
    min-height: 70px;
    display: grid;
    gap: 6px;
}

.medhelp-assistant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.medhelp-assistant-tags span {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.medhelp-assistant-tags button {
    border-radius: 999px;
}

.medhelp-confidence {
    font-weight: 600;
    color: var(--accent-3);
}

.medhelp-assistant-alt {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.medhelp-assistant .primary-button {
    width: 100%;
    justify-content: center;
}

.medhelp-assistant-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.7);
    padding: 12px;
    display: grid;
    gap: 6px;
}

.medhelp-assistant-card strong {
    font-size: 14px;
}

.medhelp-assistant-meta {
    font-size: 12px;
    color: var(--muted);
}

.medhelp-assistant-meta.warn {
    color: #ffb3b3;
}

.medhelp-alpha {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(242, 107, 107, 0.6);
    background: rgba(242, 107, 107, 0.08);
    animation: glow-pulse 3.2s ease-in-out infinite;
}

.medhelp-alpha p {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .medhelp-shell {
        grid-template-columns: 1fr;
    }
    .medhelp-search-panel {
        grid-column: span 1;
    }
    .medhelp-filter-grid {
        grid-template-columns: 1fr;
    }
}

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

.request-hero-card {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 18px;
    border-radius: 16px;
    max-width: 320px;
}

.doc-workshop {
    display: grid;
    gap: 20px;
}

.doc-workshop-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.doc-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.doc-warning {
    border: 1px solid rgba(215, 38, 56, 0.55);
    background: linear-gradient(150deg, rgba(74, 14, 16, 0.85), rgba(18, 18, 22, 0.9));
    box-shadow: 0 14px 28px rgba(215, 38, 56, 0.2);
}

.doc-warning strong {
    color: #ffb3b3;
}

.doc-issued-grid {
    display: grid;
    gap: 16px;
}

.doc-issued-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(22, 18, 18, 0.85), rgba(16, 18, 22, 0.8));
    display: grid;
    gap: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.doc-issued-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 38, 56, 0.35);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.doc-issued-meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.doc-issued-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.doc-issued-empty {
    margin-top: 12px;
}

.doc-panel .request-form {
    margin-bottom: 10px;
}

.request-hero-card .hero-card-actions {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}

.request-hero-card .hero-card-actions .primary-button {
    width: 100%;
    text-align: center;
}

.request-panel {
    position: relative;
    overflow: hidden;
}

.request-panel::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 90, 36, 0.25), transparent 70%);
    right: -40px;
    top: -40px;
    pointer-events: none;
}

.request-card {
    background: linear-gradient(135deg, rgba(28, 29, 32, 0.8), rgba(20, 21, 24, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 90, 36, 0.3);
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.request-card-body {
    color: var(--muted);
    line-height: 1.4;
}

.request-meta {
    font-size: 12px;
    color: var(--muted);
}

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

.request-quick {
    margin-top: 12px;
}

.request-tile {
    display: block;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease;
}

.request-tile:hover {
    transform: translateY(-4px);
}

/* Leitstellenblatt */
.leitstelle-alert {
    border: 1px solid rgba(255, 120, 70, 0.4);
    background: linear-gradient(135deg, rgba(255, 120, 70, 0.15), rgba(255, 255, 255, 0.02));
}

.leitstelle-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.leitstelle-card header h3 {
    margin: 0;
    font-size: 16px;
}

.leitstelle-card.locked {
    opacity: 0.6;
    border-style: dashed;
}

.leitstelle-list {
    display: grid;
    gap: 12px;
}

.leitstelle-person {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.leitstelle-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(241, 90, 36, 0.7), rgba(241, 90, 36, 0.2));
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #131313;
}

/* Request Hub */
.request-hero--hub {
    align-items: center;
}

.hub-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.request-hub-stats {
    margin-bottom: 18px;
}

.hub-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(28, 29, 32, 0.9), rgba(20, 21, 24, 0.7));
}

/* Bewerbungs-Portal Design */
.bewerbung-editor {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 20, 24, 0.9), rgba(12, 13, 15, 0.9));
    box-shadow: inset 0 0 0 1px rgba(241, 90, 36, 0.04);
}

.bewerbung-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(90deg, rgba(241, 90, 36, 0.08), rgba(255, 255, 255, 0.02));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bewerbung-editor-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bewerbung-editor-group:not(:last-child) {
    padding-right: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-btn {
    background: rgba(15, 16, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.editor-btn span {
    pointer-events: none;
}

.editor-btn:hover {
    border-color: rgba(241, 90, 36, 0.55);
    color: var(--accent-3);
    transform: translateY(-2px);
    background: rgba(241, 90, 36, 0.08);
}

.bewerbung-editor-body {
    min-height: 210px;
    padding: 16px;
    background: rgba(10, 11, 13, 0.35);
    color: var(--text);
    outline: none;
    line-height: 1.6;
    font-size: 14px;
    font-family: inherit;
}

.bewerbung-editor-body.is-empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
    pointer-events: none;
}

.bewerbung-editor-body p { margin: 0 0 10px; }

.bewerbung-editor-body ul,
.bewerbung-editor-body ol {
    margin: 0 0 10px 18px;
    color: var(--muted);
}

.bewerbung-editor-body blockquote {
    margin: 0 0 10px;
    padding-left: 12px;
    border-left: 3px solid rgba(241, 90, 36, 0.35);
    color: var(--muted);
}

/* Hero & cards */
.bewerbung-hero-card {
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(36,15,15,0.92), rgba(20,22,28,0.88));
    border: 1px solid rgba(241,90,36,0.08);
    box-shadow: 0 18px 40px rgba(11,9,10,0.6);
}

.bewerbung-hero-card .badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-radius: 999px;
    font-weight: 700;
}

.bewerbung-hero-card h1 {
    margin-top: 10px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    font-size: clamp(20px, 3.8vw, 34px);
}

.bewerbung-hero-info .info-card {
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(19,20,23,0.85), rgba(24,18,18,0.8));
    border: 1px solid rgba(255,255,255,0.03);
}

.bewerbung-panel {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bewerbung-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}

.bewerbung-type {
    padding: 14px 16px;
    border-radius: 12px;
}

.bewerbung-type strong { font-size: 15px; }
.bewerbung-type span { display: block; margin-top: 6px; }

.bewerbung-type.is-active {
    background: linear-gradient(135deg, rgba(181,18,18,0.12), rgba(241,90,36,0.04));
    border-color: rgba(241,90,36,0.45);
}

.bewerbung-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.bewerbung-facts {
    gap: 10px;
}

.discord-button {
    box-shadow: 0 10px 30px rgba(181,18,18,0.12);
}

.bewerbung-status-card {
    min-height: 80px;
}

@media (max-width: 880px) {
    .public-shell { padding: 40px 12px; }
    .bewerbung-grid { grid-template-columns: 1fr; }
    .bewerbung-hero { grid-template-columns: 1fr; }
}

.hub-stat-card::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    right: -40px;
    top: -40px;
    background: radial-gradient(circle, rgba(255, 90, 36, 0.25), transparent 70%);
    pointer-events: none;
}

.hub-stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.hub-stat-icon {
    font-size: 18px;
}

.hub-stat-value {
    margin: 10px 0 2px;
    font-size: 28px;
    font-weight: 700;
}

.hub-stat-meta {
    font-size: 12px;
    color: var(--muted);
}

.hub-section {
    margin-bottom: 18px;
}

.hub-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.hub-section-header h3 {
    margin: 0;
    font-size: 20px;
}

.hub-section-meta {
    font-size: 12px;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.hub-urlaub-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 12px;
}

.hub-subpanel {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(28, 29, 32, 0.85), rgba(20, 21, 24, 0.65));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hub-subpanel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.hub-subpanel h4 {
    margin: 0;
    font-size: 16px;
}

.hub-submeta {
    font-size: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 999px;
}

.hub-stat-list {
    display: grid;
    gap: 10px;
}

.hub-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.hub-stat-row.is-clickable {
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hub-stat-row.is-clickable:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.urlaub-stats-cta {
    display: flex;
    justify-content: center;
    padding: 18px 6px;
}

.stats-launch-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(245, 90, 36, 0.25), rgba(181, 18, 18, 0.15));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stats-launch-button::after {
    content: '';
    position: absolute;
    inset: -40% -60%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 60%);
    transform: translateX(-120%);
    animation: stats-sweep 3.8s ease-in-out infinite;
}

.stats-launch-button:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.stats-launch-icon {
    font-size: 18px;
}

.stats-launch-text {
    letter-spacing: 0.3px;
}

.urlaub-stats-page {
    position: relative;
}

.urlaub-stats-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(140deg, rgba(20, 21, 25, 0.8), rgba(32, 35, 43, 0.6));
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.urlaub-stats-hero-content h2 {
    margin: 6px 0 8px;
    font-size: 28px;
}

.urlaub-stats-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.urlaub-stats-back {
    position: relative;
    overflow: hidden;
}

.urlaub-stats-back::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 45%, transparent 60%);
    transform: translateX(-140%);
    animation: stats-back-sweep 4.2s ease-in-out infinite;
}

.urlaub-stats-hero-art {
    position: relative;
    min-height: 140px;
}

.urlaub-stats-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.9;
    animation: stats-float 6s ease-in-out infinite;
}

.urlaub-stats-orb.is-one {
    width: 110px;
    height: 110px;
    right: 20px;
    top: 10px;
    background: radial-gradient(circle at 30% 30%, rgba(241, 90, 36, 0.9), rgba(241, 90, 36, 0.1));
}

.urlaub-stats-orb.is-two {
    width: 80px;
    height: 80px;
    right: 120px;
    bottom: 0;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.5), rgba(181, 18, 18, 0.05));
    animation-delay: 1.5s;
}

.urlaub-stats-orb.is-three {
    width: 140px;
    height: 140px;
    right: -10px;
    bottom: -30px;
    background: radial-gradient(circle at 40% 40%, rgba(35, 85, 170, 0.4), rgba(17, 18, 20, 0));
    animation-delay: 0.8s;
}

.urlaub-stats-gridline {
    position: absolute;
    inset: 20px 30px 20px 30px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    animation: stats-pulse 3.5s ease-in-out infinite;
}

.urlaub-stats-shell {
    display: grid;
    gap: 18px;
}

.urlaub-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.urlaub-stats-metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.urlaub-stats-metric strong {
    font-size: 22px;
}

.urlaub-stats-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.urlaub-stats-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(28, 29, 32, 0.9), rgba(42, 44, 50, 0.6));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transform: translateY(10px);
    opacity: 0;
    animation: stats-reveal 0.6s ease forwards;
}

.urlaub-stats-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.urlaub-stats-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 1px;
    background-size: cover;
    background-position: center;
}

.urlaub-stats-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.urlaub-stats-card-title strong {
    font-size: 18px;
}

.urlaub-stats-rank {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.urlaub-stats-card-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.urlaub-stats-card-metrics {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.urlaub-stats-card-metrics div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: var(--muted);
}

.urlaub-stats-card-metrics strong {
    font-size: 16px;
    color: var(--text);
}

.urlaub-stats-card-cta {
    font-size: 12px;
    color: var(--accent-3);
    letter-spacing: 0.5px;
}

.urlaub-stats-modal .modal-grid strong {
    font-size: 16px;
}

@keyframes stats-sweep {
    0% { transform: translateX(-120%); opacity: 0; }
    20% { opacity: 1; }
    50% { transform: translateX(30%); opacity: 0.8; }
    100% { transform: translateX(120%); opacity: 0; }
}

@keyframes stats-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-8px) translateX(6px); }
}

@keyframes stats-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes stats-reveal {
    to { transform: translateY(0); opacity: 1; }
}

@keyframes stats-back-sweep {
    0% { transform: translateX(-140%); opacity: 0; }
    30% { opacity: 1; }
    70% { transform: translateX(140%); opacity: 0; }
    100% { transform: translateX(140%); opacity: 0; }
}

@media (max-width: 900px) {
    .urlaub-stats-hero {
        grid-template-columns: 1fr;
    }
    .urlaub-stats-hero-art {
        min-height: 120px;
    }
}

@media (max-width: 600px) {
    .urlaub-stats-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }
    .urlaub-stats-card-cta {
        margin-top: 8px;
    }
}

.hub-stat-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hub-stat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #121212;
    background: linear-gradient(135deg, rgba(255, 90, 36, 0.65), rgba(255, 90, 36, 0.2));
    background-size: cover;
    background-position: center;
}

.hub-stat-name {
    font-weight: 600;
}

.hub-stat-name small {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.hub-stat-metrics {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
}

.hub-stat-metrics strong {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.hub-stat-metrics span {
    display: block;
}

.hub-empty {
    color: var(--muted);
    text-align: center;
    padding: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.hub-empty.error {
    color: #f26b6b;
    border-color: rgba(242, 107, 107, 0.4);
}

.request-card.animate-in {
    opacity: 0;
    transform: translateY(6px);
    animation: requestCardIn 0.4s ease forwards;
}

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

.page-actions {
    margin: 24px 0 12px;
}

.ghost-button.small.is-on {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Profile Enhancements */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 18px;
}

.profile-section {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-section h4 {
    margin: 0 0 12px;
}

.profile-section.wide {
    grid-column: span 2;
}

.profile-clicker-section p {
    margin: 0 0 12px;
}

.bf-effect-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: center;
}

.bf-effect-preview {
    display: flex;
    justify-content: center;
}

.bf-effect-preview-card {
    position: relative;
    min-height: 86px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(10, 14, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    overflow: hidden;
    --bf-effect-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.bf-effect-preview-card.is-mini {
    min-height: 64px;
    padding: 10px 12px;
}

.bf-effect-preview-card.is-mini strong {
    font-size: 12px;
}

.bf-effect-preview-card.is-mini span {
    font-size: 10px;
}

.bf-effect-preview-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: var(--bf-effect-gradient);
    opacity: 0.7;
    z-index: 0;
}

.bf-effect-preview-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 12px;
    background: rgba(10, 14, 20, 0.7);
    z-index: 0;
}

.bf-effect-preview-card > * {
    position: relative;
    z-index: 1;
    display: block;
}

.bf-effect-preview-card strong {
    font-size: 14px;
    letter-spacing: 0.4px;
}

.bf-effect-preview-card span {
    font-size: 12px;
    color: var(--deck-muted);
}

.bf-effect-preview-card[data-effect="ember"] {
    --bf-effect-gradient: linear-gradient(135deg, rgba(215, 38, 56, 0.8), rgba(255, 122, 24, 0.4));
}

.bf-effect-preview-card[data-effect="pulse"] {
    --bf-effect-gradient: linear-gradient(135deg, rgba(52, 199, 89, 0.7), rgba(10, 92, 255, 0.4));
}

.bf-effect-preview-card[data-effect="ring"] {
    --bf-effect-gradient: linear-gradient(135deg, rgba(255, 179, 71, 0.7), rgba(255, 90, 36, 0.4));
}

.bf-effect-preview-card[data-effect="flare"] {
    --bf-effect-gradient: linear-gradient(135deg, rgba(255, 120, 100, 0.8), rgba(255, 210, 110, 0.45));
}

.bf-effect-preview-card[data-effect="halo"] {
    --bf-effect-gradient: linear-gradient(135deg, rgba(224, 247, 255, 0.9), rgba(120, 210, 255, 0.5));
}

.bf-effect-preview-card[data-effect="beam"] {
    --bf-effect-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 122, 24, 0.4));
}

.bf-effect-preview-card[data-effect="aurora"] {
    --bf-effect-gradient: linear-gradient(135deg, rgba(126, 236, 255, 0.85), rgba(255, 122, 24, 0.35));
}

.bf-effect-preview-card[data-effect="inferno"] {
    --bf-effect-gradient: linear-gradient(135deg, rgba(255, 96, 66, 0.85), rgba(255, 190, 90, 0.45));
}

.bf-effect-preview-card[data-effect="storm"] {
    --bf-effect-gradient: linear-gradient(135deg, rgba(120, 210, 255, 0.9), rgba(140, 90, 255, 0.45));
}

.bf-effect-preview-card[data-effect="mythic"] {
    --bf-effect-gradient: linear-gradient(135deg, rgba(255, 215, 64, 0.9), rgba(215, 38, 56, 0.45));
}

.bf-effect-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.toggle-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 6px;
}

/* Permissions Dropdown */
.perm-dropdown {
    display: grid;
    gap: 8px;
}

.perm-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(17, 18, 20, 0.8);
    color: var(--text);
    cursor: pointer;
}

.perm-dropdown-toggle::after {
    content: "\25BE";
    opacity: 0.7;
}

.perm-dropdown-menu {
    display: none;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 16, 0.95);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 38, 56, 0.7) rgba(255, 255, 255, 0.08);
}

.perm-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.perm-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.perm-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(215, 38, 56, 0.7);
    border-radius: 999px;
}

.perm-dropdown.open .perm-dropdown-menu {
    display: grid;
    gap: 6px;
}

.perm-option {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    font-size: 13px;
}

.perm-option:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.perm-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.perm-option .perm-source {
    margin-left: 6px;
    font-style: normal;
}

.lock-info {
    font-size: 12px;
    color: var(--muted);
}

/* Audit Log */
.audit-log {
    display: grid;
    gap: 12px;
}

.audit-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.audit-controls input[type='search'] {
    flex: 1 1 240px;
    background: #141518;
    border: 1px solid #2f3136;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 12px;
}

.audit-pager {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.audit-row {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    background: rgba(17, 18, 20, 0.7);
}

.audit-headline {
    font-weight: 700;
}

.audit-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    word-break: break-word;
}

/* Changelog Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: grid;
    place-items: center;
    z-index: 999;
}

.modal-overlay.hidden {
    display: none;
}

/* Ticket Transcripts */
.transcript-page {
    --transcript-accent: #f2a11b;
    --transcript-accent-2: #2ec4b6;
    --transcript-ink: #f6f2ea;
    --transcript-card: rgba(20, 22, 27, 0.96);
    --transcript-border: rgba(255, 255, 255, 0.08);
    --transcript-glow: rgba(46, 196, 182, 0.22);
}

.ticket-transcripts {
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
}

.transcript-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 20px;
    padding: 26px;
    background: linear-gradient(145deg, rgba(24, 26, 32, 0.96), rgba(12, 14, 18, 0.95));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.transcript-hero::before,
.transcript-hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 196, 182, 0.35), transparent 70%);
    animation: transcript-float 8s ease-in-out infinite;
}

.transcript-hero::before {
    top: -120px;
    left: -80px;
}

.transcript-hero::after {
    bottom: -140px;
    right: -80px;
    background: radial-gradient(circle, rgba(242, 161, 27, 0.35), transparent 70%);
    animation-delay: 1.4s;
}

.transcript-hero-copy {
    position: relative;
    z-index: 2;
}

.transcript-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.transcript-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.4px;
    background: rgba(18, 20, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--transcript-ink);
}

.live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--transcript-accent-2);
    box-shadow: 0 0 0 rgba(46, 196, 182, 0.6);
    animation: transcript-pulse 2s ease-in-out infinite;
}

.transcript-hero-panel {
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.transcript-hero-card {
    background: rgba(16, 18, 22, 0.85);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.transcript-hero-card.highlight {
    border-color: rgba(46, 196, 182, 0.35);
    background: linear-gradient(160deg, rgba(18, 30, 34, 0.9), rgba(12, 14, 18, 0.9));
}

.transcript-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.transcript-cabinet {
    background: var(--panel);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--transcript-border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.transcript-cabinet::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    opacity: 0.4;
    pointer-events: none;
}

.transcript-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.transcript-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transcript-toolbar-actions .ghost-button.active {
    border-color: rgba(46, 196, 182, 0.6);
    color: #dbfff9;
    background: rgba(46, 196, 182, 0.15);
}

.transcript-search {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.transcript-search input {
    width: 100%;
    padding: 12px 44px 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 19, 22, 0.85);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.transcript-search input:focus {
    border-color: rgba(46, 196, 182, 0.6);
    box-shadow: 0 0 0 2px rgba(46, 196, 182, 0.15);
    outline: none;
}

.transcript-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.transcript-count {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.transcript-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    position: relative;
    z-index: 2;
}

.transcript-card {
    background: linear-gradient(160deg, rgba(24, 27, 33, 0.98), rgba(16, 17, 22, 0.9));
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: transcript-card-in 0.6s ease both;
    animation-delay: var(--delay, 0s);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transcript-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(46, 196, 182, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.transcript-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.transcript-card:hover::before {
    opacity: 1;
}

.transcript-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.transcript-card-title strong {
    display: block;
    font-size: 17px;
}

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

.transcript-star {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(16, 18, 22, 0.7);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.transcript-star.active {
    color: #ffd48a;
    border-color: rgba(242, 161, 27, 0.6);
    background: rgba(242, 161, 27, 0.15);
}

.transcript-card-meta {
    color: var(--muted);
    font-size: 12px;
    display: grid;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.transcript-card-stats {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.transcript-card-stats div {
    background: rgba(18, 19, 22, 0.6);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
    color: var(--muted);
}

.transcript-card-stats strong {
    font-size: 16px;
    color: var(--text);
}

.transcript-card-reason {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(46, 196, 182, 0.08);
    border: 1px solid rgba(46, 196, 182, 0.2);
    font-size: 12px;
    display: grid;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.transcript-card-reason span {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    color: var(--muted);
}

.transcript-feedback {
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(242, 161, 27, 0.15);
    color: #ffd48a;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.transcript-pagination {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

.page-button {
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 19, 22, 0.7);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-button.active {
    border-color: rgba(46, 196, 182, 0.6);
    background: rgba(46, 196, 182, 0.2);
    color: #dbfff9;
}

.transcript-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 12, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    backdrop-filter: blur(6px);
}

.transcript-lightbox.open {
    display: flex;
    animation: transcript-fade 0.25s ease;
}

.transcript-window {
    width: min(1200px, 94vw);
    height: min(78vh, 860px);
    background: linear-gradient(160deg, rgba(24, 26, 32, 0.98), rgba(12, 13, 17, 0.96));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: transcript-window-pop 0.35s ease;
    position: relative;
}

.transcript-window::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(46, 196, 182, 0.1), transparent 60%);
    pointer-events: none;
}

.transcript-window-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 18, 24, 0.8);
    position: relative;
    z-index: 2;
}

.transcript-window-title h3 {
    margin: 4px 0 0;
    font-size: 20px;
}

.transcript-window-meta {
    color: var(--muted);
    font-size: 12px;
    margin: 6px 0 0;
}

.transcript-window-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.transcript-window-actions .transcript-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(0.2);
}

.transcript-window-actions .transcript-send:disabled::before {
    opacity: 0;
}

.icon-button {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 16, 20, 0.8);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.icon-button.active {
    color: #ffd48a;
    border-color: rgba(242, 161, 27, 0.6);
    background: rgba(242, 161, 27, 0.15);
}

.danger-button {
    background: rgba(181, 18, 18, 0.2);
    border: 1px solid rgba(181, 18, 18, 0.6);
    color: #ffb3b3;
}

.danger-button:hover {
    background: rgba(181, 18, 18, 0.4);
}

.transcript-window-body {
    position: relative;
    flex: 1;
    background: rgba(10, 11, 15, 0.75);
}

.transcript-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: var(--muted);
    z-index: 1;
}

.transcript-empty.hidden {
    display: none;
}

.transcript-frame {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.transcript-frame.visible {
    opacity: 1;
    transform: translateY(0);
}

.transcript-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.85);
    display: none;
    place-items: center;
    z-index: 1200;
}

.transcript-modal.open {
    display: grid;
}

.transcript-modal-card {
    width: min(420px, 90vw);
    background: var(--panel-alt);
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    animation: modal-pop 0.35s ease;
    display: grid;
    gap: 14px;
}

.transcript-modal-card.danger {
    border-color: rgba(181, 18, 18, 0.5);
}

.transcript-modal-card input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 19, 22, 0.8);
    color: var(--text);
    font-family: inherit;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

body.transcript-frame-view {
    background: radial-gradient(circle at 15% 15%, rgba(46, 196, 182, 0.2), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(242, 161, 27, 0.2), transparent 45%),
        var(--bg);
}

.transcript-view-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 28px 40px;
}

.transcript-view-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 18px;
    background: linear-gradient(150deg, rgba(28, 29, 32, 0.96), rgba(12, 13, 16, 0.95));
    border-radius: 20px;
    padding: 22px 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.transcript-view-sub {
    color: var(--muted);
    margin: 6px 0 0;
}

.transcript-view-meta {
    display: grid;
    gap: 10px;
    align-items: end;
}

.transcript-view-stamp {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 19, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.transcript-view-reason {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(46, 196, 182, 0.12);
    border: 1px solid rgba(46, 196, 182, 0.3);
    font-size: 12px;
    display: grid;
    gap: 4px;
}

.transcript-view-feedback {
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(242, 161, 27, 0.15);
    border: 1px solid rgba(242, 161, 27, 0.25);
    display: grid;
    gap: 2px;
    text-align: right;
    color: #ffd48a;
}

.transcript-view-feedback strong {
    font-size: 18px;
}

.transcript-view-feedback small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.transcript-view-card {
    background: #111217;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: transcript-sheet 0.6s ease;
}

.transcript-view-card .transcript-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.transcript-view-card .transcript-meta-block {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(46, 196, 182, 0.1);
    border: 1px solid rgba(46, 196, 182, 0.2);
    display: grid;
    gap: 4px;
}

.transcript-view-card .transcript-meta-block span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.transcript-view-card .transcript-message {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(23, 24, 28, 0.7);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.transcript-view-card .transcript-message-header {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.transcript-view-card .transcript-message-body {
    white-space: pre-wrap;
}

.transcript-view-card .transcript-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.transcript-view-card .transcript-attachments img,
.transcript-view-card .transcript-attachments video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.transcript-view-card .transcript-attachment-note {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(18, 19, 22, 0.7);
    color: var(--muted);
    font-size: 12px;
}

.transcript-view-card .transcript-attachment-link {
    color: var(--transcript-accent);
    text-decoration: none;
    font-size: 13px;
}

@keyframes transcript-card-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes transcript-float {
    0% { transform: translate3d(0, 0, 0); opacity: 0.4; }
    50% { transform: translate3d(18px, 8px, 0); opacity: 0.75; }
    100% { transform: translate3d(0, 0, 0); opacity: 0.4; }
}

@keyframes transcript-pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(46, 196, 182, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); }
}

@keyframes transcript-window-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes transcript-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes transcript-sheet {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .transcript-hero {
        grid-template-columns: 1fr;
    }

    .transcript-window {
        height: min(76vh, 780px);
    }
}

@media (max-width: 720px) {
    .transcript-window-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .transcript-window-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .transcript-view-header {
        grid-template-columns: 1fr;
    }
}

.modal-window {
    position: relative;
    width: min(680px, 90vw);
    animation: modal-pop 0.35s ease;
}

.modal-frame {
    position: relative;
    background: linear-gradient(160deg, rgba(22, 24, 28, 0.95), rgba(12, 13, 15, 0.95));
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2;
}

.modal-shadow-layer {
    position: absolute;
    inset: 10px;
    background: rgba(255, 90, 36, 0.2);
    border-radius: 24px;
    filter: blur(24px);
    z-index: 1;
    animation: glow-pulse 1.8s ease-in-out infinite;
}

.badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 90, 36, 0.18);
    border: 1px solid rgba(255, 90, 36, 0.4);
}

#changelog-modal .modal-window {
    width: min(760px, 92vw);
}

#changelog-modal .modal-frame {
    padding: 0;
    overflow: hidden;
}

#changelog-modal .modal-headline {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(181, 18, 18, 0.45), rgba(241, 90, 36, 0.12));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 8px;
}

#changelog-modal .changelog-headline-text h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.5px;
}

#changelog-modal .changelog-headline-text {
    display: grid;
    gap: 4px;
}

#changelog-modal .changelog-modal-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

#changelog-modal .changelog-modal-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

#changelog-modal .modal-body {
    padding: 20px 24px;
    max-height: min(70vh, 620px);
    overflow-y: auto;
    display: grid;
    gap: 14px;
}

#changelog-modal .modal-actions {
    padding: 0 24px 20px;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    #changelog-modal .modal-headline {
        padding: 16px;
    }

    #changelog-modal .modal-body {
        padding: 16px;
    }

    #changelog-modal .modal-actions {
        padding: 0 16px 16px;
    }
}

@keyframes modal-pop {
    from {
        transform: translateY(10px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes glow-pulse {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Leadership Organigram */
.leadership-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.leadership-hero-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.org-stage {
    display: grid;
    gap: 18px;
    padding: 18px;
    background: rgba(12, 12, 14, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.org-row {
    display: grid;
    gap: 16px;
}

.org-lead {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.org-chiefs {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.org-branches {
    display: grid;
    gap: 24px;
}

.org-branch {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.org-node {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    position: relative;
    animation: float-in 0.45s ease both;
}

.org-node span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.org-node.lead {
    background: linear-gradient(140deg, #f7b733, #f6d365);
    color: #1b1b1b;
}

.org-node.chief {
    background: linear-gradient(140deg, #f9d65c, #f3c74b);
    color: #1b1b1b;
}

.org-node.rep {
    background: linear-gradient(140deg, #5cd2ff, #6fb6ff);
    color: #12202a;
}

.org-node.sub {
    background: linear-gradient(140deg, #f8e39b, #f3d279);
    color: #1b1b1b;
}

.org-node.team {
    background: rgba(255, 255, 255, 0.08);
}

.org-node.deputy {
    background: rgba(255, 255, 255, 0.12);
    border-style: dashed;
}

.org-node.vacant {
    opacity: 0.7;
    border-style: dashed;
}

.org-sub {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 12px;
}

.org-deputy {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.org-teams {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.org-stack {
    display: grid;
    gap: 10px;
}

/* Organigram Tree */
.org-tree {
    overflow-x: auto;
    padding: 18px;
    background: rgba(12, 12, 14, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.org-tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
}

.org-tree ul::after {
    content: '';
    display: table;
    clear: both;
}

.org-tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
}

.org-tree li::before,
.org-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    width: 50%;
    height: 20px;
}

.org-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.org-tree li:only-child::after,
.org-tree li:only-child::before {
    display: none;
}

.org-tree li:only-child {
    padding-top: 0;
}

.org-tree li:first-child::before {
    border: 0;
}

.org-tree li:last-child::after {
    border: 0;
}

.org-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    width: 0;
    height: 20px;
}

.org-node.lead-group {
    display: grid;
    gap: 6px;
    padding: 12px 16px;
}

.org-lead-name {
    font-weight: 700;
}

/* Additional status badges */
.status-badge[data-status='pending'] {
    background: rgba(242, 184, 77, 0.2);
    color: #f2b84d;
}

.status-badge[data-status='denied'],
.status-badge[data-status='auto_denied'],
.status-badge[data-status='terminated'] {
    background: rgba(242, 107, 107, 0.2);
    color: #f26b6b;
}

.status-badge[data-status='expired'],
.status-badge[data-status='ended'],
.status-badge[data-status='cancelled'] {
    background: rgba(154, 160, 168, 0.2);
    color: #9aa0a8;
}

@keyframes float-in {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes medhelpPulse {
    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(215, 38, 56, 0.35), 0 16px 32px rgba(215, 38, 56, 0.18);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(215, 38, 56, 0.6), 0 22px 40px rgba(215, 38, 56, 0.3);
    }
}

/* Enhanced Select & Input Styling */
select,
.request-form select,
.role-request-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: linear-gradient(135deg, #1a1c20 0%, #141618 100%) !important;
    color: var(--text) !important;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: 
        linear-gradient(135deg, #1a1c20 0%, #141618 100%),
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f4f6' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 20px !important;
    padding-right: 36px !important;
}

select:hover,
.request-form select:hover,
.role-request-select:hover {
    border-color: rgba(255, 102, 51, 0.4);
    background: linear-gradient(135deg, #1a1c20 0%, #141618 100%) !important;
    background-image: 
        linear-gradient(135deg, #1a1c20 0%, #141618 100%),
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f4f6' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 20px !important;
}

select:focus,
.request-form select:focus,
.role-request-select:focus {
    outline: none;
    border-color: var(--accent-3);
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.1);
    background: linear-gradient(135deg, #1a1c20 0%, #141618 100%) !important;
    background-image: 
        linear-gradient(135deg, #1a1c20 0%, #141618 100%),
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f4f6' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 20px !important;
}

select option,
.request-form select option,
.role-request-select option {
    background: #1a1c20 !important;
    color: var(--text) !important;
    padding: 8px;
}

select option:checked {
    background: linear-gradient(var(--accent-3), var(--accent-3));
    color: var(--text);
}

/* Improved request form styling */
.request-form {
    display: grid;
    gap: 14px;
}

.request-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 500;
}

.request-form label > span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 400;
}

.request-form input[type='text'],
.request-form input[type='email'],
.request-form input[type='url'],
.request-form textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #2f3136;
    background: linear-gradient(135deg, #1a1c20 0%, #141618 100%);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.request-form input[type='text']:hover,
.request-form input[type='email']:hover,
.request-form input[type='url']:hover,
.request-form textarea:hover {
    border-color: rgba(255, 102, 51, 0.4);
}

.request-form input[type='text']:focus,
.request-form input[type='email']:focus,
.request-form input[type='url']:focus,
.request-form textarea:focus {
    outline: none;
    border-color: var(--accent-3);
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.1);
}

.request-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Request Card Improvements */
.request-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(28, 29, 32, 0.8) 0%, rgba(20, 21, 24, 0.6) 100%);
    transition: all 0.2s ease;
}

.request-card:hover {
    border-color: rgba(241, 90, 36, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.request-card-header strong {
    font-size: 16px;
    color: var(--text);
    flex: 1;
}

.request-card-body {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.request-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
}

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

/* Pagination */
.pagination-controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.pagination-info {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
}

@media (max-width: 980px) {
    .topbar-live {
        display: none;
    }
    .request-hero,
    .leadership-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .hub-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hub-urlaub-grid {
        grid-template-columns: 1fr;
    }
    .profile-section.wide {
        grid-column: span 1;
    }
}

/* Error pages */
.error-page {
    background: radial-gradient(circle at top, rgba(255, 120, 70, 0.22), rgba(9, 12, 18, 0.95) 55%, #05070b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    overflow: hidden;
}

.error-glow {
    position: fixed;
    inset: -30% -20% auto;
    height: 50vh;
    background: radial-gradient(circle, rgba(255, 148, 92, 0.35), rgba(255, 148, 92, 0));
    animation: errorPulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.error-shell {
    position: relative;
    z-index: 1;
    width: min(560px, 92vw);
}

.error-card {
    background: rgba(12, 16, 24, 0.92);
    border: 1px solid rgba(255, 154, 92, 0.28);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: errorFloat 1.2s ease both;
}

.error-card h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.error-card p {
    color: var(--muted);
    margin-bottom: 20px;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.error-code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed rgba(255, 154, 92, 0.45);
    border-radius: 999px;
    padding: 8px 18px;
    margin-bottom: 18px;
    color: #ffd7c0;
}

.error-code strong {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.16em;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

@keyframes errorPulse {
    0%,
    100% {
        opacity: 0.7;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

@keyframes errorFloat {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-lookup {
    display: grid;
    gap: 12px;
}

.error-lookup input {
    margin-top: 6px;
}

.error-lookup-result pre {
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text);
}

.error-lookup-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    background: rgba(17, 18, 20, 0.7);
    display: grid;
    gap: 6px;
}

.error-lookup-message {
    color: var(--muted);
    font-size: 13px;
}

@keyframes ambientFloat {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0.6;
    }
    50% {
        transform: translate3d(-12px, 10px, 0);
        opacity: 0.9;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.6;
    }
}

.tile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.18);
    border: 1px solid rgba(255, 107, 53, 0.4);
    color: #ffd6c4;
    margin-bottom: 8px;
}

.request-tile {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.request-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.profile-badge {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.profile-card {
    border: 1px solid var(--border-soft);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-card[data-theme='ember'] {
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.25);
}

.profile-card[data-theme='ice'] {
    box-shadow: 0 20px 40px rgba(29, 211, 176, 0.25);
}

.profile-card[data-theme='moss'] {
    box-shadow: 0 20px 40px rgba(80, 200, 120, 0.2);
}

.profile-card[data-theme='sunrise'] {
    box-shadow: 0 20px 40px rgba(252, 163, 17, 0.25);
}

.toggle-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(12, 15, 20, 0.6);
}

.toggle-field input {
    accent-color: var(--accent);
}

.inbox-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: 20px;
    margin-bottom: 24px;
    align-items: center;
    padding: 20px 22px;
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(30, 16, 18, 0.85), rgba(14, 18, 26, 0.9));
    border: 1px solid rgba(215, 38, 56, 0.25);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.inbox-hero--v3 {
    position: relative;
    overflow: hidden;
}

.inbox-hero--v3::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(215, 38, 56, 0.25), transparent 55%);
    pointer-events: none;
}

.inbox-hero-main {
    position: relative;
    z-index: 1;
}

.inbox-hero-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.inbox-hint {
    font-size: 12px;
}

.inbox-hero-side {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.inbox-hero-card {
    background: rgba(12, 15, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
}

.inbox-hero-card--stats {
    display: grid;
    gap: 12px;
}

.inbox-hero-card--stats div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inbox-hero-card--stats strong {
    font-size: 20px;
    color: var(--accent-3);
}

.inbox-hero-card--status strong {
    display: block;
    margin-bottom: 6px;
}

.inbox-hero-card--status p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.inbox-panel {
    margin-top: 8px;
}

.inbox-grid {
    display: grid;
    gap: 14px;
}

.mail-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 18, 24, 0.85);
    display: grid;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mail-card.is-clickable {
    cursor: pointer;
}

.mail-card.is-clickable:focus-visible {
    outline: 2px solid rgba(215, 38, 56, 0.6);
    outline-offset: 2px;
}

.mail-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 38, 56, 0.3);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.mail-card.is-unread {
    border-color: rgba(215, 38, 56, 0.4);
    box-shadow: 0 16px 30px rgba(215, 38, 56, 0.15);
}

.mail-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mail-date {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.mail-badge {
    background: rgba(215, 38, 56, 0.25);
    border: 1px solid rgba(215, 38, 56, 0.5);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.mail-card-body {
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.mail-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mail-password {
    font-size: 12px;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

@media (max-width: 980px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
        box-shadow: none;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .sidebar-nav::-webkit-scrollbar {
        height: 6px;
    }

    .topbar {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .employee-hero,
    .wiki-hero,
    .inbox-hero {
        grid-template-columns: 1fr;
    }

    .inbox-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .employee-modal-header {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .modal-status-pill {
        justify-content: flex-start;
    }
    .employee-guide-grid {
        grid-template-columns: 1fr;
    }
}

/* Verwaltung dashboard */
.verwaltung-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr);
    gap: 22px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(140deg, rgba(28, 16, 20, 0.9), rgba(12, 16, 24, 0.95));
    border: 1px solid rgba(215, 38, 56, 0.25);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
}

.verwaltung-hero::after {
    content: '';
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle at 15% 20%, rgba(215, 38, 56, 0.35), transparent 55%),
        radial-gradient(circle at 85% 70%, rgba(255, 122, 24, 0.28), transparent 55%);
    opacity: 0.8;
    animation: verwaltungGlow 18s ease-in-out infinite;
    pointer-events: none;
}

.verwaltung-hero-main,
.verwaltung-hero-card {
    position: relative;
    z-index: 1;
}

.verwaltung-hero-main {
    display: grid;
    gap: 10px;
}

.verwaltung-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.verwaltung-hero-card {
    background: rgba(10, 12, 18, 0.72);
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    padding: 18px;
    display: grid;
    gap: 8px;
    box-shadow: 0 18px 36px rgba(4, 6, 10, 0.45);
}

.verwaltung-hero--admin {
    background: linear-gradient(130deg, rgba(20, 20, 32, 0.92), rgba(10, 14, 22, 0.96));
}

.verwaltung-hero--forum {
    background: linear-gradient(135deg, rgba(20, 18, 28, 0.92), rgba(12, 15, 22, 0.95));
}

.verwaltung-hero--doc {
    background: linear-gradient(140deg, rgba(24, 18, 22, 0.92), rgba(12, 16, 24, 0.96));
    border-color: rgba(255, 122, 24, 0.28);
}

.verwaltung-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.verwaltung-stat {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    min-height: 150px;
    display: grid;
    gap: 8px;
    align-content: center;
}

.verwaltung-stat strong {
    font-size: 38px;
    letter-spacing: 0.5px;
    line-height: 1.05;
}

.verwaltung-stat span {
    display: block;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.verwaltung-stat small {
    display: block;
    margin-top: 6px;
    line-height: 1.4;
}

.verwaltung-stat::after {
    content: '';
    position: absolute;
    inset: auto -30% -40% -30%;
    height: 140%;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.15), transparent 60%);
    opacity: 0.35;
    pointer-events: none;
}

.verwaltung-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 20px;
}

.verwaltung-column {
    display: grid;
    gap: 20px;
    align-content: start;
}

.verwaltung-panel {
    position: relative;
    overflow: hidden;
}

.verwaltung-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(215, 38, 56, 0.12), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
}

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

.verwaltung-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.verwaltung-panel-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.verwaltung-forum-list,
.verwaltung-account-list,
.verwaltung-posts,
.verwaltung-members {
    display: grid;
    gap: 14px;
}

.verwaltung-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 60vh;
    overflow: auto;
    padding-right: 6px;
}

.verwaltung-posts::-webkit-scrollbar {
    width: 6px;
}

.verwaltung-posts::-webkit-scrollbar-track {
    background: transparent;
}

.verwaltung-posts::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.verwaltung-forum-card,
.verwaltung-account-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(12, 16, 22, 0.85);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.verwaltung-forum-card:hover,
.verwaltung-account-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 38, 56, 0.35);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.verwaltung-forum-card.is-locked,
.verwaltung-account-card.is-locked {
    border-color: rgba(255, 122, 24, 0.45);
}

.verwaltung-forum-card.is-archived,
.verwaltung-account-card.is-archived {
    border-color: rgba(154, 160, 168, 0.5);
    background: rgba(12, 14, 18, 0.85);
    opacity: 0.9;
}

.verwaltung-forum-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.verwaltung-forum-title {
    flex: 1 1 260px;
    min-width: 220px;
}

.verwaltung-forum-details,
.verwaltung-account-details {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.verwaltung-link {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-3);
    display: inline-block;
    margin-top: 2px;
}

.verwaltung-forum-head .muted {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.verwaltung-forum-head strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
}

.verwaltung-forum-head .verwaltung-status {
    margin-left: auto;
    align-self: center;
}

.verwaltung-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    font-weight: 700;
    text-transform: uppercase;
    background-size: cover;
    background-position: center;
}

.verwaltung-avatar.small {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.verwaltung-status {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 12, 14, 0.6);
}

.verwaltung-status[data-status='active'] {
    color: #98f0c1;
    border-color: rgba(46, 212, 143, 0.5);
    background: rgba(46, 212, 143, 0.18);
}

.verwaltung-status[data-status='locked'] {
    color: #ffb18b;
    border-color: rgba(255, 122, 24, 0.55);
    background: rgba(255, 122, 24, 0.18);
    animation: verwaltungPulse 2.4s ease-in-out infinite;
}

.verwaltung-status[data-status='archived'] {
    color: #c3c9d4;
    border-color: rgba(154, 160, 168, 0.5);
    background: rgba(100, 110, 125, 0.18);
}

.verwaltung-member-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(12, 15, 20, 0.65);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.verwaltung-member-card strong {
    display: block;
}

.verwaltung-member-card span {
    font-size: 12px;
}

.verwaltung-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.verwaltung-doc-card {
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(20, 22, 30, 0.9), rgba(12, 14, 20, 0.9));
    color: var(--text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.verwaltung-doc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(215, 38, 56, 0.2), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.verwaltung-doc-card strong {
    display: block;
    margin-bottom: 6px;
}

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

.verwaltung-doc-card:hover {
    transform: translateY(-3px);
    border-color: rgba(215, 38, 56, 0.35);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.verwaltung-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.verwaltung-quick-note {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 122, 24, 0.4);
    background: rgba(255, 122, 24, 0.12);
    display: grid;
    gap: 6px;
    font-size: 12px;
}

.verwaltung-join-panel {
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 183, 77, 0.32);
    background:
        linear-gradient(140deg, rgba(13, 20, 33, 0.95), rgba(12, 16, 25, 0.92)),
        radial-gradient(circle at 80% -10%, rgba(76, 201, 240, 0.25), transparent 45%),
        radial-gradient(circle at -5% 20%, rgba(255, 122, 24, 0.22), transparent 42%);
    box-shadow: 0 24px 54px rgba(4, 8, 14, 0.52);
}

.verwaltung-join-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 183, 77, 0.12), transparent 36%),
        radial-gradient(circle at 76% 84%, rgba(76, 201, 240, 0.12), transparent 36%);
    pointer-events: none;
    animation: verwaltungJoinPulse 15s ease-in-out infinite;
}

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

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

.verwaltung-join-head-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.verwaltung-join-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    color: #ffdca8;
}

.verwaltung-join-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.verwaltung-join-tabs .ghost-button.is-active {
    border-color: rgba(255, 183, 77, 0.65);
    background: rgba(255, 183, 77, 0.2);
    color: #ffe6c2;
    box-shadow: 0 0 24px rgba(255, 183, 77, 0.16);
}

.verwaltung-join-tab {
    display: none;
}

.verwaltung-join-tab.is-active {
    display: block;
    animation: verwaltungJoinIn 0.26s ease;
}

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

.verwaltung-join-metric {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(9, 14, 22, 0.9), rgba(9, 12, 20, 0.86));
    padding: 14px;
    display: grid;
    gap: 6px;
    min-height: 88px;
}

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

.verwaltung-join-metric strong {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
    color: #fff2da;
}

.verwaltung-join-admin-head {
    margin-top: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verwaltung-join-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.verwaltung-join-admin-empty {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(11, 16, 23, 0.72);
    padding: 12px;
}

.verwaltung-join-admin-card {
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(14, 19, 29, 0.9), rgba(10, 14, 22, 0.88));
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.verwaltung-join-admin-rank {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(255, 183, 77, 0.5);
    background: rgba(255, 183, 77, 0.16);
    color: #ffd7a0;
    padding: 4px 7px;
}

.verwaltung-join-avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    background-size: cover;
    background-position: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.verwaltung-join-admin-info {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.verwaltung-join-admin-info strong {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.verwaltung-join-admin-meter {
    height: 7px;
    border-radius: 999px;
    background: rgba(18, 24, 34, 0.9);
    border: 1px solid rgba(255, 183, 77, 0.2);
    overflow: hidden;
}

.verwaltung-join-admin-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 122, 24, 0.95), rgba(76, 201, 240, 0.92));
    box-shadow: 0 0 16px rgba(76, 201, 240, 0.28);
}

.verwaltung-join-request-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.verwaltung-join-request-list {
    display: grid;
    gap: 12px;
}

.verwaltung-join-empty {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(11, 16, 23, 0.72);
    padding: 14px;
}

.verwaltung-join-request-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(155deg, rgba(12, 19, 31, 0.94), rgba(10, 14, 23, 0.91)),
        radial-gradient(circle at 8% 0%, rgba(76, 201, 240, 0.18), transparent 34%);
    padding: 14px;
    display: grid;
    gap: 10px;
    box-shadow: 0 14px 28px rgba(3, 7, 12, 0.42);
}

.verwaltung-join-request-card.is-processing {
    border-color: rgba(255, 183, 77, 0.45);
    background:
        linear-gradient(155deg, rgba(24, 19, 10, 0.95), rgba(16, 12, 8, 0.9)),
        radial-gradient(circle at 8% 0%, rgba(255, 183, 77, 0.18), transparent 34%);
}

.verwaltung-join-request-headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.verwaltung-join-request-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.verwaltung-join-request-profile strong {
    display: block;
}

.verwaltung-join-request-profile span {
    font-size: 12px;
}

.verwaltung-join-request-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
}

.verwaltung-join-request-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.verwaltung-join-request-form label {
    display: grid;
    gap: 6px;
}

.verwaltung-join-request-form label span {
    font-size: 12px;
    color: var(--muted);
}

.verwaltung-join-request-form select {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 12, 19, 0.95);
    color: var(--text);
    padding: 9px 10px;
}

.verwaltung-join-request-form select[multiple] {
    min-height: 132px;
}

.verwaltung-join-request-form label.is-disabled span {
    opacity: 0.7;
}

.verwaltung-join-request-form label.is-disabled select {
    opacity: 0.5;
}

.verwaltung-join-request-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verwaltung-join-request-actions .muted {
    font-size: 12px;
}

.verwaltung-join-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.verwaltung-join-settings-grid label {
    display: grid;
    gap: 7px;
}

.verwaltung-join-settings-grid label span {
    font-size: 12px;
    color: var(--muted);
}

.verwaltung-join-settings-grid select {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 12, 19, 0.95);
    color: var(--text);
    padding: 10px 10px;
    min-height: 148px;
}

.verwaltung-join-settings-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verwaltung-rolehub-panel {
    margin-bottom: 20px;
}

.verwaltung-hero--bewerbungshub {
    background:
        radial-gradient(circle at 18% 15%, rgba(76, 201, 240, 0.22), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 122, 24, 0.25), transparent 50%),
        linear-gradient(140deg, rgba(10, 16, 28, 0.95), rgba(10, 14, 22, 0.95));
    border-color: rgba(76, 201, 240, 0.34);
}

.verwaltung-bewerbungshub-page .verwaltung-bewerbungshub-stats .verwaltung-stat strong {
    font-size: clamp(26px, 3vw, 40px);
}

.verwaltung-bewerbungshub-panel {
    margin-bottom: 22px;
}

.verwaltung-bewerbungshub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.verwaltung-bewerbungshub-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(150deg, rgba(14, 18, 26, 0.92), rgba(10, 14, 22, 0.94));
    padding: 16px;
    display: grid;
    gap: 10px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.verwaltung-bewerbungshub-card.is-closed {
    border-color: rgba(255, 122, 24, 0.52);
    background: linear-gradient(150deg, rgba(24, 18, 12, 0.9), rgba(16, 13, 10, 0.9));
}

.verwaltung-bewerbungshub-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.verwaltung-bewerbungshub-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(76, 201, 240, 0.4);
    color: #bdeeff;
    background: rgba(76, 201, 240, 0.12);
}

.verwaltung-bewerbungshub-badge[data-state='closed'] {
    border-color: rgba(255, 122, 24, 0.5);
    color: #ffd5bd;
    background: rgba(255, 122, 24, 0.16);
}

.verwaltung-bewerbungshub-mini-stats {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.verwaltung-bewerbungshub-mini-stats strong {
    color: var(--text);
}

.verwaltung-bewerbungshub-page {
    background:
        radial-gradient(circle at 14% 12%, rgba(76, 201, 240, 0.1), transparent 38%),
        radial-gradient(circle at 88% 82%, rgba(255, 122, 24, 0.1), transparent 42%);
}

.verwaltung-bewerbungshub-page .verwaltung-hero-card {
    border: 1px solid rgba(76, 201, 240, 0.28);
    background: linear-gradient(155deg, rgba(9, 15, 24, 0.92), rgba(6, 11, 18, 0.94));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

.verwaltung-bewerbungshub-page .verwaltung-bewerbungshub-stats .panel {
    border-color: rgba(76, 201, 240, 0.24);
    background: linear-gradient(155deg, rgba(10, 16, 25, 0.93), rgba(8, 12, 20, 0.93));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.verwaltung-bewerbungshub-page .verwaltung-bewerbungshub-stats .panel:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 24, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.verwaltung-bewerbungshub-warroom {
    margin-bottom: 20px;
    border-color: rgba(255, 122, 24, 0.36);
    background:
        linear-gradient(155deg, rgba(13, 18, 28, 0.95), rgba(9, 13, 22, 0.94)),
        radial-gradient(circle at 82% 18%, rgba(255, 122, 24, 0.15), transparent 44%);
}

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

.verwaltung-war-meter {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(150deg, rgba(14, 20, 30, 0.92), rgba(10, 15, 23, 0.94));
    padding: 14px;
    display: grid;
    gap: 10px;
}

.verwaltung-war-meter header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.verwaltung-war-meter header strong {
    font-size: 15px;
}

.verwaltung-war-meter header span {
    font-size: 13px;
    color: #ffe0cc;
}

.verwaltung-war-meter-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.verwaltung-war-meter-track span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.verwaltung-war-meter[data-meter='druck'] .verwaltung-war-meter-track span {
    background: linear-gradient(90deg, rgba(255, 90, 71, 0.95), rgba(255, 150, 110, 0.95));
}

.verwaltung-war-meter[data-meter='tempo'] .verwaltung-war-meter-track span {
    background: linear-gradient(90deg, rgba(76, 201, 240, 0.95), rgba(89, 219, 176, 0.95));
}

.verwaltung-war-meter[data-meter='stabilitaet'] .verwaltung-war-meter-track span {
    background: linear-gradient(90deg, rgba(255, 173, 84, 0.95), rgba(255, 218, 143, 0.95));
}

.verwaltung-warroom-status {
    margin-top: 12px;
    margin-bottom: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 122, 24, 0.42);
    background: rgba(255, 122, 24, 0.09);
    color: #ffe5d4;
    font-size: 13px;
}

.verwaltung-bewerbungshub-card {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.verwaltung-bewerbungshub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(76, 201, 240, 0.42);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.verwaltung-join-panel .muted.is-error {
    color: #ffb0b0;
}

.verwaltung-join-panel .muted.is-ok {
    color: #c8d0df;
}

@keyframes verwaltungJoinIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes verwaltungJoinPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.65;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.95;
    }
}

@media (max-width: 1180px) {
    .verwaltung-warroom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .verwaltung-join-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .verwaltung-join-request-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .verwaltung-join-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .verwaltung-warroom-grid {
        grid-template-columns: 1fr;
    }

    .verwaltung-join-head {
        flex-direction: column;
    }

    .verwaltung-join-head-actions {
        justify-content: flex-start;
    }

    .verwaltung-join-metrics {
        grid-template-columns: 1fr;
    }

    .verwaltung-join-admin-stats {
        grid-template-columns: 1fr;
    }

    .verwaltung-join-request-form {
        grid-template-columns: 1fr;
    }
}

.verwaltung-rollen-page .verwaltung-hero--join {
    background: linear-gradient(135deg, rgba(14, 18, 30, 0.95), rgba(10, 14, 22, 0.94));
    border-color: rgba(76, 201, 240, 0.28);
}

.verwaltung-rollen-page .verwaltung-join-panel--standalone {
    min-height: 520px;
    border-color: rgba(76, 201, 240, 0.35);
}

.verwaltung-rollen-page .verwaltung-join-metric,
.verwaltung-rollen-page .verwaltung-join-request-card,
.verwaltung-rollen-page .verwaltung-join-admin-card,
.verwaltung-rollen-page .verwaltung-join-empty,
.verwaltung-rollen-page .verwaltung-join-admin-empty {
    border-color: rgba(76, 201, 240, 0.24);
    background: linear-gradient(145deg, rgba(10, 16, 25, 0.94), rgba(8, 12, 20, 0.92));
}

.verwaltung-rollen-page .verwaltung-join-request-card.is-processing {
    border-color: rgba(255, 122, 24, 0.46);
    background: linear-gradient(145deg, rgba(23, 16, 9, 0.95), rgba(15, 11, 8, 0.92));
}

.verwaltung-rollen-page .verwaltung-join-request-form select,
.verwaltung-rollen-page .verwaltung-join-settings-grid select {
    border-color: rgba(76, 201, 240, 0.28);
    background: rgba(8, 12, 19, 0.98);
}

.verwaltung-rollen-page,
.verwaltung-rollen-page * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 24, 0.75) rgba(9, 12, 18, 0.9);
}

.verwaltung-rollen-page .verwaltung-join-request-list,
.verwaltung-rollen-page .verwaltung-join-settings-grid select {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 24, 0.75) rgba(9, 12, 18, 0.9);
}

.verwaltung-rollen-page .verwaltung-join-request-list::-webkit-scrollbar,
.verwaltung-rollen-page .verwaltung-join-settings-grid select::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.verwaltung-rollen-page *::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.verwaltung-rollen-page .verwaltung-join-request-list::-webkit-scrollbar-track,
.verwaltung-rollen-page .verwaltung-join-settings-grid select::-webkit-scrollbar-track {
    background: rgba(9, 12, 18, 0.9);
    border-radius: 999px;
}

.verwaltung-rollen-page *::-webkit-scrollbar-track {
    background: rgba(9, 12, 18, 0.9);
    border-radius: 999px;
}

.verwaltung-rollen-page .verwaltung-join-request-list::-webkit-scrollbar-thumb,
.verwaltung-rollen-page .verwaltung-join-settings-grid select::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 122, 24, 0.92), rgba(76, 201, 240, 0.85));
    border-radius: 999px;
}

.verwaltung-rollen-page *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 122, 24, 0.92), rgba(76, 201, 240, 0.85));
    border-radius: 999px;
}

.verwaltung-rollen-page .rv2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 18px;
    border: 1px solid rgba(90, 196, 255, 0.34);
    background:
        linear-gradient(138deg, rgba(8, 13, 22, 0.96), rgba(10, 15, 24, 0.94)),
        radial-gradient(circle at 90% 10%, rgba(76, 201, 240, 0.24), transparent 40%);
    box-shadow: 0 28px 56px rgba(2, 5, 10, 0.55);
}

.verwaltung-rollen-page .rv2-hero-main {
    display: grid;
    gap: 10px;
}

.verwaltung-rollen-page .rv2-hero-main h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 42px);
}

.verwaltung-rollen-page .rv2-hero-main p {
    margin: 0;
    color: #d4dced;
    max-width: 840px;
}

.verwaltung-rollen-page .rv2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.verwaltung-rollen-page .rv2-hero-side {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 12, 19, 0.86);
    padding: 14px 16px;
    display: grid;
    gap: 10px;
}

.verwaltung-rollen-page .rv2-hero-side strong {
    font-size: 16px;
}

.verwaltung-rollen-page .rv2-hero-side ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #d6deed;
}

.verwaltung-rollen-page .rv2-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.verwaltung-rollen-page .rv2-step {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(148deg, rgba(10, 15, 24, 0.94), rgba(9, 12, 20, 0.9));
    padding: 14px;
    display: grid;
    gap: 8px;
}

.verwaltung-rollen-page .rv2-step span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    color: #ffe7c9;
    border: 1px solid rgba(255, 122, 24, 0.55);
    background: rgba(255, 122, 24, 0.2);
}

.verwaltung-rollen-page .rv2-step h3 {
    margin: 0;
    font-size: 16px;
}

.verwaltung-rollen-page .rv2-step p {
    margin: 0;
    font-size: 13px;
    color: #c6cfdf;
}

.verwaltung-rollen-page .rv2-workspace {
    border-radius: 24px;
    border: 1px solid rgba(76, 201, 240, 0.35);
    background:
        linear-gradient(140deg, rgba(8, 13, 22, 0.97), rgba(10, 15, 24, 0.95)),
        radial-gradient(circle at 0% 0%, rgba(255, 122, 24, 0.18), transparent 30%);
    box-shadow: 0 32px 60px rgba(2, 5, 10, 0.58);
    overflow: hidden;
}

.verwaltung-rollen-page .rv2-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.verwaltung-rollen-page .rv2-head h3 {
    margin: 0;
    font-size: 22px;
}

.verwaltung-rollen-page .rv2-badges {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.verwaltung-rollen-page .rv2-badges span {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #dfebff;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 5px 10px;
}

.verwaltung-rollen-page .rv2-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.verwaltung-rollen-page .rv2-tab-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f6;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verwaltung-rollen-page .rv2-tab-btn.is-active {
    border-color: rgba(255, 122, 24, 0.62);
    background: rgba(255, 122, 24, 0.22);
    color: #ffe5c0;
    box-shadow: 0 0 20px rgba(255, 122, 24, 0.22);
}

.verwaltung-rollen-page .rv2-pane {
    display: none;
    animation: verwaltungJoinIn 0.26s ease;
}

.verwaltung-rollen-page .rv2-pane.is-active {
    display: block;
}

.verwaltung-rollen-page .rv2-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.verwaltung-rollen-page .rv2-metric-card {
    border-radius: 16px;
    border: 1px solid rgba(76, 201, 240, 0.26);
    background: linear-gradient(145deg, rgba(10, 16, 25, 0.94), rgba(8, 12, 20, 0.92));
    padding: 14px;
    display: grid;
    gap: 6px;
}

.verwaltung-rollen-page .rv2-metric-card span {
    color: #aeb9cd;
    font-size: 12px;
}

.verwaltung-rollen-page .rv2-metric-card strong {
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 1;
    color: #f1f6ff;
}

.verwaltung-rollen-page .rv2-metric-card small {
    color: #8e9cb3;
}

.verwaltung-rollen-page .rv2-admin-head {
    margin-top: 14px;
    margin-bottom: 10px;
    display: grid;
    gap: 4px;
}

.verwaltung-rollen-page .rv2-request-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.verwaltung-rollen-page .rv2-note {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 12, 19, 0.8);
    padding: 10px 12px;
    margin-bottom: 10px;
    color: #d4dbec;
    font-size: 13px;
}

.verwaltung-rollen-page .rv2-settings-intro {
    margin-bottom: 12px;
}

.verwaltung-rollen-page .rv2-settings-intro strong {
    display: block;
    margin-bottom: 4px;
}

.verwaltung-rollen-page .rv2-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.verwaltung-rollen-page .rv2-settings-grid label {
    border-radius: 14px;
    border: 1px solid rgba(76, 201, 240, 0.24);
    background: rgba(8, 12, 19, 0.92);
    padding: 10px;
    display: grid;
    gap: 6px;
}

.verwaltung-rollen-page .rv2-settings-grid label span {
    font-weight: 600;
}

.verwaltung-rollen-page .rv2-settings-grid label small {
    color: #97a5bc;
    font-size: 12px;
}

.verwaltung-rollen-page .rv2-settings-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.verwaltung-rollen-page .rv2-readonly {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 12, 19, 0.84);
    padding: 12px;
}

.verwaltung-rollen-page .rv2-readonly p {
    margin: 4px 0 0;
    color: #b6c2d7;
}

.verwaltung-rollen-page .ghost-button.danger {
    border-color: rgba(255, 122, 24, 0.55);
    color: #ffd4af;
    background: rgba(255, 122, 24, 0.14);
}

.verwaltung-rollen-page .ghost-button.danger:hover {
    border-color: rgba(255, 122, 24, 0.75);
    box-shadow: 0 0 16px rgba(255, 122, 24, 0.22);
}

@media (max-width: 1100px) {
    .verwaltung-rollen-page .rv2-hero {
        grid-template-columns: 1fr;
    }

    .verwaltung-rollen-page .rv2-steps {
        grid-template-columns: 1fr;
    }

    .verwaltung-rollen-page .rv2-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .verwaltung-rollen-page .rv2-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .verwaltung-rollen-page .rv2-metrics {
        grid-template-columns: 1fr;
    }
}

.verwaltung-tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.verwaltung-tip-grid div {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(12, 15, 20, 0.65);
    display: grid;
    gap: 4px;
}

.verwaltung-tip-grid strong {
    display: block;
}

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

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

.verwaltung-admin-tools {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.verwaltung-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.verwaltung-filter {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.7);
    color: var(--text);
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verwaltung-filter.is-active {
    border-color: rgba(215, 38, 56, 0.6);
    background: rgba(215, 38, 56, 0.25);
    color: #ffd1d8;
}

.verwaltung-admin-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.verwaltung-forum-panel,
.verwaltung-forum-compose {
    margin-bottom: 18px;
}

.verwaltung-forum-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.verwaltung-forum-main,
.verwaltung-forum-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.verwaltung-forum-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 12px;
}

.verwaltung-toolbar-fields {
    display: grid;
    gap: 12px;
}

.verwaltung-forum-meta {
    display: grid;
    grid-auto-flow: column;
    gap: 10px;
}

.verwaltung-meta-card {
    border-radius: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.7);
    display: grid;
    gap: 4px;
    text-align: center;
    min-width: 110px;
}

.verwaltung-meta-card strong {
    font-size: 18px;
}

.verwaltung-forum-hint,
.verwaltung-members-hint {
    margin-top: 10px;
    font-size: 12px;
}

.verwaltung-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.verwaltung-page-button {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 15, 20, 0.8);
    color: var(--text);
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verwaltung-page-button:hover {
    border-color: rgba(215, 38, 56, 0.45);
    transform: translateY(-1px);
}

.verwaltung-page-button.is-active {
    border-color: rgba(215, 38, 56, 0.8);
    background: rgba(215, 38, 56, 0.25);
    color: #ffd1d8;
    font-weight: 600;
}

.verwaltung-page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.verwaltung-page-ellipsis {
    color: var(--muted);
    padding: 6px 4px;
    font-size: 12px;
}

.verwaltung-form {
    display: grid;
    gap: 14px;
}

.verwaltung-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.verwaltung-forum-compose {
    border: 1px solid rgba(215, 38, 56, 0.35);
    box-shadow: 0 18px 40px rgba(215, 38, 56, 0.12);
}

.verwaltung-compose-cta {
    position: relative;
    animation: verwaltungPulseHighlight 2.6s ease-in-out infinite;
}

.verwaltung-forum-compose.is-highlight {
    animation: verwaltungPulseHighlight 1.2s ease;
}

.verwaltung-form textarea {
    resize: vertical;
    min-height: 120px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    padding: 12px 14px;
    background: rgba(12, 15, 20, 0.8);
    color: var(--text);
    font-family: var(--font-body);
}

.verwaltung-form textarea:focus {
    outline: none;
    border-color: rgba(215, 38, 56, 0.6);
    box-shadow: 0 0 0 3px rgba(215, 38, 56, 0.12);
}

.verwaltung-form-status {
    font-size: 12px;
}

.verwaltung-form-status.is-error {
    color: #ffb3b3;
}

.verwaltung-tag-row,
.verwaltung-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.verwaltung-tag,
.verwaltung-chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.7);
    color: var(--text);
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}

.verwaltung-tag.is-active {
    border-color: rgba(215, 38, 56, 0.55);
    background: rgba(215, 38, 56, 0.25);
    color: #ffd1d8;
}

.verwaltung-chip {
    cursor: default;
    padding: 4px 10px;
    font-size: 11px;
}

.verwaltung-post {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    position: relative;
}

.verwaltung-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

.verwaltung-post.is-continued .verwaltung-chat-avatar {
    opacity: 0;
    visibility: hidden;
}

.verwaltung-post.is-continued .verwaltung-chat-name {
    display: none;
}

.verwaltung-chat-divider {
    align-self: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    position: relative;
    padding: 4px 10px;
}

.verwaltung-chat-divider::before,
.verwaltung-chat-divider::after {
    content: '';
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    flex: 1;
}

.verwaltung-chat-divider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.verwaltung-chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 15, 20, 0.7);
    display: grid;
    place-items: center;
    font-weight: 700;
    background-size: cover;
    background-position: center;
}

.verwaltung-chat-bubble {
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(18, 22, 32, 0.92), rgba(10, 12, 18, 0.95));
    display: grid;
    gap: 10px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.verwaltung-chat-bubble::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(215, 38, 56, 0.8), rgba(255, 122, 24, 0.6));
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.verwaltung-chat-bubble:hover {
    border-color: rgba(215, 38, 56, 0.35);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.verwaltung-chat-bubble:hover::before {
    opacity: 0.9;
}

.verwaltung-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verwaltung-chat-name {
    font-weight: 600;
    letter-spacing: 0.4px;
}

.verwaltung-chat-time {
    font-size: 12px;
    color: var(--muted);
}

.verwaltung-chat-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verwaltung-chat-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.verwaltung-chat-tags {
    margin-bottom: 2px;
}

.verwaltung-post-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.verwaltung-post-title {
    margin: 0;
    font-size: 17px;
}

.verwaltung-post-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.verwaltung-post-body {
    margin: 0;
    line-height: 1.6;
}

.verwaltung-post-body.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.8em;
}

.verwaltung-post-toggle {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: var(--accent-3);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.verwaltung-post-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.verwaltung-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 14, 20, 0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.verwaltung-status-select {
    background: rgba(12, 15, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text);
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 140px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verwaltung-status-select:focus {
    outline: none;
    border-color: rgba(215, 38, 56, 0.6);
    box-shadow: 0 0 0 3px rgba(215, 38, 56, 0.12);
}

.verwaltung-chat-status .verwaltung-status-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verwaltung-status-add {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(12, 15, 20, 0.6);
}

.verwaltung-status-list {
    display: grid;
    gap: 8px;
}

.verwaltung-status-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verwaltung-status-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(12, 14, 18, 0.6);
    font-size: 12px;
}

.verwaltung-status-add-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
    gap: 10px;
}

.verwaltung-status-add input {
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    padding: 10px 12px;
    background: rgba(12, 15, 20, 0.8);
    color: var(--text);
}

.verwaltung-status-add input:focus {
    outline: none;
    border-color: rgba(215, 38, 56, 0.55);
    box-shadow: 0 0 0 3px rgba(215, 38, 56, 0.12);
}

.verwaltung-status-note {
    font-size: 11px;
}

.verwaltung-emoji-field {
    display: grid;
    gap: 8px;
}

.verwaltung-emoji-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verwaltung-emoji-preview {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 15, 20, 0.8);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.verwaltung-emoji-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 12, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 120;
}

.verwaltung-emoji-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.verwaltung-emoji-dialog {
    width: min(520px, 92vw);
    max-height: 80vh;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 18, 26, 0.95);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.verwaltung-compose-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 12, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 110;
}

.verwaltung-compose-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.verwaltung-compose-dialog {
    width: min(820px, 94vw);
    max-height: 88vh;
    overflow: auto;
    border-radius: 22px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
}

.verwaltung-compose-dialog .verwaltung-forum-compose {
    margin: 0;
    border-radius: 22px;
    box-shadow: none;
}

.verwaltung-emoji-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.verwaltung-emoji-search input {
    width: 100%;
}

.verwaltung-emoji-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.verwaltung-emoji-tab {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.7);
    color: var(--text);
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verwaltung-emoji-tab.is-active {
    border-color: rgba(215, 38, 56, 0.6);
    background: rgba(215, 38, 56, 0.25);
    color: #ffd1d8;
}

.verwaltung-emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 10px;
    overflow: auto;
    padding-right: 6px;
    max-height: 280px;
}

.verwaltung-emoji-button {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 15, 20, 0.8);
    border-radius: 12px;
    font-size: 20px;
    padding: 6px 0;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.verwaltung-emoji-button:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 38, 56, 0.5);
}

.verwaltung-confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 12, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 120;
}

.verwaltung-confirm-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.verwaltung-confirm-dialog {
    width: min(420px, 92vw);
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 18, 26, 0.95);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
}

.verwaltung-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.verwaltung-upload .file-upload-label {
    width: 100%;
    justify-content: center;
    border-color: rgba(215, 38, 56, 0.4);
}

.verwaltung-upload .file-upload-label {
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.verwaltung-upload-hint {
    font-size: 12px;
    color: var(--muted);
}

.verwaltung-upload.is-dragging .file-upload-label {
    border-color: rgba(215, 38, 56, 0.8);
    box-shadow: 0 0 0 3px rgba(215, 38, 56, 0.2);
    transform: translateY(-2px);
}

.verwaltung-weekly-panel {
    margin-bottom: 18px;
}

.verwaltung-weekly-grid {
    display: grid;
    gap: 10px;
}

.verwaltung-weekly-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(12, 15, 20, 0.7);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.verwaltung-weekly-row:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 38, 56, 0.35);
}

.verwaltung-weekly-label {
    display: grid;
    gap: 4px;
}

.verwaltung-weekly-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.verwaltung-weekly-count {
    min-width: 34px;
    text-align: center;
    font-weight: 700;
}

.verwaltung-weekly-hint {
    margin-top: 12px;
    font-size: 12px;
}

.dienstgrade-panel .panel-body {
    display: grid;
    gap: 18px;
}

.dienstgrade-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 12px;
}

.dienstgrade-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dienstgrade-filter {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 15, 20, 0.8);
    color: var(--text);
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.dienstgrade-filter .count {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
}

.dienstgrade-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(215, 38, 56, 0.5);
}

.dienstgrade-filter.is-active {
    border-color: rgba(215, 38, 56, 0.7);
    background: rgba(215, 38, 56, 0.2);
    color: #ffd1d8;
}

.dienstgrade-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.dienstgrade-section {
    display: grid;
    gap: 10px;
}

.dienstgrade-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dienstgrade-table {
    display: grid;
    gap: 8px;
}

.dienstgrade-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(12, 15, 20, 0.7);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.js-enabled .dienstgrade-row {
    opacity: 0;
    transform: translateY(8px);
}

.dienstgrade-row.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s ease-out;
}

.dienstgrade-row.is-hidden {
    display: none;
}

.dienstgrade-section.is-hidden {
    display: none;
}

.dienstgrade-row:hover {
    transform: translateY(-1px);
    border-color: rgba(215, 38, 56, 0.35);
}

.dienstgrade-row.header {
    background: rgba(215, 38, 56, 0.16);
    border-color: rgba(215, 38, 56, 0.45);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.dienstgrade-pay {
    text-align: right;
    font-weight: 700;
    color: #ffd1b8;
}

.gespr-hero {
    border-color: rgba(255, 122, 24, 0.35);
    background: radial-gradient(circle at top left, rgba(255, 122, 24, 0.18), transparent 55%),
        radial-gradient(circle at top right, rgba(215, 38, 56, 0.2), transparent 60%);
}

.gespr-layout {
    align-items: start;
}

.gespr-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.gespr-start-card {
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.75);
    display: grid;
    gap: 6px;
    font-size: 12px;
}

.gespr-start-card strong {
    font-size: 16px;
    color: #ffd1b8;
}

.gespr-flow {
    display: grid;
    gap: 12px;
}

.gespr-flow div {
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.75);
    display: grid;
    gap: 6px;
    font-size: 12px;
}

.gespr-flow strong {
    font-size: 13px;
}

.gespr-panel {
    position: relative;
    overflow: hidden;
}

.gespr-panel::after {
    content: '';
    position: absolute;
    inset: -40% 0 0 -40%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 122, 24, 0.18), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
    animation: gesprGlow 10s ease-in-out infinite;
}

.gespr-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 12px;
}

.gespr-controls select,
.gespr-controls input,
.gespr-controls textarea {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 12, 18, 0.9);
    color: var(--text);
}

.gespr-controls select {
    appearance: none;
    padding-right: 34px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 209, 216, 0.9) 50%),
        linear-gradient(135deg, rgba(255, 209, 216, 0.9) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.gespr-controls select option {
    background: #0f1319;
    color: var(--text);
}

.gespr-controls input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.gespr-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gespr-filter {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 15, 20, 0.8);
    color: var(--text);
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gespr-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(215, 38, 56, 0.5);
}

.gespr-filter.is-active {
    border-color: rgba(215, 38, 56, 0.7);
    background: rgba(215, 38, 56, 0.22);
    color: #ffd1d8;
}

.gespr-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.gespr-user-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 12px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 38, 56, 0.6) rgba(255, 255, 255, 0.08);
}

.gespr-user-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(140deg, rgba(12, 15, 22, 0.92), rgba(20, 16, 26, 0.78));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
}

.js-enabled .gespr-user-card {
    opacity: 0;
    transform: translateY(10px);
}

.gespr-user-card.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s ease-out;
}

.gespr-user-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 38, 56, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.gespr-user-card.is-selected {
    border-color: rgba(255, 122, 24, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15);
    background: linear-gradient(140deg, rgba(20, 12, 16, 0.96), rgba(30, 18, 28, 0.88));
    animation: gesprPulse 2s ease-in-out infinite;
}

.gespr-user-card.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.gespr-user-info {
    display: grid;
    gap: 4px;
}

.gespr-user-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd1b8;
}

.gespr-hint {
    margin-top: 10px;
    font-size: 12px;
}

.gespr-preview {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.gespr-preview-card {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 14, 20, 0.8);
    display: grid;
    gap: 8px;
    font-size: 13px;
    position: relative;
    padding-left: 20px;
}

.gespr-preview-card::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255, 122, 24, 0.95), rgba(215, 38, 56, 0.9));
    box-shadow: 0 0 12px rgba(215, 38, 56, 0.45);
}

.gespr-preview-title {
    font-weight: 700;
    letter-spacing: 0.4px;
}

.gespr-preview-note {
    color: #ffd1b8;
    font-size: 12px;
}

.gespr-action-buttons {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.gespr-stat-grid {
    display: grid;
    gap: 16px;
}

.gespr-stat-block {
    display: grid;
    gap: 10px;
}

.gespr-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.gespr-stat-card {
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.75);
    display: grid;
    gap: 4px;
    font-size: 12px;
}

.gespr-stat-card strong {
    font-size: 16px;
    color: #ffd1b8;
}

.gespr-modal-card--wide {
    width: min(1080px, 94vw);
}

.gespr-modal-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 16px;
    align-items: end;
}

.gespr-scope-toggle {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.75);
    padding: 10px 12px;
    font-size: 12px;
}

.gespr-scope-toggle input {
    margin-right: 6px;
}

.gespr-request-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 38, 56, 0.6) rgba(255, 255, 255, 0.08);
}

.gespr-request-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 12, 18, 0.8);
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gespr-request-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 38, 56, 0.35);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.gespr-request-main {
    display: grid;
    gap: 4px;
}

.gespr-request-meta {
    font-size: 12px;
    color: var(--muted);
}

.gespr-request-note {
    font-size: 12px;
    color: #ffd1b8;
}

.gespr-request-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.gespr-status-pill {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 15, 20, 0.7);
}

.gespr-status-pill.is-open {
    border-color: rgba(255, 122, 24, 0.45);
    color: #ffd1b8;
}

.gespr-status-pill.is-done {
    border-color: rgba(55, 201, 112, 0.45);
    color: #b9ffd1;
}

.gespr-status-pill.is-no-show {
    border-color: rgba(215, 38, 56, 0.6);
    color: #ffd1d8;
}

.gespr-status-select {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 15, 20, 0.8);
    color: var(--text);
    padding: 8px 10px;
    font-size: 12px;
}

.gespr-status-select option {
    background: #0f1319;
    color: var(--text);
}

@media (max-width: 900px) {
    .gespr-modal-toolbar {
        grid-template-columns: 1fr;
    }
    .gespr-request-card {
        grid-template-columns: 1fr;
    }
    .gespr-request-actions {
        justify-items: start;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
    }
}

.gespr-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.gespr-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gespr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, 0.72);
    backdrop-filter: blur(6px);
}

.gespr-modal-card {
    position: relative;
    width: min(960px, 92vw);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at top right, rgba(215, 38, 56, 0.18), transparent 55%),
        rgba(10, 12, 18, 0.98);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    display: grid;
    grid-template-rows: auto auto 1fr;
    animation: gesprPop 0.25s ease;
}

.gespr-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gespr-modal-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 20px;
}

.gespr-step-btn {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
    background: rgba(12, 15, 20, 0.75);
    color: var(--text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gespr-step-btn.is-active {
    background: rgba(215, 38, 56, 0.25);
    border-color: rgba(215, 38, 56, 0.55);
    color: #ffd1d8;
}

.gespr-step-btn.is-locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.gespr-modal-body {
    padding: 18px 20px 24px;
    overflow-y: auto;
}

.gespr-step {
    display: none;
    animation: gesprFade 0.25s ease;
}

.gespr-step.is-active {
    display: block;
}

.gespr-step-card {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 20, 0.75);
}

.gespr-step-actions {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

body.modal-open {
    overflow: hidden;
}

@keyframes gesprPop {
    from {
        transform: translateY(12px) scale(0.98);
        opacity: 0.6;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes gesprFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gespr-user-list::-webkit-scrollbar {
    width: 6px;
}

.gespr-user-list::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 24, 0.35);
    border-radius: 999px;
}

.gespr-user-list::-webkit-scrollbar-track {
    background: rgba(8, 10, 14, 0.6);
    border-radius: 999px;
}

.gespr-request-list::-webkit-scrollbar {
    width: 6px;
}

.gespr-request-list::-webkit-scrollbar-thumb {
    background: rgba(215, 38, 56, 0.35);
    border-radius: 999px;
}

.gespr-request-list::-webkit-scrollbar-track {
    background: rgba(8, 10, 14, 0.6);
    border-radius: 999px;
}

@keyframes gesprGlow {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0.4;
    }
    50% {
        transform: translate3d(8%, 6%, 0);
        opacity: 0.7;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.4;
    }
}

@keyframes gesprPulse {
    0% {
        box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.12);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 122, 24, 0.2);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.12);
    }
}

.verwaltung-verhalten-list {
    display: grid;
    gap: 12px;
}

.verwaltung-verhalten-card {
    border-radius: 16px;
    padding: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(12, 16, 22, 0.8);
    display: grid;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.verwaltung-verhalten-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 38, 56, 0.35);
}

.verwaltung-verhalten-head {
    display: grid;
    gap: 4px;
}

.verwaltung-verhalten-note {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}

.verwaltung-verhalten-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.verwaltung-verhalten-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.verwaltung-stats-placeholder {
    display: grid;
    gap: 12px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(12, 15, 20, 0.7);
}

.verwaltung-stats-teaser {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.verwaltung-stats-teaser div {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 18, 0.7);
    display: grid;
    gap: 4px;
}

.verwaltung-stats-panel.hidden {
    display: none;
}

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

.verwaltung-stats-winner {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 15, 20, 0.75);
    font-size: 12px;
}

.verwaltung-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.verwaltung-stats-card {
    display: grid;
    gap: 10px;
}

.verwaltung-stats-list {
    display: grid;
    gap: 10px;
}

.verwaltung-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 15, 20, 0.65);
    font-size: 12px;
}

.verwaltung-stats-chart {
    display: grid;
    gap: 12px;
}

.verwaltung-stats-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 2fr) auto;
    gap: 12px;
    align-items: center;
    font-size: 12px;
}

.verwaltung-stats-bar-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.verwaltung-stats-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(215, 38, 56, 0.9), rgba(255, 122, 24, 0.9));
    box-shadow: 0 0 12px rgba(215, 38, 56, 0.4);
    transition: width 0.3s ease;
}

.verwaltung-file-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.verwaltung-post-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.verwaltung-file {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 14, 18, 0.65);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.verwaltung-file:hover {
    transform: translateY(-1px);
    border-color: rgba(215, 38, 56, 0.4);
}

.verwaltung-file-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 10, 14, 0.7);
    display: grid;
    place-items: center;
    font-size: 11px;
    color: var(--muted);
    background-size: cover;
    background-position: center;
}

.verwaltung-file-thumb.is-icon {
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.verwaltung-file-info {
    display: grid;
    gap: 4px;
}

.verwaltung-file-action {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-3);
}

.verwaltung-file-name {
    color: var(--text);
}

.verwaltung-file span {
    color: var(--muted);
}

.verwaltung-empty {
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 12px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.verwaltung-doc-panel ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

body.verwaltung-file-body {
    background:
        radial-gradient(800px circle at 20% 20%, rgba(46, 122, 215, 0.25), transparent 60%),
        radial-gradient(900px circle at 85% 10%, rgba(255, 122, 24, 0.2), transparent 60%),
        linear-gradient(180deg, #0b0d12 0%, #121826 100%);
}

.verwaltung-file-main {
    position: relative;
}

.verwaltung-file-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 22px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(20, 26, 40, 0.92), rgba(12, 14, 22, 0.95));
    border: 1px solid rgba(80, 140, 255, 0.3);
    box-shadow: 0 24px 60px rgba(5, 10, 20, 0.5);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.verwaltung-file-hero::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 20% 30%, rgba(80, 140, 255, 0.35), transparent 55%);
    animation: verwaltungGlow 16s ease-in-out infinite;
    opacity: 0.8;
    pointer-events: none;
}

.verwaltung-file-info,
.verwaltung-file-card {
    position: relative;
    z-index: 1;
}

.verwaltung-file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.verwaltung-file-card {
    border-radius: 18px;
    padding: 18px;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 24, 0.85);
    box-shadow: 0 18px 40px rgba(10, 14, 24, 0.5);
}

.verwaltung-file-card strong {
    font-size: 18px;
}

.verwaltung-file-panel {
    border: 1px solid rgba(80, 140, 255, 0.18);
}

.verwaltung-file-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.verwaltung-file-grid strong {
    display: block;
    margin-bottom: 4px;
}

.verwaltung-file-grid span {
    color: var(--muted);
    font-size: 13px;
}

.verwaltung-file-hint {
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(80, 140, 255, 0.4);
    color: var(--muted);
    font-size: 12px;
}

.verwaltung-file-preview .panel-body {
    display: grid;
    gap: 12px;
}

.verwaltung-preview-frame {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 24, 0.8);
    overflow: hidden;
    min-height: clamp(320px, 60vh, 760px);
    display: grid;
    place-items: center;
}

.verwaltung-preview-frame.small {
    min-height: auto;
    padding: 16px;
}

.verwaltung-preview-frame img,
.verwaltung-preview-frame video,
.verwaltung-preview-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.verwaltung-preview-frame img {
    height: auto;
    max-height: clamp(420px, 80vh, 920px);
    object-fit: contain;
}

.verwaltung-preview-frame video {
    height: clamp(420px, 75vh, 900px);
    max-height: 900px;
}

.verwaltung-preview-frame iframe {
    height: clamp(420px, 75vh, 900px);
}

/* Team loading overlay */
.team-loading {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 16, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}

.team-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.team-loading-card {
    padding: 20px 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 22, 0.9);
    display: grid;
    gap: 8px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    animation: teamPop 0.6s ease both;
}

.team-loading-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--accent-2);
    margin: 0 auto;
    animation: teamSpin 1s linear infinite;
}

.team-loading-spinner.small {
    width: 22px;
    height: 22px;
    border-width: 2px;
}

.maintenance-tools {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.gespr-dept-tools {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.gespr-dept-list {
    display: grid;
    gap: 10px;
}

.gespr-dept-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 22, 0.8);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gespr-dept-row:hover {
    transform: translateY(-1px);
    border-color: rgba(215, 38, 56, 0.35);
    box-shadow: 0 12px 24px rgba(5, 8, 14, 0.35);
}

.gespr-dept-row.is-dragging {
    opacity: 0.6;
}

.gespr-dept-handle {
    cursor: grab;
    font-size: 18px;
    color: var(--muted);
    letter-spacing: 1px;
}

.gespr-dept-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 10, 14, 0.6);
    color: var(--text);
    padding: 8px 10px;
    font-size: 13px;
}

.gespr-dept-input:focus {
    outline: none;
    border-color: rgba(255, 122, 24, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.12);
}

.gespr-dept-actions {
    display: flex;
    gap: 8px;
}

.gespr-dept-empty {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.maintenance-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    color: var(--muted);
    font-size: 12px;
}

@keyframes teamSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes teamPop {
    from {
        transform: scale(0.98);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes verwaltungGlow {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.7;
    }
    50% {
        transform: translate3d(-12px, 8px, 0);
        opacity: 1;
    }
}

@keyframes verwaltungPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 122, 24, 0.2);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 122, 24, 0.2);
    }
}

@keyframes verwaltungPulseHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(215, 38, 56, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(215, 38, 56, 0.25);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(215, 38, 56, 0.2);
    }
}

@media (max-width: 1100px) {
    .verwaltung-hero {
        grid-template-columns: 1fr;
    }
    .verwaltung-grid {
        grid-template-columns: 1fr;
    }
    .verwaltung-forum-layout {
        grid-template-columns: 1fr;
    }
    .verwaltung-file-hero {
        grid-template-columns: 1fr;
    }
    .login-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .verwaltung-stat-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
    .verwaltung-posts {
        max-height: none;
    }
    .login-card {
        padding: 26px;
    }
    .login-stage {
        padding: 20px;
    }
    .dienstgrade-controls {
        grid-template-columns: 1fr;
    }
    .gespr-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .verwaltung-stat-grid {
        grid-template-columns: 1fr;
    }
    .verwaltung-forum-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .verwaltung-forum-head .verwaltung-status {
        margin-left: 0;
    }
    .verwaltung-forum-toolbar {
        grid-template-columns: 1fr;
    }
    .verwaltung-forum-meta {
        grid-auto-flow: row;
    }
    .login-card {
        padding: 22px;
    }
    .login-stage {
        padding: 16px;
    }
    .login-status-grid {
        grid-template-columns: 1fr;
    }
    .dienstgrade-row {
        grid-template-columns: 1fr;
    }
    .dienstgrade-pay {
        text-align: left;
    }
    .gespr-dept-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .gespr-dept-handle {
        justify-self: end;
    }
    .gespr-dept-actions {
        justify-content: flex-end;
    }
}

/* Dashboard Quantum Deck */
.dashboard-quantum {
    --deck-panel: rgba(12, 14, 18, 0.94);
    --deck-panel-strong: rgba(16, 18, 24, 0.96);
    --deck-border: rgba(215, 38, 56, 0.18);
    --deck-accent: var(--accent);
    --deck-accent-2: var(--accent-2);
    --deck-accent-3: var(--accent-3);
    --deck-muted: var(--muted);
    --deck-glow: rgba(215, 38, 56, 0.3);
    position: relative;
    display: grid;
    gap: 22px;
    z-index: 1;
    isolation: isolate;
}

.dashboard-quantum::before,
.dashboard-quantum::after {
    content: '';
    position: absolute;
    inset: -15% -10%;
    pointer-events: none;
    z-index: -1;
}

.dashboard-quantum::before {
    background:
        radial-gradient(circle at 12% 10%, rgba(215, 38, 56, 0.22), transparent 55%),
        radial-gradient(circle at 88% 12%, rgba(255, 122, 24, 0.2), transparent 58%),
        radial-gradient(circle at 40% 90%, rgba(247, 181, 56, 0.18), transparent 60%);
    animation: deckFloat 18s ease-in-out infinite;
}

.dashboard-quantum::after {
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 10px);
    opacity: 0.35;
}

.dashboard-quantum .panel {
    background: var(--deck-panel);
    border-color: var(--deck-border);
    box-shadow: 0 18px 38px rgba(6, 10, 16, 0.45);
}

.dashboard-quantum .panel-body {
    color: var(--text);
}

.dashboard-quantum .panel-body .muted {
    color: var(--deck-muted);
}

.deck-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(16, 18, 24, 0.96), rgba(12, 14, 18, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.deck-hero::before {
    content: '';
    position: absolute;
    inset: -80% -5% 25% 45%;
    background: radial-gradient(circle, rgba(215, 38, 56, 0.22), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.deck-hero-content h2 {
    margin: 8px 0 10px;
    font-size: clamp(26px, 3vw, 36px);
}

.deck-kicker {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--deck-muted);
}

.deck-hero-content p {
    color: var(--deck-muted);
    max-width: 520px;
    margin-bottom: 16px;
}

.deck-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.deck-hero-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--deck-accent);
    box-shadow: 0 0 10px var(--deck-glow);
}

.chip-dot--warn {
    background: var(--deck-accent-2);
    box-shadow: 0 0 10px rgba(255, 122, 24, 0.45);
}

.chip-dot--accent {
    background: var(--deck-accent-3);
    box-shadow: 0 0 10px rgba(247, 181, 56, 0.45);
}

.deck-hero-orbit {
    position: relative;
    min-height: 220px;
    display: grid;
    place-items: center;
}

.orbit-core {
    text-align: center;
    background: var(--deck-panel-strong);
    border-radius: 18px;
    padding: 18px 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 28px rgba(215, 38, 56, 0.18);
    z-index: 2;
}

.orbit-core span {
    display: block;
    color: var(--deck-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.orbit-core strong {
    display: block;
    font-size: clamp(32px, 4vw, 46px);
    margin: 4px 0;
    color: var(--deck-accent);
}

.orbit-core small {
    color: var(--deck-muted);
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: orbitSpin 16s linear infinite;
}

.orbit-ring--one {
    width: 210px;
    height: 210px;
    border-color: rgba(215, 38, 56, 0.22);
}

.orbit-ring--two {
    width: 270px;
    height: 270px;
    border-color: rgba(255, 122, 24, 0.22);
    animation-duration: 22s;
    animation-direction: reverse;
}

.orbit-ring--three {
    width: 330px;
    height: 330px;
    border-color: rgba(247, 181, 56, 0.18);
    animation-duration: 28s;
}

.orbit-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 38, 56, 0.18), transparent 60%);
    opacity: 0.6;
    filter: blur(6px);
    animation: orbitPulse 6s ease-in-out infinite;
}

.signal-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.signal-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(16, 18, 24, 0.98), rgba(10, 12, 16, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0.4;
    pointer-events: none;
}

.signal-card strong {
    font-size: 32px;
    display: block;
    margin: 6px 0;
}

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

.signal-card--fire strong {
    color: var(--deck-accent-3);
}

.signal-card--rescue strong {
    color: var(--deck-accent-2);
}

.signal-card--dual strong {
    color: var(--deck-accent);
}

.signal-card--luftrettung strong {
    color: #59d9a1;
}

.signal-note {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.2px;
    color: #98bfb1;
    opacity: 0.76;
}

.signal-card--total strong {
    color: var(--text);
}

.deck-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
}

.deck-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.deck-panel--rotator {
    grid-column: span 6;
    padding: 16px;
}

.deck-panel--game-launch {
    grid-column: span 6;
}

.deck-panel--game-launch p {
    color: var(--deck-muted);
}

.deck-panel--leaderboard {
    margin-top: 4px;
}

.leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.leaderboard-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-entry.rank-1 {
    border-color: rgba(215, 38, 56, 0.45);
    box-shadow: 0 0 18px rgba(215, 38, 56, 0.25);
}

.leaderboard-entry.rank-2 {
    border-color: rgba(255, 122, 24, 0.45);
    box-shadow: 0 0 18px rgba(255, 122, 24, 0.22);
}

.leaderboard-entry.rank-3 {
    border-color: rgba(247, 181, 56, 0.45);
    box-shadow: 0 0 18px rgba(247, 181, 56, 0.22);
}

.leaderboard-list .leaderboard-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    min-width: 0;
}

.leaderboard-list .leaderboard-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-list .leaderboard-rank {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--deck-muted);
}

.leaderboard-score {
    font-weight: 700;
}

.leaderboard-empty {
    color: var(--deck-muted);
}

.leaderboard-compact header h3 {
    font-size: 16px;
}

.leaderboard-compact header .muted {
    font-size: 12px;
}

.leaderboard-compact h4 {
    font-size: 14px;
}

.leaderboard-compact .leaderboard-list {
    gap: 6px;
}

.leaderboard-compact .leaderboard-list li {
    padding: 6px 8px;
}

.leaderboard-compact .leaderboard-name {
    font-size: 12px;
}

.leaderboard-compact .leaderboard-rank {
    font-size: 10px;
}

.leaderboard-compact .leaderboard-score {
    font-size: 12px;
}

.deck-panel--birthdays,
.deck-panel--changelog {
    grid-column: span 6;
}

.deck-panel--birthdays {
    align-self: start;
}

.deck-rotator {
    position: relative;
    border-radius: 20px;
    min-height: 320px;
    background: linear-gradient(135deg, rgba(14, 16, 20, 0.9), rgba(12, 14, 18, 0.9));
    overflow: hidden;
}

.deck-rotator .spotlight-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    filter: saturate(1.05);
}

.deck-rotator::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(8, 10, 16, 0.2), rgba(8, 10, 16, 0.75));
}

.deck-rotator-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px;
    z-index: 2;
}

.deck-rotator-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(215, 38, 56, 0.16);
    border: 1px solid rgba(215, 38, 56, 0.4);
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.deck-rotator-overlay h3 {
    margin: 10px 0 6px;
    font-size: 22px;
}

.deck-rotator-overlay p {
    margin: 0;
    color: var(--deck-muted);
}

.deck-rotator-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.game-launch-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.game-launch-actions .primary-button {
    min-width: 160px;
}

.game-launch-hint {
    margin-top: 10px;
}

.deck-panel--game {
    padding: 18px;
}

.cookie-shell {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    max-width: 100%;
    padding-top: 10px;
}

.cookie-shell::before,
.cookie-shell::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 24, 0.25), transparent 70%);
    filter: blur(2px);
    opacity: 0.7;
    z-index: 0;
    animation: cookieOrbit 10s ease-in-out infinite;
}

.cookie-shell::after {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(215, 38, 56, 0.3), transparent 70%);
    animation-delay: -4s;
}

.cookie-core,
.cookie-lists {
    position: relative;
    z-index: 1;
}

.cookie-core {
    display: grid;
    gap: 16px;
    align-content: start;
    justify-items: center;
    text-align: center;
    padding: 16px;
    border-radius: 18px;
    background: rgba(8, 12, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-core--inline {
    margin-bottom: 18px;
}

.cookie-button {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 2px solid rgba(215, 38, 56, 0.7);
    background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.18), rgba(215, 38, 56, 0.28) 46%, rgba(10, 14, 20, 0.95) 80%);
    box-shadow: inset 0 0 24px rgba(215, 38, 56, 0.2),
        0 20px 40px rgba(8, 10, 16, 0.6),
        0 0 42px rgba(215, 38, 56, 0.45);
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.cookie-button.clicker-cta {
    animation: clickerPulse 1.8s ease-in-out infinite;
}

.cookie-button.clicker-cta .cookie-icon {
    animation: clickerBounce 1.4s ease-in-out infinite;
}

.cookie-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: inset 0 0 22px rgba(215, 38, 56, 0.2),
        0 24px 44px rgba(8, 10, 16, 0.6),
        0 0 36px rgba(215, 38, 56, 0.4);
}

.cookie-button:focus-visible {
    outline: 2px solid var(--deck-accent);
    outline-offset: 4px;
}

.cookie-button::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 38, 56, 0.35), transparent 60%);
    opacity: 0.7;
    filter: blur(2px);
    animation: cookieGlow 6s ease-in-out infinite;
}

.cookie-button::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    opacity: 0.85;
    pointer-events: none;
}

.cookie-button.is-hit {
    transform: scale(0.96);
}

.cookie-icon {
    display: inline-block;
    font-size: 96px;
    line-height: 1;
    filter: drop-shadow(0 6px 14px rgba(8, 10, 16, 0.55));
    position: relative;
    z-index: 1;
    animation: cookieIconFloat 2.8s ease-in-out infinite;
}

.clicker-label {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffe3c2;
    text-shadow: 0 4px 12px rgba(8, 10, 16, 0.6);
}

.click-hint {
    margin-top: -6px;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.cookie-lists {
    padding-top: 6px;
}

.cookie-crumb {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 12px;
    font-weight: 600;
    color: #fff2d1;
    --x: 0px;
    animation: crumbFly 0.9s ease forwards;
    pointer-events: none;
    z-index: 2;
}

.cookie-readout {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.cookie-readout div {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-readout span {
    font-size: 12px;
    color: var(--deck-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cookie-readout strong {
    display: block;
    font-size: 20px;
    margin-top: 4px;
}

.cookie-rank {
    width: 100%;
    display: grid;
    gap: 10px;
}

.rank-preview {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(8, 14, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a2633, #0d141c);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-meta strong {
    display: block;
}

.rank-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.rank-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--deck-accent), var(--deck-accent-2));
    transition: width 0.4s ease;
}

.rank-preview.rank-tier-1 {
    border-color: rgba(215, 38, 56, 0.5);
    box-shadow: 0 0 20px rgba(215, 38, 56, 0.25);
}

.rank-preview.rank-tier-2 {
    border-color: rgba(255, 122, 24, 0.5);
    box-shadow: 0 0 20px rgba(255, 122, 24, 0.25);
}

.rank-preview.rank-tier-3 {
    border-color: rgba(247, 181, 56, 0.55);
    box-shadow: 0 0 24px rgba(247, 181, 56, 0.25);
}

.rank-preview.rank-tier-4 {
    border-color: rgba(224, 247, 255, 0.6);
    box-shadow: 0 0 28px rgba(224, 247, 255, 0.3);
}

.rank-preview.rank-disabled {
    opacity: 0.6;
    filter: grayscale(0.4);
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-lists {
    display: grid;
    gap: 18px;
    padding-top: 10px;
}

.cookie-lists h4 {
    margin: 0 0 10px;
    line-height: 1.2;
    padding-top: 2px;
}

.upgrade-grid,
.achievement-grid {
    display: grid;
    gap: 12px;
}

.upgrade-card,
.achievement-card {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upgrade-card:hover,
.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(6, 10, 16, 0.35);
}

.upgrade-card.is-locked {
    opacity: 0.6;
}

.upgrade-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--deck-muted);
}

.upgrade-button {
    border: 1px solid rgba(215, 38, 56, 0.45);
    background: rgba(215, 38, 56, 0.14);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upgrade-button:focus-visible {
    outline: 2px solid var(--deck-accent);
    outline-offset: 2px;
}

.upgrade-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.upgrade-button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 18px rgba(6, 10, 16, 0.35);
}

.achievement-card.is-unlocked {
    border-color: rgba(255, 179, 71, 0.5);
    box-shadow: 0 0 18px rgba(255, 179, 71, 0.2);
}

.achievement-progress {
    font-size: 12px;
    color: var(--deck-muted);
}

.cookie-toast {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 179, 71, 0.4);
    background: rgba(255, 179, 71, 0.15);
    color: #ffe2b7;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-modal-window {
    width: min(1040px, 96vw);
    max-width: 100%;
    overflow-x: hidden;
}

.cookie-modal-frame {
    padding: 20px 22px 26px;
    background: linear-gradient(155deg, rgba(18, 20, 26, 0.98), rgba(10, 12, 16, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 86vh;
    overflow: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 38, 56, 0.7) rgba(255, 255, 255, 0.08);
}

.cookie-modal-frame::-webkit-scrollbar {
    width: 10px;
}

.cookie-modal-frame::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.cookie-modal-frame::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(215, 38, 56, 0.9), rgba(255, 122, 24, 0.85));
    border-radius: 999px;
}

.cookie-modal-frame::before {
    content: '';
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 20% 10%, rgba(215, 38, 56, 0.18), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(255, 122, 24, 0.16), transparent 50%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.cookie-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.cookie-modal-head h3 {
    margin: 6px 0 4px;
    line-height: 1.2;
}

.cookie-modal-head p {
    line-height: 1.4;
}

.cookie-modal-body {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.cookie-modal-window .modal-shadow-layer {
    background: rgba(215, 38, 56, 0.22);
}

body.dashboard-focus .dashboard-quantum {
    --deck-panel: rgba(8, 18, 28, 0.98);
    --deck-panel-strong: rgba(10, 20, 32, 0.98);
    --deck-border: rgba(215, 38, 56, 0.25);
}

body.dashboard-fx-off .dashboard-quantum::before,
body.dashboard-fx-off .dashboard-quantum::after {
    display: none;
}

@media (max-width: 1100px) {
    .deck-hero {
        grid-template-columns: 1fr;
    }
    .deck-grid {
        grid-template-columns: 1fr;
    }
    .deck-panel--rotator,
    .deck-panel--game-launch,
    .deck-panel--birthdays,
    .deck-panel--changelog {
        grid-column: span 1;
    }
    .signal-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 820px) {
.cookie-shell {
        grid-template-columns: 1fr;
    }
}

.cookie-shell > * {
    min-width: 0;
}

.cookie-lists {
    min-width: 0;
}

@media (max-width: 720px) {
    .cookie-modal-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .dashboard-quantum *,
    .dashboard-quantum *::before,
    .dashboard-quantum *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* BF Clicker Top 10 Effekte */
.employee-card.bf-top10 {
    position: relative;
    overflow: hidden;
    --bf-effect-outline: rgba(215, 38, 56, 0.45);
    --bf-effect-glow: rgba(215, 38, 56, 0.32);
    box-shadow: 0 18px 40px rgba(6, 10, 16, 0.55), 0 0 26px var(--bf-effect-glow);
    outline: 2px solid var(--bf-effect-outline);
    outline-offset: -2px;
    transition: box-shadow 0.9s ease, outline-color 0.9s ease, filter 0.9s ease;
}

.employee-card.bf-top10::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 20%, var(--bf-effect-glow), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06), transparent 55%);
    opacity: 0.9;
    filter: blur(6px);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.9s ease, filter 0.9s ease;
}

.employee-card.bf-top10::after {
    display: none;
}

.employee-card.bf-top10 > * {
    position: relative;
    z-index: 2;
}

.employee-card.bf-effect-soft-out {
    filter: saturate(0.92) brightness(0.96);
}

.employee-card.bf-effect-soft-out::before {
    opacity: 0.18;
    filter: blur(8px);
}

.employee-card.bf-effect-soft-out::after {
    opacity: 0.12;
    transition: opacity 0.9s ease;
}

.bf-rank-border {
    display: none;
}

.bf-rank-border--1 {
    border-color: rgba(255, 215, 64, 0.95);
    box-shadow: 0 0 26px rgba(255, 215, 64, 0.35), inset 0 0 12px rgba(255, 122, 24, 0.2);
}

.bf-rank-border--2 {
    border-color: rgba(180, 200, 255, 0.95);
    box-shadow: 0 0 26px rgba(180, 200, 255, 0.35), inset 0 0 12px rgba(255, 122, 24, 0.18);
}

.bf-rank-border--3 {
    border-color: rgba(247, 181, 56, 0.95);
    box-shadow: 0 0 26px rgba(247, 181, 56, 0.35), inset 0 0 12px rgba(215, 38, 56, 0.2);
}

.employee-card[data-bf-effect="ember"] .bf-rank-border {
    border-color: rgba(215, 38, 56, 0.85);
    box-shadow: 0 0 22px rgba(215, 38, 56, 0.35), inset 0 0 12px rgba(255, 122, 24, 0.18);
}

.employee-card[data-bf-effect="ember"] {
    --bf-effect-outline: rgba(215, 38, 56, 0.9);
    --bf-effect-glow: rgba(215, 38, 56, 0.35);
}

.employee-card[data-bf-effect="pulse"] .bf-rank-border {
    border-color: rgba(52, 199, 89, 0.8);
    box-shadow: 0 0 22px rgba(52, 199, 89, 0.28), inset 0 0 12px rgba(10, 92, 255, 0.2);
}

.employee-card[data-bf-effect="pulse"] {
    --bf-effect-outline: rgba(52, 199, 89, 0.9);
    --bf-effect-glow: rgba(52, 199, 89, 0.3);
}

.employee-card[data-bf-effect="ring"] .bf-rank-border {
    border-color: rgba(255, 179, 71, 0.85);
    box-shadow: 0 0 22px rgba(255, 140, 70, 0.3), inset 0 0 12px rgba(255, 90, 36, 0.18);
}

.employee-card[data-bf-effect="ring"] {
    --bf-effect-outline: rgba(255, 179, 71, 0.9);
    --bf-effect-glow: rgba(255, 140, 70, 0.32);
}

.employee-card[data-bf-effect="flare"] .bf-rank-border {
    border-color: rgba(255, 120, 100, 0.85);
    box-shadow: 0 0 22px rgba(255, 120, 100, 0.3), inset 0 0 12px rgba(255, 210, 110, 0.18);
}

.employee-card[data-bf-effect="flare"] {
    --bf-effect-outline: rgba(255, 120, 100, 0.9);
    --bf-effect-glow: rgba(255, 120, 100, 0.32);
}

.employee-card[data-bf-effect="halo"] .bf-rank-border {
    border-color: rgba(224, 247, 255, 0.9);
    box-shadow: 0 0 22px rgba(120, 210, 255, 0.3), inset 0 0 12px rgba(224, 247, 255, 0.2);
}

.employee-card[data-bf-effect="halo"] {
    --bf-effect-outline: rgba(224, 247, 255, 0.95);
    --bf-effect-glow: rgba(120, 210, 255, 0.3);
}

.employee-card[data-bf-effect="beam"] .bf-rank-border {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.3), inset 0 0 12px rgba(255, 122, 24, 0.2);
}

.employee-card[data-bf-effect="beam"] {
    --bf-effect-outline: rgba(255, 255, 255, 0.95);
    --bf-effect-glow: rgba(255, 255, 255, 0.28);
}

.employee-card[data-bf-effect="aurora"] .bf-rank-border {
    border-color: rgba(126, 236, 255, 0.9);
    box-shadow: 0 0 22px rgba(126, 236, 255, 0.28), inset 0 0 12px rgba(255, 122, 24, 0.18);
}

.employee-card[data-bf-effect="aurora"] {
    --bf-effect-outline: rgba(126, 236, 255, 0.95);
    --bf-effect-glow: rgba(126, 236, 255, 0.3);
}

.employee-card[data-bf-effect="inferno"] .bf-rank-border {
    border-color: rgba(255, 96, 66, 0.9);
    box-shadow: 0 0 22px rgba(255, 96, 66, 0.35), inset 0 0 12px rgba(255, 190, 90, 0.2);
}

.employee-card[data-bf-effect="inferno"] {
    --bf-effect-outline: rgba(255, 96, 66, 0.95);
    --bf-effect-glow: rgba(255, 96, 66, 0.35);
}

.employee-card[data-bf-effect="storm"] .bf-rank-border {
    border-color: rgba(120, 210, 255, 0.9);
    box-shadow: 0 0 22px rgba(120, 210, 255, 0.35), inset 0 0 12px rgba(140, 90, 255, 0.2);
}

.employee-card[data-bf-effect="storm"] {
    --bf-effect-outline: rgba(120, 210, 255, 0.95);
    --bf-effect-glow: rgba(120, 210, 255, 0.35);
}

.employee-card.bf-tornado {
    animation: bfTornadoTilt 1.2s ease-in-out 2;
}

.employee-card.bf-tornado::before {
    animation: bfTornadoSpin 1.3s linear 2;
}

.employee-card.bf-tornado::after {
    display: block;
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(120, 210, 255, 0.22), transparent 58%),
        repeating-conic-gradient(from 0deg, rgba(120, 210, 255, 0.0) 0deg 18deg, rgba(120, 210, 255, 0.18) 18deg 24deg);
    opacity: 0.55;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
    animation: bfTornadoOverlay 1.3s linear 2;
}

.employee-card[data-bf-effect="mythic"] .bf-rank-border {
    border-color: rgba(255, 215, 64, 0.95);
    box-shadow: 0 0 26px rgba(255, 215, 64, 0.4), inset 0 0 12px rgba(215, 38, 56, 0.2);
}

.employee-card[data-bf-effect="mythic"] {
    --bf-effect-outline: rgba(255, 215, 64, 0.98);
    --bf-effect-glow: rgba(255, 215, 64, 0.4);
}

.bf-rank-emoji {
    position: absolute;
    font-size: 20px;
    z-index: 3;
    filter: drop-shadow(0 6px 12px rgba(6, 10, 16, 0.6));
    opacity: 0.95;
    animation: bfEmojiFloat 3.2s ease-in-out infinite, bfEmojiTwinkle 2.8s ease-in-out infinite;
    pointer-events: none;
}

.bf-rank-emoji--1 {
    top: 10px;
    left: 12px;
}

.bf-rank-emoji--2 {
    top: 10px;
    right: 12px;
    animation-delay: 0.4s;
}

.bf-rank-emoji--3 {
    bottom: 12px;
    left: 12px;
    animation-delay: 0.8s;
}

.bf-rank-emoji--4 {
    bottom: 12px;
    right: 12px;
    animation-delay: 1.2s;
}

@keyframes bfBorderSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bfBorderPulse {
    0%,
    100% {
        opacity: 0.6;
        filter: brightness(0.9);
    }
    50% {
        opacity: 0.95;
        filter: brightness(1.1);
    }
}

@keyframes bfEmojiFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-4deg) scale(0.98);
    }
    50% {
        transform: translateY(-8px) rotate(4deg) scale(1.05);
    }
}

@keyframes bfEmojiTwinkle {
    0%,
    100% {
        opacity: 0.82;
        filter: drop-shadow(0 4px 10px rgba(6, 10, 16, 0.5));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 10px 18px rgba(255, 122, 24, 0.35));
    }
}

@keyframes bfTornadoSpin {
    from {
        transform: scale(0.92) rotate(0deg);
    }
    to {
        transform: scale(1.06) rotate(360deg);
    }
}

@keyframes bfTornadoTilt {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) rotate(-1.2deg);
    }
    50% {
        transform: translateY(-2px) rotate(1.3deg);
    }
    75% {
        transform: translateY(-4px) rotate(-0.8deg);
    }
}

@keyframes bfTornadoOverlay {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.62;
    }
}

@keyframes deckFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitPulse {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes cookieOrbit {
    0% {
        transform: translate(-20px, -10px);
    }
    50% {
        transform: translate(20px, 16px);
    }
    100% {
        transform: translate(-20px, -10px);
    }
}

@keyframes clickerPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: inset 0 0 24px rgba(215, 38, 56, 0.2),
            0 20px 40px rgba(8, 10, 16, 0.6),
            0 0 42px rgba(215, 38, 56, 0.45);
    }
    50% {
        transform: scale(1.04);
        box-shadow: inset 0 0 30px rgba(215, 38, 56, 0.28),
            0 26px 48px rgba(8, 10, 16, 0.7),
            0 0 56px rgba(215, 38, 56, 0.65);
    }
}

@keyframes clickerBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes cookieIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* BF Clicker (neue Version) */
.bf-clicker {
    display: grid;
    gap: 18px;
}

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

.bf-clicker-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: start;
}

.bf-clicker-cta {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
    padding: 16px;
    min-height: 320px;
    border-radius: 18px;
    background: rgba(8, 12, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bf-clicker-button {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 3px solid rgba(215, 38, 56, 0.8);
    background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.18), rgba(215, 38, 56, 0.28) 46%, rgba(10, 14, 20, 0.95) 80%);
    box-shadow: inset 0 0 26px rgba(215, 38, 56, 0.22),
        0 22px 42px rgba(8, 10, 16, 0.62),
        0 0 46px rgba(215, 38, 56, 0.45);
    display: grid;
    place-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.18s ease, box-shadow 0.2s ease;
    animation: bfClickerPulse 1.8s ease-in-out infinite;
    isolation: isolate;
    overflow: visible;
}

.bf-clicker-button .bf-clicker-fx {
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    transform: scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.bf-clicker-button .bf-clicker-fx::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 168, 102, 0.4);
    box-shadow: inset 0 0 18px rgba(255, 138, 64, 0.35), 0 0 22px rgba(255, 92, 36, 0.35);
    background: conic-gradient(from 120deg, rgba(255, 255, 255, 0.12), transparent 35%, rgba(255, 168, 102, 0.25), transparent 70%, rgba(255, 255, 255, 0.12));
    animation: bfClickerGyro 9s linear infinite;
}

.bf-clicker-button .bf-clicker-fx::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.25), transparent 30%, rgba(255, 120, 60, 0.25), transparent 60%, rgba(255, 255, 255, 0.25));
    mix-blend-mode: screen;
    opacity: 0.35;
    animation: bfClickerArc 3.6s linear infinite;
}

.bf-clicker-button.is-paused {
    filter: grayscale(0.4);
    opacity: 0.65;
    animation: none;
    cursor: not-allowed;
}

.bf-clicker-button.is-paused::after {
    content: 'PAUSIERT';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffe3c2;
    background: rgba(12, 14, 20, 0.7);
    border: 1px solid rgba(255, 227, 194, 0.35);
}

.bf-clicker-button.is-paused .bf-clicker-text {
    opacity: 0.35;
}

.bf-clicker-button.is-paused .bf-clicker-emoji {
    opacity: 0.5;
    filter: grayscale(0.7);
}

.bf-clicker-button.is-hit {
    filter: brightness(1.04);
}

.bf-clicker-button.is-hit .bf-clicker-fx {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 18px rgba(255, 152, 80, 0.55));
}

.bf-clicker-button.is-hit .bf-clicker-fx::after {
    opacity: 0.75;
}

.bf-clicker-button.is-hit .bf-clicker-emoji {
    animation: bfClickerKick 0.22s ease;
}

.bf-clicker-button.is-auto::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 200, 140, 0.6);
    box-shadow: 0 0 18px rgba(255, 122, 24, 0.4);
    animation: bfAutoRing 2.6s linear infinite;
}

.bf-clicker-button.is-boosted {
    box-shadow: inset 0 0 34px rgba(255, 130, 74, 0.36),
        0 28px 54px rgba(8, 10, 16, 0.75),
        0 0 72px rgba(255, 136, 62, 0.7);
    animation: bfBoostCore 0.8s ease-in-out infinite;
}

.bf-clicker-button.is-boosted .bf-clicker-text {
    color: #fff5d7;
    text-shadow: 0 0 16px rgba(255, 198, 130, 0.9), 0 0 28px rgba(255, 130, 74, 0.55);
}

.bf-clicker-button.is-boosted .bf-clicker-emoji {
    position: relative;
    animation: bfBoostTruck 0.52s ease-in-out infinite;
}

.bf-clicker-button.is-boosted .bf-clicker-emoji::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -8px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 118, 52, 0), rgba(255, 205, 136, 0.95), rgba(255, 118, 52, 0));
    filter: blur(2px);
    pointer-events: none;
    animation: bfBoostFlame 0.44s ease-in-out infinite;
}

.bf-clicker-orbit {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    pointer-events: none;
    animation: bfOrbitSpin 12s linear infinite;
}

.bf-clicker-orbit span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 0 0;
    font-size: 16px;
    filter: drop-shadow(0 4px 12px rgba(6, 10, 16, 0.6));
}

.bf-clicker-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: inset 0 0 30px rgba(215, 38, 56, 0.28),
        0 26px 48px rgba(8, 10, 16, 0.7),
        0 0 60px rgba(215, 38, 56, 0.6);
}

.bf-clicker-button.is-hit {
    transform: scale(0.96);
}

.bf-clicker-button:focus-visible {
    outline: 2px solid var(--deck-accent);
    outline-offset: 4px;
}

.bf-clicker-emoji {
    font-size: 88px;
    line-height: 1;
    filter: drop-shadow(0 6px 14px rgba(8, 10, 16, 0.55));
    animation: bfClickerBounce 1.4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.bf-clicker-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffe3c2;
    text-shadow: 0 4px 12px rgba(8, 10, 16, 0.6);
    position: relative;
    z-index: 2;
}

.bf-clicker-hint {
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.bf-clicker-help {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--deck-muted);
}

.bf-clicker-help li {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.bf-clicker-help strong {
    color: var(--text);
    font-size: 13px;
}

.bf-clicker-auto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.7;
}

.bf-clicker-boost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(120, 210, 255, 0.12);
    border: 1px solid rgba(120, 210, 255, 0.3);
    box-shadow: 0 0 16px rgba(120, 210, 255, 0.15);
}

.bf-clicker-boost.is-active {
    border-color: rgba(255, 215, 120, 0.7);
    background: rgba(255, 215, 120, 0.16);
    box-shadow: 0 0 22px rgba(255, 215, 120, 0.35);
}

.bf-clicker-boost .ghost-button.small {
    padding: 4px 10px;
}

.bf-boost-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    color: #b8d8ff;
}

.bf-auto-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 rgba(215, 38, 56, 0);
}

.bf-clicker-auto.is-active {
    opacity: 1;
    border-color: rgba(215, 38, 56, 0.35);
    box-shadow: 0 0 14px rgba(215, 38, 56, 0.25);
}

.bf-clicker-auto.is-active .bf-auto-dot {
    background: rgba(215, 38, 56, 0.9);
    animation: bfAutoPulse 1.2s ease-in-out infinite;
}

.bf-auto-label {
    color: var(--deck-muted);
}

.bf-clicker-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.bf-stat {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bf-stat span {
    font-size: 12px;
    color: var(--deck-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bf-stat strong {
    display: block;
    font-size: 20px;
    margin-top: 4px;
}

.bf-clicker-rank {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(8, 12, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bf-rank-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(8, 14, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.bf-rank-card.is-disabled {
    opacity: 0.6;
    filter: grayscale(0.4);
}

.bf-rank-card.tier-1 {
    border-color: rgba(215, 38, 56, 0.5);
    box-shadow: 0 0 20px rgba(215, 38, 56, 0.25);
}

.bf-rank-card.tier-2 {
    border-color: rgba(255, 122, 24, 0.5);
    box-shadow: 0 0 20px rgba(255, 122, 24, 0.25);
}

.bf-rank-card.tier-3 {
    border-color: rgba(247, 181, 56, 0.55);
    box-shadow: 0 0 24px rgba(247, 181, 56, 0.25);
}

.bf-rank-card.tier-4 {
    border-color: rgba(224, 247, 255, 0.6);
    box-shadow: 0 0 28px rgba(224, 247, 255, 0.3);
}

.bf-rank-card.tier-5 {
    border-color: rgba(126, 236, 255, 0.65);
    box-shadow: 0 0 28px rgba(126, 236, 255, 0.35);
}

.bf-rank-card.tier-6 {
    border-color: rgba(255, 215, 64, 0.65);
    box-shadow: 0 0 32px rgba(255, 215, 64, 0.35);
}

.bf-rank-card.tier-7 {
    border-color: rgba(153, 123, 255, 0.65);
    box-shadow: 0 0 32px rgba(153, 123, 255, 0.35);
}

.bf-rank-card.tier-8 {
    border-color: rgba(255, 120, 90, 0.7);
    box-shadow: 0 0 34px rgba(255, 120, 90, 0.4);
}

.bf-rank-card.tier-9 {
    border-color: rgba(255, 180, 90, 0.75);
    box-shadow: 0 0 36px rgba(255, 180, 90, 0.45);
}

.bf-rank-card.tier-10 {
    border-color: rgba(255, 215, 140, 0.8);
    box-shadow: 0 0 38px rgba(255, 215, 140, 0.5);
}

.bf-rank-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 122, 24, 0.35), rgba(10, 14, 20, 0.9));
    border: 1px solid rgba(255, 122, 24, 0.35);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 10px rgba(255, 122, 24, 0.2), 0 0 12px rgba(255, 122, 24, 0.2);
}

.bf-rank-avatar-icon {
    font-size: 22px;
    filter: drop-shadow(0 4px 10px rgba(6, 10, 16, 0.6));
}

.bf-rank-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.bf-rank-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--deck-accent), var(--deck-accent-2));
    transition: width 0.4s ease;
}

.bf-clicker-effect {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.bf-clicker-effect label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--deck-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.bf-clicker-effect select {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 20, 0.7);
    color: var(--text);
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
}

.bf-clicker-effect-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.bf-clicker-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.bf-clicker-leaderboard h4 {
    font-size: 15px;
}

.bf-admin-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 12px 0;
}

.bf-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.bf-upgrade-grid {
    display: grid;
    gap: 12px;
}

.bf-upgrade-card {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bf-upgrade-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(6, 10, 16, 0.35);
}

.bf-upgrade-card.is-locked {
    opacity: 0.6;
}

.bf-upgrade-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--deck-muted);
}

.bf-upgrade-button {
    border: 1px solid rgba(215, 38, 56, 0.45);
    background: rgba(215, 38, 56, 0.14);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bf-upgrade-button:focus-visible {
    outline: 2px solid var(--deck-accent);
    outline-offset: 2px;
}

.bf-upgrade-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.bf-upgrade-button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 18px rgba(6, 10, 16, 0.35);
}

.bf-leaderboard {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.bf-leaderboard-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bf-leaderboard-entry.rank-1,
.bf-leaderboard-entry.rank-2,
.bf-leaderboard-entry.rank-3 {
    padding: 8px 10px;
}

.bf-leaderboard-entry.rank-1 {
    border-color: rgba(215, 38, 56, 0.45);
    box-shadow: 0 0 22px rgba(215, 38, 56, 0.35);
    background: linear-gradient(135deg, rgba(215, 38, 56, 0.18), rgba(12, 14, 18, 0.6));
    transform: translateY(-2px);
}

.bf-leaderboard-entry.rank-2 {
    border-color: rgba(255, 122, 24, 0.45);
    box-shadow: 0 0 22px rgba(255, 122, 24, 0.28);
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.16), rgba(12, 14, 18, 0.6));
}

.bf-leaderboard-entry.rank-3 {
    border-color: rgba(247, 181, 56, 0.45);
    box-shadow: 0 0 22px rgba(247, 181, 56, 0.26);
    background: linear-gradient(135deg, rgba(247, 181, 56, 0.14), rgba(12, 14, 18, 0.6));
}

.bf-leaderboard-entry.rank-1::before,
.bf-leaderboard-entry.rank-2::before,
.bf-leaderboard-entry.rank-3::before {
    content: "\1F451";
    font-size: 14px;
    margin-right: 6px;
}

.bf-leaderboard-entry.rank-2::before {
    content: "\26A1";
}

.bf-leaderboard-entry.rank-3::before {
    content: "\1F525";
}

.bf-leaderboard-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    min-width: 0;
    flex: 1;
    font-size: 13px;
}

.bf-leaderboard-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

.bf-leaderboard-rank {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd7a6;
    background: rgba(215, 38, 56, 0.22);
    border: 1px solid rgba(215, 38, 56, 0.45);
    padding: 3px 8px;
    border-radius: 999px;
    min-width: 70px;
    text-align: center;
}

.bf-leaderboard-score {
    font-weight: 700;
    min-width: 84px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 13px;
}

.bf-leaderboard-entry.rank-1 .bf-leaderboard-score {
    font-size: 16px;
}

.bf-leaderboard-entry.rank-2 .bf-leaderboard-score,
.bf-leaderboard-entry.rank-3 .bf-leaderboard-score {
    font-size: 14px;
}

.bf-clicker-crumb {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 12px;
    font-weight: 600;
    color: #fff2d1;
    --x: 0px;
    animation: bfCrumbFly 0.9s ease forwards;
    pointer-events: none;
    z-index: 2;
}

@keyframes bfClickerPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes bfClickerBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes bfClickerKick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08) rotate(-2deg);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bfClickerGyro {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bfClickerArc {
    from {
        transform: rotate(0deg);
        opacity: 0.25;
    }
    50% {
        opacity: 0.6;
    }
    to {
        transform: rotate(360deg);
        opacity: 0.25;
    }
}

@keyframes bfAutoPulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(215, 38, 56, 0.0);
    }
    50% {
        box-shadow: 0 0 12px rgba(215, 38, 56, 0.65);
    }
}

@keyframes bfAutoRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bfOrbitSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bfCrumbFly {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--x)), -120%) scale(0.9);
        opacity: 0;
    }
}

@keyframes bfBoostCore {
    0%,
    100% {
        filter: saturate(1) brightness(1);
    }
    50% {
        filter: saturate(1.18) brightness(1.06);
    }
}

@keyframes bfBoostTruck {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }
    30% {
        transform: translateY(-2px) translateX(1px);
    }
    65% {
        transform: translateY(1px) translateX(-1px);
    }
}

@keyframes bfBoostFlame {
    0%,
    100% {
        opacity: 0.45;
        transform: scaleX(0.94);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

@media (max-width: 1100px) {
    .bf-clicker-hero,
    .bf-clicker-grid {
        grid-template-columns: 1fr;
    }
    .bf-clicker-button {
        width: 190px;
        height: 190px;
    }
    .bf-clicker-cta {
        min-height: 0;
    }
}

#bf-clicker-modal .modal-window {
    width: min(640px, 92vw);
}

.bf-clicker-modal-frame .modal-headline {
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(215, 38, 56, 0.25), rgba(255, 122, 24, 0.08));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bf-clicker-modal-frame .modal-body {
    padding: 18px 22px 8px;
    max-height: 52vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 38, 56, 0.6) rgba(12, 14, 20, 0.5);
}

.bf-clicker-modal-frame .modal-body::-webkit-scrollbar {
    width: 10px;
}

.bf-clicker-modal-frame .modal-body::-webkit-scrollbar-track {
    background: rgba(12, 14, 20, 0.6);
    border-radius: 999px;
}

.bf-clicker-modal-frame .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(215, 38, 56, 0.7), rgba(255, 122, 24, 0.6));
    border-radius: 999px;
    border: 2px solid rgba(12, 14, 20, 0.6);
}

.bf-clicker-modal-frame .modal-actions {
    padding: 0 22px 22px;
}

#bf-clicker-cheat-modal .modal-window {
    width: min(620px, 92vw);
}

.bf-cheat-modal-frame {
    border: 1px solid rgba(215, 38, 56, 0.45);
    background: linear-gradient(160deg, rgba(30, 6, 8, 0.98), rgba(12, 14, 20, 0.96));
    box-shadow: 0 22px 50px rgba(8, 6, 10, 0.6);
}

.bf-cheat-modal-frame .modal-headline {
    padding: 22px 24px 10px;
}

.bf-cheat-title {
    margin: 6px 0 6px;
    font-size: 32px;
    letter-spacing: 2px;
    color: #ffb0b0;
    text-transform: uppercase;
    text-shadow: 0 8px 22px rgba(215, 38, 56, 0.55);
}

.bf-cheat-modal-frame .modal-actions {
    padding: 0 24px 24px;
}

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

@keyframes cookieGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.04);
    }
}

@keyframes borderSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes crumbFly {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(var(--x)) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(var(--x)) translateY(-50px);
    }
}

@keyframes rankPulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* BF Clicker visual refresh */
#bf-clicker {
    position: relative;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(120% 120% at 8% 0%, rgba(255, 123, 64, 0.14) 0%, rgba(255, 123, 64, 0) 42%),
        radial-gradient(110% 120% at 100% 100%, rgba(96, 206, 255, 0.15) 0%, rgba(96, 206, 255, 0) 45%),
        linear-gradient(145deg, rgba(7, 11, 17, 0.94), rgba(14, 19, 27, 0.92));
    box-shadow: 0 22px 56px rgba(4, 8, 14, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

#bf-clicker::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    pointer-events: none;
}

#bf-clicker .bf-clicker-cta,
#bf-clicker .bf-clicker-rank,
#bf-clicker .bf-clicker-upgrades,
#bf-clicker .bf-clicker-leaderboard {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: linear-gradient(150deg, rgba(14, 19, 27, 0.86), rgba(12, 16, 24, 0.7));
    box-shadow: 0 14px 34px rgba(6, 10, 16, 0.35);
}

#bf-clicker .bf-clicker-cta,
#bf-clicker .bf-clicker-rank {
    padding: 18px;
}

#bf-clicker .bf-clicker-grid {
    gap: 14px;
}

#bf-clicker .bf-clicker-upgrades,
#bf-clicker .bf-clicker-leaderboard {
    padding: 14px;
}

#bf-clicker .bf-clicker-upgrades h4,
#bf-clicker .bf-clicker-leaderboard h4 {
    margin: 0 0 12px;
    font-size: 15px;
    letter-spacing: 0.6px;
}

#bf-clicker .bf-clicker-button {
    width: 218px;
    height: 218px;
    border-width: 2px;
    border-color: rgba(255, 160, 120, 0.75);
    box-shadow:
        inset 0 0 28px rgba(255, 102, 68, 0.22),
        0 26px 56px rgba(4, 8, 14, 0.62),
        0 0 54px rgba(255, 102, 68, 0.4);
}

#bf-clicker .bf-clicker-button:hover {
    transform: translateY(-3px) scale(1.025);
}

#bf-clicker .bf-clicker-emoji {
    font-size: 92px;
}

#bf-clicker .bf-clicker-stats {
    gap: 9px;
}

#bf-clicker .bf-stat {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
}

#bf-clicker .bf-stat strong {
    font-size: 22px;
    letter-spacing: 0.3px;
}

#bf-clicker .bf-rank-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
}

#bf-clicker .bf-rank-progress-bar {
    background: linear-gradient(90deg, #ff7b40, #ffd064 40%, #71d7ff 100%);
    box-shadow: 0 0 20px rgba(255, 168, 95, 0.45);
}

#bf-clicker .bf-upgrade-grid,
#bf-clicker .bf-leaderboard {
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 140, 90, 0.7) rgba(12, 16, 24, 0.6);
}

#bf-clicker .bf-upgrade-grid::-webkit-scrollbar,
#bf-clicker .bf-leaderboard::-webkit-scrollbar {
    width: 10px;
}

#bf-clicker .bf-upgrade-grid::-webkit-scrollbar-track,
#bf-clicker .bf-leaderboard::-webkit-scrollbar-track {
    background: rgba(12, 16, 24, 0.7);
    border-radius: 999px;
}

#bf-clicker .bf-upgrade-grid::-webkit-scrollbar-thumb,
#bf-clicker .bf-leaderboard::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 120, 66, 0.85), rgba(113, 215, 255, 0.75));
    border-radius: 999px;
    border: 2px solid rgba(12, 16, 24, 0.65);
}

#bf-clicker .bf-upgrade-card {
    border-radius: 13px;
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(95deg, rgba(255, 120, 66, 0.14) 0, rgba(255, 120, 66, 0) 18%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

#bf-clicker .bf-upgrade-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(5, 9, 16, 0.45);
}

#bf-clicker .bf-upgrade-button:not(:disabled):hover {
    transform: translateY(-2px);
}

#bf-clicker .bf-leaderboard-entry {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

#bf-clicker .bf-clicker-boost {
    border-color: rgba(123, 221, 255, 0.55);
    background: linear-gradient(135deg, rgba(70, 198, 255, 0.2), rgba(65, 124, 255, 0.12));
}

#bf-clicker .bf-clicker-boost.is-active {
    border-color: rgba(255, 214, 117, 0.82);
    background: linear-gradient(135deg, rgba(255, 214, 117, 0.24), rgba(255, 146, 77, 0.2));
}

@media (max-width: 980px) {
    #bf-clicker .bf-clicker-grid {
        grid-template-columns: 1fr;
    }

    #bf-clicker .bf-upgrade-grid,
    #bf-clicker .bf-leaderboard {
        max-height: 340px;
    }
}

@media (max-width: 720px) {
    #bf-clicker {
        padding: 12px;
        border-radius: 18px;
    }

    #bf-clicker .bf-clicker-cta,
    #bf-clicker .bf-clicker-rank {
        padding: 14px;
    }

    #bf-clicker .bf-clicker-button {
        width: 188px;
        height: 188px;
    }

    #bf-clicker .bf-clicker-emoji {
        font-size: 78px;
    }
}

/* BF Clicker full redesign polish */
.bf-season-meta {
    display: grid;
    gap: 2px;
}

.bf-season-meta [data-clicker="season-label"] {
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ffe4b8;
}

.bf-season-meta [data-clicker="season-ends"] {
    font-size: 12px;
    color: #a9c4e8;
}

.bf-status-strip {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bf-status-chip {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.bf-status-chip span {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9fb6d6;
}

.bf-status-chip strong {
    font-size: 16px;
    color: #f6f9ff;
}

.bf-effect-unlocked {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-effect-chip {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f2f7ff;
    font-size: 11px;
    letter-spacing: 0.4px;
    padding: 5px 9px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bf-effect-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 214, 255, 0.55);
    box-shadow: 0 8px 16px rgba(6, 10, 16, 0.35);
}

.bf-effect-chip.is-active {
    border-color: rgba(255, 209, 124, 0.65);
    background: linear-gradient(135deg, rgba(255, 142, 77, 0.35), rgba(110, 210, 255, 0.24));
    box-shadow: 0 0 14px rgba(255, 183, 94, 0.35);
}

#bf-clicker .bf-clicker-hero {
    gap: 16px;
    align-items: stretch;
}

#bf-clicker .bf-clicker-rank {
    display: grid;
    gap: 12px;
    align-content: start;
}

#bf-clicker .bf-rank-card {
    background: linear-gradient(155deg, rgba(255, 153, 83, 0.16), rgba(55, 104, 255, 0.08) 42%, rgba(9, 14, 22, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#bf-clicker .bf-rank-meta strong {
    font-size: 21px;
    letter-spacing: 0.3px;
}

#bf-clicker .bf-clicker-effect select {
    border-radius: 12px;
    border-color: rgba(120, 210, 255, 0.35);
}

#bf-clicker .bf-clicker-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

#bf-clicker .bf-leaderboard {
    display: grid;
    gap: 10px;
    padding-right: 6px;
}

#bf-clicker .bf-leaderboard-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#bf-clicker .bf-leaderboard-entry::before {
    content: none;
}

#bf-clicker .bf-leaderboard-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(5, 9, 16, 0.45);
}

#bf-clicker .bf-leaderboard-entry.is-podium {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 13px 14px;
}

#bf-clicker .bf-leaderboard-entry.rank-1 {
    background: linear-gradient(145deg, rgba(255, 183, 77, 0.28), rgba(255, 118, 53, 0.22), rgba(20, 16, 28, 0.88));
    border-color: rgba(255, 218, 146, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 218, 146, 0.25), 0 20px 36px rgba(255, 143, 59, 0.32);
}

#bf-clicker .bf-leaderboard-entry.rank-2 {
    background: linear-gradient(145deg, rgba(135, 179, 255, 0.26), rgba(96, 143, 255, 0.18), rgba(14, 19, 34, 0.88));
    border-color: rgba(179, 214, 255, 0.82);
    box-shadow: 0 18px 30px rgba(84, 133, 255, 0.26);
}

#bf-clicker .bf-leaderboard-entry.rank-3 {
    background: linear-gradient(145deg, rgba(255, 166, 96, 0.24), rgba(232, 112, 62, 0.19), rgba(24, 17, 28, 0.86));
    border-color: rgba(255, 197, 154, 0.8);
    box-shadow: 0 16px 28px rgba(223, 122, 76, 0.28);
}

#bf-clicker .bf-leaderboard-crest {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 19px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fceccf;
}

#bf-clicker .bf-leaderboard-entry.rank-1 .bf-leaderboard-crest {
    font-size: 22px;
    background: radial-gradient(circle at 50% 38%, rgba(255, 236, 178, 0.95), rgba(255, 156, 84, 0.45));
    color: #4b2e0d;
}

#bf-clicker .bf-leaderboard-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#bf-clicker .bf-leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex: 0 0 auto;
    background: linear-gradient(145deg, rgba(255, 130, 71, 0.5), rgba(66, 140, 255, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff2d9;
}

#bf-clicker .bf-leaderboard-text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

#bf-clicker .bf-leaderboard-text > span:last-child {
    font-size: 15px;
    font-weight: 700;
    color: #f8fbff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bf-clicker .bf-leaderboard-rank {
    min-width: auto;
    padding: 2px 8px;
    font-size: 10px;
    letter-spacing: 1.2px;
}

#bf-clicker .bf-leaderboard-points {
    display: grid;
    justify-items: end;
    line-height: 1.1;
}

#bf-clicker .bf-leaderboard-score {
    min-width: auto;
    font-size: 18px;
}

#bf-clicker .bf-leaderboard-entry.rank-1 .bf-leaderboard-score {
    font-size: 24px;
}

#bf-clicker .bf-leaderboard-entry.rank-2 .bf-leaderboard-score {
    font-size: 21px;
}

#bf-clicker .bf-leaderboard-entry.rank-3 .bf-leaderboard-score {
    font-size: 19px;
}

#bf-clicker .bf-leaderboard-score-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(232, 240, 255, 0.78);
}

@media (max-width: 860px) {
    #bf-clicker .bf-clicker-grid {
        grid-template-columns: 1fr;
    }

    #bf-clicker .bf-leaderboard-entry.rank-1 .bf-leaderboard-score {
        font-size: 20px;
    }
}

/* Mitarbeiterliste: stÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¤rkere Top-10-Effekte */
.employee-card.bf-rank-king {
    animation: bfKingPulse 2.1s ease-in-out infinite;
}

.employee-card.bf-rank-vice {
    animation: bfVicePulse 2.4s ease-in-out infinite;
}

.employee-card.bf-rank-ace {
    animation: bfAcePulse 2.7s ease-in-out infinite;
}

.employee-card.bf-rank-overdrive::after {
    display: block;
    content: '';
    position: absolute;
    inset: -25%;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28), transparent 45%),
        repeating-conic-gradient(from 0deg, rgba(255, 176, 93, 0) 0deg 14deg, rgba(255, 176, 93, 0.3) 14deg 20deg);
    mix-blend-mode: screen;
    animation: bfOverdriveSpin 2.2s linear infinite;
}

.employee-card.bf-mythic-flash::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 215, 90, 0.45), transparent 55%),
        radial-gradient(circle at 85% 25%, rgba(255, 145, 73, 0.36), transparent 52%),
        radial-gradient(circle at 45% 80%, rgba(122, 216, 255, 0.22), transparent 62%);
    animation: bfMythicFlash 0.9s ease-in-out 2;
}

@keyframes bfKingPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 20px 42px rgba(8, 10, 16, 0.55), 0 0 32px rgba(255, 214, 107, 0.4);
    }
    50% {
        transform: translateY(-3px) scale(1.012);
        box-shadow: 0 24px 48px rgba(8, 10, 16, 0.6), 0 0 46px rgba(255, 214, 107, 0.58);
    }
}

@keyframes bfVicePulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 18px 36px rgba(8, 10, 16, 0.52), 0 0 26px rgba(176, 208, 255, 0.38);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 22px 44px rgba(8, 10, 16, 0.58), 0 0 34px rgba(176, 208, 255, 0.5);
    }
}

@keyframes bfAcePulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes bfOverdriveSpin {
    from {
        transform: rotate(0deg) scale(0.95);
        opacity: 0.2;
    }
    50% {
        opacity: 0.65;
    }
    to {
        transform: rotate(360deg) scale(1.08);
        opacity: 0.2;
    }
}

@keyframes bfMythicFlash {
    0%, 100% {
        opacity: 0.12;
    }
    50% {
        opacity: 0.9;
    }
}

/* BF Clicker - kompletter Dashboard Redesign Layer */
#bf-clicker.bf-clicker--nova {
    position: relative;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 166, 77, 0.2), rgba(255, 166, 77, 0) 46%),
        radial-gradient(130% 160% at 100% 100%, rgba(68, 194, 255, 0.2), rgba(68, 194, 255, 0) 50%),
        linear-gradient(160deg, rgba(6, 10, 18, 0.97), rgba(13, 20, 32, 0.94));
    box-shadow: 0 26px 58px rgba(4, 8, 14, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#bf-clicker.bf-clicker--nova::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

#bf-clicker.bf-clicker--nova .bf-clicker-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 16px;
}

#bf-clicker.bf-clicker--nova .bf-clicker-cta,
#bf-clicker.bf-clicker--nova .bf-clicker-rank,
#bf-clicker.bf-clicker--nova .bf-clicker-upgrades,
#bf-clicker.bf-clicker--nova .bf-clicker-leaderboard {
    background: linear-gradient(160deg, rgba(15, 22, 34, 0.92), rgba(10, 16, 25, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
}

#bf-clicker.bf-clicker--nova .bf-clicker-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

#bf-clicker.bf-clicker--nova .bf-clicker-leaderboard {
    order: 2;
    padding: 16px;
}

#bf-clicker.bf-clicker--nova .bf-clicker-upgrades {
    order: 1;
}

#bf-clicker.bf-clicker--nova .bf-clicker-leaderboard h4 {
    margin: 0 0 12px;
    font-size: 18px;
    letter-spacing: 0.3px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-entry {
    min-height: 94px;
    padding: 14px 14px;
    border-radius: 18px;
    align-items: center;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-entry.rank-1 {
    grid-column: 1 / -1;
    min-height: 112px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-entry.rank-2,
#bf-clicker.bf-clicker--nova .bf-leaderboard-entry.rank-3 {
    min-height: 102px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-text > span:last-child {
    font-size: 17px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-entry.rank-1 .bf-leaderboard-text > span:last-child {
    font-size: 22px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-score {
    font-size: 22px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-entry.rank-1 .bf-leaderboard-score {
    font-size: 30px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-entry.rank-2 .bf-leaderboard-score {
    font-size: 24px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-entry.rank-3 .bf-leaderboard-score {
    font-size: 23px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-entry.rank-1 .bf-leaderboard-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-crest {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-entry.rank-1 .bf-leaderboard-crest {
    width: 52px;
    height: 52px;
    font-size: 26px;
}

#bf-clicker.bf-clicker--nova .bf-leaderboard-rank {
    font-size: 11px;
}

#bf-clicker.bf-clicker--nova .bf-clicker-button {
    width: 228px;
    height: 228px;
    box-shadow:
        inset 0 0 30px rgba(255, 98, 60, 0.24),
        0 30px 62px rgba(5, 9, 16, 0.65),
        0 0 58px rgba(255, 124, 58, 0.46);
}

#bf-clicker.bf-clicker--nova .bf-clicker-emoji {
    font-size: 98px;
}

#bf-clicker.bf-clicker--nova .bf-clicker-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#bf-clicker.bf-clicker--nova .bf-stat strong {
    font-size: 24px;
}

@media (max-width: 1180px) {
    #bf-clicker.bf-clicker--nova .bf-leaderboard {
        grid-template-columns: 1fr;
    }

    #bf-clicker.bf-clicker--nova .bf-leaderboard-entry.rank-1 {
        min-height: 106px;
    }
}

@media (max-width: 860px) {
    #bf-clicker.bf-clicker--nova .bf-clicker-hero {
        grid-template-columns: 1fr;
    }

    #bf-clicker.bf-clicker--nova .bf-clicker-button {
        width: 196px;
        height: 196px;
    }

    #bf-clicker.bf-clicker--nova .bf-clicker-emoji {
        font-size: 82px;
    }

    .bf-status-strip {
        grid-template-columns: 1fr;
    }
}

/* BF Clicker Upgrade FX - stark, aber ohne Klick-Stoerung */
#bf-clicker.bf-clicker--nova .bf-clicker-upgrades {
    padding: 16px;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: 470px;
    overflow: auto;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-card {
    position: relative;
    overflow: hidden;
    gap: 9px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(110deg, rgba(255, 121, 67, 0.16), rgba(255, 121, 67, 0) 28%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

#bf-clicker.bf-clicker--nova .bf-upgrade-card::before {
    content: '';
    position: absolute;
    inset: -30% auto -30% -42%;
    width: 54%;
    background: linear-gradient(95deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    transform: rotate(12deg);
    animation: bfUpgradeShimmer 5.4s linear infinite;
    pointer-events: none;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-card::after {
    content: '';
    position: absolute;
    inset: -26%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 214, 122, 0.42), transparent 44%),
        repeating-conic-gradient(from 0deg, rgba(255, 181, 116, 0) 0deg 18deg, rgba(255, 181, 116, 0.35) 18deg 24deg);
    opacity: 0;
    pointer-events: none;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-card.is-upgraded {
    animation: bfUpgradePulse 0.9s ease;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-card.is-upgraded::after {
    animation: bfUpgradeBurst 0.8s ease;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-card.is-rare {
    border-color: rgba(117, 211, 255, 0.34);
    box-shadow: 0 10px 22px rgba(6, 10, 16, 0.36), 0 0 18px rgba(117, 211, 255, 0.18);
}

#bf-clicker.bf-clicker--nova .bf-upgrade-card.is-epic {
    border-color: rgba(255, 206, 109, 0.44);
    box-shadow: 0 12px 24px rgba(6, 10, 16, 0.38), 0 0 24px rgba(255, 206, 109, 0.22);
}

#bf-clicker.bf-clicker--nova .bf-upgrade-head {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(255, 141, 70, 0.3), rgba(113, 215, 255, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1), 0 6px 16px rgba(6, 10, 16, 0.36);
    animation: bfUpgradeIconFloat 2.8s ease-in-out infinite;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-title {
    font-size: 14px;
    letter-spacing: 0.2px;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-desc {
    color: #c8d8ee;
    font-size: 12px;
    line-height: 1.35;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-bonuses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-bonus {
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 999px;
    color: #f3f8ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

#bf-clicker.bf-clicker--nova .bf-upgrade-levelbar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-levelfill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 142, 77, 0.95), rgba(255, 214, 125, 0.95), rgba(114, 217, 255, 0.95));
    box-shadow: 0 0 14px rgba(255, 172, 105, 0.46);
    transition: width 0.25s ease;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-card.is-maxed .bf-upgrade-levelfill {
    filter: saturate(1.25) brightness(1.08);
}

#bf-clicker.bf-clicker--nova .bf-upgrade-button {
    padding: 8px 10px;
    font-size: 12px;
    letter-spacing: 0.35px;
}

#bf-clicker.bf-clicker--nova .bf-upgrade-button:not(:disabled):hover {
    box-shadow: 0 14px 20px rgba(6, 10, 16, 0.42), 0 0 16px rgba(255, 138, 88, 0.28);
}

@keyframes bfUpgradeShimmer {
    0% {
        transform: translateX(-18%) rotate(12deg);
    }
    100% {
        transform: translateX(265%) rotate(12deg);
    }
}

@keyframes bfUpgradeIconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.03);
    }
}

@keyframes bfUpgradePulse {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.028);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bfUpgradeBurst {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    35% {
        opacity: 0.72;
    }
    100% {
        opacity: 0;
        transform: scale(1.16) rotate(120deg);
    }
}

@media (max-width: 1280px) {
    #bf-clicker.bf-clicker--nova .bf-upgrade-grid {
        grid-template-columns: 1fr;
    }
}

/* Leitstelle High-End Redesign */
.leitstelle-hub-page .main-content {
    position: relative;
}

.leitstelle-hero-x,
.dmo-hero-x {
    --hero-tilt-x: 0deg;
    --hero-tilt-y: 0deg;
    --hero-shift-x: 0px;
    --hero-shift-y: 0px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 24px;
    background:
        radial-gradient(140% 130% at 0% 0%, rgba(255, 156, 72, 0.18), rgba(255, 156, 72, 0) 48%),
        radial-gradient(140% 150% at 100% 100%, rgba(77, 207, 255, 0.2), rgba(77, 207, 255, 0) 52%),
        linear-gradient(160deg, rgba(8, 12, 20, 0.95), rgba(14, 19, 30, 0.92));
    box-shadow: 0 28px 58px rgba(4, 8, 14, 0.58);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 20px;
    margin-bottom: 20px;
    transform: perspective(1100px) rotateX(var(--hero-tilt-y)) rotateY(var(--hero-tilt-x));
    transition: transform 0.25s ease;
}

.leitstelle-hero-bg,
.dmo-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.leitstelle-hero-bg span,
.dmo-hero-bg span {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    filter: blur(2px);
    animation: leitstelleFloat 9s ease-in-out infinite;
}

.leitstelle-hero-bg span:nth-child(1),
.dmo-hero-bg span:nth-child(1) {
    left: -40px;
    top: -110px;
}

.leitstelle-hero-bg span:nth-child(2),
.dmo-hero-bg span:nth-child(2) {
    right: -60px;
    top: -80px;
    animation-delay: -3s;
}

.leitstelle-hero-bg span:nth-child(3),
.dmo-hero-bg span:nth-child(3) {
    left: 42%;
    bottom: -170px;
    animation-delay: -5s;
}

.leitstelle-hero-copy,
.dmo-hero-content,
.leitstelle-hero-card,
.dmo-hero-card {
    position: relative;
    z-index: 2;
    transform: translate(var(--hero-shift-x), var(--hero-shift-y));
    transition: transform 0.25s ease;
}

.leitstelle-hero-copy h2,
.dmo-hero-content h2 {
    margin-bottom: 6px;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: 0.4px;
}

.leitstelle-hero-copy p,
.dmo-hero-content p {
    margin: 0;
    color: #d7deea;
}

.leitstelle-kpi-strip,
.dmo-kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.leitstelle-kpi-strip article,
.dmo-kpi-strip article {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.leitstelle-kpi-strip strong,
.dmo-kpi-strip strong {
    font-size: 20px;
}

.leitstelle-hero-actions,
.dmo-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.leitstelle-hero-card,
.dmo-hero-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    padding: 16px;
    align-content: start;
    display: grid;
    gap: 10px;
}

.leitstelle-hero-card ul {
    margin: 0;
    padding-left: 18px;
    color: #dce4ef;
    display: grid;
    gap: 6px;
}

.leitstelle-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.leitstelle-module-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(165deg, rgba(15, 21, 34, 0.9), rgba(10, 14, 24, 0.9));
    padding: 14px;
    display: grid;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: leitstelleRise 0.45s ease both;
}

.leitstelle-module-card:nth-child(2) { animation-delay: 0.06s; }
.leitstelle-module-card:nth-child(3) { animation-delay: 0.12s; }
.leitstelle-module-card:nth-child(4) { animation-delay: 0.18s; }
.leitstelle-module-card:nth-child(5) { animation-delay: 0.24s; }

.leitstelle-module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 16px 30px rgba(5, 9, 16, 0.4);
}

.leitstelle-module-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.leitstelle-module-card header span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9fb8d7;
}

.leitstelle-shell {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(8, 12, 20, 0.78);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.leitstelle-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leitstelle-tab-button {
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.leitstelle-tab-button.is-active {
    background: linear-gradient(135deg, rgba(255, 133, 80, 0.3), rgba(88, 201, 255, 0.26));
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 16px rgba(111, 203, 255, 0.25);
}

.leitstelle-tab-panel {
    display: none;
}

.leitstelle-tab-panel.is-active {
    display: block;
    animation: leitstelleTabIn 0.25s ease;
}

.leitstelle-grid-2,
.leitstelle-exam-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.leitstelle-exam-shell {
    grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr) minmax(420px, 1.35fr);
    align-items: start;
}

.leitstelle-people-list,
.leitstelle-notice-list,
.leitstelle-exam-list,
.leitstelle-exam-messages {
    display: grid;
    gap: 10px;
    max-height: 460px;
    overflow: auto;
    padding-right: 4px;
}

.leitstelle-person-card,
.leitstelle-exam-ticket,
.leitstelle-message-card,
.leitstelle-notice-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
}

.leitstelle-person-card {
    display: flex;
    gap: 10px;
    align-items: center;
}

.leitstelle-person-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 145, 80, 0.32), rgba(88, 200, 255, 0.3));
    display: grid;
    place-items: center;
    font-weight: 700;
    background-size: cover;
    background-position: center;
}

.leitstelle-notice-card.type-warning { border-color: rgba(255, 187, 75, 0.5); }
.leitstelle-notice-card.type-success { border-color: rgba(95, 233, 161, 0.5); }
.leitstelle-notice-card.type-critical { border-color: rgba(255, 104, 104, 0.56); }

.leitstelle-notice-head,
.leitstelle-message-head,
.leitstelle-exam-ticket-head,
.leitstelle-exam-ticket-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.leitstelle-exam-ticket {
    text-align: left;
    cursor: pointer;
    width: 100%;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at 100% 0%, rgba(108, 201, 255, 0.16), transparent 58%);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.2s ease;
}

.leitstelle-exam-ticket:hover {
    transform: translateY(-2px);
    border-color: rgba(136, 220, 255, 0.62);
    box-shadow: 0 14px 24px rgba(7, 13, 22, 0.42);
}

.leitstelle-exam-ticket.is-active {
    border-color: rgba(98, 206, 255, 0.65);
    box-shadow: 0 0 0 1px rgba(98, 206, 255, 0.2), 0 14px 26px rgba(6, 10, 16, 0.4);
}

.leitstelle-exam-ticket-subject {
    margin: 8px 0 6px;
    font-weight: 600;
}

.leitstelle-exam-ticket-head span {
    border-radius: 999px;
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
}

.leitstelle-exam-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.leitstelle-message-card.role-system {
    border-color: rgba(255, 211, 111, 0.56);
    background: rgba(255, 211, 111, 0.08);
}

.leitstelle-exam-ticket-box,
.leitstelle-exam-admin-tools,
.leitstelle-desk-info {
    display: grid;
    gap: 10px;
}

.leitstelle-exam-ticket-meta,
.leitstelle-exam-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.leitstelle-exam-statusbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.leitstelle-pill {
    border-radius: 999px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.leitstelle-module-form,
.leitstelle-module-edit-list,
.leitstelle-module-edit-row,
.leitstelle-module-edit-grid {
    display: grid;
    gap: 10px;
}

.leitstelle-module-edit-row {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
}

.drag-handle {
    display: inline-block;
    margin-right: 6px;
    opacity: 0.72;
}

.leitstelle-module-edit-row.is-dragging,
.dmo-group-card.is-dragging,
.dmo-channel-table tr.is-dragging {
    opacity: 0.55;
}

.leitstelle-module-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leitstelle-module-edit-grid .full {
    grid-column: 1 / -1;
}

.leitstelle-module-edit-grid input,
.leitstelle-module-edit-grid textarea,
.dmo-controlbar input,
.dmo-form-grid input,
.dmo-channel-form input,
.leitstelle-notice-form input,
.leitstelle-notice-form textarea,
.leitstelle-notice-form select,
.blackboard-form input,
.blackboard-form textarea,
.leitstelle-exam-form input,
.leitstelle-exam-form textarea,
.leitstelle-exam-message-form textarea,
.leitstelle-exam-admin-grid input,
.leitstelle-exam-admin-grid select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 19, 0.9);
    color: var(--text);
    padding: 8px 10px;
}

.dmo-controlbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.dmo-search-wrap {
    display: grid;
    gap: 6px;
}

.dmo-control-hint {
    color: var(--muted);
    font-size: 13px;
}

.dmo-shell {
    display: grid;
    gap: 12px;
}

.dmo-form-grid,
.dmo-channel-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    align-items: center;
}

.dmo-group-card {
    --dmo-accent: #66d4ff;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--dmo-accent) 42%, rgba(255, 255, 255, 0.14));
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--dmo-accent) 24%, transparent), transparent 36%),
        rgba(255, 255, 255, 0.04);
    padding: 12px;
    display: grid;
    gap: 10px;
    animation: leitstelleRise 0.35s ease both;
}

.dmo-group-card[draggable="true"] .dmo-group-head h4,
.leitstelle-module-edit-row[draggable="true"] h4,
.dmo-channel-table tr[draggable="true"] td:first-child {
    cursor: grab;
}

.dmo-groups-grid {
    display: grid;
    gap: 10px;
}

.dmo-group-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.dmo-group-actions,
.dmo-channel-actions,
.leitstelle-notice-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dmo-channel-table-wrap {
    overflow-x: auto;
}

.dmo-channel-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.dmo-channel-table th,
.dmo-channel-table td {
    text-align: left;
    padding: 8px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.dmo-channel-table th {
    color: #aac0db;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
}

.dmo-modal {
    position: fixed;
    inset: 0;
    z-index: 1245;
    display: grid;
    place-items: center;
    padding: 18px;
}

.dmo-modal[hidden] {
    display: none;
}

.dmo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 16, 0.82);
    backdrop-filter: blur(4px);
}

.dmo-modal-card {
    position: relative;
    z-index: 1;
    width: min(760px, 95vw);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(160deg, rgba(10, 15, 26, 0.98), rgba(8, 12, 20, 0.96));
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.54);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.dmo-modal-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.dmo-modal-card h4 {
    margin: 0;
}

.dmo-modal-form {
    display: grid;
    gap: 10px;
}

.dmo-modal-form label {
    display: grid;
    gap: 6px;
}

.dmo-modal-form label span {
    color: var(--muted);
    font-size: 12px;
}

.dmo-modal-check {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.dmo-modal-check input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: #6fc5ff;
}

.dmo-modal-form input[type='text'],
.dmo-modal-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 13, 22, 0.95) !important;
    color: var(--text) !important;
    padding: 8px 10px;
}

.dmo-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* DMO: bewegte Hero-Effekte deaktivieren */
.dmo-hero-x {
    transform: none !important;
    transition: none !important;
}

.dmo-hero-content,
.dmo-hero-card {
    transform: none !important;
    transition: none !important;
}

.dmo-hero-bg span {
    animation: none !important;
}

@keyframes leitstelleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.42; }
    50% { transform: translateY(-24px) scale(1.07); opacity: 0.68; }
}

@keyframes leitstelleRise {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes leitstelleTabIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1240px) {
    .leitstelle-exam-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .leitstelle-hero-x,
    .dmo-hero-x {
        grid-template-columns: 1fr;
    }

    .leitstelle-grid-2 {
        grid-template-columns: 1fr;
    }

    .dmo-controlbar {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .leitstelle-kpi-strip,
    .dmo-kpi-strip {
        grid-template-columns: 1fr;
    }
}

.leitstelle-hub-page .primary-button,
.leitstelle-hub-page .ghost-button {
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.leitstelle-hub-page .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(181, 18, 18, 0.26);
}

.leitstelle-hub-page .ghost-button:hover {
    transform: translateY(-2px);
    border-color: rgba(130, 215, 255, 0.7);
    box-shadow: 0 12px 24px rgba(7, 16, 28, 0.5);
}

.leitstelle-admin-hero {
    background:
        radial-gradient(140% 140% at 0% 0%, rgba(255, 116, 86, 0.2), rgba(255, 116, 86, 0) 44%),
        radial-gradient(140% 150% at 100% 100%, rgba(95, 226, 191, 0.22), rgba(95, 226, 191, 0) 52%),
        linear-gradient(160deg, rgba(8, 14, 26, 0.95), rgba(13, 22, 36, 0.94));
}

.leitstelle-ausbilder-hero {
    background:
        radial-gradient(130% 130% at 0% 0%, rgba(255, 203, 87, 0.24), rgba(255, 203, 87, 0) 48%),
        radial-gradient(160% 160% at 100% 100%, rgba(96, 164, 255, 0.26), rgba(96, 164, 255, 0) 56%),
        linear-gradient(160deg, rgba(9, 15, 26, 0.95), rgba(16, 24, 39, 0.94));
}

.leitstelle-exam-create-premium {
    border: 1px solid rgba(255, 179, 93, 0.36);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 194, 102, 0.24), transparent 52%),
        radial-gradient(circle at 0% 100%, rgba(110, 198, 255, 0.18), transparent 56%),
        linear-gradient(150deg, rgba(26, 19, 12, 0.75), rgba(18, 16, 25, 0.8));
    box-shadow: inset 0 0 0 1px rgba(255, 223, 138, 0.12);
}

.leitstelle-admin-page .leitstelle-exam-shell {
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.leitstelle-role-rules-form,
.leitstelle-role-section {
    display: grid;
    gap: 10px;
}

.leitstelle-role-list,
.leitstelle-notify-list {
    display: grid;
    gap: 8px;
}

.leitstelle-role-row,
.leitstelle-notify-row {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    padding: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.leitstelle-notify-row {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.leitstelle-role-row input,
.leitstelle-notify-row input[type="text"],
.leitstelle-role-section > input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(8, 12, 19, 0.9);
    color: var(--text);
    padding: 8px 10px;
}

.leitstelle-ausbilder-content-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 14px;
    display: grid;
    gap: 8px;
}

.leitstelle-ausbilder-form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.leitstelle-ausbilder-form input,
.leitstelle-ausbilder-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 19, 0.9);
    color: var(--text);
    padding: 9px 10px;
}

.leitstelle-ausbilder-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.leitstelle-coming-soon-panel {
    margin-top: 14px;
}

.coming-pill-live {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 193, 77, 0.55);
    color: #ffd680;
    background: rgba(255, 193, 77, 0.14);
    animation: comingPulseLive 2.1s ease-in-out infinite;
}

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

.dv-coming-page .request-hero {
    position: relative;
    overflow: hidden;
}

.dv-hero {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(120% 120% at 10% -10%, rgba(255, 126, 72, 0.24), transparent 48%),
        radial-gradient(100% 120% at 100% 100%, rgba(105, 221, 255, 0.2), transparent 54%),
        linear-gradient(155deg, rgba(11, 17, 29, 0.95), rgba(8, 12, 20, 0.95));
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
    gap: 20px;
}

.dv-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dv-hero-glow span {
    position: absolute;
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.55;
    animation: dvOrbFloat 8s ease-in-out infinite;
}

.dv-hero-glow span:nth-child(1) {
    width: 170px;
    height: 170px;
    left: -30px;
    top: -30px;
    background: rgba(255, 132, 76, 0.34);
}

.dv-hero-glow span:nth-child(2) {
    width: 140px;
    height: 140px;
    right: 16%;
    top: 18%;
    background: rgba(101, 220, 255, 0.32);
    animation-delay: 1.2s;
}

.dv-hero-glow span:nth-child(3) {
    width: 120px;
    height: 120px;
    right: -30px;
    bottom: -20px;
    background: rgba(255, 194, 96, 0.36);
    animation-delay: 2s;
}

.dv-hero-main,
.dv-hero-side {
    position: relative;
    z-index: 1;
}

.dv-hero-main {
    display: grid;
    gap: 12px;
}

.dv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dv-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

.dv-hero-side {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    padding: 12px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.dv-hero-side p {
    margin: 0;
    color: #c7d1e1;
}

.dv-mini-stats {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dv-mini-stats article {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(8, 12, 20, 0.75);
    padding: 8px;
    display: grid;
    gap: 4px;
}

.dv-mini-stats span {
    font-size: 11px;
    color: var(--muted);
}

.dv-mini-stats strong {
    font-size: 14px;
}

.dv-coming-shell {
    margin-top: 14px;
}

.dv-coming-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
    gap: 14px;
}

.dv-coming-core,
.dv-coming-side {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(155deg, rgba(12, 18, 29, 0.86), rgba(8, 12, 20, 0.82));
    padding: 14px;
}

.dv-coming-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 189, 88, 0.72);
    color: #ffd88c;
    background: rgba(255, 189, 88, 0.16);
    animation: dvTagPulse 2.8s ease-in-out infinite;
}

.dv-coming-core h4,
.dv-coming-side h4 {
    margin: 10px 0 8px;
}

.dv-coming-core p {
    margin: 0 0 12px;
    color: #ccd7e8;
}

.dv-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    margin-bottom: 12px;
}

.dv-progress-track span {
    display: block;
    width: 70%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff944f, #ffd06a, #70d9ff);
    background-size: 200% 100%;
    animation: dvProgressFlow 3.2s linear infinite;
}

.dv-coming-list {
    margin: 0 0 14px;
    padding-left: 18px;
    color: #d4dcec;
    display: grid;
    gap: 6px;
}

.dv-step-list {
    display: grid;
    gap: 8px;
}

.dv-step-list div {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    padding: 9px 10px;
    display: grid;
    gap: 3px;
}

.dv-step-list strong {
    font-size: 13px;
}

.dv-step-list span {
    font-size: 12px;
    color: #c6d0e0;
}

.dv-restricted {
    border-color: rgba(255, 107, 107, 0.5);
    background:
        linear-gradient(160deg, rgba(40, 12, 12, 0.76), rgba(22, 12, 12, 0.72)),
        radial-gradient(circle at 0 0, rgba(255, 92, 92, 0.25), transparent 52%);
}

@keyframes dvOrbFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes dvTagPulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(255, 189, 88, 0.26);
    }
    50% {
        transform: translateY(-1px);
        box-shadow: 0 0 0 8px rgba(255, 189, 88, 0);
    }
}

@keyframes dvProgressFlow {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 200% 0;
    }
}

@keyframes comingPulseLive {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(255, 193, 77, 0.28);
    }
    50% {
        transform: translateY(-1px);
        box-shadow: 0 0 0 8px rgba(255, 193, 77, 0);
    }
}

@media (max-width: 1100px) {
    .leitstelle-admin-page .leitstelle-exam-shell,
    .leitstelle-notify-row,
    .leitstelle-ausbilder-duo,
    .dv-coming-grid {
        grid-template-columns: 1fr;
    }

    .dv-hero {
        grid-template-columns: 1fr;
    }
}

.leitstelle-main-neon .leitstelle-main-stage {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    background:
        radial-gradient(130% 130% at 0% 0%, rgba(255, 109, 109, 0.24), rgba(255, 109, 109, 0) 46%),
        radial-gradient(140% 140% at 100% 100%, rgba(103, 223, 255, 0.22), rgba(103, 223, 255, 0) 54%),
        linear-gradient(160deg, rgba(8, 13, 24, 0.96), rgba(13, 21, 38, 0.95));
}

.leitstelle-main-intro {
    display: grid;
    gap: 12px;
    align-content: start;
}

.leitstelle-main-intro h2 {
    margin: 0;
}

.leitstelle-main-intro p {
    margin: 0;
    max-width: 780px;
}

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

.leitstelle-main-right {
    display: grid;
    gap: 10px;
    align-content: start;
}

.leitstelle-main-chip {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    padding: 12px 14px;
    display: grid;
    gap: 6px;
}

.leitstelle-main-chip p {
    margin: 0;
    color: #d7deea;
    font-size: 13px;
}

.leitstelle-main-module-grid .leitstelle-module-card {
    min-height: 176px;
}

.leitstelle-main-shell {
    background:
        radial-gradient(130% 120% at 0% 0%, rgba(255, 193, 114, 0.1), rgba(255, 193, 114, 0) 48%),
        radial-gradient(130% 130% at 100% 100%, rgba(96, 202, 255, 0.1), rgba(96, 202, 255, 0) 52%),
        rgba(8, 12, 20, 0.8);
}

@media (max-width: 1100px) {
    .leitstelle-main-neon .leitstelle-main-stage {
        grid-template-columns: 1fr;
    }
}

.leitstelle-hub-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(241, 90, 36, 0.7) rgba(255, 255, 255, 0.08);
}

.leitstelle-hub-page * {
    scrollbar-width: thin;
    scrollbar-color: rgba(241, 90, 36, 0.7) rgba(255, 255, 255, 0.08);
}

.leitstelle-hub-page *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.leitstelle-hub-page *::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.leitstelle-hub-page *::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(241, 90, 36, 0.9), rgba(97, 202, 255, 0.82));
    border: 2px solid rgba(11, 16, 24, 0.8);
}

.leitstelle-main-neon .leitstelle-hero-bg span {
    animation-duration: 17s;
    opacity: 0.3;
}

.leitstelle-main-neon .leitstelle-module-card {
    animation: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(160deg, rgba(20, 28, 43, 0.9), rgba(12, 18, 30, 0.9)),
        radial-gradient(circle at 100% 0, rgba(255, 142, 112, 0.12), transparent 56%);
    box-shadow: 0 10px 20px rgba(6, 10, 16, 0.36);
}

.leitstelle-main-neon .leitstelle-module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(6, 10, 16, 0.44);
}

.leitstelle-main-neon .panel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(165deg, rgba(14, 20, 32, 0.92), rgba(9, 14, 24, 0.9)),
        radial-gradient(circle at 0 0, rgba(96, 202, 255, 0.1), transparent 42%);
    box-shadow: 0 14px 26px rgba(6, 10, 16, 0.35);
}

.leitstelle-grid-3-on-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leitstelle-main-neon .leitstelle-person-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.leitstelle-main-neon .leitstelle-person-avatar {
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.leitstelle-help-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1250;
    border-radius: 999px;
    box-shadow: 0 16px 28px rgba(6, 10, 16, 0.42);
    animation: leitstelleHelpFloat 2.4s ease-in-out infinite;
}

.leitstelle-help-button:hover {
    transform: translateY(-2px);
}

.leitstelle-help-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
}

.leitstelle-help-modal[hidden] {
    display: none !important;
}

.leitstelle-help-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 12, 0.74);
    backdrop-filter: blur(5px);
}

.leitstelle-help-card {
    position: relative;
    z-index: 2;
    width: min(980px, 94vw);
    max-height: 90vh;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(150deg, rgba(13, 20, 34, 0.98), rgba(9, 14, 24, 0.98)),
        radial-gradient(circle at 100% 0, rgba(255, 154, 96, 0.15), transparent 54%);
    box-shadow: 0 28px 52px rgba(3, 7, 12, 0.62);
    display: grid;
    gap: 10px;
    padding: 14px;
}

.leitstelle-help-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.leitstelle-help-scroll {
    overflow: auto;
    display: grid;
    gap: 10px;
    padding-right: 4px;
}

.leitstelle-help-section {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
}

.leitstelle-help-section h4 {
    margin: 0 0 8px;
}

.leitstelle-help-section ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 5px;
}

@keyframes leitstelleHelpFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .leitstelle-grid-3-on-main {
        grid-template-columns: 1fr;
    }
}

/* Leitungsebene & Terminmodul */
.leadership-page .main-content,
.appointment-page .main-content {
    position: relative;
    overflow: hidden;
}

.leadership-page .main-content::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 520px;
    background: radial-gradient(circle at top, rgba(62, 120, 255, 0.35), transparent 60%),
        radial-gradient(circle at 30% 20%, rgba(255, 125, 84, 0.3), transparent 55%);
    filter: blur(10px);
    opacity: 0.9;
    pointer-events: none;
}

.appointment-page .main-content::before {
    content: '';
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 560px;
    background: radial-gradient(circle at 20% 20%, rgba(60, 198, 255, 0.35), transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(255, 186, 73, 0.3), transparent 55%);
    filter: blur(16px);
    opacity: 0.95;
    pointer-events: none;
}

.leadership-page .leadership-hq,
.appointment-page .appointment-hub {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
}

.leadership-page .leadership-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(18, 24, 36, 0.95), rgba(10, 12, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(7, 10, 16, 0.55);
}

.leadership-page .leadership-hero-content h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    margin: 8px 0 10px;
}

.leadership-page .leadership-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.leadership-page .leadership-hero-card {
    position: relative;
    border-radius: 20px;
    padding: 18px;
    background: rgba(12, 18, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 10px;
    overflow: hidden;
}

.leadership-page .leadership-hero-card strong {
    font-size: 20px;
}

.leadership-page .leadership-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.leadership-page .leadership-orbit {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(110, 176, 255, 0.25);
    top: -70px;
    right: -60px;
    animation: leadershipOrbit 12s linear infinite;
}

@keyframes leadershipOrbit {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.04);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.leadership-page .leadership-grid {
    display: grid;
    gap: 18px;
}

.leadership-page .leadership-module {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(16, 21, 30, 0.96), rgba(8, 10, 16, 0.92));
    position: relative;
    overflow: hidden;
}

.leadership-page .leadership-module-content h3 {
    font-size: clamp(20px, 2.2vw, 28px);
    margin: 8px 0 10px;
}

.leadership-page .leadership-module-actions {
    margin-top: 12px;
}

.leadership-page .leadership-module-visual {
    position: relative;
    min-height: 160px;
}

.leadership-page .leadership-chip {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(62, 120, 255, 0.15);
    border: 1px solid rgba(62, 120, 255, 0.4);
}

.leadership-page .leadership-wave {
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: radial-gradient(circle at 50% 0%, rgba(62, 120, 255, 0.5), transparent 60%);
    opacity: 0.6;
    animation: leadershipWave 6s ease-in-out infinite;
}

.leadership-page .leadership-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    right: 10%;
    bottom: 10%;
    background: radial-gradient(circle, rgba(255, 118, 84, 0.7), transparent 65%);
    animation: leadershipPulse 4.8s ease-in-out infinite;
}

.leadership-page .leadership-grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(60deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
}

.leadership-page .leadership-spark {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(80, 220, 190, 0.6), transparent 70%);
    animation: leadershipPulse 5.2s ease-in-out infinite;
}

@keyframes leadershipWave {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0.85;
    }
}

@keyframes leadershipPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.leadership-page .main-content::before {
    background: radial-gradient(circle at 20% 10%, rgba(255, 183, 77, 0.35), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(87, 214, 255, 0.35), transparent 60%),
        radial-gradient(circle at 40% 0%, rgba(255, 92, 92, 0.18), transparent 60%);
    filter: blur(14px);
}

.leadership-page .leadership-hero {
    background: linear-gradient(135deg, rgba(10, 14, 20, 0.98), rgba(14, 18, 28, 0.95));
    border: 1px solid rgba(255, 199, 109, 0.12);
    box-shadow: 0 28px 80px rgba(4, 6, 10, 0.6);
}

.leadership-page .leadership-hero-content h2 {
    font-size: clamp(28px, 3.2vw, 40px);
}

.leadership-page .leadership-hero-card {
    background: linear-gradient(160deg, rgba(16, 22, 34, 0.95), rgba(10, 12, 20, 0.92));
    border: 1px solid rgba(255, 199, 109, 0.2);
}

.leadership-page .leadership-hero-card strong {
    font-family: var(--font-display);
    letter-spacing: 0.4px;
}

.leadership-page .leadership-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.leadership-page .leadership-metric-card {
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(10, 14, 20, 0.96), rgba(12, 16, 24, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 8px;
}

.leadership-page .leadership-metric-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.leadership-page .leadership-metric-role {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.4px;
}

.leadership-page .leadership-metric-value {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.4vw, 34px);
    color: #ffcf87;
}

.leadership-page .leadership-metric-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.leadership-page .leadership-roster {
    display: grid;
    gap: 16px;
}

.leadership-page .leadership-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.leadership-page .leadership-section-head h3 {
    margin: 6px 0 4px;
    font-size: clamp(20px, 2.2vw, 28px);
    font-family: var(--font-display);
}

.leadership-page .leadership-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.leadership-page .leadership-roster-card {
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(12, 16, 24, 0.96), rgba(10, 12, 18, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.leadership-page .leadership-roster-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(110, 231, 255, 0.18), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.leadership-page .leadership-roster-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.leadership-page .leadership-roster-count {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(22px, 2vw, 30px);
    color: #6ee7ff;
    text-shadow: 0 0 16px rgba(110, 231, 255, 0.3);
}

.leadership-page .leadership-roster-pill {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(240, 245, 255, 0.85);
}

.leadership-page .leadership-people-list {
    display: grid;
    gap: 10px;
    max-height: 240px;
    overflow: auto;
    padding-right: 4px;
    position: relative;
    z-index: 1;
}

.leadership-page .leadership-person-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 14, 22, 0.7);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.leadership-page .leadership-person-card:hover {
    transform: translateY(-1px);
    border-color: rgba(110, 231, 255, 0.35);
}

.leadership-page .leadership-person-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    background-size: cover;
    background-position: center;
}

.leadership-page .leadership-person-meta {
    display: grid;
    gap: 2px;
}

.leadership-page .leadership-person-meta small {
    color: var(--muted);
    font-size: 12px;
}

.leadership-page .leadership-grid {
    gap: 20px;
}

.leadership-page .leadership-module {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(140deg, rgba(10, 14, 20, 0.98), rgba(12, 18, 28, 0.95));
    box-shadow: 0 22px 60px rgba(5, 7, 12, 0.55);
}

.leadership-page .leadership-module--appointments {
    border-color: rgba(110, 231, 255, 0.3);
}

.leadership-page .leadership-module--accounting {
    border-color: rgba(255, 205, 120, 0.35);
}

.leadership-page .leadership-module--ops {
    border-color: rgba(140, 255, 200, 0.25);
}

.leadership-page .leadership-module .leadership-chip {
    background: rgba(255, 205, 120, 0.18);
    border-color: rgba(255, 205, 120, 0.45);
}

.leadership-page .leadership-module--appointments .leadership-chip {
    background: rgba(110, 231, 255, 0.15);
    border-color: rgba(110, 231, 255, 0.4);
}

.leadership-page .leadership-module--ops .leadership-chip {
    background: rgba(140, 255, 200, 0.14);
    border-color: rgba(140, 255, 200, 0.35);
}

@media (max-width: 720px) {
    .leadership-page .leadership-metrics {
        grid-template-columns: 1fr;
    }
    .leadership-page .leadership-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.leadership-page .primary-button,
.leadership-page .ghost-button {
    border-radius: 999px;
}

.leadership-page .primary-button {
    background: linear-gradient(135deg, rgba(255, 199, 109, 0.95), rgba(255, 140, 60, 0.95));
    border: 1px solid rgba(255, 199, 109, 0.7);
    color: #2b1400;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(255, 140, 60, 0.25);
}

.leadership-page .primary-button:hover {
    filter: brightness(1.05);
}

.leadership-page .ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(240, 245, 255, 0.9);
}

.leadership-page .leadership-actions {
    gap: 12px;
}

.leadership-page .leadership-hero {
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.leadership-page .leadership-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 199, 109, 0.08), transparent 40%);
    pointer-events: none;
}

.leadership-page .leadership-hero::before {
    content: '';
    position: absolute;
    inset: -40% 20% auto -10%;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 199, 109, 0.28), transparent 60%);
    animation: leadershipSweep 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes leadershipSweep {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(18px);
        opacity: 0.9;
    }
}

.leadership-page .leadership-module::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.leadership-page .leadership-module:hover::after {
    opacity: 1;
}

.leadership-page .leadership-metric-card {
    position: relative;
    overflow: hidden;
}

.leadership-page .leadership-metric-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 199, 109, 0.2), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.leadership-page .leadership-metric-value {
    text-shadow: 0 0 18px rgba(255, 199, 109, 0.3);
}

.leadership-page .leadership-module {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.leadership-page .leadership-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 70px rgba(5, 8, 12, 0.6);
}

.leadership-page ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.leadership-page ::-webkit-scrollbar-track {
    background: rgba(8, 12, 18, 0.6);
    border-radius: 999px;
}

.leadership-page ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 199, 109, 0.4), rgba(87, 214, 255, 0.4));
    border-radius: 999px;
}

.leadership-page * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 199, 109, 0.5) rgba(8, 12, 18, 0.6);
}

.appointment-page .appointment-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(12, 18, 28, 0.96), rgba(10, 12, 20, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(7, 10, 16, 0.55);
}

.appointment-page .appointment-hero h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 34px);
    margin: 8px 0 10px;
}

.appointment-page .appointment-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.appointment-page .appointment-tag {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(60, 198, 255, 0.45);
    background: rgba(60, 198, 255, 0.1);
    font-size: 12px;
}

.appointment-page .appointment-hero-card {
    border-radius: 20px;
    padding: 18px;
    background: rgba(12, 18, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 10px;
}

.appointment-page .appointment-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.appointment-page .appointment-guilds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.appointment-page .guild-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: rgba(10, 14, 22, 0.9);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.appointment-page .guild-card:hover {
    transform: translateY(-2px);
    border-color: rgba(60, 198, 255, 0.5);
    box-shadow: 0 18px 40px rgba(5, 10, 16, 0.5);
}

.appointment-page .guild-card.is-active {
    border-color: rgba(255, 186, 73, 0.7);
    box-shadow: 0 0 30px rgba(255, 186, 73, 0.25);
}

.appointment-page .guild-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.appointment-page .guild-status.is-live {
    color: #6ee7ff;
}

.appointment-page .guild-status.is-soon {
    color: #ffb74d;
}

.appointment-page .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.4);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    70% {
        transform: scale(1.4);
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
    }
}

.appointment-page .appointment-panel {
    display: grid;
    gap: 16px;
}

.appointment-page .coming-soon-panel {
    border-radius: 22px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 16, 24, 0.9);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.appointment-page .coming-orbit {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 186, 73, 0.35);
    top: -80px;
    right: -60px;
    animation: leadershipOrbit 14s linear infinite;
}

.appointment-page .appointment-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.appointment-page .appointment-card {
    border-radius: 22px;
    padding: 18px;
    background: rgba(12, 16, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 14px;
}

.appointment-page .appointment-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.appointment-page .appointment-card-hint {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.appointment-page .appointment-form-card input,
.appointment-page .appointment-form-card textarea,
.appointment-page .appointment-form-card select {
    width: 100%;
}

.appointment-page .appointment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.appointment-page .appointment-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.appointment-page .toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.appointment-page .appointment-role-block {
    display: grid;
    gap: 12px;
}

.appointment-page .appointment-role-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.appointment-page .appointment-role-item {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 14, 22, 0.8);
}

.appointment-page .appointment-role-item span {
    color: #e8f1ff;
}

.appointment-page .appointment-role-item input {
    accent-color: #6ee7ff;
}

.appointment-page .appointment-role-add {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.appointment-page .appointment-role-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.appointment-page .appointment-role-summary {
    font-size: 12px;
}

.appointment-page .appointment-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.appointment-page .status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.appointment-page .status-pill.is-live {
    border-color: rgba(110, 231, 255, 0.6);
    color: #bfefff;
}

.appointment-page .status-pill.is-draft {
    border-color: rgba(255, 199, 109, 0.5);
    color: #ffd6a0;
}

.appointment-page .status-pill.is-expired {
    border-color: rgba(150, 160, 180, 0.5);
    color: #d0d6e4;
}

.appointment-page .status-pill.is-cancelled {
    border-color: rgba(255, 90, 90, 0.6);
    color: #ffc0c0;
}

.appointment-page .appointment-item.is-cancelled {
    opacity: 0.7;
    border-color: rgba(255, 90, 90, 0.4);
}

.appointment-page .appointment-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 255, 0.5);
    color: #dff6ff;
    background: rgba(24, 36, 52, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.appointment-page .appointment-link:hover {
    transform: translateY(-1px);
    border-color: rgba(110, 231, 255, 0.8);
    box-shadow: 0 0 18px rgba(110, 231, 255, 0.2);
}

.appointment-page .appointment-link.small {
    padding: 8px 12px;
    font-size: 12px;
}

.appointment-page .appointment-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.appointment-page .appointment-alert {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 86, 86, 0.4);
    background: rgba(255, 86, 86, 0.12);
    font-weight: 600;
}

.appointment-page .role-picker-item strong {
    color: #f4f7ff;
}

.appointment-page .role-picker-item small {
    color: rgba(210, 224, 255, 0.7);
}

.appointment-page .role-picker-item .role-badge {
    color: rgba(210, 224, 255, 0.7);
}

.appointment-page .archive-picker {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.appointment-page .archive-picker[hidden] {
    display: none;
}

.appointment-page .archive-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 14, 0.78);
    backdrop-filter: blur(6px);
}

.appointment-page .archive-picker-window {
    position: relative;
    margin: 8vh auto;
    width: min(900px, 92vw);
    max-height: 84vh;
    border-radius: 24px;
    border: 1px solid rgba(120, 200, 255, 0.2);
    background: linear-gradient(160deg, rgba(11, 20, 32, 0.98), rgba(9, 16, 26, 0.96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: appointment-modal-in 0.35s ease;
}

.appointment-page .archive-picker-frame {
    padding: 20px 22px 24px;
    margin: 10px;
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(18, 32, 48, 0.9), rgba(12, 20, 32, 0.95));
    border: 1px solid rgba(110, 231, 255, 0.15);
    display: grid;
    gap: 16px;
    max-height: calc(84vh - 20px);
}

.appointment-page .archive-picker-body {
    overflow-y: auto;
    max-height: 60vh;
}

.appointment-page .archive-picker-list {
    display: grid;
    gap: 12px;
}

.appointment-page .archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 16, 24, 0.7);
}

.appointment-page .archive-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.appointment-page .action-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.appointment-page .action-modal[hidden] {
    display: none;
}

.appointment-page .action-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 12, 0.82);
    backdrop-filter: blur(6px);
}

.appointment-page .action-modal-window {
    position: relative;
    margin: 10vh auto;
    width: min(620px, 90vw);
    border-radius: 22px;
    border: 1px solid rgba(255, 199, 109, 0.22);
    background: linear-gradient(160deg, rgba(12, 18, 28, 0.98), rgba(9, 12, 18, 0.95));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    animation: appointment-modal-in 0.35s ease;
}

.appointment-page .action-modal-frame {
    padding: 20px 22px 22px;
    margin: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 199, 109, 0.18);
    background: rgba(10, 16, 24, 0.9);
    display: grid;
    gap: 14px;
}

.appointment-page .action-modal label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.appointment-page .action-modal input,
.appointment-page .action-modal textarea {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 18, 0.9);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-body);
    color-scheme: dark;
}

.appointment-page .action-modal textarea::placeholder,
.appointment-page .action-modal input::placeholder {
    color: rgba(210, 224, 255, 0.55);
}

.appointment-page .action-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.appointment-page .ghost-button.danger {
    border-color: rgba(255, 96, 96, 0.6);
    color: rgba(255, 180, 180, 0.9);
}

.appointment-page .primary-button.danger {
    background: linear-gradient(135deg, rgba(255, 90, 90, 0.9), rgba(191, 34, 34, 0.9));
}

.appointment-page .appointment-denied.is-full {
    margin-top: 0;
    min-height: 60vh;
    place-items: center;
}

.appointment-page .appointment-denied-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.appointment-page .primary-button,
.appointment-page .ghost-button {
    border-radius: 999px;
}

.appointment-page .primary-button {
    background: linear-gradient(135deg, rgba(80, 174, 255, 0.95), rgba(53, 99, 230, 0.95));
    border: 1px solid rgba(110, 231, 255, 0.6);
    color: #f2fbff;
    box-shadow: 0 8px 20px rgba(20, 60, 120, 0.4);
}

.appointment-page .primary-button:hover {
    filter: brightness(1.05);
}

.appointment-page .primary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.appointment-page .ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(220, 235, 255, 0.9);
}

.appointment-page .ghost-button:hover {
    border-color: rgba(110, 231, 255, 0.4);
    box-shadow: 0 0 18px rgba(110, 231, 255, 0.15);
}

.appointment-page .appointment-response-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.appointment-page .appointment-response-buttons button.is-active {
    background: rgba(110, 231, 255, 0.12);
}

.appointment-page ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.appointment-page ::-webkit-scrollbar-track {
    background: rgba(8, 12, 18, 0.6);
    border-radius: 999px;
}

.appointment-page ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(110, 231, 255, 0.4), rgba(255, 183, 77, 0.4));
    border-radius: 999px;
}

.appointment-page * {
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 231, 255, 0.5) rgba(8, 12, 18, 0.6);
}

.appointment-page .role-picker {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.appointment-page .role-picker[hidden] {
    display: none;
}

.appointment-page .role-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 14, 0.78);
    backdrop-filter: blur(6px);
}

.appointment-page .role-picker-window {
    position: relative;
    margin: 6vh auto;
    width: min(1100px, 92vw);
    max-height: 88vh;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(120, 200, 255, 0.2);
    background: linear-gradient(160deg, rgba(11, 20, 32, 0.98), rgba(9, 16, 26, 0.96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: appointment-modal-in 0.35s ease;
}

.appointment-page .role-picker-frame {
    padding: 22px 24px 24px;
    border-radius: 22px;
    margin: 10px;
    background: linear-gradient(140deg, rgba(18, 32, 48, 0.9), rgba(12, 20, 32, 0.95));
    border: 1px solid rgba(110, 231, 255, 0.15);
    box-shadow: inset 0 0 30px rgba(110, 231, 255, 0.08);
    display: grid;
    gap: 16px;
    max-height: calc(88vh - 20px);
}

.appointment-page .role-picker-frame header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.appointment-page .role-picker-search {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.appointment-page .role-picker-search input {
    flex: 1 1 240px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 14, 22, 0.92);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-body);
    color-scheme: dark;
}

.appointment-page .role-picker-search input::placeholder {
    color: rgba(210, 224, 255, 0.55);
}

.appointment-page .role-picker-count {
    font-size: 12px;
    color: var(--muted);
}

.appointment-page .role-picker-body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
    gap: 16px;
    overflow: hidden;
}

.appointment-page .role-picker-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-content: start;
    overflow-y: auto;
    padding-right: 8px;
    max-height: 52vh;
}

.appointment-page .role-picker-item {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    background: rgba(15, 26, 38, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.appointment-page .role-picker-item:hover {
    transform: translateY(-2px);
    border-color: rgba(110, 231, 255, 0.5);
    box-shadow: 0 0 20px rgba(110, 231, 255, 0.15);
}

.appointment-page .role-picker-item.is-selected {
    border-color: rgba(255, 186, 73, 0.7);
    box-shadow: 0 0 24px rgba(255, 186, 73, 0.2);
    background: rgba(34, 24, 12, 0.85);
}

.appointment-page .role-picker-item .role-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.appointment-page .role-picker-item .role-info {
    display: grid;
    gap: 4px;
}

.appointment-page .role-picker-item .role-info small {
    font-size: 11px;
    color: var(--muted);
}

.appointment-page .role-picker-item .role-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
}

.appointment-page .role-picker-selected {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    background: rgba(10, 16, 24, 0.7);
    display: grid;
    gap: 12px;
}

.appointment-page .role-picker-selected-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appointment-page .role-picker-selected-list {
    display: grid;
    gap: 8px;
    max-height: 28vh;
    overflow-y: auto;
}

.appointment-page .role-picker-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 26, 38, 0.85);
}

.appointment-page .role-picker-chip button {
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.appointment-page .role-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@keyframes appointment-modal-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 820px) {
    .appointment-page .role-picker-body {
        grid-template-columns: 1fr;
    }
    .appointment-page .role-picker-list {
        max-height: 36vh;
    }
}

.appointment-page .appointment-list {
    display: grid;
    gap: 12px;
    min-height: 120px;
}

.appointment-page .appointment-item {
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 18, 0.9);
    display: grid;
    gap: 8px;
}

.appointment-page .appointment-item h4 {
    margin: 0;
}

.appointment-page .appointment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

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

.appointment-page .appointment-detail {
    margin-top: 20px;
}

.appointment-page .appointment-detail-card {
    border-radius: 24px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 22, 0.95);
    display: grid;
    gap: 18px;
}

.appointment-page .appointment-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.appointment-page .appointment-status {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 255, 0.4);
    background: rgba(110, 231, 255, 0.12);
    font-size: 12px;
}

.appointment-page .appointment-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.appointment-page .appointment-response-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.appointment-page .appointment-response-buttons button {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(12, 16, 24, 0.9);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.appointment-page .appointment-response-buttons button.is-active {
    border-color: rgba(110, 231, 255, 0.8);
    box-shadow: 0 0 18px rgba(110, 231, 255, 0.25);
}

.appointment-page .appointment-detail-card {
    background: linear-gradient(150deg, rgba(12, 18, 28, 0.96), rgba(8, 12, 18, 0.92));
    border: 1px solid rgba(110, 231, 255, 0.2);
    box-shadow: 0 24px 60px rgba(5, 8, 12, 0.55);
}

.appointment-page .appointment-detail-head h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 30px);
}

.appointment-page .appointment-detail-info div {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.appointment-page .appointment-response-buttons button {
    border: 1px solid rgba(110, 231, 255, 0.3);
    background: rgba(18, 28, 42, 0.8);
    color: #e6f3ff;
}

.appointment-page .appointment-response-buttons button:hover {
    border-color: rgba(110, 231, 255, 0.6);
    box-shadow: 0 0 16px rgba(110, 231, 255, 0.18);
}

.appointment-page .appointment-response-buttons button.is-active {
    border-color: rgba(255, 186, 73, 0.7);
    box-shadow: 0 0 20px rgba(255, 186, 73, 0.25);
    background: rgba(36, 26, 12, 0.8);
}

.appointment-page .appointment-denied {
    margin-top: 20px;
    display: grid;
    place-items: center;
}

.appointment-page .appointment-denied-card {
    position: relative;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 14, 22, 0.96);
    overflow: hidden;
    max-width: 520px;
}

.appointment-page .appointment-denied[hidden] {
    display: none !important;
}

.appointment-page .appointment-denied-card h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 10px 0;
}

.appointment-page .appointment-denied-card p {
    color: rgba(220, 235, 255, 0.8);
}

.appointment-page .denied-glow {
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 95, 95, 0.4), transparent 60%);
    filter: blur(18px);
}

@media (max-width: 720px) {
    .leadership-page .leadership-hero,
    .appointment-page .appointment-hero {
        padding: 18px;
    }
    .appointment-page .appointment-dashboard {
        grid-template-columns: 1fr;
    }
}

/* Terminmodul Rebuild */
.appointment-page .main-content::before {
    content: '';
    position: absolute;
    inset: -35% -10% auto -10%;
    height: 520px;
    background: radial-gradient(circle at 20% 20%, rgba(90, 190, 255, 0.35), transparent 60%),
        radial-gradient(circle at 70% 10%, rgba(255, 175, 95, 0.32), transparent 55%),
        radial-gradient(circle at 40% 0%, rgba(255, 95, 160, 0.18), transparent 60%);
    filter: blur(16px);
    opacity: 0.95;
    pointer-events: none;
}

.appointment-page .appointment-core {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
}

.appointment-page.appointment-view .appointment-hero-x {
    border: 1px solid rgba(110, 231, 255, 0.2);
    box-shadow: 0 34px 90px rgba(5, 10, 16, 0.65);
}

.appointment-page.appointment-view .appointment-hero-x::before {
    content: '';
    position: absolute;
    inset: -40% 10% auto -20%;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 183, 77, 0.25), transparent 60%);
    animation: appointmentGlow 10s ease-in-out infinite;
    pointer-events: none;
}

.appointment-page.appointment-view .appointment-card {
    border: 1px solid rgba(255, 183, 77, 0.2);
}

.appointment-page.appointment-view .appointment-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 183, 77, 0.2), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

@keyframes appointmentGlow {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(18px);
        opacity: 0.9;
    }
}

.appointment-page .appointment-hero-x {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(12, 16, 24, 0.98), rgba(8, 12, 18, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(4, 8, 14, 0.6);
    position: relative;
    overflow: hidden;
}

.appointment-page .appointment-card--create,
.appointment-page .appointment-card--list,
.appointment-page .appointment-card--detail {
    align-self: start;
}

.appointment-page .appointment-hero-x::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(110, 231, 255, 0.12), transparent 35%);
    pointer-events: none;
}

.appointment-page .appointment-hero-x h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    margin: 8px 0 10px;
}

.appointment-page .appointment-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.appointment-page .appointment-hero-pills span {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 255, 0.35);
    background: rgba(110, 231, 255, 0.12);
    font-size: 12px;
    letter-spacing: 0.4px;
}

.appointment-page .appointment-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.appointment-page .hero-stat {
    border-radius: 16px;
    padding: 12px;
    background: rgba(10, 14, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 6px;
}

.appointment-page .hero-stat strong {
    font-family: var(--font-display);
    font-size: 22px;
    color: #6ee7ff;
}

.appointment-page .appointment-switch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.appointment-page .appointment-switch-hint {
    min-height: 20px;
    color: var(--muted);
    font-size: 12px;
    padding-left: 6px;
}

.appointment-page .appointment-server {
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 22, 0.9);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: grid;
    gap: 8px;
}

.appointment-page .appointment-server:hover {
    transform: translateY(-2px);
    border-color: rgba(110, 231, 255, 0.5);
    box-shadow: 0 18px 40px rgba(5, 10, 16, 0.5);
}

.appointment-page .appointment-server.is-active {
    border-color: rgba(255, 186, 73, 0.7);
    box-shadow: 0 0 28px rgba(255, 186, 73, 0.25);
}

.appointment-page .appointment-server-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.appointment-page .appointment-server-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.appointment-page .appointment-server-badge.is-live {
    color: #6ee7ff;
    border-color: rgba(110, 231, 255, 0.4);
    background: rgba(110, 231, 255, 0.12);
}

.appointment-page .appointment-server-badge.is-soon {
    color: #ffb74d;
    border-color: rgba(255, 183, 77, 0.5);
    background: rgba(255, 183, 77, 0.14);
}

.appointment-page .appointment-server-meta {
    color: var(--muted);
    font-size: 12px;
}

.appointment-page .appointment-stage {
    display: grid;
    gap: 18px;
}

.appointment-page .appointment-soon {
    border-radius: 26px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(12, 16, 24, 0.96), rgba(8, 10, 16, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.appointment-page .appointment-soon-orbit {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(255, 183, 77, 0.35);
    top: -120px;
    right: -120px;
    animation: appointmentOrbit 12s linear infinite;
}

.appointment-page .appointment-soon-core {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.appointment-page .appointment-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.appointment-page .appointment-soon-grid div {
    border-radius: 12px;
    padding: 10px;
    background: rgba(14, 18, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.appointment-page .appointment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.appointment-page .appointment-card {
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(12, 16, 24, 0.96), rgba(10, 12, 20, 0.92));
    box-shadow: 0 22px 60px rgba(5, 8, 12, 0.5);
    display: grid;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.appointment-page .appointment-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.appointment-page .appointment-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.appointment-page .appointment-card-tag {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(240, 245, 255, 0.9);
    background: rgba(110, 231, 255, 0.12);
    border: 1px solid rgba(110, 231, 255, 0.4);
}

.appointment-page .appointment-form {
    display: grid;
    gap: 12px;
}

.appointment-page .appointment-wizard-teaser {
    display: grid;
    gap: 10px;
    border-radius: 16px;
    padding: 16px;
    border: 1px dashed rgba(110, 231, 255, 0.35);
    background: rgba(10, 14, 22, 0.7);
}

.appointment-page .appointment-wizard {
    gap: 18px;
}

.appointment-page .appointment-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.appointment-page .appointment-step {
    border-radius: 999px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 16, 24, 0.7);
    color: rgba(240, 245, 255, 0.85);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.appointment-page .appointment-step.is-active {
    border-color: rgba(110, 231, 255, 0.7);
    background: rgba(110, 231, 255, 0.18);
    color: #c9f5ff;
}

.appointment-page .appointment-step-panel {
    display: none;
    gap: 12px;
}

.appointment-page .appointment-step-panel.is-active {
    display: grid;
}

.appointment-page .appointment-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.appointment-page .appointment-readonly {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 22, 0.75);
    display: grid;
    gap: 8px;
    color: rgba(240, 245, 255, 0.85);
}

.appointment-page .appointment-form label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.appointment-page .appointment-form input,
.appointment-page .appointment-form textarea,
.appointment-page .appointment-form select {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 18, 0.85);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-body);
    color-scheme: dark;
}

.appointment-page .appointment-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.appointment-page .appointment-form-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.appointment-page .appointment-reminder {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(110, 231, 255, 0.22);
    background: rgba(10, 14, 22, 0.7);
}

.appointment-page .appointment-reminder-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.appointment-page .appointment-reminder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.appointment-page .appointment-recurring {
    display: grid;
    gap: 6px;
}

.appointment-page .appointment-role-block {
    display: grid;
    gap: 10px;
}

.appointment-page .appointment-role-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.appointment-page .appointment-role-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.appointment-page .appointment-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 150px;
    overflow: auto;
    padding-right: 4px;
}

.appointment-page .appointment-role-item input {
    display: none;
}

.appointment-page .role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 14, 22, 0.7);
    color: rgba(240, 245, 255, 0.9);
    font-size: 12px;
    transition: all 0.2s ease;
}

.appointment-page .role-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--role-color, #6ee7ff);
    box-shadow: 0 0 8px rgba(110, 231, 255, 0.6);
}

.appointment-page .appointment-role-item input:checked + .role-chip {
    border-color: var(--role-color, #6ee7ff);
    box-shadow: 0 0 14px rgba(110, 231, 255, 0.35);
}

.appointment-page .appointment-list {
    display: grid;
    gap: 12px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.appointment-page .appointment-empty {
    color: var(--muted);
    padding: 10px;
}

.appointment-page .appointment-item {
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 22, 0.82);
    display: grid;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.appointment-page .appointment-item.is-cancelled {
    border-color: rgba(255, 95, 95, 0.4);
    opacity: 0.75;
}

.appointment-page .appointment-item:hover {
    transform: translateY(-1px);
    border-color: rgba(110, 231, 255, 0.4);
}

.appointment-page .appointment-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.appointment-page .appointment-item-date {
    font-size: 12px;
    color: var(--muted);
}

.appointment-page .appointment-item-info {
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}

.appointment-page .appointment-item-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.appointment-page .appointment-open {
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 255, 0.4);
    background: rgba(110, 231, 255, 0.12);
    color: #c9f5ff;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appointment-page .appointment-open:hover {
    background: rgba(110, 231, 255, 0.22);
}

.appointment-page .appointment-open.small {
    padding: 4px 10px;
}

.appointment-page .appointment-detail-empty {
    border-radius: 16px;
    padding: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(8, 12, 18, 0.7);
    color: var(--muted);
}

.appointment-page .appointment-detail-live {
    display: grid;
    gap: 12px;
}

.appointment-page .appointment-detail-head h4 {
    margin: 0 0 6px;
}

.appointment-page .appointment-detail-info {
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}

.appointment-page .appointment-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.appointment-page .appointment-response-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.appointment-page .appointment-response-buttons button {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 16, 24, 0.7);
    color: var(--text);
    padding: 6px 14px;
    cursor: pointer;
}

.appointment-page .appointment-response-buttons button.is-active {
    border-color: rgba(255, 183, 77, 0.8);
    background: rgba(255, 183, 77, 0.18);
    color: #ffe2b0;
}

.appointment-page .appointment-response-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.appointment-page .appointment-response-form textarea {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 18, 0.85);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-body);
    color-scheme: dark;
}

.appointment-page .appointment-alert {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 95, 95, 0.4);
    background: rgba(255, 95, 95, 0.12);
    color: #ffb2b2;
    font-size: 12px;
}

.appointment-page .primary-button {
    background: linear-gradient(135deg, rgba(110, 231, 255, 0.95), rgba(255, 183, 77, 0.95));
    border: 1px solid rgba(110, 231, 255, 0.7);
    color: #13202c;
    font-weight: 700;
}

.appointment-page .ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(240, 245, 255, 0.9);
}

.appointment-page .role-picker,
.appointment-page .archive-picker,
.appointment-page .action-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.appointment-page .role-picker {
    z-index: 2200;
}

.appointment-page .role-picker-backdrop,
.appointment-page .archive-picker-backdrop,
.appointment-page .action-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 10, 0.75);
    backdrop-filter: blur(6px);
}

.appointment-page .role-picker-window,
.appointment-page .archive-picker-window,
.appointment-page .action-modal-window {
    position: relative;
    margin: 6vh auto;
    max-width: 980px;
    width: min(95%, 980px);
}

.appointment-page .role-picker-frame,
.appointment-page .archive-picker-frame,
.appointment-page .action-modal-frame {
    padding: 20px 22px 22px;
    margin: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 199, 109, 0.18);
    background: rgba(10, 16, 24, 0.9);
    display: grid;
    gap: 14px;
}

.appointment-page .action-modal label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.appointment-page .action-modal input,
.appointment-page .action-modal textarea {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 18, 0.9);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-body);
    color-scheme: dark;
}

.appointment-page .action-modal textarea::placeholder,
.appointment-page .action-modal input::placeholder {
    color: rgba(210, 224, 255, 0.55);
}

.appointment-page .role-picker-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
}

.appointment-page .role-picker-search input {
    flex: 1 1 240px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 14, 22, 0.92);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-body);
    color-scheme: dark;
}

.appointment-page .role-picker-search input::placeholder {
    color: rgba(210, 224, 255, 0.55);
}

.appointment-page .role-picker-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
}

.appointment-page .role-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 18, 0.8);
    color: var(--text);
    text-align: left;
}

.appointment-page .role-picker-item .role-info small {
    color: var(--muted);
}

.appointment-page .role-badge {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(240, 245, 255, 0.85);
}

.appointment-page .role-picker-item.is-selected {
    border-color: rgba(110, 231, 255, 0.6);
    box-shadow: 0 0 16px rgba(110, 231, 255, 0.25);
}

.appointment-page .role-picker-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 16, 24, 0.8);
    font-size: 12px;
}

.appointment-page .archive-picker-list {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow: auto;
}

.appointment-page .archive-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 16, 24, 0.85);
}

.appointment-page ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.appointment-page ::-webkit-scrollbar-track {
    background: rgba(8, 12, 18, 0.6);
    border-radius: 999px;
}

.appointment-page ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(110, 231, 255, 0.4), rgba(255, 183, 77, 0.5));
    border-radius: 999px;
}

.appointment-page * {
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 231, 255, 0.4) rgba(8, 12, 18, 0.6);
}

@keyframes appointmentOrbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .appointment-page .role-picker-body {
        grid-template-columns: 1fr;
    }
}

/* Appointment Module V2 - Leadership Branding */
.appointment-page {
    --lead-gold: #f4c76a;
    --lead-cyan: #66d9ff;
    --lead-ember: #ff8b4d;
    --lead-ink: #0a0f16;
    --lead-panel: rgba(11, 16, 26, 0.92);
    --lead-border: rgba(255, 255, 255, 0.08);
    --lead-text: #e9eef9;
    --lead-muted: rgba(205, 220, 245, 0.65);
}

.appointment-page .main-content,
.appointment-page.appointment-view .main-content {
    background: linear-gradient(180deg, rgba(6, 9, 14, 0.96), rgba(6, 9, 14, 0.9));
}

.appointment-page .appointment-core {
    padding-bottom: 80px;
}

/* Appointment Single View (termin.php) */
.appointment-page.appointment-view .appointment-hero-x {
    border: 1px solid rgba(102, 217, 255, 0.25);
    background: linear-gradient(145deg, rgba(14, 20, 32, 0.98), rgba(8, 12, 20, 0.92));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.appointment-page.appointment-view .appointment-hero-x::after {
    opacity: 0.95;
}

.appointment-page.appointment-view .appointment-hero-x::before {
    opacity: 0.45;
}

.appointment-page.appointment-view .appointment-hero-x::before,
.appointment-page.appointment-view .appointment-hero-x::after {
    background: none;
    opacity: 0;
}

.appointment-page.appointment-view .appointment-hero-text .eyebrow {
    color: rgba(102, 217, 255, 0.85);
    letter-spacing: 1px;
}

.appointment-page.appointment-view .appointment-hero-stats {
    gap: 14px;
}

.appointment-page.appointment-view .hero-stat {
    background: rgba(9, 14, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.appointment-page.appointment-view .appointment-card {
    margin-top: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(12, 18, 28, 0.96), rgba(8, 12, 20, 0.92));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.appointment-page.appointment-view .appointment-card::before {
    opacity: 0.12;
}

.appointment-page.appointment-view .appointment-card::before {
    background: none;
    opacity: 0;
}

.appointment-page.appointment-view .appointment-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.appointment-page.appointment-view .appointment-card--response .appointment-card-head {
    align-items: flex-start;
}

.appointment-page.appointment-view .appointment-card--response .card-head-main {
    display: grid;
    gap: 6px;
}

.appointment-page.appointment-view .appointment-card--response .card-head-main small {
    color: var(--lead-muted);
    font-size: 12px;
}

.appointment-page.appointment-view .appointment-card-head h3 {
    color: var(--lead-text);
}

.appointment-page.appointment-view .appointment-card-tag {
    border-color: rgba(244, 199, 106, 0.55);
    background: rgba(244, 199, 106, 0.12);
    color: #ffe7b8;
}

.appointment-page.appointment-view .appointment-detail-head h4 {
    color: var(--lead-text);
}

.appointment-page.appointment-view .appointment-detail-info {
    display: grid;
    gap: 6px;
    color: var(--lead-muted);
}

.appointment-page.appointment-view .appointment-response-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.appointment-page.appointment-view .appointment-response-buttons button {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 18, 0.9);
    color: var(--lead-text);
    font-weight: 600;
    padding: 12px 18px;
    min-height: 44px;
    transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
    text-transform: none;
    letter-spacing: 0.2px;
}

.appointment-page.appointment-view .appointment-response-buttons button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(102, 217, 255, 0.08), rgba(244, 199, 106, 0.08));
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.appointment-page.appointment-view .appointment-response-buttons button {
    position: relative;
    overflow: hidden;
}

.appointment-page.appointment-view .appointment-response-buttons button:hover::after {
    opacity: 1;
}

.appointment-page.appointment-view .appointment-response-buttons button:hover {
    transform: translateY(-1px);
    border-color: rgba(102, 217, 255, 0.45);
    box-shadow: 0 0 18px rgba(102, 217, 255, 0.2);
}

.appointment-page.appointment-view .appointment-response-buttons button.is-active {
    border-color: rgba(244, 199, 106, 0.7);
    background: rgba(244, 199, 106, 0.18);
    color: #ffe7b8;
}

.appointment-page.appointment-view .appointment-response-form textarea {
    border-radius: 14px;
    background: rgba(7, 10, 16, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.appointment-page.appointment-view .primary-button {
    width: 100%;
    font-size: 15px;
    padding: 12px 18px;
    border-radius: 14px;
    margin-top: 6px;
}

.appointment-page.appointment-view .primary-button {
    background: linear-gradient(135deg, rgba(90, 206, 255, 0.88), rgba(146, 217, 255, 0.75));
    border-color: rgba(90, 206, 255, 0.6);
    color: #071019;
    box-shadow: 0 12px 24px rgba(90, 206, 255, 0.2);
}

.appointment-page.appointment-view .ghost-button.danger {
    width: 100%;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 120, 120, 0.55);
    background: rgba(28, 8, 10, 0.7);
    color: #ffc5c5;
}

.appointment-page.appointment-view .ghost-button.danger:hover {
    border-color: rgba(255, 120, 120, 0.8);
    box-shadow: 0 0 18px rgba(255, 120, 120, 0.2);
}

.appointment-page.appointment-view .appointment-denied-card {
    margin-top: 24px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.appointment-page .appointment-response-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.appointment-page .response-column {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 18, 0.8);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.appointment-page .response-column.is-accepted {
    border-color: rgba(102, 217, 255, 0.35);
    box-shadow: 0 0 18px rgba(102, 217, 255, 0.15);
}

.appointment-page .response-column.is-maybe {
    border-color: rgba(244, 199, 106, 0.4);
    box-shadow: 0 0 18px rgba(244, 199, 106, 0.15);
}

.appointment-page .response-column.is-declined {
    border-color: rgba(255, 120, 120, 0.35);
    box-shadow: 0 0 18px rgba(255, 120, 120, 0.15);
}

.appointment-page .response-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--lead-muted);
}

.appointment-page .response-head strong {
    color: var(--lead-text);
    font-size: 16px;
}

.appointment-page .response-list {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.appointment-page .response-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 16, 24, 0.75);
}

.appointment-page .response-item img,
.appointment-page .response-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(102, 217, 255, 0.15);
    display: grid;
    place-items: center;
    color: #dff4ff;
    font-weight: 700;
}

.appointment-page .response-item strong {
    color: var(--lead-text);
    font-size: 14px;
}

.appointment-page .response-note {
    font-size: 12px;
    color: var(--lead-muted);
    margin-top: 2px;
}

.appointment-page .appointment-hero-x {
    position: relative;
    border-radius: 26px;
    padding: 28px 30px;
    background: linear-gradient(140deg, rgba(12, 18, 28, 0.96), rgba(8, 12, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.appointment-page .appointment-hero-x::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(102, 217, 255, 0.18), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(244, 199, 106, 0.16), transparent 50%);
    opacity: 0.8;
    pointer-events: none;
}

.appointment-page .appointment-hero-text h2 {
    color: var(--lead-text);
    letter-spacing: 0.3px;
}

.appointment-page .appointment-hero-text p {
    color: var(--lead-muted);
}

.appointment-page .appointment-hero-pills span {
    border: 1px solid rgba(102, 217, 255, 0.25);
    background: rgba(9, 14, 22, 0.7);
    color: #d6f6ff;
}

.appointment-page .hero-stat {
    background: rgba(8, 12, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 12px rgba(102, 217, 255, 0.12);
}

.appointment-page .hero-stat strong {
    color: var(--lead-gold);
    text-shadow: 0 0 12px rgba(244, 199, 106, 0.35);
}

.appointment-page .appointment-server {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(140deg, rgba(10, 16, 24, 0.95), rgba(12, 18, 28, 0.9));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.appointment-page .appointment-server:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 217, 255, 0.5);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

.appointment-page .appointment-server.is-active {
    border-color: rgba(244, 199, 106, 0.7);
    box-shadow: 0 0 30px rgba(244, 199, 106, 0.25);
}

.appointment-page .appointment-card,
.appointment-page .appointment-card--create,
.appointment-page .appointment-card--list {
    background: linear-gradient(165deg, rgba(12, 18, 28, 0.96), rgba(9, 13, 22, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.appointment-page .appointment-card-head h3 {
    color: var(--lead-text);
}

.appointment-page .appointment-card-tag {
    border: 1px solid rgba(102, 217, 255, 0.35);
    background: rgba(8, 14, 22, 0.75);
    color: #bfefff;
}

.appointment-page .appointment-wizard-teaser p,
.appointment-page .appointment-readonly p {
    color: var(--lead-muted);
}

.appointment-page .appointment-list {
    display: grid;
    gap: 14px;
}

.appointment-page .appointment-pagination {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.appointment-page .appointment-page-info {
    font-size: 12px;
    color: var(--lead-muted);
}

.appointment-page .appointment-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 16, 24, 0.85);
    box-shadow: inset 0 0 18px rgba(102, 217, 255, 0.08);
    transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.appointment-page .appointment-item:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 217, 255, 0.45);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.appointment-page .appointment-open {
    border-radius: 999px;
    border: 1px solid rgba(244, 199, 106, 0.6);
    background: linear-gradient(135deg, rgba(244, 199, 106, 0.95), rgba(255, 139, 77, 0.9));
    color: #111522;
    font-weight: 700;
    padding: 8px 16px;
    box-shadow: 0 10px 20px rgba(244, 199, 106, 0.25);
}

.appointment-page .appointment-open:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.appointment-page .primary-button {
    border-radius: 999px;
    border: 1px solid rgba(102, 217, 255, 0.6);
    background: linear-gradient(135deg, rgba(102, 217, 255, 0.95), rgba(244, 199, 106, 0.9));
    color: #0f1420;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(102, 217, 255, 0.2);
}

.appointment-page .primary-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.appointment-page .ghost-button {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 14, 22, 0.6);
    color: var(--lead-text);
}

.appointment-page .appointment-step {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 20, 0.7);
    color: var(--lead-muted);
}

.appointment-page .appointment-step.is-active {
    border-color: rgba(244, 199, 106, 0.6);
    color: #ffe7b8;
    box-shadow: 0 0 18px rgba(244, 199, 106, 0.25);
}

.appointment-page .appointment-form input,
.appointment-page .appointment-form textarea,
.appointment-page .appointment-form select,
.appointment-page .action-modal input,
.appointment-page .action-modal textarea {
    background: rgba(7, 10, 16, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--lead-text);
}

.appointment-page .appointment-form input:focus,
.appointment-page .appointment-form textarea:focus,
.appointment-page .appointment-form select:focus,
.appointment-page .action-modal input:focus,
.appointment-page .action-modal textarea:focus {
    outline: none;
    border-color: rgba(102, 217, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(102, 217, 255, 0.15);
}

.appointment-page .appointment-denied-card {
    border: 1px solid rgba(255, 120, 120, 0.4);
    background: linear-gradient(150deg, rgba(22, 10, 12, 0.98), rgba(18, 8, 10, 0.9));
    color: #ffd7d7;
}

.appointment-page .appointment-denied-card h3 {
    color: #ffecec;
}

.appointment-page .appointment-card--create {
    position: relative;
    overflow: hidden;
}

.appointment-page .appointment-card--create::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 180deg, rgba(102, 217, 255, 0.1), rgba(244, 199, 106, 0.12), rgba(102, 217, 255, 0.1));
    animation: appointmentPulse 10s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

.appointment-page .appointment-card--create > * {
    position: relative;
    z-index: 1;
}

@keyframes appointmentPulse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Leitstellen Shared Motion */
.leitstelle-hub-page .leitstelle-hero-x,
.leitstelle-hub-page .panel,
.leitstelle-hub-page .leitstelle-module-card {
    animation: leitstelleSoftIn 0.36s ease both;
}

.leitstelle-hub-page .leitstelle-module-card:nth-child(2) { animation-delay: 0.05s; }
.leitstelle-hub-page .leitstelle-module-card:nth-child(3) { animation-delay: 0.1s; }
.leitstelle-hub-page .leitstelle-module-card:nth-child(4) { animation-delay: 0.15s; }
.leitstelle-hub-page .leitstelle-module-card:nth-child(5) { animation-delay: 0.2s; }

.leitstelle-hub-page .leitstelle-person-card {
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.leitstelle-hub-page .leitstelle-person-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
}

@keyframes leitstelleSoftIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .leitstelle-hub-page .leitstelle-hero-x,
    .leitstelle-hub-page .panel,
    .leitstelle-hub-page .leitstelle-module-card {
        animation: none !important;
    }
}

/* Dashboard Extras */
.dashboard-quantum .deck-grid {
    gap: 18px;
}

.dashboard-quantum .deck-panel {
    min-height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-quantum .deck-panel--rotator {
    grid-column: span 6;
}

.dashboard-quantum .deck-panel--birthdays {
    grid-column: span 6;
}

.dashboard-quantum .deck-panel--pulse,
.dashboard-quantum .deck-panel--changelog {
    grid-column: span 6;
}

.dashboard-quantum .deck-panel header h3,
.dashboard-quantum .deck-panel .deck-panel-header h3 {
    letter-spacing: 0.2px;
}

.dashboard-quantum .deck-rotator {
    min-height: clamp(500px, 66vh, 760px);
}

.deck-panel--pulse .panel-body {
    display: grid;
    gap: 14px;
}

.daily-quote {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(140deg, rgba(255, 176, 79, 0.14), rgba(97, 201, 255, 0.12));
}

.daily-quote p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.daily-quote cite {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

.new-members {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
}

.new-members-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.new-members-list {
    display: grid;
    gap: 8px;
}

.new-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.new-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 142, 96, 0.32), rgba(94, 197, 255, 0.3));
    background-size: cover;
    background-position: center;
}

.new-member-meta {
    display: grid;
    gap: 2px;
}

.new-member-meta strong {
    line-height: 1.2;
}

.birthday-hero {
    transition: transform 0.2s ease;
}

.birthday-hero:hover {
    transform: translateY(-1px);
}

.deck-panel--changelog .changelog-entry {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border-radius: 14px;
    padding: 12px;
    overflow: hidden;
}

.deck-panel--changelog .changelog-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(255, 166, 82, 0.95), rgba(98, 206, 255, 0.95));
}

.deck-panel--changelog .changelog-title-wrap {
    padding-left: 10px;
}

.deck-panel--changelog .changelog-body {
    margin-top: 8px;
    padding-left: 10px;
}

/* Birthday Special Day */
.birthday-hero.is-today {
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(255, 205, 99, 0.55);
    background: linear-gradient(150deg, rgba(255, 163, 83, 0.16), rgba(90, 200, 255, 0.12));
    overflow: hidden;
}

.birthday-hero.is-today::before {
    content: '';
    position: absolute;
    inset: -20% -10%;
    background: radial-gradient(circle, rgba(255, 238, 168, 0.32), rgba(255, 238, 168, 0));
    animation: birthdaySpark 2.2s ease-in-out infinite;
    pointer-events: none;
}

.birthday-hero.is-today .birthday-chip {
    background: rgba(255, 187, 66, 0.28);
    border-color: rgba(255, 209, 126, 0.7);
    color: #ffe7ba;
}

@keyframes birthdaySpark {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-6px);
        opacity: 0.75;
    }
}

/* Team: Dashboard Highlights */
.dashboard-highlight-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

#dashboard-highlight-upload-form input[type="file"] {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 14, 22, 0.86);
    color: var(--text);
    padding: 8px 10px;
    color-scheme: dark;
}

#dashboard-highlight-upload-form input[type="file"]::file-selector-button {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(215, 38, 56, 0.92), rgba(255, 122, 24, 0.9)) !important;
    color: #0f141f !important;
    font-weight: 700 !important;
    padding: 7px 12px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
}

#dashboard-highlight-upload-form input[type="file"]::-webkit-file-upload-button {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(215, 38, 56, 0.92), rgba(255, 122, 24, 0.9)) !important;
    color: #0f141f !important;
    font-weight: 700 !important;
    padding: 7px 12px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
}

#dashboard-highlight-upload-form input[type="file"]::-ms-browse {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(215, 38, 56, 0.92), rgba(255, 122, 24, 0.9)) !important;
    color: #0f141f !important;
    font-weight: 700 !important;
    padding: 7px 12px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
}

.dashboard-highlight-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
}

.dashboard-highlight-row.dragging {
    opacity: 0.6;
}

.dashboard-highlight-thumb {
    border-radius: 10px;
    min-height: 84px;
    background: rgba(0, 0, 0, 0.32);
    background-size: cover;
    background-position: center;
}

.dashboard-highlight-fields {
    display: grid;
    gap: 8px;
}

.dashboard-highlight-fields input,
.dashboard-highlight-fields textarea {
    width: 100%;
}

.dashboard-highlight-actions {
    display: grid;
    gap: 8px;
    align-content: start;
}

/* Team: Feedback Admin */
.feedback-admin-list {
    display: grid;
    gap: 10px;
}

.feedback-admin-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
}

.feedback-admin-card.status-new {
    border-color: rgba(255, 187, 74, 0.55);
}

.feedback-admin-card.status-resolved {
    border-color: rgba(86, 214, 136, 0.5);
}

.feedback-admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.feedback-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

/* Global Feedback Button */
.feedback-fab {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1300;
    border-radius: 999px;
    border: 1px solid rgba(98, 206, 255, 0.6);
    background: linear-gradient(135deg, rgba(255, 138, 82, 0.95), rgba(98, 206, 255, 0.9));
    color: #0f1422;
    font-weight: 700;
    padding: 9px 14px;
    box-shadow: 0 14px 30px rgba(8, 16, 30, 0.45);
    animation: feedbackFabFloat 2.2s ease-in-out infinite;
}

.feedback-fab:hover {
    transform: translateY(-2px);
}

.feedback-modal-window {
    max-width: 560px;
}

@keyframes feedbackFabFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 900px) {
    .dashboard-quantum .deck-panel--rotator,
    .dashboard-quantum .deck-panel--birthdays,
    .dashboard-quantum .deck-panel--pulse,
    .dashboard-quantum .deck-panel--changelog {
        grid-column: span 12;
    }

    .dashboard-quantum .deck-rotator {
        min-height: 360px;
    }

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

/* Dashboard Rework */
.dashboard-rework-page .dashboard-quantum {
    gap: 18px;
}

.deck-hero--rework {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.dashboard-rework-signals .signal-card {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 32px rgba(6, 10, 16, 0.35);
}

.dashboard-rework-grid .deck-panel--rotator {
    grid-column: span 8;
}

.dashboard-rework-grid .deck-panel--birthdays {
    grid-column: span 4;
}

.dashboard-rework-grid .deck-panel--pulse {
    grid-column: span 6;
}

.dashboard-rework-grid .deck-panel--roadmap {
    grid-column: span 6;
}

.deck-panel--roadmap .panel-body.dashboard-roadmap {
    display: grid;
    gap: 14px;
}

.dashboard-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-roadmap-grid article {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    padding: 10px 12px;
    display: grid;
    gap: 6px;
}

.dashboard-roadmap-grid article p {
    margin: 0;
    color: #c5cedd;
    font-size: 13px;
    line-height: 1.45;
}

/* Leitstelle Pruefung Rework */
.leitstelle-pruefung-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
    gap: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(130% 150% at 0% 0%, rgba(255, 158, 98, 0.22), rgba(255, 158, 98, 0) 46%),
        radial-gradient(130% 130% at 100% 100%, rgba(92, 203, 255, 0.2), rgba(92, 203, 255, 0) 56%),
        linear-gradient(155deg, rgba(10, 15, 24, 0.95), rgba(8, 12, 20, 0.94));
}

.leitstelle-pruefung-hero-copy {
    display: grid;
    gap: 10px;
}

.leitstelle-pruefung-hero-copy p {
    margin: 0;
    color: #d2dbea;
}

.leitstelle-pruefung-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leitstelle-pruefung-hero-tags span {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 10px;
    font-size: 12px;
}

.leitstelle-pruefung-hero-side {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.leitstelle-pruefung-hero-side p {
    margin: 0;
    color: #c8d2e1;
}

.leitstelle-pruefung-shell {
    padding: 12px;
}

.leitstelle-pruefung-shell .panel header h3 {
    color: #eef4ff;
}

.leitstelle-pruefung-shell .panel header .muted {
    color: #b6c5da;
}

.leitstelle-pruefung-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
    align-items: start;
}

.leitstelle-pruefung-left {
    display: grid;
    gap: 12px;
}

.leitstelle-exam-list-panel--rework,
.leitstelle-exam-detail-panel--rework {
    border-color: rgba(128, 213, 255, 0.28);
    box-shadow: 0 18px 34px rgba(6, 11, 18, 0.42);
}

.leitstelle-exam-list-panel--rework header,
.leitstelle-exam-detail-panel--rework header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 6px;
}

.leitstelle-hub-page .leitstelle-exam-ticket {
    color: var(--text);
}

.leitstelle-hub-page .leitstelle-exam-ticket strong,
.leitstelle-hub-page .leitstelle-exam-ticket span,
.leitstelle-hub-page .leitstelle-exam-ticket-subject {
    color: inherit;
}

.leitstelle-hub-page .leitstelle-exam-ticket-meta span {
    color: #c5d0e0;
}

.leitstelle-hub-page #leitstelle-exam-list .muted,
.leitstelle-hub-page #leitstelle-exam-statusbar .muted {
    color: #aebcd2;
}

.leitstelle-exam-detail-panel--rework .leitstelle-exam-messages {
    max-height: 360px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 10, 16, 0.55);
    padding: 10px;
}

.leitstelle-exam-detail-panel--rework .leitstelle-message-card {
    color: #e8edf8;
}

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

    .dashboard-rework-grid .deck-panel--rotator,
    .dashboard-rework-grid .deck-panel--birthdays,
    .dashboard-rework-grid .deck-panel--pulse,
    .dashboard-rework-grid .deck-panel--roadmap {
        grid-column: span 12;
    }

    .leitstelle-pruefung-hero {
        grid-template-columns: 1fr;
    }

    .leitstelle-pruefung-layout {
        grid-template-columns: 1fr;
    }
}

/* Leitstelle: Alarm- und Ausrueckeordnung */
.aao-page .request-hero {
    align-items: stretch;
}

.aao-hero-stats {
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
    min-width: min(420px, 100%);
}

.aao-hero-stats article {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(11, 16, 26, 0.85), rgba(8, 11, 18, 0.85));
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

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

.aao-hero-stats strong {
    font-size: 20px;
    letter-spacing: 0.4px;
}

.aao-info-panel .panel-body {
    display: grid;
    gap: 12px;
}

.aao-updated-label {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 3px 10px;
    color: #d8deea;
    background: rgba(255, 255, 255, 0.04);
}

.aao-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aao-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.aao-search {
    display: grid;
    gap: 6px;
    min-width: min(420px, 100%);
}

.aao-search span,
.aao-check span {
    font-size: 12px;
    color: var(--muted);
}

.aao-search input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 12, 20, 0.9);
    color: var(--text);
    padding: 10px 12px;
}

.aao-search input:focus {
    outline: none;
    border-color: rgba(255, 122, 24, 0.6);
    box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.16);
}

.aao-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.aao-check input {
    accent-color: #ff7a18;
}

.aao-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.aao-filter-bar .ghost-button.small.is-active {
    border-color: rgba(255, 122, 24, 0.55);
    background: rgba(255, 122, 24, 0.18);
    color: #ffe1c8;
}

.aao-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 11, 17, 0.8);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 24, 0.55) rgba(255, 255, 255, 0.08);
}

.aao-table-wrap::-webkit-scrollbar {
    height: 10px;
}

.aao-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.aao-table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(255, 122, 24, 0.8), rgba(215, 38, 56, 0.75));
    border-radius: 999px;
}

.aao-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.aao-table th,
.aao-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 10px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.35;
}

.aao-table th:last-child,
.aao-table td:last-child {
    border-right: 0;
}

.aao-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(160deg, rgba(18, 23, 34, 0.97), rgba(14, 17, 24, 0.97));
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cfd5e1;
}

.aao-table .aao-group-row th {
    position: sticky;
    top: 41px;
    z-index: 1;
    background: linear-gradient(90deg, rgba(34, 41, 56, 0.96), rgba(22, 26, 36, 0.96));
    color: #edf2ff;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
}

.aao-row:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.015);
}

.aao-row:hover td {
    background: rgba(255, 122, 24, 0.08);
}

.aao-code {
    font-weight: 700;
    white-space: nowrap;
}

.aao-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.aao-chip {
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #d6dce8;
    white-space: nowrap;
}

.aao-chip.tone-fire {
    border-color: rgba(132, 226, 104, 0.45);
    background: rgba(132, 226, 104, 0.17);
    color: #daf6cf;
}

.aao-chip.tone-tech {
    border-color: rgba(125, 174, 255, 0.48);
    background: rgba(125, 174, 255, 0.17);
    color: #dbe9ff;
}

.aao-chip.tone-med {
    border-color: rgba(255, 128, 128, 0.55);
    background: rgba(255, 128, 128, 0.16);
    color: #ffdada;
}

.aao-chip.tone-special {
    border-color: rgba(245, 211, 80, 0.6);
    background: rgba(245, 211, 80, 0.17);
    color: #fff2ba;
}

.aao-chip.tone-neutral {
    border-color: rgba(205, 213, 224, 0.4);
    background: rgba(205, 213, 224, 0.14);
    color: #e5eaf2;
}

.aao-notes {
    display: grid;
    gap: 10px;
}

.aao-notes article {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 20, 0.74);
    padding: 11px 13px;
    font-size: 13px;
}

.aao-admin-launch {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

body.aao-overlay-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .aao-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
    }

    .aao-toolbar {
        align-items: stretch;
    }

    .aao-search {
        min-width: 0;
        width: 100%;
    }

    .aao-table {
        min-width: 980px;
    }
}

.aao-admin-panel .panel-body {
    display: grid;
    gap: 14px;
}

.aao-admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: grid;
    place-items: center;
    padding: 14px;
}

.aao-admin-overlay[hidden] {
    display: none;
}

.aao-admin-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 16, 0.8);
    backdrop-filter: blur(5px);
}

.aao-admin-panel-floating {
    position: relative;
    z-index: 1;
    width: min(1400px, 96vw);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 24, 0.55) rgba(255, 255, 255, 0.08);
}

.aao-admin-panel-floating > header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(160deg, rgba(14, 18, 28, 0.98), rgba(10, 13, 20, 0.98));
    padding-bottom: 10px;
}

.aao-admin-panel-floating::-webkit-scrollbar {
    width: 9px;
}

.aao-admin-panel-floating::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.aao-admin-panel-floating::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 122, 24, 0.8), rgba(215, 38, 56, 0.75));
    border-radius: 999px;
}

.aao-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

#aao-admin-status.is-error {
    color: #ff9b9b;
}

.aao-admin-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.aao-admin-meta label,
.aao-section-form label {
    display: grid;
    gap: 6px;
}

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

.aao-admin-meta input,
.aao-admin-meta textarea,
.aao-section-form input,
.aao-row-form input {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 20, 0.9);
    color: var(--text);
    padding: 8px 10px;
}

.aao-section-form {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
}

.aao-admin-sections {
    display: grid;
    gap: 12px;
}

.aao-admin-section-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 13, 20, 0.85);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.aao-admin-section-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.aao-admin-section-card h4 {
    margin: 0;
    font-size: 16px;
}

.aao-admin-section-card h4 small {
    color: var(--muted);
    font-size: 12px;
}

.aao-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.aao-admin-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 24, 0.55) rgba(255, 255, 255, 0.08);
}

.aao-admin-table-wrap::-webkit-scrollbar {
    height: 10px;
}

.aao-admin-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.aao-admin-table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(255, 122, 24, 0.8), rgba(215, 38, 56, 0.75));
    border-radius: 999px;
}

.aao-admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.aao-admin-table th,
.aao-admin-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 9px;
    text-align: left;
    vertical-align: top;
    font-size: 12px;
}

.aao-admin-table th:last-child,
.aao-admin-table td:last-child {
    border-right: 0;
}

.aao-row-form {
    display: grid;
    gap: 8px;
    grid-template-columns: 1.2fr 2fr 2fr 2fr 2fr auto;
    align-items: end;
}

.aao-modal {
    position: fixed;
    inset: 0;
    z-index: 1230;
    display: grid;
    place-items: center;
}

.aao-modal[hidden] {
    display: none;
}

.aao-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 15, 0.76);
    backdrop-filter: blur(4px);
}

.aao-modal-card {
    position: relative;
    z-index: 1;
    width: min(760px, 95vw);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(11, 15, 24, 0.98), rgba(8, 11, 18, 0.97));
    padding: 14px;
    display: grid;
    gap: 12px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.58);
}

.aao-modal-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.aao-modal-card h4 {
    margin: 0;
}

.aao-modal-form {
    display: grid;
    gap: 10px;
}

.aao-modal-form label {
    display: grid;
    gap: 6px;
}

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

.aao-modal-form input,
.aao-modal-form textarea {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 13, 20, 0.94);
    color: var(--text);
    padding: 9px 10px;
}

.aao-modal-form textarea {
    resize: vertical;
    min-height: 88px;
}

.aao-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 980px) {
    .aao-row-form {
        grid-template-columns: 1fr;
    }
}

/* Leitstelle: Fahrzeugbesetzungen */
.fbz-page .request-hero {
    align-items: stretch;
}

.fbz-hero-shell {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 174, 66, 0.22), transparent 58%),
        radial-gradient(circle at 92% 8%, rgba(103, 184, 255, 0.2), transparent 54%),
        linear-gradient(135deg, rgba(16, 21, 33, 0.94), rgba(8, 11, 17, 0.94));
    box-shadow: 0 18px 36px rgba(3, 6, 11, 0.45);
}

.fbz-hero-stats {
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
    min-width: min(430px, 100%);
}

.fbz-hero-stats article {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(145deg, rgba(15, 21, 33, 0.88), rgba(8, 11, 18, 0.9));
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.fbz-hero-stats span {
    font-size: 12px;
    color: #aab3c2;
}

.fbz-hero-stats strong {
    font-size: 21px;
    letter-spacing: 0.4px;
}

.fbz-info-panel .panel-body {
    display: grid;
    gap: 14px;
}

.fbz-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fbz-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 14, 22, 0.78);
    font-size: 12px;
}

.fbz-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.fbz-legend-dot.is-fw {
    background: #75d76c;
}

.fbz-legend-dot.is-rd {
    background: #ff8a84;
}

.fbz-legend-dot.is-kats {
    background: #86e8a1;
}

.fbz-legend-dot.is-extra {
    background: #ffd85e;
}

.fbz-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.fbz-search {
    display: grid;
    gap: 6px;
    min-width: min(420px, 100%);
}

.fbz-search span,
.fbz-check span {
    font-size: 12px;
    color: var(--muted);
}

.fbz-page input[type='search'],
.fbz-page textarea,
.fbz-page input[type='text'],
.fbz-page input[type='color'] {
    color-scheme: dark;
}

.fbz-search input,
#fbz-admin-section-search {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(145deg, rgba(9, 13, 21, 0.98), rgba(6, 9, 15, 0.95)) !important;
    color: #eef2fa !important;
    padding: 10px 12px;
    appearance: none;
}

.fbz-search input::-webkit-search-decoration,
.fbz-search input::-webkit-search-cancel-button,
#fbz-admin-section-search::-webkit-search-decoration,
#fbz-admin-section-search::-webkit-search-cancel-button {
    appearance: none;
}

.fbz-search input::placeholder,
#fbz-admin-section-search::placeholder {
    color: #90a0ba;
}

.fbz-search input:focus,
#fbz-admin-section-search:focus {
    outline: none;
    border-color: rgba(255, 122, 24, 0.62);
    box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.18);
}

.fbz-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.fbz-check input {
    accent-color: #ff7a18;
}

.fbz-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fbz-filter-bar .ghost-button.small {
    border-color: color-mix(in srgb, var(--fbz-chip, #9eb2ff) 45%, #ffffff 18%);
    background: color-mix(in srgb, var(--fbz-chip, #9eb2ff) 20%, rgba(8, 10, 17, 0.92));
}

.fbz-filter-bar .ghost-button.small.is-active {
    border-color: color-mix(in srgb, var(--fbz-chip, #ff7a18) 65%, #ffffff 15%);
    background: color-mix(in srgb, var(--fbz-chip, #ff7a18) 40%, rgba(8, 10, 17, 0.86));
    color: #ffe9d2;
}

.fbz-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.fbz-sections-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.fbz-phase-banner {
    border-radius: 14px;
    grid-column: 1 / -1;
    border: 1px solid color-mix(in srgb, var(--fbz-phase-accent, #ffd84f) 58%, #ffffff 14%);
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--fbz-phase-accent, #ffd84f) 86%, #151515 14%),
        color-mix(in srgb, var(--fbz-phase-accent, #ffd84f) 74%, #101014 26%)
    );
    color: #090a0f;
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.3px;
    padding: 9px 12px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px rgba(0, 0, 0, 0.26);
}

.fbz-section-card {
    grid-column: span 6;
    border-left: 4px solid var(--fbz-accent, #7daeff);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.fbz-section-card.is-compact {
    grid-column: span 4;
}

.fbz-section-card.is-wide {
    grid-column: span 8;
}

.fbz-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    background:
        radial-gradient(circle at 2% 8%, color-mix(in srgb, var(--fbz-accent, #7daeff) 30%, transparent), transparent 55%),
        linear-gradient(160deg, rgba(15, 19, 29, 0.96), rgba(10, 13, 20, 0.96));
    border-radius: 12px;
    padding: 10px 12px;
}

.fbz-section-title-wrap {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.fbz-section-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

.fbz-section-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fbz-section-chip {
    font-size: 11px;
    line-height: 1;
    border-radius: 999px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.fbz-section-chip.is-tag {
    color: #1f1100;
    font-weight: 700;
    border-color: color-mix(in srgb, var(--fbz-accent, #7daeff) 70%, #ffffff 14%);
    background: color-mix(in srgb, var(--fbz-accent, #7daeff) 72%, #101013 28%);
}

.fbz-section-chip.is-phase {
    color: #d9deea;
}

.fbz-section-count {
    font-size: 12px;
    color: #d7deea;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 5px 10px;
    white-space: nowrap;
}

.fbz-section-card .panel-body {
    padding-top: 0;
}

.fbz-table-wrap {
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 11, 17, 0.82);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 24, 0.55) rgba(255, 255, 255, 0.08);
}

.fbz-table-wrap::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.fbz-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.fbz-table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(255, 122, 24, 0.8), rgba(215, 38, 56, 0.75));
    border-radius: 999px;
}

.fbz-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
}

.fbz-table th,
.fbz-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
}

.fbz-table th:last-child,
.fbz-table td:last-child {
    border-right: 0;
}

.fbz-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(18, 23, 34, 0.97), rgba(14, 17, 24, 0.97));
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #d2d8e4;
}

.fbz-row:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.02);
}

.fbz-row:hover td {
    background: color-mix(in srgb, var(--fbz-accent, #ff7a18) 16%, rgba(9, 10, 16, 0.94));
}

.fbz-code {
    font-weight: 700;
    white-space: nowrap;
}

.fbz-notes {
    display: grid;
    gap: 10px;
}

.fbz-notes article {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 20, 0.74);
    padding: 11px 13px;
    font-size: 13px;
}

body.fbz-overlay-open {
    overflow: hidden;
}

.fbz-admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 1215;
    display: grid;
    place-items: center;
    padding: 14px;
}

.fbz-admin-overlay[hidden] {
    display: none;
}

.fbz-admin-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 16, 0.84);
    backdrop-filter: blur(6px);
}

.fbz-admin-panel-floating {
    position: relative;
    z-index: 1;
    width: min(1480px, 96vw);
    max-height: 92vh;
    overflow-y: auto;
    opacity: 1 !important;
    transform: none !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 24, 0.55) rgba(255, 255, 255, 0.08);
}

.fbz-admin-panel-floating > header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: linear-gradient(160deg, rgba(14, 18, 28, 0.985), rgba(10, 13, 20, 0.985));
    padding-bottom: 10px;
}

.fbz-admin-panel-floating::-webkit-scrollbar {
    width: 9px;
}

.fbz-admin-panel-floating::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.fbz-admin-panel-floating::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 122, 24, 0.8), rgba(215, 38, 56, 0.75));
    border-radius: 999px;
}

.fbz-admin-panel .panel-body {
    display: grid;
    gap: 14px;
}

.fbz-admin-toolbar {
    display: grid;
    grid-template-columns: repeat(3, auto) minmax(220px, 1fr) minmax(120px, 1fr);
    gap: 8px;
    align-items: center;
    position: sticky;
    top: 68px;
    z-index: 3;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, rgba(12, 17, 26, 0.95), rgba(8, 12, 20, 0.95));
}

#fbz-admin-status {
    justify-self: end;
    text-align: right;
}

#fbz-admin-status.is-error {
    color: #ff9b9b;
}

.fbz-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.fbz-admin-meta {
    display: grid;
    gap: 10px;
}

.fbz-admin-meta label,
.fbz-section-form label {
    display: grid;
    gap: 6px;
}

.fbz-admin-meta span,
.fbz-section-form span {
    font-size: 12px;
    color: var(--muted);
}

.fbz-admin-meta input,
.fbz-admin-meta textarea,
.fbz-section-form input,
.fbz-row-form input,
.fbz-modal-form input,
.fbz-modal-form textarea {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 20, 0.95) !important;
    color: #edf3ff !important;
    padding: 8px 10px;
}

.fbz-admin-meta textarea,
.fbz-modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

.fbz-color-input {
    display: grid;
    gap: 6px;
}

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

.fbz-section-form input[type='color'],
.fbz-modal-form input[type='color'] {
    width: 66px;
    min-width: 66px;
    height: 38px;
    padding: 2px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 12, 20, 0.96) !important;
}

.fbz-color-pill {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 8px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.fbz-section-form {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
}

.fbz-admin-sections {
    display: grid;
    gap: 12px;
}

.fbz-admin-section-card {
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--fbz-accent, #7daeff) 38%, rgba(255, 255, 255, 0.2));
    background: linear-gradient(160deg, rgba(9, 13, 20, 0.9), rgba(8, 10, 16, 0.9));
    overflow: hidden;
}

.fbz-admin-section-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    background:
        radial-gradient(circle at 6% 18%, color-mix(in srgb, var(--fbz-accent, #7daeff) 26%, transparent), transparent 60%),
        rgba(9, 13, 20, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fbz-admin-section-card summary::-webkit-details-marker {
    display: none;
}

.fbz-admin-section-card h4 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.fbz-admin-section-card h4 small {
    color: var(--muted);
    font-size: 12px;
}

.fbz-admin-summary-meta {
    font-size: 11px;
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.fbz-admin-section-body {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.fbz-admin-meta-line {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.fbz-admin-table-wrap {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 24, 0.55) rgba(255, 255, 255, 0.08);
}

.fbz-admin-table-wrap::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.fbz-admin-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.fbz-admin-table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(255, 122, 24, 0.8), rgba(215, 38, 56, 0.75));
    border-radius: 999px;
}

.fbz-admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.fbz-admin-table th,
.fbz-admin-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 9px;
    text-align: left;
    vertical-align: top;
    font-size: 12px;
    white-space: nowrap;
}

.fbz-admin-table th:last-child,
.fbz-admin-table td:last-child {
    border-right: 0;
}

.fbz-row-form {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: end;
}

.fbz-modal {
    position: fixed;
    inset: 0;
    z-index: 1235;
    display: grid;
    place-items: center;
}

.fbz-modal[hidden] {
    display: none;
}

.fbz-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 15, 0.8);
    backdrop-filter: blur(4px);
}

.fbz-modal-card {
    position: relative;
    z-index: 1;
    width: min(860px, 95vw);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(11, 15, 24, 0.98), rgba(8, 11, 18, 0.97));
    padding: 14px;
    display: grid;
    gap: 12px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.58);
}

.fbz-modal-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.fbz-modal-card h4 {
    margin: 0;
}

.fbz-modal-form {
    display: grid;
    gap: 10px;
}

.fbz-modal-form label {
    display: grid;
    gap: 6px;
}

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

.fbz-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.fbz-admin-actions .ghost-button.tiny.danger.is-armed {
    border-color: rgba(255, 122, 24, 0.7);
    background: rgba(255, 122, 24, 0.2);
    color: #ffd9b8;
}

@media (max-width: 1220px) {
    .fbz-section-card,
    .fbz-section-card.is-wide,
    .fbz-section-card.is-compact {
        grid-column: span 12;
    }
}

@media (max-width: 980px) {
    .fbz-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
    }

    .fbz-filter-row {
        align-items: stretch;
    }

    .fbz-search {
        min-width: 0;
        width: 100%;
    }

    .fbz-admin-toolbar {
        grid-template-columns: 1fr 1fr;
        top: 62px;
    }

    #fbz-admin-status {
        grid-column: 1 / -1;
        justify-self: start;
        text-align: left;
    }

    .fbz-admin-table {
        min-width: 680px;
    }

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

/* Besetzungsreihenfolge */
.brf-page .request-hero {
    margin-bottom: 14px;
}

.brf-hero {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: stretch;
}

.brf-hero-stats {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 320px;
}

.brf-hero-stats article {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(11, 16, 27, 0.94), rgba(8, 12, 19, 0.88));
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

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

.brf-hero-stats strong {
    font-size: 21px;
    line-height: 1;
}

.brf-legend {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.brf-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.brf-legend-item i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    background: var(--brf-role-color, #6f8ebf);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.26);
}

.brf-admin-launch {
    margin-top: 12px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.brf-search {
    display: grid;
    gap: 6px;
    max-width: 380px;
    margin-bottom: 10px;
}

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

.brf-page input[type='search'],
.brf-page input[type='text'],
.brf-page textarea,
.brf-page input[type='color'] {
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(145deg, rgba(8, 13, 24, 0.95), rgba(10, 14, 21, 0.9)) !important;
    color: #eef4ff !important;
}

.brf-page input::placeholder,
.brf-page textarea::placeholder {
    color: rgba(218, 227, 245, 0.64);
}

.brf-matrix-wrap {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    background: linear-gradient(150deg, rgba(7, 11, 18, 0.95), rgba(6, 9, 15, 0.97));
}

.brf-matrix-scroll {
    overflow: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(72, 160, 255, 0.65) rgba(255, 255, 255, 0.08);
}

.brf-matrix-scroll::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.brf-matrix-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.brf-matrix-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(72, 160, 255, 0.85), rgba(255, 163, 27, 0.84));
    border-radius: 999px;
}

.brf-matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.brf-matrix-table th,
.brf-matrix-table td {
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
    vertical-align: middle;
}

.brf-matrix-table thead th {
    background: linear-gradient(140deg, rgba(18, 29, 46, 0.95), rgba(12, 19, 31, 0.95));
    font-size: 15px;
}

.brf-matrix-table thead th.is-left {
    width: 170px;
}

.brf-matrix-table thead th.is-right {
    width: 220px;
}

.brf-count-cell {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #f0f5ff;
    letter-spacing: 0.03em;
}

.brf-hint-cell {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.brf-slots-cell {
    padding: 6px 8px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
}

.brf-slot-lines {
    min-height: 54px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    display: grid;
    gap: 4px;
    align-content: start;
}

.brf-slot-empty {
    min-height: 54px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.brf-task-chip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 24px;
    border-radius: 4px;
    padding: 3px 6px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
    background: color-mix(in srgb, var(--brf-chip-color, #5f708f) 84%, #111826);
    border: 1px solid color-mix(in srgb, var(--brf-chip-color, #5f708f) 68%, rgba(255, 255, 255, 0.24));
}

.brf-notes {
    display: grid;
    gap: 8px;
}

.brf-notes article {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(8, 12, 20, 0.9), rgba(9, 13, 22, 0.88));
    padding: 10px 12px;
}

.brf-notes article.is-bullet {
    padding-left: 18px;
    position: relative;
}

.brf-notes article.is-bullet::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    position: absolute;
    top: 16px;
    left: 8px;
    background: rgba(124, 195, 255, 0.92);
}

.brf-admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 1225;
    display: grid;
    place-items: center;
    padding: 24px 18px;
}

.brf-admin-overlay[hidden] {
    display: none;
}

.brf-admin-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.8);
    backdrop-filter: blur(4px);
}

.brf-admin-panel {
    position: relative;
    z-index: 1;
    width: min(1240px, 98vw);
    max-height: min(92vh, 980px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(72, 160, 255, 0.65) rgba(255, 255, 255, 0.08);
}

.brf-admin-panel::-webkit-scrollbar {
    width: 10px;
}

.brf-admin-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.brf-admin-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(72, 160, 255, 0.83), rgba(255, 163, 27, 0.82));
    border-radius: 999px;
}

.brf-admin-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.brf-admin-toolbar {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 0;
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.97), rgba(12, 18, 28, 0.86) 72%, transparent);
}

.brf-admin-toolbar #brf-admin-status {
    justify-self: end;
    text-align: right;
}

.brf-admin-block {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.brf-admin-block h4 {
    margin: 0;
    font-size: 15px;
}

.brf-admin-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.brf-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.brf-admin-grid label,
.brf-entry-grid label,
.brf-entry-slots label,
.brf-role-item label,
.brf-admin-block > label {
    display: grid;
    gap: 6px;
}

.brf-admin-grid label span,
.brf-entry-grid label span,
.brf-entry-slots label span,
.brf-role-item label span,
.brf-admin-block > label span {
    font-size: 12px;
    color: var(--muted);
}

.brf-role-form {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(220px, 1fr) 70px auto;
    align-items: end;
}

.brf-role-list {
    display: grid;
    gap: 8px;
}

.brf-role-item {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(200px, 1fr) 90px auto;
    align-items: end;
}

.brf-entry-list {
    display: grid;
    gap: 10px;
}

.brf-entry-item {
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(9, 13, 21, 0.9), rgba(8, 11, 18, 0.88));
    padding: 10px;
    display: grid;
    gap: 9px;
}

.brf-entry-item header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.brf-entry-item h5 {
    margin: 0;
    font-size: 14px;
}

.brf-entry-actions {
    display: inline-flex;
    gap: 6px;
}

.brf-entry-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 220px minmax(240px, 1fr);
}

.brf-entry-slots {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.brf-entry-slots textarea {
    min-height: 70px;
    resize: vertical;
}

.brf-role-item .ghost-button.tiny.danger.is-armed,
.brf-entry-actions .ghost-button.tiny.danger.is-armed,
.brf-admin-toolbar .ghost-button.small.danger.is-armed {
    border-color: rgba(255, 122, 24, 0.75);
    background: rgba(255, 122, 24, 0.2);
    color: #ffe0c2;
}

body.brf-overlay-open {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .brf-hero {
        flex-direction: column;
    }

    .brf-hero-stats {
        min-width: 0;
    }

    .brf-admin-grid {
        grid-template-columns: 1fr;
    }

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

    .brf-role-item {
        grid-template-columns: 1fr;
    }

    .brf-entry-grid {
        grid-template-columns: 1fr;
    }

    .brf-entry-slots {
        grid-template-columns: 1fr 1fr;
    }

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

    .brf-admin-toolbar #brf-admin-status {
        grid-column: 1 / -1;
        justify-self: start;
        text-align: left;
    }
}

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

    .brf-entry-slots {
        grid-template-columns: 1fr;
    }

    .brf-admin-overlay {
        padding: 10px;
    }
}

/* Desktop Admin */
.desktop-admin-hero {
    align-items: center;
}

.desktop-admin-hero .desktop-admin-hero-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
    min-width: 220px;
}

.desktop-admin-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 14px;
}

.desktop-stat-card .panel-body {
    display: grid;
    gap: 6px;
}

.desktop-stat-card strong {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.desktop-admin-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.desktop-bar-list {
    display: grid;
    gap: 10px;
}

.desktop-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 220px) 1fr auto;
    gap: 10px;
    align-items: center;
}

.desktop-bar-label {
    font-weight: 600;
    color: rgba(237, 244, 255, 0.9);
}

.desktop-bar-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(126, 160, 255, 0.2);
    border: 1px solid rgba(126, 160, 255, 0.35);
}

.desktop-bar-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2fe0a8, #5aa7ff);
}

.desktop-table-wrap {
    overflow: auto;
    border: 1px solid rgba(116, 151, 247, 0.25);
    border-radius: 14px;
}

.desktop-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.desktop-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(205, 220, 245, 0.85);
    background: rgba(22, 30, 52, 0.95);
    border-bottom: 1px solid rgba(116, 151, 247, 0.25);
}

.desktop-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(116, 151, 247, 0.12);
    color: rgba(237, 244, 255, 0.92);
}

.desktop-table tbody tr:hover td {
    background: rgba(74, 106, 188, 0.12);
}

.desktop-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.desktop-badge.is-online {
    color: #d9ffe8;
    background: rgba(34, 184, 115, 0.2);
    border-color: rgba(34, 184, 115, 0.45);
}

.desktop-badge.is-paused {
    color: #ffe8c8;
    background: rgba(236, 157, 40, 0.2);
    border-color: rgba(236, 157, 40, 0.45);
}

.desktop-badge.is-offline {
    color: #c7d4ed;
    background: rgba(117, 141, 186, 0.2);
    border-color: rgba(117, 141, 186, 0.35);
}

@media (max-width: 1300px) {
    .desktop-admin-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .desktop-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .desktop-admin-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .desktop-admin-grid {
        grid-template-columns: 1fr;
    }

    .desktop-admin-hero .desktop-admin-hero-actions {
        justify-items: start;
    }

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

/* Public Discord */
.public-discord-page .main-content {
    position: relative;
    overflow: hidden;
}

.public-discord-page .main-content::before {
    content: "";
    position: absolute;
    inset: -180px -120px auto -120px;
    height: 420px;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 40%, rgba(23, 180, 136, 0.28), transparent 58%),
        radial-gradient(circle at 72% 30%, rgba(67, 115, 255, 0.28), transparent 62%),
        radial-gradient(circle at 45% 75%, rgba(255, 181, 64, 0.2), transparent 60%);
    animation: publicAurora 14s ease-in-out infinite alternate;
}

.public-discord-page .public-discord-hq {
    display: grid;
    gap: 24px;
}

.public-discord-page .public-discord-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 320px;
    gap: 22px;
    padding: 28px;
    border-radius: 22px;
    background: linear-gradient(140deg, rgba(8, 26, 39, 0.95), rgba(16, 41, 61, 0.9));
    border: 1px solid rgba(82, 195, 163, 0.25);
    box-shadow: 0 20px 46px rgba(3, 12, 25, 0.35);
    overflow: hidden;
}

.public-discord-page .public-discord-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(60, 188, 140, 0.12), rgba(71, 125, 255, 0.08), rgba(255, 179, 88, 0.08));
    mix-blend-mode: screen;
    animation: publicSweep 9s linear infinite;
}

.public-discord-page .public-discord-hero-content {
    position: relative;
    z-index: 2;
}

.public-discord-page .public-discord-hero-content h2 {
    margin: 6px 0 10px;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    letter-spacing: 0.01em;
}

.public-discord-page .public-discord-hero-content p {
    max-width: 760px;
    margin: 0 0 14px;
    color: rgba(227, 237, 251, 0.88);
}

.public-discord-page .public-discord-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.public-discord-page .public-access-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(137, 231, 208, 0.38);
    background: rgba(16, 65, 61, 0.35);
    color: #d7fff1;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.public-discord-page .public-discord-sync {
    margin-top: 12px;
    font-size: 0.83rem;
    color: rgba(202, 220, 244, 0.8);
}

.public-discord-page .public-discord-ticker {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(107, 192, 215, 0.35);
    background: linear-gradient(95deg, rgba(8, 33, 51, 0.96), rgba(8, 24, 40, 0.95));
}

.public-discord-page .public-discord-ticker-track {
    display: inline-flex;
    gap: 26px;
    min-width: max-content;
    padding: 10px 20px;
    color: rgba(215, 236, 255, 0.92);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.73rem;
    animation: publicTicker 24s linear infinite;
}

.public-discord-page .public-discord-hero-orb {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 14px;
}

.public-discord-page .orb-core {
    display: grid;
    place-items: center;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #9bf4dc, #26b489 68%);
    color: #052025;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 0 0 8px rgba(34, 196, 145, 0.14), 0 20px 30px rgba(3, 20, 24, 0.42);
}

.public-discord-page .orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(168, 236, 221, 0.35);
    animation: publicOrbit 6s linear infinite;
}

.public-discord-page .orb-ring-a {
    width: 168px;
    height: 168px;
}

.public-discord-page .orb-ring-b {
    width: 216px;
    height: 216px;
    animation-duration: 8.6s;
    animation-direction: reverse;
    border-color: rgba(122, 162, 255, 0.34);
}

.public-discord-page .public-discord-hero-orb small {
    color: rgba(226, 236, 252, 0.82);
    font-weight: 600;
}

.public-discord-page .public-discord-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.public-discord-page .public-discord-card {
    position: relative;
    padding: 18px 18px 16px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(11, 30, 48, 0.94), rgba(9, 24, 38, 0.92));
    border: 1px solid rgba(112, 177, 233, 0.24);
    box-shadow: 0 14px 28px rgba(5, 12, 24, 0.28);
    animation: publicReveal 0.8s ease both;
}

.public-discord-page .public-discord-card:nth-child(2) {
    animation-delay: 0.08s;
}

.public-discord-page .public-discord-card:nth-child(3) {
    animation-delay: 0.14s;
}

.public-discord-page .public-discord-card:nth-child(4) {
    animation-delay: 0.2s;
}

.public-discord-page .public-discord-card span {
    font-size: 0.79rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(190, 212, 240, 0.86);
}

.public-discord-page .public-discord-card strong {
    display: block;
    margin: 8px 0 7px;
    font-size: clamp(1.3rem, 2.1vw, 1.9rem);
    color: #f2f8ff;
}

.public-discord-page .public-discord-card p {
    margin: 0;
    color: rgba(205, 219, 242, 0.84);
}

.public-discord-page .public-discord-split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
}

.public-discord-page .public-discord-panel {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(158deg, rgba(10, 26, 41, 0.96), rgba(11, 32, 50, 0.9));
    border: 1px solid rgba(109, 168, 235, 0.24);
    box-shadow: 0 18px 32px rgba(3, 12, 24, 0.3);
}

.public-discord-page .public-discord-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.public-discord-page .public-discord-panel header h3 {
    margin: 0;
    font-size: 1.08rem;
}

.public-discord-page .public-discord-panel header span {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(188, 210, 238, 0.84);
}

.public-discord-page .public-discord-ban-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 2px;
}

.public-discord-page .public-discord-ban-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 13px;
    background: rgba(21, 44, 68, 0.62);
    border: 1px solid rgba(108, 156, 214, 0.24);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.public-discord-page .public-discord-ban-item:hover {
    transform: translateY(-1px);
    border-color: rgba(140, 219, 194, 0.35);
}

.public-discord-page .public-discord-ban-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #edfbff;
    background: linear-gradient(145deg, #178bb6, #2bb88f);
    background-size: cover;
    background-position: center;
}

.public-discord-page .public-discord-ban-meta {
    display: grid;
    gap: 2px;
}

.public-discord-page .public-discord-ban-meta strong {
    color: #f4f9ff;
}

.public-discord-page .public-discord-ban-meta small {
    color: rgba(196, 215, 240, 0.85);
}

.public-discord-page .public-discord-panel-coming {
    position: relative;
    overflow: hidden;
}

.public-discord-page .public-discord-panel-coming::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg, transparent 20%, rgba(115, 214, 180, 0.09) 45%, transparent 70%);
    animation: publicSweep 8s linear infinite;
}

.public-discord-page .public-coming-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 12px;
}

.public-discord-page .public-coming-item {
    position: relative;
    padding: 11px 10px;
    border-radius: 11px;
    background: rgba(15, 43, 60, 0.8);
    border: 1px solid rgba(126, 205, 214, 0.2);
    color: rgba(226, 239, 255, 0.9);
    font-weight: 600;
    font-size: 0.87rem;
}

@keyframes publicAurora {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate3d(0, 16px, 0) scale(1.04);
        opacity: 1;
    }
}

@keyframes publicSweep {
    0% {
        transform: translateX(-36%);
    }
    100% {
        transform: translateX(36%);
    }
}

@keyframes publicOrbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes publicReveal {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes publicTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1200px) {
    .public-discord-page .public-discord-hero {
        grid-template-columns: 1fr;
    }

    .public-discord-page .public-discord-hero-orb {
        min-height: 220px;
    }

    .public-discord-page .public-discord-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-discord-page .public-discord-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .public-discord-page .public-discord-hero {
        padding: 20px;
    }

    .public-discord-page .public-discord-metrics {
        grid-template-columns: 1fr;
    }

    .public-discord-page .public-coming-grid {
        grid-template-columns: 1fr;
    }
}

