/* Mobile Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    /*
     * Liegt unterhalb der globalen, fixed-top sw-navbar (Höhe ca. 80px),
     * damit der Hamburger auf Mobile sichtbar bleibt und nicht vom
     * Brand-Logo der Hauptnavigation verdeckt wird. Safe-Area beruecksichtigt
     * den iOS-Notch.
     */
    top: calc(80px + env(safe-area-inset-top, 0px) + 12px);
    left: 16px;
    z-index: 1060;
    background: var(--primary-color);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.sidebar-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 65, 164, 0.3);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    border-right: 1px solid rgba(75, 108, 183, 0.2);
    z-index: 1040;
    transition: left 0.3s ease, box-shadow 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-gutter: stable;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.show {
    left: 0;
}

.sidebar-nav {
    list-style: none;
    padding: 80px 0 20px 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.35;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-left-color 0.2s ease, box-shadow 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(75, 108, 183, 0.1);
    color: var(--text-light);
    border-left-color: var(--accent-color);
}

.sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.18);
    color: #ffffff;
    border-left-color: #60a5fa;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
}

.sidebar-nav a.active i {
    color: #93c5fd;
}

.sidebar-nav a i {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
    font-size: 1.1rem;
}

.faq-embed-wrap {
    margin-top: 1rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(75, 108, 183, 0.2);
    background: rgba(13, 27, 62, 0.35);
}

.faq-embed-frame {
    width: 100%;
    min-height: 76vh;
    border: 0;
    background: transparent;
    display: block;
}

.faq-dashboard-intro {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.faq-dashboard-panel {
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 18px;
}

.faq-dashboard-panel h4 {
    margin: 0 0 8px;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
}

.faq-dashboard-panel p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.92rem;
}

.faq-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

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

.faq-dashboard-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(13, 27, 62, 0.52);
    border: 1px solid rgba(75, 108, 183, 0.22);
    border-radius: 12px;
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.faq-dashboard-link:hover,
.faq-dashboard-link:focus-visible {
    color: inherit;
    transform: translateY(-1px);
    border-color: rgba(145, 70, 255, 0.4);
    background: rgba(13, 27, 62, 0.7);
}

.faq-dashboard-link strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.faq-dashboard-link span {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
}

.faq-embed-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 12px;
}

.faq-embed-chip {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(13, 27, 62, 0.6);
    color: var(--text-light);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-embed-chip:hover,
.faq-embed-chip:focus-visible {
    border-color: rgba(145, 70, 255, 0.45);
    background: rgba(100, 65, 164, 0.2);
    color: var(--accent-color);
}

.faq-embed-meta {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

@media (max-width: 991px) {
    .faq-dashboard-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .faq-dashboard-quicklinks {
        grid-template-columns: 1fr;
    }

    .faq-embed-meta {
        width: 100%;
        margin-left: 0;
    }
}

.user-action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.user-actions-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.user-actions-primary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.user-actions-primary .btn,
.user-actions-primary form {
    width: 100%;
}

.user-actions-details {
    margin-top: 8px;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.35);
    overflow: visible;
}

.user-actions-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary, #cbd5e1);
    border-bottom: 1px solid transparent;
}

.user-actions-details > summary::-webkit-details-marker {
    display: none;
}

.user-actions-details[open] > summary {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

.user-actions-details[open] {
    z-index: 40;
}

.user-actions-details > summary::after {
    content: '+';
    font-size: 0.9rem;
    color: #93c5fd;
}

.user-actions-details[open] > summary::after {
    content: '\2212';
}

.user-actions-details > .user-action-stack {
    padding: 10px;
}

.admin-users-table-wrap {
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.admin-users-table-wrap:focus-visible {
    outline: 2px solid rgba(56, 189, 248, .8);
    outline-offset: 2px;
}

@media (min-width: 992px) {
    .admin-users-table-wrap {
        overflow: visible;
    }

    .actions-cell {
        position: relative;
        width: 170px;
        min-width: 170px;
    }

    .user-actions-details[open] > summary {
        border-bottom-color: transparent;
        background: rgba(30, 41, 59, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .user-actions-details[open] > .user-action-stack {
        position: absolute;
        top: calc(100% + 8px);
        bottom: auto;
        right: 0;
        z-index: 60;
        width: min(720px, calc(100vw - 48px));
        max-height: min(76vh, 860px);
        max-height: var(--user-action-menu-max-height, min(76vh, 860px));
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding: 12px;
        border: 1px solid rgba(96, 165, 250, 0.24);
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(18, 27, 58, 0.98), rgba(12, 18, 40, 0.98));
        box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .user-actions-details.user-actions-details-open-up[open] > .user-action-stack {
        top: auto;
        bottom: calc(100% + 8px);
    }

    .user-actions-details.user-actions-details-open-down[open] > .user-action-stack {
        top: calc(100% + 8px);
        bottom: auto;
    }
}

.admin-user-row.user-chat-open > td {
    border-bottom-color: transparent;
}

.admin-user-expanded-row td {
    border-top: none !important;
    padding: 0 12px 12px !important;
}

.admin-user-expanded-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 12px;
    align-items: start;
}

.user-action-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.user-action-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.user-action-divider {
    margin: 4px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(239, 68, 68, 0.22);
}

.user-action-divider-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fca5a5;
}

.user-action-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-top: 4px;
}

.user-action-section-hint {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.7);
    margin: -2px 0 6px;
}

.discord-runtime-support-section .user-action-section-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.discord-runtime-status-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.discord-runtime-route-count {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: rgba(226, 232, 240, 0.84);
    background: rgba(15, 23, 42, 0.45);
    font-size: 0.72rem;
    font-weight: 700;
}

.discord-runtime-admin-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discord-runtime-admin-group-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #c4b5fd;
}

.discord-runtime-empty {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px dashed rgba(148, 163, 184, 0.22);
    color: rgba(203, 213, 225, 0.72);
    background: rgba(15, 23, 42, 0.28);
    font-size: 0.76rem;
}

.discord-runtime-route-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 9px;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(15, 23, 42, 0.36);
}

.discord-runtime-route-card.is-inactive {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(30, 41, 59, 0.34);
}

.discord-runtime-route-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.discord-runtime-route-head strong {
    color: #e5f0ff;
    font-size: 0.86rem;
}

.discord-runtime-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 7px;
}

.discord-runtime-meta-grid span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 8px;
    color: rgba(226, 232, 240, 0.82);
    background: rgba(2, 6, 23, 0.28);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.discord-runtime-meta-grid strong {
    color: rgba(147, 197, 253, 0.9);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.discord-runtime-mini-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.32);
}

.discord-runtime-mini-row.is-error {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(127, 29, 29, 0.14);
}

.discord-runtime-mini-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.discord-runtime-mini-row strong {
    color: #f8fafc;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.discord-runtime-mini-row span,
.discord-runtime-mini-row small {
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.discord-runtime-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.discord-runtime-mini-badge.state-queued {
    color: #fde68a;
    background: rgba(120, 53, 15, 0.42);
}

.discord-runtime-mini-badge.state-delivered,
.discord-runtime-mini-badge.state-acked {
    color: #bbf7d0;
    background: rgba(20, 83, 45, 0.42);
}

.discord-runtime-mini-badge.state-error {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.58);
}

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

.dm-template-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: rgba(37, 99, 235, 0.1);
    color: #dbeafe;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
}

.dm-template-btn:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.2);
}

.admin-user-chat-inline {
    min-width: 0;
}

.admin-user-chat-inline .dm-history-box {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.admin-user-expanded-panel .user-action-stack {
    padding: 0;
}

.admin-users-toolbar {
    display: grid;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.2));
}

.admin-users-filter-form {
    display: grid;
    grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(140px, auto));
    gap: 8px;
    align-items: center;
}

.admin-users-search-group {
    min-width: 0;
}

.admin-users-per-page {
    min-width: 140px;
}

.admin-users-meta {
    font-size: 0.82rem;
    color: var(--text-secondary, #b9c3e4);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-users-meta strong {
    color: #f8fafc;
    font-weight: 700;
}

.admin-users-quickfilters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin: 0;
}

.admin-users-role-legend {
    margin: 10px 0 12px;
    padding: 11px 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.22));
}

.admin-users-role-legend-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 8px;
}

.admin-users-role-legend-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #f8fafc;
}

.admin-users-role-legend-copy {
    font-size: 0.72rem;
    color: #94a3b8;
}

.admin-users-role-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.admin-users-role-legend-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.34);
}

.admin-users-role-legend-item .rank-badge {
    align-self: flex-start;
    transform: scale(0.94);
    transform-origin: left center;
}

.admin-users-role-legend-text {
    font-size: 0.71rem;
    line-height: 1.28;
    color: #cbd5e1;
}

.admin-users-quickfilter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.34);
}

.admin-users-quickfilter-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #93c5fd;
}

.admin-users-quickfilters .form-select,
.admin-users-quickfilters .btn {
    width: 100%;
    min-height: 36px;
    font-size: 0.82rem;
}

.admin-users-table {
    --bs-table-bg: transparent;
    --bs-table-color: #dbe7ff;
    --bs-table-hover-bg: rgba(59, 130, 246, 0.06);
    margin-bottom: 0;
}

.admin-users-table thead th {
    font-size: 0.73rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #bcd0ff;
    background: rgba(10, 18, 41, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

.admin-users-table tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
    border-color: rgba(148, 163, 184, 0.1);
    vertical-align: top;
}

.admin-users-table .admin-user-id-cell {
    width: 1%;
    max-width: 72px;
    white-space: nowrap;
    color: #93a4c7;
    font-variant-numeric: tabular-nums;
}

.admin-user-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-user-name-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.admin-user-name {
    font-weight: 700;
    color: #f8fafc;
}

.admin-user-id-pill {
    display: inline-flex;
    align-items: center;
    max-width: 82px;
    min-width: 0;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.7rem;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.22);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.admin-user-discord {
    font-family: var(--bs-font-monospace, monospace);
    color: #cbd5e1;
}

.admin-user-attention-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.admin-users-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.73rem;
    font-weight: 700;
    border: 1px solid transparent;
    width: fit-content;
}

.admin-users-chip.api-ok {
    color: #86efac;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.35);
}

.admin-users-chip.api-expired {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
}

.admin-users-chip.api-inactive {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
}

.admin-users-chip.api-missing {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.16);
    border-color: rgba(148, 163, 184, 0.32);
}

.customer-scout-shell {
    display: grid;
    gap: 24px;
}

.customer-scout-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: none;
}

.customer-scout-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.customer-scout-header {
    margin-bottom: 0;
}

.customer-scout-hero-copy {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.customer-scout-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c4d4ff;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.18);
}

.customer-scout-hero-message {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.45;
    color: var(--text-light);
    max-width: 760px;
}

.customer-scout-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-scout-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-light);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

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

.customer-scout-kpi {
    display: grid;
    gap: 6px;
    padding: 14px;
    min-height: 118px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.025);
}

.customer-scout-kpi-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #9ca3af);
}

.customer-scout-kpi-value {
    font-size: 1.02rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
}

.customer-scout-kpi-copy {
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.customer-scout-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.customer-scout-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
    color: var(--text-secondary);
}

.customer-scout-banner i {
    margin-top: 2px;
}

.customer-scout-banner.is-warning {
    border-color: rgba(245, 158, 11, 0.18);
    background: rgba(245, 158, 11, 0.08);
}

.customer-scout-banner.is-info {
    border-color: rgba(59, 130, 246, 0.18);
    background: rgba(59, 130, 246, 0.08);
}

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

.customer-scout-story-card {
    overflow: hidden;
}

.customer-scout-story-body {
    padding: 16px;
}

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

.customer-scout-story-block {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 14px;
    min-height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.025);
}

.customer-scout-story-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #9ca3af);
}

.customer-scout-story-quote {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    color: #f8fafc;
}

.customer-scout-story-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.customer-scout-story-list li {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.customer-scout-filter-card {
    position: relative;
    overflow: hidden;
}

.customer-scout-filter-card::before {
    display: none;
}

.customer-scout-filter-body {
    padding: 16px;
}

.customer-scout-filter-form {
    gap: 12px 0;
}

.customer-scout-filter-form .admin-form-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}

.customer-scout-filter-actions {
    margin-top: 4px;
}

.customer-scout-status-grid .admin-status-item {
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.customer-scout-results-card {
    overflow: hidden;
}

.customer-scout-loading-state {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.customer-scout-loading-spinner {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.22);
    border-top-color: #60a5fa;
    flex: 0 0 auto;
    animation: customerScoutSpin 0.9s linear infinite;
}

.customer-scout-loading-copy {
    display: grid;
    gap: 4px;
}

.customer-scout-loading-copy strong {
    color: var(--text-light);
    font-size: 0.92rem;
}

.customer-scout-loading-copy span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

.customer-scout-partial-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 0 16px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.customer-scout-partial-note i {
    margin-top: 2px;
    color: #60a5fa;
}

.customer-scout-table-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 0 14px;
}

.customer-scout-table-summary {
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 700;
}

.customer-scout-table-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-scout-page-size-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.customer-scout-page-size-label .form-select {
    width: auto;
    min-width: 82px;
}

.customer-scout-pagination {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.customer-scout-pagination.is-hidden {
    display: none;
}

.customer-scout-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 34px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.customer-scout-page-btn:hover,
.customer-scout-page-btn:focus-visible {
    background: rgba(37, 99, 235, 0.28);
    border-color: rgba(147, 197, 253, 0.72);
    color: #f8fafc;
    outline: none;
}

.customer-scout-page-btn.is-active {
    background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
    border-color: rgba(147, 197, 253, 0.82);
    color: #fff;
}

.customer-scout-page-btn:disabled {
    cursor: default;
    opacity: 0.42;
    background: rgba(15, 23, 42, 0.48);
    border-color: rgba(148, 163, 184, 0.18);
    color: #94a3b8;
}

.customer-scout-page-ellipsis {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0 2px;
}

.customer-scout-results-card .table-responsive {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.customer-scout-table {
    min-width: 1380px;
}

.customer-scout-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(15, 23, 42, 0.98);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom-color: rgba(148, 163, 184, 0.16);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.customer-scout-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-transform: inherit;
    cursor: pointer;
}

.customer-scout-sort-btn i {
    color: #60a5fa;
    font-size: 0.66rem;
    opacity: 0.72;
}

.customer-scout-sort-btn:hover,
.customer-scout-sort-btn:focus-visible,
.customer-scout-sort-btn.is-active {
    color: #dbeafe;
    outline: none;
}

.customer-scout-sort-btn.is-active i {
    opacity: 1;
}

.customer-scout-table tbody td {
    vertical-align: top;
    transition: background-color 0.15s ease;
}

/* Hover-Hervorhebung ohne transform: transform auf <tr> löst in Kombination mit
   position:sticky in der Aktions-Spalte ein sichtbares Re-Layout / "Skalieren"
   beim Mouse-Move aus. Stattdessen reine Background-Tönung. */
.customer-scout-table tbody tr:hover > td {
    background-color: rgba(59, 130, 246, 0.06);
}

.customer-scout-table th:last-child,
.customer-scout-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: -12px 0 24px rgba(2, 6, 23, 0.26);
}

/* Sticky-Aktionsspalte behält ihren eigenen, opaken Hintergrund auch beim Hover,
   damit der durchscheinende Tabellen-Hover-Tint nicht doppelt rendert. */
.customer-scout-table tbody tr:hover > td:last-child {
    background-color: rgba(15, 23, 42, 0.96);
}

.customer-scout-channel-cell {
    min-width: 250px;
}

.customer-scout-channel-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
}

.customer-scout-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #93c5fd;
    text-decoration: none;
}

.customer-scout-channel-link:hover {
    color: #dbeafe;
}

.customer-scout-channel-title {
    margin-top: 8px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.customer-scout-angle-cell {
    min-width: 320px;
}

.customer-scout-ampel {
    display: grid;
    gap: 10px;
}

.customer-scout-ampel-step {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.32);
}

.customer-scout-ampel-dot {
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.customer-scout-ampel-step.is-red .customer-scout-ampel-dot {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.customer-scout-ampel-step.is-yellow .customer-scout-ampel-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.customer-scout-ampel-step.is-green .customer-scout-ampel-dot {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.customer-scout-ampel-body {
    display: grid;
    gap: 4px;
}

.customer-scout-ampel-kicker {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.customer-scout-ampel-headline {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f8fafc;
}

.customer-scout-ampel-copy {
    font-size: 0.74rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.customer-scout-ampel-detail {
    font-size: 0.72rem;
    line-height: 1.45;
    color: #94a3b8;
}

.customer-scout-angle-copy {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.customer-scout-angle-meta {
    font-size: 0.73rem;
    line-height: 1.45;
    color: #94a3b8;
}

.customer-scout-actions-cell {
    min-width: 320px;
}

.customer-scout-actions-cell .streamer-scout-actions {
    align-items: stretch;
}

.customer-scout-actions-cell > .streamer-scout-actions {
    flex-direction: column;
}

.customer-scout-action-body .streamer-scout-actions {
    flex-direction: row;
}

.customer-scout-panel-row td {
    position: static !important;
    right: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
    padding-top: 0;
    background: rgba(15, 23, 42, 0.86) !important;
}

.customer-scout-panel-cell {
    padding-top: 8px;
    padding-left: 14px;
    padding-right: 14px;
}

@keyframes customerScoutSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1280px) {
    .customer-scout-hero-grid,
    .customer-scout-overview-grid {
        grid-template-columns: 1fr;
    }

    .customer-scout-story-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .customer-scout-hero {
        padding: 20px;
        border-radius: 16px;
    }

    .customer-scout-kpi-grid,
    .customer-scout-banner-grid {
        grid-template-columns: 1fr;
    }

    .customer-scout-hero-message {
        font-size: 1.02rem;
    }

    .customer-scout-table th:last-child,
    .customer-scout-table td:last-child {
        position: static;
        box-shadow: none;
    }
}

.streamer-scout-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.streamer-scout-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.streamer-scout-table-note {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 8px;
}

.streamer-scout-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.streamer-scout-product-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.73rem;
    font-weight: 700;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.streamer-scout-priority-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.73rem;
    font-weight: 700;
}

.streamer-scout-priority-pill.priority-danger {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.streamer-scout-priority-pill.priority-warning {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.streamer-scout-priority-pill.priority-secondary {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.32);
}

.streamer-scout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.streamer-scout-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(30, 41, 59, 0.45);
    color: #e2e8f0;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.streamer-scout-action-btn:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.36);
}

.streamer-scout-action-btn.is-primary {
    border-color: rgba(129, 140, 248, 0.36);
    background: rgba(79, 70, 229, 0.18);
    color: #e0e7ff;
}

.streamer-scout-action-btn.is-success {
    border-color: rgba(52, 211, 153, 0.34);
    background: rgba(5, 150, 105, 0.18);
    color: #d1fae5;
}

.streamer-scout-action-panel {
    margin-top: 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.36);
    overflow: hidden;
}

.streamer-scout-action-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #dbeafe;
}

.streamer-scout-action-panel > summary::-webkit-details-marker {
    display: none;
}

.streamer-scout-action-panel > summary::after {
    content: '+';
    color: #93c5fd;
}

.streamer-scout-action-panel[open] > summary::after {
    content: '\2212';
}

.streamer-scout-action-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.95fr);
    align-items: start;
    gap: 10px;
    padding: 0 12px 12px;
}

.streamer-scout-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.streamer-scout-action-side {
    display: grid;
    gap: 10px;
    align-content: start;
}

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

.streamer-scout-field.full {
    grid-column: 1 / -1;
}

.streamer-scout-field label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #93c5fd;
}

.streamer-scout-field .admin-form-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #93c5fd;
}

.streamer-scout-textarea {
    min-height: 42px;
    resize: vertical;
    font-size: 0.78rem;
}

.streamer-scout-panel-actions {
    align-items: stretch;
}

.streamer-scout-panel-actions .streamer-scout-action-btn {
    flex: 1 1 calc(50% - 4px);
}

.streamer-scout-status {
    font-size: 0.74rem;
    color: #93c5fd;
    min-height: 18px;
}

.streamer-scout-status.is-success {
    color: #86efac;
}

.streamer-scout-status.is-error {
    color: #fca5a5;
}

@media (max-width: 1200px) {
    .customer-scout-actions-cell {
        min-width: 300px;
    }

    .streamer-scout-action-body {
        grid-template-columns: 1fr;
    }

    .streamer-scout-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .customer-scout-actions-cell {
        min-width: 320px;
    }

    .streamer-scout-panel-actions .streamer-scout-action-btn {
        flex-basis: 100%;
    }

    .streamer-scout-action-grid {
        grid-template-columns: 1fr;
    }
}

.admin-users-chip.trial-active {
    color: #86efac;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.35);
}

.admin-users-chip.trial-used {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
}

.admin-users-chip.trial-none {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.16);
    border-color: rgba(148, 163, 184, 0.32);
}

.admin-user-row.user-needs-attention {
    box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.7);
}

.status-cell,
.role-cell,
.api-cell,
.runtime-cell,
.timeline-cell,
.actions-cell {
    min-width: 0;
}

.timeline-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8fb2ff;
}

.timeline-value {
    font-size: 0.79rem;
    color: #dbe7ff;
}

.api-hint {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.25;
    margin-top: 4px;
}

.runtime-state-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.runtime-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    width: fit-content;
    min-width: 92px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.runtime-pill.runtime-online {
    color: #86efac;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.runtime-pill.runtime-stale {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.runtime-pill.runtime-offline {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.32);
}

/* App-Nutzungsuebersicht je Benutzer: kompakte Chip-Liste aller je gestarteten Apps. */
.runtime-apps-used {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.runtime-apps-used-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #94a3b8);
}

.runtime-app-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.7rem;
    line-height: 1.4;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(100, 116, 139, 0.16);
    color: #cbd5e1;
}

.runtime-app-chip > i {
    font-size: 0.5rem;
}

.runtime-app-chip.runtime-app-online {
    color: #86efac;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.35);
}

.runtime-app-chip.runtime-app-stale {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
}

.runtime-app-chip.runtime-app-offline {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.16);
    border-color: rgba(148, 163, 184, 0.32);
}

/* Lizenziert/freigeschaltet ohne Runtime-Heartbeat (SE-Guard, Live-Uebersetzung). */
.runtime-app-chip.runtime-app-enabled {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.35);
}

.runtime-hint {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.25;
    max-width: 180px;
    word-break: break-word;
}

.runtime-session-card .runtime-hint {
    max-width: none;
    text-align: left;
    font-size: 0.78rem;
}

/* Aufklappbare Geräte-Details neben dem kompakten Hint. */
.runtime-hint-extra {
    display: inline-block;
    margin: 0;
}
.runtime-hint-extra > summary {
    list-style: none;
    cursor: pointer;
    color: var(--text-muted, #94a3b8);
    font-size: 0.72rem;
    padding: 0 0.25rem;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: color .12s ease, background .12s ease;
}
.runtime-hint-extra > summary::-webkit-details-marker { display: none; }
.runtime-hint-extra > summary:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
}
.runtime-hint-extra[open] > summary {
    color: #38bdf8;
}
.runtime-hint-extra .runtime-hint-details {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    word-break: break-word;
}

.runtime-session-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 6px;
}

.runtime-session-meta-line {
    margin-bottom: 10px;
}

.obsbot-remote-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(139, 92, 246, 0.22);
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 32%),
        linear-gradient(155deg, rgba(8, 14, 31, 0.96), rgba(17, 24, 39, 0.9));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.obsbot-remote-card--overview {
}

.obsbot-remote-card::before {
    content: "";
    position: absolute;
    top: -82px;
    right: -52px;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 72%);
    pointer-events: none;
}

.obsbot-remote-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.obsbot-remote-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
}

.obsbot-remote-copy {
    flex: 1 1 100%;
    min-width: 0;
}

.obsbot-remote-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    margin-bottom: 8px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.22);
    background: rgba(139, 92, 246, 0.12);
    color: #ddd6fe;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.obsbot-remote-kicker i {
    color: #c084fc;
}

.obsbot-remote-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 4px;
}

.obsbot-remote-title-row h5 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.obsbot-remote-status {
    gap: 6px;
    padding: 4px 9px;
    font-size: 0.68rem;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.16) inset;
}

.obsbot-remote-status i {
    font-size: 0.42rem;
}

.obsbot-remote-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.obsbot-remote-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #dbeafe;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.obsbot-remote-meta-chip i {
    flex: 0 0 auto;
    color: #93c5fd;
}

.obsbot-remote-meta-chip span {
    min-width: 0;
    word-break: break-word;
}

.obsbot-remote-meta-chip--info {
    border-color: rgba(59, 130, 246, 0.22);
    background: rgba(59, 130, 246, 0.1);
    color: #bfdbfe;
}

.obsbot-remote-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.obsbot-remote-action {
    appearance: none;
    width: 100%;
    min-height: 52px;
    padding: 8px 9px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.78));
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    color: #e5eefc;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.obsbot-remote-action:hover,
.obsbot-remote-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.18);
}

.obsbot-remote-action:active {
    transform: translateY(0);
}

.obsbot-remote-action:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18), 0 14px 22px rgba(0, 0, 0, 0.18);
}

.obsbot-remote-action-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
}

.obsbot-remote-action-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    color: #f8fbff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.05;
    white-space: normal;
    overflow-wrap: anywhere;
}

.obsbot-remote-action-title > span {
    display: block;
}

.obsbot-remote-action--violet {
    border-color: rgba(139, 92, 246, 0.28);
    background: linear-gradient(180deg, rgba(76, 29, 149, 0.28), rgba(17, 24, 39, 0.9));
}

.obsbot-remote-action--violet .obsbot-remote-action-icon {
    color: #f5f3ff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(76, 29, 149, 0.74));
    border-color: rgba(196, 181, 253, 0.26);
}

.obsbot-remote-action--amber {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.26), rgba(17, 24, 39, 0.9));
}

.obsbot-remote-action--amber .obsbot-remote-action-icon {
    color: #fff7ed;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(180, 83, 9, 0.78));
    border-color: rgba(253, 186, 116, 0.26);
}

.obsbot-remote-action--danger {
    border-color: rgba(239, 68, 68, 0.28);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.22), rgba(17, 24, 39, 0.9));
}

.obsbot-remote-action--danger .obsbot-remote-action-icon {
    color: #fff1f2;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.46), rgba(153, 27, 27, 0.76));
    border-color: rgba(252, 165, 165, 0.24);
}

.obsbot-remote-action--update {
    border-color: rgba(254, 202, 202, 0.22);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(249, 115, 22, 0.9));
}

.obsbot-remote-action--update .obsbot-remote-action-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.2);
}

.obsbot-remote-action--emerald {
    border-color: rgba(16, 185, 129, 0.28);
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.24), rgba(17, 24, 39, 0.9));
}

.obsbot-remote-action--emerald .obsbot-remote-action-icon {
    color: #ecfdf5;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.46), rgba(4, 120, 87, 0.74));
    border-color: rgba(110, 231, 183, 0.22);
}

.obsbot-remote-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.obsbot-remote-manage-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.73rem;
    font-weight: 700;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.obsbot-remote-manage-link:hover,
.obsbot-remote-manage-link:focus-visible {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.34);
    transform: translateY(-1px);
}

.obsbot-remote-manage-link:focus-visible {
    outline: none;
}

.obsbot-remote-manage-link--ghost {
    border-color: rgba(139, 92, 246, 0.24);
    background: rgba(139, 92, 246, 0.08);
    color: #d8b4fe;
}

.obsbot-remote-manage-link--ghost:hover,
.obsbot-remote-manage-link--ghost:focus-visible {
    color: #f3e8ff;
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(192, 132, 252, 0.34);
}

@media (min-width: 1200px) {
    .obsbot-remote-actions-grid {
        gap: 7px;
    }
}

@media (max-width: 1199.98px) {
    .obsbot-remote-actions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .obsbot-remote-head {
        flex-direction: column;
    }

    .obsbot-remote-actions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .obsbot-remote-title-row h5 {
        font-size: 0.9rem;
    }

    .obsbot-remote-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .obsbot-remote-action {
        min-height: 42px;
        padding: 7px 8px;
    }

    .obsbot-remote-footer {
        align-items: flex-start;
    }
}

@media (max-width: 430px) {
    .obsbot-remote-actions-grid {
        grid-template-columns: 1fr;
    }
}

.admin-users-pagination-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.admin-users-pagination-wrap .page-link {
    background: rgba(13, 27, 62, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: #dbeafe;
}

.admin-users-pagination-wrap .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: rgba(145, 70, 255, 0.6);
}

.admin-users-pagination-wrap .page-item.disabled .page-link {
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.35);
}

.api-settings-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
}

.api-settings-grid {
    display: grid;
    grid-template-columns: 120px minmax(170px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.api-settings-grid .form-select,
.api-settings-grid .form-control {
    min-height: 34px;
    font-size: 0.85rem;
}

.user-action-stack > .btn,
.user-action-section form.d-inline {
    align-self: center;
}

.user-action-stack > .btn,
.user-action-section .btn.w-100 {
    width: min(100%, 280px) !important;
}

.user-action-stack .btn,
.user-actions-primary .btn,
.user-actions-primary .form-control,
.user-action-stack .form-select,
.user-action-stack .form-control {
    min-height: 31px;
    font-size: 0.78rem;
}

.user-action-stack .btn,
.user-actions-primary .btn {
    padding: 0.32rem 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.user-action-stack .btn i,
.user-actions-primary .btn i {
    flex: 0 0 auto;
}

.api-settings-note {
    font-size: 0.75rem;
    color: var(--text-muted, #9ca3af);
    margin-top: 6px;
}

.dm-chat-form {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 8px;
}

.dm-chat-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.dm-chat-note {
    font-size: 0.75rem;
    color: #93c5fd;
    margin-top: 6px;
}

.dm-chat-composer {
    margin-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    padding: 10px 0 0;
    background: transparent;
}

.dm-history-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    padding: 10px;
    max-width: 100%;
}

.dm-history-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.dm-history-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #86efac;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.dm-history-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.45);
    animation: dm-live-pulse 1.8s infinite;
}

.dm-history-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: #93c5fd;
    font-size: 0.76rem;
    font-weight: 600;
}

.dm-history-refresh:hover {
    color: #dbeafe;
}

.dm-history-refresh:disabled {
    opacity: 0.55;
}

.dm-history-close {
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.76rem;
}

.dm-history-close:hover {
    color: #bfdbfe;
}

.dm-history-empty {
    font-size: 0.78rem;
    color: #94a3b8;
}

.dm-history-list {
    min-height: 320px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.dm-history-list::-webkit-scrollbar {
    width: 6px;
}

.dm-history-list::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 999px;
}

.dm-history-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
}

.dm-history-item {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 8px;
    margin-top: 8px;
    border-radius: 8px;
    padding: 8px;
}

.dm-history-item.incoming {
    background: rgba(30, 41, 59, 0.55);
    border-left: 3px solid rgba(59, 130, 246, 0.7);
}

.dm-history-item.outgoing {
    background: rgba(22, 101, 52, 0.18);
    border-left: 3px solid rgba(16, 185, 129, 0.7);
}

.dm-history-time {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.dm-history-author {
    color: #cbd5e1;
    font-weight: 600;
}

.dm-history-role {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #cbd5e1;
}

.dm-history-item.outgoing .dm-history-role {
    border-color: rgba(16, 185, 129, 0.5);
    color: #86efac;
}

.dm-history-list .dm-history-item:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.dm-history-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dm-history-content {
    font-size: 0.82rem;
    color: #e2e8f0;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
}

.dm-discord-embed {
    border-left: 4px solid rgba(96, 165, 250, 0.9);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.52);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.dm-history-item.outgoing .dm-discord-embed {
    border-left-color: rgba(16, 185, 129, 0.9);
}

.dm-history-item.incoming .dm-discord-embed {
    border-left-color: rgba(96, 165, 250, 0.9);
}

.dm-discord-embed-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.dm-discord-embed-description,
.dm-discord-embed-field-value {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #dbe7ff;
    white-space: pre-wrap;
    word-break: break-word;
}

.dm-discord-embed-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.dm-discord-embed-field.is-block {
    grid-column: 1 / -1;
}

.dm-discord-embed-field-name {
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 4px;
}

.dm-discord-embed-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 0.72rem;
    color: #94a3b8;
}

.dm-history-actions-row,
.dm-history-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dm-history-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.26);
    text-decoration: none;
}

.dm-history-link:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.24);
}

.dm-chat-status {
    min-height: 18px;
    margin-top: 6px;
    font-size: 0.74rem;
    color: #93c5fd;
}

.dm-chat-status.is-error {
    color: #fca5a5;
}

.dm-chat-status.is-success {
    color: #86efac;
}

@keyframes dm-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.45);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(134, 239, 172, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(134, 239, 172, 0);
    }
}

.data-export-note {
    margin: 0 0 14px;
    font-size: 0.9em;
    color: var(--text-secondary, #d1d5db);
    line-height: 1.5;
}

.data-export-note i {
    color: #60a5fa;
    margin-right: 6px;
}

.btn-data-export {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(99,102,241,0.22));
    color: #dbeafe;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.28s ease;
    box-shadow: 0 4px 14px rgba(59,130,246,0.18);
}

.btn-data-export::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-18deg);
    transition: left 0.5s ease;
}

.btn-data-export:hover {
    color: #eff6ff;
    border-color: rgba(147, 197, 253, 0.7);
    background: linear-gradient(135deg, rgba(59,130,246,0.32), rgba(99,102,241,0.32));
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(59,130,246,0.28);
}

.btn-data-export:hover::before {
    left: 160%;
}

.crypto-status-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.crypto-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--text-secondary, #d1d5db);
    font-size: 0.8em;
    font-weight: 600;
}

.crypto-card {
    border: 1px solid rgba(129, 140, 248, 0.2);
    background: linear-gradient(155deg, rgba(15,23,42,0.52), rgba(30,41,59,0.45));
}

.crypto-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.09);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #bfdbfe;
    font-size: 0.85em;
    line-height: 1.45;
}

.crypto-hint i {
    margin-top: 2px;
}

.crypto-hint-warn {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(251, 191, 36, 0.22);
    color: #fde68a;
}

.crypto-mode-help {
    margin: 8px 0 0;
    font-size: 0.82em;
    color: var(--text-secondary, #d1d5db);
}

.crypto-mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.crypto-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.4);
    color: #e2e8f0;
}

.crypto-mode-badge.mode-encrypt {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.28);
    color: #bbf7d0;
}

.crypto-mode-badge.mode-decrypt {
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.26);
    color: #fde68a;
}

#system_crypto_mode.mode-encrypt {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.28), 0 0 0 3px rgba(34, 197, 94, 0.08);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.96));
    color: #f0fdf4;
}

#system_crypto_mode.mode-decrypt {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28), 0 0 0 3px rgba(251, 191, 36, 0.08);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.96));
    color: #fffbeb;
}

.crypto-meta-note {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.crypto-meta-note strong {
    color: #f8fafc;
}

.crypto-mode-help.mode-encrypt {
    color: #bbf7d0;
}

.crypto-mode-help.mode-decrypt {
    color: #fde68a;
}

.crypto-card .form-select.modern-input {
    background: #16213d;
    color: #f8fafc;
    border: 1px solid rgba(99, 102, 241, 0.34);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.55);
    color-scheme: dark;
}

.crypto-card .form-select.modern-input:focus {
    background: #18284a;
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.crypto-card .form-select.modern-input option {
    background: #0f172a;
    color: #f8fafc;
}

.crypto-card .form-select.modern-input option:checked,
.crypto-card .form-select.modern-input option:hover,
.crypto-card .form-select.modern-input option:focus {
    background: #2563eb;
    color: #ffffff;
}

#user_api_key_target {
    font-weight: 600;
}

#user_api_key_target:disabled {
    background: #111827;
    color: #94a3b8;
    border-color: rgba(71, 85, 105, 0.45);
}

.crypto-result {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.35);
}

.crypto-output {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.86rem;
}

.crypto-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.crypto-migration-steps {
    display: grid;
    gap: 10px;
    margin: 12px 0 16px;
}

.crypto-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.crypto-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.28);
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: #c7d2fe;
    font-size: 0.8em;
    font-weight: 700;
}

.btn-crypto-danger {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, rgba(239,68,68,0.22), rgba(244,63,94,0.2));
    color: #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-crypto-danger:hover {
    color: #fee2e2;
    border-color: rgba(248, 113, 113, 0.48);
    box-shadow: 0 8px 20px rgba(127, 29, 29, 0.28);
}

.btn-crypto-danger:disabled,
.btn-admin-secondary:disabled,
.btn-admin-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.crypto-inline-warning {
    margin: 10px 0 0;
    font-size: 0.82em;
    color: #fca5a5;
}

.admin-security-score-card {
    display: grid;
    grid-template-columns: minmax(200px, 240px) 1fr;
    gap: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 18px;
    margin: 0 0 18px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.72));
}

.admin-security-score-card.score-pass {
    border-color: rgba(16, 185, 129, 0.42);
    box-shadow: 0 10px 22px rgba(6, 78, 59, 0.24);
}

.admin-security-score-card.score-warn {
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 10px 22px rgba(120, 53, 15, 0.24);
}

.admin-security-score-card.score-fail {
    border-color: rgba(239, 68, 68, 0.42);
    box-shadow: 0 10px 22px rgba(127, 29, 29, 0.24);
}

.admin-security-score-label {
    color: #cbd5e1;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.admin-security-score-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
    margin-top: 6px;
}

.admin-security-score-value span {
    font-size: 1rem;
    opacity: 0.78;
    margin-left: 4px;
}

.admin-security-score-meta,
.admin-security-generated {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 8px;
}

.admin-security-event-lead {
    margin: 0 0 1rem;
    color: #dbe7f5;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 72ch;
}

.admin-security-score-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-security-kpi {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    font-weight: 700;
}

.admin-security-kpi i {
    font-size: 0.95rem;
}

.admin-security-kpi strong {
    font-size: 1rem;
    line-height: 1;
    color: #f8fafc;
}

.admin-security-kpi span {
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.admin-security-kpi.kpi-pass {
    color: #86efac;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
}

.admin-security-kpi.kpi-warn {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

.admin-security-kpi.kpi-fail {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
}

.admin-security-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
}

.admin-security-check-card {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.54);
    overflow: hidden;
}

.admin-security-check-card.check-pass {
    border-color: rgba(34, 197, 94, 0.24);
}

.admin-security-check-card.check-warn {
    border-color: rgba(245, 158, 11, 0.26);
}

.admin-security-check-card.check-fail {
    border-color: rgba(239, 68, 68, 0.26);
}

.admin-security-check-head {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: background-color 0.2s ease;
}

.admin-security-check-head::-webkit-details-marker {
    display: none;
}

.admin-security-check-card:hover .admin-security-check-head,
.admin-security-check-card[open] .admin-security-check-head {
    background: rgba(255, 255, 255, 0.03);
}

.admin-security-check-signal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.admin-security-check-card.check-pass .admin-security-check-dot {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.admin-security-check-card.check-warn .admin-security-check-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.admin-security-check-card.check-fail .admin-security-check-dot {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.admin-security-check-badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #cbd5e1;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.03);
}

.admin-security-check-card.check-pass .admin-security-check-badge {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.1);
}

.admin-security-check-card.check-warn .admin-security-check-badge {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.1);
}

.admin-security-check-card.check-fail .admin-security-check-badge {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(239, 68, 68, 0.1);
}

.admin-security-check-title-wrap {
    min-width: 0;
}

.admin-security-check-head h3 {
    margin: 0;
    font-size: 0.98rem;
    color: #e2e8f0;
}

.admin-security-check-summary {
    margin: 5px 0 0;
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.45;
}

.admin-security-check-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #93c5fd;
}

.admin-security-check-score {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-security-check-chevron {
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.admin-security-check-card[open] .admin-security-check-chevron {
    transform: rotate(180deg);
    color: #e2e8f0;
}

.admin-security-check-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px 16px;
}

.admin-security-check-panel-block {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 8, 23, 0.22);
    padding: 12px 13px;
}

.admin-security-check-panel-label {
    margin: 0 0 6px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-security-check-details,
.admin-security-check-action {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.83rem;
    line-height: 1.5;
}

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

.admin-config-collapsible {
    overflow: hidden;
}

.admin-config-collapse-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 0;
}

.admin-config-collapse-summary::-webkit-details-marker {
    display: none;
}

.admin-config-collapse-main {
    min-width: 0;
}

.admin-config-collapse-titlebar {
    margin-bottom: 0;
}

.admin-config-collapse-status {
    padding: 14px 18px 16px;
}

.admin-config-collapse-status-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.admin-config-collapse-status-text {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 700;
}

.admin-config-collapse-meta {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.5;
}

.admin-config-collapse-meta code,
.admin-config-collapse-meta .summary-value {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.38);
    border-radius: 8px;
    padding: 2px 6px;
}

.admin-config-collapse-separator {
    color: #64748b;
    margin: 0 6px;
}

.admin-config-collapse-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-right: 18px;
    white-space: nowrap;
}

.admin-config-collapse-toggle i {
    transition: transform 0.2s ease, color 0.2s ease;
}

.admin-config-collapsible[open] .admin-config-collapse-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.admin-config-collapsible:hover .admin-config-collapse-summary,
.admin-config-collapsible[open] .admin-config-collapse-summary {
    background: rgba(255, 255, 255, 0.02);
}

.admin-config-collapse-body {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-config-collapse-body form {
    padding-top: 16px;
}

/* Lesbare Beschreibung in aufklappbaren Admin-Karten (ersetzt .text-muted, das auf Dark-BG zu dunkel ist) */
.admin-config-collapse-body-text {
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.6;
}
.admin-config-collapse-body-text.mt-0 { margin-top: 0; }

.admin-config-badge.badge-inactive {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
}

.admin-security-actions {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #e2e8f0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.admin-security-actions li {
    margin-bottom: 6px;
}

@media (max-width: 767px) {
    .crypto-status-bar {
        gap: 8px;
    }

    .crypto-status-pill {
        font-size: 0.76em;
        padding: 4px 10px;
    }

    .crypto-toolbar {
        flex-direction: column;
    }

    .crypto-mode-row {
        align-items: flex-start;
    }

    .admin-security-score-card {
        grid-template-columns: 1fr;
    }

    .admin-security-score-side {
        gap: 8px;
    }

    .admin-security-check-head {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .admin-security-check-meta {
        width: 100%;
        justify-content: space-between;
    }

    .admin-security-check-panel {
        grid-template-columns: 1fr;
    }

    .admin-config-collapse-summary {
        grid-template-columns: 1fr;
    }

    .admin-config-collapse-toggle {
        padding: 0 18px 14px;
        justify-content: flex-end;
    }
}

@media (max-width: 389.98px) {
    .admin-users-toolbar,
    .admin-users-role-legend,
    .customer-scout-hero,
    .customer-scout-story-body,
    .customer-scout-filter-body,
    .admin-config-collapse-status,
    .admin-config-collapse-body {
        padding: 12px;
    }

    .admin-users-meta,
    .admin-user-main,
    .admin-user-subline,
    .customer-scout-filter-actions,
    .admin-config-collapse-status-top,
    .crypto-mode-row,
    .crypto-hint,
    .admin-security-check-signal,
    .admin-security-kpi {
        flex-direction: column;
        align-items: flex-start;
    }

    .crypto-status-bar,
    .crypto-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .crypto-status-pill,
    .crypto-toolbar .btn-admin-secondary,
    .crypto-toolbar .btn-admin-primary,
    .crypto-toolbar .btn-crypto-danger,
    .rank-management .btn.btn-primary {
        width: 100%;
        justify-content: center;
    }

    .crypto-hint,
    .admin-security-score-card,
    .admin-security-check-head,
    .admin-security-check-panel,
    .admin-security-actions,
    .admin-mail-preview-frame-wrap,
    .admin-mail-text-preview {
        padding-left: 12px;
        padding-right: 12px;
    }

    .admin-user-expanded-row td {
        padding: 0 6px 8px !important;
    }

    .admin-user-expanded-panel,
    .customer-scout-kpi-grid,
    .customer-scout-banner-grid,
    .customer-scout-overview-grid,
    .customer-scout-story-grid {
        grid-template-columns: 1fr;
    }

    .customer-scout-shell {
        gap: 16px;
    }

    .customer-scout-hero-message {
        font-size: 0.96rem;
    }

    .admin-security-score-card,
    .admin-security-check-panel {
        gap: 10px;
    }

    .admin-security-check-head {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .admin-security-check-meta {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-security-check-badge,
    .admin-security-check-score,
    .crypto-mode-badge {
        white-space: normal;
    }

    .admin-security-actions {
        padding-left: 18px;
        font-size: 0.84rem;
    }

    .customer-scout-kpi,
    .customer-scout-banner,
    .customer-scout-story-block,
    .admin-users-quickfilter {
        padding: 12px;
    }

    .customer-scout-filter-actions .btn-admin-primary,
    .customer-scout-filter-actions .btn-admin-secondary,
    .twitch-copy-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .admin-mail-preview-frame {
        min-height: 360px;
    }

    .admin-mail-text-preview {
        min-height: 360px;
        font-size: 0.82rem;
    }

    .admin-config-collapse-status,
    .admin-config-collapse-body form {
        padding-top: 12px;
    }

    .admin-config-collapse-meta,
    .admin-config-collapse-meta code,
    .admin-config-collapse-meta .summary-value {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

.dashboard-card .table,
.admin-config-card .table {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-card .table > :not(caption) > * > *,
.admin-config-card .table > :not(caption) > * > * {
    background-color: transparent;
    color: inherit;
    border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-card .table tbody tr,
.admin-config-card .table tbody tr {
    background: rgba(13, 27, 62, 0.55);
}

.dashboard-card .table tbody tr:nth-child(even),
.admin-config-card .table tbody tr:nth-child(even) {
    background: rgba(13, 27, 62, 0.42);
}

.dashboard-card .table tbody tr:hover,
.admin-config-card .table tbody tr:hover {
    background: rgba(145, 70, 255, 0.08);
}

.dashboard-card .table code,
.admin-config-card .table code {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
}

.temp-housekeeping-card {
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(13, 27, 62, 0.82), rgba(20, 16, 42, 0.9));
    border-color: rgba(45, 212, 191, 0.16);
}

.temp-housekeeping-header {
    justify-content: space-between;
    gap: 16px;
}

.temp-housekeeping-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.temp-housekeeping-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(45, 212, 191, 0.07);
    border: 1px solid rgba(45, 212, 191, 0.16);
}

.temp-housekeeping-intro-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 212, 191, 0.12);
    color: #5eead4;
}

.temp-housekeeping-intro p {
    margin: 0;
    color: rgba(235, 242, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.55;
}

.temp-housekeeping-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.temp-housekeeping-stat {
    min-width: 0;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.temp-housekeeping-stat-wide {
    grid-column: span 2;
}

.temp-housekeeping-stat span {
    display: block;
    color: rgba(190, 205, 232, 0.82);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.temp-housekeeping-stat strong {
    display: block;
    color: var(--text-light, #f8fafc);
    font-size: 0.94rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.temp-housekeeping-form {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 16px;
    align-items: end;
}

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

@media (max-width: 767.98px) {
    .temp-housekeeping-header {
        align-items: flex-start;
    }

    .temp-housekeeping-intro,
    .temp-housekeeping-form {
        grid-template-columns: 1fr;
    }

    .temp-housekeeping-stat-wide {
        grid-column: auto;
    }
}

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

.streamstats-shell .modern-alert {
    margin-bottom: 0;
}

.streamstats-hero {
    margin-bottom: 0;
}

.streamstats-hero-icon {
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
}

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

.streamstats-kpi,
.streamstats-action-card,
.streamstats-config-panel,
.streamstats-data-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.34);
}

.streamstats-kpi {
    min-height: 94px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.streamstats-kpi strong {
    color: #f8fafc;
    font-size: 1.45rem;
    line-height: 1;
}

.streamstats-kpi-label {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.35;
}

.streamstats-leader-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.streamstats-leader-chip,
.streamstats-tool-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(2, 8, 23, 0.28);
}

.streamstats-leader-chip {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 11px;
}

.streamstats-leader-chip strong,
.streamstats-leader-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.streamstats-leader-chip strong {
    color: #f8fafc;
    font-size: 0.92rem;
}

.streamstats-leader-chip small,
.streamstats-leader-rank {
    color: #94a3b8;
    font-size: 0.76rem;
}

.streamstats-leader-rank {
    font-weight: 900;
}

.streamstats-leader-chip.tier-legend,
.streamstats-tier.tier-legend {
    border-color: rgba(250, 204, 21, 0.42);
    background: rgba(113, 63, 18, 0.18);
}

.streamstats-leader-chip.tier-patron,
.streamstats-tier.tier-patron {
    border-color: rgba(56, 189, 248, 0.38);
    background: rgba(8, 47, 73, 0.22);
}

.streamstats-leader-chip.tier-regular,
.streamstats-tier.tier-regular {
    border-color: rgba(52, 211, 153, 0.34);
    background: rgba(6, 78, 59, 0.18);
}

.streamstats-leader-chip.tier-active,
.streamstats-tier.tier-active {
    border-color: rgba(129, 140, 248, 0.34);
    background: rgba(49, 46, 129, 0.18);
}

.streamstats-kpi-top {
    display: flex;
    min-width: 0;
}

.streamstats-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
}
.streamstats-status-pill > i {
    flex: 0 0 auto;
}

.streamstats-status-pill.is-good {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.26);
}

.streamstats-status-pill.is-waiting {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.26);
}

.streamstats-action-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.streamstats-action-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 15px;
    color: #e2e8f0;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.streamstats-action-card:hover,
.streamstats-action-card:focus-visible {
    color: #f8fafc;
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(15, 23, 42, 0.5);
    transform: translateY(-1px);
}

.streamstats-action-card.is-primary {
    border-color: rgba(168, 85, 247, 0.28);
    background: rgba(76, 29, 149, 0.16);
}

.streamstats-action-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.streamstats-action-card.is-primary .streamstats-action-icon {
    color: #ddd6fe;
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.24);
}

.streamstats-action-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.streamstats-action-body strong {
    color: #f8fafc;
    font-size: 0.96rem;
    line-height: 1.25;
}

.streamstats-action-body small,
.streamstats-action-body code {
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.streamstats-action-body code {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.streamstats-setup-flow {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.26);
    padding: 16px;
}

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

.streamstats-setup-head h4 {
    margin: 0 0 4px;
    color: #f8fafc;
    font-size: 1.08rem;
    line-height: 1.25;
}

.streamstats-setup-head p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.45;
}

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

.streamstats-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: rgba(2, 8, 23, 0.22);
    padding: 14px;
}

.streamstats-step.is-current {
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(30, 64, 175, 0.14);
}

.streamstats-step.is-done {
    border-color: rgba(34, 197, 94, 0.26);
    background: rgba(20, 83, 45, 0.12);
}

.streamstats-step.is-locked {
    opacity: 0.74;
}

.streamstats-step-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.24);
    font-weight: 900;
    line-height: 1;
}

.streamstats-step.is-done .streamstats-step-number {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.24);
}

.streamstats-step.is-locked .streamstats-step-number {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.16);
}

.streamstats-step-body {
    min-width: 0;
}

.streamstats-step-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.streamstats-step-title-row h5 {
    margin: 0;
    color: #f8fafc;
    font-size: 0.96rem;
    line-height: 1.25;
}

.streamstats-step-title-row span {
    flex: 0 0 auto;
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.streamstats-step.is-done .streamstats-step-title-row span {
    color: #86efac;
}

.streamstats-step.is-locked .streamstats-step-title-row span {
    color: #94a3b8;
}

.streamstats-step-body p {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.5;
}

.streamstats-step-button {
    width: fit-content;
}

.streamstats-endpoint-code {
    display: block;
    width: 100%;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 8px;
    padding: 9px 10px;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
    line-height: 1.4;
}

.streamstats-config-panel,
.streamstats-data-panel {
    padding: 18px;
}

.streamstats-config-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.streamstats-config-head h4 {
    margin: 0 0 4px;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.25;
}

.streamstats-config-head p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.45;
}

.streamstats-toggle {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 10px 8px 38px;
    border-radius: 8px;
    background: rgba(2, 8, 23, 0.24);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.streamstats-data-panel .section-header {
    margin-bottom: 16px;
}

.streamstats-scope-panel {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.28);
}

.streamstats-scope-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.streamstats-scope-head h4 {
    margin: 0 0 4px;
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.25;
}

.streamstats-scope-head p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.45;
}

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

.streamstats-scope-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 6px 9px;
    color: #cbd5e1;
    background: rgba(2, 8, 23, 0.28);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.streamstats-scope-chip.is-present {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.26);
    background: rgba(20, 83, 45, 0.14);
}

.streamstats-scope-chip.is-missing {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(113, 63, 18, 0.14);
}

.streamstats-extra-scopes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.35;
}

.streamstats-extra-scopes code {
    color: #dbeafe;
    background: rgba(30, 64, 175, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 0.76rem;
}

.streamstats-admin-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.streamstats-winner-actions {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.streamstats-winner-secondary-actions {
    display: grid;
    gap: 12px;
}

.streamstats-copy-source {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: pre;
}

.streamstats-special-lists-form {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

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

.streamstats-special-list {
    display: grid;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(2, 8, 23, 0.26);
    padding: 12px;
}

.streamstats-special-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.streamstats-special-head label {
    color: #f8fafc;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
    margin: 0;
}

.streamstats-special-head span {
    min-width: 28px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.2);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
}

.streamstats-special-textarea {
    min-height: 132px;
    resize: vertical;
}

.streamstats-special-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.streamstats-ignore-form {
    display: grid;
    gap: 12px;
}

.streamstats-ignore-textarea {
    min-height: 240px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.45;
}

.streamstats-ignore-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.streamstats-ignore-actions span {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
}

.streamstats-tool-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 12px;
}

.streamstats-tool-card > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.streamstats-tool-card strong {
    color: #f8fafc;
    font-size: 0.86rem;
    line-height: 1.25;
}

.streamstats-tool-card-primary {
    align-items: flex-start;
    padding: 16px;
    background: rgba(113, 63, 18, 0.14);
    border-color: rgba(245, 158, 11, 0.26);
}

.streamstats-tool-card-primary .btn {
    flex: 0 0 auto;
}

.streamstats-tool-card small {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.35;
}

.streamstats-tool-card.is-danger {
    border-color: rgba(248, 113, 113, 0.22);
}

.streamstats-table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 10px;
}

.streamstats-table-heading > div {
    display: grid;
    gap: 2px;
}

.streamstats-table-heading strong {
    color: #f8fafc;
    font-size: 0.9rem;
    line-height: 1.25;
}

.streamstats-table-heading span {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.35;
}

.streamstats-table-wrap {
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    overflow: auto;
}

.streamstats-supporter-table {
    max-height: 360px;
}

.streamstats-supporter-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #0f172a;
}

.streamstats-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.35;
}

.streamstats-pager {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.streamstats-pager span {
    min-width: 54px;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.streamstats-pager .btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.streamstats-disclosure {
    padding: 0;
}

.streamstats-disclosure-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    cursor: pointer;
    list-style: none;
}

.streamstats-disclosure-summary::-webkit-details-marker {
    display: none;
}

.streamstats-disclosure-title {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
}

.streamstats-disclosure-title strong {
    color: #f8fafc;
    font-size: 1.02rem;
    line-height: 1.25;
}

.streamstats-disclosure-title small {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.35;
}

.streamstats-disclosure-icon {
    flex: 0 0 auto;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.streamstats-disclosure[open] .streamstats-disclosure-icon {
    transform: rotate(180deg);
}

.streamstats-disclosure-body {
    padding: 0 18px 18px;
}

.streamstats-table {
    margin-bottom: 0;
}

.streamstats-tier {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 4px 8px;
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.streamstats-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.streamstats-row-actions form {
    margin: 0;
}

.streamstats-row-actions .btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

@media (max-width: 991px) {
    .streamstats-status-grid,
    .streamstats-admin-tools,
    .streamstats-special-grid,
    .streamstats-leader-strip,
    .streamstats-winner-actions,
    .streamstats-step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .streamstats-tool-card-primary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .streamstats-action-grid,
    .streamstats-admin-tools,
    .streamstats-special-grid,
    .streamstats-leader-strip,
    .streamstats-status-grid,
    .streamstats-winner-actions,
    .streamstats-step-grid {
        grid-template-columns: 1fr;
    }

    .streamstats-result-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .streamstats-tool-card {
        display: grid;
    }

    .streamstats-tool-card-primary {
        grid-column: auto;
    }

    .streamstats-tool-card .btn {
        justify-self: start;
    }

    .streamstats-scope-head {
        display: grid;
    }

    .streamstats-setup-head {
        display: grid;
    }

    .streamstats-config-head {
        display: grid;
    }

    .streamstats-toggle {
        justify-self: start;
    }
}

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

.streamguard-shell > .mb-12,
.streamguard-shell > .mb-16,
.streamguard-shell .modern-alert {
    margin-bottom: 0 !important;
}

.streamguard-hero {
    margin-bottom: 0;
}

.streamguard-card .admin-config-card {
    margin-bottom: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.30);
    box-shadow: none;
    overflow: hidden;
}

.streamguard-card .admin-config-card-header {
    min-height: 54px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 8, 23, 0.20) !important;
    color: #f8fafc;
    font-size: 1.02rem;
    line-height: 1.25;
}

.streamguard-card .admin-config-card-header > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.streamguard-card .admin-config-card > .p-3,
.streamguard-card .admin-config-card > form.p-3 {
    padding: 16px !important;
}

.streamguard-card .streamguard-switch-card {
    border-color: rgba(148, 163, 184, 0.16);
}

.streamguard-card .streamguard-switch-grid {
    max-width: none;
}

.streamguard-card .streamguard-switch-btn,
.streamguard-card .streamguard-runstatus-stat,
.streamguard-card .streamguard-runstatus-summary,
.streamguard-card .streamguard-disclosure,
.streamguard-card .streamguard-runstatus-table-wrap {
    border-radius: 8px;
    box-shadow: none;
}

.streamguard-card .streamguard-switch-btn {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(2, 8, 23, 0.24);
}

.streamguard-card .streamguard-switch-btn:hover:not(:disabled),
.streamguard-card .streamguard-switch-btn.is-active {
    transform: none;
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(30, 64, 175, 0.14);
}

.streamguard-card .streamguard-switch-btn-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 8px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.22);
}

.streamguard-card .streamguard-switch-btn.is-active .streamguard-switch-btn-icon {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.24);
}

.streamguard-card .streamguard-switch-btn-title {
    color: #f8fafc;
    font-weight: 800;
}

.streamguard-card .streamguard-switch-btn-meta {
    color: #94a3b8;
}

.streamguard-card .streamguard-disclosure {
    margin-top: 14px;
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(2, 8, 23, 0.24);
}

.streamguard-card .streamguard-disclosure:hover,
.streamguard-card .streamguard-disclosure[open] {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(15, 23, 42, 0.38);
}

.streamguard-card .streamguard-disclosure > summary {
    padding: 13px 14px;
    font-size: 0.94rem;
}

.streamguard-card .streamguard-disclosure-title i {
    color: #bfdbfe;
}

.streamguard-card .streamguard-disclosure-cue {
    background: rgba(15, 23, 42, 0.46);
    color: #cbd5e1;
    box-shadow: none;
}

.streamguard-card .streamguard-runstatus-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.streamguard-card .streamguard-runstatus-stat {
    min-height: 112px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.34);
}

.streamguard-card .streamguard-runstatus-stat-status {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(30, 64, 175, 0.14);
}

.streamguard-card .streamguard-runstatus-label {
    margin-bottom: 9px;
    letter-spacing: 0;
    text-transform: none;
    color: #94a3b8;
    font-size: 0.82rem;
}

.streamguard-card .streamguard-runstatus-value {
    font-size: 1.28rem;
    font-weight: 900;
}

.streamguard-card .streamguard-runstatus-meta,
.streamguard-card .streamguard-runstatus-submeta {
    color: #94a3b8;
}

.streamguard-card .streamguard-runstatus-summary {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(2, 8, 23, 0.24);
}

.streamguard-card .streamguard-runstatus-summary i {
    color: #bfdbfe;
}

.streamguard-card .streamguard-runstatus-pill {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(2, 8, 23, 0.28);
}

.streamguard-card .streamguard-runstatus-table-wrap {
    border-color: rgba(148, 163, 184, 0.12);
    background: rgba(2, 8, 23, 0.22);
}

.streamguard-card .streamguard-runstatus-table thead th {
    background: rgba(15, 23, 42, 0.96);
    color: #94a3b8;
    letter-spacing: 0;
}

@media (max-width: 991px) {
    .streamguard-card .streamguard-runstatus-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .streamguard-card .streamguard-runstatus-grid,
    .streamguard-card .streamguard-switch-grid,
    .streamguard-status-grid {
        grid-template-columns: 1fr;
    }

    .streamguard-card .admin-config-card-header {
        display: grid !important;
        gap: 10px;
        align-items: start !important;
    }
}

.premium-offer-highlight {
    border: 1px solid rgba(145, 70, 255, 0.5);
    box-shadow: 0 0 0 1px rgba(145, 70, 255, 0.18), 0 14px 28px rgba(44, 16, 88, 0.28);
    background: linear-gradient(160deg, rgba(145, 70, 255, 0.08), rgba(13, 27, 62, 0.72));
    padding: 14px;
}

.vip-offer-highlight {
    border: 1px solid rgba(251, 191, 36, 0.36);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12), 0 14px 28px rgba(96, 52, 12, 0.22);
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.08), rgba(13, 27, 62, 0.72));
}

.offer-editorial-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.72fr);
    gap: 14px;
    align-items: start;
}

.offer-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #dfe6ff;
}

.offer-title {
    margin: 0;
    font-size: clamp(1.02rem, 1.15vw, 1.34rem);
    line-height: 1.1;
    color: #f4f7ff;
    max-width: 26ch;
}

.offer-lead {
    max-width: 60ch;
    color: #d4dbf3;
    font-size: 0.77rem;
    line-height: 1.42;
}

.offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.offer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 700;
    color: #eff3ff;
    border: 1px solid rgba(191, 199, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(145, 70, 255, 0.12));
}

.offer-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 6px;
}

.offer-feature {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(191, 199, 255, 0.14);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(145,70,255,0.06));
}

.offer-feature i {
    margin-top: 1px;
    font-size: 0.8rem;
}

.offer-feature strong {
    display: block;
    color: #f3f5ff;
    font-size: 0.74rem;
    margin-bottom: 1px;
}

.offer-feature span {
    display: block;
    color: #bec8e6;
    font-size: 0.68rem;
    line-height: 1.28;
}

.offer-aside {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-checkout-panel {
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(191, 199, 255, 0.16);
    background: linear-gradient(160deg, rgba(12, 20, 45, 0.7), rgba(23, 32, 68, 0.74));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.offer-price-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.offer-price-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #cfd8ff;
}

.offer-price-value {
    font-size: clamp(1.35rem, 1.7vw, 1.8rem);
    line-height: 0.95;
    font-weight: 900;
    color: #f8faff;
}

.offer-price-note {
    color: #b6c1df;
    font-size: 0.69rem;
    line-height: 1.28;
}

.offer-legal {
    color: #aab7da;
    font-size: 0.67rem;
    line-height: 1.28;
}

.offer-theme-premium .offer-eyebrow,
.offer-theme-premium .offer-feature i {
    color: #ddd6fe;
}

.offer-theme-premium .offer-chip {
    border-color: rgba(167, 139, 250, 0.24);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(91, 33, 182, 0.12));
}

.offer-theme-premium .offer-feature {
    border-color: rgba(167, 139, 250, 0.14);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(139,92,246,0.08));
}

.offer-theme-premium .offer-checkout-panel {
    border-color: rgba(167, 139, 250, 0.2);
    background: linear-gradient(160deg, rgba(25, 19, 56, 0.72), rgba(35, 25, 77, 0.76));
}

.trial-offer-highlight {
    border: 1px solid rgba(125, 211, 252, 0.36);
    box-shadow: 0 0 0 1px rgba(191, 238, 255, 0.1), 0 16px 30px rgba(5, 20, 35, 0.26), 0 0 28px rgba(56, 189, 248, 0.1);
    background: linear-gradient(155deg, rgba(224, 247, 255, 0.05), rgba(56, 189, 248, 0.08), rgba(13, 27, 62, 0.84));
}

.offer-theme-trial .offer-eyebrow,
.offer-theme-trial .offer-feature i {
    color: #dff7ff;
}

.offer-theme-trial .offer-chip {
    color: #effbff;
    border-color: rgba(191, 238, 255, 0.24);
    background: linear-gradient(135deg, rgba(224, 247, 255, 0.12), rgba(14, 165, 233, 0.12));
}

.offer-theme-trial .offer-feature {
    border-color: rgba(125, 211, 252, 0.16);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(56,189,248,0.08));
}

.offer-theme-trial .offer-checkout-panel {
    border-color: rgba(125, 211, 252, 0.2);
    background: linear-gradient(160deg, rgba(5, 20, 35, 0.72), rgba(10, 43, 76, 0.78));
}

.btn-plan-start.btn-trial-start {
    background: linear-gradient(135deg, #e0f7ff, #38bdf8 42%, #0369a1 100%);
    color: #082f49;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.24);
}

.btn-plan-start.btn-trial-start:hover,
.btn-plan-start.btn-trial-start:focus {
    background: linear-gradient(135deg, #f0f9ff, #7dd3fc 42%, #0284c7 100%);
    color: #082f49;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.32);
}

.offer-theme-vip .offer-eyebrow,
.offer-theme-vip .offer-feature i {
    color: #fde68a;
}

.offer-theme-vip .offer-chip {
    color: #fff6d6;
    border-color: rgba(252, 211, 77, 0.22);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(146, 64, 14, 0.12));
}

.offer-theme-vip .offer-feature {
    border-color: rgba(251, 191, 36, 0.14);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(245,158,11,0.08));
}

.offer-theme-vip .offer-checkout-panel {
    border-color: rgba(251, 191, 36, 0.2);
    background: linear-gradient(160deg, rgba(54, 33, 10, 0.68), rgba(74, 45, 12, 0.72));
}

.btn-plan-start.btn-premium-start {
    background: linear-gradient(135deg, #c4b5fd, #8b5cf6 42%, #4c1d95 100%);
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.28);
}

.btn-plan-start.btn-premium-start:hover,
.btn-plan-start.btn-premium-start:focus {
    background: linear-gradient(135deg, #ddd6fe, #a78bfa 42%, #5b21b6 100%);
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.36);
}

.btn-plan-start.btn-vip-start {
    background: linear-gradient(135deg, #fde68a, #f59e0b 42%, #92400e 100%);
    color: #2c1802;
    box-shadow: 0 10px 24px rgba(180, 83, 9, 0.24);
}

.btn-plan-start.btn-vip-start:hover,
.btn-plan-start.btn-vip-start:focus {
    background: linear-gradient(135deg, #fef3c7, #fbbf24 42%, #b45309 100%);
    color: #201102;
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.32);
}

.diamond-offer-highlight {
    border: 1px solid rgba(125, 211, 252, 0.42);
    box-shadow: 0 0 0 1px rgba(191, 238, 255, 0.14), 0 18px 34px rgba(8, 32, 50, 0.28), 0 0 34px rgba(56, 189, 248, 0.12);
    background: linear-gradient(155deg, rgba(248, 253, 255, 0.06), rgba(56, 189, 248, 0.08), rgba(13, 27, 62, 0.8));
    padding: 14px;
}

.diamond-editorial-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.72fr);
    gap: 14px;
    align-items: start;
}

.diamond-offer-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diamond-offer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #dff7ff;
}

.diamond-offer-title {
    margin: 0;
    font-size: clamp(1.06rem, 1.2vw, 1.4rem);
    line-height: 1.1;
    color: #f4fbff;
    text-shadow: 0 0 18px rgba(125, 211, 252, 0.14);
    max-width: 24ch;
}

.diamond-offer-lead {
    max-width: 62ch;
    color: #d8ecf7;
    font-size: 0.78rem;
    line-height: 1.42;
}

.diamond-offer-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 6px;
}

.diamond-offer-feature {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(191, 238, 255, 0.18);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(56,189,248,0.08));
}

.diamond-offer-feature i {
    color: #dff7ff;
    margin-top: 1px;
    font-size: 0.8rem;
}

.diamond-offer-feature strong {
    display: block;
    color: #f3fbff;
    font-size: 0.74rem;
    margin-bottom: 1px;
}

.diamond-offer-feature span {
    display: block;
    color: #bdd8e6;
    font-size: 0.68rem;
    line-height: 1.28;
}

.diamond-offer-aside {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diamond-checkout-panel {
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(191, 238, 255, 0.22);
    background: linear-gradient(160deg, rgba(5, 20, 35, 0.68), rgba(10, 43, 76, 0.72));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.diamond-price-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.diamond-price-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #cdefff;
}

.diamond-price-value {
    font-size: clamp(1.42rem, 1.9vw, 1.95rem);
    line-height: 0.92;
    font-weight: 900;
    color: #f8fdff;
}

.diamond-price-note {
    color: #b7d1df;
    font-size: 0.69rem;
    line-height: 1.28;
}

.diamond-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.diamond-status-active {
    color: #06263b;
    border-color: rgba(224, 247, 255, 0.85);
    background: linear-gradient(135deg, #f8fdff, #7dd3fc 42%, #38bdf8 100%);
    box-shadow: 0 0 18px rgba(125, 211, 252, 0.22);
}

.diamond-status-idle {
    color: #d5e5ef;
    border-color: rgba(148, 163, 184, 0.28);
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.55), rgba(30, 41, 59, 0.7));
}

.diamond-status-revoked {
    color: #fff1f2;
    border-color: rgba(253, 164, 175, 0.34);
    background: linear-gradient(135deg, rgba(190, 24, 93, 0.7), rgba(127, 29, 29, 0.8));
}

.diamond-status-refunded {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.34);
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.75), rgba(51, 65, 85, 0.8));
}

.premium-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f5d0fe;
    border: 1px solid rgba(217, 70, 239, 0.45);
    background: rgba(88, 28, 135, 0.32);
}

.diamond-offer-badge {
    color: #effbff;
    border-color: rgba(191, 238, 255, 0.45);
    background: linear-gradient(135deg, rgba(224, 247, 255, 0.14), rgba(14, 165, 233, 0.24));
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.14);
}

.diamond-offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.diamond-offer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 700;
    color: #effbff;
    border: 1px solid rgba(191, 238, 255, 0.28);
    background: linear-gradient(135deg, rgba(224, 247, 255, 0.1), rgba(14, 165, 233, 0.16));
}

.diamond-offer-legal {
    color: #a9c7d7;
    font-size: 0.67rem;
    line-height: 1.28;
}

.diamond-admin-card {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(191, 238, 255, 0.2);
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(56,189,248,0.08), rgba(8,32,50,0.32));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.diamond-admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.diamond-admin-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #effbff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.diamond-admin-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.diamond-admin-state.is-visible {
    color: #06263b;
    background: linear-gradient(135deg, #f8fdff, #7dd3fc 48%, #38bdf8 100%);
    border: 1px solid rgba(224, 247, 255, 0.85);
}

.diamond-admin-state.is-hidden {
    color: #d8e2ea;
    background: linear-gradient(135deg, rgba(71,85,105,0.68), rgba(30,41,59,0.84));
    border: 1px solid rgba(148,163,184,0.25);
}

.diamond-admin-copy {
    color: #b9d7e6;
    font-size: 0.79rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.btn-diamond-admin {
    border-color: rgba(125, 211, 252, 0.42);
    background: linear-gradient(135deg, rgba(224,247,255,0.1), rgba(14,165,233,0.14));
    color: #effbff;
}

.btn-diamond-admin:hover,
.btn-diamond-admin:focus {
    border-color: rgba(224, 247, 255, 0.78);
    background: linear-gradient(135deg, rgba(224,247,255,0.2), rgba(56,189,248,0.28));
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .offer-editorial-shell,
    .diamond-editorial-shell {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .offer-title,
    .diamond-offer-title {
        max-width: none;
    }
}

.btn-plan-start {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(76, 29, 149, 0.32);
}

.btn-plan-start:hover,
.btn-plan-start:focus {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 10px 22px rgba(76, 29, 149, 0.4);
}

.btn-plan-start.btn-diamond-start {
    background: linear-gradient(135deg, #e0f7ff, #38bdf8 38%, #0f3a67 100%);
    color: #082032;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

.btn-plan-start.btn-diamond-start:hover,
.btn-plan-start.btn-diamond-start:focus {
    background: linear-gradient(135deg, #f8fdff, #7dd3fc 42%, #0b2947 100%);
    color: #041723;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.36);
}

.btn-premium-cancel {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.42);
    color: #fecaca;
    font-weight: 600;
}

.btn-premium-cancel:hover,
.btn-premium-cancel:focus {
    background: rgba(239, 68, 68, 0.32);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fff;
}

.user-action-stack .form-select,
.user-action-stack .form-control {
    background: rgba(13, 27, 62, 0.82);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.user-action-stack .form-control::placeholder {
    color: var(--text-secondary);
}

.user-action-stack .form-select:focus,
.user-action-stack .form-control:focus {
    background: rgba(13, 27, 62, 0.9);
    color: var(--text-light);
    border-color: rgba(145, 70, 255, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(145, 70, 255, 0.18);
}

.user-action-stack .btn-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.35);
    color: #86efac;
}

.user-action-stack .btn-success:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.45);
    color: #bbf7d0;
}

.user-action-stack .btn-danger,
.user-action-stack .btn-outline-danger {
    background: rgba(127, 29, 29, 0.16);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fecaca;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-action-stack .btn-danger:hover,
.user-action-stack .btn-danger:focus-visible,
.user-action-stack .btn-outline-danger:hover,
.user-action-stack .btn-outline-danger:focus-visible {
    background: rgba(220, 38, 38, 0.28);
    border-color: rgba(252, 165, 165, 0.58);
    color: #fff;
    box-shadow: 0 10px 20px rgba(127, 29, 29, 0.26), 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.user-action-stack .btn-warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

.user-action-stack .btn-warning:hover {
    background: rgba(245, 158, 11, 0.32);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fef3c7;
}

.user-action-stack .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: #fff;
}

.user-action-stack .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #fff;
}

.user-action-stack .btn-info {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
}

.user-action-stack .btn-info:hover {
    background: rgba(59, 130, 246, 0.32);
    border-color: rgba(59, 130, 246, 0.5);
    color: #dbeafe;
}

.user-action-stack .btn:disabled,
.user-action-stack .form-select:disabled,
.user-action-stack .form-control:disabled {
    opacity: 0.5;
    filter: saturate(0.7);
}

/* Main Dashboard anpassen für Mobile */
.main-dashboard {
    margin-left: 0;
    padding: 20px;
    transition: all 0.3s ease;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .sidebar-toggle {
        display: none !important;
    }
    
    .sidebar {
        left: 0;
        position: fixed;
    }
    
    .main-dashboard {
        margin-left: 280px;
        padding: 40px;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .sidebar.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .main-dashboard {
        padding: 90px 15px 20px 15px;
    }

    .dashboard-header {
        padding-top: 0;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 1399px) {
    .user-action-stack {
        min-width: 0;
    }

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

    .user-actions-details > .user-action-stack {
        min-width: 0;
    }

    .admin-user-expanded-panel {
        grid-template-columns: 1fr;
    }

    .admin-users-filter-form {
        grid-template-columns: 1fr;
    }

    .api-settings-grid {
        grid-template-columns: 1fr;
    }

    .dm-chat-grid {
        grid-template-columns: 1fr;
    }

    .dm-discord-embed-fields {
        grid-template-columns: 1fr;
    }

    .dm-history-list {
        min-height: 260px;
        max-height: 340px;
    }

    .admin-users-toolbar {
        padding: 10px;
    }

    .admin-users-filter-form,
    .admin-users-search-group,
    .admin-users-per-page {
        width: 100%;
        max-width: none;
    }

    .admin-users-meta {
        width: 100%;
    }

    .admin-users-quickfilters {
        grid-template-columns: 1fr;
    }

        .admin-users-role-legend {
            padding: 10px;
        }

        .admin-users-role-legend-grid {
            grid-template-columns: 1fr;
        }
}

@media (max-width: 767px) {
    .user-actions-details > summary {
        font-size: 0.76rem;
    }

    .admin-user-expanded-row td {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .dm-history-list {
        min-height: 220px;
        max-height: 280px;
    }

    .runtime-session-card .runtime-hint {
        text-align: left;
        width: 100%;
    }

    .runtime-session-meta-line {
        margin-bottom: 8px;
    }
}

/* Smooth scrolling für Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* CSS Variablen falls sie nicht definiert sind */
:root {
    --primary-color: #6441A4;
    --accent-color: #9146FF;
    --dark-bg: #18284F;
    --darker-bg: #0d1b3e;
    --text-light: #ffffff;
    --text-secondary: #b9c3e4;
}

/* Farbige Input-Werte */
.colored-input {
    color: var(--accent-color) !important;
    font-weight: 500;
}

.twitch-copy-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
}

.twitch-copy-btn {
    min-width: 170px;
}

.twitch-copy-btn-label {
    display: inline-flex;
    align-items: center;
}

.twitch-copy-btn.is-copied {
    border-color: rgba(92, 243, 176, 0.7);
    background: linear-gradient(135deg, rgba(30, 170, 110, 0.38), rgba(25, 125, 88, 0.5));
    color: #f2fff8;
}

/* Installationsanleitung Styles */
.installation-guide {
    margin: 20px 0;
}

.installation-progress {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.installation-progress .progress {
    background-color: rgba(255, 255, 255, 0.1);
}

.installation-progress .progress-bar {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.install-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.install-step.current {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(145, 70, 255, 0.3);
}

.install-step.completed {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.install-step.current .step-header {
    background: rgba(145, 70, 255, 0.2);
}

.install-step.completed .step-header {
    background: rgba(40, 167, 69, 0.2);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    margin-right: 15px;
    font-size: 14px;
}

.install-step.completed .step-number {
    background: #28a745;
}

.step-header h5 {
    margin: 0;
    flex-grow: 1;
    color: var(--text-light);
}

.step-content {
    padding: 20px;
}

.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background: #4752C4;
    color: white;
    transform: translateY(-2px);
}

.installation-tips .alert {
    border-left: 4px solid var(--accent-color);
}

.obsbot-download-hub {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

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

.obsbot-download-item {
    background: rgba(13, 27, 62, 0.55);
    border: 1px solid rgba(75, 108, 183, 0.25);
    border-radius: 10px;
    padding: 14px;
}

.obsbot-download-title {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.obsbot-download-item p {
    color: var(--text-secondary);
}

/* ============================================================
   Customer Scout — E-Mail-Pille + Lead-Persistenz
   (DSGVO + CSP konform; nur Klassen, keine inline-Styles)
   ============================================================ */
.customer-scout-email-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.customer-scout-email-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(30, 64, 175, 0.18);
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    word-break: break-all;
    line-height: 1.15;
    font-family: inherit;
}
.customer-scout-email-pill:hover,
.customer-scout-email-pill:focus-visible {
    background: rgba(59, 130, 246, 0.32);
    border-color: rgba(147, 197, 253, 0.85);
    color: #f0f9ff;
    outline: none;
}
.customer-scout-email-pill i { font-size: 0.72rem; opacity: 0.8; }
.customer-scout-email-pill.is-missing {
    background: rgba(71, 85, 105, 0.22);
    border-color: rgba(148, 163, 184, 0.4);
    color: #cbd5e1;
    text-decoration: none;
}
.customer-scout-email-pill.is-missing:hover,
.customer-scout-email-pill.is-missing:focus-visible {
    background: rgba(100, 116, 139, 0.32);
    border-color: rgba(203, 213, 225, 0.6);
    color: #f1f5f9;
}
.customer-scout-email-pill.is-missing i { color: #fbbf24; opacity: 0.95; }

.lead-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(100, 116, 139, 0.25);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.4);
}
.lead-status-badge.isnew       { background: rgba(59,130,246,0.22); color:#bfdbfe; border-color: rgba(96,165,250,0.55); }
.lead-status-badge.iscontacted { background: rgba(168,85,247,0.22); color:#e9d5ff; border-color: rgba(192,132,252,0.55); }
.lead-status-badge.iswaiting   { background: rgba(245,158,11,0.22); color:#fde68a; border-color: rgba(251,191,36,0.55); }
.lead-status-badge.isaccepted  { background: rgba(16,185,129,0.22); color:#a7f3d0; border-color: rgba(52,211,153,0.6); }
.lead-status-badge.isdeclined  { background: rgba(239,68,68,0.22);  color:#fecaca; border-color: rgba(248,113,113,0.6); }
.lead-status-badge.isclosed    { background: rgba(71,85,105,0.30);  color:#cbd5e1; border-color: rgba(148,163,184,0.5); }

.customer-scout-lead-card {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.customer-scout-lead-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.customer-scout-lead-card-title i { color: #93c5fd; }

.customer-scout-lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-bottom: 10px;
}
.customer-scout-lead-grid .streamer-scout-field.full { grid-column: 1 / -1; }

.customer-scout-lead-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.customer-scout-lead-feedback {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-left: 4px;
}
.customer-scout-lead-feedback.is-success { color: #86efac; }
.customer-scout-lead-feedback.is-error   { color: #fca5a5; }

.customer-scout-lead-meta {
    margin-top: 8px;
    font-size: 0.74rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.customer-scout-lead-meta i { font-size: 0.72rem; }

.customer-scout-lead-privacy {
    margin-top: 8px;
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.35;
    font-style: italic;
}
.customer-scout-lead-privacy i { color: #64748b; margin-top: 2px; }

.streamer-scout-action-btn.is-danger {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    color: #fff;
    border-color: rgba(248, 113, 113, 0.65);
}
.streamer-scout-action-btn.is-danger:hover,
.streamer-scout-action-btn.is-danger:focus-visible {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-color: rgba(252, 165, 165, 0.85);
}

.streamer-scout-action-btn.is-secondary {
    background: rgba(30, 41, 59, 0.85);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.5);
}
.streamer-scout-action-btn.is-secondary:hover,
.streamer-scout-action-btn.is-secondary:focus-visible {
    background: rgba(51, 65, 85, 0.95);
    border-color: rgba(203, 213, 225, 0.8);
    color: #f1f5f9;
}

.customer-scout-email-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}
.customer-scout-email-input-row > input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}
.customer-scout-email-autofind {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
}
.customer-scout-email-autofind i { color: #fbbf24; }

@media (max-width: 720px) {
    .customer-scout-table-tools {
        align-items: stretch;
    }
    .customer-scout-table-controls,
    .customer-scout-pagination {
        width: 100%;
        justify-content: flex-start;
    }
    .customer-scout-lead-grid { grid-template-columns: 1fr; }
    .customer-scout-email-input-row { flex-direction: column; }
}

/* ======================================================================
   DASHBOARD RESPONSIVE SCALING (mobile bis 4K+)
   Liegt absichtlich spaet in dashboard-inline.css, weil diese Datei nach
   global.css und dashboard.css geladen wird.
   ====================================================================== */
@media (min-width: 768px) {
    .main-dashboard {
        width: calc(100% - 280px);
        max-width: none;
    }

    /* Footer auf Dashboard-Seiten am Sidebar ausrichten,
       sonst überlagert die fixed Sidebar die linke Footer-Spalte. */
    .main-dashboard ~ .sw-footer {
        margin-left: 250px;
        max-width: calc(100% - 250px);
        box-sizing: border-box;
    }
}

@media (min-width: 1600px) {
    .sidebar {
        width: 300px;
    }

    .sidebar-nav a {
        padding-left: 28px;
        padding-right: 28px;
    }

    .main-dashboard {
        width: calc(100% - 300px);
        margin-left: 300px;
        padding: 48px;
    }

    .main-dashboard .container,
    .main-dashboard .container-fluid,
    .main-dashboard .container-lg,
    .main-dashboard .container-xl,
    .main-dashboard .container-xxl {
        width: 100% !important;
        max-width: none !important;
    }

    .dashboard-header,
    .dashboard-card,
    .main-dashboard > .section-header {
        padding: 32px;
    }

    .dashboard-card,
    .admin-config-card,
    .streamstats-config-panel,
    .streamstats-data-panel,
    .streamguard-card .admin-config-card,
    .temp-housekeeping-card {
        border-radius: 14px;
    }

    .setup-cards-grid,
    .streamstats-admin-tools,
    .streamstats-special-grid,
    .customer-scout-kpi-grid,
    .customer-scout-banner-grid,
    .customer-scout-overview-grid,
    .customer-scout-story-grid {
        gap: 16px;
    }

    .setup-cards-grid,
    .streamstats-admin-tools {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .main-dashboard ~ .sw-footer {
        margin-left: 300px;
        max-width: calc(100% - 300px);
    }
}

@media (min-width: 2200px) {
    .sidebar {
        width: 320px;
    }

    .main-dashboard {
        width: calc(100% - 320px);
        margin-left: 320px;
        padding: 64px;
    }

    .main-dashboard ~ .sw-footer {
        margin-left: 320px;
        max-width: calc(100% - 320px);
    }

    .dashboard-header,
    .dashboard-card,
    .main-dashboard > .section-header {
        padding: 36px;
    }

    .main-dashboard .row {
        --bs-gutter-x: 2rem;
        --bs-gutter-y: 2rem;
    }

    .streamstats-status-grid,
    .streamguard-card .streamguard-runstatus-grid {
        grid-template-columns: repeat(4, minmax(230px, 1fr));
    }

    .streamstats-action-grid,
    .streamstats-winner-actions,
    .streamstats-step-grid {
        grid-template-columns: repeat(2, minmax(360px, 1fr));
    }

    .streamstats-special-grid {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
    }
}

@media (min-width: 3000px) {
    .main-dashboard {
        padding-left: 80px;
        padding-right: 80px;
    }

    .dashboard-header,
    .dashboard-card,
    .main-dashboard > .section-header {
        padding: 42px;
    }
}

/* ==========================================================================
   MOBILE QUICK WINS (≤768 / ≤576 / ≤430)
   Additive Mobile-Optimierungen für Smartphone-Hochkant-Layouts.
   Verhindern horizontales Scrollen, sichern Tap-Targets ≥ 44px,
   verhindern iOS-Auto-Zoom auf Inputs (font-size ≥ 16px),
   und brechen lange Tokens (License-Keys, IDs) sauber um.
   ========================================================================== */

/* 1) Globaler Schutz vor horizontalem Overflow im Dashboard-Container.
       Greift in jeder Section; verhindert Layout-Sprünge durch zu breite
       Tabellen, Codes, Bilder oder iframes. */
.main-dashboard,
.main-dashboard .dashboard-card,
.main-dashboard .dashboard-header {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.main-dashboard img,
.main-dashboard video,
.main-dashboard iframe,
.main-dashboard svg {
    max-width: 100%;
    height: auto;
}

/* Lange Strings (Tokens, Lizenzschlüssel, URLs) sauber umbrechen. */
.main-dashboard code,
.main-dashboard kbd,
.main-dashboard samp {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.main-dashboard pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Bootstrap-Tabellen mobil immer horizontal scrollbar machen,
   ohne den seitlichen Container zu sprengen. */
.main-dashboard .table-responsive {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* 2) iOS-Auto-Zoom auf Eingabefeldern unterbinden:
       Safari iOS zoomt automatisch beim Fokus, wenn font-size < 16px.
       Greift nur ≤576px, damit das Desktop-Design unverändert bleibt. */
@media (max-width: 575.98px) {
    .main-dashboard input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    .main-dashboard select,
    .main-dashboard textarea,
    .main-dashboard .form-control,
    .main-dashboard .form-select {
        font-size: 16px;
    }
}

/* 3) Tap-Target-Mindestmaß für interaktive Elemente auf Smartphones.
       Folgt den WCAG 2.5.5 / Apple HIG / Material-Design-Empfehlungen
       (≥44×44px), ohne Buttons auf Tablets/Desktop künstlich aufzublasen. */
@media (max-width: 575.98px) {
    .main-dashboard .btn,
    .main-dashboard .nav-link,
    .main-dashboard .dropdown-item,
    .main-dashboard .page-link,
    .main-dashboard .obsbot-remote-action,
    .main-dashboard .streamer-scout-action-btn,
    .main-dashboard .account-license-btn {
        min-height: 44px;
    }

    /* Sidebar-Toggle ebenfalls als komfortables Tap-Target. */
    .sidebar-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    /* Pill-Schaltflächen, die als Filter/Status klickbar sind, brauchen
       genug vertikale Trefferfläche, ohne ihre kompakte Optik zu verlieren. */
    .main-dashboard .crypto-status-pill,
    .main-dashboard .streamer-scout-action-btn.is-secondary {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* 4) Schmale Smartphones (≤430px / iPhone Pro Max & kleiner):
       Horizontale Innenabstände vorsichtig reduzieren, damit Karten,
       Formulare und Action-Grids nicht eng abschneiden. */
@media (max-width: 430px) {
    .main-dashboard .dashboard-card,
    .main-dashboard .admin-config-card,
    .main-dashboard .twitch-auth-card,
    .main-dashboard .discord-setup-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Action-Reihen mit mehreren Buttons: in eine Spalte stellen,
       damit jedes Tap-Target volle Breite und 44px Höhe bekommt. */
    .main-dashboard .admin-form-actions,
    .main-dashboard .account-license-actions,
    .main-dashboard .streamer-scout-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .main-dashboard .admin-form-actions > *,
    .main-dashboard .account-license-actions > .account-license-btn,
    .main-dashboard .streamer-scout-actions > .streamer-scout-action-btn {
        width: 100%;
    }
}

/* Giveaway-Gefahrenzone: rote, klar abgegrenzte Box am Ende des Giveaway-Panels. */
.sw-giveaway-danger-zone {
    margin-top: 24px;
    border: 1px solid #c2410c;
    border-radius: 8px;
    padding: 16px;
    background: #1f0f08;
}
.sw-giveaway-danger-title {
    margin: 0 0 8px 0;
    color: #fb923c;
}
.sw-giveaway-danger-text {
    margin: 0 0 12px 0;
    color: #fda4af;
}
.sw-giveaway-danger-label {
    display: block;
    margin-bottom: 8px;
    color: #fef3c7;
}
.sw-giveaway-danger-input {
    display: block;
    margin-top: 4px;
    padding: 6px 10px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 4px;
    color: #fff;
}
.sw-giveaway-danger-button {
    background: #dc2626;
    border-color: #7f1d1d;
    color: #fff;
}
.sw-giveaway-danger-button:hover {
    background: #b91c1c;
    border-color: #7f1d1d;
}

/* Dashboard Readability Refresh: ruhigere Typografie, mehr Kontrast und klarere App-Flächen. */
.main-dashboard {
    --sw-dash-surface: rgba(13, 22, 41, 0.86);
    --sw-dash-surface-soft: rgba(15, 27, 50, 0.64);
    --sw-dash-surface-strong: rgba(8, 14, 28, 0.92);
    --sw-dash-border: rgba(148, 163, 184, 0.22);
    --sw-dash-border-strong: rgba(125, 211, 252, 0.32);
    --sw-dash-text: #f4f7fb;
    --sw-dash-text-soft: #d8e2ef;
    --sw-dash-muted: #b8c4d8;
    --sw-dash-link: #93c5fd;
    color: var(--sw-dash-text);
    line-height: 1.55;
}

.main-dashboard .dashboard-header,
.main-dashboard .dashboard-card,
.main-dashboard > .section-header,
.main-dashboard .admin-config-card,
.main-dashboard .streamstats-kpi,
.main-dashboard .streamstats-action-card,
.main-dashboard .streamstats-config-panel,
.main-dashboard .streamstats-data-panel,
.main-dashboard .streamstats-scope-panel,
.main-dashboard .streamstats-step,
.main-dashboard .streamstats-tool-card,
.main-dashboard .streamstats-special-list,
.main-dashboard .customer-scout-hero,
.main-dashboard .customer-scout-story-block,
.main-dashboard .admin-security-score-card,
.main-dashboard .admin-security-check-card,
.main-dashboard .streamguard-card .admin-config-card,
.main-dashboard .streamguard-card .streamguard-runstatus-stat,
.main-dashboard .diamond-admin-card,
.main-dashboard .crypto-card {
    background: var(--sw-dash-surface-soft);
    border-color: var(--sw-dash-border);
    box-shadow: none;
}

.main-dashboard .dashboard-card:hover,
.main-dashboard .streamstats-action-card:hover,
.main-dashboard .streamstats-action-card:focus-visible,
.main-dashboard .customer-scout-table tbody tr:hover > td,
.main-dashboard .streamguard-card .streamguard-switch-btn:hover:not(:disabled),
.main-dashboard .streamguard-card .streamguard-switch-btn.is-active {
    transform: none;
    border-color: var(--sw-dash-border-strong);
    background: rgba(19, 35, 61, 0.72);
}

.main-dashboard .section-title,
.main-dashboard .card-title,
.main-dashboard .admin-config-card-header,
.main-dashboard .admin-config-collapse-status-text,
.main-dashboard .streamstats-config-head h4,
.main-dashboard .streamstats-setup-head h4,
.main-dashboard .streamstats-scope-head h4,
.main-dashboard .streamstats-disclosure-title strong,
.main-dashboard .streamstats-tool-card strong,
.main-dashboard .streamstats-action-body strong,
.main-dashboard .streamstats-step-title-row h5,
.main-dashboard .customer-scout-channel-name,
.main-dashboard .customer-scout-hero-message,
.main-dashboard .admin-user-name,
.main-dashboard .diamond-admin-title {
    color: var(--sw-dash-text);
    font-weight: 650;
    letter-spacing: 0;
}

.main-dashboard .section-subtitle,
.main-dashboard .card-subtitle,
.main-dashboard .dashboard-subtitle,
.main-dashboard .form-text,
.main-dashboard .text-muted,
.main-dashboard .text-secondary,
.main-dashboard .api-hint,
.main-dashboard .runtime-hint,
.main-dashboard .admin-user-subline,
.main-dashboard .streamstats-kpi-label,
.main-dashboard .streamstats-setup-head p,
.main-dashboard .streamstats-config-head p,
.main-dashboard .streamstats-scope-head p,
.main-dashboard .streamstats-action-body small,
.main-dashboard .streamstats-disclosure-title small,
.main-dashboard .streamstats-table-heading span,
.main-dashboard .streamstats-tool-card small,
.main-dashboard .customer-scout-channel-title,
.main-dashboard .customer-scout-angle-meta,
.main-dashboard .admin-config-collapse-meta,
.main-dashboard .admin-security-check-summary,
.main-dashboard .diamond-admin-copy {
    color: var(--sw-dash-muted) !important;
    line-height: 1.55;
}

.main-dashboard a:not(.btn):not(.sidebar-nav a),
.main-dashboard .streamstats-action-body code,
.main-dashboard .streamstats-endpoint-code,
.main-dashboard code {
    color: var(--sw-dash-link);
}

.main-dashboard .fw-bold,
.main-dashboard .badge,
.main-dashboard .btn,
.main-dashboard .form-label,
.main-dashboard .settings-status-badge,
.main-dashboard .admin-users-chip,
.main-dashboard .runtime-pill,
.main-dashboard .streamstats-status-pill,
.main-dashboard .streamstats-scope-chip,
.main-dashboard .streamstats-tier,
.main-dashboard .admin-security-check-badge,
.main-dashboard .diamond-admin-state,
.main-dashboard .premium-offer-badge,
.main-dashboard .diamond-offer-badge,
.main-dashboard .offer-chip,
.main-dashboard .diamond-offer-chip {
    font-weight: 650;
    letter-spacing: 0;
}

.main-dashboard .form-label {
    color: var(--sw-dash-text-soft);
}

.main-dashboard .form-control,
.main-dashboard .form-select,
.main-dashboard textarea,
.main-dashboard .modern-input,
.main-dashboard .admin-users-quickfilters .form-select,
.main-dashboard .api-settings-grid .form-select,
.main-dashboard .user-action-stack .form-select,
.main-dashboard .crypto-card .form-select.modern-input {
    background: var(--sw-dash-surface-strong) !important;
    border-color: rgba(148, 163, 184, 0.32) !important;
    color: var(--sw-dash-text) !important;
    box-shadow: none !important;
    color-scheme: dark;
}

.main-dashboard .form-control::placeholder,
.main-dashboard textarea::placeholder {
    color: #9fb0c7;
    opacity: 1;
}

.main-dashboard .form-control:focus,
.main-dashboard .form-select:focus,
.main-dashboard textarea:focus,
.main-dashboard .modern-input:focus,
.main-dashboard .crypto-card .form-select.modern-input:focus {
    background: rgba(12, 22, 41, 0.96) !important;
    border-color: rgba(125, 211, 252, 0.62) !important;
    box-shadow: 0 0 0 0.16rem rgba(56, 189, 248, 0.14) !important;
    color: #ffffff !important;
}

.main-dashboard .form-control:disabled,
.main-dashboard .form-select:disabled,
.main-dashboard textarea:disabled {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(100, 116, 139, 0.32) !important;
    color: #9fb0c7 !important;
}

.main-dashboard .btn-outline-light,
.main-dashboard .btn-outline-secondary,
.main-dashboard .btn-outline-info,
.main-dashboard .btn-outline-primary,
.main-dashboard .btn-admin-secondary,
.main-dashboard .dm-history-link {
    border-color: rgba(148, 163, 184, 0.34) !important;
    background: rgba(15, 23, 42, 0.52) !important;
    color: #dbeafe !important;
}

.main-dashboard .btn-outline-light:hover,
.main-dashboard .btn-outline-secondary:hover,
.main-dashboard .btn-outline-info:hover,
.main-dashboard .btn-outline-primary:hover,
.main-dashboard .btn-admin-secondary:hover,
.main-dashboard .dm-history-link:hover {
    border-color: rgba(125, 211, 252, 0.54) !important;
    background: rgba(30, 41, 59, 0.72) !important;
    color: #ffffff !important;
}

.main-dashboard .table,
.main-dashboard .admin-users-table,
.main-dashboard .streamstats-table,
.main-dashboard .customer-scout-table {
    --bs-table-color: var(--sw-dash-text-soft);
    --bs-table-hover-bg: rgba(20, 184, 166, 0.06);
    color: var(--sw-dash-text-soft);
}

.main-dashboard .table thead th,
.main-dashboard .admin-users-table thead th,
.main-dashboard .streamstats-table thead th,
.main-dashboard .customer-scout-table thead th,
.main-dashboard .sw-viewers-table th {
    background: rgba(8, 14, 28, 0.94);
    color: #d9e7ff;
    font-weight: 650;
    letter-spacing: 0.025em;
}

.main-dashboard .table td,
.main-dashboard .admin-users-table tbody td,
.main-dashboard .streamstats-table td,
.main-dashboard .customer-scout-table tbody td {
    border-color: rgba(148, 163, 184, 0.12);
}

.main-dashboard .admin-users-table-wrap,
.main-dashboard .streamstats-table-wrap,
.main-dashboard .streamguard-card .streamguard-runstatus-table-wrap,
.main-dashboard .sw-viewers-table-wrap {
    border-color: var(--sw-dash-border);
    background: rgba(8, 14, 28, 0.54);
}

.main-dashboard .admin-users-chip,
.main-dashboard .settings-status-badge,
.main-dashboard .runtime-pill,
.main-dashboard .streamstats-status-pill,
.main-dashboard .streamstats-scope-chip,
.main-dashboard .streamstats-tier,
.main-dashboard .sw-tier-badge,
.main-dashboard .sw-giveaway-status-badge {
    border-width: 1px;
    text-transform: none;
}

.main-dashboard .admin-users-chip.api-missing,
.main-dashboard .streamstats-step.is-locked,
.main-dashboard .sw-giveaway-step.sw-giveaway-step-optional.is-locked {
    opacity: 0.88;
}

.main-dashboard .admin-user-discord,
.main-dashboard .admin-user-id-pill,
.main-dashboard .streamstats-pager span,
.main-dashboard .sw-viewers-table .sw-num {
    font-variant-numeric: tabular-nums;
}

.main-dashboard .admin-user-id-pill {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.32);
    font-weight: 600;
}

.main-dashboard .streamstats-kpi strong,
.main-dashboard .streamguard-card .streamguard-runstatus-value,
.main-dashboard .admin-security-score-value,
.main-dashboard .customer-scout-kpi-value,
.main-dashboard .offer-price-value,
.main-dashboard .diamond-price-value,
.main-dashboard .sw-giveaway-metric strong {
    font-weight: 700;
    letter-spacing: 0;
}

.main-dashboard .streamstats-status-pill.is-good,
.main-dashboard .admin-users-chip.api-ok,
.main-dashboard .settings-status-active {
    color: #c8f7da;
    background: rgba(20, 83, 45, 0.22);
    border-color: rgba(74, 222, 128, 0.32);
}

.main-dashboard .streamstats-status-pill.is-waiting,
.main-dashboard .admin-users-chip.api-expired,
.main-dashboard .settings-status-pending {
    color: #ffefbd;
    background: rgba(113, 63, 18, 0.24);
    border-color: rgba(251, 191, 36, 0.34);
}

.main-dashboard .admin-users-chip.api-inactive,
.main-dashboard .modern-alert-danger,
.main-dashboard .streamstats-tool-card.is-danger {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.18);
    border-color: rgba(248, 113, 113, 0.32);
}

@media (max-width: 767px) {
    .main-dashboard {
        font-size: 0.94rem;
    }

    .main-dashboard .section-title,
    .main-dashboard .card-title {
        line-height: 1.25;
    }
}

/* Admin-Testcenter (Selbstdiagnose). In geladenem Stylesheet statt inline-<style>,
   damit die Darstellung nicht von CSP-Nonces abhaengt (Nonce wird bei erneutem
   Section-Render ungueltig -> sonst faellt die Formatierung auf reinen Text zurueck). */
.tc-pill { display:inline-flex; align-items:center; gap:.3rem; padding:.25rem .6rem; border-radius:999px; font-size:.78rem; font-weight:800; }
.tc-pill-ok { background:rgba(34,197,94,.16); color:#4ade80; }
.tc-pill-warn { background:rgba(251,191,36,.16); color:#fbbf24; }
.tc-pill-fail { background:rgba(239,68,68,.18); color:#f87171; }
.tc-pill-skip { background:rgba(148,163,184,.16); color:#cbd5e1; }
.tc-group { border:1px solid rgba(148,163,184,.18); border-radius:10px; margin-bottom:.9rem; overflow:hidden; }
.tc-group-head { padding:.6rem .85rem; font-weight:850; background:rgba(8,15,33,.4); display:flex; justify-content:space-between; align-items:center; }
.tc-row { display:flex; align-items:flex-start; gap:.6rem; padding:.5rem .85rem; border-top:1px solid rgba(148,163,184,.1); }
.tc-row-title { font-weight:700; min-width:0; overflow-wrap:anywhere; }
.tc-row-detail { color:rgba(203,213,225,.75); font-size:.82rem; overflow-wrap:anywhere; }
.tc-row-ms { margin-left:auto; flex:0 0 auto; color:rgba(148,163,184,.7); font-size:.72rem; font-variant-numeric:tabular-nums; }
.tc-row-crit { color:#f87171; font-size:.7rem; font-weight:800; }

/* ─────────────────────────────────────────────────────────────────────────
   Admin: Twitch-User-Suche – Ergebnistabelle.
   Ohne nowrap quetscht der Browser 17 Spalten in die Breite und bricht mitten
   im Wort um ("8lackn0v a", "viewe r"). Mit nowrap wird die Tabelle breiter als
   der Container und .table-responsive scrollt horizontal – lesbar auf jeder
   Auflösung, inkl. Touch.
   ───────────────────────────────────────────────────────────────────────── */
.sw-usearch-table th,
.sw-usearch-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.sw-usearch-table code {
    font-size: .82em;
}

.sw-usearch-table .badge {
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Kompakter auf kleinen Viewports: mehr Spalten pro Scroll-Schritt sichtbar. */
@media (max-width: 991.98px) {
    .sw-usearch-table th,
    .sw-usearch-table td {
        padding-top: .35rem;
        padding-bottom: .35rem;
        font-size: .84rem;
    }
}
