/* =========================================================
   STREAM PLUS CREATOR MANAGER
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #080d17;
    color: #ffffff;
    display: flex;
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    width: 230px;
    min-height: 100vh;
    background: #0d1422;
    border-right: 1px solid #202a3b;
    padding: 30px 12px;
    flex-shrink: 0;
}

.logo-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo {
    width: 175px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.subtitle {
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 38px;
    white-space: nowrap;
}

.livestream-text {
    color: #00bfff;
    text-shadow:
        0 0 8px rgba(0, 191, 255, 0.35);
}

.management-text {
    color: #ff2b2b;
    text-shadow:
        0 0 8px rgba(255, 43, 43, 0.35);
}

nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

nav a {
    color: #8f9bad;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 10px;
    transition: 0.2s;
    font-size: 15px;
}

nav a:hover {
    background: #151f30;
    color: #ffffff;
}

nav a.active {
    background: #172235;
    color: #ffffff;
}


/* =========================================================
   HAUPTBEREICH
========================================================= */

main {
    flex: 1;
    padding: 38px 42px;
    min-width: 0;
}


/* =========================================================
   TOAST
========================================================= */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    animation:
        toastSlideIn
        0.28s
        ease-out;
}

.toast-notification {
    min-width: 250px;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #071d35 0%,
            #083f70 46%,
            #007fc9 100%
        );

    border:
        1px solid #1fd6ff;

    box-shadow:
        0 8px 28px
        rgba(0, 0, 0, 0.40),

        0 0 22px
        rgba(0, 183, 255, 0.22);
}

.toast-error {
    background:
        linear-gradient(
            135deg,
            #351018 0%,
            #641d2a 55%,
            #8c2436 100%
        );

    border-color:
        #ff5268;
}

.toast-logo-mark {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #00bfff 0%,
            #0078ff 48%,
            #ff2b2b 100%
        );

    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.toast-text {
    flex: 1;
}

.toast-hide {
    opacity: 0;
    transform:
        translateX(30px);

    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

@keyframes toastSlideIn {

    from {
        opacity: 0;
        transform:
            translateX(35px);
    }

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

}


/* =========================================================
   HEADER
========================================================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

header h1 {
    font-size: 32px;
    font-weight: 800;
}

header p {
    color: #7f8da2;
    margin-top: 8px;
    font-size: 15px;
}

.bot-status {
    background: #10271e;
    color: #56e79a;
    padding: 10px 17px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.bot-status span {
    width: 8px;
    height: 8px;
    background: #56e79a;
    display: inline-block;
    border-radius: 50%;
    margin-right: 7px;
}


/* =========================================================
   DASHBOARD STATISTIK
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 38px;
}

.stat-card {
    background: #0e1625;
    border: 1px solid #202a3b;
    border-radius: 15px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 110px;
}

.stat-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
    background: #172235;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-card p {
    color: #7f8b9e;
    font-size: 12px;
    letter-spacing: 1px;
}

.stat-card h2 {
    margin-top: 6px;
    font-size: 27px;
}

.online {
    color: #56e79a;
}


/* =========================================================
   DASHBOARD CREATOR
========================================================= */

.creator-section {
    margin-top: 42px;
}

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

.section-header h2 {
    font-size: 24px;
}

.section-header p {
    color: #768397;
    margin-top: 5px;
}

.section-header button {
    background: #23c9f5;
    color: #061019;
    border: none;
    padding: 13px 20px;
    border-radius: 9px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.section-header button:hover {
    filter: brightness(1.08);
    transform:
        translateY(-1px);
}

.creator-card {
    background: #0e1625;
    border: 1px solid #202a3b;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 15px;
}

.avatar {
    position: relative;
    width: 78px;
    height: 78px;
    min-width: 78px;
    border-radius: 50%;
    background: #202d42;
    display: flex;
    align-items: center;
    justify-content: center;
    border:
        3px solid #28d7ff;
    overflow: hidden;
}

.avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    background:
        #202d42;
}

.creator-info {
    flex: 1;
    min-width: 0;
}

.creator-info h2 {
    font-size: 21px;
}

.username {
    color: #7d899c;
    margin-top: 4px;
}

.live-badge {
    display: inline-block;
    margin-top: 11px;
    background: #3a1018;
    color: #ff5268;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.offline-badge {
    display: inline-block;
    margin-top: 11px;
    background: #242b36;
    color: #929cac;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.creator-details {
    display: flex;
    gap: 48px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.creator-details > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.creator-details span {
    color: #6f7c90;
    font-size: 11px;
    text-transform: uppercase;
}

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

.enabled {
    color: #56e79a;
}

.disabled {
    color: #929cac;
}

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

.actions form {
    margin: 0;
}

.actions button {
    padding: 10px 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.delete {
    background: #2d1218;
    border: 1px solid #57202b;
    color: #ff6678;
}

.delete:hover {
    background: #411820;
}


/* =========================================================
   CREATOR ÜBERSICHT
========================================================= */

.creator-overview-stats {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 16px;
    margin-top: 38px;
}

.overview-stat-card {
    background: #0e1625;
    border: 1px solid #202a3b;
    border-radius: 14px;
    padding: 20px;
}

.overview-stat-label {
    display: block;
    color: #768397;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 9px;
}

.overview-stat-card strong {
    color: #ffffff;
    font-size: 24px;
}

.creator-directory {
    margin-top: 38px;
}

.creator-directory-heading {
    margin-bottom: 18px;
}

.creator-directory-heading h2 {
    font-size: 24px;
}

.creator-directory-heading p {
    color: #768397;
    margin-top: 6px;
    font-size: 14px;
}

.creator-profile-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 18px;
}

.creator-profile-card {
    background: #0e1625;
    border: 1px solid #202a3b;
    border-radius: 16px;
    padding: 22px;
    min-width: 0;
    transition: 0.2s;
}

.creator-profile-card:hover {
    border-color: #2c425f;
    transform:
        translateY(-1px);
}

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

.creator-profile-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    overflow: hidden;
    border:
        2px solid #28d7ff;
    background: #202d42;
}

.creator-profile-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-profile-avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 24px;
}

.creator-profile-identity {
    flex: 1;
    min-width: 0;
}

.creator-profile-identity h3 {
    font-size: 17px;
    overflow-wrap: anywhere;
}

.creator-profile-identity p {
    color: #8190a6;
    margin-top: 4px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.directory-live-badge,
.directory-offline-badge {
    padding: 6px 9px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.directory-live-badge {
    background: #3a1018;
    color: #ff5268;
}

.directory-offline-badge {
    background: #242b36;
    color: #929cac;
}

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

.creator-metric {
    min-width: 0;
    background: #09111d;
    border: 1px solid #1e2a3e;
    border-radius: 11px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.creator-metric-icon {
    font-size: 19px;
}

.creator-metric div {
    min-width: 0;
}

.creator-metric-label {
    display: block;
    color: #6f7c90;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.creator-metric strong {
    font-size: 16px;
    overflow-wrap: anywhere;
}

.creator-profile-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 17px;
    border-top:
        1px solid #1d293a;
}

.creator-profile-meta > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.creator-profile-meta span {
    color: #6f7c90;
    font-size: 10px;
    text-transform: uppercase;
}

.creator-profile-meta strong {
    font-size: 13px;
}

.tiktok-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 14px;
    min-height: 40px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    color: #07111b;
    background: #23c9f5;
    transition: 0.2s;
}

.tiktok-profile-link:hover {
    filter: brightness(1.08);
    transform:
        translateY(-1px);
}


/* =========================================================
   LEERER BEREICH
========================================================= */

.empty-state {
    background: #0e1625;
    border: 1px dashed #2a3649;
    border-radius: 14px;
    padding: 32px;
    color: #768397;
}

.empty-state h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 7px;
}

.empty-state p {
    color: #7c899d;
    font-size: 14px;
}


/* =========================================================
   CREATOR HINZUFÜGEN
========================================================= */

.creator-add-section {
    display: none;
    margin-top: 28px;
    margin-bottom: 40px;
    scroll-margin-top: 25px;
}

.creator-add-card {
    background: #0e1625;
    border: 1px solid #26344a;
    border-radius: 16px;
    padding: 28px;
    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.25);
}

.creator-add-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.creator-add-header h2 {
    font-size: 22px;
}

.creator-add-header p {
    color: #7d899c;
    font-size: 14px;
    margin-top: 6px;
}

.creator-add-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    border: 1px solid #2d3c52;
    background: #172235;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.creator-add-close:hover {
    background: #223049;
}

.creator-form-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    color: #aeb9c9;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 46px;
    background: #09111d;
    border: 1px solid #293850;
    color: #ffffff;
    border-radius: 9px;
    padding: 0 14px;
    outline: none;
    font-size: 14px;
    transition: 0.2s;
}

.form-group input::placeholder {
    color: #58677c;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #23c9f5;
    box-shadow:
        0 0 0 2px
        rgba(35, 201, 245, 0.10);
}

.form-group select {
    cursor: pointer;
    color-scheme: dark;
}

.form-group select option {
    background: #0e1625;
    color: #ffffff;
}

.channel-warning {
    margin-top: 18px;
    padding: 13px 15px;
    background: #2b2110;
    border: 1px solid #66501e;
    border-radius: 9px;
    color: #f1c75b;
    font-size: 13px;
    line-height: 1.5;
}

.monitoring-box {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #09111d;
    border: 1px solid #26344a;
    border-radius: 10px;
    padding: 16px 18px;
}

.monitoring-box strong {
    color: #ffffff;
}

.monitoring-box p {
    margin-top: 5px;
    color: #758398;
    font-size: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    min-width: 50px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #323c4b;
    border-radius: 30px;
    transition: 0.25s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.25s;
}

.switch input:checked + .slider {
    background: #23c9f5;
}

.switch input:checked + .slider:before {
    transform:
        translateX(24px);
}

.creator-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.cancel-button {
    background: #182337;
    color: #ffffff;
    border: 1px solid #2c3a51;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.cancel-button:hover {
    background: #223149;
}

.save-button {
    background: #23c9f5;
    color: #041018;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.save-button:hover {
    filter: brightness(1.08);
    transform:
        translateY(-1px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1150px) {

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

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

}

@media (max-width: 1050px) {

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

    .creator-card {
        flex-wrap: wrap;
    }

    .actions {
        width: 100%;
        justify-content: flex-end;
    }

}

@media (max-width: 800px) {

    .sidebar {
        display: none;
    }

    main {
        padding: 22px;
    }

    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    .toast-notification {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

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

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

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

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

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

    .creator-details {
        flex-direction: column;
        gap: 15px;
    }

    .actions {
        justify-content: flex-start;
    }

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

    .monitoring-box {
        align-items: flex-start;
    }

    .creator-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .creator-form-actions button {
        width: 100%;
    }

    .creator-metrics {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {

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

    .creator-profile-top {
        align-items: flex-start;
        flex-wrap: wrap;
    }

}


/* =========================================================
   LIVE MONITOR
========================================================= */

.live-monitor-summary {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 18px;
    margin-top: 38px;
}


.live-monitor-counter,
.live-monitor-refresh {
    background: #0e1625;
    border: 1px solid #202a3b;
    border-radius: 15px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}


.live-monitor-pulse {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: #ff435d;
    box-shadow:
        0 0 0 7px rgba(255, 67, 93, 0.10),
        0 0 18px rgba(255, 67, 93, 0.35);
}


.live-monitor-counter span,
.live-monitor-refresh span {
    display: block;
    color: #748298;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}


.live-monitor-counter strong {
    display: block;
    margin-top: 5px;
    font-size: 28px;
    color: #ff5268;
}


.live-monitor-refresh strong {
    display: block;
    margin-top: 5px;
    font-size: 16px;
}


.live-monitor-section {
    margin-top: 28px;
}


.live-stream-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 18px;
}


.live-stream-card {
    background:
        linear-gradient(
            145deg,
            #0e1625 0%,
            #0b1320 100%
        );
    border: 1px solid #26344a;
    border-radius: 17px;
    padding: 23px;
    min-width: 0;
}


.live-stream-header {
    display: flex;
    align-items: center;
    gap: 14px;
}


.live-stream-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    overflow: visible;
    border: 3px solid #ff5268;
    background: #202d42;
}


.live-stream-avatar img,
.live-stream-avatar-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}


.live-stream-avatar img {
    object-fit: cover;
}


.live-stream-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    overflow: hidden;
    background: #202d42;
}


.live-avatar-dot {
    position: absolute;
    right: -1px;
    bottom: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff435d;
    border: 3px solid #0e1625;
}


.live-stream-identity {
    flex: 1;
    min-width: 0;
}


.live-stream-identity h2 {
    font-size: 19px;
    overflow-wrap: anywhere;
}


.live-stream-identity p {
    margin-top: 4px;
    color: #8190a6;
    font-size: 13px;
    overflow-wrap: anywhere;
}


.live-now-badge {
    padding: 7px 10px;
    border-radius: 18px;
    background: #3a1018;
    color: #ff5268;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}


.live-stream-title-block {
    margin-top: 22px;
    padding: 16px;
    border-radius: 12px;
    background: #09111d;
    border: 1px solid #1e2a3e;
}


.live-stream-title-block span {
    color: #69788e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
}


.live-stream-title-block h3 {
    margin-top: 7px;
    font-size: 17px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}


.live-stream-metrics {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 12px;
    margin-top: 16px;
}


.live-stream-metric {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    background: #101b2b;
    border: 1px solid #22324a;
    border-radius: 11px;
}


.live-stream-metric-icon {
    font-size: 22px;
}


.live-stream-metric span {
    display: block;
    color: #748298;
    font-size: 10px;
    text-transform: uppercase;
}


.live-stream-metric strong {
    display: block;
    margin-top: 5px;
    font-size: 18px;
}


.live-stream-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #1d293a;
}


.live-stream-footer > div {
    min-width: 0;
}


.live-stream-footer span {
    display: block;
    color: #69788e;
    font-size: 10px;
    text-transform: uppercase;
}


.live-stream-footer strong {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    overflow-wrap: anywhere;
}


.watch-live-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 9px;
    background: #ff405a;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    transition: 0.2s;
}


.watch-live-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}


.live-empty-state {
    background: #0e1625;
    border: 1px dashed #2c3a50;
    border-radius: 17px;
    padding: 55px 30px;
    text-align: center;
}


.live-empty-icon {
    font-size: 42px;
    margin-bottom: 18px;
}


.live-empty-state h2 {
    font-size: 21px;
}


.live-empty-state p {
    max-width: 520px;
    margin: 10px auto 0;
    color: #78869b;
    line-height: 1.6;
}


@media (max-width: 1100px) {

    .live-stream-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 800px) {

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


    .live-stream-metrics {
        grid-template-columns: 1fr;
    }


    .live-stream-footer {
        align-items: stretch;
        flex-direction: column;
    }


    .watch-live-button {
        width: 100%;
    }

}


/* =========================================================
   EINSTELLUNGEN
========================================================= */

.settings-form {
    margin-top: 38px;
}


.settings-panel {
    background: #0e1625;
    border: 1px solid #202a3b;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 18px;
}


.settings-panel-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1d293a;
}


.settings-panel-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #172235;
    border: 1px solid #26364d;
    border-radius: 11px;
    font-size: 21px;
}


.settings-panel-heading h2 {
    font-size: 20px;
}


.settings-panel-heading p {
    color: #77859a;
    font-size: 13px;
    margin-top: 5px;
}


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


.settings-grid-three {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}


.settings-field {
    min-width: 0;
}


.settings-field label {
    display: block;
    color: #b8c3d2;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}


.settings-field input,
.settings-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 9px;
    border: 1px solid #293850;
    background: #09111d;
    color: #ffffff;
    outline: none;
    font-size: 14px;
}


.settings-field input:focus,
.settings-field select:focus {
    border-color: #23c9f5;
    box-shadow:
        0 0 0 2px rgba(35, 201, 245, 0.10);
}


.settings-field select {
    color-scheme: dark;
}


.settings-field small {
    display: block;
    margin-top: 7px;
    color: #68778c;
    font-size: 11px;
    line-height: 1.45;
}


.settings-switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 16px 18px;
    margin-top: 18px;
    border: 1px solid #223149;
    border-radius: 11px;
    background: #09111d;
}


.settings-switch-row strong {
    font-size: 14px;
}


.settings-switch-row p {
    color: #748298;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
}


.settings-security-note {
    margin-top: 18px;
    padding: 15px 17px;
    border-radius: 11px;
    border: 1px solid #274052;
    background: #0b1b29;
}


.settings-security-note strong {
    color: #8cddf8;
    font-size: 13px;
}


.settings-security-note p {
    color: #718599;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
}


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


.system-status-item {
    background: #09111d;
    border: 1px solid #1f2d42;
    border-radius: 11px;
    padding: 16px;
}


.system-status-item span {
    display: block;
    color: #748298;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}


.system-status-item strong {
    font-size: 14px;
}


.status-danger {
    color: #ff6678;
}


.bot-status-offline {
    background: #30151b;
    color: #ff6678;
}


.bot-status-offline span {
    background: #ff5268;
}


.settings-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    margin-top: 22px;
    margin-bottom: 40px;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #0e1b2b 0%,
            #10293f 100%
        );
    border: 1px solid #24516b;
}


.settings-save-bar strong {
    font-size: 15px;
}


.settings-save-bar p {
    color: #7590a5;
    margin-top: 5px;
    font-size: 12px;
}


.settings-save-button {
    min-height: 44px;
    padding: 11px 18px;
    border: none;
    border-radius: 9px;
    background: #23c9f5;
    color: #061019;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}


.settings-save-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}


@media (max-width: 1050px) {

    .settings-grid-three,
    .system-status-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 800px) {

    .settings-grid,
    .settings-grid-three,
    .system-status-grid {
        grid-template-columns: 1fr;
    }


    .settings-switch-row,
    .settings-save-bar {
        align-items: flex-start;
        flex-direction: column;
    }


    .settings-save-button {
        width: 100%;
    }

}


/* =========================================================
   LIVE HISTORIE
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}


.history-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 9px;
    border: 1px solid #295372;
    background: #0f2940;
    color: #8fdfff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: 0.2s;
}


.history-header-button:hover {
    background: #153954;
    color: #ffffff;
}


.history-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 16px;
    margin-top: 38px;
}


.history-summary-card {
    background: #0e1625;
    border: 1px solid #202a3b;
    border-radius: 14px;
    padding: 20px;
}


.history-summary-card span {
    display: block;
    color: #748298;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
}


.history-summary-card strong {
    display: block;
    margin-top: 9px;
    font-size: 23px;
}


.history-live-value {
    color: #ff5268;
}


.history-section {
    margin-top: 30px;
}


.history-section-heading {
    margin-bottom: 17px;
}


.history-section-heading h2 {
    font-size: 23px;
}


.history-section-heading p {
    color: #77859a;
    margin-top: 5px;
    font-size: 13px;
}


.history-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #202a3b;
    border-radius: 15px;
    background: #0e1625;
}


.history-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}


.history-table th {
    text-align: left;
    padding: 14px 16px;
    color: #718096;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: #0b1320;
    border-bottom: 1px solid #202a3b;
}


.history-table td {
    padding: 15px 16px;
    border-bottom: 1px solid #1b2637;
    color: #d9e1ec;
    font-size: 13px;
    vertical-align: middle;
}


.history-table tbody tr:last-child td {
    border-bottom: none;
}


.history-table tbody tr:hover {
    background: #101b2b;
}


.history-creator {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.history-creator strong {
    font-size: 13px;
}


.history-creator span {
    color: #77859a;
    font-size: 11px;
}


.history-title-cell {
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.history-status-live,
.history-status-ended {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 6px 9px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 900;
}


.history-status-live {
    background: #3a1018;
    color: #ff5268;
}


.history-status-ended {
    background: #202936;
    color: #9aa7b8;
}


@media (max-width: 1100px) {

    .history-summary-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 600px) {

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

}


/* =========================================================
   CREATOR DETAILSEITE
========================================================= */

.detail-back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: #78d9fb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}


.detail-back-link:hover {
    color: #ffffff;
}


.detail-page-title {
    margin-top: 0;
}


.detail-live-header,
.detail-offline-header {
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}


.detail-live-header {
    background: #3a1018;
    color: #ff5268;
    border: 1px solid #5a1e29;
}


.detail-offline-header {
    background: #202936;
    color: #9aa7b8;
    border: 1px solid #303b4a;
}


.creator-detail-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 34px;
    padding: 25px;
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            #0e1625 0%,
            #0b1522 100%
        );
    border: 1px solid #25344a;
}


.creator-detail-avatar {
    position: relative;
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: #202d42;
    border: 3px solid #28d7ff;
}


.creator-detail-avatar img,
.creator-detail-avatar-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}


.creator-detail-avatar img {
    object-fit: cover;
}


.creator-detail-avatar-fallback {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #202d42;
    font-size: 34px;
    font-weight: 900;
}


.creator-detail-identity {
    flex: 1;
    min-width: 0;
}


.creator-detail-identity h2 {
    font-size: 26px;
    overflow-wrap: anywhere;
}


.creator-detail-identity > p {
    margin-top: 5px;
    color: #8492a6;
    font-size: 14px;
}


.creator-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}


.detail-tag-active,
.detail-tag-neutral {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 9px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 800;
}


.detail-tag-active {
    background: #10271e;
    color: #56e79a;
}


.detail-tag-neutral {
    background: #1b2533;
    color: #a0adbe;
}


.creator-detail-hero-action {
    display: flex;
    align-items: center;
}


.detail-watch-live,
.detail-tiktok-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}


.detail-watch-live {
    background: #ff405a;
    color: #ffffff;
}


.detail-tiktok-button {
    background: #23c9f5;
    color: #061019;
}


.detail-section {
    margin-top: 28px;
}


.detail-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 15px;
}


.detail-section-heading h2 {
    font-size: 22px;
}


.detail-section-heading p {
    color: #758397;
    margin-top: 5px;
    font-size: 12px;
}


.detail-kpi-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 15px;
}


.detail-kpi-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 19px;
    border-radius: 14px;
    background: #0e1625;
    border: 1px solid #202a3b;
}


.detail-kpi-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #172235;
    font-size: 20px;
}


.detail-kpi-card div {
    min-width: 0;
}


.detail-kpi-card div span {
    display: block;
    color: #748298;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}


.detail-kpi-card strong {
    display: block;
    margin-top: 5px;
    font-size: 21px;
    overflow-wrap: anywhere;
}


.detail-live-kpi-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 15px;
}


.detail-stat-card {
    padding: 18px;
    border-radius: 13px;
    background: #0e1625;
    border: 1px solid #202a3b;
}


.detail-stat-card span {
    display: block;
    color: #748298;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}


.detail-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
}


.current-live-detail-card {
    padding: 21px;
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            #17111b 0%,
            #101725 55%,
            #0d1825 100%
        );
    border: 1px solid #4c2632;
}


.current-live-title span {
    display: block;
    color: #8b7280;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
}


.current-live-title strong {
    display: block;
    margin-top: 7px;
    font-size: 19px;
    line-height: 1.4;
}


.current-live-detail-metrics {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 12px;
    margin-top: 17px;
}


.current-live-detail-metrics > div {
    padding: 14px;
    border-radius: 10px;
    background: #0c131f;
    border: 1px solid #242f40;
}


.current-live-detail-metrics span {
    display: block;
    color: #748298;
    font-size: 10px;
    text-transform: uppercase;
}


.current-live-detail-metrics strong {
    display: block;
    margin-top: 5px;
    font-size: 18px;
}


.detail-empty-history {
    padding: 42px 24px;
    text-align: center;
    border-radius: 15px;
    border: 1px dashed #2a374a;
    background: #0e1625;
}


.detail-empty-history > div {
    font-size: 34px;
}


.detail-empty-history h3 {
    margin-top: 12px;
    font-size: 18px;
}


.detail-empty-history p {
    margin-top: 7px;
    color: #758397;
    font-size: 12px;
}


.creator-profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}


.creator-profile-actions .tiktok-profile-link,
.creator-profile-actions .creator-detail-link {
    margin-top: 0;
}


.creator-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    color: #ffffff;
    background: #17263a;
    border: 1px solid #2c435f;
    transition: 0.2s;
}


.creator-detail-link:hover {
    background: #1e324b;
    border-color: #3f6688;
}


.creator-identity-link {
    text-decoration: none;
    color: inherit;
}


.creator-identity-link:hover h3 {
    color: #5bdcff;
}


@media (max-width: 1050px) {

    .detail-live-kpi-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 800px) {

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


    .creator-detail-hero-action {
        width: 100%;
    }


    .detail-watch-live,
    .detail-tiktok-button {
        width: 100%;
    }


    .detail-kpi-grid,
    .detail-live-kpi-grid,
    .current-live-detail-metrics {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   LOGIN / PASSWORTSCHUTZ
========================================================= */

.logout-nav {
    margin-top: 18px;
    border-top: 1px solid #1d293a;
    border-radius: 0;
    padding-top: 20px;
    color: #ff7887;
}


.logout-nav:hover {
    color: #ffffff;
    background: transparent;
}


.login-body {
    display: block;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            #10233a 0%,
            #080d17 42%,
            #060a12 100%
        );
}


.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
}


.login-card {
    width: 100%;
    max-width: 430px;
    padding: 30px;
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            #0e1625 0%,
            #0a1320 100%
        );
    border: 1px solid #26364c;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        0 0 35px rgba(0, 174, 255, 0.08);
}


.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.login-logo {
    width: 175px;
    max-width: 70%;
    height: auto;
    object-fit: contain;
}


.login-brand-title {
    margin-top: 5px;
    font-weight: 900;
    font-size: 14px;
}


.login-heading {
    margin-top: 28px;
    text-align: center;
}


.login-heading h1 {
    font-size: 26px;
}


.login-heading p {
    margin-top: 8px;
    color: #7e8da2;
    font-size: 13px;
    line-height: 1.55;
}


.login-error {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #34151c;
    border: 1px solid #652736;
    color: #ff8795;
    font-size: 12px;
    font-weight: 700;
}


.login-form {
    margin-top: 24px;
}


.login-field {
    margin-bottom: 17px;
}


.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #b9c5d5;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}


.login-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #2a3a51;
    background: #09111d;
    color: #ffffff;
    outline: none;
    font-size: 14px;
}


.login-field input:focus {
    border-color: #23c9f5;
    box-shadow:
        0 0 0 2px rgba(35, 201, 245, 0.10);
}


.password-input-wrap {
    position: relative;
}


.password-input-wrap input {
    padding-right: 50px;
}


.password-toggle {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #172235;
    color: #ffffff;
    cursor: pointer;
}


.login-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: none;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            #20d4ff 0%,
            #0ca8e4 100%
        );
    color: #051019;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
}


.login-submit:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}


.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #1d293a;
    color: #65758b;
    font-size: 11px;
    text-align: center;
}



/* =========================================================
   CREATOR SUCHE AUF DEM DASHBOARD
========================================================= */

.creator-search-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 16px;
}


.creator-search-box {
    position: relative;
    flex: 1;
    max-width: 620px;
}


.creator-search-box input {
    width: 100%;
    min-height: 46px;
    padding: 0 48px 0 43px;
    border-radius: 11px;
    border: 1px solid #27374d;
    background: #09111d;
    color: #ffffff;
    outline: none;
    font-size: 14px;
    transition: 0.2s;
}


.creator-search-box input::placeholder {
    color: #66758a;
}


.creator-search-box input:focus {
    border-color: #23c9f5;
    box-shadow:
        0 0 0 2px rgba(35, 201, 245, 0.10);
}


.creator-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
}


.creator-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 31px;
    height: 31px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #172235;
    color: #aab6c7;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}


.creator-search-clear.visible {
    display: flex;
}


.creator-search-clear:hover {
    background: #24334a;
    color: #ffffff;
}


.creator-search-info {
    color: #748298;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}


.creator-search-empty {
    margin-bottom: 16px;
    padding: 25px 20px;
    border-radius: 13px;
    border: 1px dashed #304057;
    background: #0c1523;
    text-align: center;
}


.creator-search-empty-icon {
    font-size: 28px;
    margin-bottom: 8px;
}


.creator-search-empty strong {
    display: block;
    font-size: 15px;
}


.creator-search-empty p {
    margin-top: 6px;
    color: #758398;
    font-size: 12px;
}


@media (max-width: 760px) {

    .creator-search-wrap {
        align-items: stretch;
        flex-direction: column;
    }


    .creator-search-box {
        max-width: none;
    }


    .creator-search-info {
        white-space: normal;
    }

}


/* =========================================================
   SCHRITT 28 – PROFILBILD-VERWALTUNG
   ========================================================= */

.profile-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.creator-card-actions {
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.profile-upload-form {
    margin: 0;
}

.profile-upload-button,
.profile-auto-button,
.profile-manage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 10px;
    border: 1px solid rgba(69, 213, 255, 0.28);
    background: rgba(38, 151, 255, 0.10);
    color: #dff7ff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.profile-upload-button:hover,
.profile-auto-button:hover,
.profile-manage-link:hover {
    transform: translateY(-1px);
    border-color: rgba(69, 213, 255, 0.65);
    background: rgba(38, 151, 255, 0.18);
}

.profile-auto-button {
    border-color: rgba(146, 169, 190, 0.24);
    background: rgba(146, 169, 190, 0.08);
    color: #cbd8e3;
}

.profile-source-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.profile-source-badge.manual {
    color: #d8f7ff;
    background: rgba(0, 199, 255, 0.13);
    border: 1px solid rgba(0, 199, 255, 0.30);
}

.profile-source-badge.auto {
    color: #d7ffe8;
    background: rgba(46, 204, 113, 0.10);
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.profile-source-badge.missing {
    color: #ffe8b2;
    background: rgba(255, 184, 77, 0.10);
    border: 1px solid rgba(255, 184, 77, 0.24);
}

.profile-management-card {
    margin: 0 0 24px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(69, 213, 255, 0.18);
    background: rgba(11, 22, 38, 0.78);
}

.profile-management-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.profile-management-header h2 {
    margin: 0 0 6px;
}

.profile-management-header p {
    margin: 0;
    color: #8fa7ba;
}

.profile-management-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.profile-upload-button-large,
.profile-auto-button-large {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 14px;
}

.profile-management-note {
    margin: 14px 0 0;
    color: #7890a5;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 720px) {
    .profile-management-header {
        flex-direction: column;
    }

    .profile-management-actions {
        flex-direction: column;
    }

    .profile-upload-button-large,
    .profile-auto-button-large {
        width: 100%;
    }
}


/* =========================================================
   SCHRITT 31.1 – CREATOR KI-ANALYSE
   ========================================================= */

.ai-analysis-card {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid rgba(113, 91, 255, 0.28);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(108, 77, 255, 0.12), transparent 34%),
        rgba(10, 20, 35, 0.88);
}

.ai-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.ai-eyebrow {
    margin-bottom: 6px;
    color: #a99bff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.ai-analysis-header h2 {
    margin: 0 0 6px;
}

.ai-analysis-header p {
    margin: 0;
    color: #8ca0b3;
}

.ai-analysis-button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(139, 118, 255, 0.45);
    border-radius: 12px;
    background: rgba(108, 77, 255, 0.16);
    color: #efeaff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.ai-analysis-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ai-score-box,
.ai-progress-box,
.ai-meta-box {
    padding: 16px;
    border: 1px solid rgba(118, 139, 164, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.ai-score-box > span,
.ai-progress-box > span,
.ai-meta-box > span {
    display: block;
    margin-bottom: 8px;
    color: #748ba1;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-score-box strong,
.ai-progress-box strong,
.ai-meta-box strong {
    color: #f4f8fc;
    font-size: 21px;
}

.ai-progress-track {
    height: 6px;
    margin: 10px 0 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.ai-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6b58ff, #45d5ff);
}

.ai-summary {
    margin-bottom: 16px;
    padding: 16px;
    border-left: 3px solid #765fff;
    border-radius: 10px;
    background: rgba(118, 95, 255, 0.07);
}

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

.ai-task-card {
    padding: 18px;
    border: 1px solid rgba(118, 139, 164, 0.15);
    border-radius: 15px;
    background: rgba(5, 14, 26, 0.58);
}

.ai-task-card.done {
    opacity: 0.72;
    border-color: rgba(46, 204, 113, 0.22);
}

.ai-task-topline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-priority,
.ai-done-badge,
.ai-open-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.ai-priority.hoch {
    color: #ffd4d4;
    background: rgba(255, 79, 79, 0.12);
}

.ai-priority.mittel {
    color: #ffe7b0;
    background: rgba(255, 181, 63, 0.10);
}

.ai-priority.niedrig {
    color: #d5eaff;
    background: rgba(69, 157, 255, 0.10);
}

.ai-done-badge {
    color: #d5ffe4;
    background: rgba(46, 204, 113, 0.10);
}

.ai-open-badge {
    color: #c7d5e0;
    background: rgba(255, 255, 255, 0.05);
}

.ai-task-card h3 {
    margin: 0 0 12px;
    color: #eff5fa;
    font-size: 16px;
}

.ai-task-reason {
    color: #9db0c0;
    line-height: 1.55;
}

.ai-action-text {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(69, 213, 255, 0.055);
}

.ai-task-toggle {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(46, 204, 113, 0.28);
    border-radius: 10px;
    background: rgba(46, 204, 113, 0.08);
    color: #d8ffe6;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ai-empty-state {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px dashed rgba(139, 118, 255, 0.28);
    border-radius: 14px;
    background: rgba(108, 77, 255, 0.045);
}

.ai-empty-icon {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(108, 77, 255, 0.14);
    font-size: 25px;
}

.ai-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.ai-preview-grid > div {
    padding: 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.ai-preview-grid span,
.ai-preview-grid strong,
.ai-preview-grid small {
    display: block;
}

.ai-preview-grid span {
    color: #7969e8;
    font-size: 10px;
    font-weight: 900;
}

.ai-preview-grid strong {
    margin: 5px 0 3px;
    color: #dce5ec;
    font-size: 12px;
}

.ai-preview-grid small {
    color: #6f8497;
}

.ai-history {
    margin-top: 16px;
    color: #92a6b7;
}

.ai-history-list {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.ai-history-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
}

@media (max-width: 900px) {
    .ai-analysis-overview {
        grid-template-columns: 1fr;
    }

    .ai-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ai-analysis-card {
        padding: 17px;
    }

    .ai-analysis-header {
        flex-direction: column;
    }

    .ai-analysis-button {
        width: 100%;
    }

    .ai-preview-grid {
        grid-template-columns: 1fr;
    }

    .ai-history-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


/* =========================================================
   SCHRITT 31.2b – KI ANALYSE-DATENBASIS
   ========================================================= */

.ai-source-data {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(118, 139, 164, 0.14);
}

.ai-source-data summary {
    color: #a9bbca;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ai-source-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
}

.ai-source-grid > div {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.ai-source-grid span,
.ai-source-grid strong {
    display: block;
}

.ai-source-grid span {
    margin-bottom: 5px;
    color: #71879a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-source-grid strong {
    color: #dce7ef;
    font-size: 13px;
}

.ai-source-note {
    margin-top: 10px;
    padding: 11px 13px;
    border-radius: 9px;
    background: rgba(255, 181, 63, 0.055);
    color: #9fb0bd;
    font-size: 12px;
    line-height: 1.5;
}

.ai-source-note strong {
    color: #f0cf89;
}

@media (max-width: 700px) {
    .ai-source-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ai-source-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SCHRITT 31.2c – ECHTE GEMINI-ANALYSE
   ========================================================= */

.ai-analysis-action {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.ai-analysis-action small {
    color: #6f8497;
    font-size: 10px;
}

.ai-analysis-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 640px) {
    .ai-analysis-action {
        width: 100%;
        justify-items: stretch;
    }

    .ai-analysis-action small {
        text-align: center;
    }
}


/* =========================================================
   SCHRITT 31.2d – ANALYSE-REGELN
   ========================================================= */

.ai-analysis-rule-note {
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid rgba(69, 213, 255, 0.16);
    border-radius: 10px;
    background: rgba(69, 213, 255, 0.045);
    color: #9eb4c5;
    font-size: 12px;
    line-height: 1.5;
}

.ai-analysis-rule-note strong {
    color: #d9f5ff;
}


/* =========================================================
   SCHRITT 31.2e – ANALYSEHISTORIE & SCORE-VERLAUF
   ========================================================= */

.ai-analysis-overview-with-trend {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-trend-box {
    padding: 16px;
    border: 1px solid rgba(118, 139, 164, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.ai-trend-box > span {
    display: block;
    margin-bottom: 8px;
    color: #748ba1;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-trend-box strong {
    display: block;
    color: #f4f8fc;
    font-size: 21px;
}

.ai-trend-box strong.up {
    color: #71e69b;
}

.ai-trend-box strong.down {
    color: #ff8a8a;
}

.ai-trend-box strong.neutral {
    color: #d6e0e8;
}

.ai-trend-box small {
    display: block;
    margin-top: 6px;
    color: #7890a5;
    font-size: 10px;
}

.ai-history-entry {
    border: 1px solid rgba(118, 139, 164, 0.12);
    border-radius: 11px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.018);
}

.ai-history-entry > summary {
    list-style: none;
}

.ai-history-entry > summary::-webkit-details-marker {
    display: none;
}

.ai-history-row {
    cursor: pointer;
}

.ai-history-task-list {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(118, 139, 164, 0.10);
}

.ai-history-summary {
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(118, 95, 255, 0.055);
    color: #aebdca;
    font-size: 12px;
    line-height: 1.5;
}

.ai-history-task {
    padding: 11px 12px;
    border-radius: 9px;
    background: rgba(5, 14, 26, 0.58);
}

.ai-history-task.done {
    border-left: 3px solid rgba(46, 204, 113, 0.55);
}

.ai-history-task > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.ai-history-task p {
    margin: 7px 0;
    color: #91a5b5;
    font-size: 12px;
    line-height: 1.45;
}

.ai-history-task small {
    color: #70879a;
    font-size: 10px;
}

@media (max-width: 1100px) {
    .ai-analysis-overview-with-trend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ai-analysis-overview-with-trend {
        grid-template-columns: 1fr;
    }

    .ai-history-task > div {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   SCHRITT 32 – BACKSTAGE LIVE MONITOR
   ========================================================= */

.backstage-monitor {
    margin-top: 18px;
}

.backstage-live-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}

.backstage-live-card {
    overflow: hidden;
    border: 1px solid rgba(79, 111, 148, 0.26);
    border-radius: 20px;
    background: #0e1726;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.backstage-preview {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 25%, rgba(0, 191, 255, 0.18), transparent 36%),
        linear-gradient(180deg, #13233a, #070c14);
}

.backstage-preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(0.38) saturate(1.15);
    transform: scale(1.12);
}

.backstage-preview-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.12);
    font-size: 110px;
    font-weight: 900;
}

.backstage-preview-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 8, 14, 0.12), rgba(4, 8, 14, 0.42) 55%, rgba(4, 8, 14, 0.92));
}

.backstage-preview-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.backstage-live-pill,
.backstage-duration-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 900;
}

.backstage-live-pill {
    color: #fff;
    background: rgba(255, 44, 84, 0.90);
    box-shadow: 0 0 22px rgba(255, 44, 84, 0.28);
}

.backstage-duration-pill {
    color: #ecf9ff;
    background: rgba(6, 16, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.backstage-preview-center {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 9px;
    padding: 60px 22px 90px;
    text-align: center;
}

.backstage-avatar {
    position: relative;
    width: 108px;
    height: 108px;
    margin-bottom: 3px;
    overflow: hidden;
    border: 4px solid #1fd1ff;
    border-radius: 50%;
    background: #101b2b;
    box-shadow:
        0 0 0 5px rgba(31, 209, 255, 0.10),
        0 16px 36px rgba(0, 0, 0, 0.34);
}

.backstage-avatar img,
.backstage-avatar-fallback {
    width: 100%;
    height: 100%;
}

.backstage-avatar img {
    display: block;
    object-fit: cover;
}

.backstage-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 900;
}

.backstage-preview-label {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.backstage-preview-center small {
    max-width: 230px;
    color: rgba(220, 234, 244, 0.66);
    font-size: 11px;
    line-height: 1.4;
}

.backstage-preview-bottom {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 15px;
    z-index: 3;
}

.backstage-preview-bottom strong,
.backstage-preview-bottom span {
    display: block;
}

.backstage-preview-bottom strong {
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backstage-preview-bottom span {
    margin-top: 3px;
    color: #a9bbca;
    font-size: 12px;
}

.backstage-card-body {
    padding: 17px;
}

.backstage-stream-title > span,
.backstage-info-item > span {
    display: block;
    color: #6f8498;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.backstage-stream-title h2 {
    min-height: 44px;
    margin: 6px 0 16px;
    color: #edf7ff;
    font-size: 16px;
    line-height: 1.35;
}

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

.backstage-info-item {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(88, 116, 148, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.backstage-info-item strong {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: #e9f4fb;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backstage-info-item .backstage-live-status {
    color: #53e88b;
}

.backstage-card-actions {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.backstage-watch-button,
.backstage-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.backstage-watch-button {
    color: #071018;
    background: #29d5ff;
}

.backstage-detail-button {
    color: #d9e6ef;
    border: 1px solid rgba(83, 119, 155, 0.30);
    background: rgba(255, 255, 255, 0.035);
}

.backstage-watch-button:hover,
.backstage-detail-button:hover {
    transform: translateY(-1px);
}

@media (max-width: 1280px) {
    .backstage-live-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 760px) {
    .backstage-live-grid {
        grid-template-columns: 1fr;
    }

    .backstage-preview {
        min-height: 330px;
    }

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


/* =========================================================
   SCHRITT 33.1b – CREATOR VERWALTUNG FEINSCHLIFF
   ========================================================= */

.creator-add-main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid rgba(63, 221, 150, 0.46);
    border-radius: 10px;
    background: #24c878;
    color: #04150d;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(36, 200, 120, 0.12);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.creator-add-main-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 10px 28px rgba(36, 200, 120, 0.18);
}

.creator-profile-actions {
    flex-wrap: wrap;
}

.creator-remove-form {
    display: inline-flex;
    margin: 0;
}

.creator-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 76, 89, 0.34);
    border-radius: 9px;
    background: rgba(255, 63, 77, 0.10);
    color: #ff9ca4;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.creator-remove-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 76, 89, 0.60);
    background: rgba(255, 63, 77, 0.18);
    color: #ffd7da;
}

@media (max-width: 760px) {
    .creator-add-main-button {
        width: 100%;
    }

    .creator-remove-form,
    .creator-remove-button {
        width: 100%;
    }
}


/* =========================================================
   SCHRITT 33.2 – ADMIN DASHBOARD
   ========================================================= */

.admin-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 24px 26px;
    border: 1px solid rgba(64, 104, 148, 0.22);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(0, 198, 255, 0.11), transparent 34%),
        rgba(10, 20, 34, 0.88);
}

.admin-dashboard-eyebrow,
.admin-panel-eyebrow {
    color: #62d8ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.admin-dashboard-hero h1 {
    margin: 6px 0 6px;
    color: #f4f9fd;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.1;
}

.admin-dashboard-hero p {
    margin: 0;
    color: #8fa6b9;
    font-size: 14px;
}

.admin-dashboard-system {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    min-width: 180px;
    padding: 12px 15px;
    border: 1px solid rgba(82, 111, 143, 0.20);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-system-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: 0 0 16px currentColor;
}

.admin-system-dot.online {
    color: #41e28b;
    background: #41e28b;
}

.admin-system-dot.offline {
    color: #ff5d69;
    background: #ff5d69;
}

.admin-dashboard-system span,
.admin-dashboard-system strong {
    display: block;
}

.admin-dashboard-system span {
    color: #6f8598;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-dashboard-system strong {
    margin-top: 2px;
    color: #eaf4fb;
    font-size: 13px;
}

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

.admin-kpi-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 118px;
    padding: 18px;
    border: 1px solid rgba(64, 104, 148, 0.20);
    border-radius: 16px;
    background: rgba(12, 24, 40, 0.88);
}

.admin-kpi-card.live {
    border-color: rgba(255, 69, 85, 0.22);
    background:
        radial-gradient(circle at top right, rgba(255, 58, 75, 0.08), transparent 42%),
        rgba(12, 24, 40, 0.88);
}

.admin-kpi-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 22px;
}

.admin-kpi-copy span,
.admin-kpi-copy strong,
.admin-kpi-copy small {
    display: block;
}

.admin-kpi-copy span {
    color: #748ca0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-kpi-copy strong {
    margin: 3px 0;
    color: #f3f8fc;
    font-size: 25px;
    line-height: 1;
}

.admin-kpi-copy small {
    color: #7890a4;
    font-size: 11px;
}

.kpi-online {
    color: #4ce28d !important;
    font-size: 18px !important;
}

.kpi-offline {
    color: #ff717c !important;
    font-size: 18px !important;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.admin-dashboard-panel {
    padding: 20px;
    border: 1px solid rgba(64, 104, 148, 0.20);
    border-radius: 16px;
    background: rgba(12, 24, 40, 0.78);
}

.admin-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-panel-heading h2 {
    margin: 4px 0 0;
    color: #edf5fb;
    font-size: 17px;
}

.admin-panel-link {
    color: #51d8ff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.admin-live-summary,
.admin-empty-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 86px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.admin-live-pulse {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff4354;
    box-shadow:
        0 0 0 6px rgba(255, 67, 84, 0.09),
        0 0 22px rgba(255, 67, 84, 0.35);
}

.admin-empty-icon {
    font-size: 25px;
}

.admin-live-summary strong,
.admin-live-summary span,
.admin-empty-summary strong,
.admin-empty-summary span {
    display: block;
}

.admin-live-summary strong,
.admin-empty-summary strong {
    color: #e9f4fb;
    font-size: 13px;
}

.admin-live-summary span,
.admin-empty-summary span {
    margin-top: 4px;
    color: #8299ac;
    font-size: 11px;
    line-height: 1.45;
}

.admin-management-summary > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.admin-management-summary strong {
    color: #f2f8fc;
    font-size: 28px;
}

.admin-management-summary span {
    color: #8da3b5;
    font-size: 12px;
}

.admin-management-summary p {
    margin: 10px 0 0;
    color: #7890a4;
    font-size: 11px;
    line-height: 1.5;
}

.admin-next-step-note {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 14px 16px;
    border: 1px dashed rgba(93, 135, 178, 0.24);
    border-radius: 13px;
    background: rgba(44, 91, 137, 0.045);
}

.admin-next-step-icon {
    font-size: 24px;
}

.admin-next-step-note strong,
.admin-next-step-note p {
    display: block;
}

.admin-next-step-note strong {
    color: #dce9f2;
    font-size: 12px;
}

.admin-next-step-note p {
    margin: 3px 0 0;
    color: #7e95a8;
    font-size: 11px;
}

@media (max-width: 980px) {
    .admin-kpi-grid,
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-dashboard-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 19px;
    }

    .admin-dashboard-system {
        min-width: 0;
    }

    .admin-panel-heading {
        flex-direction: column;
    }
}


/* =========================================================
   SCHRITT 33.3 – TAGESSTATISTIKEN
   ========================================================= */

.admin-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0 12px;
}

.admin-section-heading h2 {
    margin: 4px 0 0;
    color: #edf6fc;
    font-size: 19px;
}

.admin-section-heading p {
    margin: 0;
    color: #70889b;
    font-size: 11px;
}

.admin-daily-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 12px;
}

.admin-daily-kpi-card,
.admin-attention-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(64, 104, 148, 0.18);
    border-radius: 14px;
    background: rgba(12, 24, 40, 0.72);
}

.admin-daily-icon,
.admin-attention-icon {
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 18px;
}

.admin-daily-kpi-card span,
.admin-daily-kpi-card strong,
.admin-daily-kpi-card small,
.admin-attention-card span,
.admin-attention-card strong,
.admin-attention-card small {
    display: block;
}

.admin-daily-kpi-card span,
.admin-attention-card span {
    overflow: hidden;
    color: #748b9f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-daily-kpi-card strong,
.admin-attention-card strong {
    margin: 3px 0;
    color: #f1f7fb;
    font-size: 18px;
    line-height: 1.1;
}

.admin-daily-kpi-card small,
.admin-attention-card small {
    color: #70879a;
    font-size: 9px;
    line-height: 1.35;
}

.admin-attention-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 12px;
}

.admin-created-at-note {
    padding: 11px 13px;
    border: 1px dashed rgba(255, 181, 63, 0.20);
    border-radius: 10px;
    background: rgba(255, 181, 63, 0.035);
    color: #8298aa;
    font-size: 10px;
    line-height: 1.45;
}

.admin-created-at-note strong {
    color: #e5c37d;
}

@media (max-width: 1200px) {
    .admin-daily-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .admin-daily-kpi-grid,
    .admin-attention-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .admin-daily-kpi-grid,
    .admin-attention-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SCHRITT 33.4 – HEUTE IM FOKUS + KI-TAGESIMPULS
   ========================================================= */

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

.admin-insight-panel {
    padding: 20px;
    border: 1px solid rgba(64, 104, 148, 0.20);
    border-radius: 16px;
    background: rgba(12, 24, 40, 0.78);
}

.ai-daily-panel {
    border-color: rgba(118, 95, 255, 0.24);
    background:
        radial-gradient(circle at top right, rgba(118, 95, 255, 0.09), transparent 42%),
        rgba(12, 24, 40, 0.78);
}

.admin-focus-list,
.ai-daily-tip-list {
    display: grid;
    gap: 10px;
}

.admin-focus-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.admin-focus-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
}

.admin-focus-item strong,
.admin-focus-item span {
    display: block;
}

.admin-focus-item strong {
    color: #e7f1f8;
    font-size: 12px;
}

.admin-focus-item span {
    margin-top: 4px;
    color: #8197aa;
    font-size: 10px;
    line-height: 1.45;
}

.ai-daily-generated {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(118, 95, 255, 0.12);
    color: #c9bfff;
    font-size: 9px;
    font-weight: 900;
}

.ai-daily-tip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(118, 95, 255, 0.11);
    border-radius: 11px;
    background: rgba(118, 95, 255, 0.04);
}

.ai-daily-number {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: rgba(118, 95, 255, 0.12);
    color: #b7a9ff;
    font-size: 10px;
    font-weight: 900;
}

.ai-daily-tip strong {
    color: #eeeaff;
    font-size: 12px;
}

.ai-daily-tip p {
    margin: 5px 0 0;
    color: #93a5b6;
    font-size: 10px;
    line-height: 1.5;
}

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


/* =========================================================
   SCHRITT 34.2 – MEIN PROFIL
   ========================================================= */

.profile-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(64, 104, 148, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(0, 196, 255, 0.08), transparent 36%),
        rgba(10, 20, 34, 0.84);
}

.profile-page-header h1 {
    margin: 5px 0;
    color: #f4f9fd;
    font-size: 28px;
}

.profile-page-header p {
    margin: 0;
    color: #839aAD;
    font-size: 12px;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.profile-role-badge.admin {
    color: #ccefff;
    border: 1px solid rgba(51, 199, 255, 0.28);
    background: rgba(51, 199, 255, 0.09);
}

.profile-role-badge.manager {
    color: #d9ffe8;
    border: 1px solid rgba(61, 220, 142, 0.26);
    background: rgba(61, 220, 142, 0.08);
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
}

.profile-summary-card,
.profile-edit-card {
    border: 1px solid rgba(64, 104, 148, 0.20);
    border-radius: 17px;
    background: rgba(12, 24, 40, 0.80);
}

.profile-summary-card {
    padding: 24px 20px;
    text-align: center;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    border: 3px solid #28ccff;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #203753, #09121f);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    box-shadow:
        0 0 0 5px rgba(40, 204, 255, 0.08),
        0 15px 35px rgba(0, 0, 0, 0.28);
}

.profile-summary-card h2 {
    margin: 0;
    color: #f3f8fc;
    font-size: 19px;
}

.profile-summary-card > span {
    display: block;
    margin-top: 4px;
    color: #70879a;
    font-size: 11px;
}

.profile-account-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(54, 215, 133, 0.07);
    color: #7be7a9;
    font-size: 10px;
    font-weight: 800;
}

.profile-account-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43e28a;
    box-shadow: 0 0 11px rgba(67, 226, 138, 0.62);
}

.profile-summary-data {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    text-align: left;
}

.profile-summary-data > div {
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.profile-summary-data span,
.profile-summary-data strong {
    display: block;
}

.profile-summary-data span {
    color: #6e8599;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-summary-data strong {
    margin-top: 4px;
    color: #dfeaf2;
    font-size: 11px;
}

.profile-edit-card {
    padding: 22px;
}

.profile-card-heading {
    margin-bottom: 18px;
}

.profile-card-heading h2 {
    margin: 4px 0 0;
    color: #edf6fc;
    font-size: 18px;
}

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

.profile-wide {
    grid-column: 1 / -1;
}

.profile-form-grid .form-group small {
    display: block;
    margin-top: 6px;
    color: #657d91;
    font-size: 9px;
    line-height: 1.45;
}

.profile-form-grid input[readonly] {
    opacity: 0.66;
    cursor: not-allowed;
}

.profile-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.profile-save-bar strong,
.profile-save-bar span {
    display: block;
}

.profile-save-bar strong {
    color: #dce8f1;
    font-size: 11px;
}

.profile-save-bar span {
    margin-top: 3px;
    color: #70879a;
    font-size: 9px;
}

.profile-save-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 15px;
    border: 0;
    border-radius: 10px;
    background: #27c8f3;
    color: #05121a;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.profile-save-button:hover {
    filter: brightness(1.08);
}

.profile-next-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 14px 16px;
    border: 1px dashed rgba(83, 130, 175, 0.22);
    border-radius: 12px;
    background: rgba(44, 91, 137, 0.04);
}

.profile-next-icon {
    font-size: 22px;
}

.profile-next-info strong,
.profile-next-info p {
    display: block;
}

.profile-next-info strong {
    color: #d9e7f0;
    font-size: 11px;
}

.profile-next-info p {
    margin: 3px 0 0;
    color: #71899d;
    font-size: 10px;
    line-height: 1.45;
}

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

@media (max-width: 650px) {
    .profile-page-header,
    .profile-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

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

    .profile-wide {
        grid-column: auto;
    }

    .profile-save-button {
        width: 100%;
    }
}


/* =========================================================
   SCHRITT 34.3a – LIVE MANAGER ROLLEN
   ========================================================= */

.manager-permission-note {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(66, 211, 145, 0.18);
    border-radius: 10px;
    background: rgba(66, 211, 145, 0.045);
    color: #8da5b8;
    font-size: 10px;
    line-height: 1.5;
}

.manager-permission-note strong {
    color: #83e9b1;
}


/* =========================================================
   SCHRITT 34.3b – LIVE MANAGER KONTEN
   ========================================================= */

.manager-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(64, 104, 148, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(70, 210, 145, 0.08), transparent 34%),
        rgba(10, 20, 34, 0.84);
}

.manager-page-header h1 {
    margin: 5px 0;
    color: #f4f9fd;
    font-size: 28px;
}

.manager-page-header p {
    margin: 0;
    color: #839aad;
    font-size: 12px;
}

.manager-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(61, 220, 142, 0.25);
    border-radius: 999px;
    background: rgba(61, 220, 142, 0.07);
    color: #85eab2;
    font-size: 10px;
    font-weight: 900;
}

.manager-account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 16px;
}

.manager-create-card,
.manager-list-card {
    padding: 22px;
    border: 1px solid rgba(64, 104, 148, 0.20);
    border-radius: 17px;
    background: rgba(12, 24, 40, 0.80);
}

.manager-rights-preview {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(65, 210, 143, 0.16);
    border-radius: 11px;
    background: rgba(65, 210, 143, 0.035);
}

.manager-rights-preview > strong {
    color: #dce9f1;
    font-size: 11px;
}

.manager-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.manager-rights-grid span {
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: #8ea4b6;
    font-size: 9px;
}

.manager-user-list {
    display: grid;
    gap: 9px;
}

.manager-user-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(65, 99, 133, 0.15);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.022);
}

.manager-user-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(46, 201, 246, 0.75);
    border-radius: 50%;
    background: #0d1a2a;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.manager-user-main strong,
.manager-user-main span,
.manager-user-main small,
.manager-user-status span,
.manager-user-status small {
    display: block;
}

.manager-user-main strong {
    color: #e9f3f9;
    font-size: 12px;
}

.manager-user-main span {
    margin-top: 2px;
    color: #71899d;
    font-size: 10px;
}

.manager-user-main small {
    margin-top: 5px;
    color: #8197a8;
    font-size: 9px;
}

.manager-user-status {
    min-width: 100px;
    text-align: right;
}

.manager-active {
    color: #55e796;
    font-size: 9px;
    font-weight: 900;
}

.manager-inactive {
    color: #ff7f89;
    font-size: 9px;
    font-weight: 900;
}

.manager-user-status small {
    margin-top: 5px;
    color: #657c8f;
    font-size: 8px;
}

.manager-security-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 15px;
    padding: 13px 15px;
    border: 1px dashed rgba(84, 132, 178, 0.22);
    border-radius: 11px;
    background: rgba(44, 91, 137, 0.035);
}

.manager-security-note strong {
    color: #d9e6ef;
    font-size: 11px;
}

.manager-security-note p {
    margin: 3px 0 0;
    color: #71899c;
    font-size: 9px;
    line-height: 1.5;
}

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

@media (max-width: 650px) {
    .manager-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .manager-rights-grid {
        grid-template-columns: 1fr;
    }

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

    .manager-user-status {
        grid-column: 1 / -1;
        text-align: left;
    }
}


/* =========================================================
   SCHRITT 34.3c – MANAGER VERWALTUNG
   ========================================================= */

.manager-admin-card {
    border: 1px solid rgba(65, 99, 133, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.018);
}

.manager-admin-card > summary {
    list-style: none;
    cursor: pointer;
}

.manager-admin-card > summary::-webkit-details-marker {
    display: none;
}

.manager-admin-card[open] > summary {
    border-bottom: 1px solid rgba(67, 103, 139, 0.14);
    background: rgba(255, 255, 255, 0.025);
}

.manager-admin-tools {
    display: grid;
    gap: 14px;
    padding: 15px;
}

.manager-edit-form {
    margin: 0;
}

.manager-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.manager-tool-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.manager-small-button {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 9px;
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}

.manager-small-button.primary {
    border: 1px solid rgba(46, 201, 246, 0.30);
    background: rgba(46, 201, 246, 0.10);
    color: #8fe7ff;
}

.manager-small-button.password {
    border: 1px solid rgba(132, 112, 255, 0.28);
    background: rgba(132, 112, 255, 0.09);
    color: #c8beff;
}

.manager-small-button.danger {
    border: 1px solid rgba(255, 79, 91, 0.30);
    background: rgba(255, 79, 91, 0.09);
    color: #ff9da5;
}

.manager-small-button.success {
    border: 1px solid rgba(65, 218, 144, 0.30);
    background: rgba(65, 218, 144, 0.09);
    color: #8aebb7;
}

.manager-admin-divider {
    height: 1px;
    background: rgba(72, 105, 139, 0.12);
}

.manager-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.manager-toggle-row strong,
.manager-toggle-row span {
    display: block;
}

.manager-toggle-row strong {
    color: #dce8f0;
    font-size: 10px;
}

.manager-toggle-row span {
    margin-top: 3px;
    color: #72899c;
    font-size: 9px;
}

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

    .manager-toggle-row {
        align-items: stretch;
        flex-direction: column;
    }

    .manager-small-button {
        width: 100%;
    }
}
