@media (max-width: 1024px) {
    .guest-hero__illustration svg {
        width: 120%;
        margin-left: -10%;
    }
}

@media (max-width: 640px) {
    .guest-hero__illustration svg {
        width: 126%;
        margin-left: -12%;
    }
}
/* -------------------------------------------------------------------------- */
/* Typography                                                                */
/* -------------------------------------------------------------------------- */
    
@font-face {
    font-family: 'GostB';
    src: url('../fonts/GostB-Regular.ttf') format('truetype');
        font-weight: 400;
    font-style: normal;
    font-display: swap;
    }
    
    @font-face {
    font-family: 'GostB';
    src: url('../fonts/GostB-Regular.ttf') format('truetype');
    font-weight: 600;
        font-style: normal;
    font-display: swap;
    }
    
    @font-face {
    font-family: 'GostB';
    src: url('../fonts/GostB-Regular.ttf') format('truetype');
    font-weight: 700;
        font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GostB';
    src: url('../fonts/GostB-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
    
    @font-face {
        font-family: 'Montserrat';
        font-style: normal;
    font-weight: 400;
    src: local('Montserrat Regular'), local('Montserrat-Regular'), url('../fonts/montserrat-v14-latin-ext_latin_cyrillic-regular.woff2') format('woff2'),
        url('../fonts/montserrat-v14-latin-ext_latin_cyrillic-regular.woff') format('woff');
    font-display: swap;
}
    
    @font-face {
        font-family: 'Montserrat';
        font-style: normal;
    font-weight: 500;
    src: local('Montserrat Medium'), local('Montserrat-Medium'), url('../fonts/montserrat-v14-latin-ext_latin_cyrillic-500.woff2') format('woff2'),
        url('../fonts/montserrat-v14-latin-ext_latin_cyrillic-500.woff') format('woff');
    font-display: swap;
}
    
    @font-face {
        font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'), url('../fonts/montserrat-v14-latin-ext_latin_cyrillic-600.woff2') format('woff2'),
        url('../fonts/montserrat-v14-latin-ext_latin_cyrillic-600.woff') format('woff');
    font-display: swap;
}
    
    @font-face {
        font-family: 'Montserrat';
        font-style: normal;
    font-weight: 700;
    src: local('Montserrat Bold'), local('Montserrat-Bold'), url('../fonts/montserrat-v14-latin-ext_latin_cyrillic-700.woff2') format('woff2'),
        url('../fonts/montserrat-v14-latin-ext_latin_cyrillic-700.woff') format('woff');
    font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Design tokens                                                             */
/* -------------------------------------------------------------------------- */

:root {
    --font-family-base: 'GostB', 'Montserrat', sans-serif;
    --font-family-alt: 'Montserrat', sans-serif;
    --font-size-base: 16px;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;

    --radius-1: 4px;
    --radius-2: 8px;
    --radius-3: 12px;
    --radius-4: 16px;
    --radius-5: 20px;
    --radius-6: 24px;

    --shadow-soft: 0 22px 45px -20px rgba(15, 32, 62, 0.25);
    --shadow-strong: 0 42px 96px -40px rgba(15, 32, 62, 0.45);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.14);

    --color-bg-primary: #f4f6fb;
    --color-bg-secondary: #ffffff;
    --color-bg-surface: rgba(255, 255, 255, 0.92);
    --color-bg-muted: #eef1f8;
    --color-gradient-primary: linear-gradient(135deg, #7bcae3 0%, #4f9fd2 100%);

    --color-text-primary: #14213b;
    --color-text-secondary: #4f5d7a;
    --color-text-muted: #7c89a6;
    --color-border: rgba(10, 25, 55, 0.12);
    --color-divider: rgba(10, 25, 55, 0.2);
    --color-overlay: rgba(8, 14, 24, 0.65);
    --color-scrollbar: rgba(120, 140, 170, 0.42);
    --color-scrollbar-hover: rgba(120, 140, 170, 0.68);

    --color-accent: #7bcae3;
    --color-accent-strong: #1d9ed9;
    --color-accent-soft: rgba(123, 202, 227, 0.14);
    --color-success: #3fc983;
    --color-success-strong: #2b995e;
    --color-danger: #ff5c5c;
    --color-danger-strong: #db3131;
    --color-warning: #ffb347;
    --color-warning-strong: #f7971e;
    --color-info: #4f8dfc;
    --color-info-strong: #1f6ede;
    --color-purple: #9b5cff;
    --color-cyan: #3ad6ff;

    --transition-base: all 0.25s ease;
    --max-wrapper-width: 1360px;

    /* Legacy aliases */
    --bg-primary: var(--color-bg-primary);
    --bg-secondary: var(--color-bg-secondary);
    --bg-tertiary: var(--color-bg-muted);
    --text-primary: var(--color-text-primary);
    --text-secondary: var(--color-text-secondary);
    --text-accent: var(--color-accent);
    --accent-primary: var(--color-accent);
    --accent-secondary: var(--color-purple);
    --border-color: var(--color-border);
    --shadow-color: rgba(15, 32, 62, 0.18);
    --padding-1: var(--space-1);
    --padding-2: var(--space-2);
    --padding-3: var(--space-3);
    --padding-4: var(--space-4);
    --padding-5: var(--space-5);
    --padding-6: var(--space-6);
    --border-radius-1: var(--radius-1);
    --border-radius-2: var(--radius-2);
    --border-radius-3: var(--radius-3);
    --border-radius-4: var(--radius-4);
    --border-radius-5: var(--radius-5);
    --border-radius-6: var(--radius-6);
}

[data-theme="dark"] {
    --color-bg-primary: #08101e;
    --color-bg-secondary: #0f1b30;
    --color-bg-surface: rgba(18, 28, 48, 0.92);
    --color-bg-muted: #121f36;
    --color-gradient-primary: linear-gradient(135deg, #1d9ed9 0%, #254d80 100%);

    --color-text-primary: #f3f6ff;
    --color-text-secondary: #bac6de;
    --color-text-muted: #8e9ab5;
    --color-border: rgba(100, 122, 156, 0.24);
    --color-divider: rgba(100, 122, 156, 0.32);
    --color-overlay: rgba(3, 6, 12, 0.72);
    --color-scrollbar: rgba(90, 114, 150, 0.4);
    --color-scrollbar-hover: rgba(90, 114, 150, 0.65);

    --shadow-soft: 0 24px 55px -24px rgba(2, 10, 26, 0.7);
    --shadow-strong: 0 42px 110px -48px rgba(2, 10, 26, 0.82);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-color: rgba(2, 10, 26, 0.8);
}

/* -------------------------------------------------------------------------- */
/* Base styles                                                               */
/* -------------------------------------------------------------------------- */

*, *::before, *::after {
        box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: none;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

main, .main {
    flex: 1 0 auto;
    width: 100%;
}

img, video {
    max-width: 100%;
    display: block;
    height: auto;
    border-radius: var(--radius-2);
}

picture, svg {
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover, a:focus {
    color: var(--color-accent-strong);
}

p {
    margin: 0 0 var(--space-4);
}

b, strong {
    font-weight: var(--font-weight-bold) !important;
    /* Имитация жирного шрифта через text-shadow для шрифтов без жирного начертания */
    text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
    letter-spacing: 0.3px;
}

/* Убеждаемся, что b и strong работают везде */
* b, * strong,
td b, td strong,
th b, th strong,
.badge b, .badge strong,
.admin-table b, .admin-table strong,
.admin-table td b, .admin-table td strong {
    font-weight: var(--font-weight-bold) !important;
    text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
    letter-spacing: 0.3px;
}

/* Содержимое внутри b и strong также должно быть жирным - наследует жирный шрифт */
b *, strong * {
    font-weight: var(--font-weight-bold) !important;
    text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
    letter-spacing: 0.3px;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

hr {
    border: none;
    height: 1px;
    margin: var(--space-6) 0;
    background: var(--color-divider);
}

body::-webkit-scrollbar,
textarea::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
    background-color: var(--color-scrollbar);
    border-radius: 14px;
    transition: var(--transition-base);
}

body::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-scrollbar-hover);
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                    */
/* -------------------------------------------------------------------------- */

.wrapper {
    width: 100%;
    max-width: var(--max-wrapper-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-8) 0;
}

.section--tight {
    padding: var(--space-6) 0;
}

.section-title {
    font-weight: var(--font-weight-bold);
    font-size: 2rem;
    margin-bottom: var(--space-4);
}

.section-description {
    max-width: 720px;
    margin-bottom: var(--space-6);
    color: var(--color-text-secondary);
}

.card-grid {
    display: grid;
    gap: var(--space-5);
}

.card-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* -------------------------------------------------------------------------- */
/* Header                                                                    */
/* -------------------------------------------------------------------------- */
    
    #p_prldr {
        position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--color-overlay);
    z-index: 9999;
}

#p_prldr .svg_anm {
    width: 42px;
    height: 42px;
    background: url(../img/loader.svg) center/contain no-repeat;
}

.header {
    position: sticky;
        top: 0;
    z-index: 900;
    background: var(--color-bg-surface);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-inset);
    transition: var(--transition-base);
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-6);
}
.header__right {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.header-action-btn,
.selectProfile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--color-bg-muted);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: var(--transition-base);
}

.header-action-btn:hover,
.header-action-btn:focus,
.selectProfile:hover,
.selectProfile:focus {
    background: var(--color-accent);
    color: #fff;
}

.headerlogo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 54px;
    background: url(../img/logoPerzostroi.png) center/contain no-repeat;
}

.header__section {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}


.headerButton {
    position: relative;
}

.header__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-2);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    transition: var(--transition-base);
    border: none;
    background: transparent;
}

.header__item.active,
.header__item:hover,
.header__item:focus {
    color: var(--color-text-primary);
    background: var(--color-accent-soft);
}

.headerButton .header__subsection {
        position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: var(--space-3);
    border-radius: var(--radius-3);
    background: var(--color-bg-secondary);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-base);
    display: grid;
    gap: var(--space-2);
    pointer-events: none;
    z-index: 50;
}

.headerButton:hover .header__subsection,
.headerButton.is-open .header__subsection,
.headerButton .header__subsection.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header__sublink {
    display: block;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-2);
    color: var(--color-text-secondary);
}

.header__sublink:hover,
.header__sublink:focus,
.header__sublink.active {
    color: var(--color-text-primary);
    background: var(--color-accent-soft);
}





.selectProfile {
    font-size: 18px;
}



.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                    */
/* -------------------------------------------------------------------------- */

.footer {
    color: var(--color-text-primary);
    padding: 25px 0;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
        font-weight: 600;
    font-size: 18px;
}

.footer__links {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    justify-content: center;
}

.footer__link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.footer__link:hover,
.footer__link:focus {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Intro sections                                                            */
/* -------------------------------------------------------------------------- */

.intro {
    padding: calc(var(--space-9) + 40px) 0 var(--space-7);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
        position: relative;
    overflow: hidden;
}

.intro::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(123, 202, 227, 0.24), transparent 55%);
}

.intro--short {
    padding-top: calc(var(--space-8) + 20px);
    padding-bottom: var(--space-6);
}

.intro--medium {
    min-height: 40vh;
}

.intro--large {
    min-height: 50vh;
}

.intro__title {
    max-width: 720px;
    font-size: 3rem;
    line-height: 1.15;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
}

.intro__subtitle {
    max-width: 1000px;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.intro__subtitle__link {
    color: inherit;
    text-decoration: underline;
}

.intro__subtitle__link:hover,
.intro__subtitle__link:focus {
    color: var(--color-accent);
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                   */
/* -------------------------------------------------------------------------- */

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--radius-3);
    background: var(--color-accent);
    color: #fff;
    font-family: 'GostB', 'Montserrat', sans-serif;
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    line-height: 1.1;
        cursor: pointer;
    transition: var(--transition-base), transform 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

button:hover,
button:focus,
.btn:hover,
.btn:focus {
    transform: translateY(-1px) scale(1.01);
    box-shadow: var(--shadow-soft);
}

.btn:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: 0.8rem;
}

.btn-lg {
    padding: var(--space-3) var(--space-5);
    font-size: 1.05rem;
}

.btn-block {
        width: 100%;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-secondary {
    background: var(--color-accent-soft);
    color: var(--color-text-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-strong) 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger) 0%, var(--color-danger-strong) 100%);
}

.btn-warning {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-strong) 100%);
    color: #2f2a1d;
}

.btn-info {
    background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-strong) 100%);
}

.btn-dark {
    background: linear-gradient(135deg, #28334d 0%, #111d33 100%);
}

.btn-light {
    background: linear-gradient(135deg, #f5f7fb 0%, #e3e9f6 100%);
    color: var(--color-text-primary);
}

.btn-red {
    background: linear-gradient(135deg, #d62c35 0%, #86131e 100%);
}

.btn-dark-red {
    background: linear-gradient(135deg, #b1242d 0%, #5f0f14 100%);
}

.btn-green {
    background: linear-gradient(135deg, #32bb6f 0%, #238a4d 100%);
}

.btn-dark-green {
    background: linear-gradient(135deg, #23774c 0%, #11402a 100%);
}

.btn-blue {
    background: linear-gradient(135deg, #2f74ff 0%, #1337a5 100%);
}

.btn-yellow {
    background: linear-gradient(135deg, #ffe066 0%, #f0b429 100%);
    color: #3a2c08;
}

.btn-orange {
    background: linear-gradient(135deg, #ff8a3d 0%, #c75c00 100%);
}

.btn-purple {
    background: linear-gradient(135deg, #9b5cff 0%, #6a33c6 100%);
}

.btn-cyan {
    background: linear-gradient(135deg, #47e0ff 0%, #1bb5d6 100%);
}

.btn-gray {
    background: linear-gradient(135deg, #6d778f 0%, #3a4257 100%);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--color-accent-soft);
    color: var(--color-text-primary);
}

.error-page {
    position: relative;
    min-height: max(520px, calc(100vh - 180px));
    padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 10vw, 96px);
    background: linear-gradient(160deg, #f4f6fb 0%, #ffffff 40%, #eef5ff 100%);
    animation: error-page-fade-in 0.6s ease-out both;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(123, 202, 227, 0.18), transparent 55%), radial-gradient(circle at 80% 30%, rgba(77, 126, 255, 0.16), transparent 60%);
    pointer-events: none;
    animation: error-page-gradient 18s linear infinite;
}

.error-page--403 {
    background: linear-gradient(160deg, #fbf4f6 0%, #ffffff 44%, #ffeef5 100%);
}

.error-page--403::before {
    background: radial-gradient(circle at 18% 22%, rgba(255, 149, 117, 0.18), transparent 55%), radial-gradient(circle at 82% 18%, rgba(245, 106, 123, 0.14), transparent 60%);
}

.error-page__wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: var(--space-8);
}

.error-page__content {
    max-width: 520px;
    animation: error-page-slide-up 0.7s cubic-bezier(0.16, 0.84, 0.44, 1) 0.12s both;
}

.error-page__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-3);
    border-radius: 999px;
    background: rgba(77, 126, 255, 0.12);
    color: var(--color-accent-strong);
    font-size: 1rem;
    letter-spacing: 6px;
    font-weight: var(--font-weight-semibold);
    background-image: linear-gradient(135deg, rgba(77, 126, 255, 0.38) 0%, rgba(71, 208, 255, 0.2) 50%, rgba(77, 126, 255, 0.38) 100%);
    background-size: 220% 220%;
    animation: error-page-code-glow 6s ease-in-out infinite;
}

.error-page--403 .error-page__code {
    background: rgba(245, 106, 123, 0.12);
    color: #d94a6a;
    background-image: linear-gradient(135deg, rgba(245, 106, 123, 0.38) 0%, rgba(255, 157, 144, 0.2) 50%, rgba(245, 106, 123, 0.38) 100%);
}

.error-page__title {
    margin: 0 0 var(--space-4);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
}

.error-page__description {
    margin: 0 0 var(--space-5);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.error-page__link {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    position: relative;
    transition: color 0.3s ease;
}

.error-page__link:hover,
.error-page__link:focus {
    color: var(--color-accent-strong);
}

.error-page__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.error-page__link:hover::after,
.error-page__link:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.error-page__illustration {
    position: relative;
    width: 100%;
    aspect-ratio: 6 / 5;
    animation: error-page-zoom-in 0.9s cubic-bezier(0.22, 0.65, 0.36, 1) 0.18s both;
}

.error-page__illustration {
    overflow: visible;
}

.error-page__illustration svg {
    width: 100%;
    max-width: none;
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(15, 32, 62, 0.18));
    transform-origin: center;
    transform: translate(-6%, -4%) scale(1.12);
}

.error-page__accent {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.error-page__accent-circle,
.error-page__accent-dots {
    position: absolute;
    border-radius: 999px;
    opacity: 0.55;
    filter: blur(0px);
    animation: error-page-pulse 12s ease-in-out infinite;
}

.error-page__accent-circle--lg {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -80px;
}

.error-page__accent-circle--md {
    width: 220px;
    height: 220px;
    bottom: -120px;
    right: 12%;
    animation-delay: 2.5s;
}

.error-page__accent-circle--sm {
    width: 140px;
    height: 140px;
    bottom: 16%;
    left: 18%;
    animation-delay: 4.5s;
}

.error-page__accent-dots {
    width: 180px;
    height: 180px;
    top: 24%;
    right: -60px;
    background-image: radial-gradient(currentColor 12%, transparent 12%);
    background-size: 28px 28px;
    opacity: 0.35;
    animation-delay: 1.2s;
}

.error-page--404 .error-page__accent-circle,
.error-page--404 .error-page__accent-dots {
    background: radial-gradient(circle at 30% 30%, rgba(71, 208, 255, 0.55), rgba(29, 111, 209, 0.12));
    color: rgba(71, 208, 255, 0.35);
}

.error-page--403 .error-page__accent-circle,
.error-page--403 .error-page__accent-dots {
    background: radial-gradient(circle at 30% 30%, rgba(245, 106, 123, 0.55), rgba(198, 66, 110, 0.12));
    color: rgba(245, 106, 123, 0.35);
}

.error-page__illustration-planet,
.error-page__illustration-rocket,
.error-page__illustration-stars,
.error-page__illustration-shield,
.error-page__illustration-lock,
.error-page__illustration-badge {
    animation: error-page-floating 12s ease-in-out infinite;
    transform-origin: center;
}

.error-page__illustration-rocket {
    animation-duration: 9s;
    animation-delay: 0.6s;
}

.error-page__illustration-stars {
    animation-duration: 14s;
    animation-delay: 1.4s;
}

.error-page__illustration-lock {
    animation-duration: 10s;
    animation-delay: 0.8s;
}

.error-page__illustration-badge {
    animation-duration: 16s;
    animation-delay: 1.2s;
}

@keyframes error-page-floating {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.01);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes error-page-fade-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes error-page-slide-up {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes error-page-zoom-in {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes error-page-code-glow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes error-page-gradient {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -10px, 0) scale(1.02);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes error-page-pulse {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: translate3d(0, -12px, 0) scale(1.08);
        opacity: 0.75;
    }
}

.error-page__illustration svg {
    width: 118%;
    margin-left: -9%;
}

@media (max-width: 1024px) {
    .error-page {
        min-height: max(480px, calc(100vh - 160px));
        padding-top: clamp(48px, 10vw, 96px);
    }

    .error-page__wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .error-page__content {
        margin: 0 auto;
    }

    .error-page__actions {
        justify-content: center;
    }

    .error-page__illustration {
        max-width: 420px;
        margin: 0 auto;
    }

    .error-page__illustration svg {
        transform: translate(-5%, -3%) scale(1.1);
    }
}

@media (max-width: 640px) {
    .error-page {
        padding: clamp(40px, 12vw, 64px) 0 clamp(32px, 10vw, 56px);
        min-height: max(420px, calc(100vh - 140px));
    }

    .error-page__code {
        letter-spacing: 4px;
        font-size: 0.9rem;
    }

    .error-page__title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .error-page__description {
        font-size: 1rem;
    }

    .error-page__actions {
        gap: var(--space-2);
    }

    .error-page__illustration {
        max-width: 320px;
    }

    .error-page__illustration svg {
        transform: translate(-6%, -3.5%) scale(1.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .error-page,
    .error-page::before,
    .error-page__content,
    .error-page__illustration,
    .error-page__code,
    .error-page__accent-circle,
    .error-page__accent-dots,
    .error-page__illustration-planet,
    .error-page__illustration-rocket,
    .error-page__illustration-stars,
    .error-page__illustration-shield,
    .error-page__illustration-lock,
    .error-page__illustration-badge {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Error pages – dark theme overrides                                         */
/* -------------------------------------------------------------------------- */

[data-theme="dark"] .error-page {
    background: linear-gradient(160deg, #08101e 0%, #0f1b30 35%, #1c2b46 100%);
    color: var(--color-text-primary);
}

[data-theme="dark"] .error-page::before {
    background: radial-gradient(circle at 22% 22%, rgba(61, 139, 186, 0.28), transparent 52%),
        radial-gradient(circle at 74% 18%, rgba(69, 111, 212, 0.18), transparent 60%);
    opacity: 0.9;
}

[data-theme="dark"] .error-page--403 {
    background: linear-gradient(160deg, #140c16 0%, #221222 38%, #312034 100%);
}

[data-theme="dark"] .error-page--403::before {
    background: radial-gradient(circle at 20% 20%, rgba(255, 120, 156, 0.28), transparent 54%),
        radial-gradient(circle at 80% 16%, rgba(198, 66, 110, 0.22), transparent 60%);
}

[data-theme="dark"] .error-page__code {
    color: #8cd3ff;
    background-image: linear-gradient(135deg, rgba(140, 211, 255, 0.45) 0%, rgba(66, 144, 240, 0.25) 50%, rgba(140, 211, 255, 0.45) 100%);
    box-shadow: 0 8px 22px rgba(12, 27, 52, 0.25);
}

[data-theme="dark"] .error-page--403 .error-page__code {
    color: #ff9bb8;
    background-image: linear-gradient(135deg, rgba(255, 155, 184, 0.45) 0%, rgba(198, 66, 110, 0.24) 50%, rgba(255, 155, 184, 0.45) 100%);
}

[data-theme="dark"] .error-page__description,
[data-theme="dark"] .error-page__link {
    color: rgba(233, 238, 255, 0.78);
}

[data-theme="dark"] .error-page__link:hover,
[data-theme="dark"] .error-page__link:focus {
    color: var(--color-accent);
}

[data-theme="dark"] .error-page__illustration svg {
    filter: drop-shadow(0 28px 55px rgba(4, 12, 28, 0.55));
}

[data-theme="dark"] .error-page--404 .error-page__accent-circle,
[data-theme="dark"] .error-page--404 .error-page__accent-dots {
    background: radial-gradient(circle at 30% 30%, rgba(71, 208, 255, 0.45), rgba(18, 80, 168, 0.18));
    color: rgba(71, 208, 255, 0.35);
    opacity: 0.6;
}

[data-theme="dark"] .error-page--403 .error-page__accent-circle,
[data-theme="dark"] .error-page--403 .error-page__accent-dots {
    background: radial-gradient(circle at 32% 32%, rgba(255, 140, 170, 0.45), rgba(154, 32, 78, 0.2));
    color: rgba(255, 140, 170, 0.32);
    opacity: 0.68;
}


/* -------------------------------------------------------------------------- */
/* Guest landing                                                             */
/* -------------------------------------------------------------------------- */

.guest-hero {
    position: relative;
    overflow: hidden;
    min-height: max(620px, calc(100vh - 160px));
    display: flex;
    align-items: center;
    background: linear-gradient(150deg, #eef5ff 0%, #ffffff 42%, #f4f8ff 100%);
    padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 10vw, 96px);
}

.guest-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 22%, rgba(123, 202, 227, 0.18), transparent 55%),
        radial-gradient(circle at 82% 18%, rgba(79, 141, 252, 0.14), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: guest-hero-gradient 18s linear infinite;
}

.guest-hero__background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.guest-hero__glow {
    position: absolute;
    width: clamp(240px, 50vw, 520px);
    height: clamp(240px, 50vw, 520px);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: guest-hero-pulse 12s ease-in-out infinite;
}

.guest-hero__glow--top {
    top: -120px;
    left: clamp(-160px, -12vw, -80px);
    background: rgba(123, 202, 227, 0.55);
}

.guest-hero__glow--bottom {
    bottom: -160px;
    right: clamp(-160px, -12vw, -80px);
    background: rgba(77, 126, 255, 0.45);
    animation-delay: 2.4s;
}

.guest-hero__orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(77, 126, 255, 0.25);
    animation: guest-hero-orbit 20s linear infinite;
}

.guest-hero__orbit--lg {
    width: clamp(360px, 46vw, 520px);
    height: clamp(360px, 46vw, 520px);
    top: 16%;
    left: 10%;
}

.guest-hero__orbit--sm {
    width: clamp(220px, 32vw, 320px);
    height: clamp(220px, 32vw, 320px);
    bottom: 18%;
    right: 16%;
    animation-duration: 26s;
}

.guest-hero__particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(0px);
    animation: guest-hero-particle 10s ease-in-out infinite;
}

.guest-hero__particle--one {
    top: 22%;
    right: 28%;
    animation-delay: 0.6s;
}

.guest-hero__particle--two {
    bottom: 16%;
    left: 32%;
    animation-delay: 1.4s;
}

.guest-hero__particle--three {
    top: 12%;
    left: 48%;
    animation-delay: 2s;
}

.guest-hero__wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(48px, 8vw, 96px);
    align-items: center;
}

.guest-hero__content {
    display: grid;
    gap: clamp(16px, 4vw, 28px);
    max-width: 540px;
}

.guest-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(77, 126, 255, 0.12);
    color: #1d6fd1;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.03em;
}

.guest-hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.guest-hero__title {
    margin: 0;
    font-size: clamp(2.6rem, 4.6vw, 3.6rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
}

.guest-hero__subtitle {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.guest-hero__actions {
    display: grid;
    gap: clamp(18px, 3vw, 24px);
}

.guest-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    border-radius: var(--radius-4);
    background: linear-gradient(135deg, #47e0ff 0%, #1bb5d6 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 22px 45px -20px rgba(27, 181, 214, 0.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guest-hero__cta:hover,
.guest-hero__cta:focus {
    transform: scale(1.005);
    box-shadow: 0 32px 65px -28px rgba(27, 181, 214, 0.65);
}

.guest-hero__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.guest-hero__cta-text {
    display: grid;
    gap: 2px;
    line-height: 1.2;
}

.guest-hero__cta-text small {
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    opacity: 0.85;
}

.guest-hero__note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.guest-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-accent);
    box-shadow: 0 0 0 8px rgba(123, 202, 227, 0.15);
}

.guest-hero__illustration {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    animation: guest-hero-illustration 0.9s cubic-bezier(0.22, 0.65, 0.36, 1) 0.18s both;
    overflow: visible;
}

.guest-hero__illustration svg {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    transform-origin: center;
    transform: translate(-10%, -4%) scale(1.18);
}

.guest-hero__illustration-chart,
.guest-hero__illustration-screen,
.guest-hero__illustration-bot,
.guest-hero__illustration-stars {
    animation: guest-hero-floating 12s ease-in-out infinite;
    transform-origin: center;
}

.guest-hero__illustration-screen {
    animation-duration: 10s;
    animation-delay: 0.4s;
}

.guest-hero__illustration-bot {
    animation-duration: 14s;
    animation-delay: 0.8s;
}

.guest-hero__illustration-stars {
    animation-duration: 18s;
    animation-delay: 1.2s;
}

.guest-hero__loop {
    position: absolute;
    left: 50%;
    bottom: clamp(-32px, -4vw, -10px);
    transform: translateX(-50%);
    width: min(1200px, 94vw);
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.guest-hero__loop-track {
    display: flex;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(18px, 3vw, 28px) 0;
    animation: guest-hero-loop 28s linear infinite;
}

.guest-hero__loop-track::after {
    content: attr(data-duplicate);
}

.guest-hero__loop-item {
    flex: none;
    padding: clamp(16px, 3vw, 22px) clamp(24px, 4vw, 40px);
    border-radius: 999px;
    background: rgba(77, 126, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(77, 126, 255, 0.2);
    color: #1d6fd1;
    font-weight: var(--font-weight-semibold);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 18px 45px -28px rgba(27, 181, 214, 0.55);
}

.guest-hero__loop-item::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 14px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.85;
}

/* -------------------------------------------------------------------------- */
/* Home landing                                                              */
/* -------------------------------------------------------------------------- */

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: max(640px, calc(100vh - 160px));
    display: flex;
    align-items: center;
    background: linear-gradient(148deg, #eef5ff 0%, #ffffff 44%, #f4f8ff 100%);
    padding: clamp(68px, 12vw, 150px) 0 clamp(56px, 10vw, 110px);
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 16% 24%, rgba(123, 202, 227, 0.18), transparent 55%),
        radial-gradient(circle at 86% 20%, rgba(77, 126, 255, 0.16), transparent 60%);
    pointer-events: none;
    animation: guest-hero-gradient 18s linear infinite;
}

.home-hero__background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-hero__glow {
    position: absolute;
    width: clamp(240px, 50vw, 520px);
    height: clamp(240px, 50vw, 520px);
    border-radius: 50%;
    filter: blur(82px);
    opacity: 0.55;
    animation: guest-hero-pulse 12s ease-in-out infinite;
}

.home-hero__glow--left {
    top: -160px;
    left: clamp(-220px, -15vw, -120px);
    background: rgba(123, 202, 227, 0.55);
}

.home-hero__glow--right {
    bottom: -200px;
    right: clamp(-200px, -14vw, -110px);
    background: rgba(77, 126, 255, 0.45);
    animation-delay: 2.6s;
}

.home-hero__orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(77, 126, 255, 0.22);
    animation: guest-hero-orbit 22s linear infinite;
}

.home-hero__orbit--lg {
    width: clamp(420px, 48vw, 560px);
    height: clamp(420px, 48vw, 560px);
    top: 12%;
    left: 8%;
}

.home-hero__orbit--sm {
    width: clamp(240px, 34vw, 340px);
    height: clamp(240px, 34vw, 340px);
    bottom: 16%;
    right: 12%;
    animation-duration: 30s;
}

.home-hero__particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: guest-hero-particle 11s ease-in-out infinite;
}

.home-hero__particle--one { top: 20%; right: 26%; animation-delay: 0.8s; }
.home-hero__particle--two { bottom: 22%; left: 24%; animation-delay: 1.6s; }
.home-hero__particle--three { top: 8%; left: 48%; animation-delay: 2.4s; }

.home-hero__wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(48px, 8vw, 100px);
    align-items: center;
}

.home-hero__content {
    display: grid;
    gap: clamp(16px, 4vw, 28px);
    max-width: 560px;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(77, 126, 255, 0.12);
    color: #1d6fd1;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
}

.home-hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.home-hero__title {
    margin: 0;
    font-size: clamp(2.7rem, 4.6vw, 3.8rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
}

.home-hero__subtitle {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.home-hero__meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.home-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-hero__meta-item i {
    color: #1d6fd1;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 18px 28px;
    border-radius: var(--radius-4);
    background: linear-gradient(135deg, #47e0ff 0%, #1bb5d6 100%);
    color: #fff;
    font-weight: var(--font-weight-semibold);
    font-size: 1.05rem;
    box-shadow: 0 22px 45px -20px rgba(27, 181, 214, 0.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-hero__cta:hover,
.home-hero__cta:focus {
    transform: scale(1.005);
    box-shadow: 0 32px 65px -28px rgba(27, 181, 214, 0.65);
}

.home-hero__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.home-hero__cta-text {
    display: grid;
    gap: 2px;
    line-height: 1.2;
}

.home-hero__cta-text small {
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    opacity: 0.85;
}

.home-hero__cta--ghost {
    background: rgba(255, 255, 255, 0.18);
    color: var(--color-text-primary);
    box-shadow: 0 22px 45px -32px rgba(15, 32, 62, 0.35);
}

.home-hero__cta--ghost:hover,
.home-hero__cta--ghost:focus {
    background: rgba(255, 255, 255, 0.28);
}

.home-hero__note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.home-hero__note a {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

.home-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-accent);
    box-shadow: 0 0 0 8px rgba(123, 202, 227, 0.15);
}

.home-hero__illustration {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    overflow: visible;
    animation: guest-hero-illustration 0.9s cubic-bezier(0.22, 0.65, 0.36, 1) 0.18s both;
}

.home-hero__illustration svg {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center;
    transform: translate(-8%, -4%) scale(1.18);
}

.home-hero__illustration-grid,
.home-hero__illustration-screen,
.home-hero__illustration-radar,
.home-hero__illustration-stars {
    animation: guest-hero-floating 12s ease-in-out infinite;
    transform-origin: center;
}

.home-hero__illustration-screen { animation-duration: 10s; animation-delay: 0.6s; }
.home-hero__illustration-radar { animation-duration: 14s; animation-delay: 1s; }
.home-hero__illustration-stars { animation-duration: 18s; animation-delay: 1.4s; }

.home-hero__loop {
    position: absolute;
    bottom: clamp(-36px, -5vw, -16px);
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 94vw);
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.home-hero__loop-track {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(18px, 3vw, 28px) 0;
    animation: guest-hero-loop 32s linear infinite;
}

.home-hero__loop-item {
    flex: none;
    padding: clamp(16px, 3vw, 22px) clamp(24px, 4vw, 40px);
    border-radius: 999px;
    background: rgba(77, 126, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(77, 126, 255, 0.2);
    color: #1d6fd1;
    font-weight: var(--font-weight-semibold);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 18px 45px -28px rgba(27, 181, 214, 0.55);
}

.home-hero__loop-item::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 12px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.85;
}

.home-panels {
    position: relative;
    padding: clamp(64px, 10vw, 110px) 0;
    background: linear-gradient(180deg, rgba(123, 202, 227, 0.12) 0%, rgba(123, 202, 227, 0.05) 100%);
}

.home-panels__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(24px, 4vw, 32px);
}

.home-panel {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-4);
    border: 1px solid rgba(123, 202, 227, 0.18);
    box-shadow: 0 24px 55px -28px rgba(15, 32, 62, 0.2);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-panel:hover,
.home-panel:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 36px 75px -32px rgba(15, 32, 62, 0.25);
}

.home-panel__header {
    padding: clamp(20px, 3vw, 28px) clamp(24px, 4vw, 32px);
    display: grid;
    gap: 6px;
}

.home-panel__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.home-panel__title i {
    font-size: 1.1em;
    color: #1d6fd1;
}

.home-panel__subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.home-panel__embed {
    width: 100%;
    min-height: clamp(360px, 36vw, 460px);
    border: none;
    background: var(--color-bg-muted);
}

.home-panel__media {
    position: relative;
    padding: clamp(20px, 3vw, 32px);
    background: linear-gradient(135deg, rgba(77, 126, 255, 0.1) 0%, rgba(123, 202, 227, 0.2) 100%);
}

.home-panel__video {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-3);
    border: 1px solid rgba(77, 126, 255, 0.18);
    box-shadow: 0 18px 45px -28px rgba(15, 32, 62, 0.22);
    background: #000;
}

.home-stats {
    position: relative;
    padding: clamp(60px, 10vw, 100px) 0;
}

.home-stats__wrapper {
    display: grid;
    gap: clamp(24px, 4vw, 32px);
}

.home-stats__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(20px, 3vw, 28px);
}

.home-stat-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-4);
    border: 1px solid rgba(77, 126, 255, 0.16);
    box-shadow: 0 24px 55px -28px rgba(15, 32, 62, 0.2);
    padding: clamp(24px, 4vw, 32px);
    display: grid;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-stat-card:hover,
.home-stat-card:focus-within {
    transform: scale(1.005);
    box-shadow: 0 36px 75px -32px rgba(15, 32, 62, 0.25);
}

.home-stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #47e0ff 0%, #1d6fd1 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.home-stat-card__icon.is-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #d93535 100%);
}

.home-stat-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
}

.home-stat-card__value {
    margin: 0;
    font-size: 2.4rem;
    font-weight: var(--font-weight-bold);
}

.home-stat-card__value--muted {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.home-stat-card__meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.home-stat-card__list {
    display: grid;
    gap: 6px;
    font-size: 0.95rem;
}

.home-table {
    position: relative;
    padding: clamp(72px, 12vw, 120px) 0 clamp(90px, 12vw, 140px);
    background: linear-gradient(180deg, rgba(123, 202, 227, 0.12) 0%, rgba(123, 202, 227, 0.05) 100%);
}

.home-table__wrapper {
    display: grid;
    gap: clamp(24px, 4vw, 32px);
}

.home-table__header {
    display: grid;
    gap: 6px;
}

.home-table__title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.home-table__title i {
    color: #1d6fd1;
}

.home-table__subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.home-table__scroll {
    border-radius: var(--radius-4);
    border: 1px solid rgba(77, 126, 255, 0.16);
    box-shadow: 0 24px 55px -30px rgba(15, 32, 62, 0.2);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
}

.home-table__grid {
    width: 100%;
    border-collapse: collapse;
}

.home-table__grid thead {
    background: rgba(77, 126, 255, 0.1);
}

.home-table__grid th,
.home-table__grid td {
    padding: clamp(14px, 2.4vw, 20px);
    text-align: left;
    border-bottom: 1px solid rgba(77, 126, 255, 0.12);
    font-size: 0.95rem;
}

.home-table__grid th {
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.home-table__grid tbody tr:last-child td {
    border-bottom: none;
}

.home-table__meta {
    display: block;
    color: var(--color-text-muted);
}

.home-table__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d6fd1;
    font-weight: var(--font-weight-semibold);
}

.home-table__link img {
    display: inline-block;
    border-radius: 4px;
}

@media (max-width: 1200px) {
    .home-hero__wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-hero__content {
        margin: 0 auto;
    }

    .home-hero__actions {
        justify-content: center;
    }

    .home-hero__illustration {
        max-width: 520px;
        margin: clamp(32px, 6vw, 48px) auto 0;
    }

    .home-hero__illustration svg {
        transform: translate(-6%, -3.5%) scale(1.16);
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: clamp(54px, 14vw, 88px) 0 clamp(44px, 12vw, 78px);
    }

    .home-hero__actions {
        gap: 12px;
    }

    .home-panel__embed {
        min-height: clamp(320px, 42vw, 420px);
    }

    .home-panel__media {
        padding: clamp(16px, 4vw, 24px);
    }

    .home-hero__loop {
        bottom: clamp(-28px, -6vw, -18px);
    }
}

@media (max-width: 640px) {
    .home-hero__title {
        font-size: clamp(2.2rem, 6vw, 2.6rem);
    }

    .home-hero__cta {
        width: 100%;
        justify-content: center;
    }

    .home-hero__illustration svg {
        transform: translate(-8%, -4.5%) scale(1.22);
    }

    .home-table__grid th,
    .home-table__grid td {
        padding: clamp(12px, 3vw, 16px);
        font-size: 0.9rem;
    }
}

.guest-features {
    position: relative;
    padding: clamp(60px, 10vw, 96px) 0 clamp(80px, 12vw, 140px);
    background: linear-gradient(180deg, rgba(123, 202, 227, 0.12) 0%, rgba(123, 202, 227, 0.05) 100%);
    backdrop-filter: blur(4px);
}

.guest-features::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(77, 126, 255, 0.12), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(71, 208, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.guest-features__wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(24px, 4vw, 32px);
    z-index: 1;
}

.guest-feature-card {
    position: relative;
    padding: clamp(24px, 4vw, 32px);
    border-radius: var(--radius-4);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 45px -24px rgba(15, 32, 62, 0.18);
    border: 1px solid rgba(123, 202, 227, 0.25);
    display: grid;
    gap: 16px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.guest-feature-card:hover,
.guest-feature-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 36px 65px -32px rgba(15, 32, 62, 0.25);
}

.guest-feature-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.guest-feature-card__icon--blue { background: linear-gradient(135deg, #4f9fd2 0%, #1d6fd1 100%); }
.guest-feature-card__icon--green { background: linear-gradient(135deg, #3fc983 0%, #2b995e 100%); }
.guest-feature-card__icon--purple { background: linear-gradient(135deg, #9b5cff 0%, #6a33c6 100%); }

.guest-feature-card__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: var(--font-weight-semibold);
}

.guest-feature-card__description {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@keyframes guest-hero-gradient {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -10px, 0) scale(1.02);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes guest-hero-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.75;
    }
}

@keyframes guest-hero-orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes guest-hero-particle {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.65;
    }
    50% {
        transform: translate3d(12px, -18px, 0);
        opacity: 1;
    }
}

@keyframes guest-hero-illustration {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes guest-hero-floating {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes guest-hero-loop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {
    .guest-hero {
        min-height: auto;
        padding: clamp(56px, 10vw, 96px) 0 clamp(48px, 10vw, 96px);
    }

    .guest-hero__wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .guest-hero__content {
        margin: 0 auto;
    }

    .guest-hero__actions {
        justify-items: center;
    }

    .guest-hero__illustration {
        margin: clamp(32px, 6vw, 48px) auto 0;
    }

    .guest-hero__note {
        text-align: left;
        max-width: 420px;
    }

    .guest-hero__loop {
        bottom: clamp(-24px, -5vw, -12px);
    }
}

@media (max-width: 640px) {
    .guest-hero {
        padding: clamp(48px, 12vw, 72px) 0 clamp(40px, 10vw, 60px);
    }

    .guest-hero__cta {
        width: 100%;
        padding: 16px 20px;
        justify-content: center;
    }

    .guest-hero__subtitle {
        font-size: 1.05rem;
    }

    .guest-hero__cta small {
        font-size: 0.8rem;
    }

    .guest-feature-card {
        text-align: center;
    }

    .guest-feature-card__icon {
        margin: 0 auto;
    }

    .guest-hero__loop-item {
        padding: 14px 22px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guest-hero::before,
    .guest-hero__background > *,
    .guest-hero__illustration > *,
    .guest-feature-card,
    .guest-hero__loop-track {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

[data-theme="dark"] .guest-hero {
    background: linear-gradient(150deg, #08101e 0%, #0f1b30 40%, #1c2b46 100%);
}

[data-theme="dark"] .guest-hero::before {
    background: radial-gradient(circle at 20% 24%, rgba(63, 139, 186, 0.28), transparent 55%),
        radial-gradient(circle at 76% 18%, rgba(69, 111, 212, 0.18), transparent 60%);
    opacity: 0.9;
}

[data-theme="dark"] .guest-hero__badge {
    background: rgba(77, 126, 255, 0.22);
    color: #8cd3ff;
}

[data-theme="dark"] .guest-hero__subtitle,
[data-theme="dark"] .guest-hero__note {
    color: rgba(233, 238, 255, 0.78);
}

[data-theme="dark"] .guest-hero__dot {
    box-shadow: 0 0 0 8px rgba(77, 126, 255, 0.12);
}

[data-theme="dark"] .guest-hero__illustration svg {
    filter: drop-shadow(0 28px 55px rgba(4, 12, 28, 0.55));
}

[data-theme="dark"] .guest-feature-card {
    background: rgba(12, 22, 42, 0.92);
    border-color: rgba(77, 126, 255, 0.18);
    box-shadow: 0 24px 55px -26px rgba(4, 12, 28, 0.55);
}

[data-theme="dark"] .guest-feature-card__description {
    color: rgba(233, 238, 255, 0.75);
}

[data-theme="dark"] .guest-hero__loop-item {
    background: rgba(77, 126, 255, 0.18);
    border-color: rgba(77, 126, 255, 0.32);
    color: #8cd3ff;
    box-shadow: 0 18px 45px -28px rgba(4, 12, 28, 0.55);
}

[data-theme="dark"] .guest-hero__loop-item::before {
    background: rgba(140, 211, 255, 0.9);
}

[data-theme="dark"] .guest-hero__loop {
    opacity: 0.88;
}

[data-theme="dark"] .guest-features {
    background: linear-gradient(180deg, rgba(20, 38, 70, 0.45) 0%, rgba(15, 27, 48, 0.65) 100%);
}

[data-theme="dark"] .guest-features::before {
    background: radial-gradient(circle at 30% 30%, rgba(69, 111, 212, 0.22), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(71, 208, 255, 0.18), transparent 60%);
}



.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
}

.btn-stack {
    display: inline-flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* -------------------------------------------------------------------------- */
/* Form controls                                                             */
/* -------------------------------------------------------------------------- */

input,
select,
textarea {
        width: 100%;
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-family-base);
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2);
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    transition: var(--transition-base);
}

input[type="file"] {
    position: relative;
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    background: var(--color-bg-muted);
    border: 1px dashed var(--color-border);
    color: var(--color-text-secondary);
}

input[type="file"]::file-selector-button {
    padding: var(--space-2) var(--space-3);
    border: none;
    border-radius: var(--radius-2);
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-family-base);
    cursor: pointer;
    transition: var(--transition-base);
    margin-right: var(--space-3);
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::file-selector-button:focus {
    background: var(--color-accent-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
        linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: var(--space-5);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.form-control {
        display: block;
        width: 100%;
}

.form-control-inline {
    width: auto;
    max-width: 70%;
    display: inline-block;
}

.form-row {
    display: grid;
    gap: var(--space-3);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.comment-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.comment-form__row--full {
    width: 100%;
    justify-content: space-between;
}

.comment-form__files {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.comment-form__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    justify-content: flex-end;
    width: 100%;
}

label {
    display: inline-flex;
    flex-direction: column;
    gap: var(--space-1);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
}

label:has(input[type="checkbox"]) {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

label:has(input[type="checkbox"]) > input[type="checkbox"] {
    margin-right: var(--space-1);
}

/* -------------------------------------------------------------------------- */
/* Tables                                                                    */
/* -------------------------------------------------------------------------- */

table {
        width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-3);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

th, td {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-divider);
    font-size: 0.95rem;
}

th {
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    background: rgba(123, 202, 227, 0.14);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--color-accent-soft);
}

.admin-table {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.admin-table th {
    background: rgba(123, 202, 227, 0.2);
}

.admin-table--compact th,
.admin-table--compact td {
    padding: var(--space-2) var(--space-3);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.table-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-2);
    font-size: 0.75rem;
    background: var(--color-bg-muted);
    color: var(--color-text-secondary);
}

/* -------------------------------------------------------------------------- */
/* Cards & panels                                                            */
/* -------------------------------------------------------------------------- */

.card {
    background: var(--color-bg-surface);
    border-radius: var(--radius-3);
    padding: var(--space-5);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    margin-top: 20px;
}

.card:hover {
    transform: scale(1.005);
    box-shadow: var(--shadow-strong);
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.card__title {
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
}

.card__body {
    display: grid;
    gap: var(--space-3);
}

.card__footer {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-divider);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* -------------------------------------------------------------------------- */
/* RP Sessions                                                                */
/* -------------------------------------------------------------------------- */

.rp-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.rp-toolbar__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.rp-toolbar__actions .btn {
    border-radius: 999px;
    padding: var(--space-2) var(--space-5);
}

.rp-data-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rp-card--stretch {
    min-width: 0;
}

.rp-card--full {
    grid-column: 1 / -1;
    margin-top: var(--space-5);
}

.table-responsive--shifts {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.table-responsive--shifts table {
    min-width: 640px;
}

.rp-data-panel .card__title {
    margin-bottom: var(--space-2);
}

.rp-data-panel__body {
    background: var(--color-bg-muted);
    border-radius: var(--radius-2);
    padding: var(--space-3);
    max-height: 320px;
    overflow: auto;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--color-text-primary);
    white-space: pre-wrap;
}

.modal.modal--wide .modal-content {
    width: min(960px, calc(100% - 2 * var(--space-6)));
}

.rp-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.rp-form__grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rp-form__group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-semibold);
}

.rp-form__group input,
.rp-form__group select,
.rp-form__group textarea {
    width: 100%;
    padding: var(--space-3);
    border-radius: var(--radius-2);
    border: 1px solid var(--color-border);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.rp-form__group textarea {
    min-height: 140px;
    resize: vertical;
}

.rp-form__group--checkbox label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.rp-form__group--checkbox input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
}

.rp-form__group--checkbox span {
    font-weight: var(--font-weight-semibold);
}

.rp-form__note {
    margin-top: var(--space-1);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.rp-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}

.rp-players-note {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: var(--space-5);
}

.rp-note {
    border-radius: var(--radius-3);
    padding: var(--space-4);
    background: var(--color-bg-muted);
    border: 2px solid transparent;
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.rp-note--rules {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
}

.rp-note--alerts {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.4);
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.rp-note__title {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.05rem;
}

.rp-note__list {
    margin: 0;
    padding-left: var(--space-4);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.rp-signup-info {
    margin-top: var(--space-3);
}

.rp-signup-info__task,
.rp-signup-info__type,
.rp-signup-info__notes {
    margin: 0;
}

@media (max-width: 768px) {
    .rp-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rp-note,
    .rp-note--alerts {
        padding: var(--space-3);
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .rp-players-note {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .rp-note__list {
        padding-left: var(--space-3);
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .card__body .rp-note,
    .card__body .rp-note--alerts {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .rp-note,
    .rp-note--alerts {
        padding: var(--space-2);
    }
    
    .rp-note__title {
        font-size: 0.95rem;
    }
    
    .rp-note__list {
        padding-left: var(--space-2);
        font-size: 0.9rem;
    }
}

.creator-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.creator-inline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: var(--transition-base);
}

.creator-inline__icon:hover {
    background: var(--color-accent);
    color: #fff;
}

.card__header--spread {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.shift-player {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: nowrap;
}

.shift-player--clickable {
    cursor: pointer;
}

.shift-player--clickable * {
    cursor: pointer;
}

.shift-player:has(a) {
    cursor: pointer;
}

.shift-player a {
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.shift-player a * {
    cursor: pointer;
}

.shift-player__privileges,
.shift-train {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-1);
}

.privilege-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
    transition: all 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.privilege-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.privilege-badge--prime {
    background: linear-gradient(135deg, #ffd200, #ff7b00);
    border-color: rgba(255, 216, 0, 0.5);
    color: #2b1600;
}

.privilege-badge--prime:hover {
    box-shadow: 0 4px 16px rgba(255, 216, 0, 0.4);
}

.privilege-badge--prime_plus {
    background: linear-gradient(135deg, #ff65a3, #7c5dfa);
    border-color: rgba(255, 101, 163, 0.4);
}

.privilege-badge--prime_plus:hover {
    box-shadow: 0 4px 16px rgba(255, 101, 163, 0.4);
}

.privilege-badge--default {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
}

.privilege-badge--default:hover {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.privilege-badge--gold {
    background: linear-gradient(135deg, #f7d07a, #f2a03d);
    border-color: rgba(247, 208, 122, 0.5);
    color: #372400;
}

.privilege-badge--gold:hover {
    box-shadow: 0 4px 16px rgba(247, 208, 122, 0.5);
}

.privilege-badge--elite {
    background: linear-gradient(135deg, #76b852, #8dc26f);
    border-color: rgba(118, 184, 82, 0.5);
    color: #0f2200;
}

.privilege-badge--elite:hover {
    box-shadow: 0 4px 16px rgba(118, 184, 82, 0.5);
}

.privilege-badge--shield {
    background: linear-gradient(135deg, #1d976c, #93f9b9);
    border-color: rgba(29, 151, 108, 0.5);
    color: #082d1a;
}

.privilege-badge--shield:hover {
    box-shadow: 0 4px 16px rgba(29, 151, 108, 0.5);
}

.privilege-badge--train {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    border-color: rgba(44, 83, 100, 0.6);
}

.privilege-badge--train:hover {
    box-shadow: 0 4px 16px rgba(44, 83, 100, 0.6);
}

.privilege-badge--admin {
    background: linear-gradient(135deg, #2c5364, #1d7796, #0a3547);
    border-color: rgba(29, 151, 108, 0.5);
    color: whitesmoke;
}

.privilege-badge--admin:hover {
    box-shadow: 0 4px 16px rgba(44, 83, 100, 0.6);
}

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

.assign-form {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.assign-form input[type="text"] {
    max-width: 160px;
    padding: var(--space-2);
    border-radius: var(--radius-2);
    border: 1px solid var(--color-border);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-size: 0.85rem;
}

.assign-form select {
    padding: var(--space-2);
}

.btn.btn-xs {
    padding: var(--space-1) var(--space-2);
    font-size: 0.8rem;
}

/* -------------------------------------------------------------------------- */
/* Status & badges                                                           */
/* -------------------------------------------------------------------------- */

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: 999px;
    font-size: 0.8rem;
    background: var(--color-bg-muted);
    color: var(--color-text-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-text-secondary);
}

.status-dot + span {
    margin-left: var(--space-2);
}

.status-online {
    background: var(--color-success);
}

.status-offline {
    background: var(--color-danger);
}

.status-warning {
    background: var(--color-warning);
}

.status-info {
    background: var(--color-info);
}

.status-text {
    font-weight: var(--font-weight-semibold);
}

.status-text--danger {
    color: var(--color-danger);
}

.status-text--success {
    color: var(--color-success-strong);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    background: var(--color-bg-muted);
    color: var(--color-text-secondary);
}

/* Когда badge находится внутри b или strong, он должен быть жирным */
b .badge, strong .badge,
b > .badge, strong > .badge,
b span.badge, strong span.badge,
b .badge-success, strong .badge-success,
b .badge-danger, strong .badge-danger,
b .badge-warning, strong .badge-warning,
b .badge-info, strong .badge-info,
b .badge-muted, strong .badge-muted {
    font-weight: var(--font-weight-bold) !important;
    text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
    letter-spacing: 0.3px;
}

.badge b,
.badge strong {
    font-weight: var(--font-weight-bold) !important;
    text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(63, 201, 131, 0.18);
    color: var(--color-success-strong);
}

.badge-danger {
    background: rgba(255, 92, 92, 0.18);
    color: var(--color-danger-strong);
}

.badge-warning {
    background: rgba(255, 179, 71, 0.22);
    color: var(--color-warning-strong);
}

.badge-info {
    background: rgba(79, 141, 252, 0.2);
    color: var(--color-info-strong);
}

.badge-muted {
    background: rgba(20, 33, 59, 0.08);
}

.is-danger {
    color: var(--color-danger-strong) !important;
}

.is-success {
    color: var(--color-success-strong) !important;
}

/* -------------------------------------------------------------------------- */
/* Modals                                                                    */
/* -------------------------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: var(--color-overlay);
    z-index: 1100;
}

.modal.is-open {
    display: grid;
}

.modal-content {
    width: min(640px, calc(100% - 2 * var(--space-6)));
    max-height: calc(100vh - 2 * var(--space-6));
    display: flex;
    flex-direction: column;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-4);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    animation: modalIn 0.25s ease;
}

.modal-header,
.modal-footer {
    padding: var(--space-4) var(--space-5);
    background: rgba(123, 202, 227, 0.12);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.modal-header {
    font-weight: var(--font-weight-bold);
}

.modal-body {
    padding: var(--space-5);
    display: grid;
    gap: var(--space-3);
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--color-border);
}

.close {
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: var(--transition-base);
}

.close:hover,
.close:focus {
    color: var(--color-text-primary);
}

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

/* -------------------------------------------------------------------------- */
/* Page specific                                                             */
/* -------------------------------------------------------------------------- */

.benefits__wrapper {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-4);
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.benefits__title {
        text-align: center;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
}

.benefits__cards {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: var(--space-6);
}

.benefits__card {
    background: var(--color-bg-muted);
    border-radius: var(--radius-3);
    padding: var(--space-5);
    display: grid;
    gap: var(--space-3);
        text-align: center;
    border: 1px solid var(--color-border);
}

.benefits__card-icon {
    font-size: 16px;
    color: var(--color-accent-strong);
    line-height: 1;
}

.benefits__card-title {
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
}

.benefits__card-subtitle {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.ban-list {
    margin-top: var(--space-7);
    display: grid;
    gap: var(--space-4);
}

.ban-list__table th,
.ban-list__table td {
    text-align: center;
    }
    
    .news-list {
    display: grid;
    gap: var(--space-4);
    }
    
    .news-item {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-3);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.news-item.title {
    font-weight: var(--font-weight-bold);
}

.news-title-large,
.stations-title-large {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: var(--font-weight-bold);
}

.embed-frame {
    width: 100%;
    min-height: 620px;
    border-radius: var(--radius-3);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.video-stream,
.stream-video {
    width: 100%;
    max-width: 768px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-3);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.stream-controls-table {
    width: 100%;
    max-width: 760px;
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.btn-grid--inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.inline-form {
    display: inline-flex;
    gap: var(--space-2);
}

.inline-grid {
    display: inline-grid;
    gap: var(--space-2);
}

.alert-card {
    padding: var(--space-5);
    border-radius: var(--radius-3);
        text-align: center;
    font-size: 1.4rem;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-soft);
    margin: var(--space-4) auto;
    width: min(540px, calc(100% - 2 * var(--space-4)));
}

.alert-card--danger {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.16), rgba(139, 0, 0, 0.4));
    color: #fff;
}

.alert-card--success {
    background: linear-gradient(135deg, rgba(0, 210, 0, 0.16), rgba(0, 110, 0, 0.4));
    color: #fff;
}

.profile-data {
    display: none;
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-end;
}

.profile-data.active {
    display: flex;
}

.profile-sid {
    font-weight: var(--font-weight-semibold);
}


.profile-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.profile-link__icon {
    width: 24px;
    height: 24px;
}

.profile-link__value {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    height: 100%;
}

.gradient-bg {
    background: var(--color-gradient-primary);
    color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Utilities                                                                 */
/* -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 0.85rem; }
.text-accent { color: var(--color-accent-strong); }

.d-none { display: none !important; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-3); }
.mt-3 { margin-top: var(--space-4); }
.mt-4 { margin-top: var(--space-6); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-3); }
.mb-3 { margin-bottom: var(--space-4); }
.mb-4 { margin-bottom: var(--space-6); }

.mx-auto { margin-left: auto; margin-right: auto; }
.m-0 { margin: 0; }
.m-1 { margin: var(--space-2); }
.m-2 { margin: var(--space-3); }
.m-3 { margin: var(--space-4); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-2); }
.p-2 { padding: var(--space-3); }
.p-3 { padding: var(--space-4); }
.p-4 { padding: var(--space-6); }

.w-100 { width: 100%; }
.w-auto { width: auto; }

.border {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2);
}

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-strong { box-shadow: var(--shadow-strong); }

.bg-surface { background: var(--color-bg-surface); }
.bg-muted { background: var(--color-bg-muted); }
.bg-accent-soft { background: var(--color-accent-soft); }

.text-success { color: var(--color-success-strong); }
.text-danger { color: var(--color-danger-strong); }
.text-warning { color: var(--color-warning-strong); }
.text-info { color: var(--color-info-strong); }

.edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-2);
    border: 1px solid transparent;
    background: var(--color-bg-muted);
    color: var(--color-text-primary);
        cursor: pointer;
    transition: var(--transition-base);
}

.edit-button:hover,
.edit-button:focus {
    background: var(--color-accent);
    color: #fff;
}

.edit-button--red {
    background: rgba(255, 92, 92, 0.15);
    color: var(--color-danger-strong);
}

.edit-button--green {
    background: rgba(63, 201, 131, 0.15);
    color: var(--color-success-strong);
}

.edit-button--red:hover,
.edit-button--green:hover,
.edit-button--red:focus,
.edit-button--green:focus {
    color: #fff;
}

.header__profile-picture {
    width: 32px;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .wrapper {
        padding: 0 var(--space-4);
    }

    .header__wrapper {
        flex-wrap: wrap;
    }

    .intro__title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .wrapper {
        padding: 0 var(--space-3);
    }

    .header__section {
        flex-wrap: wrap;
    }

    .intro {
        padding: calc(var(--space-8) + 20px) 0 var(--space-5);
    }

    .intro__title {
        font-size: 2rem;
    }

    .card {
        padding: var(--space-4);
    }

    table,
    .admin-table {
        display: block;
        overflow-x: auto;
    }

    .theme-toggle {
        right: 16px;
        bottom: 24px;
        position: fixed;
    }
}

@media (max-width: 560px) {
    .header__wrapper {
        padding: var(--space-3) var(--space-4);
    }

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

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

    .embed-frame {
        min-height: 480px;
    }
}

.header.is-scrolled {
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

.header__subsection.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.card--soft {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-3);
    padding: var(--space-4);
    box-shadow: var(--shadow-soft);
}

.comment-card {
    width: 100%;
    border-radius: var(--radius-3);
    border: 1px solid var(--color-border);
    margin-top: var(--space-2);
    background: var(--color-bg-secondary);
    box-shadow: var(--shadow-soft);
        overflow: hidden;
    }
    
.comment-card td {
    padding: var(--space-3);
    vertical-align: top;
    border: none;
}

.comment-meta {
    width: 260px;
    border-right: 1px solid var(--color-divider);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: space-between;
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-primary);
    width: 100%;
}

.comment-author {
    border-right: 1px solid var(--color-divider);
    font-size: 0.85rem;
    display: flex;
    width: 250px;
    height: 100%;
    flex-direction: column;
    gap: var(--space-3);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-3);
}

.comment-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.comment-attachment {
    width: 128px;
    border-radius: var(--radius-2);
    border: 4px solid var(--color-border);
    padding: var(--space-2);
    background: var(--color-bg-secondary);
}

.monitor-row {
    transition: background-color 0.3s ease;
}

.monitor-row.is-selected,
.monitor-row[style*="background-color"] {
    background: rgba(255, 176, 0, 0.2);
    }

/* tooltip support for checkbox title */
input[type="checkbox"][title] {
    position: relative;
}

input[type="checkbox"][title]:hover::after,
input[type="checkbox"][title]:focus::after,
input[type="checkbox"][title]:active::after {
    content: attr(title);
    position: absolute;
    top: -38px;
    left: 0;
    transform: translateX(-50%);
    background: rgba(21, 33, 59, 0.92);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2000;
}

input[type="checkbox"][title]:hover::before,
input[type="checkbox"][title]:focus::before,
input[type="checkbox"][title]:active::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(21, 33, 59, 0.92) transparent transparent transparent;
    z-index: 2000;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    justify-content: flex-start;
    justify-self: start;
    white-space: nowrap;
}

.checkbox-inline > input[type="checkbox"] {
    margin: 0;
    order: 1;
    }

.checkbox-inline--push-end {
    width: 100%;
    justify-content: flex-end;
    justify-self: end;
    text-align: right;
}

.checkbox-inline--reverse {
    flex-direction: row-reverse;
}

[data-theme="dark"] .home-hero {
    background: linear-gradient(148deg, #08101e 0%, #0f1b30 44%, #1c2b46 100%);
}

[data-theme="dark"] .home-hero::before {
    background: radial-gradient(circle at 16% 24%, rgba(63, 139, 186, 0.28), transparent 55%),
        radial-gradient(circle at 86% 20%, rgba(69, 111, 212, 0.18), transparent 60%);
}

[data-theme="dark"] .home-hero__badge {
    background: rgba(77, 126, 255, 0.24);
    color: #8cd3ff;
}

[data-theme="dark"] .home-hero__subtitle,
[data-theme="dark"] .home-hero__meta,
[data-theme="dark"] .home-hero__note {
    color: rgba(233, 238, 255, 0.78);
}

[data-theme="dark"] .home-hero__cta--ghost {
    background: rgba(18, 32, 56, 0.65);
    color: rgba(233, 238, 255, 0.9);
    box-shadow: 0 24px 55px -32px rgba(4, 12, 28, 0.45);
}

[data-theme="dark"] .home-hero__cta--ghost:hover,
[data-theme="dark"] .home-hero__cta--ghost:focus {
    background: rgba(18, 32, 56, 0.78);
}

[data-theme="dark"] .home-hero__note a {
    color: rgba(233, 238, 255, 0.92);
}

[data-theme="dark"] .home-hero__dot {
    box-shadow: 0 0 0 8px rgba(77, 126, 255, 0.18);
}

[data-theme="dark"] .home-hero__loop-item {
    background: rgba(77, 126, 255, 0.18);
    border-color: rgba(77, 126, 255, 0.26);
    color: #8cd3ff;
    box-shadow: 0 18px 45px -28px rgba(4, 12, 28, 0.55);
}

[data-theme="dark"] .home-hero__loop-item::before {
    background: rgba(140, 211, 255, 0.9);
}

[data-theme="dark"] .home-panels {
    background: linear-gradient(180deg, rgba(20, 38, 70, 0.45) 0%, rgba(15, 27, 48, 0.65) 100%);
}

[data-theme="dark"] .home-panel {
    background: rgba(12, 22, 42, 0.92);
    border-color: rgba(77, 126, 255, 0.2);
    box-shadow: 0 28px 65px -32px rgba(4, 12, 28, 0.55);
}

[data-theme="dark"] .home-panel__subtitle {
    color: rgba(233, 238, 255, 0.65);
}

[data-theme="dark"] .home-panel__media {
    background: linear-gradient(135deg, rgba(77, 126, 255, 0.18) 0%, rgba(123, 202, 227, 0.26) 100%);
}

[data-theme="dark"] .home-stats {
    background: linear-gradient(180deg, rgba(18, 34, 60, 0.42) 0%, rgba(15, 27, 48, 0.58) 100%);
}

[data-theme="dark"] .home-stat-card {
    background: rgba(12, 22, 42, 0.92);
    border-color: rgba(77, 126, 255, 0.18);
    box-shadow: 0 24px 55px -32px rgba(4, 12, 28, 0.55);
}

[data-theme="dark"] .home-stat-card__meta,
[data-theme="dark"] .home-stat-card__list span {
    color: rgba(233, 238, 255, 0.7);
}

[data-theme="dark"] .home-table {
    background: linear-gradient(180deg, rgba(18, 34, 60, 0.4) 0%, rgba(12, 22, 40, 0.6) 100%);
}

[data-theme="dark"] .home-table__scroll {
    background: rgba(12, 22, 42, 0.92);
    border-color: rgba(77, 126, 255, 0.22);
    box-shadow: 0 24px 55px -32px rgba(4, 12, 28, 0.6);
}

[data-theme="dark"] .home-table__grid thead {
    background: rgba(77, 126, 255, 0.24);
}

[data-theme="dark"] .home-table__grid th,
[data-theme="dark"] .home-table__grid td,
[data-theme="dark"] .home-table__meta {
    color: rgba(233, 238, 255, 0.82);
    border-bottom-color: rgba(77, 126, 255, 0.22);
}

[data-theme="dark"] .home-table__link {
    color: #8cd3ff;
}

/* -------------------------------------------------------------------------- */
/* Drag and Drop для редактора смен                                          */
/* -------------------------------------------------------------------------- */

.shift-editor-row {
    transition: background-color 0.2s ease;
}

.shift-editor-row.dragging {
    opacity: 0.5;
    background-color: var(--color-bg-muted);
}

.shift-editor-row.drag-over {
    border-top: 2px solid var(--color-accent);
}

.shift-drag-handle {
    cursor: move !important;
    user-select: none;
}

.shift-drag-handle:hover {
    color: var(--color-accent) !important;
}

.shift-drag-handle:active {
    cursor: grabbing !important;
}