:root {
    --background: #070711;
    --background-soft: #0d0b18;
    --panel: rgba(21, 17, 37, 0.88);
    --panel-hover: rgba(29, 22, 48, 0.96);
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 61, 174, 0.3);

    --text: #f8f4ff;
    --muted: #968ca9;
    --muted-light: #c6bdd2;

    --pink: #ff3eaa;
    --pink-light: #ff76ce;
    --purple: #9d4cff;
    --cyan: #58e9ff;

    --green: #48e59a;
    --yellow: #ffc85c;
    --red: #ff5f80;

    --shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);

    --glow:
        0 0 30px rgba(255, 62, 170, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    color: var(--text);
    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(157, 76, 255, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 12% 20%,
            rgba(255, 62, 170, 0.12),
            transparent 28%
        ),
        var(--background);

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;

    display: flex;
    flex-direction: column;

    height: 100vh;
    padding: 26px 18px;

    background:
        linear-gradient(
            180deg,
            rgba(18, 13, 31, 0.98),
            rgba(9, 8, 18, 0.98)
        );

    border-right: 1px solid var(--border);
}

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

    padding: 0 8px 26px;
}

.brand-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    border: 1px solid rgba(255, 115, 207, 0.52);
    border-radius: 14px;

    color: white;
    background:
        linear-gradient(
            135deg,
            var(--pink),
            var(--purple)
        );

    font-weight: 800;

    box-shadow:
        0 0 28px rgba(255, 62, 170, 0.34);
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
}

.brand-subtitle {
    margin-top: 3px;

    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navigation {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}

.nav-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 48px;
    padding: 0 14px;

    overflow: hidden;

    color: var(--muted-light);
    border: 1px solid transparent;
    border-radius: 13px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
}

.nav-item.active {
    color: white;
    border-color: rgba(255, 62, 170, 0.24);
    background:
        linear-gradient(
            90deg,
            rgba(255, 62, 170, 0.2),
            rgba(157, 76, 255, 0.11)
        );

    box-shadow:
        inset 3px 0 0 var(--pink),
        0 0 22px rgba(255, 62, 170, 0.08);
}

.nav-icon {
    width: 19px;
    color: var(--pink-light);
    text-align: center;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-top: 20px;
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.025);
}

.connection-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--green);
    box-shadow:
        0 0 16px rgba(72, 229, 154, 0.75);
}

.connection-title {
    font-size: 13px;
    font-weight: 700;
}

.connection-text {
    margin-top: 3px;

    color: var(--muted);
    font-size: 11px;
}

.main-content {
    min-width: 0;
    padding: 34px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 30px;
}

.eyebrow,
.panel-kicker {
    margin: 0 0 8px;

    color: var(--pink-light);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;

    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.08;
}

h2 {
    margin-bottom: 0;

    font-size: 19px;
}

.page-description {
    margin-bottom: 0;

    color: var(--muted);
    font-size: 14px;
}

.admin-card {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 190px;
    padding: 11px 14px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.03);
}

.admin-avatar {
    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 62, 170, 0.9),
            rgba(157, 76, 255, 0.9)
        );

    font-weight: 800;
}

.admin-name {
    font-size: 13px;
    font-weight: 700;
}

.admin-role {
    margin-top: 4px;

    color: var(--muted);
    font-size: 11px;
}

.stats-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 17px;

    margin-bottom: 18px;
}

.stat-card,
.panel {
    border: 1px solid var(--border);
    background:
        linear-gradient(
            145deg,
            rgba(23, 18, 39, 0.94),
            rgba(14, 12, 25, 0.94)
        );

    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.stat-card {
    min-height: 160px;
    padding: 20px;

    border-radius: 18px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow:
        var(--shadow),
        var(--glow);
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-label {
    color: var(--muted-light);
    font-size: 13px;
}

.stat-icon {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    border-radius: 11px;

    color: var(--pink-light);
    background: rgba(255, 62, 170, 0.1);
}

.stat-icon.success {
    color: var(--green);
    background: rgba(72, 229, 154, 0.1);
}

.stat-icon.warning {
    color: var(--yellow);
    background: rgba(255, 200, 92, 0.1);
}

.stat-value {
    margin-top: 22px;

    font-size: 31px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.stat-footer {
    margin-top: 9px;

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

.success-text {
    color: rgba(72, 229, 154, 0.84);
}

.warning-text {
    color: rgba(255, 200, 92, 0.9);
}

.warning-card {
    border-color: rgba(255, 200, 92, 0.14);
}

.dashboard-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(290px, 0.7fr);
    gap: 18px;

    margin-bottom: 18px;
}

.panel {
    padding: 22px;

    border-radius: 19px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 20px;
}

.ghost-button,
.small-button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 11px;

    color: white;

    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        border-color 0.18s ease;
}

.ghost-button {
    padding: 9px 12px;

    color: var(--muted-light);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.ghost-button:hover,
.secondary-button:hover {
    border-color: rgba(255, 62, 170, 0.38);
    transform: translateY(-1px);
}

.attention-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attention-item {
    display: grid;
    grid-template-columns:
        8px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 13px;

    padding: 14px;

    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.022);
}

.attention-marker {
    width: 7px;
    height: 38px;

    border-radius: 999px;
}

.attention-marker.urgent {
    background: var(--red);
    box-shadow:
        0 0 16px rgba(255, 95, 128, 0.45);
}

.attention-marker.warning {
    background: var(--yellow);
    box-shadow:
        0 0 16px rgba(255, 200, 92, 0.35);
}

.attention-marker.info {
    background: var(--cyan);
    box-shadow:
        0 0 16px rgba(88, 233, 255, 0.36);
}

.attention-title {
    font-size: 13px;
    font-weight: 700;
}

.attention-description {
    margin-top: 5px;

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

.small-button {
    padding: 8px 11px;

    color: var(--pink-light);
    border: 1px solid rgba(255, 62, 170, 0.23);
    background: rgba(255, 62, 170, 0.08);
}

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

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.primary-button,
.secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    min-height: 45px;
    padding: 0 15px;

    font-size: 13px;
    font-weight: 700;
}

.primary-button {
    background:
        linear-gradient(
            100deg,
            var(--pink),
            var(--purple)
        );

    box-shadow:
        0 10px 30px rgba(255, 62, 170, 0.18);
}

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

.secondary-button {
    color: var(--muted-light);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 13px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

td {
    color: var(--muted-light);
    font-size: 13px;
}

tbody tr {
    transition:
        background 0.18s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.022);
}

.streamer-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.streamer-avatar {
    display: grid;
    place-items: center;

    width: 37px;
    height: 37px;

    border: 1px solid rgba(255, 62, 170, 0.22);
    border-radius: 11px;

    color: var(--pink-light);
    background:
        linear-gradient(
            145deg,
            rgba(255, 62, 170, 0.12),
            rgba(157, 76, 255, 0.08)
        );

    font-weight: 800;
}

.streamer-name {
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.streamer-meta {
    margin-top: 4px;

    color: var(--muted);
    font-size: 11px;
}

.grade {
    display: inline-grid;
    place-items: center;

    min-width: 31px;
    height: 27px;
    padding: 0 9px;

    border-radius: 8px;

    font-weight: 800;
}

.grade-n {
    color: var(--cyan);
    border: 1px solid rgba(88, 233, 255, 0.26);
    background: rgba(88, 233, 255, 0.08);
}

.grade-c {
    color: var(--pink-light);
    border: 1px solid rgba(255, 62, 170, 0.27);
    background: rgba(255, 62, 170, 0.09);
}

.status {
    display: inline-flex;
    align-items: center;

    min-height: 27px;
    padding: 0 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

.warning-status {
    color: var(--yellow);
    background: rgba(255, 200, 92, 0.09);
}

.success-status {
    color: var(--green);
    background: rgba(72, 229, 154, 0.09);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;

    z-index: 100;

    padding: 13px 16px;

    color: white;
    border: 1px solid rgba(255, 62, 170, 0.35);
    border-radius: 12px;

    background: rgba(20, 15, 34, 0.96);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(255, 62, 170, 0.15);

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);

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

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

@media (max-width: 820px) {
    .app-shell {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .sidebar {
        padding-inline: 12px;
    }

    .brand {
        justify-content: center;
        padding-inline: 0;
    }

    .brand > div:not(.brand-icon),
    .nav-item span:last-child,
    .sidebar-footer > div:last-child {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding-inline: 0;
    }

    .sidebar-footer {
        justify-content: center;
    }

    .main-content {
        padding: 24px 18px;
    }
}

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

    .topbar {
        flex-direction: column;
    }

    .admin-card {
        width: 100%;
    }

    .attention-item {
        grid-template-columns:
            8px
            minmax(0, 1fr);
    }

    .attention-item .small-button {
        grid-column: 2;
        justify-self: start;
    }
}

.primary-top-button {
    min-height: 46px;
    padding: 0 20px;

    color: white;
    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            100deg,
            var(--pink),
            var(--purple)
        );

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 12px 34px rgba(255, 62, 170, 0.2);

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.primary-top-button:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.notice {
    margin-bottom: 18px;
    padding: 13px 16px;

    border-radius: 13px;

    font-size: 13px;
    font-weight: 700;
}

.success-notice {
    color: var(--green);
    border: 1px solid rgba(72, 229, 154, 0.2);
    background: rgba(72, 229, 154, 0.07);
}

.error-notice {
    color: var(--red);
    border: 1px solid rgba(255, 95, 128, 0.22);
    background: rgba(255, 95, 128, 0.07);
}

.streamers-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 18px;
    padding: 15px 17px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;

    width: min(560px, 100%);
    min-height: 43px;
    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);
}

.search-box:focus-within {
    border-color: rgba(255, 62, 170, 0.42);
    box-shadow:
        0 0 0 3px rgba(255, 62, 170, 0.07);
}

.search-icon {
    color: var(--pink-light);
    font-size: 19px;
}

.search-box input {
    width: 100%;

    color: white;
    border: 0;
    outline: 0;
    background: transparent;
}

.search-box input::placeholder {
    color: var(--muted);
}

.toolbar-summary {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted);
    font-size: 13px;
}

.toolbar-summary strong {
    color: white;
}

.streamers-panel {
    min-height: 470px;
}

.streamer-link {
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.streamer-link:hover {
    color: var(--pink-light);
}

.copy-value {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    max-width: 260px;
    padding: 6px 8px;

    overflow: hidden;

    color: var(--muted-light);
    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;

    text-overflow: ellipsis;
    white-space: nowrap;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.copy-value:hover {
    color: white;
    border-color: rgba(255, 62, 170, 0.22);
    background: rgba(255, 62, 170, 0.06);
}

.copy-symbol {
    flex: 0 0 auto;

    color: var(--pink-light);
    opacity: 0.75;
}

.email-value {
    max-width: 290px;
}

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

.duration-value {
    color: white;
    font-weight: 700;
}

.duration-date {
    margin-top: 4px;

    color: var(--muted);
    font-size: 11px;
}

.grade-d {
    color: var(--yellow);
    border: 1px solid rgba(255, 200, 92, 0.25);
    background: rgba(255, 200, 92, 0.08);
}

.empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    min-height: 350px;

    text-align: center;
}

.empty-state-icon {
    display: grid;
    place-items: center;

    width: 66px;
    height: 66px;
    margin-bottom: 18px;

    color: var(--pink-light);
    border: 1px solid rgba(255, 62, 170, 0.25);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 62, 170, 0.13),
            rgba(157, 76, 255, 0.08)
        );

    font-size: 25px;

    box-shadow:
        0 0 30px rgba(255, 62, 170, 0.1);
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin-bottom: 22px;
    color: var(--muted);
}

.empty-state-button {
    width: auto;
    padding-inline: 20px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;

    z-index: 200;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(3, 2, 9, 0.78);
    backdrop-filter: blur(10px);
}

.modal-backdrop.visible {
    display: flex;
}

.modal-window {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    padding: 24px;

    overflow-y: auto;

    border: 1px solid rgba(255, 62, 170, 0.22);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(25, 18, 42, 0.99),
            rgba(12, 10, 23, 0.99)
        );

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(255, 62, 170, 0.12);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
}

.modal-close {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    color: var(--muted-light);
    border: 1px solid var(--border);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.025);

    font-size: 22px;
}

.modal-close:hover {
    color: white;
    border-color: rgba(255, 62, 170, 0.35);
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field > span {
    color: var(--muted-light);
    font-size: 12px;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 13px;

    color: white;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: 0;

    background: rgba(255, 255, 255, 0.03);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(255, 62, 170, 0.45);
    box-shadow:
        0 0 0 3px rgba(255, 62, 170, 0.07);
}

.form-field textarea {
    resize: vertical;
}

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

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 24px;
}

.form-submit {
    width: auto;
    padding-inline: 22px;
}

@media (max-width: 760px) {
    .streamers-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

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

    .form-field-full {
        grid-column: auto;
    }

    .primary-top-button {
        width: 100%;
    }
}

.title-cell {
    min-width: 230px;
}

.title-cell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.title-state-label {
    font-size: 12px;
    font-weight: 800;
}

.title-state-description,
.title-expiration {
    margin-top: 5px;

    color: var(--muted);
    font-size: 11px;
}

.title-action-button {
    padding: 5px 9px;

    color: var(--pink-light);
    border: 1px solid rgba(255, 62, 170, 0.3);
    border-radius: 8px;

    background: rgba(255, 62, 170, 0.08);

    font-size: 11px;
    font-weight: 800;
}

.title-action-button:hover {
    color: white;
    background: rgba(255, 62, 170, 0.16);
}

.title-progress {
    width: 100%;
    height: 5px;
    margin-top: 9px;

    overflow: hidden;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.title-progress span {
    display: block;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--purple),
            var(--pink)
        );

    box-shadow:
        0 0 12px rgba(255, 62, 170, 0.35);
}

.title-waiting .title-state-label {
    color: var(--muted-light);
}

.title-ready .title-state-label {
    color: var(--cyan);
}

.title-active .title-state-label {
    color: var(--green);
}

.title-warning .title-state-label {
    color: var(--yellow);
}

.title-urgent .title-state-label,
.title-expired .title-state-label {
    color: var(--red);
}

.title-modal-window {
    width: min(560px, 100%);
}

.title-modal-streamer {
    margin: 8px 0 0;

    color: var(--pink-light);
    font-size: 13px;
    font-weight: 700;
}

.title-duration-note {
    margin-top: 18px;
    padding: 12px 14px;

    color: var(--muted-light);
    border: 1px solid rgba(157, 76, 255, 0.2);
    border-radius: 11px;

    background: rgba(157, 76, 255, 0.06);

    font-size: 12px;
}

.detail-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;

    color: var(--muted-light);
    font-size: 12px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--pink-light);
}

.detail-twitch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.detail-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 17px;

    margin-bottom: 18px;
}

.detail-stat-value {
    margin-top: 20px;

    color: white;
    font-size: 22px;
    font-weight: 800;
}

.detail-grade-row {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 20px;
}

.detail-grade-row strong {
    font-size: 20px;
}

.detail-title-state {
    margin-top: 20px;

    font-size: 17px;
    font-weight: 800;
}

.detail-title-date {
    margin-top: 7px;

    color: var(--muted-light);
    font-size: 12px;
}

.status-word {
    color: var(--green);
}

.detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(370px, 0.8fr);
    gap: 18px;

    margin-bottom: 18px;
}

.form-field select {
    width: 100%;
    padding: 12px 13px;

    color: white;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: 0;

    background: #171225;
}

.input-copy-wrapper {
    position: relative;
}

.input-copy-wrapper input {
    padding-right: 48px;
}

.field-copy-button {
    position: absolute;
    top: 50%;
    right: 7px;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    color: var(--pink-light);
    border: 1px solid rgba(255, 62, 170, 0.2);
    border-radius: 8px;

    background: rgba(255, 62, 170, 0.07);

    transform: translateY(-50%);
}

.field-copy-button:hover {
    color: white;
    background: rgba(255, 62, 170, 0.14);
}

.detail-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 24px;
}

.detail-cancel-link {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.detail-save-button {
    width: auto;
    padding-inline: 22px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;

    max-height: 720px;
    overflow-y: auto;
}

.history-item {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.022);
}

.history-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.history-item-header strong {
    color: var(--pink-light);
    font-size: 13px;
}

.history-item-header time {
    color: var(--muted);
    font-size: 10px;
}

.history-values {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;

    margin-top: 13px;
}

.history-values span {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.history-values p {
    margin: 5px 0 0;

    overflow-wrap: anywhere;

    color: var(--muted-light);
    font-size: 12px;
}

.history-arrow {
    color: var(--pink-light);
}

.history-comment {
    margin-top: 12px;
    padding: 9px 10px;

    color: var(--muted-light);
    border-radius: 9px;

    background: rgba(157, 76, 255, 0.07);

    font-size: 11px;
}

.history-author {
    margin-top: 9px;

    color: var(--muted);
    font-size: 10px;
    text-align: right;
}

.compact-empty-state {
    padding: 50px 20px;

    color: var(--muted);
    text-align: center;
}

.title-history-panel {
    margin-bottom: 30px;
}

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

.title-history-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;

    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.022);
}

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

.title-history-card p {
    margin: 7px 0 0;

    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 1180px) {
    .detail-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .detail-topbar {
        flex-direction: column;
    }

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

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

    .history-arrow {
        transform: rotate(90deg);
    }
}

.weekly-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.weekly-card {
    padding: 20px;
}

.weekly-card-review {
    border-color: rgba(255, 200, 92, 0.35);
    box-shadow:
        var(--shadow),
        0 0 28px rgba(255, 200, 92, 0.07);
}

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

    margin-bottom: 18px;
}

.weekly-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;

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

.weekly-review-badge {
    padding: 6px 10px;

    color: var(--yellow);
    border-radius: 999px;
    background: rgba(255, 200, 92, 0.1);

    font-weight: 700;
}

.weekly-statistics-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(0, 1.2fr);
    gap: 14px;
}

.weekly-stat-group {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.022);
}

.twitch-group {
    border-color: rgba(157, 76, 255, 0.17);
    background: rgba(157, 76, 255, 0.035);
}

.weekly-group-title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 13px;

    color: var(--muted-light);
    font-size: 12px;
    font-weight: 800;
}

.api-placeholder {
    padding: 4px 7px;

    color: var(--purple);
    border-radius: 999px;

    background: rgba(157, 76, 255, 0.1);

    font-size: 9px;
    text-transform: uppercase;
}

.weekly-fields-row {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.twitch-fields {
    grid-template-columns:
        repeat(5, minmax(105px, 1fr));
}

.weekly-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.weekly-field span,
.weekly-comment span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.weekly-field input,
.weekly-comment input {
    width: 100%;
    padding: 10px 11px;

    color: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;

    background: rgba(255, 255, 255, 0.03);
}

.weekly-field input:focus,
.weekly-comment input:focus {
    border-color: rgba(255, 62, 170, 0.4);
}

.weekly-bonuses {
    margin-top: 14px;
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.018);
}

.bonus-options {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.bonus-option {
    position: relative;

    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 48px;
    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.022);

    cursor: pointer;
}

.bonus-option:has(input:checked) {
    border-color: rgba(255, 62, 170, 0.32);
    background: rgba(255, 62, 170, 0.07);
}

.bonus-option input {
    accent-color: var(--pink);
}

.bonus-option span {
    color: var(--muted-light);
    font-size: 11px;
}

.bonus-option strong {
    display: block;
    margin-top: 4px;

    color: var(--pink-light);
    font-size: 10px;
}

.weekly-card-footer {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        auto
        auto;
    align-items: end;
    gap: 14px;

    margin-top: 14px;
}

.weekly-comment {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.weekly-result {
    min-width: 95px;
    padding: 10px 14px;

    border: 1px solid rgba(255, 62, 170, 0.18);
    border-radius: 11px;

    background: rgba(255, 62, 170, 0.06);
}

.weekly-result span {
    display: block;

    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.weekly-result strong {
    display: block;
    margin-top: 4px;

    color: white;
    font-size: 18px;
}

.weekly-save-button {
    width: auto;
    min-width: 120px;
    padding-inline: 18px;
}

@media (max-width: 1300px) {
    .weekly-statistics-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 850px) {
    .weekly-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .weekly-card-meta {
        flex-wrap: wrap;
    }

    .weekly-fields-row,
    .twitch-fields {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

    .weekly-card-footer {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .weekly-fields-row,
    .twitch-fields,
    .bonus-options {
        grid-template-columns: 1fr;
    }
}

.dashboard-week-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.weekly-payment-field {
    display: flex;
    flex-direction: column;
    gap: 7px;

    min-width: 160px;
}

.weekly-payment-field span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.weekly-payment-field input {
    width: 100%;
    padding: 10px 11px;

    color: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;

    background: rgba(255, 255, 255, 0.03);
}

.weekly-paid-button {
    width: auto;
    min-width: 190px;
    padding-inline: 18px;
}

.weekly-paid-state {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 120px;
    padding: 9px 13px;

    color: var(--green);
    border: 1px solid rgba(65, 229, 168, 0.2);
    border-radius: 11px;

    background: rgba(65, 229, 168, 0.07);
}

.weekly-paid-state strong {
    font-size: 12px;
}

.weekly-paid-state span {
    margin-top: 4px;

    color: var(--muted);
    font-size: 10px;
}

.weekly-history-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.weekly-history-card {
    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.02);
}

.weekly-history-header {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        auto
        auto;
    align-items: center;
    gap: 18px;
}

.weekly-history-period {
    color: var(--muted-light);
    font-size: 12px;
    font-weight: 700;
}

.weekly-draft-status {
    padding: 6px 10px;

    color: var(--yellow);
    border-radius: 999px;

    background: rgba(255, 200, 92, 0.09);

    font-size: 10px;
    font-weight: 800;
}

.weekly-history-stats {
    display: grid;
    grid-template-columns:
        repeat(8, minmax(90px, 1fr));
    gap: 9px;

    margin-top: 15px;
}

.weekly-history-stats > div {
    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.018);
}

.weekly-history-stats span {
    display: block;

    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.weekly-history-stats strong {
    display: block;
    margin-top: 6px;

    color: white;
    font-size: 14px;
}

.weekly-payment-history {
    margin-top: 13px;
    padding: 11px 12px;

    color: var(--green);
    border-radius: 10px;

    background: rgba(65, 229, 168, 0.06);

    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 1150px) {
    .weekly-history-stats {
        grid-template-columns:
            repeat(4, minmax(90px, 1fr));
    }
}

@media (max-width: 800px) {
    .weekly-history-header {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .weekly-history-stats {
        grid-template-columns: 1fr;
    }
}

.grade-p {
    color: #67d8ff;
    border-color: rgba(103, 216, 255, 0.32);
    background: rgba(103, 216, 255, 0.09);
}

.dashboard-week-link {
    position: relative;
    z-index: 9999;
    pointer-events: auto;
    cursor: pointer;
}

.streamer-weekly-history-panel {
    margin-bottom: 18px;
}

.panel-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 30px;
    height: 30px;
    padding: 0 9px;

    color: var(--pink-light);
    border: 1px solid rgba(255, 62, 170, 0.22);
    border-radius: 999px;

    background: rgba(255, 62, 170, 0.07);

    font-size: 11px;
    font-weight: 800;
}

.streamer-weekly-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.streamer-weekly-history-card {
    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.02);
}

.streamer-weekly-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.streamer-weekly-history-header strong {
    color: white;
    font-size: 14px;
}

.streamer-weekly-history-meta {
    margin-top: 6px;

    color: var(--muted);
    font-size: 10px;
}

.streamer-weekly-section-title {
    margin-top: 16px;
    margin-bottom: 9px;

    color: var(--muted-light);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.twitch-history-title {
    color: var(--purple);
}

.streamer-weekly-stats-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 9px;
}

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

.streamer-weekly-stats-grid > div,
.streamer-weekly-finance-grid > div {
    padding: 11px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.018);
}

.streamer-weekly-stats-grid span,
.streamer-weekly-finance-grid span {
    display: block;

    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.streamer-weekly-stats-grid strong,
.streamer-weekly-finance-grid strong {
    display: block;
    margin-top: 6px;

    color: white;
    font-size: 15px;
}

.streamer-weekly-finance-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 9px;

    margin-top: 14px;
}

.streamer-weekly-finance-grid > div:nth-child(2) {
    border-color: rgba(255, 62, 170, 0.2);
    background: rgba(255, 62, 170, 0.05);
}

.streamer-weekly-finance-grid > div:nth-child(3) {
    border-color: rgba(65, 229, 168, 0.18);
    background: rgba(65, 229, 168, 0.045);
}

.streamer-weekly-paid-info {
    margin-top: 13px;
    padding: 11px 12px;

    color: var(--green);
    border-radius: 10px;

    background: rgba(65, 229, 168, 0.06);

    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .twitch-history-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .streamer-weekly-history-header {
        flex-direction: column;
    }

    .streamer-weekly-stats-grid,
    .twitch-history-grid,
    .streamer-weekly-finance-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .streamer-weekly-stats-grid,
    .twitch-history-grid,
    .streamer-weekly-finance-grid {
        grid-template-columns: 1fr;
    }
}

.history-filter-panel {
    margin-bottom: 18px;
}

.history-filter-form {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.4fr)
        repeat(5, minmax(135px, 0.7fr))
        auto;
    align-items: end;
    gap: 11px;
}

.history-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.history-filter-field span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.history-filter-field input,
.history-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;

    color: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;

    background: rgba(255, 255, 255, 0.03);
}

.history-filter-field input:focus,
.history-filter-field select:focus {
    border-color: rgba(255, 62, 170, 0.4);
}

.history-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-reset-button,
.history-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-height: 42px;
    padding: 0 15px;

    text-decoration: none;
    white-space: nowrap;
}

.history-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;

    margin-bottom: 18px;
}

.history-paid-value {
    color: var(--green);
}

.history-review-value {
    color: var(--yellow);
}

@media (max-width: 1500px) {
    .history-filter-form {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .history-search-field {
        grid-column: span 2;
    }

    .history-filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 1050px) {
    .history-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .history-filter-form {
        grid-template-columns: 1fr;
    }

    .history-search-field {
        grid-column: auto;
    }

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

    .history-reset-button,
    .history-filter-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .history-summary-grid {
        grid-template-columns: 1fr;
    }
}

.history-filter-field select {
    color-scheme: dark;

    color: white;
    background-color: #171225;
}

.history-filter-field select option {
    color: white;
    background-color: #171225;
}

select {
    color-scheme: dark;
}

select option {
    color: white;
    background-color: #171225;
}

.title-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 13px;

    margin-bottom: 18px;
}

.title-summary-card {
    display: block;

    color: inherit;
    text-decoration: none;

    transition:
        transform 0.16s ease,
        border-color 0.16s ease;
}

.title-summary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 62, 170, 0.28);
}

.title-ready-text {
    color: #67d8ff;
}

.title-warning-text {
    color: var(--yellow);
}

.title-urgent-text,
.title-expired-text {
    color: #ff6d8d;
}

.title-active-text {
    color: var(--green);
}

.title-filter-panel {
    margin-bottom: 18px;
}

.title-filter-form {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        minmax(190px, 0.45fr)
        auto;
    align-items: end;
    gap: 11px;
}

.title-search-field,
.title-state-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.title-search-field span,
.title-state-field span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.title-search-field input,
.title-state-field select {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;

    color: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;

    background: rgba(255, 255, 255, 0.03);
}

.title-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-reset-button,
.title-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-height: 42px;
    padding: 0 16px;

    text-decoration: none;
    white-space: nowrap;
}

.titles-management-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.title-management-card {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.02);
}

.title-management-ready {
    border-color: rgba(103, 216, 255, 0.25);
}

.title-management-warning {
    border-color: rgba(255, 200, 92, 0.25);
}

.title-management-urgent,
.title-management-expired {
    border-color: rgba(255, 109, 141, 0.28);
}

.title-management-main {
    display: grid;
    grid-template-columns:
        minmax(210px, 1fr)
        minmax(190px, 0.8fr)
        minmax(140px, 0.5fr)
        minmax(180px, auto);
    align-items: center;
    gap: 18px;
}

.title-management-state {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.title-management-state strong {
    color: var(--pink-light);
    font-size: 12px;
}

.title-management-state span {
    color: var(--muted);
    font-size: 10px;
}

.title-management-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.title-management-date span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.title-management-date strong {
    color: white;
    font-size: 12px;
}

.title-management-action {
    display: flex;
    justify-content: flex-end;
}

.title-management-action form {
    margin: 0;
}

.title-no-action {
    color: var(--muted);
    font-size: 10px;
}

.title-management-progress {
    margin-top: 12px;
}

.title-progress-track {
    height: 5px;

    overflow: hidden;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.title-progress-fill {
    height: 100%;

    border-radius: inherit;

    background: var(--pink);
}

.title-progress-active {
    background: var(--green);
}

.title-progress-warning {
    background: var(--yellow);
}

.title-progress-urgent,
.title-progress-expired {
    background: #ff6d8d;
}

@media (max-width: 1350px) {
    .title-summary-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .title-management-main {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .title-management-action {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .title-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

    .title-filter-actions {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .title-reset-button,
    .title-filter-button {
        width: 100%;
    }

    .title-management-main {
        grid-template-columns: 1fr;
    }
}

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

.weekly-regularity {
    margin-top: 14px;
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.018);
}

.weekly-regularity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 13px;
}

.weekly-regularity-hint {
    margin-top: -5px;

    color: var(--muted);
    font-size: 10px;
}

.regularity-qualified,
.regularity-not-qualified {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 0 10px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.regularity-qualified {
    color: var(--green);

    border: 1px solid rgba(65, 229, 168, 0.2);
    background: rgba(65, 229, 168, 0.07);
}

.regularity-not-qualified {
    color: var(--yellow);

    border: 1px solid rgba(255, 200, 92, 0.2);
    background: rgba(255, 200, 92, 0.07);
}

.regularity-days-grid {
    display: grid;
    grid-template-columns:
        repeat(7, minmax(90px, 1fr));
    gap: 9px;
}

.regularity-day {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.02);
}

.regularity-day span {
    color: var(--pink-light);
    font-size: 11px;
    font-weight: 800;
}

.regularity-day input {
    width: 100%;
    padding: 9px 10px;

    color: white;

    border: 1px solid var(--border);
    border-radius: 9px;
    outline: 0;

    background: rgba(255, 255, 255, 0.025);
}

.regularity-day small {
    color: var(--muted);
    font-size: 9px;
}

@media (max-width: 1100px) {
    .regularity-days-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .weekly-regularity-header {
        flex-direction: column;
    }

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

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

.streamer-weekly-regularity-result {
    margin-top: 12px;
    padding: 11px 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.02);
}

.streamer-weekly-regularity-result span {
    display: block;

    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.streamer-weekly-regularity-result strong {
    display: block;
    margin-top: 6px;

    font-size: 12px;
}

.regularity-result-success {
    color: var(--green);
}

.regularity-result-warning {
    color: var(--yellow);
}

.weekly-main-data-row {
    margin-bottom: 14px;
}

.weekly-main-data-row .weekly-stat-group {
    width: 100%;
}

.weekly-secondary-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 14px;

    margin-bottom: 14px;

    align-items: stretch;
}

.weekly-secondary-row .weekly-stat-group,
.weekly-secondary-row .weekly-regularity {
    margin-top: 0;
    height: 100%;
    min-height: 180px;
}

.weekly-secondary-row .twitch-fields {
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
}

.weekly-secondary-row .regularity-days-grid {
    grid-template-columns:
        repeat(7, minmax(0, 1fr));
}

@media (max-width: 1350px) {
    .weekly-secondary-row {
        grid-template-columns: 1fr;
    }
}

.nominations-topbar {
    align-items: flex-end;
}

.nomination-month-form {
    display: flex;
    align-items: flex-end;
    gap: 9px;
}

.nomination-month-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nomination-month-form label span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.nomination-month-form input {
    min-height: 42px;
    padding: 9px 12px;

    color: white;
    color-scheme: dark;

    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;

    background: #171225;
}

.nomination-month-form button {
    width: auto;
    min-height: 42px;
}

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

    margin-bottom: 18px;
}

.nomination-period-value,
.nomination-rule-value {
    margin-top: 19px;

    color: white;
    font-size: 20px;
    font-weight: 800;
}

.nominations-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;

    align-items: start;
}

.nomination-panel {
    min-height: 460px;
}

.nomination-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.nomination-icon {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    color: var(--pink-light);

    border: 1px solid rgba(255, 62, 170, 0.2);
    border-radius: 11px;

    background: rgba(255, 62, 170, 0.06);
}

.nomination-description {
    min-height: 34px;
    margin: 10px 0 18px;

    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.nomination-ranking {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nomination-shortlist {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(18, 12, 31, 0.72);
}

.nomination-shortlist-heading,
.nomination-shortlist-row,
.nomination-shortlist-add {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nomination-shortlist-heading { justify-content: space-between; margin-bottom: 10px; color: var(--muted); }
.nomination-shortlist-heading strong { color: var(--text); }
.nomination-shortlist-list { display: grid; gap: 8px; margin-top: 8px; }
.nomination-shortlist-row { padding: 8px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.025); }
.nomination-shortlist-row.is-winner { border-color: rgba(229, 92, 255, .42); background: rgba(193, 64, 255, .08); }
.nomination-shortlist-avatar { flex: 0 0 38px; width: 38px; height: 38px; overflow: hidden; }
.nomination-shortlist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nomination-shortlist-person { min-width: 0; flex: 1; display: grid; }
.nomination-shortlist-person a { color: var(--text); text-decoration: none; font-weight: 700; }
.nomination-shortlist-person a:hover, .nomination-shortlist-person a:focus-visible { color: var(--pink); }
.nomination-shortlist-person small, .nomination-shortlist-empty { color: var(--muted); }
.nomination-shortlist-score { color: var(--muted); white-space: nowrap; }
.nomination-shortlist-button { padding: 8px 10px; font-size: 12px; }
.nomination-shortlist-add { margin-top: 12px; }
.nomination-shortlist-add-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.nomination-shortlist-add label { min-width: 0; flex: 1; display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.nomination-shortlist-add select { min-width: 0; flex: 1; padding: 10px 12px; color: var(--text); border: 1px solid var(--border); border-radius: 11px; background: #171225; }

@media (max-width: 720px) {
    .nomination-shortlist-row, .nomination-shortlist-add { flex-wrap: wrap; }
    .nomination-shortlist-score { width: 100%; padding-left: 48px; }
    .nomination-shortlist-add-grid { grid-template-columns: 1fr; }
}

.nomination-place {
    display: grid;
    grid-template-columns:
        34px
        38px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 10px;

    min-height: 72px;
    padding: 11px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.02);
}

.nomination-place-1 {
    border-color: rgba(255, 200, 92, 0.27);
    background: rgba(255, 200, 92, 0.035);
}

.nomination-place-2 {
    border-color: rgba(200, 210, 225, 0.18);
}

.nomination-place-3 {
    border-color: rgba(201, 129, 84, 0.2);
}

.nomination-position {
    font-size: 20px;
    text-align: center;
}

.nomination-streamer {
    min-width: 0;
}

.nomination-streamer a {
    display: block;

    overflow: hidden;

    color: white;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.nomination-streamer a:hover {
    color: var(--pink-light);
}

.nomination-streamer span {
    display: block;
    margin-top: 5px;

    overflow: hidden;

    color: var(--muted);
    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.nomination-score strong {
    display: block;

    color: var(--pink-light);
    font-size: 16px;
}

.nomination-score span {
    display: block;
    margin-top: 4px;

    color: var(--muted);
    font-size: 8px;
}

@media (max-width: 1250px) {
    .nominations-grid {
        grid-template-columns: 1fr;
    }

    .nomination-panel {
        min-height: auto;
    }
}

@media (max-width: 800px) {
    .nominations-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nomination-info-grid {
        grid-template-columns: 1fr;
    }

    .nomination-month-form {
        width: 100%;
    }

    .nomination-month-form label {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .nomination-place {
        grid-template-columns:
            30px
            36px
            minmax(0, 1fr);
    }

    .nomination-score {
        grid-column: 2 / -1;
        text-align: left;
    }
}

.nomination-fixed-badge {
    display: inline-flex;
    align-items: center;

    min-height: 42px;
    padding: 0 15px;

    color: var(--green);

    border: 1px solid rgba(65, 229, 168, 0.2);
    border-radius: 11px;

    background: rgba(65, 229, 168, 0.07);

    font-size: 11px;
    font-weight: 800;
}

.nomination-finalize-button {
    min-height: 42px;
    padding-inline: 16px;
    white-space: nowrap;
}

.nomination-archive-panel {
    margin-top: 18px;
    margin-bottom: 30px;
}

.nomination-archive-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nomination-archive-category {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.02);
}

.nomination-archive-category h3 {
    margin: 0 0 13px;

    color: var(--pink-light);
    font-size: 13px;
}

.nomination-archive-row {
    display: grid;
    grid-template-columns:
        65px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 10px;

    padding: 10px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.05);
}

.nomination-archive-row:last-child {
    border-bottom: 0;
}

.nomination-archive-row strong {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.nomination-archive-row span {
    overflow: hidden;

    color: white;
    font-size: 11px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.nomination-archive-row b {
    color: var(--pink-light);
    font-size: 11px;
}

@media (max-width: 1000px) {
    .nomination-archive-grid {
        grid-template-columns: 1fr;
    }
}

.nomination-fixed-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nomination-unlock-button {
    min-height: 42px;
    padding-inline: 16px;

    color: #ffbd62;
    border-color: rgba(255, 189, 98, 0.22);

    white-space: nowrap;
}

.nomination-unlock-button:hover {
    border-color: rgba(255, 189, 98, 0.4);
    background: rgba(255, 189, 98, 0.07);
}

.nomination-fixed-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.nomination-fixed-actions form {
    width: auto;
    margin: 0;
}

.nomination-fixed-actions .nomination-fixed-badge {
    margin: 0;
}

.nomination-unlock-button {
    width: auto !important;
    min-width: auto !important;
    min-height: 42px;
    padding: 0 18px;

    color: #ffbd62;

    border: 1px solid rgba(255, 189, 98, 0.28);
    border-radius: 11px;

    background: rgba(255, 189, 98, 0.06);

    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.nomination-unlock-button:hover {
    border-color: rgba(255, 189, 98, 0.48);
    background: rgba(255, 189, 98, 0.11);
}

.nominations-history-panel {
    margin-top: 18px;
    margin-bottom: 30px;
}

.nominations-history-header {
    margin-bottom: 16px;
}

.nomination-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nomination-history-month {
    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.018);
}

.nomination-history-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 14px;
}

.nomination-history-date {
    display: block;

    color: white;
    font-size: 16px;
    font-weight: 800;
}

.nomination-history-status {
    display: block;
    margin-top: 5px;

    color: #41e5a8;
    font-size: 9px;
    font-weight: 700;
}

.nomination-history-open {
    padding: 9px 13px;

    color: var(--pink-light);
    text-decoration: none;

    border: 1px solid rgba(255, 62, 170, 0.22);
    border-radius: 9px;

    background: rgba(255, 62, 170, 0.05);

    font-size: 10px;
    font-weight: 800;
}

.nomination-history-open:hover {
    background: rgba(255, 62, 170, 0.1);
}

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

.nomination-history-category {
    padding: 13px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.08);
}

.nomination-history-category-title {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    color: var(--pink-light);
    font-size: 10px;
    font-weight: 800;
}

.nomination-history-result {
    display: grid;
    grid-template-columns:
        25px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 8px;

    min-height: 34px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.04);
}

.nomination-history-result:last-child {
    border-bottom: 0;
}

.history-place {
    font-size: 14px;
}

.history-name {
    overflow: hidden;

    color: white;
    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.nomination-history-result strong {
    color: var(--pink-light);
    font-size: 10px;
}

.history-empty {
    padding: 12px 0;

    color: var(--muted);
    font-size: 9px;
}

@media (max-width: 1050px) {
    .nomination-history-categories {
        grid-template-columns: 1fr;
    }
}

.nomination-history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nomination-history-actions form {
    width: auto;
    margin: 0;
}

.nomination-history-unlock {
    min-height: 34px;
    width: auto;

    padding: 0 13px;

    color: #ffbd62;

    border: 1px solid rgba(255, 189, 98, 0.25);
    border-radius: 9px;

    background: rgba(255, 189, 98, 0.05);

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;
    white-space: nowrap;
}

.nomination-history-unlock:hover {
    border-color: rgba(255, 189, 98, 0.45);
    background: rgba(255, 189, 98, 0.10);
}

@media (max-width: 650px) {
    .nomination-history-month-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nomination-history-actions {
        width: 100%;
    }
}

.nomination-place {
    position: relative;
}

.nomination-exclude-form {
    position: absolute;
    top: 6px;
    right: 6px;

    width: auto;
    margin: 0;
}

.nomination-exclude-button {
    display: grid;
    place-items: center;

    width: 22px;
    height: 22px;
    padding: 0;

    color: #ff7f9f;

    border: 1px solid rgba(255, 90, 130, 0.22);
    border-radius: 7px;

    background: rgba(255, 90, 130, 0.05);

    cursor: pointer;

    font-size: 14px;
    line-height: 1;
}

.nomination-exclude-button:hover {
    color: white;
    border-color: rgba(255, 90, 130, 0.5);
    background: rgba(255, 90, 130, 0.15);
}

.nomination-exclusions-panel {
    margin-top: 18px;
    margin-bottom: 18px;
}

.nomination-exclusions-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 15px;
}

.nomination-exclusions-count {
    display: grid;
    place-items: center;

    min-width: 34px;
    height: 34px;
    padding: 0 10px;

    color: #ffbd62;

    border: 1px solid rgba(255, 189, 98, 0.25);
    border-radius: 10px;

    background: rgba(255, 189, 98, 0.06);

    font-size: 11px;
    font-weight: 800;
}

.nomination-exclusions-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.nomination-exclusion-row {
    display: grid;
    grid-template-columns:
        40px
        minmax(140px, 1fr)
        minmax(160px, 1fr)
        minmax(180px, 1.3fr)
        auto;

    align-items: center;
    gap: 13px;

    min-height: 68px;
    padding: 11px 13px;

    border: 1px solid rgba(255, 189, 98, 0.14);
    border-radius: 12px;

    background: rgba(255, 189, 98, 0.025);
}

.nomination-exclusion-streamer {
    min-width: 0;
}

.nomination-exclusion-streamer a {
    display: block;

    overflow: hidden;

    color: white;

    font-size: 11px;
    font-weight: 800;
    text-decoration: none;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.nomination-exclusion-streamer a:hover {
    color: var(--pink-light);
}

.nomination-exclusion-streamer span {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 9px;
}

.nomination-exclusion-category,
.nomination-exclusion-reason {
    min-width: 0;
}

.nomination-exclusion-category span,
.nomination-exclusion-reason span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;
}

.nomination-exclusion-category strong {
    color: var(--pink-light);

    font-size: 10px;
    font-weight: 800;
}

.nomination-exclusion-reason strong {
    display: block;

    overflow: hidden;

    color: #d7cfdf;

    font-size: 10px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.nomination-include-form {
    width: auto;
    margin: 0;
}

.nomination-include-button {
    min-height: 34px;
    width: auto;

    padding: 0 14px;

    color: #41e5a8;

    border: 1px solid rgba(65, 229, 168, 0.22);
    border-radius: 9px;

    background: rgba(65, 229, 168, 0.05);

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;
    white-space: nowrap;
}

.nomination-include-button:hover {
    border-color: rgba(65, 229, 168, 0.45);
    background: rgba(65, 229, 168, 0.10);
}

@media (max-width: 1100px) {
    .nomination-exclusion-row {
        grid-template-columns:
            40px
            minmax(0, 1fr)
            auto;
    }

    .nomination-exclusion-category,
    .nomination-exclusion-reason {
        grid-column: 2 / -1;
    }
}

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

.nomination-panel-actions form {
    width: auto;
    margin: 0;
}

.nomination-approve-button {
    min-height: 34px;
    width: auto;

    padding: 0 12px;

    color: #ff75c8;

    border: 1px solid
        rgba(255, 75, 180, 0.28);
    border-radius: 9px;

    background:
        rgba(255, 75, 180, 0.06);

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;
    white-space: nowrap;
}

.nomination-approve-button:hover {
    border-color:
        rgba(255, 75, 180, 0.5);

    background:
        rgba(255, 75, 180, 0.12);
}

.nomination-approved-badge {
    display: inline-flex;
    align-items: center;

    min-height: 34px;
    padding: 0 11px;

    color: #41e5a8;

    border: 1px solid
        rgba(65, 229, 168, 0.22);
    border-radius: 9px;

    background:
        rgba(65, 229, 168, 0.05);

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

.nomination-finalize-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.25);
}

/* Чуть опускаем цифры, чтобы крестик не наезжал */
.nomination-score {
    position: relative;
    top: 5px;
    padding-right: 14px;
}

/* Сам крестик делаем немного компактнее */
.nomination-exclude-button {
    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    /* Скрываем текстовый × из HTML */
    font-size: 0;
    line-height: 1;
}

.nomination-exclude-button::before {
    content: "×";

    display: block;

    font-size: 11px;
    line-height: 10;

    /* Точное визуальное центрирование */
    transform: translateY(0.0px);
}

/* И немного сдвигаем его ближе к углу */
.nomination-exclude-form {
    top: 5px;
    right: 5px;
}

.nomination-actions-panel {
    margin-top: 18px;
    margin-bottom: 18px;
}

.nomination-actions-header {
    margin-bottom: 14px;
}

.nomination-actions-list {
    display: flex;
    flex-direction: column;
}

.nomination-action-row {
    display: grid;
    grid-template-columns:
        130px
        minmax(180px, 1fr)
        minmax(220px, 1.5fr)
        120px;

    align-items: center;
    gap: 14px;

    min-height: 48px;
    padding: 10px 4px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.05);
}

.nomination-action-row:last-child {
    border-bottom: 0;
}

.nomination-action-time {
    color: var(--muted);
    font-size: 9px;
}

.nomination-action-main {
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.nomination-action-main strong {
    margin-left: 5px;
    color: var(--pink-light);
}

.nomination-action-details {
    color: #aaa1b6;
    font-size: 9px;
}

.nomination-action-admin {
    color: var(--muted);
    font-size: 9px;
    text-align: right;
}

@media (max-width: 900px) {
    .nomination-action-row {
        grid-template-columns:
            1fr
            auto;
    }

    .nomination-action-details {
        grid-column: 1 / -1;
    }
}

.nomination-history-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.nomination-history-fixed-info {
    color: var(--muted);
    font-size: 9px;
}

.nomination-action-title {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nomination-action-category {
    margin-top: 4px;

    color: var(--pink-light);
    font-size: 8px;
    font-weight: 700;
}

.streamer-twitch-link {
    display: inline-block;

    color: var(--muted);
    text-decoration: none;

    transition:
        color 0.15s ease,
        opacity 0.15s ease;
}

.streamer-twitch-link:hover {
    color: var(--pink-light);
}

.twitch-avatar {
    position: relative;
    overflow: visible;
}

.twitch-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: inherit;
}

.twitch-live-dot {
    position: absolute;

    right: -2px;
    bottom: -2px;

    width: 9px;
    height: 9px;

    border: 2px solid #120d1d;
    border-radius: 50%;

    background: #ff3f82;

    box-shadow:
        0 0 8px rgba(255, 63, 130, 0.65);
}

.streamer-main-info {
    min-width: 0;
}

.streamer-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.twitch-live-badge {
    display: inline-flex;
    align-items: center;

    min-height: 18px;
    padding: 0 6px;

    color: #ff75b8;

    border: 1px solid rgba(255, 65, 150, 0.3);
    border-radius: 6px;

    background: rgba(255, 65, 150, 0.08);

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.twitch-live-info {
    margin-top: 4px;

    color: #ff75b8;

    font-size: 8px;
    font-weight: 700;
}

.twitch-sync-status {
    margin-top: 4px;

    color: #8f869c;

    font-size: 8px;
    font-weight: 700;
}

.twitch-unsynced {
    opacity: 0.7;
}

.twitch-profile-panel {
    margin-bottom: 18px;
}

.twitch-profile-main {
    display: grid;
    grid-template-columns:
        72px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 16px;

    margin-bottom: 16px;
}

.twitch-profile-avatar {
    position: relative;

    display: grid;
    place-items: center;

    width: 72px;
    height: 72px;

    overflow: visible;

    color: #ff69c7;

    border: 1px solid rgba(255, 55, 170, 0.28);
    border-radius: 18px;

    background: rgba(255, 55, 170, 0.08);

    font-size: 24px;
    font-weight: 900;
}

.twitch-profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 18px;
}

.twitch-profile-live-dot {
    position: absolute;

    right: -3px;
    bottom: -3px;

    width: 13px;
    height: 13px;

    border: 3px solid #120d1d;
    border-radius: 50%;

    background: #ff3f82;

    box-shadow:
        0 0 10px rgba(255, 63, 130, 0.7);
}

.twitch-profile-identity {
    min-width: 0;
}

.twitch-profile-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.twitch-profile-title-row h2 {
    margin: 2px 0 0;
}

.twitch-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 8px;

    color: var(--muted);
    font-size: 9px;
}

.twitch-profile-meta strong {
    color: white;
}

.twitch-profile-status {
    display: inline-flex;
    align-items: center;

    min-height: 30px;
    padding: 0 10px;

    border-radius: 9px;

    font-size: 9px;
    font-weight: 900;

    white-space: nowrap;
}

.twitch-profile-online {
    color: #ff6fbf;

    border: 1px solid rgba(255, 70, 170, 0.28);
    background: rgba(255, 70, 170, 0.07);
}

.twitch-profile-offline {
    color: #aaa1b6;

    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.twitch-profile-unsynced {
    color: #9e94aa;

    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.018);
}

.twitch-profile-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 14px;

    color: var(--pink-light);

    border: 1px solid rgba(255, 70, 180, 0.25);
    border-radius: 10px;

    background: rgba(255, 70, 180, 0.06);

    text-decoration: none;

    font-size: 10px;
    font-weight: 800;
}

.twitch-profile-open-button:hover {
    background: rgba(255, 70, 180, 0.11);
}

.twitch-profile-data-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.twitch-profile-data-card {
    padding: 12px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.018);
}

.twitch-profile-data-card span,
.twitch-profile-stream-title span,
.twitch-profile-sync span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;
}

.twitch-profile-data-card strong {
    color: white;
    font-size: 11px;
}

.twitch-profile-bottom {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(220px, 1fr);

    gap: 10px;

    margin-top: 10px;
}

.twitch-profile-stream-title,
.twitch-profile-sync {
    padding: 12px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.018);
}

.twitch-profile-stream-title strong,
.twitch-profile-sync strong {
    color: #dcd5e5;
    font-size: 10px;
}

@media (max-width: 1000px) {
    .twitch-profile-main {
        grid-template-columns:
            60px
            minmax(0, 1fr);
    }

    .twitch-profile-open-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .twitch-profile-data-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

.twitch-profile-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.twitch-profile-actions form {
    width: auto;
    margin: 0;
}

.twitch-test-button {
    min-height: 38px;
    width: auto;

    padding: 0 12px;

    color: #aaa1b6;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.025);

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;
    white-space: nowrap;
}

.twitch-test-button:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.16);
}

.twitch-test-online {
    color: #ff6fbd;

    border-color: rgba(255, 70, 170, 0.24);
    background: rgba(255, 70, 170, 0.05);
}

.twitch-test-online:hover {
    border-color: rgba(255, 70, 170, 0.42);
    background: rgba(255, 70, 170, 0.1);
}

/* =========================
   SETTINGS
   ========================= */

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

    gap: 16px;
}

.settings-card {
    min-height: 280px;
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;
}

.settings-card-header h2 {
    margin: 3px 0 0;
}

.settings-description {
    max-width: 620px;

    margin-bottom: 20px;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.6;
}

.settings-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 0 10px;

    border-radius: 9px;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

.settings-status-success {
    color: #40e3a4;

    border:
        1px solid rgba(64, 227, 164, 0.20);

    background:
        rgba(64, 227, 164, 0.06);
}

.settings-status-warning {
    color: #ffba61;

    border:
        1px solid rgba(255, 186, 97, 0.22);

    background:
        rgba(255, 186, 97, 0.06);
}

.settings-status-neutral {
    color: #9f96aa;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    background:
        rgba(255, 255, 255, 0.025);
}

.settings-values {
    display: flex;
    flex-direction: column;

    margin-top: 4px;

    border:
        1px solid rgba(255, 255, 255, 0.055);

    border-radius: 12px;

    overflow: hidden;
}

.settings-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 48px;

    padding: 0 14px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.045);
}

.settings-value-row:last-child {
    border-bottom: 0;
}

.settings-value-row span {
    color: var(--muted);

    font-size: 9px;
}

.settings-value-row strong {
    color: #ded8e7;

    font-size: 9px;

    text-align: right;
}

.settings-value-success {
    color: #40e3a4 !important;
}

.settings-value-empty {
    color: #918799 !important;
}

.settings-info-box {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 14px;
    padding: 12px;

    color: #9990a4;

    border:
        1px solid rgba(255, 80, 180, 0.10);

    border-radius: 11px;

    background:
        rgba(255, 80, 180, 0.025);

    font-size: 9px;
    line-height: 1.6;
}

.settings-info-icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    color: var(--pink-light);

    border:
        1px solid rgba(255, 80, 180, 0.25);

    border-radius: 50%;

    font-size: 9px;
    font-weight: 900;
}

.settings-disabled-button {
    width: 100%;

    min-height: 40px;

    margin-top: 14px;

    color: #777080;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.018);

    font-size: 9px;
    font-weight: 800;

    cursor: not-allowed;

    opacity: 0.65;
}

@media (max-width: 1100px) {

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

}

.settings-sync-form {
    margin: 14px 0 0;
}

.settings-sync-button {
    width: 100%;
    min-height: 40px;

    padding: 0 14px;

    color: var(--pink-light);

    border:
        1px solid rgba(255, 70, 180, 0.22);

    border-radius: 10px;

    background:
        rgba(255, 70, 180, 0.055);

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.settings-sync-button:hover {
    color: white;

    border-color:
        rgba(255, 70, 180, 0.42);

    background:
        rgba(255, 70, 180, 0.11);
}

.settings-sync-button-warning {
    color: #ffba61;

    border-color:
        rgba(255, 186, 97, 0.20);

    background:
        rgba(255, 186, 97, 0.04);
}

.settings-sync-button-warning:hover {
    color: #ffd08e;

    border-color:
        rgba(255, 186, 97, 0.38);

    background:
        rgba(255, 186, 97, 0.08);
}

.settings-value-warning {
    color: #ffba61 !important;
}

.settings-value-live {
    color: #ff69bd !important;
}

/* Twitch sync preferences */

.twitch-preferences-form {
    margin: 0;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;

    cursor: pointer;
}

.settings-toggle input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.settings-toggle-slider {
    position: relative;

    width: 32px;
    height: 18px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.055);

    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.settings-toggle-slider::before {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #8d8497;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.settings-toggle input:checked
+ .settings-toggle-slider {
    border-color:
        rgba(255, 68, 181, 0.35);

    background:
        rgba(255, 68, 181, 0.12);
}

.settings-toggle input:checked
+ .settings-toggle-slider::before {
    transform: translateX(14px);

    background: #ff58bd;

    box-shadow:
        0 0 7px rgba(255, 88, 189, 0.50);
}

.settings-toggle-label {
    min-width: 58px;

    color: #aaa1b6 !important;

    font-size: 9px !important;
}

.settings-interval-select {
    min-width: 110px;

    padding: 7px 28px 7px 10px;

    color: #e4deeb;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 8px;

    background: #171225;

    font-size: 9px;

    outline: none;
}

.settings-interval-select:focus {
    border-color:
        rgba(255, 75, 185, 0.32);
}

.settings-preferences-actions {
    padding-top: 10px;
}

.settings-save-button {
    width: 100%;
    min-height: 38px;

    color: var(--pink-light);

    border:
        1px solid rgba(255, 70, 180, 0.20);

    border-radius: 9px;

    background:
        rgba(255, 70, 180, 0.045);

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;
}

.settings-save-button:hover {
    border-color:
        rgba(255, 70, 180, 0.38);

    background:
        rgba(255, 70, 180, 0.09);
}

.settings-twitch-statistics {
    margin-top: 12px;
}

/* =========================
   DASHBOARD LIVE
   ========================= */

.dashboard-live-panel {
    margin-bottom: 18px;
}

.dashboard-live-counter {
    color: #ff66bd;

    font-size: 9px;
    font-weight: 900;

    padding: 7px 10px;

    border:
        1px solid rgba(255, 75, 185, 0.22);

    border-radius: 8px;

    background:
        rgba(255, 75, 185, 0.05);
}

.dashboard-live-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.dashboard-live-item {
    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 11px;

    padding: 11px 12px;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.018);
}

.dashboard-live-avatar {
    position: relative;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    color: #ff64bc;

    border:
        1px solid rgba(255, 70, 180, 0.25);

    border-radius: 11px;

    background:
        rgba(255, 70, 180, 0.07);

    font-weight: 900;
}

.dashboard-live-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 11px;
}

.dashboard-live-dot {
    position: absolute;

    right: -2px;
    bottom: -2px;

    width: 9px;
    height: 9px;

    border: 2px solid #120d1d;
    border-radius: 50%;

    background: #ff439b;

    box-shadow:
        0 0 7px rgba(255, 67, 155, 0.65);
}

.dashboard-live-info {
    min-width: 0;
}

.dashboard-live-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dashboard-live-name {
    color: white;

    font-size: 10px;
    font-weight: 800;

    text-decoration: none;
}

.dashboard-live-badge {
    color: #ff69bd;

    font-size: 7px;
    font-weight: 900;
}

.dashboard-live-meta {
    margin-top: 3px;

    color: #ff69bd;

    font-size: 8px;
    font-weight: 700;
}

.dashboard-live-title {
    max-width: 500px;

    margin-top: 3px;

    overflow: hidden;

    color: var(--muted);

    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-live-open {
    text-decoration: none;
}

.dashboard-empty-state {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 74px;

    padding: 12px;

    color: var(--muted);

    border:
        1px dashed rgba(255, 255, 255, 0.07);

    border-radius: 11px;
}

.dashboard-empty-state strong {
    display: block;

    margin-bottom: 3px;

    color: #d9d3e1;

    font-size: 9px;
}

.dashboard-empty-state span {
    font-size: 8px;
}

.dashboard-empty-icon {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    color: #50dda8;

    border-radius: 9px;

    background:
        rgba(80, 221, 168, 0.06);

    font-weight: 900;
}

.dashboard-table-empty {
    padding: 30px !important;

    color: var(--muted);

    text-align: center;
}

@media (max-width: 1100px) {

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

}

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

.login-body {
    min-height: 100vh;
    margin: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255, 54, 170, 0.08),
            transparent 35%
        ),
        #0c0813;
}

.login-page {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 100vh;
    padding: 30px;
}

.login-card {
    position: relative;
    z-index: 2;

    width: min(100%, 390px);

    padding: 30px;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 18px;

    background:
        rgba(20, 14, 30, 0.92);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 38px;
}

.login-heading {
    margin-bottom: 25px;
}

.login-heading h1 {
    margin: 5px 0 8px;

    color: #ffffff;

    font-size: 25px;
    line-height: 1.15;
}

.login-heading > p:last-child {
    margin: 0;

    color: #81798c;

    font-size: 10px;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: grid;
    gap: 7px;
}

.login-field > span {
    color: #aca4b5;

    font-size: 9px;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    box-sizing: border-box;

    min-height: 43px;
    padding: 0 13px;

    color: #ffffff;

    outline: none;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.login-field input:focus {
    border-color:
        rgba(255, 74, 179, 0.45);

    background:
        rgba(255, 74, 179, 0.025);

    box-shadow:
        0 0 0 3px
        rgba(255, 74, 179, 0.06);
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    margin-top: 4px;

    color: #ffffff;

    border:
        1px solid rgba(255, 80, 184, 0.25);

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #a20c64,
            #db267f
        );

    cursor: pointer;

    font-size: 10px;
    font-weight: 900;

    box-shadow:
        0 8px 25px
        rgba(218, 38, 127, 0.16);
}

.login-submit:hover {
    filter: brightness(1.08);
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 17px;
    padding: 10px 11px;

    color: #ff9abf;

    border:
        1px solid rgba(255, 78, 138, 0.20);

    border-radius: 8px;

    background:
        rgba(255, 78, 138, 0.055);

    font-size: 9px;
}

.login-error > span {
    display: grid;
    place-items: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background:
        rgba(255, 78, 138, 0.10);

    font-weight: 900;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 27px;

    color: #625b6b;

    font-size: 7px;
}

.login-footer .connection-dot {
    width: 5px;
    height: 5px;
}

.login-glow {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;
}

.login-glow-one {
    top: -250px;
    left: 15%;

    background:
        rgba(213, 24, 125, 0.10);
}

.login-glow-two {
    right: 10%;
    bottom: -300px;

    background:
        rgba(117, 45, 181, 0.08);
}

/* =========================
   ADMIN SESSION
   ========================= */

.admin-card {
    position: relative;
}

.admin-info {
    min-width: 0;
}

.admin-logout {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    margin-left: 8px;

    color: #81798c;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.02);

    text-decoration: none;

    font-size: 11px;

    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.admin-logout:hover {
    color: #ff67bd;

    border-color:
        rgba(255, 80, 180, 0.22);

    background:
        rgba(255, 80, 180, 0.05);
}

/* =========================
   ADMIN USERS
   ========================= */

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

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

.admin-user-row {
    display: grid;
    grid-template-columns:
        42px
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;

    gap: 12px;

    padding: 12px;

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.065
        );

    border-radius: 11px;

    background:
        rgba(
            255,
            255,
            255,
            0.018
        );
}

.admin-user-row.disabled {
    opacity: 0.55;
}

.admin-user-avatar {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    color: #ffffff;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #de2b95,
            #a845ef
        );

    font-weight: 900;
}

.admin-user-main {
    min-width: 0;
}

.admin-user-name-row {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #ffffff;

    font-size: 10px;
}

.admin-user-login {
    margin-top: 3px;

    color: #ff68bd;

    font-size: 8px;
    font-weight: 700;
}

.admin-user-meta {
    margin-top: 4px;

    color: var(--muted);

    font-size: 8px;
}

.admin-you-badge {
    padding: 2px 5px;

    color: #50dda8;

    border:
        1px solid rgba(
            80,
            221,
            168,
            0.18
        );

    border-radius: 5px;

    background:
        rgba(
            80,
            221,
            168,
            0.05
        );

    font-size: 7px;
}

.admin-status {
    display: inline-flex;

    padding: 5px 7px;

    border-radius: 7px;

    font-size: 8px;
    font-weight: 800;
}

.admin-status.active {
    color: #50dda8;

    background:
        rgba(
            80,
            221,
            168,
            0.06
        );
}

.admin-status.inactive {
    color: #8f8798;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );
}

.admins-counter {
    display: grid;
    place-items: center;

    min-width: 28px;
    height: 28px;

    color: #ff67bd;

    border-radius: 8px;

    background:
        rgba(
            255,
            80,
            180,
            0.06
        );

    font-size: 9px;
    font-weight: 900;
}

.admins-create-form {
    display: grid;
    gap: 14px;
}

.admins-create-form label:not(
    .admins-checkbox
) {
    display: grid;
    gap: 6px;
}

.admins-create-form label > span {
    color: #aaa2b3;

    font-size: 8px;
    font-weight: 700;
}

.admins-create-form input[
    type="text"
],
.admins-create-form input[
    type="password"
] {
    box-sizing: border-box;

    width: 100%;
    min-height: 40px;

    padding: 0 11px;

    color: #ffffff;

    outline: none;

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 8px;

    background:
        rgba(
            255,
            255,
            255,
            0.025
        );
}

.admins-checkbox {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px;

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.06
        );

    border-radius: 8px;
}

.admins-checkbox strong {
    display: block;

    color: #ded8e5;

    font-size: 8px;
}

.admins-checkbox span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 7px;
}

.admins-message {
    margin-bottom: 14px;

    padding: 10px 12px;

    border-radius: 9px;

    font-size: 9px;
}

.admins-message.success {
    color: #50dda8;

    border:
        1px solid rgba(
            80,
            221,
            168,
            0.17
        );

    background:
        rgba(
            80,
            221,
            168,
            0.045
        );
}

.admins-message.error {
    color: #ff89af;

    border:
        1px solid rgba(
            255,
            80,
            130,
            0.17
        );

    background:
        rgba(
            255,
            80,
            130,
            0.045
        );
}

@media (max-width: 1050px) {

    .admins-layout {
        grid-template-columns: 1fr;
    }

    .admin-user-row {
        grid-template-columns:
            42px
            minmax(0, 1fr)
            auto;
    }

    .admin-user-state {
        display: none;
    }

}

/* =========================
   DASHBOARD WEEKLY AVATARS FIX
   ========================= */

.recent-panel .streamer-avatar {
    width: 34px;
    height: 34px;

    min-width: 34px;

    overflow: hidden;

    border-radius: 9px;
}

.recent-panel .streamer-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 9px;
}

.recent-panel .streamer-cell {
    display: flex;
    align-items: center;

    gap: 9px;
}

.live-nav-item {
    position: relative;
}

.live-nav-item .nav-icon {
    color: #ff4fa3;
}

.live-nav-item:hover .nav-icon {
    color: #ff73bd;
}

.live-nav-item.active {
    border-color:
        rgba(255, 79, 163, 0.28);

    background:
        linear-gradient(
            90deg,
            rgba(255, 58, 168, 0.14),
            rgba(255, 58, 168, 0.04)
        );
}

.live-nav-item.active .nav-icon {
    color: #ff4fa3;

    text-shadow:
        0 0 12px
        rgba(255, 58, 168, 0.7);
}

/* =========================================
   TWITCH ANTIBOT
   ========================================= */

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

.antibot-panel::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -260px;
    right: -180px;
    border-radius: 50%;
    background: rgba(214, 74, 255, 0.08);
    filter: blur(20px);
    pointer-events: none;
}


.antibot-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.antibot-header h2 {
    margin: 4px 0 0;
}

.antibot-description {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--text-muted, #8f8ba3);
    font-size: 13px;
    line-height: 1.55;
}


.antibot-risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.antibot-risk-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}


.antibot-risk-low {
    color: #75e7b2;
    background: rgba(65, 205, 142, 0.08);
    border-color: rgba(65, 205, 142, 0.22);
}

.antibot-risk-medium {
    color: #ffd66b;
    background: rgba(255, 194, 74, 0.08);
    border-color: rgba(255, 194, 74, 0.24);
}

.antibot-risk-high {
    color: #ff9d62;
    background: rgba(255, 126, 66, 0.09);
    border-color: rgba(255, 126, 66, 0.25);
}

.antibot-risk-critical {
    color: #ff668d;
    background: rgba(255, 67, 119, 0.10);
    border-color: rgba(255, 67, 119, 0.28);
}


.antibot-stream-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.antibot-stream-meta > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.antibot-stream-meta span {
    color: var(--text-muted, #8f8ba3);
    font-size: 12px;
}

.antibot-stream-meta strong {
    font-size: 13px;
}


.antibot-live-marker {
    color: #ff4f7d !important;
    font-weight: 800;
}

.antibot-ended-marker {
    color: var(--text-muted, #8f8ba3);
}


.antibot-current-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.antibot-current-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.015)
        );
}

.antibot-current-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted, #8f8ba3);
    font-size: 12px;
}

.antibot-current-card strong {
    display: block;
    font-size: 25px;
    line-height: 1;
}

.antibot-current-card small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
}


.antibot-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.antibot-summary-item {
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.antibot-summary-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted, #8f8ba3);
    font-size: 11px;
}

.antibot-summary-item strong {
    font-size: 15px;
}


.antibot-clean-state {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 16px;
    padding: 15px 17px;
    border: 1px solid rgba(65, 205, 142, 0.14);
    border-radius: 14px;
    background: rgba(65, 205, 142, 0.045);
}

.antibot-clean-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(65, 205, 142, 0.10);
    color: #75e7b2;
    font-weight: 900;
}

.antibot-clean-state strong {
    display: block;
    color: #a8f0cf;
    font-size: 13px;
}

.antibot-clean-state p {
    margin: 3px 0 0;
    color: var(--text-muted, #8f8ba3);
    font-size: 11px;
}


.antibot-reasons {
    margin-top: 16px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 102, 141, 0.15);
    border-radius: 14px;
    background: rgba(255, 68, 120, 0.04);
}

.antibot-reasons-title {
    margin-bottom: 10px;
    color: #ff91ae;
    font-size: 12px;
    font-weight: 700;
}

.antibot-reason-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 7px;
    color: #c9c4d2;
    font-size: 12px;
    line-height: 1.45;
}

.antibot-reason-item > span {
    color: #ff668d;
    font-weight: 800;
}


@media (max-width: 1100px) {

    .antibot-current-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .antibot-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 700px) {

    .antibot-header {
        flex-direction: column;
    }

    .antibot-current-grid,
    .antibot-summary-grid {
        grid-template-columns: 1fr;
    }

    .antibot-stream-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================
   TWITCH STREAM HISTORY
   ========================================= */

.twitch-sessions-panel {
    margin-top: 18px;
}

.twitch-sessions-description {
    margin: 7px 0 0;
    color: var(--text-muted, #8f8ba3);
    font-size: 12px;
}

.twitch-session-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twitch-session-card {
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.012)
        );
}

.twitch-session-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.twitch-session-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
}

.twitch-session-live {
    color: #ff5c88;
    font-size: 11px;
    font-weight: 800;
}

.twitch-session-ended {
    color: var(--text-muted, #8f8ba3);
    font-size: 11px;
    font-weight: 600;
}

.twitch-session-vod-id {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
}

.twitch-session-risk {
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.twitch-session-risk-low {
    color: #75e7b2;
    background: rgba(65, 205, 142, 0.07);
    border-color: rgba(65, 205, 142, 0.20);
}

.twitch-session-risk-medium {
    color: #ffd66b;
    background: rgba(255, 194, 74, 0.07);
    border-color: rgba(255, 194, 74, 0.20);
}

.twitch-session-risk-high {
    color: #ff9d62;
    background: rgba(255, 126, 66, 0.08);
    border-color: rgba(255, 126, 66, 0.22);
}

.twitch-session-risk-critical {
    color: #ff668d;
    background: rgba(255, 67, 119, 0.09);
    border-color: rgba(255, 67, 119, 0.24);
}

.twitch-session-stats {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.twitch-session-stats > div,
.twitch-session-risk-summary > div {
    padding: 12px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.twitch-session-stats span,
.twitch-session-risk-summary span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted, #8f8ba3);
    font-size: 10px;
}

.twitch-session-stats strong {
    font-size: 15px;
}

.twitch-session-risk-summary {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.twitch-session-risk-summary strong {
    font-size: 13px;
}


@media (max-width: 1000px) {

    .twitch-session-stats,
    .twitch-session-risk-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {

    .twitch-session-header {
        flex-direction: column;
    }

    .twitch-session-stats,
    .twitch-session-risk-summary {
        grid-template-columns: 1fr;
    }
}

.twitch-session-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.twitch-session-details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 0 12px;
    border: 1px solid rgba(255, 73, 177, 0.24);
    border-radius: 9px;
    background: rgba(255, 73, 177, 0.055);
    color: #ff79c8;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.twitch-session-details-button:hover {
    border-color: rgba(255, 73, 177, 0.48);
    background: rgba(255, 73, 177, 0.11);
    transform: translateY(-1px);
}

@media (max-width: 650px) {

    .twitch-session-header-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================
   STREAM SESSION ANALYSIS
   ========================================= */

.stream-analysis-page {
    padding-bottom: 60px;
}

.stream-analysis-risk {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.stream-analysis-risk-low {
    color: #75e7b2;
    background: rgba(65, 205, 142, 0.08);
    border-color: rgba(65, 205, 142, 0.22);
}

.stream-analysis-risk-medium {
    color: #ffd66b;
    background: rgba(255, 194, 74, 0.08);
    border-color: rgba(255, 194, 74, 0.22);
}

.stream-analysis-risk-high {
    color: #ff9d62;
    background: rgba(255, 126, 66, 0.08);
    border-color: rgba(255, 126, 66, 0.22);
}

.stream-analysis-risk-critical {
    color: #ff668d;
    background: rgba(255, 67, 119, 0.10);
    border-color: rgba(255, 67, 119, 0.26);
}


.stream-analysis-summary {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 18px;
}

.stream-analysis-summary > div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
}

.stream-analysis-summary span {
    display: block;
    margin-bottom: 7px;
    color: var(--text-muted, #8f8ba3);
    font-size: 10px;
}

.stream-analysis-summary strong {
    font-size: 20px;
}


.stream-chart-panel {
    margin-bottom: 18px;
}

.stream-chart-legend {
    display: flex;
    gap: 18px;
    margin-bottom: 15px;
    color: var(--text-muted, #8f8ba3);
    font-size: 11px;
}

.stream-chart-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stream-chart-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-viewers {
    background: #ff62c2;
}

.legend-chatters {
    background: #58dfdd;
}


.stream-chart {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 15px;
    background: rgba(5, 4, 15, 0.30);
}

.stream-chart svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-grid-line {
    stroke: rgba(255, 255, 255, 0.065);
    stroke-width: 1;
}

.chart-axis-label {
    fill: rgba(255, 255, 255, 0.37);
    font-size: 11px;
}

.chart-line-viewers {
    stroke: #ff62c2;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.chart-line-chatters {
    stroke: #58dfdd;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.chart-line-risk {
    stroke: #ff8b5c;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.chart-point-viewers {
    fill: #ff62c2;
}

.chart-point-chatters {
    fill: #58dfdd;
}

.chart-point-risk {
    fill: #ff8b5c;
}


.stream-snapshot-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.stream-snapshot-row {
    display: grid;
    grid-template-columns:
        160px
        100px
        100px
        90px
        minmax(120px, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.stream-snapshot-time {
    font-size: 11px;
    font-weight: 700;
}

.stream-snapshot-row > div > span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted, #8f8ba3);
    font-size: 9px;
}

.stream-snapshot-row > div > strong {
    font-size: 13px;
}

.stream-snapshot-change {
    color: var(--text-muted, #8f8ba3);
    font-size: 10px;
}

.stream-snapshot-reasons {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stream-snapshot-reasons span {
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(255, 84, 128, 0.07);
    color: #ff90ad !important;
    font-size: 9px !important;
}

.snapshot-risk-low {
    color: #75e7b2;
}

.snapshot-risk-medium {
    color: #ffd66b;
}

.snapshot-risk-high {
    color: #ff9d62;
}

.snapshot-risk-critical {
    color: #ff668d;
}


@media (max-width: 1200px) {

    .stream-analysis-summary {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 800px) {

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

    .stream-snapshot-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .stream-snapshot-time {
        grid-column: 1 / -1;
    }
}


@media (max-width: 550px) {

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

/* =========================================
   ANTIBOT CHART ALERT POINTS
   ========================================= */

.chart-point-medium {
    stroke: #ffd66b;
    stroke-width: 3;
    filter:
        drop-shadow(
            0 0 5px
            rgba(255, 214, 107, 0.8)
        );
}

.chart-point-high {
    stroke: #ff9d62;
    stroke-width: 4;
    filter:
        drop-shadow(
            0 0 7px
            rgba(255, 157, 98, 0.9)
        );
}

.chart-point-critical {
    stroke: #ff477c;
    stroke-width: 5;
    filter:
        drop-shadow(
            0 0 10px
            rgba(255, 71, 124, 1)
        );
}

/* =========================================
   STREAM ANOMALY INTERVALS
   ========================================= */

.stream-anomalies-panel {
    margin-bottom: 18px;
}

.stream-anomalies-description {
    margin: 7px 0 0;
    color: var(--text-muted, #8f8ba3);
    font-size: 11px;
}

.stream-anomalies-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 31px;
    padding: 0 9px;
    border: 1px solid rgba(255, 83, 132, 0.25);
    border-radius: 999px;
    background: rgba(255, 83, 132, 0.07);
    color: #ff789e;
    font-size: 11px;
    font-weight: 800;
}


.stream-anomalies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stream-anomaly-card {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
}

.stream-anomaly-high {
    border-color: rgba(255, 157, 98, 0.20);
    background:
        linear-gradient(
            135deg,
            rgba(255, 157, 98, 0.055),
            rgba(255, 255, 255, 0.015)
        );
}

.stream-anomaly-critical {
    border-color: rgba(255, 71, 124, 0.25);
    background:
        linear-gradient(
            135deg,
            rgba(255, 71, 124, 0.075),
            rgba(255, 255, 255, 0.015)
        );
}


.stream-anomaly-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.stream-anomaly-header strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.stream-anomaly-period {
    color: var(--text-muted, #8f8ba3);
    font-size: 10px;
}

.stream-anomaly-score {
    font-size: 22px;
    font-weight: 900;
}


.stream-anomaly-stats {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.stream-anomaly-stats > div {
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.stream-anomaly-stats span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted, #8f8ba3);
    font-size: 9px;
}

.stream-anomaly-stats strong {
    font-size: 13px;
}


.stream-anomaly-reasons {
    margin-top: 12px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.stream-anomaly-reasons-title {
    display: block;
    margin-bottom: 8px;
    color: #ff91ae;
    font-size: 10px;
    font-weight: 700;
}

.stream-anomaly-reasons > div {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 5px;
    color: #c8c2d1;
    font-size: 10px;
}

.stream-anomaly-reasons > div > span {
    color: #ff668d;
    font-weight: 900;
}


.stream-anomalies-clean {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(65, 205, 142, 0.15);
    border-radius: 14px;
    background: rgba(65, 205, 142, 0.04);
}

.stream-anomalies-clean-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(65, 205, 142, 0.10);
    color: #75e7b2;
    font-weight: 900;
}

.stream-anomalies-clean strong {
    display: block;
    color: #a8f0cf;
    font-size: 12px;
}

.stream-anomalies-clean p {
    margin: 3px 0 0;
    color: var(--text-muted, #8f8ba3);
    font-size: 10px;
}


@media (max-width: 700px) {

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

/* =========================================
   ANTIBOT SIMULATOR
   ========================================= */

.antibot-simulator-panel {
    margin-bottom: 18px;
}

.antibot-simulator-description {
    margin: 7px 0 0;
    max-width: 650px;
    color: var(--text-muted, #8f8ba3);
    font-size: 10px;
    line-height: 1.6;
}

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

.antibot-simulator-actions form {
    margin: 0;
}

.antibot-test-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 70px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.antibot-test-button:hover {
    transform: translateY(-1px);
}

.antibot-test-viewbot:hover {
    border-color: rgba(255, 83, 132, 0.30);
    background: rgba(255, 83, 132, 0.055);
}

.antibot-test-raid:hover {
    border-color: rgba(79, 211, 173, 0.30);
    background: rgba(79, 211, 173, 0.055);
}

.antibot-test-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 17px;
}

.antibot-test-button strong {
    display: block;
    font-size: 11px;
}

.antibot-test-button small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted, #8f8ba3);
    font-size: 9px;
}


/* RESULT */

.antibot-test-result {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.018);
}

.antibot-test-result-low {
    border-color: rgba(79, 211, 173, 0.18);
}

.antibot-test-result-medium {
    border-color: rgba(255, 214, 107, 0.20);
}

.antibot-test-result-high {
    border-color: rgba(255, 157, 98, 0.22);
}

.antibot-test-result-critical {
    border-color: rgba(255, 71, 124, 0.28);
}

.antibot-test-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.antibot-test-result-label {
    color: var(--text-muted, #8f8ba3);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.10em;
}

.antibot-test-result h3 {
    margin: 5px 0 0;
    font-size: 14px;
}

.antibot-test-risk {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    min-width: 78px;
    text-align: right;
}

.antibot-test-risk strong {
    font-size: 25px;
    line-height: 1;
}

.antibot-test-risk span {
    margin-left: 3px;
    color: var(--text-muted, #8f8ba3);
    font-size: 10px;
}

.antibot-test-risk small {
    grid-column: 1 / -1;
    margin-top: 5px;
    font-size: 8px;
    font-weight: 900;
}

.antibot-test-risk-low {
    color: #72e3b2;
}

.antibot-test-risk-medium {
    color: #ffd66b;
}

.antibot-test-risk-high {
    color: #ff9d62;
}

.antibot-test-risk-critical {
    color: #ff668d;
}


/* VIEWER FLOW */

.antibot-test-flow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 17px;
    padding: 13px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.antibot-test-flow-point span,
.antibot-test-flow-point small {
    display: block;
    color: var(--text-muted, #8f8ba3);
    font-size: 8px;
}

.antibot-test-flow-point strong {
    display: block;
    margin: 2px 0;
    font-size: 18px;
}

.antibot-test-flow-arrow {
    color: #8e829a;
}

.antibot-test-flow-delta {
    margin-left: auto;
    font-size: 13px;
    font-weight: 800;
}


/* METRICS */

.antibot-test-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.antibot-test-metrics > div {
    padding: 10px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.022);
}

.antibot-test-metrics span {
    display: block;
    color: var(--text-muted, #8f8ba3);
    font-size: 8px;
}

.antibot-test-metrics strong {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}


/* RAID */

.antibot-test-raid-info {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(79, 211, 173, 0.15);
    border-radius: 12px;
    background: rgba(79, 211, 173, 0.04);
}

.antibot-test-raid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(79, 211, 173, 0.10);
    color: #79e2b7;
}

.antibot-test-raid-info strong {
    display: block;
    font-size: 10px;
    color: #a2edd0;
}

.antibot-test-raid-info p {
    margin: 3px 0 0;
    font-size: 10px;
}

.antibot-test-raid-info small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted, #8f8ba3);
    font-size: 8px;
}


/* REASONS */

.antibot-test-reasons {
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.antibot-test-reasons-title {
    display: block;
    margin-bottom: 7px;
    color: #ff95b0;
    font-size: 9px;
    font-weight: 800;
}

.antibot-test-reasons > div {
    display: flex;
    gap: 7px;
    margin-top: 5px;
    color: #c8c2d1;
    font-size: 9px;
}

.antibot-test-reasons > div > span {
    color: #ff658d;
    font-weight: 900;
}


/* CLEAN */

.antibot-test-clean {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 11px;
    border-radius: 11px;
    background: rgba(79, 211, 173, 0.04);
}

.antibot-test-clean > span {
    color: #73e3b2;
    font-size: 16px;
}

.antibot-test-clean strong {
    display: block;
    color: #a2edd0;
    font-size: 10px;
}

.antibot-test-clean p {
    margin: 2px 0 0;
    color: var(--text-muted, #8f8ba3);
    font-size: 8px;
}


/* ERROR */

.antibot-test-error {
    border-color: rgba(255, 83, 132, 0.20);
}

.antibot-test-error strong {
    color: #ff8baa;
}

.antibot-test-error p {
    margin: 5px 0 0;
    font-size: 10px;
}


/* FOOTNOTE */

.antibot-test-footnote {
    margin-top: 12px;
    color: var(--text-muted, #8f8ba3);
    font-size: 8px;
    line-height: 1.6;
}


@media (max-width: 700px) {

    .antibot-simulator-actions {
        grid-template-columns: 1fr;
    }

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

/* =========================================
   REAL TWITCH RAIDS
   ========================================= */

.stream-raids-panel {
    margin-bottom: 18px;
}

.stream-raids-description {
    margin: 6px 0 0;
    color: var(--text-muted, #8f8ba3);
    font-size: 10px;
    line-height: 1.6;
}

.stream-raids-list {
    display: grid;
    gap: 8px;
}

.stream-raid-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(79, 211, 173, 0.14);
    border-radius: 13px;
    background: rgba(79, 211, 173, 0.025);
}

.stream-raid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(79, 211, 173, 0.09);
    color: #76e0b5;
    font-size: 15px;
}

.stream-raid-main {
    min-width: 0;
    flex: 1;
}

.stream-raid-source {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
}

.stream-raid-source strong {
    color: #b6f2da;
}

.stream-raid-source span {
    color: var(--text-muted, #8f8ba3);
}

.stream-raid-meta {
    display: flex;
    gap: 9px;
    margin-top: 4px;
    color: var(--text-muted, #8f8ba3);
    font-size: 8px;
}

.stream-raid-viewers {
    text-align: right;
}

.stream-raid-viewers strong {
    display: block;
    color: #77e2b6;
    font-size: 15px;
}

.stream-raid-viewers span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted, #8f8ba3);
    font-size: 8px;
}


/* EMPTY */

.stream-raids-empty {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.stream-raids-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #938ba0;
}

.stream-raids-empty strong {
    display: block;
    font-size: 10px;
}

.stream-raids-empty p {
    margin: 3px 0 0;
    color: var(--text-muted, #8f8ba3);
    font-size: 8px;
}


/* RAID ON SNAPSHOT */

.stream-snapshot-raids {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.stream-snapshot-raid {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(79, 211, 173, 0.15);
    border-radius: 9px;
    background: rgba(79, 211, 173, 0.045);
}

.stream-snapshot-raid-icon {
    color: #70dfb1;
    font-size: 11px;
}

.stream-snapshot-raid strong {
    display: block;
    color: #9ce9ca;
    font-size: 8px;
}

.stream-snapshot-raid small {
    display: block;
    margin-top: 1px;
    color: var(--text-muted, #8f8ba3);
    font-size: 7px;
}

/* =========================================
   RAID MARKERS ON STREAM CHART
   ========================================= */

.chart-raid-line {
    stroke: rgba(92, 225, 181, 0.42);
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
}

.chart-raid-marker {
    fill: #18342f;
    stroke: #67dfb4;
    stroke-width: 2;
}

.chart-raid-icon {
    fill: #8aebc9;
    font-size: 9px;
    font-weight: 800;
    pointer-events: none;
}

.chart-raid-label {
    fill: #8de9c8;
    font-size: 10px;
    font-weight: 800;
}

.chart-raid-subtitle {
    fill: #8f8ba3;
    font-size: 8px;
}

/* =========================================
   RAID ANTIBOT EXPLANATION
   ========================================= */

.stream-raid-explanation {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(100px, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 7px;
}

.stream-raid-explanation > div {
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.stream-raid-explanation span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted, #8f8ba3);
    font-size: 7px;
}

.stream-raid-explanation strong {
    color: #d9d5e4;
    font-size: 9px;
}

.stream-raid-explanation .raid-value {
    color: #8de9c8;
}

.stream-raid-explanation .raid-growth-clean {
    color: #70dfb1;
}

.stream-raid-explanation .raid-growth-warning {
    color: #ff9aaf;
}

@media (max-width: 900px) {

    .stream-raid-explanation {
        grid-template-columns:
            repeat(2, minmax(100px, 1fr));
    }

}

/* =========================================
   ANTIBOT POINT BREAKDOWN
   ========================================= */

.stream-antibot-breakdown {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(100px, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 7px;
}

.stream-antibot-breakdown > div {
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.stream-antibot-breakdown span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted, #8f8ba3);
    font-size: 7px;
}

.stream-antibot-breakdown strong {
    color: #d9d5e4;
    font-size: 9px;
}

@media (max-width: 900px) {

    .stream-antibot-breakdown {
        grid-template-columns:
            repeat(2, minmax(100px, 1fr));
    }

}

/* =========================================
   ANTIBOT TEST SNAPSHOT
   ========================================= */

.stream-snapshot-row-test {
    border-color: rgba(255, 151, 82, 0.24);
    background: rgba(255, 151, 82, 0.025);
}

.stream-snapshot-test-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 151, 82, 0.32);
    border-radius: 6px;
    background: rgba(255, 151, 82, 0.08);
    color: #ffad72;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* =========================================
   STREAM ANTIBOT SUMMARY
   ========================================= */

.stream-antibot-summary-panel {
    margin-bottom: 18px;
}

.stream-antibot-summary-description {
    margin: 5px 0 0;
    color: var(--text-muted, #8f8ba3);
    font-size: 9px;
    line-height: 1.5;
}

.stream-antibot-summary-score {
    min-width: 105px;
    text-align: right;
}

.stream-antibot-summary-score strong {
    font-size: 22px;
}

.stream-antibot-summary-score span {
    color: var(--text-muted, #8f8ba3);
    font-size: 9px;
}

.stream-antibot-summary-score small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted, #8f8ba3);
    font-size: 7px;
}

.stream-antibot-summary-score-low strong {
    color: #70dfb1;
}

.stream-antibot-summary-score-medium strong {
    color: #e8cf73;
}

.stream-antibot-summary-score-high strong {
    color: #ffad72;
}

.stream-antibot-summary-score-critical strong {
    color: #ff7898;
}

.stream-antibot-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(125px, 1fr)
        );
    gap: 8px;
}

.stream-antibot-summary-item {
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
}

.stream-antibot-summary-item span {
    display: block;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.stream-antibot-summary-item strong {
    display: block;
    margin-top: 6px;
    color: #e7e3ed;
    font-size: 18px;
}

.stream-antibot-summary-item small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted, #8f8ba3);
    font-size: 7px;
}

.stream-antibot-summary-item.summary-low span,
.stream-antibot-summary-item.summary-explained span {
    color: #70dfb1;
}

.stream-antibot-summary-item.summary-medium span {
    color: #e8cf73;
}

.stream-antibot-summary-item.summary-high span {
    color: #ffad72;
}

.stream-antibot-summary-item.summary-critical span {
    color: #ff7898;
}

.stream-antibot-summary-item.summary-raid span {
    color: #79e4c0;
}

.stream-antibot-summary-item.summary-intervals span {
    color: #d695ff;
}

@media (max-width: 1200px) {

    .stream-antibot-summary-grid {
        grid-template-columns:
            repeat(4, minmax(110px, 1fr));
    }

}

@media (max-width: 800px) {

    .stream-antibot-summary-grid {
        grid-template-columns:
            repeat(2, minmax(110px, 1fr));
    }

}

.stream-antibot-summary-item.summary-minutes span {
    color: #ffad72;
}

.stream-antibot-summary-item.summary-percent span {
    color: #d695ff;
}

/* =========================================
   STREAM ANTIBOT VERDICT
   ========================================= */

.stream-antibot-verdict {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 10px;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.018);
}

.stream-antibot-verdict-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.stream-antibot-verdict span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted, #8f8ba3);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.stream-antibot-verdict strong {
    display: block;
    font-size: 10px;
    line-height: 1.5;
}

.stream-antibot-verdict-clean {
    border-color: rgba(79, 211, 173, 0.16);
    background: rgba(79, 211, 173, 0.025);
}

.stream-antibot-verdict-clean
.stream-antibot-verdict-icon {
    background: rgba(79, 211, 173, 0.1);
    color: #70dfb1;
}

.stream-antibot-verdict-clean strong {
    color: #a8ead1;
}

.stream-antibot-verdict-attention {
    border-color: rgba(232, 207, 115, 0.18);
    background: rgba(232, 207, 115, 0.025);
}

.stream-antibot-verdict-attention
.stream-antibot-verdict-icon {
    background: rgba(232, 207, 115, 0.1);
    color: #e8cf73;
}

.stream-antibot-verdict-attention strong {
    color: #eadb9f;
}

.stream-antibot-verdict-review {
    border-color: rgba(255, 120, 152, 0.2);
    background: rgba(255, 120, 152, 0.03);
}

.stream-antibot-verdict-review
.stream-antibot-verdict-icon {
    background: rgba(255, 120, 152, 0.1);
    color: #ff7898;
}

.stream-antibot-verdict-review strong {
    color: #ff9cb3;
}

/* =========================================
   TWITCH CATEGORY IN SNAPSHOT
   ========================================= */

.stream-snapshot-category {
    min-width: 120px;
}

.stream-snapshot-category span {
    display: block;
    color: var(--text-muted, #8f8ba3);
    font-size: 7px;
}

.stream-snapshot-category strong {
    display: block;
    margin-top: 3px;
    font-size: 9px;
}

.stream-snapshot-category small {
    display: block;
    margin-top: 2px;
    font-size: 7px;
}

.stream-snapshot-category-aion strong,
.stream-snapshot-category-aion small {
    color: #70dfb1;
}

.stream-snapshot-category-other strong,
.stream-snapshot-category-other small {
    color: #ff9aaf;
}

/* =========================================
   WEEKLY TWITCH CATEGORIES
   ========================================= */

.weekly-twitch-category-summary {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(130px, 1fr)
        );
    gap: 7px;
    margin: 10px 0 12px;
}

.weekly-twitch-category-item {
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
}

.weekly-twitch-category-item span {
    display: block;
    color: var(--text-muted, #8f8ba3);
    font-size: 7px;
}

.weekly-twitch-category-item strong {
    display: block;
    margin-top: 4px;
    color: #e8e4ee;
    font-size: 13px;
}

.weekly-twitch-category-item small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted, #8f8ba3);
    font-size: 7px;
}

.weekly-twitch-category-aion strong,
.weekly-twitch-category-aion small {
    color: #70dfb1;
}

.weekly-twitch-category-other strong,
.weekly-twitch-category-other small,
.weekly-twitch-category-unknown strong,
.weekly-twitch-category-unknown small {
    color: #ff9aaf;
}


/* ДРУГИЕ КАТЕГОРИИ */

.weekly-category-breakdown {
    margin: 0 0 12px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 120, 152, .12);
    border-radius: 10px;
    background: rgba(255, 120, 152, .018);
}

.weekly-category-breakdown-title {
    margin-bottom: 7px;
    color: #ff9aaf;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
}

.weekly-category-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid rgba(255,255,255,.045);
}

.weekly-category-breakdown-row:first-of-type {
    border-top: 0;
}

.weekly-category-breakdown-row strong {
    display: block;
    font-size: 9px;
}

.weekly-category-breakdown-row small {
    display: block;
    margin-top: 2px;
    color: #ff9aaf;
    font-size: 7px;
}

.weekly-category-breakdown-row > span {
    color: #ffb0c1;
    font-size: 9px;
    font-weight: 700;
}

.stream-category-description {
    margin: 5px 0 0;
    color: rgba(255,255,255,.55);
    font-size: 12px;
}

.stream-category-share {
    min-width: 110px;
    text-align: right;
}

.stream-category-share strong {
    display: block;
    color: #79f2b0;
    font-size: 22px;
}

.stream-category-share span {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.48);
    font-size: 10px;
}

.stream-category-summary {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.stream-category-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 15px;
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
}

.stream-category-summary-item > div {
    min-width: 0;
}

.stream-category-summary-item > div > strong {
    display: block;
    overflow: hidden;
    color: #f3edf7;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.stream-category-aion {
    border-color: rgba(92,229,157,.18);
    background: rgba(92,229,157,.035);
}

.stream-category-other {
    border-color: rgba(255,92,132,.16);
    background: rgba(255,92,132,.025);
}

.stream-category-counted,
.stream-category-not-counted {
    display: block;
    margin-top: 5px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
}

.stream-category-counted {
    color: #79f2b0;
}

.stream-category-not-counted {
    color: #ff7898;
}

.stream-category-duration {
    flex: 0 0 auto;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}

.stream-category-timeline-title {
    margin-top: 22px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.45);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
}

.stream-category-timeline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stream-category-timeline-row {
    display: grid;
    grid-template-columns:
        125px
        minmax(0, 1fr)
        125px;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.055);
    background: rgba(255,255,255,.018);
}

.stream-category-timeline-aion {
    border-left:
        2px solid rgba(92,229,157,.65);
}

.stream-category-timeline-other {
    border-left:
        2px solid rgba(255,92,132,.65);
}

.stream-category-period {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.stream-category-period span {
    color: rgba(255,255,255,.3);
}

.stream-category-name {
    min-width: 0;
}

.stream-category-name strong {
    display: block;
    overflow: hidden;
    color: #f4edf7;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.stream-category-name span {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.45);
    font-size: 9px;
}

.stream-category-state {
    justify-self: end;
    font-size: 9px;
    font-weight: 800;
}

.stream-category-state.counted {
    color: #79f2b0;
}

.stream-category-state.ignored {
    color: #ff7898;
}

.stream-category-empty {
    margin-top: 15px;
    padding: 20px;
    text-align: center;
    color: rgba(255,255,255,.45);
    border:
        1px dashed rgba(255,255,255,.1);
    border-radius: 10px;
}

.weekly-comparison {
    margin-top: 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    background: rgba(255,255,255,.018);
    align-self: start;
}

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

.weekly-comparison-header strong {
    display: block;
    color: #f3edf7;
    font-size: 11px;
}

.weekly-comparison-header > div > span {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.45);
    font-size: 9px;
}

.weekly-comparison-badge {
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 800;
}

.weekly-comparison-badge.good {
    color: #79f2b0;
    border: 1px solid rgba(92,229,157,.18);
    background: rgba(92,229,157,.05);
}

.weekly-comparison-badge.warning {
    color: #ff9a75;
    border: 1px solid rgba(255,154,117,.22);
    background: rgba(255,154,117,.055);
}

.weekly-comparison-badge.neutral {
    color: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.025);
}

.weekly-comparison-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.weekly-comparison-item {
    padding: 11px 12px;
    border-radius: 9px;
    background: rgba(255,255,255,.022);
    border: 1px solid rgba(255,255,255,.055);
}

.weekly-comparison-item > span {
    color: rgba(255,255,255,.5);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.weekly-comparison-values {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 8px;
}

.weekly-comparison-values > div {
    min-width: 70px;
}

.weekly-comparison-values small {
    display: block;
    color: rgba(255,255,255,.4);
    font-size: 8px;
}

.weekly-comparison-values strong {
    display: block;
    margin-top: 2px;
    color: #f5eef8;
    font-size: 14px;
}

.weekly-comparison-arrow {
    color: rgba(255,255,255,.25);
}

.weekly-comparison-diff {
    margin-top: 8px;
    font-size: 9px;
    font-weight: 800;
}

.weekly-comparison-diff.diff-warning {
    color: #ff9a75;
}

.weekly-comparison-diff.diff-good {
    color: #79f2b0;
}

.weekly-comparison-diff.diff-neutral {
    color: rgba(255,255,255,.38);
}

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

.weekly-period-navigation {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.weekly-period-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;

    background: rgba(255, 255, 255, .025);

    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.weekly-period-button:hover {
    border-color: rgba(255, 85, 194, .38);
    background: rgba(255, 85, 194, .07);
    color: #ffffff;
}

.weekly-period-button.current {
    border-color: rgba(255, 85, 194, .2);
}

.weekly-period-button.disabled {
    cursor: default;
    opacity: .42;
}

.weekly-period-center {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 245px;
    padding: 8px 14px;

    border: 1px solid rgba(255, 85, 194, .12);
    border-radius: 10px;

    background: rgba(255, 85, 194, .035);
}

.weekly-period-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weekly-period-main strong {
    color: #ffffff;
    font-size: 12px;
}

.weekly-period-badge {
    display: inline-flex;
    align-items: center;

    padding: 3px 7px;

    border: 1px solid rgba(94, 240, 174, .18);
    border-radius: 20px;

    background: rgba(94, 240, 174, .055);

    color: #72efb2;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .08em;
}

.weekly-period-badge.previous {
    border-color: rgba(255, 190, 94, .18);
    background: rgba(255, 190, 94, .055);
    color: #ffc46b;
}

.weekly-period-deadline {
    margin-top: 4px;

    color: rgba(255, 255, 255, .43);
    font-size: 9px;
}

.weekly-period-deadline strong {
    color: rgba(255, 255, 255, .72);
}

@media (max-width: 900px) {
    .weekly-period-navigation {
        align-items: stretch;
        flex-direction: column;
    }

    .weekly-period-center {
        min-width: 0;
    }

    .weekly-period-button {
        width: 100%;
    }
}

/* 2026-08: program types, monthly analytics, audit and Aion share */
.streamer-status-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.streamer-status-filters a { color:#b9afca; text-decoration:none; padding:9px 14px; border:1px solid rgba(255,255,255,.09); border-radius:999px; background:rgba(255,255,255,.025); }
.streamer-status-filters a.active { color:#fff; border-color:rgba(255,58,168,.55); background:rgba(255,58,168,.14); box-shadow:0 0 18px rgba(255,58,168,.09); }
.program-type-badge { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:10px; font-weight:800; letter-spacing:.08em; }
.program-type-badge.standard { color:#d8c7ff; background:rgba(142,83,255,.16); border:1px solid rgba(142,83,255,.32); }
.program-type-badge.special { color:#ffb7dd; background:rgba(255,58,168,.16); border:1px solid rgba(255,58,168,.35); }
.streamer-status-active { color:#7cf2bd; background:rgba(43,204,139,.12); }
.streamer-status-paused { color:#ffd27c; background:rgba(255,183,55,.12); }
.streamer-status-finished { color:#aaa1b7; background:rgba(255,255,255,.06); }
.streamer-status-blacklist { color:#ff829a; background:rgba(255,64,105,.13); }
.detail-top-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.weekly-auto-details { margin:16px 0; border:1px solid rgba(154,94,255,.2); border-radius:14px; background:rgba(83,42,127,.08); }
.weekly-auto-details > summary { cursor:pointer; padding:14px 16px; color:#d9c7f3; font-weight:700; list-style:none; }
.weekly-auto-details > summary span { margin-left:8px; color:#887f98; font-weight:400; font-size:12px; }
.weekly-auto-details[open] > summary { border-bottom:1px solid rgba(255,255,255,.07); }
.weekly-auto-details .weekly-secondary-row { padding:16px; }
.manual-regularity-editor { margin-top:14px; padding:14px; border-radius:12px; background:rgba(7,5,16,.34); }
.manual-days-toggle { display:flex; align-items:center; gap:8px; color:#d8cce6; font-weight:700; }
.manual-days-grid { display:grid; grid-template-columns:repeat(7,minmax(70px,1fr)); gap:8px; margin:12px 0; }
.manual-days-grid label { padding:9px; border:1px solid rgba(255,255,255,.08); border-radius:9px; background:rgba(255,255,255,.025); text-align:center; }
.manual-days-grid small { display:block; color:#8c8398; margin-top:4px; }
.monthly-day-summary { color:#a9a0b5; font-size:12px; }
.monthly-analytics-panel { margin-top:20px; }
.monthly-navigation { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; text-align:center; }
.monthly-navigation a { color:#e3d5f6; text-decoration:none; }
.monthly-navigation a:last-child { text-align:right; }
.monthly-navigation a:first-child { text-align:left; }
.monthly-navigation h2 { margin:3px 0 0; }
.monthly-metrics-grid { display:grid; grid-template-columns:repeat(5,minmax(120px,1fr)); gap:10px; margin:20px 0; }
.monthly-metrics-grid > div { padding:14px; border:1px solid rgba(255,255,255,.07); border-radius:12px; background:rgba(255,255,255,.025); }
.monthly-metrics-grid span { display:block; color:#91879f; font-size:11px; margin-bottom:7px; }
.monthly-metrics-grid strong { font-size:20px; }
.monthly-paid-metric { border-color:rgba(255,58,168,.28)!important; }
.monthly-chart-toolbar { display:flex; gap:8px; margin:10px 0; }
.chart-metric { border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.03); color:#aaa0b8; border-radius:9px; padding:8px 11px; cursor:pointer; }
.chart-metric.active { color:#fff; border-color:#ff3aa8; background:rgba(255,58,168,.13); }
.monthly-chart-wrap { height:230px; padding:12px; border-radius:14px; background:rgba(4,3,12,.35); }
.monthly-chart-wrap canvas { width:100%; height:100%; }
.monthly-weeks-list { display:grid; gap:10px; margin-top:18px; }
.monthly-week { border:1px solid rgba(255,255,255,.08); border-radius:12px; overflow:hidden; background:rgba(255,255,255,.018); }
.monthly-week summary { display:flex; justify-content:space-between; gap:15px; padding:14px; cursor:pointer; }
.monthly-week summary span { color:#9b92a7; }
.monthly-week-form { padding:15px; border-top:1px solid rgba(255,255,255,.07); }
.monthly-week-fields { display:grid; grid-template-columns:repeat(4,minmax(130px,1fr)); gap:10px; margin-bottom:12px; }
.monthly-week-fields label span { display:block; color:#92889e; font-size:11px; margin-bottom:5px; }
.monthly-week-fields input[type=number], .monthly-week-form input[type=text] { width:100%; box-sizing:border-box; }
.bonus-compact { grid-template-columns:repeat(5,minmax(100px,1fr)); }
.special-payout-note { padding:12px; border:1px solid rgba(255,58,168,.25); border-radius:9px; color:#ffb5dc; }
.title-dates-form,.title-inline-dates-form { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin:14px 0; }
.title-dates-form label span { display:block; color:#92889e; font-size:11px; margin-bottom:5px; }
.audit-timeline { display:grid; gap:9px; }
.audit-timeline article { display:grid; grid-template-columns:150px 180px 1fr; gap:8px 14px; padding:12px; border-left:2px solid rgba(255,58,168,.45); background:rgba(255,255,255,.02); }
.audit-timeline time,.audit-timeline span,.audit-timeline small { color:#91889c; }
.audit-timeline p,.audit-timeline small { grid-column:2/-1; margin:0; }
.aion-share-panel { margin:0 0 18px; padding:17px; border:1px solid rgba(255,58,168,.22); border-radius:16px; background:linear-gradient(135deg,rgba(255,58,168,.08),rgba(89,50,190,.08)); }
.aion-share-heading { display:flex; justify-content:space-between; gap:12px; font-weight:800; letter-spacing:.08em; }
.aion-share-heading small { color:#ff9cbc; letter-spacing:0; font-weight:500; }
.aion-share-grid { display:grid; grid-template-columns:repeat(5,minmax(130px,1fr)); gap:10px; margin-top:14px; }
.aion-share-grid > div { padding:12px; border-radius:12px; background:rgba(4,3,12,.35); }
.aion-share-grid span,.aion-share-grid small { display:block; color:#958ca3; font-size:11px; }
.aion-share-grid strong { display:block; margin:5px 0; font-size:23px; }
.aion-share-grid .primary strong { color:#ff64b6; font-size:30px; }
@media(max-width:1100px){.monthly-metrics-grid,.aion-share-grid{grid-template-columns:repeat(3,1fr)}.monthly-week-fields{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.monthly-metrics-grid,.aion-share-grid,.manual-days-grid,.monthly-week-fields,.bonus-compact{grid-template-columns:1fr 1fr}.audit-timeline article{grid-template-columns:1fr}.audit-timeline p,.audit-timeline small{grid-column:1}.monthly-navigation{grid-template-columns:1fr}.monthly-navigation a{text-align:center!important}}

/* Stage 2: align new forms with the existing Streamers Tracker controls. */
.monthly-week summary {
    transition: background .18s ease, color .18s ease;
}
.monthly-week summary:hover {
    color: var(--pink-light);
    background: rgba(255, 62, 170, .045);
}
.monthly-week[open] {
    border-color: var(--border-accent);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}
.monthly-week-form input[type="text"],
.monthly-week-form input[type="number"],
.monthly-week-form input[type="date"],
.monthly-week-form select,
.title-dates-form input,
.title-inline-dates-form input {
    min-height: 42px;
    padding: 10px 12px;
    color: var(--text);
    background: rgba(7, 7, 17, .82);
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.monthly-week-form select {
    width: 100%;
    color-scheme: dark;
}
.monthly-week-form select option {
    color: var(--text);
    background: var(--background-soft);
}
.monthly-week-form input:focus,
.monthly-week-form select:focus,
.title-dates-form input:focus,
.title-inline-dates-form input:focus {
    border-color: rgba(255, 62, 170, .62);
    background: rgba(17, 12, 29, .96);
    box-shadow: 0 0 0 3px rgba(255, 62, 170, .11);
}
.monthly-week-form input::placeholder,
.title-dates-form input::placeholder,
.title-inline-dates-form input::placeholder {
    color: var(--muted);
}
.monthly-week-form input[type="checkbox"],
.manual-regularity-editor input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--pink);
    color-scheme: dark;
}
.bonus-compact label,
.manual-days-grid label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    cursor: pointer;
    border-color: var(--border);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.bonus-compact label:hover,
.manual-days-grid label:hover {
    border-color: rgba(255, 62, 170, .38);
    background: rgba(255, 62, 170, .06);
    transform: translateY(-1px);
}
.bonus-compact label:has(input:checked),
.manual-days-grid label:has(input:checked) {
    color: var(--pink-light);
    border-color: rgba(255, 62, 170, .5);
    background: rgba(255, 62, 170, .1);
}
.monthly-week-form > .primary-button {
    min-width: 190px;
    margin-top: 14px;
}
.dashboard-aion-share {
    margin: 0 0 22px;
}
.dashboard-share-grid {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
}
@media (max-width: 1200px) {
    .dashboard-share-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .dashboard-share-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Dashboard: history of the existing Aion category snapshots. */
.aion-history-panel {
    position: relative;
    margin: 0 0 22px;
    overflow: hidden;
    border-color: rgba(157, 76, 255, .2);
}

.aion-history-panel::before {
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--pink), var(--purple), transparent);
    opacity: .7;
}

.aion-history-header {
    align-items: flex-start;
}

.aion-history-header h2 {
    margin-bottom: 0;
}

.aion-history-range {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.aion-history-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.aion-chart-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(7, 7, 17, .58);
}

.aion-chart-chip {
    min-height: 34px;
    padding: 0 12px;
    color: var(--muted-light);
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    font-size: 11px;
    font-weight: 750;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.aion-chart-chip:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .045);
}

.aion-chart-chip.active {
    color: #fff;
    border-color: rgba(255, 62, 170, .45);
    background: linear-gradient(135deg, rgba(255, 62, 170, .18), rgba(157, 76, 255, .16));
    box-shadow: 0 0 18px rgba(255, 62, 170, .09);
}

.aion-chart-chip:focus-visible,
.aion-day-navigation button:focus-visible {
    outline: 0;
    border-color: var(--pink-light);
    box-shadow: 0 0 0 3px rgba(255, 62, 170, .13);
}

.aion-day-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -3px 0 16px;
}

.aion-day-navigation > strong {
    min-width: 96px;
    color: var(--text);
    text-align: center;
    font-size: 13px;
}

.aion-day-navigation .ghost-button {
    min-height: 36px;
}

.aion-day-navigation .ghost-button:disabled {
    cursor: default;
    opacity: .36;
    transform: none;
}

.aion-day-navigation-spacer {
    flex: 1;
}

.aion-history-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.aion-history-kpis article {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.aion-history-kpis span {
    display: block;
    min-height: 28px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.aion-history-kpis strong {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: 19px;
}

.aion-history-kpis article:first-child strong,
.aion-history-kpis article:nth-child(3) strong {
    color: var(--pink-light);
}

.aion-history-chart-wrap {
    position: relative;
    height: 340px;
    padding: 12px 10px 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 15px;
    background:
        radial-gradient(circle at 50% 0%, rgba(157, 76, 255, .08), transparent 48%),
        rgba(4, 3, 12, .48);
}

.aion-history-chart-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.aion-chart-state {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--muted);
    background: rgba(7, 7, 17, .45);
    text-align: center;
    font-size: 12px;
}

.aion-chart-state[hidden],
.aion-chart-tooltip[hidden],
.aion-day-navigation[hidden],
.aion-history-kpis[hidden] {
    display: none !important;
}

.aion-chart-tooltip {
    position: absolute;
    z-index: 4;
    width: 210px;
    padding: 12px;
    pointer-events: none;
    border: 1px solid rgba(255, 62, 170, .34);
    border-radius: 12px;
    background: rgba(12, 9, 22, .96);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .42), 0 0 24px rgba(255, 62, 170, .08);
    backdrop-filter: blur(14px);
}

.aion-chart-tooltip > strong {
    display: block;
    margin-bottom: 8px;
    color: var(--pink-light);
    font-size: 12px;
}

.aion-chart-tooltip div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    color: var(--muted-light);
    font-size: 10px;
}

.aion-chart-tooltip b {
    color: var(--text);
    font-weight: 750;
}

.aion-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    min-height: 17px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
}

.aion-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.aion-chart-legend i {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    box-shadow: 0 0 9px currentColor;
}

@media (max-width: 1200px) {
    .aion-history-header {
        flex-direction: column;
    }

    .aion-history-controls {
        justify-content: flex-start;
    }

    .aion-history-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .aion-history-panel {
        padding: 16px;
    }

    .aion-history-controls,
    .aion-chart-tabs {
        width: 100%;
    }

    .aion-chart-chip {
        flex: 1;
        padding-inline: 7px;
    }

    .aion-day-navigation {
        flex-wrap: wrap;
    }

    .aion-day-navigation-spacer {
        flex-basis: 100%;
        height: 0;
    }

    .aion-day-navigation .ghost-button:nth-last-child(-n + 2) {
        flex: 1;
    }

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

    .aion-history-chart-wrap {
        height: 300px;
        padding-inline: 4px;
    }
}

/* Dashboard LIVE expand */
.dashboard-live-extra {
    display: none;
}

.dashboard-live-grid.is-expanded .dashboard-live-extra {
    display: grid;
}

.dashboard-live-expand-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.dashboard-live-expand-button {
    border: 1px solid rgba(255, 79, 175, 0.45);
    background: rgba(255, 79, 175, 0.08);
    color: #ff7ec8;
    border-radius: 10px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.dashboard-live-expand-button:hover {
    background: rgba(255, 79, 175, 0.14);
    border-color: rgba(255, 79, 175, 0.7);
}

/* Nomination shortlist layout hotfix */
.nomination-shortlist-add-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.nomination-shortlist-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-top: 12px;
}

.nomination-shortlist-add label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.nomination-shortlist-add label > span {
    display: block;
    white-space: nowrap;
    line-height: 1.25;
}

.nomination-shortlist-add select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 36px 0 12px;
}

.nomination-shortlist-add .nomination-shortlist-button {
    width: auto;
    min-width: 105px;
    height: 44px;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .nomination-shortlist-add-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .nomination-shortlist-add {
        grid-template-columns: 1fr;
    }

    .nomination-shortlist-add .nomination-shortlist-button {
        width: 100%;
    }
}

