/*
 * «Северное сияние» — холодная тёмная тема: глубокий сине-зелёный фон, бирюзовый акцент.
 */
html.theme-aurora {
    color-scheme: dark;
    --palette-deep: #0f172a;
    --palette-slate: #64748b;
    --palette-taupe: #94a3b8;
    --palette-rose: #5eead4;
    --palette-yellow: #5eead4;

    --bg: #0f172a;
    --surface: #1e293b;
    --surface-soft: #172033;
    --surface-strong: #334155;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #5eead4;
    --primary-hover: #99f6e4;
    --primary-soft: rgba(94, 234, 212, 0.16);
    --on-primary: #0f172a;
    --accent: #67e8f9;
    --accent-soft: rgba(103, 232, 249, 0.22);
    --danger: #fca5a5;
    --success: #86efac;
    --warning: #fcd34d;
    --border: rgba(148, 163, 184, 0.35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.55);
}

html.theme-aurora body {
    background:
        radial-gradient(circle at 10% -6%, rgba(94, 234, 212, 0.18), transparent 26rem),
        radial-gradient(circle at 88% -10%, rgba(103, 232, 249, 0.12), transparent 24rem),
        linear-gradient(180deg, #0c1222 0%, var(--bg) 48%, #152238 100%);
}

html.theme-aurora .rp-header,
html.theme-aurora .rp-footer-wrap {
    background: rgba(15, 23, 42, 0.92);
}

html.theme-aurora .rp-logo a,
html.theme-aurora .rp-nav a,
html.theme-aurora .rp-server-subnav-list a {
    color: var(--text);
}

html.theme-aurora .rp-nav a:hover,
html.theme-aurora .rp-server-subnav-list a:hover {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

html.theme-aurora .rp-nav a[aria-current="page"],
html.theme-aurora .rp-server-subnav-list a[aria-current="page"] {
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-weight: 600;
}

html.theme-aurora .rp-nav form button.rp-nav-logout[type="submit"] {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text);
    font-weight: 400;
}

html.theme-aurora .rp-nav form button.rp-nav-logout[type="submit"]:hover {
    background: var(--primary-soft);
    color: var(--primary-hover);
    filter: none;
    transform: none;
    box-shadow: none;
}

html.theme-aurora a {
    color: var(--primary);
}

html.theme-aurora .rp-button,
html.theme-aurora a.rp-button,
html.theme-aurora button,
html.theme-aurora input,
html.theme-aurora select,
html.theme-aurora textarea {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

html.theme-aurora button {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-color: rgba(94, 234, 212, 0.55);
    color: var(--on-primary);
}

html.theme-aurora .rp-button.is-active,
html.theme-aurora a.rp-button.is-active {
    background: var(--primary);
    color: var(--on-primary);
}

html.theme-aurora .rp-button-danger,
html.theme-aurora button.rp-button-danger {
    background: var(--danger);
    color: #1f2937;
    border-color: var(--danger);
}

html.theme-aurora .rp-message-item.is-unread,
html.theme-aurora .rp-notification.is-unread {
    background: var(--primary-soft);
    border-color: rgba(94, 234, 212, 0.45);
}

html.theme-aurora .rp-connect-address,
html.theme-aurora code {
    background: var(--surface-soft);
    color: var(--text);
}

html.theme-aurora table,
html.theme-aurora .rp-table th {
    background: var(--surface-soft);
}

html.theme-aurora .rp-top-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

html.theme-aurora .rp-top-table thead th {
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

html.theme-aurora .rp-top-table tbody td {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #334155 0%, #293548 100%);
}

html.theme-aurora .rp-top-table tbody td:first-child {
    border-left: 1px solid var(--border);
    border-radius: 12px 0 0 12px;
}

html.theme-aurora .rp-top-table tbody td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 12px 12px 0;
}

html.theme-aurora th {
    color: var(--accent);
}

html.theme-aurora tr:hover td {
    background: rgba(94, 234, 212, 0.07);
}

html.theme-aurora .rp-review-bar-track,
html.theme-aurora .rp-profile-stat,
html.theme-aurora a.rp-profile-stat:hover {
    background: var(--surface-soft);
}

html.theme-aurora .rp-forum-badge {
    background: var(--surface-soft);
    color: var(--text);
}

html.theme-aurora .rp-forum-badge.pending { background: #78350f; color: #fef3c7; }
html.theme-aurora .rp-forum-badge.resolved { background: #14532d; color: #dcfce7; }
html.theme-aurora .rp-forum-badge.dismissed { background: #1f2937; color: #d1d5db; }

html.theme-aurora .rp-owner-response {
    background: var(--surface-soft);
    border-left-color: var(--primary);
}

html.theme-aurora .rp-status {
    background: #14532d;
    color: #dcfce7;
    border-color: #166534;
}

html.theme-aurora .rp-errors {
    background: #7f1d1d;
    color: #fee2e2;
    border-color: #991b1b;
}

html.theme-aurora .rp-hero-card:not(.rp-hero-card--slideshow),
html.theme-aurora .rp-server-hero {
    background: linear-gradient(145deg, #1e3a4a 0%, #1e293b 52%, #172033 100%);
    border-color: rgba(157, 141, 143, 0.45);
}

html.theme-aurora .rp-hero-card__visual::after {
    background: linear-gradient(145deg, rgba(30, 58, 74, 0.58) 0%, rgba(30, 41, 59, 0.52) 52%, rgba(23, 32, 51, 0.48) 100%);
}

html.theme-aurora .rp-clean-list > li {
    background: linear-gradient(180deg, var(--surface), var(--surface-soft));
    border-color: var(--border);
}

html.theme-aurora .rp-interactive-cell:hover,
html.theme-aurora .rp-interactive-cell:focus-within {
    background:
        linear-gradient(rgba(94, 234, 212, 0.14), rgba(94, 234, 212, 0.14)),
        linear-gradient(180deg, var(--surface), var(--surface-soft));
    border-color: rgba(94, 234, 212, 0.45);
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.22);
}

html.theme-aurora .rp-forum-shell,
html.theme-aurora .rp-owner-shell,
html.theme-aurora .rp-owner-server-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    border-color: var(--border);
}

html.theme-aurora .rp-table-premium th {
    background: linear-gradient(180deg, #3d4f63 0%, #334155 100%);
}

html.theme-aurora .rp-table-premium tr:hover td {
    background: rgba(94, 234, 212, 0.09);
}

html.theme-aurora .rp-rich-upload__tool {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

html.theme-aurora .rp-rich-upload__tool:hover {
    background: var(--primary-soft);
    border-color: rgba(155, 120, 111, 0.55);
}

/* Страница сервера: блок «Статистика» — в light.css много жёстких светлых фонов/бордеров */
html.theme-aurora .rp-stats-shell {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

html.theme-aurora a.rp-stats-period-btn.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--text);
}

html.theme-aurora .rp-kpi {
    background: var(--surface);
}

html.theme-aurora .rp-chart-card {
    background: var(--surface);
}

html.theme-aurora .rp-chart-svg {
    background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface-strong) 100%);
    border-color: var(--border);
}

html.theme-aurora .rp-chart-line-main {
    stroke: var(--primary);
}

html.theme-aurora .rp-chart-line-cap {
    stroke: #9d8d8f;
}

html.theme-aurora .rp-chart-line-success {
    stroke: var(--success);
}

html.theme-aurora .rp-chart-line-warn {
    stroke: var(--warning);
}

html.theme-aurora .rp-heatmap-wrap {
    background: var(--surface);
}

html.theme-aurora .rp-heatmap-cell {
    border-color: var(--border);
    background: rgba(94, 234, 212, var(--heat, 0.12));
}

html.theme-aurora .rp-heatmap-hour {
    color: var(--muted);
    opacity: 1;
}

html.theme-aurora .rp-heatmap-main {
    color: var(--text);
}

html.theme-aurora .rp-heatmap-sub {
    color: var(--muted);
    opacity: 1;
}

.rp-pagination {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.rp-pagination__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.rp-pagination__summary {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.rp-pagination__controls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.rp-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    color: var(--text);
    border: 0;
    border-right: 1px solid var(--border);
    background: transparent;
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.rp-pagination__btn:last-child {
    border-right: 0;
}

a.rp-pagination__btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
    text-decoration: none;
}

.rp-pagination__btn.is-active {
    background: var(--primary-soft);
    color: var(--primary);
    cursor: default;
}

.rp-pagination__btn.is-disabled,
.rp-pagination__btn.is-ellipsis {
    color: var(--muted);
    cursor: default;
}

.rp-pagination__btn.is-disabled {
    opacity: 0.55;
}

.rp-pagination__btn.is-ellipsis {
    pointer-events: none;
    min-width: 2rem;
}

.rp-pagination__btn--edge {
    padding: 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.rp-pagination__chev {
    position: relative;
    top: -1px;
}

@media (max-width: 520px) {
    .rp-pagination__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .rp-pagination__controls {
        justify-content: center;
    }
}
