/* ==================================================
   HELHEIM — ВСПЛЫВАЮЩАЯ КАРТОЧКА ПОЛЬЗОВАТЕЛЯ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-user-popover {
    position: relative;
    width: min(100%, 330px);
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(239, 51, 69, 0.16);
    border-radius: 11px;
    color: #c9c9d1;
    background:
        linear-gradient(145deg, rgba(28, 28, 34, 0.98), rgba(14, 14, 18, 0.99));
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.helheim-user-popover::before {
    content: "";
    position: absolute;
    top: 0;
    right: 12%;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d9192f, transparent);
    box-shadow: 0 0 18px rgba(217, 25, 47, 0.42);
}

.helheim-user-popover__header {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.helheim-user-popover__avatar-wrap {
    position: relative;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.helheim-user-popover__avatar {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 2px solid rgba(239, 51, 69, 0.28);
    border-radius: 50%;
    background: #111116;
    box-shadow:
        0 0 0 4px rgba(215, 25, 41, 0.035),
        0 8px 24px rgba(0, 0, 0, 0.28);
}


.helheim-user-popover__identity {
    min-width: 0;
    flex: 1;
}

.helheim-user-popover__kicker {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-user-popover__identity h4 {
    margin: 0 !important;
    overflow: hidden;
    color: #f0f0f4;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-user-popover__groups {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.helheim-user-popover__groups .ui.label {
    margin: 0 !important;
    font-size: 7px !important;
}

.helheim-user-popover__guest {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: #8d8d97;
    background: rgba(255, 255, 255, 0.025);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.helheim-user-popover__guest i {
    margin: 0;
}

.helheim-user-popover__divider {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px 0 10px;
}

.helheim-user-popover__divider span {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(239, 51, 69, 0.18));
}

.helheim-user-popover__divider span:last-child {
    background: linear-gradient(90deg, rgba(239, 51, 69, 0.18), transparent);
}

.helheim-user-popover__divider i {
    margin: 0;
    color: rgba(239, 51, 69, 0.58);
    font-size: 8px;
}

.helheim-user-popover__stats {
    display: grid;
    gap: 4px;
}

.helheim-user-popover__stat {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.012);
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.helheim-user-popover__stat:hover {
    border-color: rgba(239, 51, 69, 0.12);
    background: rgba(215, 25, 41, 0.025);
}

.helheim-user-popover__stat-icon {
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.15);
    border-radius: 7px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.04);
}

.helheim-user-popover__stat-icon i {
    margin: 0;
    font-size: 9px;
}

.helheim-user-popover__stat-label {
    min-width: 0;
    overflow: hidden;
    color: #777782;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-user-popover__stat-value {
    max-width: 125px;
    overflow: hidden;
    color: #ededf1;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.35;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .helheim-user-popover {
        width: 100%;
        padding: 14px;
    }

    .helheim-user-popover__avatar-wrap,
    .helheim-user-popover__avatar {
        width: 48px;
        height: 48px;
    }

    .helheim-user-popover__avatar-wrap {
        flex-basis: 48px;
    }

    .helheim-user-popover__identity h4 {
        font-size: 13px !important;
    }

    .helheim-user-popover__stat {
        grid-template-columns: 27px minmax(0, 1fr);
    }

    .helheim-user-popover__stat-value {
        grid-column: 2;
        max-width: none;
        text-align: left;
    }
}

/* ==================================================
   HELHEIM — МОДАЛЬНОЕ ОКНО РЕАКЦИЙ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-reactions-modal {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background: rgba(16, 16, 20, 0.96);
}

.helheim-reactions-modal__tabs {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(135deg, rgba(112, 4, 18, 0.11), rgba(255, 255, 255, 0.012));
    scrollbar-width: thin;
}

.helheim-reactions-modal__tab {
    display: inline-flex !important;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 11px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #888892 !important;
    background: transparent !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.helheim-reactions-modal__tab:hover {
    border-color: rgba(239, 51, 69, 0.16) !important;
    color: #fff !important;
    background: rgba(215, 25, 41, 0.04) !important;
}

.helheim-reactions-modal__tab.active {
    border-color: rgba(239, 51, 69, 0.28) !important;
    color: #fff !important;
    background: rgba(215, 25, 41, 0.09) !important;
    box-shadow: inset 0 0 0 1px rgba(239, 51, 69, 0.04);
}

.helheim-reactions-modal__tab-icon {
    display: inline-flex;
    min-width: 18px;
    align-items: center;
    justify-content: center;
}

.helheim-reactions-modal__tab-icon img,
.helheim-reactions-modal__reaction img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.helheim-reactions-modal__tab-name {
    white-space: nowrap;
}

.helheim-reactions-modal__tab-count {
    display: inline-flex;
    min-width: 22px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 999px;
    color: #aaaab3;
    background: rgba(255, 255, 255, 0.025);
    font-size: 8px;
    font-weight: 900;
}

.helheim-reactions-modal__tab.active .helheim-reactions-modal__tab-count {
    border-color: rgba(239, 51, 69, 0.22);
    color: #fff;
    background: rgba(215, 25, 41, 0.08);
}

.helheim-reactions-modal__panels {
    background: rgba(255, 255, 255, 0.008);
}

.helheim-reactions-modal__panel {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.helheim-reactions-modal__users {
    display: grid;
    max-height: min(520px, 65vh);
    overflow-y: auto;
    padding: 9px;
    scrollbar-width: thin;
}

.helheim-reactions-modal__user {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 8px;
    transition: border-color .2s ease, background .2s ease;
}

.helheim-reactions-modal__user:last-child {
    border-bottom-color: transparent;
}

.helheim-reactions-modal__user:hover {
    border-bottom-color: rgba(239, 51, 69, 0.08);
    background: rgba(215, 25, 41, 0.028);
}

.helheim-reactions-modal__profile {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 10px;
    color: #d6d6dd !important;
    text-decoration: none !important;
}

.helheim-reactions-modal__avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    border: 2px solid rgba(239, 51, 69, 0.22);
    border-radius: 50%;
    background: #111116;
}

.helheim-reactions-modal__identity {
    display: block;
    min-width: 0;
}

.helheim-reactions-modal__nickname {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #ededf1;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.helheim-reactions-modal__groups {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-left: 5px;
    vertical-align: middle;
}

.helheim-reactions-modal__groups .ui.label {
    margin: 0 !important;
    font-size: 7px !important;
}

.helheim-reactions-modal__meta {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.helheim-reactions-modal__reaction {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border: 1px solid rgba(239, 51, 69, 0.16);
    border-radius: 7px;
    background: rgba(215, 25, 41, 0.04);
}

.helheim-reactions-modal__time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666670;
    font-size: 7px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.helheim-reactions-modal__time i {
    margin: 0;
    color: #ef3345;
}

@media (max-width: 600px) {
    .helheim-reactions-modal__tabs {
        padding: 7px;
    }

    .helheim-reactions-modal__tab {
        min-height: 36px;
        padding: 8px 9px !important;
    }

    .helheim-reactions-modal__users {
        padding: 7px;
    }

    .helheim-reactions-modal__user {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .helheim-reactions-modal__meta {
        width: 100%;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        padding-left: 48px;
        text-align: left;
    }
}

@media (max-width: 390px) {
    .helheim-reactions-modal__groups {
        display: flex;
        margin: 4px 0 0;
        flex-wrap: wrap;
    }

    .helheim-reactions-modal__meta {
        padding-left: 0;
    }
}


/* ==================================================
   HELHEIM — ТАБЛИЦЫ ЛИДЕРОВ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-leaderboards-page {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 0 15px 34px;
}

.helheim-leaderboards-page__heading {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px 22px;
    border: 1px solid rgba(239, 51, 69, 0.16);
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(110, 4, 18, 0.14), rgba(255, 255, 255, 0.015)),
        rgba(15, 15, 19, 0.92);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.helheim-leaderboards-page__kicker {
    display: block;
    margin-bottom: 6px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.helheim-leaderboards-page__heading h1 {
    margin: 0 !important;
    color: #f3f3f6 !important;
    font-size: clamp(24px, 3.2vw, 35px) !important;
    font-weight: 900 !important;
    line-height: 1.15;
}

.helheim-leaderboards-page__heading p {
    max-width: 650px;
    margin: 8px 0 0 !important;
    color: #7f7f89;
    font-size: 10px;
    line-height: 1.6;
}

.helheim-leaderboards-page__heading-icon,
.helheim-leaderboard-panel__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.24);
    border-radius: 12px;
    color: #ef3345;
    background:
        radial-gradient(circle, rgba(215, 25, 41, 0.11), rgba(215, 25, 41, 0.025));
}

.helheim-leaderboards-page__heading-icon i,
.helheim-leaderboard-panel__icon i {
    margin: 0;
    font-size: 18px;
}

.helheim-leaderboards-layout.ui.grid {
    margin: 0 -7px !important;
}

.helheim-leaderboards-layout.ui.grid > .row {
    padding: 0 !important;
}

.helheim-leaderboards-layout.ui.grid > .row > .column {
    padding: 0 7px !important;
}

.helheim-leaderboards-tabs,
.helheim-leaderboard-panel,
.helheim-leaderboards-empty-state {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 11px;
    background: rgba(17, 17, 21, 0.94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.helheim-leaderboards-tabs__head,
.helheim-leaderboard-panel__head {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.12), rgba(255, 255, 255, 0.012));
}

.helheim-leaderboards-tabs__head > span,
.helheim-leaderboard-panel__head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-leaderboards-tabs__head strong {
    display: block;
    color: #ededf1;
    font-size: 13px;
    font-weight: 900;
}

.helheim-leaderboards-tabs__list {
    display: grid;
    gap: 5px;
    padding: 9px;
}

.helheim-leaderboards-tab {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #aaaab3 !important;
    background: transparent;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-leaderboards-tab:hover,
.helheim-leaderboards-tab.active {
    border-color: rgba(239, 51, 69, 0.17);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.045);
    transform: translateX(2px);
}

.helheim-leaderboards-tab__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.16);
    border-radius: 8px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.04);
}

.helheim-leaderboards-tab__icon i,
.helheim-leaderboards-tab__arrow {
    margin: 0;
}

.helheim-leaderboards-tab__content {
    min-width: 0;
}

.helheim-leaderboards-tab__content strong {
    display: block;
    overflow: hidden;
    color: inherit;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-leaderboards-tab__content small {
    display: block;
    margin-top: 3px;
    color: #62626c;
    font-size: 7px;
    font-weight: 700;
}

.helheim-leaderboards-tab__arrow {
    color: #55555e;
    font-size: 8px;
}

.helheim-leaderboard-panel__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.25;
}

.helheim-leaderboard-panel__body {
    padding: 11px;
}

.helheim-leaderboard-list {
    margin: 0 !important;
    padding: 0 !important;
    counter-reset: helheim-rank;
    list-style: none !important;
}

.helheim-leaderboard-entry {
    margin: 0 0 7px !important;
    counter-increment: helheim-rank;
    list-style: none !important;
}

.helheim-leaderboard-entry:last-child {
    margin-bottom: 0 !important;
}

.helheim-leaderboard-entry__link {
    display: grid;
    grid-template-columns: 38px 42px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    min-height: 66px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 9px;
    color: #c8c8d0 !important;
    background: rgba(255, 255, 255, 0.014);
    text-decoration: none !important;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-leaderboard-entry__link:hover {
    border-color: rgba(239, 51, 69, 0.18);
    background: rgba(215, 25, 41, 0.027);
    transform: translateY(-1px);
}

.helheim-leaderboard-entry__rank {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    color: #777782;
    background: rgba(255, 255, 255, 0.02);
    font-size: 10px;
    font-weight: 900;
}

.helheim-leaderboard-entry__rank::before {
    content: counter(helheim-rank);
}

.helheim-leaderboard-entry:nth-child(1) .helheim-leaderboard-entry__rank {
    border-color: rgba(236, 194, 78, 0.35);
    color: #f2d579;
    background: rgba(168, 125, 19, 0.1);
    box-shadow: 0 0 0 4px rgba(236, 194, 78, 0.025);
}

.helheim-leaderboard-entry:nth-child(2) .helheim-leaderboard-entry__rank {
    border-color: rgba(187, 194, 205, 0.3);
    color: #d4d9e0;
    background: rgba(139, 146, 158, 0.09);
}

.helheim-leaderboard-entry:nth-child(3) .helheim-leaderboard-entry__rank {
    border-color: rgba(192, 121, 70, 0.3);
    color: #d89b70;
    background: rgba(139, 75, 31, 0.09);
}

.helheim-leaderboard-entry__avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid rgba(239, 51, 69, 0.22);
    border-radius: 50%;
    background: #111116;
}

.helheim-leaderboard-entry__player {
    display: block;
    min-width: 0;
}

.helheim-leaderboard-entry__username {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #ededf1;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.helheim-leaderboard-entry__groups {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-left: 5px;
    vertical-align: middle;
}

.helheim-leaderboard-entry__groups .ui.label {
    margin: 0 !important;
    font-size: 7px !important;
}

.helheim-leaderboard-entry__updated {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 5px;
    color: #686872;
    font-size: 7px;
    font-weight: 700;
}

.helheim-leaderboard-entry__updated i {
    margin: 0;
    color: #ef3345;
}

.helheim-leaderboard-entry__value {
    display: block;
    min-width: 92px;
    text-align: right;
}

.helheim-leaderboard-entry__value small {
    display: block;
    margin-bottom: 3px;
    color: #62626c;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.helheim-leaderboard-entry__value strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.helheim-leaderboards-empty-state {
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px 20px;
    border-style: dashed;
    color: #898993;
    text-align: center;
}

.helheim-leaderboard-panel[style*="display: block"] ~ .helheim-leaderboards-empty-state,
.helheim-leaderboard-panel[style*="display:block"] ~ .helheim-leaderboards-empty-state,
.helheim-leaderboard-panel:not([style*="display: none"]) ~ .helheim-leaderboards-empty-state {
    display: none;
}

.helheim-leaderboards-empty-state__icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid rgba(239, 51, 69, 0.2);
    border-radius: 15px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.05);
}

.helheim-leaderboards-empty-state__icon i {
    margin: 0;
    font-size: 21px;
}

.helheim-leaderboards-empty-state strong {
    color: #ededf1;
    font-size: 13px;
}

.helheim-leaderboards-empty-state p {
    margin: 7px 0 0 !important;
    color: #70707a;
    font-size: 9px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .helheim-leaderboards-layout__sidebar,
    .helheim-leaderboards-layout__content {
        width: 100% !important;
    }

    .helheim-leaderboards-tabs {
        margin-bottom: 14px;
    }

    .helheim-leaderboards-tabs__list {
        display: flex;
        overflow-x: auto;
        gap: 7px;
        padding: 9px;
        scrollbar-width: thin;
    }

    .helheim-leaderboards-tab {
        min-width: 210px;
        flex: 0 0 210px;
    }

    .helheim-leaderboards-tab:hover,
    .helheim-leaderboards-tab.active {
        transform: translateY(-1px);
    }
}

@media (max-width: 767px) {
    .helheim-leaderboards-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .helheim-leaderboards-page__heading {
        padding: 17px;
    }

    .helheim-leaderboards-page__heading-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .helheim-leaderboards-tabs__head,
    .helheim-leaderboard-panel__head {
        padding: 15px;
    }

    .helheim-leaderboard-panel__body {
        padding: 9px;
    }

    .helheim-leaderboard-entry__link {
        grid-template-columns: 32px 38px minmax(0, 1fr);
        gap: 9px;
        padding: 10px;
    }

    .helheim-leaderboard-entry__rank {
        width: 30px;
        height: 30px;
    }

    .helheim-leaderboard-entry__avatar {
        width: 36px;
        height: 36px;
    }

    .helheim-leaderboard-entry__value {
        grid-column: 3;
        min-width: 0;
        text-align: left;
    }

    .helheim-leaderboard-entry__value small {
        display: inline;
        margin-right: 5px;
    }

    .helheim-leaderboard-entry__value strong {
        display: inline;
        font-size: 11px;
    }
}

@media (max-width: 430px) {
    .helheim-leaderboards-page__heading p {
        display: none;
    }

    .helheim-leaderboards-page__heading-icon {
        display: none;
    }

    .helheim-leaderboards-tab {
        min-width: 185px;
        flex-basis: 185px;
    }

    .helheim-leaderboard-entry__groups {
        display: flex;
        margin: 4px 0 0;
    }
}


/* ==================================================
   HELHEIM — ПОЛЬЗОВАТЕЛЬ НЕ НАЙДЕН
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-user-not-found {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 18px;
    color: #ededf1;
    background:
        radial-gradient(circle at 50% 35%, rgba(139, 5, 23, 0.16), transparent 34%),
        linear-gradient(145deg, #0b0b0e 0%, #121216 50%, #09090c 100%);
    isolation: isolate;
}

.helheim-user-not-found::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 78%);
}

.helheim-user-not-found::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -2;
    height: 34%;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 75px,
            rgba(239, 51, 69, 0.025) 76px,
            transparent 77px
        );
}

.helheim-user-not-found__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.helheim-user-not-found__rune {
    position: absolute;
    color: rgba(239, 51, 69, 0.045);
    font-family: serif;
    font-size: clamp(120px, 22vw, 330px);
    font-weight: 900;
    line-height: 1;
    user-select: none;
}

.helheim-user-not-found__rune--one {
    top: 5%;
    left: -2%;
    transform: rotate(-12deg);
}

.helheim-user-not-found__rune--two {
    right: -1%;
    bottom: 1%;
    transform: rotate(10deg);
}

.helheim-user-not-found__rune--three {
    top: 22%;
    right: 18%;
    font-size: clamp(70px, 10vw, 150px);
    transform: rotate(18deg);
}

.helheim-user-not-found__card {
    position: relative;
    width: min(100%, 590px);
    overflow: hidden;
    padding: 44px 42px 36px;
    border: 1px solid rgba(239, 51, 69, 0.2);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(30, 30, 36, 0.95), rgba(15, 15, 19, 0.97));
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    text-align: center;
    backdrop-filter: blur(12px);
}

.helheim-user-not-found__card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 12%;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d9192f, transparent);
    box-shadow: 0 0 25px rgba(217, 25, 47, 0.5);
}

.helheim-user-not-found__card::after {
    content: "";
    position: absolute;
    top: -95px;
    left: 50%;
    width: 260px;
    height: 180px;
    border-radius: 50%;
    background: rgba(173, 9, 30, 0.11);
    filter: blur(50px);
    transform: translateX(-50%);
    pointer-events: none;
}

.helheim-user-not-found__mark {
    position: relative;
    display: inline-flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 51, 69, 0.3);
    border-radius: 50%;
    color: #ef3345;
    background:
        radial-gradient(circle, rgba(215, 25, 41, 0.12), rgba(215, 25, 41, 0.025) 66%);
    box-shadow:
        0 0 0 8px rgba(215, 25, 41, 0.025),
        0 0 45px rgba(147, 5, 24, 0.18);
}

.helheim-user-not-found__mark i {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 30px;
}

.helheim-user-not-found__mark-ring {
    position: absolute;
    inset: 9px;
    border: 1px dashed rgba(239, 51, 69, 0.22);
    border-radius: 50%;
}

.helheim-user-not-found__code {
    display: block;
    margin-bottom: 10px;
    color: #ef3345;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.helheim-user-not-found h1 {
    margin: 0 !important;
    color: #f5f5f7 !important;
    font-size: clamp(27px, 5vw, 40px) !important;
    font-weight: 900 !important;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.helheim-user-not-found__card > p {
    max-width: 430px;
    margin: 14px auto 0 !important;
    color: #888892;
    font-size: 11px;
    line-height: 1.75;
}

.helheim-user-not-found__divider {
    display: flex;
    width: min(100%, 380px);
    align-items: center;
    gap: 12px;
    margin: 25px auto;
}

.helheim-user-not-found__divider span {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(239, 51, 69, 0.24));
}

.helheim-user-not-found__divider span:last-child {
    background: linear-gradient(90deg, rgba(239, 51, 69, 0.24), transparent);
}

.helheim-user-not-found__divider i {
    margin: 0;
    color: rgba(239, 51, 69, 0.65);
    font-size: 10px;
}

.helheim-user-not-found__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.helheim-user-not-found__button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.065em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.helheim-user-not-found__button i {
    margin: 0;
}

.helheim-user-not-found__button:hover {
    transform: translateY(-2px);
}

.helheim-user-not-found__button--back {
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #b0b0b9;
    background: rgba(255, 255, 255, 0.025);
}

.helheim-user-not-found__button--back:hover {
    border-color: rgba(239, 51, 69, 0.24);
    color: #fff;
    background: rgba(215, 25, 41, 0.05);
}

.helheim-user-not-found__button--home {
    border: 1px solid rgba(239, 51, 69, 0.45);
    color: #fff !important;
    background: linear-gradient(135deg, #c41428, #780511);
    box-shadow: 0 13px 29px rgba(87, 2, 14, 0.24);
}

.helheim-user-not-found__button--home:hover {
    border-color: rgba(239, 51, 69, 0.7);
    color: #fff !important;
    background: linear-gradient(135deg, #dd1a30, #940719);
    box-shadow: 0 16px 34px rgba(105, 3, 18, 0.32);
}

.helheim-user-not-found__project {
    display: block;
    margin-top: 25px;
    color: #4f4f58;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.22em;
}

@media (max-width: 600px) {
    .helheim-user-not-found {
        padding: 24px 13px;
    }

    .helheim-user-not-found__card {
        padding: 34px 20px 28px;
        border-radius: 13px;
    }

    .helheim-user-not-found__mark {
        width: 76px;
        height: 76px;
    }

    .helheim-user-not-found__mark i {
        font-size: 25px;
    }

    .helheim-user-not-found__actions {
        grid-template-columns: 1fr;
    }

    .helheim-user-not-found__button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .helheim-user-not-found__card {
        padding-right: 16px;
        padding-left: 16px;
    }

    .helheim-user-not-found__card > p {
        font-size: 10px;
    }

    .helheim-user-not-found__project {
        font-size: 6px;
        letter-spacing: 0.16em;
    }
}


/* ==================================================
   HELHEIM — PLACEHOLDERS И ИГРОВЫЕ ДАННЫЕ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-account-page--placeholders .helheim-account-card--placeholders {
    overflow: hidden;
}

.helheim-placeholders__notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    max-width: 1127px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.55;
}

.helheim-placeholders__notice--success {
    border: 1px solid rgba(72, 190, 125, 0.27);
    color: #9dd8b6;
    background: rgba(31, 142, 78, 0.1);
}

.helheim-placeholders__notice--error {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #e6adb4;
    background: rgba(143, 8, 26, 0.11);
}

.helheim-placeholders__notice-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.helheim-placeholders__notice--success .helheim-placeholders__notice-icon {
    border: 1px solid rgba(72, 190, 125, 0.26);
    color: #6dd79b;
    background: rgba(31, 142, 78, 0.08);
}

.helheim-placeholders__notice--error .helheim-placeholders__notice-icon {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-placeholders__notice-icon i {
    margin: 0;
}

.helheim-placeholders__notice strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.helheim-placeholders__notice ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.helheim-placeholders__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-placeholders__head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-placeholders__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.helheim-placeholders__content {
    padding: 17px;
}

.helheim-placeholders__desktop-table {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.helheim-placeholders__desktop-table table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
}

.helheim-placeholders__desktop-table thead {
    background: rgba(255, 255, 255, 0.022);
}

.helheim-placeholders__desktop-table th {
    padding: 12px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    color: #777782;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.helheim-placeholders__desktop-table th:nth-child(1) {
    width: 22%;
}

.helheim-placeholders__desktop-table th:nth-child(2) {
    width: 22%;
}

.helheim-placeholders__desktop-table th:nth-child(3) {
    width: 20%;
}

.helheim-placeholders__desktop-table th:nth-child(4),
.helheim-placeholders__desktop-table th:nth-child(5) {
    width: 18%;
    text-align: center;
}

.helheim-placeholders__desktop-table td {
    padding: 14px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #a9a9b2;
    font-size: 9px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.helheim-placeholders__desktop-table tbody tr:last-child td {
    border-bottom: 0;
}

.helheim-placeholders__desktop-table tbody tr {
    background: rgba(255, 255, 255, 0.01);
    transition: background 0.2s ease;
}

.helheim-placeholders__desktop-table tbody tr:hover {
    background: rgba(215, 25, 41, 0.028);
}

.helheim-placeholders__desktop-table td strong {
    color: #ededf1;
    font-size: 10px;
    font-weight: 900;
}

.helheim-placeholders__desktop-table td code {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #d1d1d8;
    background: rgba(0, 0, 0, 0.18);
    font-size: 8px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-placeholders__updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #777782;
    font-size: 8px;
    font-weight: 700;
}

.helheim-placeholders__updated i {
    margin: 0;
    color: #ef3345;
}

.helheim-placeholders__desktop-table td:nth-child(4),
.helheim-placeholders__desktop-table td:nth-child(5) {
    text-align: center;
}

.helheim-placeholders__state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 800;
}

.helheim-placeholders__state i {
    margin: 0;
    font-size: 13px;
}

.helheim-placeholders__state--enabled {
    color: #67cf93;
}

.helheim-placeholders__state--disabled {
    color: #df5967;
}

.helheim-placeholders__desktop-table .helheim-placeholders__state span {
    display: none;
}

.helheim-placeholders__mobile-list {
    display: none;
}

.helheim-placeholders__empty {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #8f8f99;
    background: rgba(255, 255, 255, 0.012);
    text-align: center;
}

.helheim-placeholders__empty-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid rgba(239, 51, 69, 0.22);
    border-radius: 14px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.055);
}

.helheim-placeholders__empty-icon i {
    margin: 0;
    font-size: 21px;
}

.helheim-placeholders__empty strong {
    color: #f0f0f3;
    font-size: 14px;
}

.helheim-placeholders__empty p {
    margin: 7px 0 0 !important;
    color: #7d7d87;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .helheim-placeholders__desktop-table {
        display: none;
    }

    .helheim-placeholders__mobile-list {
        display: grid;
        gap: 10px;
    }

    .helheim-placeholder-card {
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.014);
    }

    .helheim-placeholder-card__head {
        display: flex;
        gap: 11px;
        align-items: center;
        padding: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.055);
        background:
            linear-gradient(90deg, rgba(104, 4, 17, 0.08), rgba(255, 255, 255, 0.01));
    }

    .helheim-placeholder-card__icon {
        display: inline-flex;
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(239, 51, 69, 0.19);
        border-radius: 8px;
        color: #ef3345;
        background: rgba(215, 25, 41, 0.05);
    }

    .helheim-placeholder-card__icon i {
        margin: 0;
    }

    .helheim-placeholder-card__head > div > span,
    .helheim-placeholder-card__value > span {
        display: block;
        margin-bottom: 3px;
        color: #777782;
        font-size: 7px;
        font-weight: 900;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .helheim-placeholder-card__head h3 {
        margin: 0 !important;
        color: #ededf1 !important;
        font-size: 11px !important;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .helheim-placeholder-card__value {
        padding: 13px;
    }

    .helheim-placeholder-card__value code {
        display: block;
        overflow-wrap: anywhere;
        padding: 10px 11px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 7px;
        color: #d1d1d8;
        background: rgba(0, 0, 0, 0.18);
        font-size: 9px;
        line-height: 1.45;
    }

    .helheim-placeholder-card__meta {
        padding: 0 13px 12px;
    }

    .helheim-placeholder-card__meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #777782;
        font-size: 8px;
        font-weight: 700;
    }

    .helheim-placeholder-card__meta i {
        margin: 0;
        color: #ef3345;
    }

    .helheim-placeholder-card__visibility {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid rgba(255, 255, 255, 0.055);
    }

    .helheim-placeholder-card__visibility > div {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 11px 13px;
    }

    .helheim-placeholder-card__visibility > div + div {
        border-left: 1px solid rgba(255, 255, 255, 0.055);
    }

    .helheim-placeholder-card__visibility > div > span {
        color: #84848e;
        font-size: 8px;
        font-weight: 800;
        line-height: 1.35;
    }
}

@media (max-width: 767px) {
    .helheim-placeholders__notice {
        margin-right: 0;
        margin-left: 0;
    }

    .helheim-placeholders__head {
        padding: 15px;
    }

    .helheim-placeholders__content {
        padding: 13px;
    }
}

@media (max-width: 390px) {
    .helheim-placeholder-card__visibility {
        grid-template-columns: 1fr;
    }

    .helheim-placeholder-card__visibility > div + div {
        border-top: 1px solid rgba(255, 255, 255, 0.055);
        border-left: 0;
    }
}


/* ==================================================
   HELHEIM — НАСТРОЙКА ДВУХФАКТОРНОЙ АВТОРИЗАЦИИ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-account-page--tfa-settings .helheim-account-card--tfa-settings {
    overflow: hidden;
}

.helheim-tfa-settings__notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    max-width: 1127px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.55;
}

.helheim-tfa-settings__notice--error {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #e6adb4;
    background: rgba(143, 8, 26, 0.11);
}

.helheim-tfa-settings__notice-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 8px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-tfa-settings__notice-icon i {
    margin: 0;
}

.helheim-tfa-settings__notice strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.helheim-tfa-settings__notice ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.helheim-tfa-settings__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-tfa-settings__head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-tfa-settings__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.helheim-tfa-settings__setup {
    padding: 19px;
}

.helheim-tfa-settings__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 17px;
}

.helheim-tfa-settings__step {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.015);
}

.helheim-tfa-settings__step > span {
    display: inline-flex;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: #777782;
    background: rgba(255, 255, 255, 0.025);
    font-size: 10px;
    font-weight: 900;
}

.helheim-tfa-settings__step--active {
    border-color: rgba(239, 51, 69, 0.19);
    background: rgba(215, 25, 41, 0.035);
}

.helheim-tfa-settings__step--active > span {
    border-color: rgba(239, 51, 69, 0.32);
    color: #fff;
    background: linear-gradient(135deg, #b70f20, #790512);
}

.helheim-tfa-settings__step strong {
    display: block;
    color: #ededf1;
    font-size: 10px;
}

.helheim-tfa-settings__step p {
    margin: 4px 0 0 !important;
    color: #767681;
    font-size: 8px;
    line-height: 1.5;
}

.helheim-tfa-settings__qr-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    gap: 17px;
    align-items: stretch;
}

.helheim-tfa-settings__qr {
    display: flex;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background:
        radial-gradient(circle at center, rgba(215, 25, 41, 0.055), transparent 66%),
        rgba(255, 255, 255, 0.014);
}

.helheim-tfa-settings__qr img {
    display: block;
    width: min(220px, 100%);
    height: auto;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.helheim-tfa-settings__secret {
    display: flex;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(239, 51, 69, 0.14);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.08), rgba(255, 255, 255, 0.012));
}

.helheim-tfa-settings__secret > span {
    display: block;
    margin-bottom: 8px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-tfa-settings__secret p {
    margin: 0 0 13px !important;
    color: #8a8a94;
    font-size: 9px;
    line-height: 1.55;
}

.helheim-tfa-settings__secret code {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.55;
    text-align: center;
}

.helheim-tfa-settings__secret small {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-top: 12px;
    color: #777782;
    font-size: 8px;
    font-weight: 700;
}

.helheim-tfa-settings__secret small i {
    margin: 0;
    color: #ef3345;
}

.helheim-tfa-settings__actions {
    display: flex;
    gap: 9px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.helheim-tfa-settings__actions form,
.helheim-tfa-settings__cancel-form {
    display: inline-flex;
    margin: 0 !important;
}

.helheim-tfa-settings__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
}

.helheim-tfa-settings__button i {
    margin: 0;
}

.helheim-tfa-settings__button--primary {
    border: 1px solid rgba(239, 51, 69, 0.42);
    color: #fff !important;
    background: linear-gradient(135deg, #b70f20, #790512);
    box-shadow: 0 10px 24px rgba(86, 2, 14, 0.2);
}

.helheim-tfa-settings__button--primary:hover {
    border-color: rgba(239, 51, 69, 0.64);
    background: linear-gradient(135deg, #d51a2d, #920718);
    transform: translateY(-1px);
}

.helheim-tfa-settings__button--cancel {
    border: 1px solid rgba(255, 255, 255, 0.085);
    color: #aaaab4 !important;
    background: rgba(255, 255, 255, 0.025);
}

.helheim-tfa-settings__button--cancel:hover {
    border-color: rgba(239, 51, 69, 0.2);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.045);
}

.helheim-tfa-settings__verify {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 30px 22px 24px;
    text-align: center;
}

.helheim-tfa-settings__verify-icon {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(239, 51, 69, 0.24);
    border-radius: 17px;
    color: #ef3345;
    background:
        radial-gradient(circle, rgba(215, 25, 41, 0.09), rgba(215, 25, 41, 0.025));
}

.helheim-tfa-settings__verify-icon i {
    margin: 0;
    font-size: 24px;
}

.helheim-tfa-settings__verify-copy > span {
    display: block;
    margin-bottom: 7px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-tfa-settings__verify-copy h3 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 15px !important;
    line-height: 1.4;
}

.helheim-tfa-settings__verify-copy p {
    margin: 7px 0 0 !important;
    color: #777782;
    font-size: 9px;
    line-height: 1.5;
}

.helheim-tfa-settings__form {
    display: flex;
    width: min(460px, 100%);
    align-items: flex-end;
    gap: 9px;
    margin-top: 20px !important;
}

.helheim-tfa-settings__code-field {
    min-width: 0;
    flex: 1;
    margin: 0 !important;
    text-align: left;
}

.helheim-tfa-settings__code-field label {
    display: flex !important;
    gap: 7px;
    align-items: center;
    margin: 0 0 8px !important;
    color: #bdbdc6 !important;
    font-size: 9px !important;
    font-weight: 900 !important;
}

.helheim-tfa-settings__code-field label i {
    margin: 0;
    color: #ef3345;
}

.helheim-tfa-settings__code-field input {
    width: 100% !important;
    min-height: 46px !important;
    padding: 11px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-radius: 8px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.022) !important;
    box-shadow: none !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    letter-spacing: 0.18em;
    text-align: center;
}

.helheim-tfa-settings__code-field input:focus {
    border-color: rgba(239, 51, 69, 0.42) !important;
    background: rgba(215, 25, 41, 0.025) !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 41, 0.055) !important;
}

.helheim-tfa-settings__cancel-form {
    margin-top: 10px !important;
}

@media (max-width: 900px) {
    .helheim-tfa-settings__qr-panel {
        grid-template-columns: 1fr;
    }

    .helheim-tfa-settings__qr {
        min-height: 240px;
    }
}

@media (max-width: 767px) {
    .helheim-tfa-settings__notice {
        margin-right: 0;
        margin-left: 0;
    }

    .helheim-tfa-settings__head {
        padding: 15px;
    }

    .helheim-tfa-settings__setup {
        padding: 15px;
    }

    .helheim-tfa-settings__steps {
        grid-template-columns: 1fr;
    }

    .helheim-tfa-settings__qr {
        min-height: 220px;
        padding: 17px;
    }

    .helheim-tfa-settings__secret {
        padding: 17px;
    }

    .helheim-tfa-settings__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .helheim-tfa-settings__actions form,
    .helheim-tfa-settings__button {
        width: 100%;
    }

    .helheim-tfa-settings__verify {
        padding: 24px 15px 20px;
    }

    .helheim-tfa-settings__form {
        align-items: stretch;
        flex-direction: column;
    }

    .helheim-tfa-settings__cancel-form,
    .helheim-tfa-settings__cancel-form .helheim-tfa-settings__button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .helheim-tfa-settings__secret code {
        font-size: 11px;
        letter-spacing: 0.04em;
    }
}


/* ==================================================
   HELHEIM — АКТИВНЫЕ СЕАНСЫ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-account-page--sessions .helheim-account-card--sessions {
    overflow: hidden;
}

.helheim-sessions__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-sessions__head > div:first-child > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-sessions__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.helheim-sessions__head-actions {
    display: flex;
    gap: 9px;
    align-items: center;
}

.helheim-sessions__logout-all {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(239, 51, 69, 0.34);
    border-radius: 8px;
    color: #efadb4 !important;
    background: rgba(215, 25, 41, 0.075);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
}

.helheim-sessions__logout-all:hover {
    border-color: rgba(239, 51, 69, 0.58);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.14);
    transform: translateY(-1px);
}

.helheim-sessions__logout-all i {
    margin: 0;
}

.helheim-sessions__notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin: 16px 17px 0;
    padding: 14px 15px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.55;
}

.helheim-sessions__notice--success {
    border: 1px solid rgba(72, 190, 125, 0.27);
    color: #9dd8b6;
    background: rgba(31, 142, 78, 0.1);
}

.helheim-sessions__notice--error {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #e6adb4;
    background: rgba(143, 8, 26, 0.11);
}

.helheim-sessions__notice-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.helheim-sessions__notice--success .helheim-sessions__notice-icon {
    border: 1px solid rgba(72, 190, 125, 0.26);
    color: #6dd79b;
    background: rgba(31, 142, 78, 0.08);
}

.helheim-sessions__notice--error .helheim-sessions__notice-icon {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-sessions__notice-icon i {
    margin: 0;
}

.helheim-sessions__notice strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.helheim-sessions__list {
    display: grid;
    gap: 10px;
    padding: 17px;
}

.helheim-session-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-session-card:hover {
    border-color: rgba(239, 51, 69, 0.18);
    background: rgba(215, 25, 41, 0.025);
    transform: translateY(-1px);
}

.helheim-session-card--current {
    border-color: rgba(72, 190, 125, 0.2);
    background:
        linear-gradient(90deg, rgba(31, 142, 78, 0.07), rgba(255, 255, 255, 0.014));
}

.helheim-session-card--admin {
    box-shadow: inset 3px 0 0 #df2437;
}

.helheim-session-card__device {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.2);
    border-radius: 10px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.05);
}

.helheim-session-card--current .helheim-session-card__device {
    border-color: rgba(72, 190, 125, 0.22);
    color: #5fce8f;
    background: rgba(31, 142, 78, 0.06);
}

.helheim-session-card__device i {
    margin: 0;
    font-size: 18px;
}

.helheim-session-card__body {
    min-width: 0;
}

.helheim-session-card__title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.helheim-session-card__title-row h3 {
    margin: 0 !important;
    overflow-wrap: anywhere;
    color: #f0f0f4 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.4;
}

.helheim-session-card__title-row h3 span {
    color: #65656f;
}

.helheim-session-card__badges {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.helheim-session-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.helheim-session-card__badge i {
    margin: 0;
}

.helheim-session-card__badge--current {
    border: 1px solid rgba(72, 190, 125, 0.25);
    color: #8bd8ab;
    background: rgba(31, 142, 78, 0.1);
}

.helheim-session-card__badge--admin {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #ef8f99;
    background: rgba(215, 25, 41, 0.08);
}

.helheim-session-card__badge--remembered {
    border: 1px solid rgba(81, 151, 217, 0.24);
    color: #a8c7e5;
    background: rgba(37, 103, 165, 0.08);
}

.helheim-session-card__meta {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-top: 7px;
    flex-wrap: wrap;
}

.helheim-session-card__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #777782;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.4;
}

.helheim-session-card__meta i {
    margin: 0;
    color: #ef3345;
}

.helheim-session-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.helheim-session-card__logout {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(239, 51, 69, 0.32);
    border-radius: 8px;
    color: #efadb4 !important;
    background: rgba(215, 25, 41, 0.07);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
}

.helheim-session-card__logout:hover {
    border-color: rgba(239, 51, 69, 0.56);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.14);
    transform: translateY(-1px);
}

.helheim-session-card__logout i {
    margin: 0;
}

.helheim-session-card__protected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(72, 190, 125, 0.18);
    border-radius: 7px;
    color: #8ccda7;
    background: rgba(31, 142, 78, 0.07);
    font-size: 8px;
    font-weight: 800;
}

.helheim-session-card__protected i {
    margin: 0;
}

.helheim-sessions__modal.ui.modal {
    overflow: hidden;
    border: 1px solid rgba(239, 51, 69, 0.2) !important;
    border-radius: 11px !important;
    background: #15151a !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55) !important;
}

.helheim-sessions__modal > .header {
    display: flex !important;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
    color: #fff !important;
    background: #19191f !important;
    font-size: 14px !important;
}

.helheim-sessions__modal > .header i {
    margin: 0;
    color: #ef3345;
}

.helheim-sessions__modal > .content {
    color: #bdbdc5 !important;
    background: #15151a !important;
}

.helheim-sessions__modal-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.helheim-sessions__modal-message > span {
    display: inline-flex;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.26);
    border-radius: 8px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.055);
}

.helheim-sessions__modal-message i {
    margin: 0;
}

.helheim-sessions__modal-message p {
    margin: 5px 0 0 !important;
    line-height: 1.6;
}

.helheim-sessions__modal > .actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: #121217 !important;
}

.helheim-sessions__modal > .actions form {
    display: inline-flex;
    margin: 0 !important;
}

.helheim-sessions__modal-button {
    display: inline-flex !important;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    font-family: inherit;
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
}

.helheim-sessions__modal-button--cancel {
    border: 1px solid rgba(255, 255, 255, 0.085);
    color: #aaaab4 !important;
    background: rgba(255, 255, 255, 0.025);
}

.helheim-sessions__modal-button--confirm {
    border: 1px solid rgba(239, 51, 69, 0.42);
    color: #fff !important;
    background: linear-gradient(135deg, #b70f20, #790512);
}

@media (max-width: 900px) {
    .helheim-session-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .helheim-session-card__actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .helheim-sessions__head {
        padding: 15px;
    }

    .helheim-sessions__logout-all {
        min-width: 38px;
        padding: 9px 10px;
    }

    .helheim-sessions__logout-all span {
        display: none;
    }

    .helheim-sessions__notice {
        margin-right: 13px;
        margin-left: 13px;
    }

    .helheim-sessions__list {
        padding: 13px;
    }

    .helheim-session-card {
        gap: 10px;
        padding: 13px;
    }

    .helheim-session-card__title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .helheim-session-card__actions {
        width: 100%;
    }

    .helheim-session-card__logout,
    .helheim-session-card__protected {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 390px) {
    .helheim-session-card {
        grid-template-columns: 1fr;
    }

    .helheim-session-card__device {
        width: 40px;
        height: 40px;
    }

    .helheim-session-card__actions {
        grid-column: 1;
    }

    .helheim-sessions__modal > .actions {
        flex-direction: column;
    }

    .helheim-sessions__modal > .actions form,
    .helheim-sessions__modal-button {
        width: 100%;
    }
}


/* ==================================================
   HELHEIM — НАСТРОЙКИ ПРОФИЛЯ И АККАУНТА
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-settings__notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    max-width: 1127px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.55;
}

.helheim-settings__notice--success {
    border: 1px solid rgba(72, 190, 125, 0.27);
    color: #9dd8b6;
    background: rgba(31, 142, 78, 0.1);
}

.helheim-settings__notice--error {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #e6adb4;
    background: rgba(143, 8, 26, 0.11);
}

.helheim-settings__notice-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.helheim-settings__notice--success .helheim-settings__notice-icon {
    border: 1px solid rgba(72, 190, 125, 0.26);
    color: #6dd79b;
    background: rgba(31, 142, 78, 0.08);
}

.helheim-settings__notice--error .helheim-settings__notice-icon {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-settings__notice-icon i {
    margin: 0;
}

.helheim-settings__notice strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.helheim-settings__notice ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.helheim-settings-card {
    margin-bottom: 15px;
    overflow: hidden;
}

.helheim-settings-card:last-child {
    margin-bottom: 0;
}

.helheim-settings-card__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-settings-card--danger .helheim-settings-card__head {
    background:
        linear-gradient(135deg, rgba(143, 8, 26, 0.15), rgba(255, 255, 255, 0.012));
}

.helheim-settings-card__head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-settings-card__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.helheim-settings-form {
    padding: 19px !important;
}

.helheim-settings-form--compact {
    padding-bottom: 17px !important;
}

.helheim-settings-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.helheim-settings-field {
    min-width: 0;
    margin: 0 !important;
}

.helheim-settings-field--wide {
    grid-column: 1 / -1;
}

.helheim-settings-field > label {
    display: flex !important;
    gap: 10px;
    align-items: center;
    margin: 0 0 9px !important;
    color: #d7d7de !important;
}

.helheim-settings-field__label-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.18);
    border-radius: 7px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.045);
}

.helheim-settings-field__label-icon i {
    margin: 0;
    font-size: 11px;
}

.helheim-settings-field > label > span:last-child {
    min-width: 0;
}

.helheim-settings-field > label strong {
    display: block;
    color: #ededf1;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.3;
}

.helheim-settings-field > label strong sup {
    color: #ef3345;
    font-size: 10px;
}

.helheim-settings-field > label small {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #71717c;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.35;
}

.helheim-settings-field__help {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    border: 1px solid rgba(239, 51, 69, 0.18);
    border-radius: 50%;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.045);
    vertical-align: middle;
}

.helheim-settings-field__help i {
    margin: 0;
    font-size: 7px;
}

.helheim-settings-field input[type="text"],
.helheim-settings-field input[type="password"],
.helheim-settings-field input[type="email"],
.helheim-settings-field input[type="date"],
.helheim-settings-field textarea,
.helheim-settings-field .ui.dropdown {
    width: 100% !important;
    min-height: 46px !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-radius: 8px !important;
    color: #f0f0f4 !important;
    background: rgba(255, 255, 255, 0.022) !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 11px !important;
}

.helheim-settings-field textarea {
    min-height: 125px !important;
    line-height: 1.6;
    resize: vertical;
}

.helheim-settings-field input::placeholder,
.helheim-settings-field textarea::placeholder {
    color: #5f5f69 !important;
}

.helheim-settings-field input:focus,
.helheim-settings-field textarea:focus,
.helheim-settings-field .ui.dropdown.active,
.helheim-settings-field .ui.dropdown:focus {
    border-color: rgba(239, 51, 69, 0.42) !important;
    background: rgba(215, 25, 41, 0.025) !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 41, 0.055) !important;
}

.helheim-settings-field input[type="date"] {
    color-scheme: dark;
}

.helheim-settings-field .ui.dropdown > .dropdown.icon {
    color: #777782 !important;
}

.helheim-settings-field .ui.dropdown > .text {
    color: #ededf1 !important;
}

.helheim-settings-field .ui.dropdown .menu {
    border: 1px solid rgba(239, 51, 69, 0.18) !important;
    border-radius: 8px !important;
    color: #c7c7cf !important;
    background: #17171d !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44) !important;
}

.helheim-settings-field .ui.dropdown .menu > .item {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
    color: #bdbdc6 !important;
    background: transparent !important;
    font-size: 10px !important;
}

.helheim-settings-field .ui.dropdown .menu > .item:hover,
.helheim-settings-field .ui.dropdown .menu > .selected.item {
    color: #fff !important;
    background: rgba(215, 25, 41, 0.07) !important;
}

.helheim-settings-form__footer {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.helheim-settings-form__footer--end {
    justify-content: flex-end;
}

.helheim-settings-form__footer > span {
    display: flex;
    gap: 7px;
    align-items: center;
    color: #70707a;
    font-size: 8px;
    font-weight: 700;
}

.helheim-settings-form__footer > span i {
    margin: 0;
    color: #ef3345;
}

.helheim-settings-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
}

.helheim-settings-button i {
    margin: 0;
}

.helheim-settings-button--primary {
    border: 1px solid rgba(239, 51, 69, 0.42);
    color: #fff !important;
    background: linear-gradient(135deg, #b70f20, #790512);
    box-shadow: 0 10px 24px rgba(86, 2, 14, 0.2);
}

.helheim-settings-button--primary:hover {
    border-color: rgba(239, 51, 69, 0.64);
    background: linear-gradient(135deg, #d51a2d, #920718);
    transform: translateY(-1px);
}

.helheim-settings-button--success {
    border: 1px solid rgba(72, 190, 125, 0.36);
    color: #dff5e8 !important;
    background: rgba(31, 142, 78, 0.16);
}

.helheim-settings-button--success:hover {
    border-color: rgba(72, 190, 125, 0.58);
    color: #fff !important;
    background: rgba(31, 142, 78, 0.24);
}

.helheim-settings-button--danger {
    border: 1px solid rgba(239, 51, 69, 0.34);
    color: #efadb4 !important;
    background: rgba(215, 25, 41, 0.08);
}

.helheim-settings-button--danger:hover:not(:disabled) {
    border-color: rgba(239, 51, 69, 0.58);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.15);
}

.helheim-settings-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.helheim-settings-action-card {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 19px;
}

.helheim-settings-action-card__info {
    display: flex;
    min-width: 0;
    gap: 12px;
    align-items: center;
}

.helheim-settings-action-card__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.21);
    border-radius: 10px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.055);
}

.helheim-settings-action-card__icon i {
    margin: 0;
    font-size: 14px;
}

.helheim-settings-action-card__info strong {
    display: block;
    color: #ededf1;
    font-size: 11px;
}

.helheim-settings-action-card__info p {
    margin: 5px 0 0 !important;
    color: #777782;
    font-size: 9px;
    line-height: 1.5;
}

.helheim-settings-action-card__action,
.helheim-settings-action-card__action form,
.helheim-settings-action-card > form {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0 !important;
}

.helheim-settings-form--avatar {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.helheim-settings-upload {
    display: flex !important;
    min-width: 0;
    flex: 1;
    gap: 12px;
    align-items: center;
    padding: 14px 15px;
    border: 1px dashed rgba(239, 51, 69, 0.27);
    border-radius: 9px;
    color: #c4c4cc !important;
    background: rgba(215, 25, 41, 0.025);
    cursor: pointer;
}

.helheim-settings-upload:hover {
    border-color: rgba(239, 51, 69, 0.48);
    background: rgba(215, 25, 41, 0.05);
}

.helheim-settings-upload__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.2);
    border-radius: 9px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.055);
}

.helheim-settings-upload__icon i {
    margin: 0;
}

.helheim-settings-upload strong {
    display: block;
    color: #ededf1;
    font-size: 10px;
}

.helheim-settings-upload small {
    display: block;
    margin-top: 3px;
    color: #74747f;
    font-size: 8px;
}

@media (max-width: 900px) {
    .helheim-settings-form__grid {
        grid-template-columns: 1fr;
    }

    .helheim-settings-field--wide {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .helheim-settings__notice {
        margin-right: 0;
        margin-left: 0;
    }

    .helheim-settings-card__head {
        padding: 15px;
    }

    .helheim-settings-form {
        padding: 15px !important;
    }

    .helheim-settings-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .helheim-settings-form__footer--end {
        align-items: stretch;
    }

    .helheim-settings-button {
        width: 100%;
    }

    .helheim-settings-action-card {
        align-items: stretch;
        flex-direction: column;
        padding: 15px;
    }

    .helheim-settings-action-card__action,
    .helheim-settings-action-card__action form,
    .helheim-settings-action-card > form {
        width: 100%;
    }

    .helheim-settings-form--avatar {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .helheim-settings-field > label small,
    .helheim-settings-upload small {
        display: none;
    }

    .helheim-settings-field__label-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}


/* ==================================================
   HELHEIM — НАСТРОЙКИ УВЕДОМЛЕНИЙ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-account-page--notification-settings .helheim-account-card--notification-settings {
    overflow: hidden;
}

.helheim-notification-settings__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-notification-settings__head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-notification-settings__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.helheim-notification-settings__notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin: 16px 17px 0;
    padding: 14px 15px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.55;
}

.helheim-notification-settings__notice--success {
    border: 1px solid rgba(72, 190, 125, 0.27);
    color: #9dd8b6;
    background: rgba(31, 142, 78, 0.1);
}

.helheim-notification-settings__notice--error {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #e6adb4;
    background: rgba(143, 8, 26, 0.11);
}

.helheim-notification-settings__notice-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.helheim-notification-settings__notice--success .helheim-notification-settings__notice-icon {
    border: 1px solid rgba(72, 190, 125, 0.26);
    color: #6dd79b;
    background: rgba(31, 142, 78, 0.08);
}

.helheim-notification-settings__notice--error .helheim-notification-settings__notice-icon {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-notification-settings__notice-icon i {
    margin: 0;
}

.helheim-notification-settings__notice strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.helheim-notification-settings__notice ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.helheim-notification-settings__form {
    padding: 17px;
}

.helheim-notification-settings__legend,
.helheim-notification-setting {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 145px 145px;
    align-items: center;
}

.helheim-notification-settings__legend {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 9px 9px 0 0;
    color: #777782;
    background: rgba(255, 255, 255, 0.018);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.helheim-notification-settings__legend-channel {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
}

.helheim-notification-settings__legend-channel i {
    margin: 0;
    color: #ef3345;
}

.helheim-notification-settings__list {
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.055);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    border-left: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 0 0 9px 9px;
}

.helheim-notification-setting {
    min-height: 66px;
    padding: 11px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.012);
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.helheim-notification-setting:first-child {
    border-top: 0;
}

.helheim-notification-setting:hover {
    background: rgba(215, 25, 41, 0.027);
}

.helheim-notification-setting__name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding-right: 15px;
    color: #d2d2d9;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.helheim-notification-setting__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.17);
    border-radius: 8px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.045);
}

.helheim-notification-setting__icon i {
    margin: 0;
    font-size: 11px;
}

.helheim-notification-setting__option {
    display: flex;
    align-items: center;
    justify-content: center;
}

.helheim-notification-setting__mobile-label {
    display: none;
}

.helheim-notification-setting__toggle.ui.toggle.checkbox {
    min-height: 22px;
}

.helheim-notification-setting__toggle.ui.toggle.checkbox label {
    min-height: 22px !important;
    padding-left: 46px !important;
}

.helheim-notification-setting__toggle.ui.toggle.checkbox label::before {
    width: 40px !important;
    height: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    background: #25252c !important;
    box-shadow: none !important;
}

.helheim-notification-setting__toggle.ui.toggle.checkbox label::after {
    top: 3px !important;
    left: 3px !important;
    width: 16px !important;
    height: 16px !important;
    background: #85858f !important;
    box-shadow: none !important;
}

.helheim-notification-setting__toggle.ui.toggle.checkbox input:checked ~ label::before {
    border-color: rgba(239, 51, 69, 0.42) !important;
    background: rgba(180, 12, 32, 0.78) !important;
}

.helheim-notification-setting__toggle.ui.toggle.checkbox input:checked ~ label::after {
    left: 21px !important;
    background: #fff !important;
}

.helheim-notification-setting__toggle.ui.toggle.checkbox input:focus ~ label::before {
    box-shadow: 0 0 0 3px rgba(215, 25, 41, 0.075) !important;
}

.helheim-notification-settings__footer {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.helheim-notification-settings__hint {
    display: flex;
    max-width: 520px;
    align-items: flex-start;
    gap: 8px;
    color: #70707a;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.5;
}

.helheim-notification-settings__hint i {
    flex: 0 0 auto;
    margin: 2px 0 0;
    color: #ef3345;
}

.helheim-notification-settings__submit {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(239, 51, 69, 0.42);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #b70f20, #790512);
    box-shadow: 0 10px 24px rgba(86, 2, 14, 0.2);
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    cursor: pointer;
}

.helheim-notification-settings__submit:hover {
    border-color: rgba(239, 51, 69, 0.64);
    background: linear-gradient(135deg, #d51a2d, #920718);
    transform: translateY(-1px);
}

.helheim-notification-settings__submit i {
    margin: 0;
}

@media (max-width: 900px) {
    .helheim-notification-settings__legend,
    .helheim-notification-setting {
        grid-template-columns: minmax(0, 1fr) 110px 110px;
    }
}

@media (max-width: 767px) {
    .helheim-notification-settings__head {
        padding: 15px;
    }

    .helheim-notification-settings__notice {
        margin-right: 13px;
        margin-left: 13px;
    }

    .helheim-notification-settings__form {
        padding: 13px;
    }

    .helheim-notification-settings__legend {
        display: none;
    }

    .helheim-notification-settings__list {
        border: 0;
        border-radius: 0;
    }

    .helheim-notification-setting {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 9px;
        padding: 13px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 9px;
    }

    .helheim-notification-setting:last-child {
        margin-bottom: 0;
    }

    .helheim-notification-setting__name {
        padding-right: 0;
        padding-bottom: 11px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .helheim-notification-setting__option {
        justify-content: space-between;
    }

    .helheim-notification-setting__mobile-label {
        display: inline-flex;
        color: #898993;
        font-size: 9px;
        font-weight: 800;
    }

    .helheim-notification-settings__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .helheim-notification-settings__submit {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .helheim-notification-settings__hint {
        font-size: 7px;
    }
}


/* ==================================================
   HELHEIM — OAUTH-АВТОРИЗАЦИЯ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-account-page--oauth .helheim-account-card--oauth {
    overflow: hidden;
}

.helheim-oauth__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-oauth__head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-oauth__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.helheim-oauth__notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin: 16px 17px 0;
    padding: 14px 15px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.55;
}

.helheim-oauth__notice--success {
    border: 1px solid rgba(72, 190, 125, 0.27);
    color: #9dd8b6;
    background: rgba(31, 142, 78, 0.1);
}

.helheim-oauth__notice--error {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #e6adb4;
    background: rgba(143, 8, 26, 0.11);
}

.helheim-oauth__notice-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.helheim-oauth__notice--success .helheim-oauth__notice-icon {
    border: 1px solid rgba(72, 190, 125, 0.26);
    color: #6dd79b;
    background: rgba(31, 142, 78, 0.08);
}

.helheim-oauth__notice--error .helheim-oauth__notice-icon {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-oauth__notice-icon i {
    margin: 0;
}

.helheim-oauth__notice strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.helheim-oauth__content {
    padding: 17px;
}

.helheim-oauth__list {
    display: grid;
    gap: 10px;
}

.helheim-oauth-provider {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-oauth-provider:hover {
    border-color: rgba(239, 51, 69, 0.18);
    background: rgba(215, 25, 41, 0.025);
    transform: translateY(-1px);
}

.helheim-oauth-provider__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.19);
    border-radius: 10px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.05);
}

.helheim-oauth-provider--linked .helheim-oauth-provider__icon {
    border-color: rgba(72, 190, 125, 0.2);
    color: #5fce8f;
    background: rgba(31, 142, 78, 0.055);
}

.helheim-oauth-provider__icon i {
    margin: 0;
    font-size: 17px;
}

.helheim-oauth-provider__body {
    min-width: 0;
}

.helheim-oauth-provider__title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.helheim-oauth-provider__title-row h3 {
    margin: 0 !important;
    overflow: hidden;
    color: #f0f0f4 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-oauth-provider__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.helheim-oauth-provider__status i {
    margin: 0;
}

.helheim-oauth-provider__status--linked {
    border: 1px solid rgba(72, 190, 125, 0.25);
    color: #8bd8ab;
    background: rgba(31, 142, 78, 0.1);
}

.helheim-oauth-provider__status--unlinked {
    border: 1px solid rgba(239, 51, 69, 0.23);
    color: #e98a94;
    background: rgba(215, 25, 41, 0.07);
}

.helheim-oauth-provider__id {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    flex-wrap: wrap;
}

.helheim-oauth-provider__id > span {
    color: #74747f;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.helheim-oauth-provider__id code {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #c2c2ca;
    background: rgba(255, 255, 255, 0.025);
    font-size: 8px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-oauth-provider__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.helheim-oauth-provider__button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-oauth-provider__button i {
    margin: 0;
}

.helheim-oauth-provider__button:hover {
    transform: translateY(-1px);
}

.helheim-oauth-provider__button--link {
    border: 1px solid rgba(72, 190, 125, 0.34);
    color: #d9f3e4 !important;
    background: rgba(31, 142, 78, 0.13);
}

.helheim-oauth-provider__button--link:hover {
    border-color: rgba(72, 190, 125, 0.56);
    color: #fff !important;
    background: rgba(31, 142, 78, 0.22);
}

.helheim-oauth-provider__button--unlink {
    border: 1px solid rgba(239, 51, 69, 0.32);
    color: #efadb4 !important;
    background: rgba(215, 25, 41, 0.07);
}

.helheim-oauth-provider__button--unlink:hover {
    border-color: rgba(239, 51, 69, 0.56);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.14);
}

.helheim-oauth__empty {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #8f8f99;
    background: rgba(255, 255, 255, 0.012);
    text-align: center;
}

.helheim-oauth__empty-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid rgba(239, 51, 69, 0.22);
    border-radius: 14px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.055);
}

.helheim-oauth__empty-icon i {
    margin: 0;
    font-size: 21px;
}

.helheim-oauth__empty strong {
    color: #f0f0f3;
    font-size: 14px;
}

.helheim-oauth__empty p {
    margin: 7px 0 0 !important;
    color: #7d7d87;
    font-size: 10px;
    line-height: 1.5;
}

.helheim-oauth__modal.ui.modal {
    overflow: hidden;
    border: 1px solid rgba(239, 51, 69, 0.2) !important;
    border-radius: 11px !important;
    background: #15151a !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55) !important;
}

.helheim-oauth__modal > .header {
    display: flex !important;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
    color: #fff !important;
    background: #19191f !important;
    font-size: 14px !important;
}

.helheim-oauth__modal > .header i {
    margin: 0;
    color: #ef3345;
}

.helheim-oauth__modal > .content {
    color: #bdbdc5 !important;
    background: #15151a !important;
}

.helheim-oauth__modal-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.helheim-oauth__modal-message > span {
    display: inline-flex;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.26);
    border-radius: 8px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.055);
}

.helheim-oauth__modal-message i {
    margin: 0;
}

.helheim-oauth__modal-message p {
    margin: 5px 0 0 !important;
    line-height: 1.6;
}

.helheim-oauth__modal > .actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: #121217 !important;
}

.helheim-oauth__modal > .actions form {
    display: inline-flex;
    margin: 0 !important;
}

.helheim-oauth__modal-button {
    display: inline-flex !important;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    font-family: inherit;
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
}

.helheim-oauth__modal-button--cancel {
    border: 1px solid rgba(255, 255, 255, 0.085);
    color: #aaaab4 !important;
    background: rgba(255, 255, 255, 0.025);
}

.helheim-oauth__modal-button--confirm-link {
    border: 1px solid rgba(72, 190, 125, 0.42);
    color: #fff !important;
    background: rgba(31, 142, 78, 0.2);
}

.helheim-oauth__modal-button--confirm-unlink {
    border: 1px solid rgba(239, 51, 69, 0.42);
    color: #fff !important;
    background: linear-gradient(135deg, #b70f20, #790512);
}

@media (max-width: 900px) {
    .helheim-oauth-provider {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .helheim-oauth-provider__actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .helheim-oauth__head {
        padding: 15px;
    }

    .helheim-oauth__notice {
        margin-right: 13px;
        margin-left: 13px;
    }

    .helheim-oauth__content {
        padding: 13px;
    }

    .helheim-oauth-provider {
        gap: 10px;
        padding: 13px;
    }

    .helheim-oauth-provider__title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .helheim-oauth-provider__title-row h3 {
        white-space: normal;
    }

    .helheim-oauth-provider__actions {
        width: 100%;
    }

    .helheim-oauth-provider__button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .helheim-oauth-provider {
        grid-template-columns: 1fr;
    }

    .helheim-oauth-provider__actions {
        grid-column: 1;
    }

    .helheim-oauth-provider__id {
        align-items: flex-start;
        flex-direction: column;
    }

    .helheim-oauth__modal > .actions {
        flex-direction: column;
    }

    .helheim-oauth__modal > .actions form,
    .helheim-oauth__modal-button {
        width: 100%;
    }
}


/* ==================================================
   HELHEIM — ПОДКЛЮЧЕНИЯ И ИНТЕГРАЦИИ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-account-page--connections .helheim-account-card--connections {
    overflow: hidden;
}

.helheim-connections__notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    max-width: 1127px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.55;
}

.helheim-connections__notice--success {
    border: 1px solid rgba(72, 190, 125, 0.27);
    color: #9dd8b6;
    background: rgba(31, 142, 78, 0.1);
}

.helheim-connections__notice--error {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #e6adb4;
    background: rgba(143, 8, 26, 0.11);
}

.helheim-connections__notice-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.helheim-connections__notice--success .helheim-connections__notice-icon {
    border: 1px solid rgba(72, 190, 125, 0.26);
    color: #6dd79b;
    background: rgba(31, 142, 78, 0.08);
}

.helheim-connections__notice--error .helheim-connections__notice-icon {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-connections__notice-icon i {
    margin: 0;
}

.helheim-connections__notice strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.helheim-connections__notice ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.helheim-connections__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-connections__head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-connections__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.helheim-connections__list {
    display: grid;
    gap: 10px;
    padding: 17px;
}

.helheim-connection-card {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-connection-card:hover {
    border-color: rgba(239, 51, 69, 0.18);
    background: rgba(215, 25, 41, 0.025);
    transform: translateY(-1px);
}

.helheim-connection-card__status {
    display: flex;
    align-items: center;
    justify-content: center;
}

.helheim-connection-card__status-dot {
    width: 10px;
    height: 10px;
    border: 3px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: #777782;
    box-sizing: content-box;
}

.helheim-connection-card--connected .helheim-connection-card__status-dot {
    border-color: rgba(72, 190, 125, 0.22);
    background: #48be7d;
    box-shadow: 0 0 0 4px rgba(72, 190, 125, 0.055);
}

.helheim-connection-card--pending .helheim-connection-card__status-dot {
    border-color: rgba(230, 153, 46, 0.23);
    background: #e6992e;
    box-shadow: 0 0 0 4px rgba(230, 153, 46, 0.055);
}

.helheim-connection-card--disconnected .helheim-connection-card__status-dot {
    border-color: rgba(239, 51, 69, 0.22);
    background: #df2437;
    box-shadow: 0 0 0 4px rgba(215, 25, 41, 0.05);
}

.helheim-connection-card__body {
    min-width: 0;
}

.helheim-connection-card__title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.helheim-connection-card__title-row h3 {
    margin: 0 !important;
    overflow: hidden;
    color: #f0f0f4 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-connection-card__badges {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.helheim-connection-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.helheim-connection-card__badge--pending {
    border: 1px solid rgba(230, 153, 46, 0.27);
    color: #efbd73;
    background: rgba(169, 100, 13, 0.1);
}

.helheim-connection-card__badge--required {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #ef8f99;
    background: rgba(215, 25, 41, 0.08);
}

.helheim-connection-card__meta {
    margin-top: 6px;
}

.helheim-connection-card__username {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: #a8a8b2;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-connection-card__username i {
    margin: 0;
    color: #48be7d;
}

.helheim-connection-card__username--muted {
    color: #74747f;
}

.helheim-connection-card__username--muted i {
    color: #df2437;
}

.helheim-connection-card__actions {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: flex-end;
}

.helheim-connection-card__actions form {
    display: inline-flex;
    margin: 0 !important;
}

.helheim-connection-card__button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-connection-card__button i {
    margin: 0;
}

.helheim-connection-card__button:hover {
    transform: translateY(-1px);
}

.helheim-connection-card__button--connect {
    border: 1px solid rgba(72, 190, 125, 0.34);
    color: #d9f3e4;
    background: rgba(31, 142, 78, 0.13);
}

.helheim-connection-card__button--connect:hover {
    border-color: rgba(72, 190, 125, 0.56);
    color: #fff;
    background: rgba(31, 142, 78, 0.22);
}

.helheim-connection-card__button--verify {
    border: 1px solid rgba(230, 153, 46, 0.34);
    color: #f2cf99;
    background: rgba(169, 100, 13, 0.13);
}

.helheim-connection-card__button--verify:hover {
    border-color: rgba(230, 153, 46, 0.58);
    color: #fff;
    background: rgba(169, 100, 13, 0.22);
}

.helheim-connection-card__button--unlink {
    border: 1px solid rgba(239, 51, 69, 0.32);
    color: #efadb4;
    background: rgba(215, 25, 41, 0.07);
}

.helheim-connection-card__button--unlink:hover {
    border-color: rgba(239, 51, 69, 0.56);
    color: #fff;
    background: rgba(215, 25, 41, 0.14);
}

@media (max-width: 900px) {
    .helheim-connection-card {
        grid-template-columns: 16px minmax(0, 1fr);
    }

    .helheim-connection-card__actions {
        grid-column: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .helheim-connections__notice {
        margin-right: 0;
        margin-left: 0;
    }

    .helheim-connections__head {
        padding: 15px;
    }

    .helheim-connections__list {
        padding: 13px;
    }

    .helheim-connection-card {
        gap: 10px;
        padding: 13px;
    }

    .helheim-connection-card__title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .helheim-connection-card__title-row h3 {
        white-space: normal;
    }

    .helheim-connection-card__actions {
        width: 100%;
    }

    .helheim-connection-card__actions form {
        flex: 1;
    }

    .helheim-connection-card__button {
        width: 100%;
        min-width: 0;
        padding: 9px 8px;
    }
}

@media (max-width: 390px) {
    .helheim-connection-card {
        grid-template-columns: 1fr;
    }

    .helheim-connection-card__status {
        justify-content: flex-start;
    }

    .helheim-connection-card__actions {
        grid-column: 1;
        align-items: stretch;
        flex-direction: column;
    }
}


/* ==================================================
   HELHEIM — ПРОСМОТР ЛИЧНОЙ ПЕРЕПИСКИ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-view-message__notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    max-width: 1127px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.55;
}

.helheim-view-message__notice--error {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #e6adb4;
    background: rgba(143, 8, 26, 0.11);
}

.helheim-view-message__notice--success {
    border: 1px solid rgba(72, 190, 125, 0.27);
    color: #9dd8b6;
    background: rgba(31, 142, 78, 0.1);
}

.helheim-view-message__notice-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.helheim-view-message__notice--error .helheim-view-message__notice-icon {
    border: 1px solid rgba(239, 51, 69, 0.28);
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-view-message__notice--success .helheim-view-message__notice-icon {
    border: 1px solid rgba(72, 190, 125, 0.26);
    color: #6dd79b;
    background: rgba(31, 142, 78, 0.08);
}

.helheim-view-message__notice-icon i {
    margin: 0;
}

.helheim-view-message__notice strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.helheim-view-message__summary {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 19px;
}

.helheim-view-message__summary-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.helheim-view-message__summary-icon {
    display: inline-flex;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.25);
    border-radius: 10px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-view-message__summary-icon i {
    margin: 0;
    font-size: 15px;
}

.helheim-view-message__summary-main > div {
    min-width: 0;
}

.helheim-view-message__summary-main > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-view-message__summary h2 {
    margin: 0 0 5px !important;
    overflow-wrap: anywhere;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.35;
}

.helheim-view-message__summary p {
    margin: 0 !important;
    overflow-wrap: anywhere;
    color: #84848e;
    font-size: 9px;
    line-height: 1.5;
}

.helheim-view-message__summary p strong {
    color: #bdbdc5;
}

.helheim-view-message__summary p a {
    color: #d4d4da !important;
}

.helheim-view-message__summary-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
}

.helheim-view-message__button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
}

.helheim-view-message__button i {
    margin: 0;
}

.helheim-view-message__button--back {
    border: 1px solid rgba(255, 255, 255, 0.085);
    color: #aaaab4 !important;
    background: rgba(255, 255, 255, 0.022);
}

.helheim-view-message__button--back:hover {
    border-color: rgba(239, 51, 69, 0.2);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.045);
}

.helheim-view-message__button--leave {
    border: 1px solid rgba(239, 51, 69, 0.3);
    color: #efadb4;
    background: rgba(215, 25, 41, 0.07);
}

.helheim-view-message__button--leave:hover {
    border-color: rgba(239, 51, 69, 0.56);
    color: #fff;
    background: rgba(215, 25, 41, 0.14);
}

.helheim-view-message__pagination {
    margin: 14px 0;
}

.helheim-view-message__pagination:empty {
    display: none;
}

.helheim-view-message__thread {
    display: grid;
    gap: 11px;
}

.helheim-view-message__item {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
    box-shadow: none;
}

.helheim-view-message__author {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background:
        linear-gradient(90deg, rgba(104, 4, 17, 0.1), rgba(255, 255, 255, 0.01));
}

.helheim-view-message__avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    border: 2px solid rgba(239, 51, 69, 0.3);
    border-radius: 50%;
    background: #111116;
}

.helheim-view-message__author-info {
    min-width: 0;
}

.helheim-view-message__author-info > a {
    display: block;
    max-width: 100%;
    margin-bottom: 3px;
    overflow: hidden;
    color: #ededf2 !important;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-view-message__author-info > span {
    display: flex;
    gap: 5px;
    align-items: center;
    color: #74747e;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.35;
}

.helheim-view-message__author-info > span i {
    margin: 0;
    color: #ef3345;
}

.helheim-view-message__content {
    padding: 18px 17px;
    color: #c7c7cf !important;
    font-size: 11px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.helheim-view-message__content > *:first-child {
    margin-top: 0 !important;
}

.helheim-view-message__content > *:last-child {
    margin-bottom: 0 !important;
}

.helheim-view-message__content a {
    color: #ef7f8b !important;
    text-decoration: underline;
    text-decoration-color: rgba(239, 51, 69, 0.35);
    text-underline-offset: 3px;
}

.helheim-view-message__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.helheim-view-message__content blockquote {
    margin: 14px 0;
    padding: 12px 14px;
    border-left: 3px solid #df2437;
    border-radius: 0 8px 8px 0;
    color: #b9b9c1;
    background: rgba(215, 25, 41, 0.045);
}

.helheim-view-message__reply {
    margin-top: 15px;
    overflow: hidden;
}

.helheim-view-message__reply-head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.12), rgba(255, 255, 255, 0.012));
}

.helheim-view-message__reply-head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-view-message__reply-head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 15px !important;
}

.helheim-view-message__reply-form {
    padding: 18px !important;
}

.helheim-view-message__editor {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.016);
}

.helheim-view-message__editor textarea#reply {
    display: block;
    width: 100%;
    min-height: 220px;
    padding: 15px;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ededf1 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.65;
    resize: vertical;
}

.helheim-view-message__editor:focus-within {
    border-color: rgba(239, 51, 69, 0.42);
    box-shadow: 0 0 0 3px rgba(215, 25, 41, 0.055);
}

.helheim-view-message__editor .sceditor-container,
.helheim-view-message__editor .tox-tinymce,
.helheim-view-message__editor .cke,
.helheim-view-message__editor .redactor-box {
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #16161b !important;
    box-shadow: none !important;
}

.helheim-view-message__reply-footer {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.helheim-view-message__reply-footer > span {
    display: flex;
    gap: 7px;
    align-items: center;
    color: #6f6f79;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.45;
}

.helheim-view-message__reply-footer > span i {
    margin: 0;
    color: #ef3345;
}

.helheim-view-message__submit {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(239, 51, 69, 0.42);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #b70f20, #790512);
    box-shadow: 0 10px 24px rgba(86, 2, 14, 0.2);
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    cursor: pointer;
}

.helheim-view-message__submit:hover {
    border-color: rgba(239, 51, 69, 0.64);
    background: linear-gradient(135deg, #d51a2d, #920718);
    transform: translateY(-1px);
}

.helheim-view-message__submit i {
    margin: 0;
}

.helheim-view-message__modal.ui.modal {
    overflow: hidden;
    border: 1px solid rgba(239, 51, 69, 0.2) !important;
    border-radius: 11px !important;
    background: #15151a !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55) !important;
}

.helheim-view-message__modal > .header {
    display: flex !important;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
    color: #fff !important;
    background: #19191f !important;
    font-size: 14px !important;
}

.helheim-view-message__modal > .header i {
    margin: 0;
    color: #ef3345;
}

.helheim-view-message__modal > .content {
    color: #bdbdc5 !important;
    background: #15151a !important;
}

.helheim-view-message__modal-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.helheim-view-message__modal-warning > span {
    display: inline-flex;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 8px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-view-message__modal-warning i {
    margin: 0;
}

.helheim-view-message__modal-warning p {
    margin: 5px 0 0 !important;
    line-height: 1.6;
}

.helheim-view-message__modal > .actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: #121217 !important;
}

.helheim-view-message__modal-button {
    display: inline-flex !important;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
}

.helheim-view-message__modal-button--cancel {
    border: 1px solid rgba(255, 255, 255, 0.085);
    color: #aaaab4 !important;
    background: rgba(255, 255, 255, 0.025);
}

.helheim-view-message__modal-button--confirm {
    border: 1px solid rgba(239, 51, 69, 0.42);
    color: #fff !important;
    background: linear-gradient(135deg, #b70f20, #790512);
}

@media (max-width: 900px) {
    .helheim-view-message__summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .helheim-view-message__summary-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .helheim-view-message__notice {
        margin-right: 0;
        margin-left: 0;
    }

    .helheim-view-message__summary {
        padding: 15px;
    }

    .helheim-view-message__summary-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .helheim-view-message__button {
        min-width: 0;
        padding: 9px 8px;
    }

    .helheim-view-message__author {
        padding: 11px 12px;
    }

    .helheim-view-message__content {
        padding: 15px 13px;
    }

    .helheim-view-message__reply-head {
        padding: 15px;
    }

    .helheim-view-message__reply-form {
        padding: 15px !important;
    }

    .helheim-view-message__editor textarea#reply {
        min-height: 190px;
    }

    .helheim-view-message__reply-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .helheim-view-message__submit {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .helheim-view-message__summary-actions {
        grid-template-columns: 1fr;
    }

    .helheim-view-message__button {
        width: 100%;
    }

    .helheim-view-message__reply-footer > span {
        align-items: flex-start;
    }
}


/* ==================================================
   HELHEIM — НОВОЕ ЛИЧНОЕ СООБЩЕНИЕ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-account-page--new-message .helheim-account-card--new-message {
    overflow: visible;
}

.helheim-new-message__error {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    max-width: 1127px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 9px;
    color: #e6adb4;
    background: rgba(143, 8, 26, 0.11);
    font-size: 11px;
    line-height: 1.55;
}

.helheim-new-message__error-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 8px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-new-message__error-icon i {
    margin: 0;
}

.helheim-new-message__error strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.helheim-new-message__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background: linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-new-message__head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-new-message__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.helheim-new-message__form {
    padding: 20px !important;
}

.helheim-new-message__field {
    margin: 0 0 19px !important;
}

.helheim-new-message__field > label {
    display: flex !important;
    gap: 10px;
    align-items: center;
    margin: 0 0 9px !important;
    color: #d7d7de !important;
}

.helheim-new-message__label-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.18);
    border-radius: 7px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.045);
}

.helheim-new-message__label-icon i {
    margin: 0;
    font-size: 11px;
}

.helheim-new-message__field > label strong {
    display: block;
    color: #ededf1;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.3;
}

.helheim-new-message__field > label small {
    display: block;
    margin-top: 3px;
    color: #71717c;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.35;
}

.helheim-new-message__form input[type="text"] {
    width: 100% !important;
    min-height: 46px !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-radius: 8px !important;
    color: #f0f0f4 !important;
    background: rgba(255, 255, 255, 0.022) !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 11px !important;
}

.helheim-new-message__form input[type="text"]::placeholder {
    color: #5f5f69 !important;
}

.helheim-new-message__form input[type="text"]:focus {
    border-color: rgba(239, 51, 69, 0.42) !important;
    background: rgba(215, 25, 41, 0.025) !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 41, 0.055) !important;
}

.helheim-new-message__recipients.ui.dropdown {
    min-height: 46px !important;
    padding: 10px 38px 8px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-radius: 8px !important;
    color: #ededf1 !important;
    background: rgba(255, 255, 255, 0.022) !important;
    box-shadow: none !important;
}

.helheim-new-message__recipients.ui.dropdown.active,
.helheim-new-message__recipients.ui.dropdown:focus {
    border-color: rgba(239, 51, 69, 0.42) !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 41, 0.055) !important;
}

.helheim-new-message__recipients > .dropdown.icon {
    top: 14px !important;
    right: 13px !important;
    color: #767680 !important;
}

.helheim-new-message__recipients > .default.text {
    margin-top: 4px !important;
    color: #656570 !important;
    font-size: 11px !important;
}

.helheim-new-message__recipients.ui.multiple.dropdown > .label {
    margin: 2px 5px 2px 0 !important;
    padding: 7px 9px !important;
    border: 1px solid rgba(239, 51, 69, 0.21) !important;
    border-radius: 6px !important;
    color: #efb0b7 !important;
    background: rgba(215, 25, 41, 0.065) !important;
    box-shadow: none !important;
    font-size: 9px !important;
    font-weight: 800 !important;
}

.helheim-new-message__recipients .menu {
    border: 1px solid rgba(239, 51, 69, 0.18) !important;
    border-radius: 8px !important;
    color: #c7c7cf !important;
    background: #17171d !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44) !important;
}

.helheim-new-message__recipients .menu > .item {
    display: flex !important;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    border-top-color: rgba(255, 255, 255, 0.05) !important;
    color: #bdbdc6 !important;
    background: transparent !important;
    font-size: 10px !important;
}

.helheim-new-message__recipients .menu > .item:hover,
.helheim-new-message__recipients .menu > .selected.item {
    color: #fff !important;
    background: rgba(215, 25, 41, 0.07) !important;
}

.helheim-new-message__recipients .menu > .item i {
    margin: 0 !important;
    color: #ef3345 !important;
}

.helheim-new-message__editor {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.016);
}

.helheim-new-message__editor textarea#reply {
    display: block;
    width: 100%;
    min-height: 240px;
    padding: 15px;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ededf1 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.65;
    resize: vertical;
}

.helheim-new-message__editor:focus-within {
    border-color: rgba(239, 51, 69, 0.42);
    box-shadow: 0 0 0 3px rgba(215, 25, 41, 0.055);
}

.helheim-new-message__editor .sceditor-container,
.helheim-new-message__editor .tox-tinymce,
.helheim-new-message__editor .cke,
.helheim-new-message__editor .redactor-box {
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #16161b !important;
    box-shadow: none !important;
}

.helheim-new-message__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 3px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.helheim-new-message__submit {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(239, 51, 69, 0.42);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #b70f20, #790512);
    box-shadow: 0 10px 24px rgba(86, 2, 14, 0.2);
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.helheim-new-message__submit:hover {
    border-color: rgba(239, 51, 69, 0.64);
    background: linear-gradient(135deg, #d51a2d, #920718);
    transform: translateY(-1px);
}

.helheim-new-message__submit i {
    margin: 0;
}

@media (max-width: 767px) {
    .helheim-new-message__error {
        margin-right: 0;
        margin-left: 0;
    }

    .helheim-new-message__head {
        padding: 15px;
    }

    .helheim-new-message__form {
        padding: 16px !important;
    }

    .helheim-new-message__editor textarea#reply {
        min-height: 210px;
    }

    .helheim-new-message__submit {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .helheim-new-message__field > label small {
        display: none;
    }
}
/* ==================================================
   HELHEIM — СПИСОК ЛИЧНЫХ СООБЩЕНИЙ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-account-page--messages .helheim-account-card--messages {
    overflow: hidden;
}

.helheim-account-messages__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-account-messages__head > div:first-child > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-account-messages__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.helheim-account-messages__head-actions {
    display: flex;
    gap: 9px;
    align-items: center;
}

.helheim-account-messages__new {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(239, 51, 69, 0.38);
    border-radius: 8px;
    color: #fff !important;
    background: linear-gradient(135deg, #b60f20, #790512);
    box-shadow: 0 10px 24px rgba(86, 2, 14, 0.2);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-account-messages__new:hover {
    border-color: rgba(239, 51, 69, 0.62);
    background: linear-gradient(135deg, #d51a2d, #920718);
    transform: translateY(-1px);
}

.helheim-account-messages__new i {
    margin: 0;
}

.helheim-account-messages__list {
    display: grid;
    gap: 10px;
    padding: 17px;
}

.helheim-account-message {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.42fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-account-message:hover {
    border-color: rgba(239, 51, 69, 0.2);
    background: rgba(215, 25, 41, 0.03);
    transform: translateY(-1px);
}

.helheim-account-message__main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 15px;
    color: #c9c9d0 !important;
    text-decoration: none !important;
}

.helheim-account-message__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.22);
    border-radius: 9px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.055);
}

.helheim-account-message__icon i {
    margin: 0;
    font-size: 14px;
}

.helheim-account-message__info {
    display: block;
    min-width: 0;
    flex: 1;
}

.helheim-account-message__title {
    display: block;
    margin-bottom: 5px;
    overflow: hidden;
    color: #f0f0f4;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-account-message__participants {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #84848e;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-account-message__participants a {
    color: #b5b5bd !important;
}

.helheim-account-message__arrow {
    flex: 0 0 auto;
    margin: 0 !important;
    color: #4f4f59;
    font-size: 9px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.helheim-account-message__main:hover .helheim-account-message__arrow {
    color: #ef3345;
    transform: translateX(2px);
}

.helheim-account-message__last {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(7, 7, 11, 0.2);
}

.helheim-account-message__avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    object-fit: cover;
    border: 2px solid rgba(239, 51, 69, 0.3);
    border-radius: 50%;
    background: #111116;
}

.helheim-account-message__last-info {
    min-width: 0;
}

.helheim-account-message__last-label {
    display: block;
    margin-bottom: 3px;
    color: #686873;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.helheim-account-message__user {
    display: block;
    max-width: 100%;
    margin-bottom: 3px;
    overflow: hidden;
    color: #dedee4 !important;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-account-message__date {
    display: block;
    color: #767680;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.35;
}

.helheim-account-message__popup.ui.popup {
    border: 1px solid rgba(239, 51, 69, 0.16) !important;
    color: #bdbdc5 !important;
    background: #17171d !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42) !important;
}

.helheim-account-message__popup .ui.header {
    color: #fff !important;
}

.helheim-account-messages__pagination {
    padding: 0 17px 17px;
}

.helheim-account-messages__pagination:empty {
    display: none;
}

.helheim-account-messages__empty {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 17px;
    padding: 30px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #8f8f99;
    background: rgba(255, 255, 255, 0.012);
    text-align: center;
}

.helheim-account-messages__empty-icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid rgba(239, 51, 69, 0.22);
    border-radius: 15px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.055);
}

.helheim-account-messages__empty-icon i {
    margin: 0;
    font-size: 22px;
}

.helheim-account-messages__empty strong {
    color: #f0f0f3;
    font-size: 14px;
}

.helheim-account-messages__empty p {
    margin: 7px 0 16px !important;
    color: #7d7d87;
    font-size: 10px;
    line-height: 1.5;
}

.helheim-account-messages__empty-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(239, 51, 69, 0.38);
    border-radius: 8px;
    color: #fff !important;
    background: linear-gradient(135deg, #b60f20, #790512);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none !important;
    text-transform: uppercase;
}

.helheim-account-messages__empty-button i {
    margin: 0;
}

@media (max-width: 900px) {
    .helheim-account-message {
        grid-template-columns: 1fr;
    }

    .helheim-account-message__last {
        border-top: 1px solid rgba(255, 255, 255, 0.055);
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .helheim-account-messages__head {
        padding: 15px;
    }

    .helheim-account-messages__new {
        min-width: 38px;
        padding: 9px 10px;
    }

    .helheim-account-messages__new span {
        display: none;
    }

    .helheim-account-messages__list {
        padding: 13px;
    }

    .helheim-account-message__main {
        padding: 12px;
    }

    .helheim-account-message__icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .helheim-account-message__title {
        font-size: 11px;
    }

    .helheim-account-message__last {
        padding: 11px 12px;
    }

    .helheim-account-messages__empty {
        min-height: 250px;
        margin: 13px;
    }

    .helheim-account-messages__pagination {
        padding: 0 13px 13px;
    }
}

@media (max-width: 390px) {
    .helheim-account-message__participants {
        white-space: normal;
    }
}


/* ==================================================
   HELHEIM — ПРОСМОТР ОТДЕЛЬНОГО УВЕДОМЛЕНИЯ
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-account-page--alert .helheim-account-card--alert {
    overflow: hidden;
}

.helheim-account-alert-view__head {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background: linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-account-alert-view__title-wrap {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.helheim-account-alert-view__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.27);
    border-radius: 10px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-account-alert-view__icon i {
    margin: 0;
    font-size: 15px;
}

.helheim-account-alert-view__heading {
    min-width: 0;
}

.helheim-account-alert-view__heading > span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-account-alert-view__heading h2 {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.helheim-account-alert-view__new {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 5px 7px;
    border: 1px solid rgba(79, 200, 135, 0.28);
    border-radius: 6px;
    color: #86d9aa !important;
    background: rgba(31, 142, 78, 0.11);
    font-size: 7px !important;
    font-weight: 900;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

.helheim-account-alert-view__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.helheim-account-alert-view__delete-form {
    display: inline-flex;
    margin: 0 !important;
}

.helheim-account-alert-view__button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: #c5c5cd !important;
    background: rgba(255, 255, 255, 0.025);
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.helheim-account-alert-view__button i {
    margin: 0;
}

.helheim-account-alert-view__button:hover {
    border-color: rgba(239, 51, 69, 0.28);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.055);
    transform: translateY(-1px);
}

.helheim-account-alert-view__button--view {
    border-color: rgba(81, 151, 217, 0.24);
    color: #a8c7e5 !important;
    background: rgba(37, 103, 165, 0.08);
}

.helheim-account-alert-view__button--view:hover {
    border-color: rgba(81, 151, 217, 0.42);
    background: rgba(37, 103, 165, 0.14);
}

.helheim-account-alert-view__button--delete {
    border-color: rgba(239, 51, 69, 0.32);
    color: #f0aab2 !important;
    background: rgba(215, 25, 41, 0.07);
}

.helheim-account-alert-view__button--delete:hover {
    border-color: rgba(239, 51, 69, 0.58);
    background: rgba(215, 25, 41, 0.14);
}

.helheim-account-alert-view__message {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 16px 18px 0;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.55;
}

.helheim-account-alert-view__message--error {
    border: 1px solid rgba(239, 51, 69, 0.27);
    color: #e5a6ad;
    background: rgba(143, 8, 26, 0.11);
}

.helheim-account-alert-view__message i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #ef3345;
}

.helheim-account-alert-view__content {
    min-height: 260px;
    padding: 24px 22px;
    color: #c7c7cf !important;
    font-size: 12px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.helheim-account-alert-view__content a {
    color: #ef7f8b !important;
    text-decoration: underline;
    text-decoration-color: rgba(239, 51, 69, 0.35);
    text-underline-offset: 3px;
}

.helheim-account-alert-view__content a:hover {
    color: #fff !important;
    text-decoration-color: #ef3345;
}

.helheim-account-alert-view__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.helheim-account-alert-view__content blockquote {
    margin: 16px 0;
    padding: 13px 15px;
    border-left: 3px solid #df2437;
    border-radius: 0 8px 8px 0;
    color: #b9b9c1;
    background: rgba(215, 25, 41, 0.045);
}

.helheim-account-alert-view__content code {
    padding: 2px 5px;
    border-radius: 4px;
    color: #ef9aa3;
    background: rgba(255, 255, 255, 0.05);
}

.helheim-account-alert-view__footer {
    display: flex;
    justify-content: flex-start;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(8, 8, 12, 0.24);
}

.helheim-account-alert-view__back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8f8f99 !important;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.helheim-account-alert-view__back-link:hover {
    color: #ef3345 !important;
}

.helheim-account-alert-view__back-link i {
    margin: 0;
}

@media (max-width: 900px) {
    .helheim-account-alert-view__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .helheim-account-alert-view__actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .helheim-account-alert-view__head {
        padding: 15px;
    }

    .helheim-account-alert-view__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .helheim-account-alert-view__heading h2 {
        font-size: 14px !important;
    }

    .helheim-account-alert-view__actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .helheim-account-alert-view__delete-form {
        display: contents;
    }

    .helheim-account-alert-view__button {
        min-width: 0;
        padding: 9px 7px;
    }

    .helheim-account-alert-view__button span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .helheim-account-alert-view__content {
        min-height: 210px;
        padding: 19px 16px;
        font-size: 11px;
    }

    .helheim-account-alert-view__message {
        margin-right: 14px;
        margin-left: 14px;
    }
}

@media (max-width: 390px) {
    .helheim-account-alert-view__actions {
        grid-template-columns: 1fr;
    }

    .helheim-account-alert-view__button {
        width: 100%;
    }

    .helheim-account-alert-view__footer {
        padding: 13px 15px;
    }
}


/* ==================================================
   HELHEIM — УВЕДОМЛЕНИЯ ЛИЧНОГО КАБИНЕТА
   Блок расположен в начале custom.css для надёжной загрузки.
   ================================================== */

.helheim-account-page--alerts .helheim-account-card--alerts {
    overflow: hidden;
}

.helheim-account-page--alerts .helheim-account-card__head--alerts {
    align-items: center;
}

.helheim-account-alerts__head-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.helheim-account-alerts__delete-form {
    margin: 0 !important;
}

.helheim-account-alerts__delete-all {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(239, 51, 69, 0.34);
    border-radius: 8px;
    color: #f3b3ba;
    background: rgba(215, 25, 41, 0.075);
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-account-alerts__delete-all:hover {
    border-color: rgba(239, 51, 69, 0.58);
    color: #fff;
    background: rgba(215, 25, 41, 0.14);
    transform: translateY(-1px);
}

.helheim-account-alerts__delete-all i {
    margin: 0;
}

.helheim-account-alerts__message {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 16px 16px 0;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.55;
}

.helheim-account-alerts__message--error {
    border: 1px solid rgba(239, 51, 69, 0.27);
    color: #e5a6ad;
    background: rgba(143, 8, 26, 0.11);
}

.helheim-account-alerts__message i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #ef3345;
}

.helheim-account-alerts__list {
    display: grid;
    gap: 9px;
    padding: 17px;
}

.helheim-account-alert {
    display: flex;
    min-width: 0;
    min-height: 68px;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    color: #b8b8c2 !important;
    background: rgba(255, 255, 255, 0.018);
    text-decoration: none !important;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-account-alert:hover {
    border-color: rgba(239, 51, 69, 0.2);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.035);
    transform: translateY(-1px);
}

.helheim-account-alert--unread {
    border-color: rgba(239, 51, 69, 0.18);
    background:
        linear-gradient(90deg, rgba(128, 4, 20, 0.1), rgba(255, 255, 255, 0.018));
    box-shadow: inset 3px 0 0 #df2437;
}

.helheim-account-alert__status {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 9px;
    color: #85858f;
    background: rgba(255, 255, 255, 0.025);
}

.helheim-account-alert--unread .helheim-account-alert__status {
    border-color: rgba(239, 51, 69, 0.27);
    color: #ef3345;
    background: rgba(215, 25, 41, 0.065);
}

.helheim-account-alert__status i {
    margin: 0;
    font-size: 14px;
}

.helheim-account-alert__body {
    display: block;
    min-width: 0;
    flex: 1;
}

.helheim-account-alert__title {
    display: block;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
    color: #d1d1d8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.helheim-account-alert--unread .helheim-account-alert__title {
    color: #fff;
    font-weight: 900;
}

.helheim-account-alert__date {
    display: block;
    color: #777782;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}

.helheim-account-alert__badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 6px;
    color: #ef7380;
    background: rgba(215, 25, 41, 0.07);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.helheim-account-alert__arrow {
    flex: 0 0 auto;
    margin: 0 !important;
    color: #4f4f59;
    font-size: 9px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.helheim-account-alert:hover .helheim-account-alert__arrow {
    color: #ef3345;
    transform: translateX(2px);
}

.helheim-account-alerts__empty {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #8f8f99;
    background: rgba(255, 255, 255, 0.012);
    text-align: center;
}

.helheim-account-alerts__empty-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid rgba(239, 51, 69, 0.22);
    border-radius: 14px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.055);
}

.helheim-account-alerts__empty-icon i {
    margin: 0;
    font-size: 21px;
}

.helheim-account-alerts__empty strong {
    color: #f0f0f3;
    font-size: 14px;
}

.helheim-account-alerts__empty p {
    margin: 7px 0 0 !important;
    color: #7d7d87;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .helheim-account-page--alerts .helheim-account-card__head--alerts {
        align-items: flex-start;
    }

    .helheim-account-alerts__head-actions {
        align-items: flex-end;
        flex-direction: column-reverse;
    }

    .helheim-account-alerts__delete-all {
        min-height: 34px;
        padding: 8px 10px;
    }

    .helheim-account-alerts__delete-all span {
        display: none;
    }

    .helheim-account-alerts__list {
        padding: 13px;
    }

    .helheim-account-alert {
        min-height: 62px;
        gap: 10px;
        padding: 11px;
    }

    .helheim-account-alert__status {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .helheim-account-alert__badge {
        display: none;
    }
}

@media (max-width: 390px) {
    .helheim-account-alert__title {
        font-size: 10px;
    }

    .helheim-account-alert__date {
        font-size: 8px;
    }
}


/* ==================================================
   HELHEIM — МОБИЛЬНОЕ МЕНЮ V3
   Критические стили находятся в начале файла, чтобы редактор
   NamelessMC не обрезал их из-за большого размера custom.css.
   ================================================== */

.helheim-sidebar .helheim-sidebar__account-title {
    padding: 15px 17px 8px !important;
    border-top: 1px solid rgba(239, 51, 69, 0.18) !important;
    color: #ef3345 !important;
    background: transparent !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    letter-spacing: 0.17em !important;
}

.helheim-sidebar .helheim-sidebar__account-title::before {
    display: none !important;
}

.helheim-sidebar .helheim-mobile-account-v3 {
    margin: 0 !important;
    padding: 0 11px 10px !important;
}

.helheim-sidebar .helheim-mobile-account-v3__profile {
    display: flex !important;
    min-height: 60px !important;
    align-items: center !important;
    gap: 11px !important;
    margin: 4px 0 8px !important;
    padding: 11px 12px !important;
    border: 1px solid rgba(239, 51, 69, 0.18) !important;
    border-radius: 9px !important;
    background:
        linear-gradient(135deg, rgba(116, 4, 19, 0.14), rgba(255, 255, 255, 0.018)) !important;
    box-shadow: none !important;
}

.helheim-sidebar .helheim-mobile-account-v3__profile-icon {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    flex: 0 0 38px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border: 1px solid rgba(239, 51, 69, 0.36) !important;
    border-radius: 9px !important;
    color: #ef3345 !important;
    background: rgba(215, 25, 41, 0.075) !important;
}

.helheim-sidebar .helheim-mobile-account-v3__profile-icon i {
    width: auto !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: 15px !important;
}

.helheim-sidebar .helheim-mobile-account-v3__profile-text {
    min-width: 0 !important;
    flex: 1 !important;
}

.helheim-sidebar .helheim-mobile-account-v3__profile-text small {
    display: block !important;
    margin: 0 0 4px !important;
    color: rgba(255, 255, 255, 0.43) !important;
    font-size: 7px !important;
    font-weight: 900 !important;
    letter-spacing: 0.14em !important;
    line-height: 1.2 !important;
}

.helheim-sidebar .helheim-mobile-account-v3__profile-text strong {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.helheim-sidebar .helheim-mobile-account-v3__actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 0 9px !important;
}

.helheim-sidebar .helheim-mobile-account-v3__action {
    display: flex !important;
    min-width: 0 !important;
    min-height: 43px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding: 7px 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.065) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    background: rgba(255, 255, 255, 0.018) !important;
    box-shadow: none !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-decoration: none !important;
}

.helheim-sidebar .helheim-mobile-account-v3__action:hover {
    border-color: rgba(239, 51, 69, 0.25) !important;
    color: #fff !important;
    background: rgba(215, 25, 41, 0.06) !important;
}

.helheim-sidebar .helheim-mobile-account-v3__action i,
.helheim-sidebar .helheim-mobile-account-v3__action .icon {
    width: auto !important;
    margin: 0 !important;
    color: #ef3345 !important;
    font-size: 12px !important;
}

.helheim-sidebar .helheim-mobile-account-v3__action span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: inherit !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.helheim-sidebar .helheim-mobile-account-v3__services {
    display: grid !important;
    gap: 5px !important;
    margin: 0 0 8px !important;
}

.helheim-sidebar .helheim-mobile-account-v3__service {
    display: flex !important;
    min-height: 44px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.055) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.74) !important;
    background: rgba(255, 255, 255, 0.014) !important;
    text-decoration: none !important;
}

.helheim-sidebar .helheim-mobile-account-v3__service:hover {
    border-color: rgba(239, 51, 69, 0.22) !important;
    color: #fff !important;
    background: rgba(215, 25, 41, 0.05) !important;
}

.helheim-sidebar .helheim-mobile-account-v3__service-icon {
    display: inline-flex !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(239, 51, 69, 0.17) !important;
    border-radius: 7px !important;
    color: #ef3345 !important;
    background: rgba(215, 25, 41, 0.045) !important;
}

.helheim-sidebar .helheim-mobile-account-v3__service-icon i,
.helheim-sidebar .helheim-mobile-account-v3__service-icon .icon {
    width: auto !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: 11px !important;
}

.helheim-sidebar .helheim-mobile-account-v3__service-title {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.helheim-sidebar .helheim-mobile-account-v3__service > i.chevron {
    width: auto !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.25) !important;
    font-size: 8px !important;
}

.helheim-sidebar .helheim-mobile-account-v3__direct-links {
    display: grid !important;
    gap: 5px !important;
}

.helheim-sidebar .helheim-mobile-account-v3__direct {
    display: flex !important;
    min-height: 43px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.065) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.78) !important;
    background: rgba(255, 255, 255, 0.018) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.helheim-sidebar .helheim-mobile-account-v3__direct i,
.helheim-sidebar .helheim-mobile-account-v3__direct .icon {
    width: auto !important;
    margin: 0 !important;
    color: #ef3345 !important;
}

.helheim-sidebar .helheim-mobile-account-v3__direct--primary,
.helheim-sidebar .helheim-mobile-account-v3__direct--panel {
    border-color: rgba(239, 51, 69, 0.4) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #b50e20, #760511) !important;
}

.helheim-sidebar .helheim-mobile-account-v3__direct--primary i,
.helheim-sidebar .helheim-mobile-account-v3__direct--panel i {
    color: #fff !important;
}

@media only screen and (max-width: 768px) {
    .helheim-sidebar {
        width: min(82vw, 310px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        padding-bottom: max(14px, env(safe-area-inset-bottom)) !important;
    }

    .helheim-sidebar .helheim-sidebar__server {
        margin-top: 2px !important;
        padding: 12px 13px 15px !important;
    }

    .helheim-sidebar .helheim-sidebar__server button {
        padding: 9px !important;
        font-size: 11px !important;
    }
}

@media only screen and (max-width: 360px) {
    .helheim-sidebar .helheim-mobile-account-v3__actions {
        grid-template-columns: 1fr !important;
    }

    .helheim-sidebar .helheim-mobile-account-v3__action {
        min-height: 38px !important;
        flex-direction: row !important;
    }
}


/*
 *  [ HTML & BODY ]
 */

html,
body {
    background: #f3f6fa;
}

body.pushable>.pusher {
    background: #f3f6fa;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

#wrapper {
    margin-bottom: 1rem;
}

/*
   *  [ NAVIGATION BAR ]
   */

.ui.secondary.menu {
    background: #fff;
    padding: 10px;
    margin: 0;
}

.ui.secondary.menu .toc.item {
    display: none;
}

.ui.secondary.menu .toc.item i {
    margin: 0;
}

#navbar .item i {
    margin-right: 5px;
}

.ui.secondary.menu .ui.medium.label {
    padding: .68em 1em .5em .5em;
}

.ui.secondary.menu .ui.medium.label img {
    font-size: 1.09rem;
    margin: -.6em .5em -.6em -.5em;
}

.ui.secondary.inverted.menu .popup .list a.item {
    color: rgba(0, 0, 0, .87) !important;
}

@media only screen and (max-width: 768px) {

    .ui.secondary.menu .menu,
    .ui.secondary.menu .item {
        display: none;
    }

    .ui.secondary.menu .toc.item {
        display: block;
    }
}

.ui.secondary.menu .ui.popup {
    min-width: 200px;
}

.ui.secondary.menu .ui.popup a:not([href]) {
    cursor: default !important;
}

.ui.vertical.inverted.sidebar.menu.left .item .header span.icon {
    float: right;
}

/*
   *  [ HEADER ]
   */

.ui.masthead {
    background: linear-gradient(90deg, rgb(41, 117, 286) 0%, rgb(2, 117, 216) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    padding: 4rem 0;
    border-radius: 0;
    color: #fff;
}

.ui.masthead .connect-server {
    background: rgba(255, 255, 255, .2);
    width: fit-content;
    padding: 1rem 1.5rem;
    margin-left: auto;
    border-radius: .4rem;
    text-align: center;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .1);
}

@media (max-width: 768px) {
    .ui.masthead .ui.grid .ui.row .column>* {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

.ui.masthead .connect-server .ui.header {
    margin: 0;
    color: #fff;
}

/*
   *  -[ SEGMENT ]-
   */

.ui.segment {
    background: #fff;
    border-radius: .28571429rem;
    border: none;
    -webkit-box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
    box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
}

.ui.segment .ui.list .list>.item .header,
.ui.segment .ui.list>.item .header {
    display: inline-block;
}

.ui.secondary.segment.segment.segment.segment.segment:not(.inverted) {
    border-top: none;
}

/*
   *  [ NEWS POST ]
   */

#news-post .badge,
#news-post .ui.label {
    position: absolute;
    margin: 0;
    padding: .75em 1em;
    width: auto;
    top: 0;
    right: 0;
    text-transform: uppercase;
    border-radius: 0 .21428571rem 0 .28571429rem;
}

/*
   *  [ FORUM NODE ]
   */

#forum-node #last-post {
    width: 250px;
}

#forum-node #last-post .avatar {
    margin: 2px 10px 0 0;
}

/*
   *  [ FORUM PAGE ]
   */

#sticky-threads tbody tr td:last-child:not(:first-child),
#normal-threads tbody tr td:last-child:not(:first-child) {
    text-align: right;
}

#sticky-threads tbody tr td:last-child .ui.image.header .image,
#normal-threads tbody tr td:last-child .ui.image.header .image {
    float: right;
    margin-left: 1rem;
    margin-top: .24rem;
}

#sticky-threads .badge,
#sticky-threads .ui.label,
#normal-threads .badge,
#normal-threads .ui.label {
    position: relative;
    top: -1.2px;
    padding: .3rem .5rem;
    font-size: .7rem;
    margin: 0;
    margin-bottom: .1rem;
    margin-right: .2rem;
}

/*
   *  [ TOPIC PAGE ]
   */

#topic-post #post-sidebar .ui.small.image,
#topic-reply #reply-sidebar .ui.small.image {
    width: 120px;
}

#topic-post #post-sidebar h3,
#topic-reply #reply-sidebar h3 {
    margin: 1rem 0;
}

@media (max-width: 768px) {

    #topic-post #post-sidebar .ui.list,
    #topic-reply #reply-sidebar .ui.list {
        display: none;
    }
}

#topic-post #post-meta [class*="res right floated"] {
    margin-top: -5px;
}

@media (max-width: 576px) {
    #topic-post #post-meta {
        text-align: center;
    }

    #topic-post #post-meta [class*="res right floated"] {
        margin-top: 0;
    }
}

@media only screen and (min-width: 768px) {

    #topic-post #post-sidebar,
    #topic-reply #reply-sidebar {
        border-right: solid 1px rgba(0, 0, 0, .1);
        margin-top: -1.5rem;
        margin-bottom: -1.5rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #topic-post #post-sidebar:before,
    #topic-reply #reply-sidebar:before {
        content: "";
        height: 0;
        border: 8px solid transparent;
        border-right: 8px solid rgba(0, 0, 0, .2);
        position: absolute;
        top: 75px;
        right: 0;
    }

    #topic-post #post-sidebar:after,
    #topic-reply #reply-sidebar:after {
        content: "";
        height: 0;
        border: 8px solid transparent;
        border-right: 8px solid #fff;
        position: absolute;
        top: 75px;
        right: -1px;
    }
}

@media only screen and (max-width: 768px) {

    #topic-post #post-sidebar,
    #topic-reply #reply-sidebar {
        border-bottom: solid 1px rgba(0, 0, 0, .1);
    }
}

.ui.comments {
    max-width: none;
}

.ui.grid.segment.leaderboard_table {
    margin-top: 0;
}

.leaderboard_table .ui.list {
    margin-left: -10px;
}

.leaderboard_table .ui.list li a {
    display: block;
    height: 100%;
    width: 100%;
}

.leaderboard_table .middle.aligned.content {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;;
    white-space: nowrap;
}

.leaderboard_table ol li:before {
    display: none;
}

#reactions {
    margin-top: 1rem;
    padding: .7em 1.2em .7em 1.2em;
    min-height: 32.5px;
    font-size: 12px;
}

#topic-post #post-content {
    display: flex;
    flex-direction: column;
}

#topic-post #post-content {
    padding: .7em 1.2em .7em 1.2em;
    min-height: 32.5px;
}

#post-content #reactions {
    margin-top: auto;
}

.reaction-button, .reaction-button-selected {
    margin-left: 5px;
    margin-right: 5px;
}

.reaction-button {
    opacity: 50%;
}

.reaction-button:hover, .reaction-button-selected {
    opacity: 100%;
    cursor: pointer;
}

#modal-reactions .ui.menu {
    overflow-x: auto;
}

/** Reaction modal tab buttons display non-native emojis as 2.5em wide by default */
.ui.menu .item > img:not(.ui) {
    width: 1em;
}

#topic-post #post-meta {
    margin-right: 1.3em;
}

#topic-post #post-sidebar .groups {
    text-align: center;
}

.inline.fields.labels {
    flex-wrap: wrap;
}

.ui.form .inline.fields.labels .field {
    padding-bottom: 1em;
}

.blockquote {
    border-left: 2px solid #ccc;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
}

/*
   *  [ ACCOUNT MESSAGES ]
   */

#view-message #message .header {
    font-size: 1.15rem;
    margin-top: 0.01rem;
}

#view-message #message .meta {
    line-height: 0.95rem;
}

@media (max-width: 768px) {
    #messages table thead tr th:first-child {
        width: 100%;
    }

    #messages table thead tr th:not(:first-child),
    #messages table tbody tr td:not(:first-child) {
        display: none;
    }
}

/*
   *  -[ 404 ERROR ]-
   */

#error-403 .ui.container,
#error-404 .ui.container,
#maintenance .ui.container {
    position: relative;
    min-height: 100vh;
}

#error-403 .ui.segment,
#error-404 .ui.segment,
#maintenance .ui.segment {
    position: absolute;
    transform: translate(-50%, -70%);
    top: 50%;
    left: 50%;
    width: 500px;
    text-align: center;
}

/*
   *  [ PROFILE PAGE ]
   */

#profile-header {
    background: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#profile-header .ui.header {
    margin: 8px 0;
}

#profile-header .ui.label {
    margin: 0;
}

#profile-header .actions {
    position: absolute;
    right: 1rem;
}

#profile a.ui.circular.image.avatar img {
    max-height: 35px;
}

/* Fix avatar images in labels being a few px from touching the top */
.ui.image.label img {
    vertical-align: top !important;
}

/*
   *  [ FORUM SEARCH ]
   */

#forum-search-result h3.ui.header {
    margin-top: 0;
    margin-bottom: 1rem;
}

/*
   *  [ SERVER PAGE ]
   */

[id*="server"] #server-players a:not(:last-child) {
    margin-right: .3rem;
}

/*
   *  [ WIDGETS ]
   */

[id*="widget"] .item .content {
    width: calc(100% - 40px) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .content * {
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .description {
    width: calc(100% - 120px) !important;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .description * {
    overflow: hidden;
}

#widget-online-users .content {
    padding-bottom: .5rem;
}

#widget-online-users .ui.image.label {
    margin-bottom: .5rem;
}

#widget-online-staff .ui.list .item {
    display: flex;
    align-items: center;
}

#widget-online-staff .ui.list .item .content {
    display: flex;
    align-items: center;
}

#widget-online-staff .ui.list .item .content .badge {
    margin-left: .35rem;
}

.fb-page {
    padding-bottom: 14px;
}

/*
   *  -[ FOOTER ]-
   */

.ui.footer.segment {
    position: relative;
    margin: auto 0 -.5rem 0;
    padding: 3em 0;
}

@media only screen and (max-width: 768px) {
    .ui.footer.segment {
        text-align: center;
    }
}

.ui.link.list.list .active.item {
    color: rgba(255, 255, 255, .5);
}

.ui.link.list.list .active.item a:not(.ui) {
    color: rgba(0, 0, 0, .87) !important;
}

.ui.link.list.list .active.item a:not(.ui):hover {
    background: rgba(0, 0, 0, .05) !important;
}

/*
   *  [ TABLE ]
   */

@media (max-width: 576px) {
    .ui.table.res thead tr th:first-child {
        width: 100%;
    }

    .ui.table.res thead tr th:not(:first-child),
    .ui.table.res tbody tr td:not(:first-child) {
        display: none;
    }
}

@media (max-width: 992px) {

    .ui.table.res thead tr th:first-child,
    .ui.table.res thead tr th:last-child {
        width: 50%;
    }

    .ui.table.res thead tr th:not(:first-child):not(:last-child),
    .ui.table.res tbody tr td:not(:first-child):not(:last-child) {
        display: none;
    }
}

/*
   *  -[ GRID ]-
   */

.ui.grid+.grid {
    margin-top: 0.3rem;
}

.ui.row+.row {
    padding-top: 0.3rem;
}

.ui.padded.grid:not(.vertically):not(.horizontally) {
    margin: 0 -1rem 0 -1rem !important;
}

@media only screen and (max-width: 768px) {
    .ui.padded.grid:not(.vertically):not(.horizontally) {
        margin: 0 !important;
    }
}

/*
   *  [ LINK LIST ]
   */

.ui.link.list.list .item a:not(.ui):hover,
.ui.link.list.list a.item:hover {
    background: none;
}

.ui.link.list.list .ui.divider {
    margin: 0.5rem 0;
}

/*
   *  [ USES POPUP ]
   */

#user-popup .header {
    text-align: center;
}

#user-popup .header .ui.header {
    padding: .5rem 0;
}

#user-popup .header .ui.image {
    margin: auto;
}

/*
   *  [ COOKIE NOTICE ]
   */

.cc-window.cc-floating {
    padding: 1rem 1.5rem;
    background-color: #fff !important;
    color: rgba(0, 0, 0, .68) !important;
    -webkit-box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
    box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
    border: none;
    border-radius: .28571429rem;
    cursor: default;
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 18px;
    opacity: 1;
    transition: .5s all ease;
}

.cc-window.cc-floating .cc-highlight .cc-btn:first-child {
    color: rgba(0, 0, 0, .68);
}

.cc-window.cc-floating .cc-highlight .cc-btn.cc-allow {
    -webkit-box-shadow: 0 0 0 0 rgb(34 36 38 / 15%) inset;
    box-shadow: 0 0 0 0 rgb(34 36 38 / 15%) inset;
    background-color: #2185d0;
    border-color: #fff;
    border-radius: 5px;
    color: #fff;
}

.cc-revoke.cc-bottom.cc-right {
    color: #fff;
}

/*
   *  [ SPOILER ]
   */

#tinymce .spoiler,
.spoiler {
    color: rgba(0, 0, 0, .87);
    border-radius: .28571429rem;
    -webkit-box-shadow: 0 0 0 1px rgba(34, 36, 38, .22) inset, 0 0 0 0 transparent;
    box-shadow: 0 0 0 1px rgba(34, 36, 38, .22) inset, 0 0 0 0 transparent;
    border: none;
}

#tinymce .spoiler-toggle,
.spoiler-toggle {
    color: rgba(0, 0, 0, .87);
}

#tinymce .spoiler-text,
.spoiler-text {
    color: rgba(0, 0, 0, .87);
}

/*
   *  [ MESSAGE ]
   */

.ui.message>.close.icon {
    right: .8em;
}

/*
   *  [ UPDATE MESSAGE ]
   */

#update-message {
    margin-bottom: 1rem;
}

#update-message>a {
    color: inherit;
    transition: all .2s ease;
}

#update-message>a:hover {
    filter: contrast(2);
}

#update-message>a>.icon {
    margin-right: .5em;
}

#update-message>a>.icon:not(.close) {
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    line-height: 1;
    font-size: 3em;
    opacity: .8;
}

/*
   *  [ PAGINATION ]
   */

.ui.mini.pagination.menu .item:first-child,
.ui.mini.pagination.menu .item:last-child {
    padding-top: .5rem;
}

/*
   *  -[ ALIGNMENTS ]-
   */

[class*="left aligned"] {
    text-align: left;
}

[class*="center aligned"] {
    text-align: center;
}

[class*="right aligned"] {
    text-align: right;
}

/*
   *  [ FLOATS ]
   */

[class*="left floated"],
[class*="res left floated"] {
    float: left;
}

[class*="right floated"],
[class*="res right floated"] {
    float: right;
}

[class*="right floated"]+.ui.segment,
[class*="res right floated"]+.ui.segment {
    margin-top: 1rem;
}

@media only screen and (max-width: 576px) {

    [class*="res right floated"],
    [class*="res left floated"] {
        margin-top: 1rem;
        float: none;
    }

    [class*="res right floated"] .button:not(.mini),
    [class*="res left floated"] .button:not(.mini) {
        width: 100%;
        text-align: center;
    }

    [class*="res right floated"] .button:not(:first-child),
    [class*="res left floated"] .button:not(:first-child) {
        margin-top: 0.5rem;
    }
}

/*
   *  [ DISPLAY ]
   */

[display="block"] {
    display: block !important;
}

[display="inline"] {
    display: inline !important;
}

[display="inline block"] {
    display: inline-block !important;
}

/*
   *  [ VISIBILITY ]
   */

@media only screen and (max-width: 576px) {

    [class*="mobile hidden"],
    [class*="tablet only"]:not(.mobile),
    [class*="computer only"]:not(.mobile),
    [class*="large screen only"]:not(.mobile),
    [class*="widescreen only"]:not(.mobile),
    [class*="or lower hidden"] {
        display: none !important;
    }
}

@media only screen and (min-width: 576px) and (max-width: 768px) {

    [class*="mobile only"]:not(.tablet),
    [class*="tablet hidden"],
    [class*="computer only"]:not(.tablet),
    [class*="large screen only"]:not(.tablet),
    [class*="widescreen only"]:not(.tablet),
    [class*="or lower hidden"]:not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {

    [class*="mobile only"]:not(.computer),
    [class*="tablet only"]:not(.computer),
    [class*="computer hidden"],
    [class*="large screen only"]:not(.computer),
    [class*="widescreen only"]:not(.computer),
    [class*="or lower hidden"]:not(.tablet):not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1280px) {

    [class*="mobile only"]:not([class*="large screen"]),
    [class*="tablet only"]:not([class*="large screen"]),
    [class*="computer only"]:not([class*="large screen"]),
    [class*="large screen hidden"],
    [class*="widescreen only"]:not([class*="large screen"]),
    [class*="or lower hidden"]:not(.computer):not(.tablet):not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 1280px) {

    [class*="mobile only"]:not([class*="widescreen"]),
    [class*="tablet only"]:not([class*="widescreen"]),
    [class*="computer only"]:not([class*="widescreen"]),
    [class*="large screen only"]:not([class*="widescreen"]),
    [class*="widescreen hidden"],
    [class*="widescreen or lower hidden"] {
        display: none !important;
    }
}

/*
   *  [ USER BADGES ]
   */

.badge {
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    margin: 0 .14285714em;
    background-color: #e8e8e8;
    background-image: none;
    padding: 0.3em .3em;
    color: rgba(0, 0, 0, .6);
    text-transform: none;
    font-size: .85714286rem;
    font-weight: 700;
    border: 0 solid transparent;
    border-radius: .28571429rem;
    -webkit-transition: background .1s ease;
    transition: background .1s ease;
}

a.badge:hover,
a.badge:focus {
    text-decoration: none;
}

.badge:empty {
    display: none;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}

a.badge-primary:hover,
a.badge-primary:focus {
    color: #fff;
    background-color: #0062cc;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

a.badge-secondary:hover,
a.badge-secondary:focus {
    color: #fff;
    background-color: #545b62;
}

.badge-success {
    color: #fff;
    background-color: #28a745;
}

a.badge-success:hover,
a.badge-success:focus {
    color: #fff;
    background-color: #1e7e34;
}

.badge-info {
    color: #fff;
    background-color: #17a2b8;
}

a.badge-info:hover,
a.badge-info:focus {
    color: #fff;
    background-color: #117a8b;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

a.badge-warning:hover,
a.badge-warning:focus {
    color: #212529;
    background-color: #d39e00;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

a.badge-danger:hover,
a.badge-danger:focus {
    color: #fff;
    background-color: #bd2130;
}

.badge-light {
    color: #212529;
    background-color: #f8f9fa;
}

a.badge-light:hover,
a.badge-light:focus {
    color: #212529;
    background-color: #dae0e5;
}

.badge-dark {
    color: #fff;
    background-color: #343a40;
}

a.badge-dark:hover,
a.badge-dark:focus {
    color: #fff;
    background-color: #1d2124;
}

/*
   *  [ OTHER ]
   */

select {
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    padding: 10px !important;
}

.ui.popup {
    z-index: 99999;
    text-align: left;
}

.ui.popup .ui.header {
    margin: 0;
}

.ui.message {
    margin: 0.5em 0;
}

.tox-tinymce {
    min-height: 300px;
}

.forum_post {
    word-wrap: break-word;
}

.forum_post img {
    overflow: auto;
    max-width: 100%;
    height: auto;
}

#post-content .forum_post {
    margin-bottom: 1rem;
}

.ui.checkbox .box:before {
    margin-top: 4px;
}

.ui.checkbox input:checked~.box:after {
    margin-top: 4px;
}

.ui.header .topic.title .label,
.ui.header .topic.title .badge {
    margin-top: -4px;
    vertical-align: middle;
}

#ie-message {
    display: none;
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    #ie-message {
        display: initial;
    }
}

#darkmode {
    display: inline-block;
}

.darkmode-toggle {
    opacity: 0;
    position: absolute;
}

.darkmode-toggle:checked+.darkmode-toggle-label .darkmode-ball {
    transform: translateX(24px);
}

.darkmode-toggle-label {
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    height: 26px;
    width: 50px;
    cursor: pointer;
}

.darkmode-ball {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    height: 22px;
    width: 22px;
    transition: transform 0.2s linear;
}

.fa-moon {
    color: #f1c400;
}

.fa-sun {
    color: #f39c00;
}

/*
 Member list search images
 */
.ui.search>.results .result .image {
    border-radius: 0;
}

/*
 Make new members grid avatars fit nicer
 */
#new-members-grid {
    padding: 0.5em;
}

#new-members-grid .column {
    padding: 0.5em;
}

/*
 *  [ EMOJI SIZING ]
 */

.joypixels,
.twemoji {
    height: 1em;
    width: 1em;
    vertical-align: middle;
}

/*
   *  [ DARK MODE ]
   */

body.dark,
body.dark>.pusher,
body.dark .ui.pointing.dropdown>.menu:after {
    background: #222;
}

body.dark .ui.secondary.menu:not(.inverted) {
    background: #303030;
    color: #fff;
}

body.dark .ui.secondary.menu .item.active {
    color: #fff;
}

body.dark .ui.top.attached.menu:not(.inverted) {
    background: #282828;
    border: 1px solid #282828;
}

body.dark .ui.top.attached.menu:not(.inverted) .item {
    color: #fff;
}

body.dark .ui.form input:not(.button) {
    background-color: #303030 !important;
}

body.dark .ui.modal {
    background-color: #303030;
    border: none;
}

body.dark .ui.modal>.content {
    background-color: #303030;
    border: 1px solid rgba(0, 0, 0, 0.125);
    color: #fff;
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.dark .ui.modal>.actions,
body.dark .ui.modal>.header {
    color: rgba(255, 255, 255, 0.6);
    background-color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

body.dark .ui.popup,
body.dark .ui.secondary.menu .ui.popup,
body.dark .ui.menu .dropdown.item .menu,
body.dark .ui.dropdown .menu {
    background-color: #222;
    border: 1px solid #444;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.default.button,
body.dark .ui.mini.icon.button,
body.dark .ui.top.right.attached.label {
    background-color: #282828;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.button.red {
    background-color: #db2828;
    color: #fff;
}

body.dark .ui.image.label,
body.dark .ui.selection.dropdown,
body.dark .ui.selection.visible.dropdown>.text:not(.default) {
    background-color: #282828;
    color: #fff;
}

body.dark .ui.selection.dropdown .ui.label {
    background-color: #303030;
    color: #fff;
}

body.dark .ui.form .ui.selection.dropdown input:not(.button) {
    background-color: #282828 !important;
}

body.dark .ui.form .field .ui.selection.active.dropdown .menu {
    border: 1px solid #282828;
}

body.dark .ui.form .field .ui.dropdown .menu .item {
    background-color: #282828;
    border-top: 1px solid #303030;
    color: #fff;
}

body.dark .ui.form .ui.text input:not(.button) {
    background-color: #282828 !important;
}

body.dark .ui.form .field input {
    background-color: #282828 !important;
}

body.dark .ui.card,
body.dark .ui.segment,
body.dark .ui.segment.attached:not(.basic),
body.dark .ui.vertical.menu {
    background-color: #303030;
    border: 1px solid rgba(0, 0, 0, 0.125);
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.dark .ui.vertical.menu .active.item {
    background-color: #464646;
}

body.dark .ui.vertical.pointing.menu .active.item:after {
    background-color: #464646;
    border-top: 1px solid #464646;
    border-right: 1px solid #464646;
}

body.dark .ui.segment#profile-header {
    border: none;
}

body.dark .ui.attached.tabular.menu {
    border-bottom: none;
}

body.dark .ui.attached.tabular.menu .item.active {
    background-color: #303030;
    border-color: transparent;
}

body.dark .ui.card .content.header {
    background-color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

body.dark .ui.card>.content>.description,
body.dark .ui.cards>.card>.content>.description,
body.dark .ui.card>.content>.description .list .right.floated,
body.dark .ui.card>.content>.header a,
body.dark .ui.segment a,
body.dark .ui.checkbox label,
body.dark .ui.checkbox+label,
body.dark .ui.list .list>.item .description,
body.dark .ui.list>.item .description,
body.dark .ui.vertical.menu .item.active,
body.dark .ui.vertical.menu .item:hover,
body.dark #user-popup .description,
body.dark .ui.search.dropdown.active>input.search,
body.dark .ui.search.selection.dropdown>input.search,
body.dark .ui.selection.dropdown .menu>.message,
body.dark .ui.attached.tabular.menu .item.active,
body.dark .ui.threaded.comments .comment .text {
    color: #fff;
}

body.dark .ui.segment .forum_post a,
body.dark .ui.comments .comment .forum_post a {
    color: #62b6f7;
}

body.dark .ui.card .meta,
.ui.cards>.card .meta,
body.dark .ui.header,
body.dark .ui.header .sub.header,
body.dark .ui.card>.content>.header,
body.dark .ui.cards>.card>.content>.header,
body.dark .ui.secondary.menu .item:not(.active),
body.dark .ui.card>.content>.description .list .item .text,
body.dark .ui.card>.extra,
body.dark .ui.cards>.card>.extra,
body.dark .ui.pointing.dropdown>.menu>.header,
body.dark .ui.dropdown .menu>.item,
body.dark .ui.breadcrumb .icon.divider,
body.dark .ui.vertical.menu .item,
body.dark .ui.segment,
body.dark .ui.form .field>label,
body.dark .ui.list .list>.item .header,
body.dark .ui.list>.item .header,
body.dark .ui.attached.tabular.menu .item,
body.dark .ui.comments .comment .metadata,
body.dark .ui.comments .comment .actions a,
body.dark .ui.card>.extra a:not(.ui),
body.dark .ui.cards>.card>.extra a:not(.ui),
body.dark .ui.relaxed.list .item .content,
body.dark .ui.horizontal.divider,
body.dark .ui.dropdown .menu>.header:not(.ui),
body.dark .ui.link.list.list .active.item,
body.dark .ui.link.list.list .active.item a:not(.ui) {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.menu .ui.dropdown .menu>.item:hover {
    background-color: rgba(0, 0, 0, .05) !important;
}

body.dark .ui.secondary.inverted.menu .popup .list a.item,
body.dark .ui.pointing.dropdown>.menu>.item {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.menu .ui.dropdown .menu>.item:hover,
body.dark .ui.dropdown .menu>.item:hover,
body.dark .ui.menu .ui.dropdown .menu>.item.active,
body.dark .ui.list>.item a.header,
body.dark .ui.link.list.list .active.item a:not(.ui):hover {
    color: #fff !important;
}

body.dark .ui.top.left.popup:before {
    background: #222;
    -webkit-box-shadow: 1px 1px 0 0 #444;
    box-shadow: 1px 1px 0 0 #444;
}

body.dark .ui.right.center.popup:before {
    background: #222;
    -webkit-box-shadow: -1px 1px 0 0 #444;
    box-shadow: -1px 1px 0 0 #444;
}

body.dark .ui.left.center.popup:before {
    background: #222;
    -webkit-box-shadow: 1px -1px 0 0 #444;
    box-shadow: 1px -1px 0 0 #444;
}

body.dark .ui.bottom.left.popup:before {
    background: #222;
    -webkit-box-shadow: 1px 1px 0 0 #222;
    box-shadow: 1px 1px 0 0 #222;
}

body.dark .ui.form textarea {
    background-color: #303030;
    border: 2px solid #282828;
    color: #fff;
}

body.dark .ui.form input:not([type]),
body.dark .ui.form input[type=date],
body.dark .ui.form input[type=datetime-local],
body.dark .ui.form input[type=email],
body.dark .ui.form input[type=file],
body.dark .ui.form input[type=number],
body.dark .ui.form input[type=password],
body.dark .ui.form input[type=search],
body.dark .ui.form input[type=tel],
body.dark .ui.form input[type=text],
body.dark .ui.form input[type=time],
body.dark .ui.form input[type=url] {
    color: #fff;
}

body.dark .ui.mini.message,
body.dark .ui.mini.info.message {
    background-color: #282828;
    box-shadow: 0 0 0 1px #282828 inset, 0 0 0 0 transparent;
    -webkit-box-shadow: 0 0 0 1px #282828 inset, 0 0 0 0 transparent;
}

body.dark .ui.pagination {
    background-color: #303030;
}

body.dark .ui.pagination.menu .item {
    color: #fff;
}

body.dark .ui.pagination.menu .item.active {
    background-color: #282828;
}

body.dark .ui.pagination .disabled.item {
    background-color: rgba(0, 0, 0, .05) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.table {
    background: #303030;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.table thead th {
    background-color: #282828;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.top.attached.header {
    background-color: #282828;
    border-color: #282828;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.table a {
    color: #fff;
}

body.dark .ui.selectable.table tbody tr:hover,
body.dark .ui.table tbody tr td.selectable:hover {
    color: rgba(255, 255, 255, 0.6) !important;
}

@media only screen and (min-width: 768px) {

    body.dark #topic-post #post-sidebar:after,
    #topic-reply #reply-sidebar:after {
        border-right: none;
    }
}

body.dark .forum_post,
body.dark .ui.comments .forum_post.text {
    color: #fff;
}

body.dark .ui.comments .comment .author {
    color: #fff;
}

body.dark .tox .tox-toolbar {
    background-color: #222;
}

body.dark .tox .tox-tbtn {
    color: #fff;
}

body.dark .tox .tox-tbtn:hover,
body.dark .tox .tox-tbtn--enabled,
body.dark .tox .tox-split-button:focus,
body.dark .tox .tox-edit-area__iframe {
    color: #fff;
}

body.dark .tox .tox-tbtn svg {
    fill: #fff;
}

/* Override TinyMCE blue-ish dark theme with neutral dark theme */

body.dark .tox .tox-menu,
body.dark .tox .tox-statusbar,
body.dark .tox .tox-menubar,
body.dark .tox .tox-toolbar,
body.dark .tox .tox-toolbar__overflow,
body.dark .tox .tox-toolbar__primary,
body.dark .tox .tox-dialog,
body.dark .tox .tox-dialog__header,
body.dark .tox .tox-dialog__footer,
body.dark .tox .tox-listboxfield .tox-listbox--select,
body.dark .tox .tox-textarea,
body.dark .tox .tox-textfield,
body.dark .tox .tox-toolbar-textfield,
body.dark .tox .tox-selectfield select {
    background-color: #222;
}

body.dark .tox .tox-dialog-wrap__backdrop {
    background-color: rgba(34, 34, 34, 0.7);
}

body.dark .tox .tox-collection--list .tox-collection__item--enabled {
    background-color: #444;
}

body.dark .tox .tox-collection--list .tox-collection__item--active {
    background-color: #666;
}

body.dark .ui.cards>.green.card,
body.dark .ui.green.card,
body.dark .ui.green.cards>.card {
    -webkit-box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #178f2b, 0 1px 3px 0 #d4d4d5;
    box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #178f2b, 0 1px 3px 0 #d4d4d5;
}

body.dark .ui.cards>.red.card,
body.dark .ui.red.card,
body.dark .ui.red.cards>.card {
    -webkit-box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #db2828, 0 1px 3px 0 #d4d4d5;
    box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #db2828, 0 1px 3px 0 #d4d4d5;
}

body.dark .ui.tabular.menu {
    border-color: #282828;
}

body.dark .ui.tabular.menu .item {
    color: #fff;
}

body.dark .ui.tabular.menu .active.item {
    background-color: #282828;
    border-color: #282828;
}

body.dark .cc-window.cc-floating {
    -webkit-box-shadow: 0 1px 3px 0 #444, 0 0 1px 1px #444;
    box-shadow: 0 1px 3px 0 #444, 0 0 1px 1px #444;
    background-color: #303030 !important;
    border: 1px solid rgba(0, 0, 0, 0.125);
    color: #fff !important;
}

body.dark .cc-window.cc-floating .cc-highlight .cc-btn:first-child,
body.dark .cc-window.cc-floating .cc-link {
    color: rgba(255, 255, 255, 0.6);
}

body.dark .cc-window.cc-floating .cc-highlight .cc-btn.cc-allow {
    background-color: #282828;
    border-color: transparent;
}

body.dark #reactions.ui.mini.message span {
    color: #fff;
}

body.dark #modal-reactions .ui.menu {
    background-color: #282828;
}

body.dark #modal-reactions .ui.menu .item {
    color: #fff;
}

body.dark #modal-reactions .ui.menu .item.active {
    background-color: #222;
}

body.dark #modal-reactions .ui.large.selection.divided.list.middle.aligned .item .content {
    color: #fff;
}

body.dark ::-webkit-scrollbar-corner {
    background-color: transparent;
}

/*
 * Colours
 */

body.dark .white {
    color: #fff;
}

/*
 * Accessiblity
 */

.screenreader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ==================================================
   HELHEIM — ЧИСТЫЕ ФИНАЛЬНЫЕ СТИЛИ
   ================================================== */

body.dark,
body.dark > .pusher {
    background: #0d0d10 !important;
}

/* ---------- Баннер ---------- */

.ui.masthead {
    position: relative;
    display: flex;
    min-height: clamp(250px, 18vw, 320px) !important;
    align-items: center;
    overflow: hidden;
    margin-bottom: 24px !important;
    padding: 0 !important;
    border-bottom: 2px solid #a60f1a;
    border-radius: 0;
    background-position: center 58% !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    box-shadow:
        inset 0 -75px 95px rgba(0, 0, 0, 0.74),
        0 9px 28px rgba(0, 0, 0, 0.45) !important;
}

.ui.masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.38) 0%,
            rgba(0, 0, 0, 0.02) 36%,
            rgba(0, 0, 0, 0.03) 67%,
            rgba(0, 0, 0, 0.46) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 0%,
            rgba(0, 0, 0, 0.02) 55%,
            rgba(0, 0, 0, 0.68) 100%
        );
}

/* Название и карточка онлайна уже находятся на самом баннере */
.ui.masthead > .ui.container {
    display: none !important;
}

/* ---------- Контейнер главной ---------- */

.helheim-main-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.helheim-home {
    --helheim-red: #d71929;
    --helheim-red-bright: #ef3345;
    --helheim-red-dark: #8f0d18;
    --helheim-card: #18181d;
    --helheim-card-deep: #101014;
    --helheim-border: rgba(215, 25, 41, 0.34);
    --helheim-text: #f6f6f7;
    --helheim-muted: #aaaab3;

    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 42px;
    color: var(--helheim-text);
    font-family: inherit;
}

.helheim-home *,
.helheim-home *::before,
.helheim-home *::after {
    box-sizing: border-box;
}

.helheim-section {
    padding: 38px 0 16px;
}

.helheim-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--helheim-red-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* ---------- Первый блок ---------- */

.helheim-intro {
    position: relative;
    overflow: hidden;
    margin-bottom: 26px;
    padding: clamp(30px, 4vw, 50px);
    border: 1px solid var(--helheim-border);
    border-radius: 11px;
    background:
        radial-gradient(
            circle at 91% 8%,
            rgba(190, 0, 25, 0.23),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            rgba(28, 28, 34, 0.99),
            rgba(9, 9, 12, 0.99)
        );
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.34),
        inset 0 0 70px rgba(125, 0, 15, 0.08);
}

.helheim-intro::after {
    content: "";
    position: absolute;
    top: -115px;
    right: -70px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(215, 25, 41, 0.18);
    transform: rotate(45deg);
}

.helheim-intro__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.helheim-intro h1 {
    max-width: 820px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.02;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.helheim-intro__lead {
    max-width: 760px;
    margin: 0;
    color: var(--helheim-muted);
    font-size: 16px;
    line-height: 1.72;
}

.helheim-server-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.helheim-server-info__item {
    min-width: 205px;
    padding: 13px 17px;
    border-left: 3px solid var(--helheim-red);
    background: rgba(255, 255, 255, 0.04);
}

.helheim-server-info small,
.helheim-ip-card small {
    display: block;
    margin-bottom: 4px;
    color: var(--helheim-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.helheim-server-info strong,
.helheim-ip-card strong {
    color: #fff;
    font-size: 17px;
}

/* ---------- Кнопки ---------- */

.helheim-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.helheim-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.helheim-button:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.helheim-button--primary {
    border: 0;
    color: #fff !important;
    background: linear-gradient(
        135deg,
        var(--helheim-red),
        var(--helheim-red-dark)
    );
    box-shadow: 0 8px 25px rgba(190, 0, 25, 0.3);
}

.helheim-button--primary:hover {
    background: linear-gradient(135deg, #ef293b, #a70c19);
}

.helheim-button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.045);
}

.helheim-button--secondary:hover {
    border-color: rgba(215, 25, 41, 0.75);
    background: rgba(215, 25, 41, 0.12);
}

.helheim-button--ghost {
    border: 1px solid rgba(215, 25, 41, 0.45);
    color: #fff !important;
    background: rgba(120, 4, 17, 0.16);
}

.helheim-button--ghost:hover {
    border-color: var(--helheim-red-bright);
    background: rgba(215, 25, 41, 0.17);
}

.helheim-button.is-copied,
.helheim-ip-card.is-copied {
    border-color: rgba(95, 230, 140, 0.7) !important;
    background: rgba(28, 135, 68, 0.28) !important;
}

/* ---------- Заголовки разделов ---------- */

.helheim-section-heading {
    max-width: 850px;
    margin-bottom: 25px;
}

.helheim-section-heading h2,
.helheim-community__heading h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.08;
    text-transform: uppercase;
}

.helheim-section-heading p,
.helheim-community__heading p {
    margin: 0;
    color: var(--helheim-muted);
    line-height: 1.65;
}

/* ---------- Возможности ---------- */

.helheim-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.helheim-feature {
    position: relative;
    min-height: 205px;
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background:
        linear-gradient(
            145deg,
            rgba(31, 31, 37, 0.99),
            rgba(16, 16, 20, 0.99)
        );
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.helheim-feature:hover {
    border-color: rgba(215, 25, 41, 0.58);
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.helheim-feature__number {
    position: absolute;
    top: 13px;
    right: 18px;
    color: rgba(215, 25, 41, 0.18);
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
}

.helheim-feature h3 {
    position: relative;
    margin: 0 0 13px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 20px;
}

.helheim-feature h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 38px;
    height: 2px;
    background: var(--helheim-red);
}

.helheim-feature p {
    position: relative;
    margin: 0;
    color: var(--helheim-muted);
    line-height: 1.65;
}

/* ---------- CTA с IP ---------- */

.helheim-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 32px;
    padding: 31px 34px;
    border: 1px solid rgba(215, 25, 41, 0.45);
    border-radius: 9px;
    background:
        linear-gradient(
            110deg,
            rgba(123, 5, 18, 0.58),
            rgba(18, 18, 23, 0.99) 62%
        );
}

.helheim-cta h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(23px, 2.5vw, 30px);
}

.helheim-cta p {
    margin: 0;
    color: var(--helheim-muted);
}

.helheim-ip-card {
    flex: 0 0 auto;
    min-width: 270px;
    padding: 17px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.helheim-ip-card:hover {
    border-color: rgba(215, 25, 41, 0.7);
    transform: translateY(-2px);
}

/* ---------- Как начать ---------- */

.helheim-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.helheim-step {
    display: flex;
    min-height: 160px;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background:
        linear-gradient(
            145deg,
            rgba(31, 31, 37, 0.99),
            rgba(16, 16, 20, 0.99)
        );
}

.helheim-step__number {
    flex: 0 0 auto;
    color: var(--helheim-red-bright);
    font-size: 27px;
    font-weight: 900;
    line-height: 1;
}

.helheim-step h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
}

.helheim-step p {
    margin: 0;
    color: var(--helheim-muted);
    line-height: 1.6;
}

.helheim-step strong {
    color: #fff;
}

/* ---------- Сообщество ---------- */

.helheim-community {
    margin-top: 38px;
    padding: 36px;
    border: 1px solid rgba(215, 25, 41, 0.31);
    border-radius: 10px;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(215, 25, 41, 0.16),
            transparent 35%
        ),
        #141418;
}

.helheim-community__heading {
    max-width: 830px;
    margin-bottom: 26px;
}

.helheim-community-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.helheim-community-card {
    position: relative;
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    color: #fff !important;
    background:
        linear-gradient(
            145deg,
            rgba(38, 38, 45, 0.96),
            rgba(17, 17, 21, 0.99)
        );
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

a.helheim-community-card:hover {
    border-color: rgba(215, 25, 41, 0.66);
    color: #fff !important;
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.31);
}

.helheim-community-card::before {
    content: "";
    position: absolute;
    top: -48px;
    right: -48px;
    width: 118px;
    height: 118px;
    border: 1px solid rgba(215, 25, 41, 0.19);
    transform: rotate(45deg);
}

.helheim-community-card__status {
    position: absolute;
    top: 14px;
    left: 16px;
    color: #a7a7b0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.helheim-community-card__status.is-online {
    color: var(--helheim-red-bright);
}

.helheim-community-card strong {
    position: relative;
    margin-bottom: 7px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0.06em;
}

.helheim-community-card small {
    position: relative;
    color: var(--helheim-muted);
    line-height: 1.45;
}

.helheim-community-card.is-disabled {
    opacity: 0.56;
    cursor: not-allowed;
}

.helheim-community-card--donate {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(215, 25, 41, 0.26),
            transparent 52%
        ),
        linear-gradient(
            145deg,
            rgba(56, 18, 24, 0.98),
            rgba(19, 17, 21, 0.99)
        );
}

/* ---------- Финальный призыв ---------- */

.helheim-final {
    position: relative;
    overflow: hidden;
    margin: 42px 0 0;
    padding: clamp(34px, 5vw, 55px);
    border: 1px solid rgba(215, 25, 41, 0.5);
    border-radius: 10px;
    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(215, 25, 41, 0.21),
            transparent 34%
        ),
        linear-gradient(
            115deg,
            rgba(120, 6, 19, 0.58),
            rgba(15, 15, 19, 0.99) 64%
        );
}

.helheim-final__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.helheim-final h2 {
    margin: 0 0 13px;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.07;
    text-transform: uppercase;
}

.helheim-final p {
    max-width: 690px;
    margin: 0;
    color: #b2b2ba;
    font-size: 15px;
    line-height: 1.68;
}

/* ---------- Адаптивность ---------- */

@media only screen and (max-width: 1100px) {
    .helheim-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .helheim-community-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 768px) {
    .ui.masthead {
        min-height: 225px !important;
        background-position: 52% center !important;
    }

    .helheim-main-column {
        padding-right: 0.65rem !important;
        padding-left: 0.65rem !important;
    }

    .helheim-intro {
        padding: 30px 23px;
    }

    .helheim-intro h1 {
        font-size: clamp(31px, 9vw, 43px);
    }

    .helheim-server-info {
        flex-direction: column;
    }

    .helheim-server-info__item {
        width: 100%;
    }

    .helheim-feature-grid,
    .helheim-steps-grid,
    .helheim-community-grid {
        grid-template-columns: 1fr;
    }

    .helheim-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 28px 23px;
    }

    .helheim-ip-card {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .helheim-community {
        padding: 29px 23px;
    }
}

@media only screen and (max-width: 520px) {
    .ui.masthead {
        min-height: 190px !important;
        background-position: 55% center !important;
    }

    .helheim-section {
        padding-top: 30px;
    }

    .helheim-actions {
        flex-direction: column;
    }

    .helheim-button {
        width: 100%;
    }

    .helheim-intro h1 {
        font-size: 31px;
    }

    .helheim-final {
        padding: 31px 23px;
    }
}
/* ==================================================
   HELHEIM — НАВИГАЦИЯ
   ================================================== */

.helheim-navbar.ui.secondary.menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 58px;
    padding: 0 !important;
    border-bottom: 1px solid rgba(215, 25, 41, 0.62);
    background:
        linear-gradient(
            90deg,
            rgba(18, 14, 17, 0.98),
            rgba(50, 9, 16, 0.98) 48%,
            rgba(18, 14, 17, 0.98)
        ) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.helheim-navbar__container {
    width: 94% !important;
    max-width: 1380px !important;
}

.helheim-navbar .item {
    color: rgba(255, 255, 255, 0.73) !important;
}

.helheim-navbar .helheim-nav-item {
    position: relative;
    display: flex !important;
    min-height: 58px;
    align-items: center;
    padding: 0 13px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition:
        color 0.18s ease,
        background 0.18s ease;
}

.helheim-navbar .helheim-nav-item::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 2px;
    background: #ef3345;
    transform: scaleX(0);
    transition: transform 0.18s ease;
}

.helheim-navbar .helheim-nav-item:hover,
.helheim-navbar .helheim-nav-item.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.045) !important;
}

.helheim-navbar .helheim-nav-item:hover::after,
.helheim-navbar .helheim-nav-item.active::after {
    transform: scaleX(1);
}

.helheim-nav-brand {
    display: flex !important;
    min-width: 172px;
    align-items: center !important;
    gap: 10px;
    padding: 0 18px 0 4px !important;
    text-decoration: none !important;
}

.helheim-nav-brand__mark,
.helheim-footer-logo__mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.68);
    border-radius: 6px;
    color: #fff;
    background:
        linear-gradient(145deg, #d71929, #650813);
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(130, 0, 16, 0.28);
}

.helheim-nav-brand__text,
.helheim-footer-logo > div {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.helheim-nav-brand__text strong,
.helheim-footer-logo strong {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.11em;
}

.helheim-nav-brand__text small,
.helheim-footer-logo small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 8px;
    letter-spacing: 0.16em;
}

.helheim-nav-ip {
    display: flex !important;
    min-height: 34px !important;
    align-self: center;
    align-items: center;
    gap: 7px;
    margin-left: auto !important;
    padding: 0 13px !important;
    border: 1px solid rgba(239, 51, 69, 0.46) !important;
    border-radius: 5px !important;
    color: #fff !important;
    background: rgba(120, 6, 19, 0.28) !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.helheim-nav-ip:hover {
    border-color: #ef3345 !important;
    background: rgba(215, 25, 41, 0.18) !important;
    transform: translateY(-1px);
}

.helheim-nav-ip.is-copied {
    border-color: rgba(85, 225, 130, 0.75) !important;
    background: rgba(24, 126, 61, 0.35) !important;
}

.helheim-user-menu {
    margin-left: 10px !important;
}

.helheim-user-button,
.helheim-panel-button,
.helheim-login-button,
.helheim-register-button,
.helheim-account-button {
    margin-left: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

.helheim-panel-button,
.helheim-register-button {
    background: linear-gradient(145deg, #d71929, #9d0d1a) !important;
}

.helheim-user-popup {
    border: 1px solid rgba(215, 25, 41, 0.24) !important;
    background: #17171c !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48) !important;
}

.helheim-sidebar {
    background:
        linear-gradient(180deg, #171318, #0e0d10) !important;
}

.helheim-sidebar__brand {
    display: flex !important;
    flex-direction: column;
    padding: 23px 18px !important;
    border-bottom: 1px solid rgba(215, 25, 41, 0.28) !important;
}

.helheim-sidebar__brand strong {
    color: #fff;
    letter-spacing: 0.15em;
}

.helheim-sidebar__brand small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 9px;
    letter-spacing: 0.13em;
}

.helheim-sidebar .item.active {
    border-left: 3px solid #ef3345 !important;
    background: rgba(215, 25, 41, 0.12) !important;
}

.helheim-sidebar__server small {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 9px;
    letter-spacing: 0.13em;
}

.helheim-sidebar__server button {
    width: 100%;
    padding: 11px;
    border: 1px solid rgba(239, 51, 69, 0.42);
    border-radius: 5px;
    color: #fff;
    background: rgba(120, 6, 19, 0.27);
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

@media only screen and (max-width: 1180px) {
    .helheim-nav-ip {
        display: none !important;
    }

    .helheim-navbar .helheim-nav-item {
        padding-right: 9px !important;
        padding-left: 9px !important;
        font-size: 11px;
    }

    .helheim-nav-brand {
        min-width: 150px;
    }
}

@media only screen and (max-width: 768px) {
    .helheim-navbar__container {
        width: 100% !important;
        padding: 0 11px;
    }

    .ui.secondary.menu .helheim-navbar__toc,
    .ui.secondary.menu .helheim-nav-brand {
        display: flex !important;
    }

    .helheim-navbar__toc {
        min-height: 58px;
        align-items: center !important;
        padding: 0 13px !important;
    }

    .helheim-nav-brand {
        min-width: 0;
        flex: 1;
        padding-left: 4px !important;
    }

    .helheim-nav-brand__mark {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .helheim-user-menu {
        display: none !important;
    }
}

/* ==================================================
   HELHEIM — ПОДВАЛ
   ================================================== */

.helheim-footer.ui.footer.segment {
    margin-top: auto !important;
    padding: 0 !important;
    border-top: 1px solid rgba(215, 25, 41, 0.5);
    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(215, 25, 41, 0.13),
            transparent 32%
        ),
        linear-gradient(180deg, #121116, #09090b) !important;
    box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.28);
}

.helheim-footer__container {
    width: 92% !important;
    max-width: 1280px !important;
    padding: 48px 0 22px;
}

.helheim-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 46px;
}

.helheim-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.helheim-footer__brand > p {
    max-width: 460px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.57);
    line-height: 1.68;
}

.helheim-footer-ip {
    display: block;
    width: 100%;
    max-width: 390px;
    padding: 15px 18px;
    border: 1px solid rgba(215, 25, 41, 0.42);
    border-radius: 7px;
    color: #fff;
    background: rgba(96, 5, 16, 0.2);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.helheim-footer-ip:hover {
    border-color: #ef3345;
    background: rgba(215, 25, 41, 0.13);
    transform: translateY(-2px);
}

.helheim-footer-ip.is-copied {
    border-color: rgba(85, 225, 130, 0.7);
    background: rgba(24, 126, 61, 0.3);
}

.helheim-footer-ip small {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.43);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.helheim-footer-ip strong {
    font-size: 17px;
}

.helheim-footer-settings {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.helheim-footer-settings__label {
    color: rgba(255, 255, 255, 0.43);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.helheim-footer-auto-language {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 11px;
}

.helheim-footer__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #ef3345;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.helheim-footer h4 {
    margin: 0 0 18px !important;
    color: #fff !important;
    font-size: 18px !important;
}

.helheim-footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.helheim-footer-link-list > a,
.helheim-footer-dropdown {
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: color 0.16s ease;
}

.helheim-footer-link-list > a:hover {
    color: #fff !important;
}

.helheim-footer-community-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.helheim-footer-community-item {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none !important;
    transition:
        border-color 0.18s ease,
        background 0.18s ease;
}

a.helheim-footer-community-item:hover {
    border-color: rgba(215, 25, 41, 0.53);
    background: rgba(215, 25, 41, 0.08);
}

.helheim-footer-community-item span {
    display: flex;
    flex-direction: column;
}

.helheim-footer-community-item strong {
    color: #fff;
    font-size: 13px;
}

.helheim-footer-community-item small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
}

.helheim-footer-community-item em {
    color: #ef3345;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.helheim-footer-community-item.is-disabled {
    opacity: 0.52;
}

.helheim-footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.helheim-footer-social-links a {
    color: rgba(255, 255, 255, 0.55) !important;
}

.helheim-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.helheim-footer__bottom > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.helheim-footer__bottom strong {
    color: rgba(255, 255, 255, 0.72);
}

.helheim-footer__system a {
    color: rgba(255, 255, 255, 0.6) !important;
}

@media only screen and (max-width: 950px) {
    .helheim-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .helheim-footer__brand {
        grid-column: 1 / -1;
    }
}

@media only screen and (max-width: 620px) {
    .helheim-footer__container {
        width: 88% !important;
        padding-top: 38px;
    }

    .helheim-footer__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .helheim-footer__brand {
        grid-column: auto;
    }

    .helheim-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* ==================================================
   HELHEIM — АККУРАТНЫЙ БЛОК АККАУНТА В МЕНЮ
   ================================================== */

#navbar .helheim-user-menu {
    display: flex !important;
    align-items: center;
    gap: 5px;

    margin-left: 12px !important;
    padding: 4px !important;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;

    background: rgba(0, 0, 0, 0.24);
}

/* Все кнопки одного размера и стиля */
#navbar .helheim-user-menu > a.ui.button,
#navbar .helheim-user-menu > a.ui.label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 5px !important;

    color: rgba(255, 255, 255, 0.78) !important;
    background: #18171c !important;

    box-shadow: none !important;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

/* Квадратные кнопки с иконками */
#navbar .helheim-user-menu > a.ui.icon.button {
    width: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
}

#navbar .helheim-user-menu > a.ui.icon.button .icon {
    margin: 0 !important;
    font-size: 0.92rem !important;
}

/* Красным оставляем только вход в панель */
#navbar .helheim-user-menu > .helheim-panel-button {
    border-color: rgba(239, 51, 69, 0.48) !important;

    background:
        linear-gradient(
            145deg,
            rgba(215, 25, 41, 0.95),
            rgba(135, 8, 22, 0.95)
        ) !important;

    color: #fff !important;
}

/* Аккаунт с аватаром и именем */
#navbar .helheim-account-button {
    max-width: 145px;
    gap: 6px;

    padding: 0 10px 0 4px !important;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 11px !important;
    font-weight: 700 !important;
}

#navbar .helheim-account-button img {
    width: 26px !important;
    height: 26px !important;

    margin: 0 5px 0 0 !important;
    border-radius: 4px !important;
}

/* Наведение */
#navbar .helheim-user-menu > a.ui.button:hover,
#navbar .helheim-user-menu > a.ui.label:hover {
    border-color: rgba(239, 51, 69, 0.55) !important;
    color: #fff !important;
    background: rgba(215, 25, 41, 0.13) !important;
    transform: translateY(-1px);
}

#navbar .helheim-user-menu > .helheim-panel-button:hover {
    background:
        linear-gradient(
            145deg,
            #ef293b,
            #a70c19
        ) !important;
}
/* ==================================================
   HELHEIM — ПРАВЫЙ БЛОК В СТИЛЕ КНОПКИ IP
   ================================================== */

/* Убираем общую тёмную коробку вокруг аккаунта */
#navbar .helheim-user-menu {
    display: flex !important;
    align-items: center;
    gap: 6px;

    margin-left: 10px !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* Единый стиль всех кнопок */
#navbar .helheim-user-menu > a.ui.button,
#navbar .helheim-user-menu > a.ui.label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;

    border: 1px solid rgba(239, 51, 69, 0.46) !important;
    border-radius: 5px !important;

    color: rgba(255, 255, 255, 0.86) !important;
    background: rgba(120, 6, 19, 0.28) !important;

    box-shadow: none !important;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

/* Квадратные кнопки с иконками */
#navbar .helheim-user-menu > a.ui.icon.button {
    width: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
}

#navbar .helheim-user-menu > a.ui.icon.button i.icon {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.92rem !important;
}

/* Убираем отдельную яркую заливку админ-панели */
#navbar .helheim-user-menu > .helheim-panel-button {
    border-color: rgba(239, 51, 69, 0.46) !important;
    color: rgba(255, 255, 255, 0.86) !important;
    background: rgba(120, 6, 19, 0.28) !important;
}

/* Профиль с аватаром */
#navbar .helheim-account-button {
    max-width: 145px;
    gap: 7px;

    padding: 0 11px 0 4px !important;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 11px !important;
    font-weight: 700 !important;
}

#navbar .helheim-account-button img {
    width: 26px !important;
    height: 26px !important;

    margin: 0 5px 0 0 !important;
    border-radius: 4px !important;
}

/* Наведение — как у IP */
#navbar .helheim-user-menu > a.ui.button:hover,
#navbar .helheim-user-menu > a.ui.label:hover {
    border-color: #ef3345 !important;
    color: #fff !important;
    background: rgba(215, 25, 41, 0.18) !important;

    transform: translateY(-1px);

    box-shadow:
        0 6px 18px rgba(130, 0, 16, 0.2) !important;
}
/* ==================================================
   HELHEIM — СТРАНИЦА СТАТУСА
   ================================================== */

.helheim-status-page {
    --status-red: #d71929;
    --status-red-bright: #ef3345;
    --status-red-dark: #8f0d18;
    --status-bg: #0e0e12;
    --status-card: #18181d;
    --status-card-deep: #101014;
    --status-border: rgba(215, 25, 41, 0.36);
    --status-text: #f6f6f7;
    --status-muted: #aaaab3;

    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0 48px;
    color: var(--status-text);
}

.helheim-status-page *,
.helheim-status-page *::before,
.helheim-status-page *::after {
    box-sizing: border-box;
}

.helheim-status-kicker {
    display: block;
    margin-bottom: 11px;
    color: var(--status-red-bright);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ---------- Верхний блок ---------- */

.helheim-status-hero {
    position: relative;
    display: flex;
    min-height: 335px;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    overflow: hidden;
    margin-bottom: 38px;
    padding: clamp(32px, 5vw, 56px);
    border: 1px solid var(--status-border);
    border-radius: 11px;
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(215, 25, 41, 0.24),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            rgba(29, 28, 34, 0.99),
            rgba(9, 9, 12, 0.99)
        );
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.35),
        inset 0 0 70px rgba(125, 0, 15, 0.08);
}

.helheim-status-hero::after {
    content: "";
    position: absolute;
    top: -130px;
    right: -65px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(215, 25, 41, 0.18);
    transform: rotate(45deg);
}

.helheim-status-hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.helheim-status-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    text-transform: uppercase;
}

.helheim-status-hero p {
    max-width: 730px;
    margin: 0;
    color: var(--status-muted);
    font-size: 16px;
    line-height: 1.7;
}

.helheim-status-hero__mark {
    position: relative;
    z-index: 1;
    display: flex;
    width: 170px;
    height: 170px;
    flex: 0 0 170px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.3);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(
            145deg,
            rgba(215, 25, 41, 0.26),
            rgba(80, 5, 15, 0.12)
        );
    font-size: 90px;
    font-weight: 900;
    box-shadow:
        inset 0 0 45px rgba(215, 25, 41, 0.12),
        0 18px 45px rgba(0, 0, 0, 0.28);
}

.helheim-status-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 26px;
}

.helheim-status-summary__item {
    min-width: 195px;
    padding: 13px 16px;
    border-left: 3px solid var(--status-red);
    background: rgba(255, 255, 255, 0.038);
}

.helheim-status-summary__item small {
    display: block;
    margin-bottom: 5px;
    color: var(--status-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.helheim-status-summary__item strong {
    color: #fff;
    font-size: 16px;
}

.helheim-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 27px;
}

.helheim-status-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.helheim-status-button:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.helheim-status-button--primary {
    border: 0;
    color: #fff;
    background: linear-gradient(
        145deg,
        var(--status-red),
        var(--status-red-dark)
    );
    box-shadow: 0 8px 24px rgba(170, 0, 20, 0.28);
}

.helheim-status-button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.04);
}

.helheim-status-button--ghost {
    border: 1px solid rgba(239, 51, 69, 0.43);
    color: #fff !important;
    background: rgba(120, 6, 19, 0.18);
}

/* ---------- Раздел серверов ---------- */

.helheim-status-section {
    margin-bottom: 38px;
}

.helheim-status-section__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 23px;
}

.helheim-status-section__heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    text-transform: uppercase;
}

.helheim-status-section__heading > p {
    max-width: 520px;
    margin: 0;
    color: var(--status-muted);
    line-height: 1.65;
    text-align: right;
}

.helheim-status-servers.ui.cards,
.helheim-status-servers {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    margin: 0 !important;
}

.helheim-status-server.ui.card {
    width: 100% !important;
    min-height: 315px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    background:
        linear-gradient(
            145deg,
            rgba(31, 31, 37, 0.99),
            rgba(14, 14, 18, 0.99)
        ) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

.helheim-status-server.ui.card::after {
    display: none !important;
}

.helheim-status-server__content {
    padding: 28px !important;
}

.helheim-status-server__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.helheim-status-server__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--status-red-bright);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.helheim-status-server h3 {
    margin: 0;
    color: #fff;
    font-size: 26px;
}

.helheim-status-server__ip {
    min-width: 210px;
    padding: 12px 15px;
    border: 1px solid rgba(239, 51, 69, 0.44);
    border-radius: 6px;
    color: #fff;
    background: rgba(120, 6, 19, 0.2);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.helheim-status-server__ip:hover {
    border-color: var(--status-red-bright);
    background: rgba(215, 25, 41, 0.14);
    transform: translateY(-2px);
}

.helheim-status-server__ip small {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.helheim-status-server__ip strong {
    color: #fff;
    font-size: 14px;
}

.helheim-status-server__state {
    display: flex;
    min-height: 118px;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.22);
}

.helheim-status-server__indicator {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(215, 25, 41, 0.12);
}

.helheim-status-server__indicator span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--status-red-bright);
    box-shadow: 0 0 18px rgba(239, 51, 69, 0.7);
}

.helheim-status-server #server-status {
    color: #fff;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

.helheim-status-server #server-status .icon {
    margin-right: 7px;
}

.helheim-status-server__players {
    min-height: 100px;
    padding: 21px 28px 25px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.065) !important;
    background: rgba(0, 0, 0, 0.16) !important;
}

.helheim-status-server__players-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.helheim-status-server__players-heading span {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.helheim-status-server__players-heading small {
    color: var(--status-muted);
}

.helheim-status-server #server-players {
    display: flex;
    min-height: 34px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--status-muted);
    text-align: left;
}

.helheim-status-server #server-players img {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border: 1px solid rgba(239, 51, 69, 0.32);
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.04);
}

/* ---------- Помощь ---------- */

.helheim-status-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 31px 34px;
    border: 1px solid rgba(215, 25, 41, 0.42);
    border-radius: 9px;
    background:
        linear-gradient(
            110deg,
            rgba(117, 5, 18, 0.54),
            rgba(17, 17, 22, 0.99) 62%
        );
}

.helheim-status-help h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(24px, 3vw, 31px);
}

.helheim-status-help p {
    margin: 0;
    color: var(--status-muted);
}

.helheim-status-help p strong {
    color: #fff;
}

.helheim-status-help__ip {
    flex: 0 0 auto;
    min-width: 265px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.helheim-status-help__ip:hover {
    border-color: var(--status-red-bright);
    background: rgba(215, 25, 41, 0.1);
    transform: translateY(-2px);
}

.helheim-status-help__ip small {
    display: block;
    margin-bottom: 5px;
    color: var(--status-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.helheim-status-help__ip strong {
    font-size: 16px;
}

.helheim-status-error {
    border: 1px solid rgba(215, 25, 41, 0.38) !important;
    background: rgba(120, 6, 19, 0.16) !important;
}

/* ---------- Адаптивность ---------- */

@media only screen and (max-width: 900px) {
    .helheim-status-hero__mark {
        display: none;
    }

    .helheim-status-section__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .helheim-status-section__heading > p {
        max-width: none;
        text-align: left;
    }
}

@media only screen and (max-width: 700px) {
    .helheim-status-page {
        padding-bottom: 34px;
    }

    .helheim-status-hero {
        min-height: 0;
        padding: 31px 23px;
    }

    .helheim-status-summary {
        flex-direction: column;
    }

    .helheim-status-summary__item {
        width: 100%;
    }

    .helheim-status-actions {
        flex-direction: column;
    }

    .helheim-status-button {
        width: 100%;
    }

    .helheim-status-servers.ui.cards,
    .helheim-status-servers {
        grid-template-columns: 1fr;
    }

    .helheim-status-server__top {
        flex-direction: column;
    }

    .helheim-status-server__ip {
        width: 100%;
        min-width: 0;
    }

    .helheim-status-help {
        align-items: stretch;
        flex-direction: column;
        padding: 27px 23px;
    }

    .helheim-status-help__ip {
        width: 100%;
        min-width: 0;
        text-align: left;
    }
}

@media only screen and (max-width: 440px) {
    .helheim-status-hero h1 {
        font-size: 34px;
    }

    .helheim-status-server__content,
    .helheim-status-server__players {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    .helheim-status-server__players-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ---------- Игроки онлайн: аватар + ник ---------- */

.helheim-status-server #server-players {
    align-items: stretch;
    gap: 9px;
}

.helheim-player {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 6px 11px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            rgba(34, 34, 40, 0.98),
            rgba(17, 17, 21, 0.98)
        );
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.helheim-player:hover {
    border-color: rgba(239, 51, 69, 0.48);
    background: rgba(215, 25, 41, 0.09);
    transform: translateY(-2px);
}

.helheim-status-server #server-players .helheim-player img {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px;
    margin: 0 !important;
    border: 1px solid rgba(239, 51, 69, 0.36);
    border-radius: 5px !important;
}

.helheim-player__name {
    overflow: hidden;
    max-width: 150px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media only screen and (max-width: 440px) {
    .helheim-player {
        width: 100%;
    }

    .helheim-player__name {
        max-width: none;
    }
}

/* ==================================================
   HELHEIM — ИНФОРМАТИВНОЕ СОСТОЯНИЕ СЕРВЕРА
   ================================================== */

.helheim-status-raw {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.helheim-server-health {
    --health-accent: #a7a7b0;
    --health-soft: rgba(167, 167, 176, 0.13);
    --health-border: rgba(167, 167, 176, 0.28);

    margin-top: 25px;
    overflow: hidden;
    border: 1px solid var(--health-border);
    border-radius: 9px;
    background:
        radial-gradient(
            circle at 0 0,
            var(--health-soft),
            transparent 42%
        ),
        rgba(8, 8, 11, 0.48);
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.helheim-server-health.is-online {
    --health-accent: #36d675;
    --health-soft: rgba(54, 214, 117, 0.13);
    --health-border: rgba(54, 214, 117, 0.36);
}

.helheim-server-health.is-restarting {
    --health-accent: #ff8a34;
    --health-soft: rgba(255, 138, 52, 0.14);
    --health-border: rgba(255, 138, 52, 0.38);
}

.helheim-server-health.is-maintenance {
    --health-accent: #f2c94c;
    --health-soft: rgba(242, 201, 76, 0.14);
    --health-border: rgba(242, 201, 76, 0.38);
}

.helheim-server-health.is-offline {
    --health-accent: #ef3345;
    --health-soft: rgba(239, 51, 69, 0.14);
    --health-border: rgba(239, 51, 69, 0.38);
}

.helheim-server-health__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    min-height: 112px;
    padding: 22px 24px;
}

.helheim-server-health__icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--health-border);
    border-radius: 50%;
    background: var(--health-soft);
}

.helheim-server-health__icon span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--health-accent);
    box-shadow: 0 0 20px var(--health-accent);
}

.helheim-server-health.is-checking
.helheim-server-health__icon span {
    animation: helheim-status-pulse 1.3s ease-in-out infinite;
}

@keyframes helheim-status-pulse {
    0%,
    100% {
        opacity: 0.42;
        transform: scale(0.78);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.helheim-server-health__message {
    min-width: 0;
}

.helheim-server-health__label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.helheim-server-health__title {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
}

.helheim-server-health__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.57);
    font-size: 12px;
    line-height: 1.55;
}

.helheim-server-health__badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--health-border);
    border-radius: 999px;
    color: var(--health-accent);
    background: var(--health-soft);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.helheim-server-health__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(0, 0, 0, 0.2);
}

.helheim-server-health__metric {
    min-width: 0;
    padding: 16px 20px;
}

.helheim-server-health__metric:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.065);
}

.helheim-server-health__metric small {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.helheim-server-health__metric strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media only screen and (max-width: 680px) {
    .helheim-server-health__main {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .helheim-server-health__badge {
        grid-column: 1 / -1;
        justify-self: start;
        margin-left: 65px;
    }

    .helheim-server-health__metrics {
        grid-template-columns: 1fr;
    }

    .helheim-server-health__metric:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    }
}

@media only screen and (max-width: 430px) {
    .helheim-server-health__main {
        padding: 19px;
    }

    .helheim-server-health__icon {
        width: 42px;
        height: 42px;
    }

    .helheim-server-health__badge {
        margin-left: 59px;
    }
}

/* ==================================================
   HELHEIM — МОБИЛЬНАЯ ОПТИМИЗАЦИЯ
   ================================================== */

@media only screen and (max-width: 768px) {

    /* ---------- Мобильная навигация ---------- */

    #navbar.helheim-navbar {
        min-height: 58px !important;
    }

    #navbar .helheim-navbar__container {
        display: flex !important;
        width: 100% !important;
        min-height: 58px;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding: 0 12px !important;
    }

    /* На телефоне ссылки открываются через боковое меню */
    #navbar .helheim-nav-item,
    #navbar .helheim-nav-ip,
    #navbar .helheim-user-menu {
        display: none !important;
    }

    #navbar .helheim-navbar__toc {
        display: inline-flex !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 9px 0 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(239, 51, 69, 0.2);
        border-radius: 6px;
        color: rgba(255, 255, 255, 0.82) !important;
        background: rgba(255, 255, 255, 0.025);
    }

    #navbar .helheim-navbar__toc .icon {
        margin: 0 !important;
        font-size: 17px !important;
    }

    #navbar .helheim-nav-brand {
        display: flex !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        gap: 10px;
        margin: 0 !important;
        padding: 0 !important;
    }

    #navbar .helheim-nav-brand__mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 7px;
        font-size: 18px;
    }

    #navbar .helheim-nav-brand__text strong {
        font-size: 14px;
    }

    #navbar .helheim-nav-brand__text small {
        font-size: 7px;
    }

    /* ---------- Баннер ---------- */

    .ui.masthead {
        min-height: 170px !important;
        margin-bottom: 16px !important;
        background-position: 68% center !important;
        box-shadow:
            inset 0 -45px 65px rgba(0, 0, 0, 0.72),
            0 7px 22px rgba(0, 0, 0, 0.35) !important;
    }

    /* ---------- Главная страница ---------- */

    .helheim-main-column {
        padding-right: 0.55rem !important;
        padding-left: 0.55rem !important;
    }

    .helheim-home {
        padding-bottom: 30px;
    }

    .helheim-intro {
        margin-bottom: 18px;
        padding: 24px 20px;
        border-radius: 9px;
    }

    /* На узком экране декоративная фигура мешает тексту */
    .helheim-intro::after {
        display: none;
    }

    .helheim-kicker {
        margin-bottom: 9px;
        font-size: 9px;
        letter-spacing: 0.17em;
    }

    .helheim-intro h1 {
        max-width: none;
        margin-bottom: 14px;
        font-size: clamp(27px, 8.2vw, 34px) !important;
        line-height: 1.02;
    }

    .helheim-intro__lead {
        font-size: 14px;
        line-height: 1.58;
    }

    /* IP занимает всю строку, версии и режим стоят рядом */
    .helheim-server-info {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px;
        margin-top: 20px;
    }

    .helheim-server-info__item {
        width: auto !important;
        min-width: 0 !important;
        padding: 11px 12px;
    }

    .helheim-server-info__item:first-child {
        grid-column: 1 / -1;
    }

    .helheim-server-info small {
        margin-bottom: 4px;
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    .helheim-server-info strong {
        display: block;
        overflow-wrap: anywhere;
        font-size: 14px;
        line-height: 1.25;
    }

    /* Главная кнопка широкая, две вторичные стоят рядом */
    .helheim-intro .helheim-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px;
        margin-top: 18px;
    }

    .helheim-intro .helheim-actions .helheim-button:first-child {
        grid-column: 1 / -1;
    }

    .helheim-intro .helheim-button {
        width: 100%;
        min-height: 41px;
        padding: 0 11px;
        font-size: 9px;
        letter-spacing: 0.045em;
    }

    /* ---------- Остальные разделы ---------- */

    .helheim-section {
        padding-top: 28px;
    }

    .helheim-section-heading {
        margin-bottom: 18px;
    }

    .helheim-section-heading h2,
    .helheim-community__heading h2 {
        font-size: 27px;
        line-height: 1.08;
    }

    .helheim-section-heading p,
    .helheim-community__heading p {
        font-size: 13px;
        line-height: 1.55;
    }

    .helheim-feature {
        min-height: 0;
        padding: 21px 19px;
    }

    .helheim-feature h3 {
        font-size: 18px;
    }

    .helheim-feature p {
        font-size: 13px;
        line-height: 1.55;
    }

    .helheim-feature__number {
        top: 12px;
        right: 15px;
        font-size: 40px;
    }

    .helheim-cta {
        margin-top: 25px;
        padding: 24px 20px;
    }

    .helheim-cta h2 {
        font-size: 24px;
    }

    .helheim-community {
        margin-top: 28px;
        padding: 25px 20px;
    }

    .helheim-community-card {
        min-height: 125px;
        padding: 19px;
    }

    .helheim-final {
        margin-top: 29px;
        padding: 27px 20px;
    }

    .helheim-final h2 {
        font-size: 29px;
    }

    /* ---------- Страница статуса ---------- */

    .helheim-status-page {
        padding-right: 0;
        padding-left: 0;
    }

    .helheim-status-hero {
        margin-bottom: 28px;
        padding: 25px 20px;
    }

    .helheim-status-hero h1 {
        font-size: 34px;
    }

    .helheim-status-hero p {
        font-size: 14px;
        line-height: 1.58;
    }
}

@media only screen and (max-width: 390px) {

    .ui.masthead {
        min-height: 155px !important;
        background-position: 70% center !important;
    }

    #navbar .helheim-nav-brand__text strong {
        font-size: 13px;
    }

    .helheim-intro {
        padding: 22px 17px;
    }

    .helheim-intro h1 {
        font-size: 27px !important;
    }

    .helheim-server-info {
        grid-template-columns: 1fr;
    }

    .helheim-server-info__item:first-child {
        grid-column: auto;
    }

    .helheim-intro .helheim-actions {
        grid-template-columns: 1fr;
    }

    .helheim-intro .helheim-actions .helheim-button:first-child {
        grid-column: auto;
    }
}

/* ==================================================
   HELHEIM — COOKIE-КНОПКА И ОКНО СОГЛАСИЯ
   ================================================== */

/* Маленькая фирменная кнопка вместо крупной чёрной плашки */
.cc-revoke.cc-bottom.cc-right {
    position: fixed !important;
    z-index: 10020 !important;
    right: 12px !important;
    bottom: 12px !important;
    left: auto !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 30px !important;
    min-height: 30px !important;

    padding: 0 10px !important;
    overflow: visible !important;

    border: 1px solid rgba(239, 51, 69, 0.48) !important;
    border-radius: 5px !important;

    color: rgba(255, 255, 255, 0.78) !important;
    background: rgba(55, 8, 15, 0.92) !important;

    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.32) !important;

    font-family: inherit !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 28px !important;
    letter-spacing: 0.08em !important;
    text-align: center !important;
    text-transform: uppercase !important;

    opacity: 0.78 !important;
    transform: none !important;
    cursor: pointer !important;

    transition:
        opacity 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease !important;
}

.cc-revoke.cc-bottom.cc-right:hover,
.cc-revoke.cc-bottom.cc-right:focus {
    border-color: #ef3345 !important;
    color: #fff !important;
    background: rgba(120, 6, 19, 0.96) !important;
    opacity: 1 !important;
    transform: translateY(-2px) !important;
}

/* Само окно cookies — в стиле HELHEIM */
.cc-window.cc-floating {
    z-index: 10030 !important;

    border: 1px solid rgba(239, 51, 69, 0.38) !important;
    border-radius: 8px !important;

    color: rgba(255, 255, 255, 0.76) !important;
    background:
        linear-gradient(
            145deg,
            rgba(31, 25, 29, 0.99),
            rgba(12, 12, 16, 0.99)
        ) !important;

    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.52) !important;
}

.cc-window.cc-floating .cc-link {
    color: #ef6674 !important;
}

.cc-window.cc-floating .cc-btn {
    border-radius: 5px !important;
    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

.cc-window.cc-floating .cc-highlight .cc-btn.cc-allow {
    border: 1px solid rgba(239, 51, 69, 0.58) !important;
    color: #fff !important;
    background:
        linear-gradient(
            145deg,
            #d71929,
            #8f0d18
        ) !important;
}

@media only screen and (max-width: 768px) {

    /*
       На iPhone нижняя панель Safari закрывает нижнюю часть экрана.
       Поднимаем кнопку выше неё и делаем максимально компактной.
    */
    .cc-revoke.cc-bottom.cc-right {
        right: 8px !important;
        bottom: calc(82px + env(safe-area-inset-bottom)) !important;

        height: 27px !important;
        min-height: 27px !important;
        padding: 0 8px !important;

        border-radius: 5px !important;

        font-size: 8px !important;
        line-height: 25px !important;
        letter-spacing: 0.06em !important;

        opacity: 0.72 !important;
    }

    /*
       Если пользователь откроет настройки cookies,
       окно не выйдет за экран и не попадёт под Safari.
    */
    .cc-window.cc-floating {
        right: 10px !important;
        bottom: calc(82px + env(safe-area-inset-bottom)) !important;
        left: 10px !important;

        width: auto !important;
        max-width: none !important;

        padding: 16px !important;

        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .cc-window.cc-floating .cc-compliance {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .cc-window.cc-floating .cc-btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 12px !important;
    }
}

@media only screen and (max-width: 390px) {
    .cc-revoke.cc-bottom.cc-right {
        right: 6px !important;
        bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    }
}

/* ==================================================
   HELHEIM — ГЛАВНАЯ СТРАНИЦА ФОРУМА
   ================================================== */

.helheim-forum-page {
    --forum-red: #d71929;
    --forum-red-bright: #ef3345;
    --forum-red-dark: #8f0d18;
    --forum-card: #18181d;
    --forum-card-deep: #101014;
    --forum-border: rgba(215, 25, 41, 0.35);
    --forum-text: #f6f6f7;
    --forum-muted: #aaaab3;

    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 48px;
    color: var(--forum-text);
}

.helheim-forum-page *,
.helheim-forum-page *::before,
.helheim-forum-page *::after {
    box-sizing: border-box;
}

.helheim-forum-kicker {
    display: block;
    margin-bottom: 11px;
    color: var(--forum-red-bright);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ---------- Верхний блок ---------- */

.helheim-forum-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
    align-items: center;
    gap: 42px;
    overflow: hidden;
    margin-bottom: 38px;
    padding: clamp(34px, 5vw, 56px);
    border: 1px solid var(--forum-border);
    border-radius: 11px;
    background:
        radial-gradient(
            circle at 89% 5%,
            rgba(215, 25, 41, 0.23),
            transparent 37%
        ),
        linear-gradient(
            135deg,
            rgba(29, 28, 34, 0.99),
            rgba(9, 9, 12, 0.99)
        );
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.34),
        inset 0 0 70px rgba(125, 0, 15, 0.08);
}

.helheim-forum-hero::after {
    content: "";
    position: absolute;
    top: -150px;
    right: -65px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(215, 25, 41, 0.17);
    transform: rotate(45deg);
}

.helheim-forum-hero__content,
.helheim-forum-search {
    position: relative;
    z-index: 1;
}

.helheim-forum-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.helheim-forum-breadcrumb a {
    color: rgba(255, 255, 255, 0.55) !important;
}

.helheim-forum-breadcrumb strong {
    color: rgba(255, 255, 255, 0.8);
}

.helheim-forum-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    text-transform: uppercase;
}

.helheim-forum-hero p {
    max-width: 690px;
    margin: 0;
    color: var(--forum-muted);
    font-size: 16px;
    line-height: 1.7;
}

.helheim-forum-search {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.27);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.helheim-forum-search > label {
    display: block;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.helheim-forum-search__field {
    display: flex;
    min-height: 46px;
}

.helheim-forum-search__field input {
    width: 100%;
    min-width: 0;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    outline: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    font-family: inherit;
}

.helheim-forum-search__field input:focus {
    border-color: rgba(239, 51, 69, 0.58);
    background: rgba(255, 255, 255, 0.055);
}

.helheim-forum-search__field button {
    width: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(239, 51, 69, 0.55);
    border-radius: 0 6px 6px 0;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            var(--forum-red),
            var(--forum-red-dark)
        );
    cursor: pointer;
}

.helheim-forum-search__field button .icon {
    margin: 0 !important;
}

.helheim-forum-warning {
    margin-bottom: 28px !important;
    border: 1px solid rgba(242, 201, 76, 0.28) !important;
    background: rgba(97, 74, 5, 0.18) !important;
}

/* ---------- Заголовок ---------- */

.helheim-forum-content {
    margin-bottom: 38px;
}

.helheim-forum-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 23px;
}

.helheim-forum-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    text-transform: uppercase;
}

.helheim-forum-heading > p {
    max-width: 480px;
    margin: 0;
    color: var(--forum-muted);
    line-height: 1.65;
    text-align: right;
}

/* ---------- Категории ---------- */

.helheim-forum-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.helheim-forum-category {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    background:
        linear-gradient(
            145deg,
            rgba(28, 28, 34, 0.99),
            rgba(13, 13, 17, 0.99)
        );
    box-shadow: 0 17px 43px rgba(0, 0, 0, 0.25);
}

.helheim-forum-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 21px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(
            90deg,
            rgba(215, 25, 41, 0.12),
            transparent 58%
        );
}

.helheim-forum-category__header span {
    display: block;
    margin-bottom: 5px;
    color: var(--forum-red-bright);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.helheim-forum-category__header h3 {
    margin: 0;
    font-size: 20px;
}

.helheim-forum-category__header h3 a {
    color: #fff !important;
}

.helheim-forum-category__open {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    border: 1px solid rgba(239, 51, 69, 0.36);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.76) !important;
    background: rgba(120, 6, 19, 0.14);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.helheim-forum-category__open:hover {
    border-color: var(--forum-red-bright);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.12);
}

.helheim-forum-list {
    display: flex;
    flex-direction: column;
}

/* ---------- Раздел форума ---------- */

.helheim-forum-node {
    display: grid;
    grid-template-columns:
        54px
        minmax(240px, 1fr)
        170px
        minmax(270px, 0.85fr);
    align-items: center;
    gap: 20px;
    min-height: 128px;
    padding: 21px 25px;
    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.helheim-forum-node + .helheim-forum-node {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.helheim-forum-node:hover {
    background: rgba(215, 25, 41, 0.045);
}

.helheim-forum-node__icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.31);
    border-radius: 8px;
    color: var(--forum-red-bright);
    background: rgba(120, 6, 19, 0.16);
    font-size: 18px;
}

.helheim-forum-node__icon .icon {
    margin: 0 !important;
}

.helheim-forum-node__main {
    min-width: 0;
}

.helheim-forum-node__title {
    display: inline-block;
    margin-bottom: 7px;
    color: #fff !important;
    font-size: 17px;
    font-weight: 800;
}

.helheim-forum-node__title:hover {
    color: var(--forum-red-bright) !important;
}

.helheim-forum-node__description {
    max-width: 690px;
    margin: 0;
    color: var(--forum-muted);
    font-size: 12px;
    line-height: 1.55;
}

.helheim-forum-node__subforums {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.helheim-forum-node__subforums a {
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.65) !important;
    background: rgba(255, 255, 255, 0.025);
}

.helheim-forum-node__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.helheim-forum-node__stats > div {
    padding: 11px 10px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.18);
    text-align: center;
}

.helheim-forum-node__stats small {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.helheim-forum-node__stats strong {
    color: #fff;
    font-size: 16px;
}

.helheim-forum-node__latest {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.helheim-forum-node__avatar {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px;
    margin: 0 !important;
    border: 1px solid rgba(239, 51, 69, 0.3);
    border-radius: 7px !important;
}

.helheim-forum-node__latest > div {
    min-width: 0;
}

.helheim-forum-node__latest small,
.helheim-forum-node__empty small {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.helheim-forum-node__latest-title {
    display: block;
    overflow: hidden;
    margin-bottom: 5px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-forum-node__latest > div > span {
    color: rgba(255, 255, 255, 0.43);
    font-size: 10px;
}

.helheim-forum-node__latest > div > span a {
    color: rgba(255, 255, 255, 0.7);
}

.helheim-forum-node__latest b {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.22);
}

.helheim-forum-node__empty {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.43);
}

.helheim-forum-node__empty > .icon {
    margin: 0 !important;
    color: rgba(239, 51, 69, 0.55);
    font-size: 18px;
}

.helheim-forum-node__empty span {
    font-size: 11px;
}

.helheim-forum-node--redirect {
    grid-template-columns: 54px minmax(0, 1fr) auto;
}

.helheim-forum-node__redirect-label {
    display: block;
    margin-bottom: 6px;
    color: var(--forum-red-bright);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.helheim-forum-node__redirect-icon {
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- Нижний призыв ---------- */

.helheim-forum-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px 35px;
    border: 1px solid rgba(215, 25, 41, 0.43);
    border-radius: 9px;
    background:
        linear-gradient(
            110deg,
            rgba(117, 5, 18, 0.54),
            rgba(17, 17, 22, 0.99) 62%
        );
}

.helheim-forum-cta h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
}

.helheim-forum-cta p {
    max-width: 650px;
    margin: 0;
    color: var(--forum-muted);
    line-height: 1.6;
}

.helheim-forum-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.helheim-forum-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-decoration: none !important;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.helheim-forum-button:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.helheim-forum-button--primary {
    border: 1px solid rgba(239, 51, 69, 0.55);
    color: #fff !important;
    background:
        linear-gradient(
            145deg,
            var(--forum-red),
            var(--forum-red-dark)
        );
}

.helheim-forum-button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.035);
}

/* ---------- Адаптивность ---------- */

@media only screen and (max-width: 1050px) {
    .helheim-forum-node {
        grid-template-columns:
            54px
            minmax(0, 1fr)
            160px;
    }

    .helheim-forum-node__latest {
        grid-column: 2 / -1;
        padding-top: 15px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-left: 0;
    }
}

@media only screen and (max-width: 850px) {
    .helheim-forum-hero {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .helheim-forum-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .helheim-forum-heading > p {
        max-width: none;
        text-align: left;
    }

    .helheim-forum-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media only screen and (max-width: 700px) {
    .helheim-forum-page {
        padding-bottom: 34px;
    }

    .helheim-forum-hero {
        margin-bottom: 28px;
        padding: 26px 20px;
    }

    .helheim-forum-hero::after {
        display: none;
    }

    .helheim-forum-breadcrumb {
        margin-bottom: 21px;
    }

    .helheim-forum-hero h1 {
        font-size: 34px;
    }

    .helheim-forum-hero p {
        font-size: 14px;
        line-height: 1.58;
    }

    .helheim-forum-search {
        padding: 18px;
    }

    .helheim-forum-category__header {
        padding: 18px 19px;
    }

    .helheim-forum-category__open {
        font-size: 0;
    }

    .helheim-forum-category__open .icon {
        margin: 0 !important;
        font-size: 13px !important;
    }

    .helheim-forum-node,
    .helheim-forum-node--redirect {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 15px;
        padding: 19px;
    }

    .helheim-forum-node__icon {
        width: 42px;
        height: 42px;
    }

    .helheim-forum-node__stats {
        grid-column: 1 / -1;
    }

    .helheim-forum-node__latest {
        grid-column: 1 / -1;
    }

    .helheim-forum-node__redirect-icon {
        display: none;
    }

    .helheim-forum-cta {
        padding: 27px 20px;
    }

    .helheim-forum-cta__actions {
        width: 100%;
        flex-direction: column;
    }

    .helheim-forum-button {
        width: 100%;
    }
}

@media only screen and (max-width: 430px) {
    .helheim-forum-hero h1 {
        font-size: 31px;
    }

    .helheim-forum-heading h2 {
        font-size: 27px;
    }

    .helheim-forum-category__header h3 {
        font-size: 18px;
    }

    .helheim-forum-node__stats {
        grid-template-columns: 1fr 1fr;
    }
}
/* ==================================================
   HELHEIM — СТРАНИЦА ТЕМЫ ФОРУМА
   ================================================== */

.helheim-topic-page {
    --topic-red: #d71929;
    --topic-red-bright: #ef3345;
    --topic-red-dark: #8f0d18;
    --topic-card: #18181d;
    --topic-card-deep: #101014;
    --topic-border: rgba(215, 25, 41, 0.34);
    --topic-text: #f4f4f6;
    --topic-muted: #a9a9b2;

    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 46px;
    color: var(--topic-text);
}

.helheim-topic-page *,
.helheim-topic-page *::before,
.helheim-topic-page *::after {
    box-sizing: border-box;
}

/* ---------- Шапка темы ---------- */

.helheim-topic-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: clamp(28px, 4.5vw, 48px);
    border: 1px solid var(--topic-border);
    border-radius: 11px;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(215, 25, 41, 0.24),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            rgba(29, 28, 34, 0.99),
            rgba(9, 9, 12, 0.99)
        );
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.34),
        inset 0 0 70px rgba(125, 0, 15, 0.08);
}

.helheim-topic-hero::after {
    content: "";
    position: absolute;
    top: -150px;
    right: -80px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(215, 25, 41, 0.16);
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-topic-breadcrumb,
.helheim-topic-hero__title {
    position: relative;
    z-index: 1;
}

.helheim-topic-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 27px;
    color: rgba(255, 255, 255, 0.36);
    font-size: 11px;
}

.helheim-topic-breadcrumb a {
    color: rgba(255, 255, 255, 0.56) !important;
    transition: color 0.18s ease;
}

.helheim-topic-breadcrumb a:hover,
.helheim-topic-breadcrumb a.active {
    color: #fff !important;
}

.helheim-topic-breadcrumb .divider.icon {
    margin: 0 !important;
    color: rgba(239, 51, 69, 0.62) !important;
}

.helheim-topic-kicker {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 11px;
    color: var(--topic-red-bright);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.helheim-topic-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.helheim-topic-labels .ui.label,
.helheim-topic-labels .badge {
    margin: 0 !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
}

.helheim-topic-hero h1 {
    max-width: 970px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 4vw, 50px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.48);
}

.helheim-topic-hero__meta {
    margin-top: 14px;
    color: var(--topic-muted);
    font-size: 12px;
}

.helheim-topic-hero__meta a {
    color: var(--topic-red-bright) !important;
    font-weight: 800;
}

/* ---------- Системные сообщения ---------- */

.helheim-topic-message {
    margin: 0 0 18px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.helheim-topic-page .ui.success.message {
    border: 1px solid rgba(55, 202, 109, 0.28) !important;
    color: #d9f7e4 !important;
    background: rgba(23, 104, 53, 0.22) !important;
}

.helheim-topic-page .ui.error.message {
    border: 1px solid rgba(239, 51, 69, 0.34) !important;
    color: #ffdce1 !important;
    background: rgba(121, 12, 28, 0.24) !important;
}

/* ---------- Панель управления ---------- */

.helheim-topic-toolbar {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

.helheim-topic-toolbar__pagination {
    min-width: 0;
}

.helheim-topic-toolbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.helheim-topic-toolbar__actions form {
    margin: 0;
}

.helheim-topic-page .ui.primary.button,
.helheim-topic-page .ui.primary.buttons .button {
    min-height: 38px;
    border: 1px solid rgba(239, 51, 69, 0.48) !important;
    border-radius: 5px !important;
    color: #fff !important;
    background:
        linear-gradient(
            145deg,
            var(--topic-red),
            var(--topic-red-dark)
        ) !important;
    box-shadow: 0 8px 23px rgba(139, 5, 21, 0.18) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        filter 0.18s ease !important;
}

.helheim-topic-page .ui.primary.button:hover {
    border-color: var(--topic-red-bright) !important;
    color: #fff !important;
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.helheim-topic-page .ui.primary.button > .icon:first-child {
    margin-right: 0.55em !important;
}

.helheim-topic-page .ui.pointing.dropdown > .menu {
    min-width: 225px;
    overflow: hidden;
    border: 1px solid rgba(239, 51, 69, 0.25) !important;
    border-radius: 7px !important;
    color: rgba(255, 255, 255, 0.78) !important;
    background: #151519 !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48) !important;
}

.helheim-topic-page .ui.dropdown .menu > .header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45) !important;
    background: rgba(215, 25, 41, 0.07);
    font-size: 9px !important;
    letter-spacing: 0.12em;
}

.helheim-topic-page .ui.dropdown .menu > .item {
    color: rgba(255, 255, 255, 0.72) !important;
    background: transparent !important;
}

.helheim-topic-page .ui.dropdown .menu > .item:hover {
    color: #fff !important;
    background: rgba(215, 25, 41, 0.11) !important;
}

.helheim-topic-page .ui.dropdown .menu > .item .icon {
    color: rgba(239, 51, 69, 0.74);
}

/* ---------- Пагинация ---------- */

.helheim-topic-page .ui.pagination.menu {
    min-height: 36px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 6px !important;
    background: #151519 !important;
    box-shadow: none !important;
}

.helheim-topic-page .ui.pagination.menu .item {
    min-width: 36px;
    justify-content: center;
    border-left-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.58) !important;
    background: transparent !important;
}

.helheim-topic-page .ui.pagination.menu .item:hover {
    color: #fff !important;
    background: rgba(215, 25, 41, 0.09) !important;
}

.helheim-topic-page .ui.pagination.menu .active.item {
    color: #fff !important;
    background: rgba(215, 25, 41, 0.18) !important;
}

.helheim-topic-lock-notice {
    margin: 0 0 17px !important;
    border: 1px solid rgba(242, 201, 76, 0.27) !important;
    border-radius: 7px !important;
    color: #f5dfa0 !important;
    background: rgba(102, 76, 8, 0.18) !important;
    box-shadow: none !important;
}

/* ---------- Сообщения ---------- */

.helheim-topic-posts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.helheim-topic-post {
    position: relative;
    overflow: visible !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 10px !important;
    background:
        linear-gradient(
            145deg,
            rgba(27, 27, 33, 0.99),
            rgba(13, 13, 17, 0.99)
        ) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25) !important;
}

.helheim-topic-post__anchor {
    position: absolute;
    top: -85px;
    pointer-events: none;
}

.helheim-topic-post__main {
    overflow: hidden;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px 10px 0 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.helheim-topic-post__main > .ui.grid {
    margin: 0 !important;
}

.helheim-topic-post__main > .ui.grid > .row {
    min-height: 280px;
    padding: 0 !important;
}

.helheim-topic-author {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    margin: 0 !important;
    padding: 27px 23px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(
            180deg,
            rgba(215, 25, 41, 0.075),
            rgba(10, 10, 13, 0.12) 58%
        );
}

.helheim-topic-author::before,
.helheim-topic-author::after,
.helheim-topic-reply__author::before,
.helheim-topic-reply__author::after {
    display: none !important;
}

.helheim-topic-author__identity,
.helheim-topic-reply__author {
    text-align: center;
}

.helheim-topic-avatar {
    width: 104px !important;
    height: 104px !important;
    margin: 0 auto !important;
    border: 2px solid rgba(239, 51, 69, 0.43) !important;
    border-radius: 12px !important;
    object-fit: cover;
    background: #101014;
    box-shadow:
        0 13px 30px rgba(0, 0, 0, 0.32),
        0 0 0 5px rgba(215, 25, 41, 0.055);
}

.helheim-topic-author h3.ui.header,
.helheim-topic-reply__author h3.ui.header {
    margin: 15px 0 10px !important;
}

.helheim-topic-author h3.ui.header > a,
.helheim-topic-reply__author h3.ui.header > a {
    display: inline-block;
    font-size: 16px;
    font-weight: 900;
}

.helheim-topic-author h3 .sub.header {
    margin-top: 5px !important;
    color: rgba(255, 255, 255, 0.42) !important;
    font-size: 10px !important;
}

.helheim-topic-author .groups {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 23px;
    margin-bottom: 20px;
}

.helheim-topic-author .groups .ui.label,
.helheim-topic-author .groups .badge {
    margin: 0 !important;
    border-radius: 4px !important;
    font-size: 9px !important;
}

.helheim-topic-author__stats,
.helheim-topic-author__fields {
    margin: 0 !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.helheim-topic-author__fields {
    margin-top: 13px !important;
}

.helheim-topic-author__stats .item,
.helheim-topic-author__fields .item {
    padding: 6px 0 !important;
}

.helheim-topic-author__stats .content,
.helheim-topic-author__fields .content {
    min-width: 0;
}

.helheim-topic-author__stats .header,
.helheim-topic-author__fields .header {
    max-width: 58%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.44) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-topic-author__stats .description,
.helheim-topic-author__fields .description {
    max-width: 42%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 10px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-topic-content {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    padding: clamp(25px, 3.5vw, 42px) !important;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(215, 25, 41, 0.045),
            transparent 28%
        );
}

.helheim-topic-content .forum_post {
    min-width: 0;
    margin: 0 !important;
    color: #eeeeef !important;
    font-size: 14px;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.helheim-topic-content .forum_post > *:first-child {
    margin-top: 0 !important;
}

.helheim-topic-content .forum_post > *:last-child {
    margin-bottom: 0 !important;
}

.helheim-topic-content .forum_post p {
    margin: 0 0 1.05em;
}

.helheim-topic-content .forum_post h1,
.helheim-topic-content .forum_post h2,
.helheim-topic-content .forum_post h3,
.helheim-topic-content .forum_post h4 {
    margin: 1.5em 0 0.65em;
    color: #fff;
    line-height: 1.25;
}

.helheim-topic-content .forum_post h1 {
    font-size: 27px;
}

.helheim-topic-content .forum_post h2 {
    font-size: 22px;
}

.helheim-topic-content .forum_post h3 {
    font-size: 18px;
}

.helheim-topic-content .forum_post ul,
.helheim-topic-content .forum_post ol {
    margin: 1em 0 1.25em;
    padding-left: 1.55em;
}

.helheim-topic-content .forum_post li {
    margin: 0.35em 0;
}

.helheim-topic-content .forum_post a {
    color: var(--topic-red-bright) !important;
    text-decoration: underline;
    text-decoration-color: rgba(239, 51, 69, 0.34);
    text-underline-offset: 3px;
}

.helheim-topic-content .forum_post a:hover {
    color: #ff6877 !important;
}

.helheim-topic-content .forum_post blockquote,
.helheim-topic-content .forum_post .blockquote {
    margin: 1.3em 0;
    padding: 15px 18px;
    border: 0;
    border-left: 3px solid var(--topic-red);
    border-radius: 0 7px 7px 0;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.035);
}

.helheim-topic-content .forum_post code {
    padding: 2px 6px;
    border: 1px solid rgba(239, 51, 69, 0.19);
    border-radius: 4px;
    color: #ffc3ca;
    background: rgba(118, 6, 19, 0.2);
}

.helheim-topic-content .forum_post pre {
    overflow-x: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    color: #e7e7e9;
    background: #0d0d10;
}

.helheim-topic-signature {
    max-height: 500px;
    overflow: auto;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    color: rgba(255, 255, 255, 0.46);
}

.helheim-topic-reactions {
    min-height: 38px !important;
    margin-top: auto !important;
    padding: 9px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.065) !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(0, 0, 0, 0.18) !important;
    box-shadow: none !important;
}

/* ---------- Нижняя строка сообщения ---------- */

.helheim-topic-post__meta {
    display: flex;
    min-height: 51px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 !important;
    padding: 9px 14px 9px 22px !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.065) !important;
    border-radius: 0 0 10px 10px !important;
    color: rgba(255, 255, 255, 0.43) !important;
    background: rgba(7, 7, 10, 0.48) !important;
    box-shadow: none !important;
    font-size: 10px;
}

.helheim-topic-post__date {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.helheim-topic-post__date > a {
    font-weight: 800;
}

.helheim-topic-post__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(239, 51, 69, 0.68);
}

.helheim-topic-post__buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.helheim-topic-post__buttons .ui.mini.icon.button {
    width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 5px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    box-shadow: none !important;
}

.helheim-topic-post__buttons .ui.mini.icon.button:hover {
    border-color: rgba(239, 51, 69, 0.4) !important;
    color: #fff !important;
    background: rgba(215, 25, 41, 0.12) !important;
}

.helheim-topic-post__buttons .icon {
    margin: 0 !important;
}

.helheim-topic-pagination-bottom {
    margin: 18px 0;
}

/* ---------- Форма ответа ---------- */

.helheim-topic-reply {
    overflow: hidden;
    margin: 22px 0 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 10px !important;
    background:
        linear-gradient(
            145deg,
            rgba(27, 27, 33, 0.99),
            rgba(13, 13, 17, 0.99)
        ) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25) !important;
}

.helheim-topic-reply__heading {
    padding: 22px 26px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(
            90deg,
            rgba(215, 25, 41, 0.11),
            transparent 58%
        );
}

.helheim-topic-reply__heading .helheim-topic-kicker {
    margin-bottom: 5px;
}

.helheim-topic-reply__heading h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}

.helheim-topic-reply > .ui.grid {
    margin: 0 !important;
}

.helheim-topic-reply > .ui.grid > .row {
    padding: 0 !important;
}

.helheim-topic-reply__author {
    display: flex !important;
    align-items: center;
    flex-direction: column;
    margin: 0 !important;
    justify-content: flex-start;
    padding: 27px 23px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(215, 25, 41, 0.045);
}

.helheim-topic-reply__content {
    padding: 26px !important;
}

.helheim-topic-reply .ui.form .field {
    margin-bottom: 14px;
}

.helheim-topic-reply .tox-tinymce {
    overflow: hidden;
    min-height: 310px;
    border: 1px solid rgba(239, 51, 69, 0.2) !important;
    border-radius: 7px !important;
    background: #101014 !important;
    box-shadow: none !important;
}

.helheim-topic-reply .tox .tox-editor-header,
.helheim-topic-reply .tox .tox-toolbar-overlord,
.helheim-topic-reply .tox .tox-toolbar,
.helheim-topic-reply .tox .tox-toolbar__primary,
.helheim-topic-reply .tox .tox-toolbar__overflow,
.helheim-topic-reply .tox .tox-menubar,
.helheim-topic-reply .tox .tox-statusbar {
    border-color: rgba(255, 255, 255, 0.065) !important;
    color: rgba(255, 255, 255, 0.72) !important;
    background: #17171c !important;
}

.helheim-topic-reply .tox .tox-edit-area__iframe {
    background: #101014 !important;
}

.helheim-topic-reply .tox .tox-tbtn {
    color: rgba(255, 255, 255, 0.67) !important;
    background: transparent !important;
}

.helheim-topic-reply .tox .tox-tbtn svg {
    fill: rgba(255, 255, 255, 0.67) !important;
}

.helheim-topic-reply .tox .tox-tbtn:hover,
.helheim-topic-reply .tox .tox-tbtn--enabled {
    color: #fff !important;
    background: rgba(215, 25, 41, 0.13) !important;
}

.helheim-topic-reply textarea {
    min-height: 280px;
    border: 1px solid rgba(239, 51, 69, 0.2) !important;
    color: #fff !important;
    background: #101014 !important;
}

/* ---------- Модальные окна ---------- */

.ui.modal[id^="modal-"] {
    overflow: hidden;
    border: 1px solid rgba(239, 51, 69, 0.24) !important;
    border-radius: 9px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    background: #151519 !important;
}

.ui.modal[id^="modal-"] > .header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
    color: #fff !important;
    background: rgba(215, 25, 41, 0.1) !important;
}

.ui.modal[id^="modal-"] > .content,
.ui.modal[id^="modal-"] > .scrolling.content {
    color: rgba(255, 255, 255, 0.72) !important;
    background: #151519 !important;
}

.ui.modal[id^="modal-"] > .actions {
    border-top: 1px solid rgba(255, 255, 255, 0.065) !important;
    background: #101014 !important;
}

.ui.modal[id^="modal-"] .ui.positive.button {
    color: #fff !important;
    background: linear-gradient(145deg, #d71929, #8f0d18) !important;
}

.ui.modal[id^="modal-"] .ui.negative.button {
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* ---------- Адаптивность ---------- */

@media only screen and (max-width: 900px) {
    .helheim-topic-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .helheim-topic-toolbar__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .helheim-topic-author,
    .helheim-topic-reply__author {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    }

    .helheim-topic-author {
        display: grid !important;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 22px;
    }

    .helheim-topic-author__identity {
        grid-row: 1 / span 2;
    }

    .helheim-topic-author__stats,
    .helheim-topic-author__fields {
        align-self: start;
    }

    .helheim-topic-reply__author {
        flex-direction: row;
        gap: 18px;
        text-align: left;
    }

    .helheim-topic-reply__author .helheim-topic-avatar {
        width: 72px !important;
        height: 72px !important;
        margin: 0 !important;
    }

    .helheim-topic-reply__author h3.ui.header {
        margin: 0 !important;
    }
}

@media only screen and (max-width: 700px) {
    .helheim-topic-page {
        padding-bottom: 34px;
    }

    .helheim-topic-hero {
        padding: 25px 20px;
    }

    .helheim-topic-hero::after {
        display: none;
    }

    .helheim-topic-breadcrumb {
        margin-bottom: 21px;
        font-size: 10px;
    }

    .helheim-topic-hero h1 {
        font-size: 31px;
    }

    .helheim-topic-toolbar__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .helheim-topic-toolbar__actions form,
    .helheim-topic-toolbar__actions .ui.dropdown {
        width: 100%;
    }

    .helheim-topic-toolbar__actions .ui.button {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
    }

    .helheim-topic-author {
        display: flex !important;
        align-items: center;
        flex-direction: column;
    }

    .helheim-topic-author__identity {
        width: 100%;
    }

    .helheim-topic-author__stats,
    .helheim-topic-author__fields {
        width: 100%;
    }

    .helheim-topic-content {
        padding: 24px 20px !important;
    }

    .helheim-topic-post__meta {
        align-items: flex-start;
        flex-direction: column;
        padding: 13px 14px !important;
    }

    .helheim-topic-post__buttons {
        width: 100%;
        justify-content: flex-end;
    }

    .helheim-topic-reply__heading {
        padding: 19px 20px 16px;
    }

    .helheim-topic-reply__content {
        padding: 20px !important;
    }
}

@media only screen and (max-width: 460px) {
    .helheim-topic-hero h1 {
        font-size: 27px;
    }

    .helheim-topic-toolbar__actions {
        grid-template-columns: 1fr;
    }

    .helheim-topic-avatar {
        width: 90px !important;
        height: 90px !important;
    }

    .helheim-topic-content .forum_post {
        font-size: 13px;
        line-height: 1.7;
    }

    .helheim-topic-post__buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* ==================================================
   HELHEIM — СТРАНИЦА РАЗДЕЛА ФОРУМА (view_forum.tpl)
   ================================================== */

.helheim-forum-view-page {
    --forum-view-red: #d71929;
    --forum-view-red-bright: #ef3345;
    --forum-view-red-dark: #8f0d18;
    --forum-view-bg: #0d0d10;
    --forum-view-card: #17171c;
    --forum-view-card-deep: #111115;
    --forum-view-border: rgba(255, 255, 255, 0.075);
    --forum-view-red-border: rgba(215, 25, 41, 0.34);
    --forum-view-text: #f5f5f6;
    --forum-view-muted: #9b9ba5;

    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px 52px;
    color: var(--forum-view-text);
}

.helheim-forum-view-page *,
.helheim-forum-view-page *::before,
.helheim-forum-view-page *::after {
    box-sizing: border-box;
}

/* ---------- Шапка раздела ---------- */

.helheim-forum-view-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 24px;
    padding: clamp(27px, 4vw, 44px);
    border: 1px solid var(--forum-view-red-border);
    border-radius: 11px;
    background:
        radial-gradient(circle at 92% 3%, rgba(184, 0, 24, 0.22), transparent 38%),
        linear-gradient(135deg, rgba(28, 28, 34, 0.99), rgba(10, 10, 13, 0.99));
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.34),
        inset 0 0 70px rgba(120, 0, 15, 0.07);
}

.helheim-forum-view-hero::after {
    content: "";
    position: absolute;
    top: -112px;
    right: -72px;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(215, 25, 41, 0.16);
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-forum-view-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 700;
}

.helheim-forum-view-breadcrumb a {
    color: rgba(255, 255, 255, 0.52) !important;
    transition: color 0.18s ease;
}

.helheim-forum-view-breadcrumb a:hover,
.helheim-forum-view-breadcrumb a.active {
    color: var(--forum-view-red-bright) !important;
}

.helheim-forum-view-breadcrumb .icon.divider {
    margin: 0 !important;
    color: rgba(239, 51, 69, 0.5) !important;
}

.helheim-forum-view-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    align-items: end;
    gap: 34px;
}

.helheim-forum-view-kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--forum-view-red-bright);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.helheim-forum-view-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.03;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.helheim-forum-view-hero__copy p {
    max-width: 690px;
    margin: 0;
    color: var(--forum-view-muted);
    font-size: 14px;
    line-height: 1.7;
}

.helheim-forum-view-hero__tools {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
}

.helheim-forum-view-new-topic.ui.button,
.helheim-forum-view-empty .ui.primary.button {
    display: inline-flex !important;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border: 1px solid rgba(239, 51, 69, 0.42) !important;
    border-radius: 6px !important;
    color: #fff !important;
    background: linear-gradient(145deg, var(--forum-view-red), var(--forum-view-red-dark)) !important;
    box-shadow: 0 9px 24px rgba(145, 0, 19, 0.27) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em;
}

.helheim-forum-view-new-topic.ui.button:hover,
.helheim-forum-view-empty .ui.primary.button:hover {
    border-color: var(--forum-view-red-bright) !important;
    background: linear-gradient(145deg, #ef293b, #a70c19) !important;
    transform: translateY(-1px);
}

.helheim-forum-view-search .ui.action.input {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.helheim-forum-view-search input {
    min-height: 43px !important;
    border: 0 !important;
    color: #fff !important;
    background: rgba(7, 7, 10, 0.55) !important;
    box-shadow: none !important;
}

.helheim-forum-view-search input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.helheim-forum-view-search .ui.primary.icon.button {
    width: 47px;
    margin: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(239, 51, 69, 0.3) !important;
    border-radius: 0 !important;
    color: #fff !important;
    background: rgba(215, 25, 41, 0.88) !important;
    box-shadow: none !important;
}

/* ---------- Раскладка ---------- */

.helheim-forum-view-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.helheim-forum-view-layout.has-left-widgets {
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
}

.helheim-forum-view-layout.has-right-widgets {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
}

.helheim-forum-view-layout.has-left-widgets.has-right-widgets {
    grid-template-columns: minmax(205px, 255px) minmax(0, 1fr) minmax(205px, 255px);
}

.helheim-forum-view-main {
    min-width: 0;
}

.helheim-forum-view-widgets > * {
    margin-bottom: 16px !important;
}

.helheim-forum-view-widgets .ui.segment,
.helheim-forum-view-widgets .ui.card,
.helheim-forum-view-widgets .ui.vertical.menu {
    border: 1px solid var(--forum-view-border) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    background: var(--forum-view-card) !important;
    box-shadow: none !important;
}

/* ---------- Разделы и списки ---------- */

.helheim-forum-view-section {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--forum-view-border);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(24, 24, 29, 0.99), rgba(13, 13, 17, 0.99));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.23);
}

.helheim-forum-view-section__heading {
    display: flex;
    min-height: 67px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--forum-view-border);
    background:
        linear-gradient(90deg, rgba(215, 25, 41, 0.12), transparent 59%);
}

.helheim-forum-view-section__heading .helheim-forum-view-kicker {
    margin-bottom: 4px;
    font-size: 8px;
}

.helheim-forum-view-section__heading h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.15;
}

.helheim-forum-view-section__count {
    display: inline-flex;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.26);
    border-radius: 6px;
    color: #fff;
    background: rgba(215, 25, 41, 0.1);
    font-size: 11px;
    font-weight: 900;
}

.helheim-forum-view-list {
    display: flex;
    flex-direction: column;
}

.helheim-forum-view-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) minmax(235px, 330px);
    align-items: center;
    gap: 16px;
    min-height: 91px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.helheim-forum-view-row--topic {
    grid-template-columns: 44px minmax(0, 1fr) 122px minmax(235px, 320px);
}

.helheim-forum-view-row:last-child {
    border-bottom: 0;
}

.helheim-forum-view-row:hover {
    border-color: rgba(239, 51, 69, 0.17);
    background: linear-gradient(90deg, rgba(215, 25, 41, 0.055), transparent 58%);
}

.helheim-forum-view-row--sticky {
    background: linear-gradient(90deg, rgba(215, 25, 41, 0.055), transparent 60%);
}

.helheim-forum-view-row__icon {
    display: flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 7px;
    color: var(--forum-view-red-bright);
    background: rgba(215, 25, 41, 0.09);
}

.helheim-forum-view-row__icon .icon {
    margin: 0 !important;
    font-size: 15px !important;
}

.helheim-forum-view-row__content,
.helheim-forum-view-row__latest-copy {
    min-width: 0;
}

.helheim-forum-view-row__labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.helheim-forum-view-row__labels .badge,
.helheim-forum-view-row__labels .ui.label {
    margin: 0 !important;
    padding: 0.32em 0.55em !important;
    border-radius: 4px !important;
    font-size: 8px !important;
    line-height: 1 !important;
}

.helheim-forum-view-row__title {
    display: block;
    overflow: hidden;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.34;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.helheim-forum-view-row__title:hover {
    color: var(--forum-view-red-bright) !important;
}

.helheim-forum-view-row__meta,
.helheim-forum-view-row__latest-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 9px;
    line-height: 1.45;
}

.helheim-forum-view-row__meta a,
.helheim-forum-view-row__latest-meta a {
    font-weight: 800;
}

.helheim-forum-view-row__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.helheim-forum-view-stat {
    display: flex;
    min-width: 0;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.17);
}

.helheim-forum-view-stat span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.helheim-forum-view-stat strong {
    margin-top: 2px;
    color: #fff;
    font-size: 13px;
}

.helheim-forum-view-row__latest {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding-left: 17px;
    border-left: 1px solid rgba(255, 255, 255, 0.065);
}

.helheim-forum-view-row__avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 5px;
    object-fit: cover;
    image-rendering: pixelated;
    background: #101014;
}

.helheim-forum-view-row__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.31);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.helheim-forum-view-row__latest-title {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-forum-view-row__latest-title:hover {
    color: var(--forum-view-red-bright) !important;
}

.helheim-forum-view-row__empty {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 9px;
}

.helheim-forum-view-row__empty .icon {
    margin: 0 !important;
    color: rgba(239, 51, 69, 0.55);
}

/* ---------- Пустой раздел ---------- */

.helheim-forum-view-empty {
    padding: 48px 24px;
    border: 1px solid var(--forum-view-border);
    border-radius: 10px;
    text-align: center;
    background: linear-gradient(145deg, rgba(24, 24, 29, 0.99), rgba(13, 13, 17, 0.99));
}

.helheim-forum-view-empty__icon {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 17px;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 10px;
    color: var(--forum-view-red-bright);
    background: rgba(215, 25, 41, 0.09);
    font-size: 23px;
}

.helheim-forum-view-empty__icon .icon {
    margin: 0 !important;
}

.helheim-forum-view-empty h2 {
    margin: 0 0 8px;
    color: #fff;
}

.helheim-forum-view-empty p {
    margin: 0 0 20px;
    color: var(--forum-view-muted);
}

/* ---------- Пагинация ---------- */

.helheim-forum-view-pagination {
    min-height: 1px;
}

.helheim-forum-view-pagination--top {
    margin: 0 0 14px;
}

.helheim-forum-view-pagination--bottom {
    margin-top: 15px;
}

.helheim-forum-view-page .ui.pagination.menu {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 6px !important;
    background: #151519 !important;
    box-shadow: none !important;
}

.helheim-forum-view-page .ui.pagination.menu .item {
    min-width: 34px;
    border-color: rgba(255, 255, 255, 0.055) !important;
    color: rgba(255, 255, 255, 0.61) !important;
    background: transparent !important;
}

.helheim-forum-view-page .ui.pagination.menu .active.item,
.helheim-forum-view-page .ui.pagination.menu .item:hover {
    color: #fff !important;
    background: rgba(215, 25, 41, 0.16) !important;
}

/* ---------- Адаптивность ---------- */

@media only screen and (max-width: 1120px) {
    .helheim-forum-view-layout.has-left-widgets,
    .helheim-forum-view-layout.has-right-widgets,
    .helheim-forum-view-layout.has-left-widgets.has-right-widgets {
        grid-template-columns: minmax(0, 1fr);
    }

    .helheim-forum-view-widgets {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .helheim-forum-view-widgets > * {
        margin-bottom: 0 !important;
    }
}

@media only screen and (max-width: 920px) {
    .helheim-forum-view-hero__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .helheim-forum-view-hero__tools {
        max-width: 500px;
    }

    .helheim-forum-view-row,
    .helheim-forum-view-row--topic {
        grid-template-columns: 42px minmax(0, 1fr) 112px;
    }

    .helheim-forum-view-row__latest {
        grid-column: 2 / -1;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.055);
        border-left: 0;
    }

    .helheim-forum-view-row--subforum .helheim-forum-view-row__latest {
        grid-column: 2 / -1;
    }
}

@media only screen and (max-width: 700px) {
    .helheim-forum-view-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .helheim-forum-view-hero {
        padding: 25px 20px;
    }

    .helheim-forum-view-hero::after {
        display: none;
    }

    .helheim-forum-view-hero h1 {
        font-size: 31px;
    }

    .helheim-forum-view-section__heading {
        min-height: 60px;
        padding: 14px 16px;
    }

    .helheim-forum-view-row,
    .helheim-forum-view-row--topic {
        grid-template-columns: 39px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .helheim-forum-view-row__stats {
        grid-column: 2 / -1;
        grid-template-columns: repeat(2, minmax(0, 92px));
        justify-content: start;
    }

    .helheim-forum-view-row__latest,
    .helheim-forum-view-row--subforum .helheim-forum-view-row__latest {
        grid-column: 2 / -1;
    }

    .helheim-forum-view-row__title {
        white-space: normal;
    }

    .helheim-forum-view-widgets {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media only screen and (max-width: 460px) {
    .helheim-forum-view-hero__tools {
        width: 100%;
    }

    .helheim-forum-view-hero h1 {
        font-size: 27px;
    }

    .helheim-forum-view-row__latest {
        align-items: flex-start;
    }

    .helheim-forum-view-row__avatar {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .helheim-forum-view-row__latest-title {
        white-space: normal;
    }
}

/* ==================================================
   HELHEIM — СТРАНИЦА ПОЛЬЗОВАТЕЛЕЙ
   ================================================== */

.helheim-members-page {
    --members-red: #d71929;
    --members-red-bright: #ef3345;
    --members-card: #17171c;
    --members-card-deep: #101014;
    --members-border: rgba(215, 25, 41, 0.3);
    --members-text: #f5f5f7;
    --members-muted: rgba(255, 255, 255, 0.48);

    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 14px 54px;
    color: var(--members-text);
}

.helheim-members-page *,
.helheim-members-page *::before,
.helheim-members-page *::after {
    box-sizing: border-box;
}

.helheim-members-hero {
    position: relative;
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin: 14px 0 22px;
    padding: 34px 40px;
    border: 1px solid var(--members-border);
    border-radius: 11px;
    background:
        radial-gradient(circle at 90% 10%, rgba(215, 25, 41, 0.24), transparent 36%),
        linear-gradient(135deg, rgba(29, 29, 35, 0.99), rgba(10, 10, 13, 0.99));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.helheim-members-hero::after {
    content: "";
    position: absolute;
    top: -110px;
    right: -46px;
    width: 275px;
    height: 275px;
    border: 1px solid rgba(239, 51, 69, 0.16);
    transform: rotate(45deg);
}

.helheim-members-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.helheim-members-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--members-red-bright);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.helheim-members-hero h1 {
    margin: 0 0 11px;
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    text-transform: uppercase;
}

.helheim-members-hero p {
    max-width: 650px;
    margin: 0;
    color: var(--members-muted);
    font-size: 14px;
    line-height: 1.7;
}

.helheim-members-hero__mark {
    position: relative;
    z-index: 1;
    display: flex;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 14px;
    color: rgba(239, 51, 69, 0.86);
    background: rgba(215, 25, 41, 0.08);
    box-shadow: inset 0 0 35px rgba(215, 25, 41, 0.08);
}

.helheim-members-hero__mark .icon {
    margin: 0 !important;
    font-size: 37px;
}

.helheim-members-message {
    margin-bottom: 18px !important;
}

.helheim-members-layout {
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.helheim-members-sidebar {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.helheim-members-nav,
.helheim-members-panel,
.helheim-members-board {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(25, 25, 30, 0.99), rgba(14, 14, 18, 0.99));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.helheim-members-panel__heading,
.helheim-members-board__heading {
    display: flex;
    min-height: 50px;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background:
        linear-gradient(90deg, rgba(215, 25, 41, 0.11), transparent 63%),
        rgba(255, 255, 255, 0.015);
}

.helheim-members-panel__heading span {
    color: rgba(255, 255, 255, 0.73);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.helheim-members-nav__item {
    display: flex;
    min-height: 47px;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: 11px;
    font-weight: 800;
    transition: color 0.18s ease, background 0.18s ease, padding 0.18s ease;
}

.helheim-members-nav__item:last-child {
    border-bottom: 0;
}

.helheim-members-nav__item .icon {
    width: 18px;
    margin: 0 !important;
    color: rgba(239, 51, 69, 0.68);
    text-align: center;
}

.helheim-members-nav__item:hover,
.helheim-members-nav__item.is-active {
    padding-left: 19px;
    color: #fff !important;
    background: linear-gradient(90deg, rgba(215, 25, 41, 0.16), rgba(215, 25, 41, 0.025));
}

.helheim-members-nav__item.is-active {
    box-shadow: inset 3px 0 0 var(--members-red-bright);
}

.helheim-members-panel__body {
    padding: 14px;
}

.helheim-members-search .ui.input > input,
.helheim-members-page .ui.selection.dropdown {
    min-height: 42px !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    background: rgba(0, 0, 0, 0.24) !important;
    box-shadow: none !important;
}

.helheim-members-search .ui.input > input::placeholder {
    color: rgba(255, 255, 255, 0.28) !important;
}

.helheim-members-search .ui.input > .icon {
    color: rgba(239, 51, 69, 0.72) !important;
}

.helheim-members-search.ui.search > .results {
    overflow: hidden;
    border: 1px solid rgba(239, 51, 69, 0.24) !important;
    border-radius: 7px !important;
    background: #151519 !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4) !important;
}

.helheim-members-search.ui.search > .results .result {
    border-bottom-color: rgba(255, 255, 255, 0.055) !important;
}

.helheim-members-search.ui.search > .results .result:hover {
    background: rgba(215, 25, 41, 0.1) !important;
}

.helheim-members-search.ui.search > .results .result .title {
    color: #fff !important;
}

.helheim-members-search.ui.search > .results .result .description {
    color: rgba(255, 255, 255, 0.4) !important;
}

.helheim-members-page .ui.selection.dropdown .text,
.helheim-members-page .ui.selection.dropdown .dropdown.icon {
    color: rgba(255, 255, 255, 0.62) !important;
}

.helheim-members-page .ui.selection.dropdown .menu {
    border: 1px solid rgba(239, 51, 69, 0.22) !important;
    background: #151519 !important;
}

.helheim-members-page .ui.selection.dropdown .menu > .item {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.68) !important;
    background: #151519 !important;
}

.helheim-members-page .ui.selection.dropdown .menu > .item:hover {
    color: #fff !important;
    background: rgba(215, 25, 41, 0.12) !important;
}

.helheim-members-new-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.helheim-members-new-grid__item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 6px;
    background: #101014;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.helheim-members-new-grid__item:hover {
    border-color: rgba(239, 51, 69, 0.62);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.helheim-members-new-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.helheim-members-content {
    min-width: 0;
}

.helheim-members-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.helheim-members-board--single {
    width: 100%;
}

.helheim-members-board__heading {
    min-height: 68px;
    padding: 14px 17px;
}

.helheim-members-board__heading .helheim-members-kicker {
    margin-bottom: 4px;
    font-size: 7px;
}

.helheim-members-board__heading h2 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.helheim-members-board__body {
    padding: 9px;
}

.helheim-members-list.ui.list {
    margin: 0 !important;
}

.helheim-members-list.ui.list > .helheim-members-entry.item {
    position: relative;
    display: flex !important;
    min-height: 55px;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 9px 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.helheim-members-list.ui.list > .helheim-members-entry.item:last-child {
    border-bottom: 0 !important;
}

.helheim-members-list.ui.list > .helheim-members-entry.item:hover {
    background: linear-gradient(90deg, rgba(215, 25, 41, 0.1), transparent) !important;
    transform: translateX(2px);
}

.helheim-members-entry__avatar.ui.avatar.image {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px;
    margin: 0 !important;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 5px !important;
    object-fit: cover;
    image-rendering: pixelated;
    background: #101014;
}

.helheim-members-entry__content {
    min-width: 0;
    flex: 1;
    padding: 0 !important;
}

.helheim-members-entry__content > .helheim-members-entry__avatar {
    margin-right: 8px !important;
    vertical-align: middle;
}

.helheim-members-entry__name {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.4;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.helheim-members-entry__name .badge,
.helheim-members-entry__name .ui.label {
    margin-left: 4px !important;
    font-size: 7px !important;
    vertical-align: middle;
}

.helheim-members-entry__meta {
    display: block !important;
    overflow: hidden;
    margin-top: 3px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 8px !important;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helheim-members-entry__count {
    order: 3;
    display: flex;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 1px solid rgba(239, 51, 69, 0.2);
    border-radius: 5px;
    color: #fff;
    background: rgba(215, 25, 41, 0.08);
}

.helheim-members-entry__count strong {
    font-size: 12px;
}

.helheim-members-view-all {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    border: 1px solid rgba(239, 51, 69, 0.25);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(215, 25, 41, 0.055);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.helheim-members-view-all .icon {
    margin: 0 !important;
}

.helheim-members-view-all:hover {
    border-color: rgba(239, 51, 69, 0.62);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.14);
}

.helheim-members-pagination {
    margin-top: 12px;
}

.helheim-members-page .ui.pagination.menu {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 6px !important;
    background: #151519 !important;
    box-shadow: none !important;
}

.helheim-members-page .ui.pagination.menu .item {
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.58) !important;
    background: transparent !important;
}

.helheim-members-page .ui.pagination.menu .active.item,
.helheim-members-page .ui.pagination.menu .item:hover {
    color: #fff !important;
    background: rgba(215, 25, 41, 0.15) !important;
}

.helheim-members-empty {
    padding: 46px 24px;
    border: 1px solid var(--members-border);
    border-radius: 9px;
    color: var(--members-muted);
    text-align: center;
    background: linear-gradient(145deg, rgba(24, 24, 29, 0.99), rgba(13, 13, 17, 0.99));
}

.helheim-members-empty--small {
    padding: 24px 15px;
    border: 0;
    background: transparent;
}

.helheim-members-empty__icon {
    display: flex;
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 13px;
    border: 1px solid rgba(239, 51, 69, 0.25);
    border-radius: 9px;
    color: var(--members-red-bright);
    background: rgba(215, 25, 41, 0.08);
}

.helheim-members-empty__icon .icon {
    margin: 0 !important;
    font-size: 21px;
}

@media only screen and (max-width: 1050px) {
    .helheim-members-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 820px) {
    .helheim-members-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .helheim-members-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .helheim-members-nav {
        grid-row: span 2;
    }
}

@media only screen and (max-width: 650px) {
    .helheim-members-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .helheim-members-hero {
        min-height: 170px;
        padding: 28px 22px;
    }

    .helheim-members-hero::after,
    .helheim-members-hero__mark {
        display: none;
    }

    .helheim-members-hero h1 {
        font-size: 31px;
    }

    .helheim-members-sidebar,
    .helheim-members-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .helheim-members-nav {
        grid-row: auto;
    }
}

@media only screen and (max-width: 430px) {
    .helheim-members-new-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .helheim-members-board__heading {
        min-height: 61px;
    }

    .helheim-members-entry__meta {
        white-space: normal;
    }
}

/* ==================================================
   HELHEIM — CUSTOM RULES PAGE
   ================================================== */

body.dark h2.ui.header:has(+ .ui.segment .helheim-rules),
body.dark h2.ui.header:has(+ .helheim-rules) {
    display: none !important;
}

body.dark .ui.segment:has(.helheim-rules),
.ui.segment:has(.helheim-rules) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.helheim-rules {
    --rules-red: #d71929;
    --rules-red-bright: #ef3345;
    --rules-red-dark: #8f0d18;
    --rules-card: #17171c;
    --rules-card-deep: #101014;
    --rules-border: rgba(215, 25, 41, 0.34);
    --rules-text: #f3f3f5;
    --rules-muted: #aaaab3;

    width: 100%;
    max-width: 1180px;
    margin: 0 auto 48px;
    color: var(--rules-text);
    font-size: 15px;
    line-height: 1.75;
}

.helheim-rules,
.helheim-rules * {
    box-sizing: border-box;
}

.helheim-rules__hero {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 62px);
    border: 1px solid var(--rules-border);
    border-radius: 12px;
    background:
        radial-gradient(circle at 88% 10%, rgba(215, 25, 41, 0.28), transparent 36%),
        linear-gradient(135deg, rgba(30, 30, 36, 0.99), rgba(8, 8, 11, 0.99));
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38), inset 0 0 70px rgba(125, 0, 15, 0.08);
}

.helheim-rules__hero::after {
    content: "";
    position: absolute;
    top: -115px;
    right: -60px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(239, 51, 69, 0.18);
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-rules__kicker {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 13px;
    color: var(--rules-red-bright) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.helheim-rules__hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px !important;
    color: #fff !important;
    font-size: clamp(34px, 4.5vw, 58px) !important;
    line-height: 1.05 !important;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.helheim-rules__hero p {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    color: var(--rules-muted) !important;
    font-size: 14px;
}

.helheim-rules__notice {
    margin: 18px 0;
    padding: 22px 24px;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-left: 4px solid var(--rules-red-bright);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(90, 5, 16, 0.27), rgba(20, 20, 25, 0.98));
}

.helheim-rules__notice p {
    margin: 0 !important;
    color: #d7d7dc !important;
}

.helheim-rules__notice p + p {
    margin-top: 8px !important;
}

.helheim-rules__notice strong {
    color: #fff !important;
}

.helheim-rules__navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 18px 0 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    background: #121216;
}

.helheim-rules__navigation a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: #c8c8ce !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.025);
    transition: 0.2s ease;
}

.helheim-rules__navigation a:hover {
    border-color: rgba(239, 51, 69, 0.55);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.12);
    transform: translateY(-1px);
}

.helheim-rules__section {
    position: relative;
    margin-top: 14px;
    padding: 27px 30px 25px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-left: 3px solid var(--rules-red);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(25, 25, 30, 0.99), rgba(13, 13, 17, 0.99));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    scroll-margin-top: 95px;
}

.helheim-rules__section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 145px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 51, 69, 0.72));
}

.helheim-rules__section h2 {
    margin: 0 0 18px !important;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff !important;
    font-size: clamp(21px, 2.3vw, 28px) !important;
    line-height: 1.2 !important;
}

.helheim-rules__section p {
    margin: 0 0 13px !important;
    color: #c2c2c9 !important;
}

.helheim-rules__section p:last-child {
    margin-bottom: 0 !important;
}

.helheim-rules__section strong {
    color: #fff !important;
}

.helheim-rules__section ul {
    margin: 12px 0 17px !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.helheim-rules__section li {
    position: relative;
    margin: 8px 0 !important;
    padding-left: 22px;
    color: #c2c2c9 !important;
}

.helheim-rules__section li::before {
    content: "";
    position: absolute;
    top: 0.76em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--rules-red-bright);
    box-shadow: 0 0 12px rgba(239, 51, 69, 0.35);
    transform: translateY(-50%) rotate(45deg);
}

.helheim-rules__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 20px 24px;
    border: 1px solid var(--rules-border);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(73, 3, 13, 0.48), rgba(15, 15, 19, 0.98));
}

.helheim-rules__footer strong {
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.helheim-rules__footer span {
    color: var(--rules-red-bright) !important;
    font-size: 18px;
    font-weight: 800;
}

@media only screen and (max-width: 900px) {
    .helheim-rules__navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 620px) {
    .helheim-rules {
        margin-bottom: 28px;
        font-size: 14px;
    }

    .helheim-rules__hero {
        padding: 30px 23px;
    }

    .helheim-rules__hero::after {
        display: none;
    }

    .helheim-rules__navigation {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .helheim-rules__section {
        padding: 23px 20px 21px;
    }

    .helheim-rules__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==================================================
   HELHEIM — ИСПРАВЛЕНИЕ ЯКОРЕЙ НА СТРАНИЦЕ ПРАВИЛ
   ================================================== */

.helheim-rules__anchor {
    display: block;
    position: relative;
    top: -92px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .helheim-rules__anchor {
        top: -76px;
    }
}
/* ==================================================
   HELHEIM — ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ
   ================================================== */

.helheim-privacy {
    --privacy-red: #d71929;
    --privacy-red-bright: #ef3345;
    --privacy-red-dark: #8f0d18;
    --privacy-card: #17171c;
    --privacy-card-deep: #0f0f13;
    --privacy-border: rgba(215, 25, 41, 0.3);
    --privacy-text: #f4f4f6;
    --privacy-muted: #aaaab4;

    width: 100%;
    max-width: 1180px;
    margin: 0 auto 48px;
    color: var(--privacy-text);
}

.helheim-privacy *,
.helheim-privacy *::before,
.helheim-privacy *::after {
    box-sizing: border-box;
}

.helheim-privacy__hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid var(--privacy-border);
    border-radius: 12px;
    background:
        radial-gradient(circle at 88% 10%, rgba(215, 25, 41, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(31, 31, 38, 0.99), rgba(9, 9, 12, 0.99));
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.36),
        inset 0 0 80px rgba(140, 0, 20, 0.07);
}

.helheim-privacy__hero::after {
    content: "";
    position: absolute;
    top: -130px;
    right: -70px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(215, 25, 41, 0.19);
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-privacy__kicker {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 13px;
    color: var(--privacy-red-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.helheim-privacy__hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.04;
    text-transform: uppercase;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.65);
}

.helheim-privacy__edition {
    position: relative;
    z-index: 1;
    margin: 0 0 20px !important;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.helheim-privacy__lead {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 !important;
    color: var(--privacy-muted);
    font-size: 16px;
    line-height: 1.75;
}

.helheim-privacy__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.helheim-privacy__summary-card {
    display: flex;
    min-height: 130px;
    gap: 15px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(27, 27, 33, 0.99), rgba(15, 15, 19, 0.99));
}

.helheim-privacy__summary-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(215, 25, 41, 0.42);
    border-radius: 8px;
    color: var(--privacy-red-bright);
    background: rgba(215, 25, 41, 0.11);
}

.helheim-privacy__summary-icon .icon {
    margin: 0 !important;
    font-size: 18px;
}

.helheim-privacy__summary-card strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 14px;
}

.helheim-privacy__summary-card p {
    margin: 0 !important;
    color: var(--privacy-muted);
    font-size: 13px;
    line-height: 1.62;
}

.helheim-privacy__notice {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 21px 23px;
    border: 1px solid rgba(215, 25, 41, 0.35);
    border-left: 4px solid var(--privacy-red);
    border-radius: 7px;
    background:
        linear-gradient(90deg, rgba(115, 5, 18, 0.22), rgba(20, 20, 25, 0.97));
}

.helheim-privacy__notice-icon {
    color: var(--privacy-red-bright);
    font-size: 22px;
}

.helheim-privacy__notice-icon .icon {
    margin: 0 !important;
}

.helheim-privacy__notice strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.helheim-privacy__notice p {
    margin: 0 !important;
    color: var(--privacy-muted);
    line-height: 1.65;
}

.helheim-privacy__section {
    position: relative;
    overflow: hidden;
    margin-top: 14px;
    padding: 30px 34px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 9px;
    background:
        linear-gradient(145deg, rgba(27, 27, 33, 0.995), rgba(14, 14, 18, 0.995));
    box-shadow: 0 13px 32px rgba(0, 0, 0, 0.2);
}

.helheim-privacy__section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 115px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--privacy-red));
}

.helheim-privacy__section-number {
    position: absolute;
    top: 17px;
    right: 24px;
    color: rgba(215, 25, 41, 0.15);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.helheim-privacy__section h2 {
    position: relative;
    z-index: 1;
    max-width: calc(100% - 70px);
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(21px, 2.2vw, 28px);
    line-height: 1.2;
}

.helheim-privacy__section h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 2px;
    margin-top: 12px;
    background: linear-gradient(90deg, var(--privacy-red-bright), transparent);
}

.helheim-privacy__section p {
    margin: 0 0 14px !important;
    color: var(--privacy-muted);
    font-size: 14px;
    line-height: 1.75;
}

.helheim-privacy__section p:last-child {
    margin-bottom: 0 !important;
}

.helheim-privacy__section b,
.helheim-privacy__section strong {
    color: #fff;
}

.helheim-privacy__section ul {
    margin: 15px 0 19px;
    padding: 0;
    list-style: none;
}

.helheim-privacy__section li {
    position: relative;
    margin: 9px 0;
    padding-left: 23px;
    color: #c7c7ce;
    line-height: 1.65;
}

.helheim-privacy__section li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 2px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--privacy-red-bright);
    transform: rotate(45deg);
}

.helheim-privacy__warning {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 17px 19px;
    border: 1px solid rgba(239, 160, 40, 0.25);
    border-radius: 6px;
    background: rgba(162, 93, 8, 0.1);
}

.helheim-privacy__warning .icon {
    margin: 2px 0 0 !important;
    color: #efad3f;
    font-size: 19px;
}

.helheim-privacy__warning p {
    margin: 0 !important;
    color: #d0c1aa;
}

.helheim-privacy__contact {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin: 21px 0;
    padding: 18px 20px;
    border: 1px solid rgba(215, 25, 41, 0.35);
    border-radius: 7px;
    background: rgba(215, 25, 41, 0.075);
}

.helheim-privacy__contact span {
    min-width: 0;
}

.helheim-privacy__contact small {
    display: block;
    margin-bottom: 5px;
    color: var(--privacy-red-bright);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.helheim-privacy__contact strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.helheim-privacy__button {
    display: inline-flex;
    min-height: 41px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid rgba(215, 25, 41, 0.7);
    border-radius: 5px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--privacy-red), var(--privacy-red-dark));
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: 0 8px 21px rgba(160, 0, 18, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.helheim-privacy__button:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #ef293b, #9e0b17);
    transform: translateY(-2px);
    box-shadow: 0 11px 26px rgba(180, 0, 22, 0.3);
}

.helheim-privacy__footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--privacy-border);
    border-radius: 9px;
    background: rgba(215, 25, 41, 0.24);
}

.helheim-privacy__footer span {
    padding: 18px 20px;
    background: rgba(15, 15, 19, 0.98);
}

.helheim-privacy__footer small {
    display: block;
    margin-bottom: 5px;
    color: var(--privacy-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.helheim-privacy__footer strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

@media (max-width: 900px) {
    .helheim-privacy__summary {
        grid-template-columns: 1fr;
    }

    .helheim-privacy__summary-card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .helheim-privacy {
        margin-bottom: 30px;
    }

    .helheim-privacy__hero {
        padding: 28px 22px;
    }

    .helheim-privacy__hero::after {
        display: none;
    }

    .helheim-privacy__lead {
        font-size: 14px;
    }

    .helheim-privacy__notice {
        padding: 18px;
    }

    .helheim-privacy__section {
        padding: 25px 21px;
    }

    .helheim-privacy__section-number {
        top: 16px;
        right: 17px;
        font-size: 34px;
    }

    .helheim-privacy__section h2 {
        max-width: calc(100% - 45px);
    }

    .helheim-privacy__contact {
        align-items: stretch;
        flex-direction: column;
    }

    .helheim-privacy__button {
        width: 100%;
    }

    .helheim-privacy__footer {
        grid-template-columns: 1fr;
    }
}
/* ==================================================
   HELHEIM — ПОЛИТИКА COOKIE-ФАЙЛОВ
   ================================================== */

.helheim-cookie-policy {
    --cookie-red: #d71929;
    --cookie-red-bright: #ef3345;
    --cookie-red-dark: #8f0d18;
    --cookie-card: #17171c;
    --cookie-card-deep: #0f0f13;
    --cookie-border: rgba(215, 25, 41, 0.31);
    --cookie-text: #f4f4f6;
    --cookie-muted: #aaaab4;

    width: 100%;
    max-width: 1180px;
    margin: 0 auto 48px;
    color: var(--cookie-text);
}

.helheim-cookie-policy *,
.helheim-cookie-policy *::before,
.helheim-cookie-policy *::after {
    box-sizing: border-box;
}

.helheim-cookie-policy__hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid var(--cookie-border);
    border-radius: 12px;
    background:
        radial-gradient(circle at 88% 10%, rgba(215, 25, 41, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(31, 31, 38, 0.99), rgba(9, 9, 12, 0.99));
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.36),
        inset 0 0 80px rgba(140, 0, 20, 0.07);
}

.helheim-cookie-policy__hero::after {
    content: "";
    position: absolute;
    top: -130px;
    right: -70px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(215, 25, 41, 0.19);
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-cookie-policy__kicker {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 13px;
    color: var(--cookie-red-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.helheim-cookie-policy__hero h1 {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(32px, 4.3vw, 56px);
    line-height: 1.05;
    text-transform: uppercase;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.65);
}

.helheim-cookie-policy__edition {
    position: relative;
    z-index: 1;
    margin: 0 0 20px !important;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.helheim-cookie-policy__lead {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 !important;
    color: var(--cookie-muted);
    font-size: 16px;
    line-height: 1.75;
}

.helheim-cookie-policy__intro {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid rgba(215, 25, 41, 0.36);
    border-left: 4px solid var(--cookie-red);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(115, 5, 18, 0.22), rgba(20, 20, 25, 0.97));
}

.helheim-cookie-policy__intro-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(215, 25, 41, 0.42);
    border-radius: 9px;
    color: var(--cookie-red-bright);
    background: rgba(215, 25, 41, 0.11);
}

.helheim-cookie-policy__intro-icon .icon {
    margin: 0 !important;
    font-size: 20px;
}

.helheim-cookie-policy__intro strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 16px;
}

.helheim-cookie-policy__intro p {
    margin: 0 !important;
    color: var(--cookie-muted);
    line-height: 1.7;
}

.helheim-cookie-policy__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.helheim-cookie-policy__card {
    position: relative;
    overflow: hidden;
    min-height: 290px;
    padding: 28px 29px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 9px;
    background:
        linear-gradient(145deg, rgba(27, 27, 33, 0.995), rgba(14, 14, 18, 0.995));
    box-shadow: 0 13px 32px rgba(0, 0, 0, 0.2);
}

.helheim-cookie-policy__card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 115px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cookie-red));
}

.helheim-cookie-policy__card-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.helheim-cookie-policy__number {
    color: rgba(215, 25, 41, 0.25);
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.helheim-cookie-policy__status {
    padding: 6px 9px;
    border: 1px solid rgba(215, 25, 41, 0.32);
    border-radius: 4px;
    color: var(--cookie-red-bright);
    background: rgba(215, 25, 41, 0.08);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.helheim-cookie-policy__card h2,
.helheim-cookie-policy__section h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(21px, 2.2vw, 27px);
    line-height: 1.2;
}

.helheim-cookie-policy__card p,
.helheim-cookie-policy__section p {
    margin: 0 0 13px !important;
    color: var(--cookie-muted);
    font-size: 14px;
    line-height: 1.72;
}

.helheim-cookie-policy__card p:last-child,
.helheim-cookie-policy__section p:last-child {
    margin-bottom: 0 !important;
}

.helheim-cookie-policy__card ul {
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.helheim-cookie-policy__card li {
    position: relative;
    margin: 8px 0;
    padding-left: 22px;
    color: #c7c7ce;
    line-height: 1.58;
}

.helheim-cookie-policy__card li::before {
    content: "";
    position: absolute;
    top: 0.66em;
    left: 2px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--cookie-red-bright);
    transform: rotate(45deg);
}

.helheim-cookie-policy__section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 29px 31px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 9px;
    background:
        linear-gradient(145deg, rgba(27, 27, 33, 0.995), rgba(14, 14, 18, 0.995));
}

.helheim-cookie-policy__section-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(215, 25, 41, 0.42);
    border-radius: 9px;
    color: var(--cookie-red-bright);
    background: rgba(215, 25, 41, 0.11);
}

.helheim-cookie-policy__section-icon .icon {
    margin: 0 !important;
    font-size: 19px;
}

.helheim-cookie-policy__section > div {
    min-width: 0;
    flex: 1;
}

.helheim-cookie-policy__manage-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 0 22px;
    border: 1px solid rgba(215, 25, 41, 0.72);
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(135deg, var(--cookie-red), var(--cookie-red-dark));
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(160, 0, 18, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.helheim-cookie-policy__manage-button:hover {
    background: linear-gradient(135deg, #ef293b, #9e0b17);
    transform: translateY(-2px);
    box-shadow: 0 11px 27px rgba(180, 0, 22, 0.3);
}

.helheim-cookie-policy__manage-button .icon {
    margin-right: 8px !important;
}

.helheim-cookie-policy__result {
    min-height: 18px;
    margin-top: 11px;
    color: var(--cookie-muted);
    font-size: 12px;
}

.helheim-cookie-policy__warning {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 19px 21px;
    border: 1px solid rgba(239, 160, 40, 0.25);
    border-radius: 7px;
    background: rgba(162, 93, 8, 0.1);
}

.helheim-cookie-policy__warning > .icon {
    margin: 2px 0 0 !important;
    color: #efad3f;
    font-size: 20px;
}

.helheim-cookie-policy__warning strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.helheim-cookie-policy__warning p {
    margin: 0 !important;
    color: #d0c1aa;
    line-height: 1.65;
}

.helheim-cookie-policy__footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--cookie-border);
    border-radius: 9px;
    background: rgba(215, 25, 41, 0.24);
}

.helheim-cookie-policy__footer span {
    padding: 18px 20px;
    background: rgba(15, 15, 19, 0.98);
}

.helheim-cookie-policy__footer small {
    display: block;
    margin-bottom: 5px;
    color: var(--cookie-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.helheim-cookie-policy__footer strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

@media (max-width: 820px) {
    .helheim-cookie-policy__grid {
        grid-template-columns: 1fr;
    }

    .helheim-cookie-policy__card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .helheim-cookie-policy {
        margin-bottom: 30px;
    }

    .helheim-cookie-policy__hero {
        padding: 28px 22px;
    }

    .helheim-cookie-policy__hero::after {
        display: none;
    }

    .helheim-cookie-policy__lead {
        font-size: 14px;
    }

    .helheim-cookie-policy__intro,
    .helheim-cookie-policy__section {
        padding: 20px;
    }

    .helheim-cookie-policy__section {
        flex-direction: column;
    }

    .helheim-cookie-policy__card {
        padding: 24px 21px;
    }

    .helheim-cookie-policy__manage-button {
        width: 100%;
    }

    .helheim-cookie-policy__footer {
        grid-template-columns: 1fr;
    }
}
/* ==================================================
   HELHEIM — ПРАВИЛА И УСЛОВИЯ
   ================================================== */

.helheim-terms {
    --terms-red: #d71929;
    --terms-red-bright: #ef3345;
    --terms-red-dark: #8f0d18;
    --terms-border: rgba(215, 25, 41, 0.31);
    --terms-muted: #aaaab4;

    width: 100%;
    max-width: 1180px;
    margin: 0 auto 48px;
    color: #f4f4f6;
}

.helheim-terms *,
.helheim-terms *::before,
.helheim-terms *::after {
    box-sizing: border-box;
}

.helheim-terms__hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid var(--terms-border);
    border-radius: 12px;
    background:
        radial-gradient(circle at 88% 10%, rgba(215, 25, 41, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(31, 31, 38, 0.99), rgba(9, 9, 12, 0.99));
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.36),
        inset 0 0 80px rgba(140, 0, 20, 0.07);
}

.helheim-terms__hero::after {
    content: "";
    position: absolute;
    top: -130px;
    right: -70px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(215, 25, 41, 0.19);
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-terms__kicker {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 13px;
    color: var(--terms-red-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.helheim-terms__hero h1 {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(33px, 4.4vw, 58px);
    line-height: 1.04;
    text-transform: uppercase;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.65);
}

.helheim-terms__edition {
    position: relative;
    z-index: 1;
    margin: 0 0 20px !important;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.helheim-terms__lead {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 !important;
    color: var(--terms-muted);
    font-size: 16px;
    line-height: 1.75;
}

.helheim-terms__notice {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(215, 25, 41, 0.35);
    border-left: 4px solid var(--terms-red);
    border-radius: 7px;
    background:
        linear-gradient(90deg, rgba(115, 5, 18, 0.22), rgba(20, 20, 25, 0.97));
}

.helheim-terms__notice > .icon {
    margin: 2px 0 0 !important;
    color: var(--terms-red-bright);
    font-size: 22px;
}

.helheim-terms__notice strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.helheim-terms__notice p {
    margin: 0 !important;
    color: var(--terms-muted);
    line-height: 1.67;
}

.helheim-terms__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.helheim-terms__card {
    position: relative;
    overflow: hidden;
    padding: 30px 30px 27px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 9px;
    background:
        linear-gradient(145deg, rgba(27, 27, 33, 0.995), rgba(14, 14, 18, 0.995));
    box-shadow: 0 13px 32px rgba(0, 0, 0, 0.2);
}

.helheim-terms__card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 115px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--terms-red));
}

.helheim-terms__card-number {
    display: block;
    margin-bottom: 12px;
    color: rgba(215, 25, 41, 0.24);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.helheim-terms__card h2,
.helheim-terms__section h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(21px, 2.1vw, 27px);
    line-height: 1.2;
}

.helheim-terms__card p,
.helheim-terms__section p {
    margin: 0 0 13px !important;
    color: var(--terms-muted);
    font-size: 14px;
    line-height: 1.72;
}

.helheim-terms__card p:last-child,
.helheim-terms__section p:last-child {
    margin-bottom: 0 !important;
}

.helheim-terms__card ul {
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.helheim-terms__card li {
    position: relative;
    margin: 8px 0;
    padding-left: 22px;
    color: #c7c7ce;
    line-height: 1.58;
}

.helheim-terms__card li::before {
    content: "";
    position: absolute;
    top: 0.66em;
    left: 2px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--terms-red-bright);
    transform: rotate(45deg);
}

.helheim-terms__section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 29px 31px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 9px;
    background:
        linear-gradient(145deg, rgba(27, 27, 33, 0.995), rgba(14, 14, 18, 0.995));
}

.helheim-terms__section-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(215, 25, 41, 0.42);
    border-radius: 9px;
    color: var(--terms-red-bright);
    background: rgba(215, 25, 41, 0.11);
}

.helheim-terms__section-icon .icon {
    margin: 0 !important;
    font-size: 19px;
}

.helheim-terms__section > div {
    min-width: 0;
    flex: 1;
}

.helheim-terms__contact {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 24px 26px;
    border: 1px solid rgba(215, 25, 41, 0.38);
    border-radius: 9px;
    background:
        linear-gradient(120deg, rgba(104, 4, 16, 0.3), rgba(16, 16, 21, 0.98));
}

.helheim-terms__contact small {
    display: block;
    margin-bottom: 5px;
    color: var(--terms-red-bright);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.helheim-terms__contact strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.helheim-terms__contact p {
    margin: 7px 0 0 !important;
    color: var(--terms-muted);
}

.helheim-terms__contact a {
    display: inline-flex;
    min-height: 43px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid rgba(215, 25, 41, 0.72);
    border-radius: 5px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--terms-red), var(--terms-red-dark));
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(160, 0, 18, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.helheim-terms__contact a:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 27px rgba(180, 0, 22, 0.3);
}

.helheim-terms__footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--terms-border);
    border-radius: 9px;
    background: rgba(215, 25, 41, 0.24);
}

.helheim-terms__footer span {
    padding: 18px 20px;
    background: rgba(15, 15, 19, 0.98);
}

.helheim-terms__footer small {
    display: block;
    margin-bottom: 5px;
    color: var(--terms-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.helheim-terms__footer strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

@media (max-width: 820px) {
    .helheim-terms__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .helheim-terms {
        margin-bottom: 30px;
    }

    .helheim-terms__hero {
        padding: 28px 22px;
    }

    .helheim-terms__hero::after {
        display: none;
    }

    .helheim-terms__lead {
        font-size: 14px;
    }

    .helheim-terms__card {
        padding: 25px 21px;
    }

    .helheim-terms__notice,
    .helheim-terms__section,
    .helheim-terms__contact {
        padding: 20px;
    }

    .helheim-terms__section,
    .helheim-terms__contact {
        align-items: stretch;
        flex-direction: column;
    }

    .helheim-terms__contact a {
        width: 100%;
    }

    .helheim-terms__footer {
        grid-template-columns: 1fr;
    }
}
/* ==================================================
   HELHEIM — РЕЖИМ ОБСЛУЖИВАНИЯ
   ================================================== */

#maintenance.helheim-maintenance {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 28px;
    color: #f6f6f8;
    background:
        radial-gradient(circle at 18% 20%, rgba(131, 0, 17, 0.34), transparent 34%),
        radial-gradient(circle at 84% 78%, rgba(95, 0, 12, 0.28), transparent 38%),
        linear-gradient(145deg, #07070a 0%, #0d0d12 48%, #09090c 100%);
    isolation: isolate;
}

#maintenance.helheim-maintenance::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 88%);
}

#maintenance.helheim-maintenance::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.55)),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 4px
        );
}

.helheim-maintenance__ambient {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(215, 25, 41, 0.15);
    filter: drop-shadow(0 0 45px rgba(170, 0, 24, 0.14));
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-maintenance__ambient--one {
    top: -170px;
    right: -110px;
    width: 430px;
    height: 430px;
}

.helheim-maintenance__ambient--two {
    bottom: -210px;
    left: -150px;
    width: 520px;
    height: 520px;
}

.helheim-maintenance__shell {
    width: min(100%, 720px);
    text-align: center;
}

.helheim-maintenance__brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.helheim-maintenance__brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.72);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(145deg, #e21c31, #8c0a16);
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(178, 0, 24, 0.28);
}

.helheim-maintenance__brand-text {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
}

.helheim-maintenance__brand-text strong {
    color: #fff;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.14em;
}

.helheim-maintenance__brand-text small {
    margin-top: 5px;
    color: #8f8f99;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.helheim-maintenance__card {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 6vw, 58px);
    border: 1px solid rgba(215, 25, 41, 0.34);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 25, 41, 0.17), transparent 35%),
        linear-gradient(145deg, rgba(28, 28, 34, 0.98), rgba(12, 12, 16, 0.985));
    box-shadow:
        0 28px 85px rgba(0, 0, 0, 0.58),
        inset 0 0 75px rgba(135, 0, 18, 0.045);
    backdrop-filter: blur(12px);
}

.helheim-maintenance__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e31d34, transparent);
    box-shadow: 0 0 20px rgba(227, 29, 52, 0.45);
}

.helheim-maintenance__card::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(215, 25, 41, 0.14);
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-maintenance__icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 1px solid rgba(239, 51, 69, 0.45);
    border-radius: 18px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.09);
    box-shadow:
        inset 0 0 30px rgba(215, 25, 41, 0.08),
        0 12px 34px rgba(0, 0, 0, 0.28);
}

.helheim-maintenance__icon i {
    font-size: 29px;
}

.helheim-maintenance__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #ef3345;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.helheim-maintenance__card h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.06;
    text-transform: uppercase;
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.58);
}

.helheim-maintenance__divider {
    width: 84px;
    height: 2px;
    margin: 22px auto;
    background: linear-gradient(90deg, transparent, #d71929, transparent);
}

.helheim-maintenance__message {
    max-width: 560px;
    margin: 0 auto;
    color: #b8b8c1;
    font-size: 15px;
    line-height: 1.75;
}

.helheim-maintenance__message p {
    margin: 0 0 10px !important;
}

.helheim-maintenance__message p:last-child {
    margin-bottom: 0 !important;
}

.helheim-maintenance__status {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: #92929d;
    background: rgba(255, 255, 255, 0.025);
    font-size: 11px;
}

.helheim-maintenance__pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef3345;
    box-shadow: 0 0 14px rgba(239, 51, 69, 0.72);
}

.helheim-maintenance__pulse::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(239, 51, 69, 0.45);
    border-radius: 50%;
    animation: helheimMaintenancePulse 1.8s ease-out infinite;
}

@keyframes helheimMaintenancePulse {
    0% {
        opacity: 0.8;
        transform: scale(0.65);
    }

    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

.helheim-maintenance__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.helheim-maintenance__button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.helheim-maintenance__button i {
    margin-right: 9px;
}

.helheim-maintenance__button--primary {
    border: 1px solid rgba(239, 51, 69, 0.78);
    color: #fff;
    background: linear-gradient(135deg, #dc1b31, #8d0916);
    box-shadow: 0 12px 28px rgba(170, 0, 22, 0.27);
}

.helheim-maintenance__button--primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #f1283f, #a30c1a);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(183, 0, 25, 0.34);
}

.helheim-maintenance__button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d9d9df !important;
    background: rgba(255, 255, 255, 0.035);
}

.helheim-maintenance__button--secondary:hover {
    border-color: rgba(239, 51, 69, 0.4);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.075);
    transform: translateY(-2px);
}

.helheim-maintenance__footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: #666671;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.helheim-maintenance__footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #8c0a16;
}

@media (max-width: 640px) {
    #maintenance.helheim-maintenance {
        align-items: flex-start;
        padding: 26px 16px;
        overflow-y: auto;
    }

    .helheim-maintenance__shell {
        margin: auto 0;
    }

    .helheim-maintenance__card {
        padding: 34px 21px;
        border-radius: 12px;
    }

    .helheim-maintenance__icon {
        width: 62px;
        height: 62px;
        border-radius: 15px;
    }

    .helheim-maintenance__icon i {
        font-size: 25px;
    }

    .helheim-maintenance__status {
        align-items: flex-start;
        text-align: left;
    }

    .helheim-maintenance__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .helheim-maintenance__button {
        width: 100%;
    }

    .helheim-maintenance__footer {
        align-items: center;
        flex-direction: column;
        line-height: 1.55;
    }

    .helheim-maintenance__footer-dot {
        display: none;
    }
}
/* ==================================================
   HELHEIM — СТРАНИЦА 404
   ================================================== */

#error-404.helheim-error-404 {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 28px;
    color: #f6f6f8;
    background:
        radial-gradient(circle at 18% 20%, rgba(131, 0, 17, 0.34), transparent 34%),
        radial-gradient(circle at 84% 78%, rgba(95, 0, 12, 0.28), transparent 38%),
        linear-gradient(145deg, #07070a 0%, #0d0d12 48%, #09090c 100%);
    isolation: isolate;
}

#error-404.helheim-error-404::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.16;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 90%);
}

#error-404.helheim-error-404::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58)),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 4px
        );
}

.helheim-error-404__ambient {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(215, 25, 41, 0.15);
    filter: drop-shadow(0 0 45px rgba(170, 0, 24, 0.14));
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-error-404__ambient--one {
    top: -170px;
    right: -110px;
    width: 430px;
    height: 430px;
}

.helheim-error-404__ambient--two {
    bottom: -210px;
    left: -150px;
    width: 520px;
    height: 520px;
}

.helheim-error-404__shell {
    width: min(100%, 760px);
    text-align: center;
}

.helheim-error-404__brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.helheim-error-404__brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.72);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(145deg, #e21c31, #8c0a16);
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(178, 0, 24, 0.28);
}

.helheim-error-404__brand-text {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
}

.helheim-error-404__brand-text strong {
    color: #fff;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.14em;
}

.helheim-error-404__brand-text small {
    margin-top: 5px;
    color: #8f8f99;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.helheim-error-404__card {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 6vw, 58px);
    border: 1px solid rgba(215, 25, 41, 0.34);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 25, 41, 0.17), transparent 35%),
        linear-gradient(145deg, rgba(28, 28, 34, 0.98), rgba(12, 12, 16, 0.985));
    box-shadow:
        0 28px 85px rgba(0, 0, 0, 0.58),
        inset 0 0 75px rgba(135, 0, 18, 0.045);
    backdrop-filter: blur(12px);
}

.helheim-error-404__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e31d34, transparent);
    box-shadow: 0 0 20px rgba(227, 29, 52, 0.45);
}

.helheim-error-404__card::after {
    content: "";
    position: absolute;
    top: -125px;
    right: -115px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(215, 25, 41, 0.14);
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-error-404__code {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(82px, 16vw, 150px);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.07em;
    text-shadow:
        0 10px 34px rgba(0, 0, 0, 0.6),
        0 0 45px rgba(215, 25, 41, 0.12);
}

.helheim-error-404__eyebrow {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 12px;
    color: #ef3345;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.helheim-error-404__card h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 5vw, 45px);
    line-height: 1.08;
    text-transform: uppercase;
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.58);
}

.helheim-error-404__divider {
    width: 84px;
    height: 2px;
    margin: 22px auto;
    background: linear-gradient(90deg, transparent, #d71929, transparent);
}

.helheim-error-404__content {
    max-width: 590px;
    margin: 0 auto;
    color: #b8b8c1;
    font-size: 15px;
    line-height: 1.75;
}

.helheim-error-404__content p {
    margin: 0 0 10px !important;
}

.helheim-error-404__content p:last-child {
    margin-bottom: 0 !important;
}

.helheim-error-404__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 29px;
}

.helheim-error-404__button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.helheim-error-404__button i {
    margin-right: 9px;
}

.helheim-error-404__button--primary {
    border: 1px solid rgba(239, 51, 69, 0.78);
    color: #fff !important;
    background: linear-gradient(135deg, #dc1b31, #8d0916);
    box-shadow: 0 12px 28px rgba(170, 0, 22, 0.27);
}

.helheim-error-404__button--primary:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #f1283f, #a30c1a);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(183, 0, 25, 0.34);
}

.helheim-error-404__button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d9d9df;
    background: rgba(255, 255, 255, 0.035);
}

.helheim-error-404__button--secondary:hover {
    border-color: rgba(239, 51, 69, 0.4);
    color: #fff;
    background: rgba(215, 25, 41, 0.075);
    transform: translateY(-2px);
}

.helheim-error-404__details {
    margin-top: 26px;
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.helheim-error-404__details span {
    display: block;
    margin-bottom: 7px;
    color: #777782;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.helheim-error-404__details p {
    margin: 0 !important;
    color: #8e8e98;
    font-size: 12px;
    line-height: 1.55;
}

.helheim-error-404__footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: #666671;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.helheim-error-404__footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #8c0a16;
}

@media (max-width: 640px) {
    #error-404.helheim-error-404 {
        align-items: flex-start;
        padding: 26px 16px;
        overflow-y: auto;
    }

    .helheim-error-404__shell {
        margin: auto 0;
    }

    .helheim-error-404__card {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .helheim-error-404__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .helheim-error-404__button {
        width: 100%;
    }

    .helheim-error-404__footer {
        flex-direction: column;
        line-height: 1.55;
    }

    .helheim-error-404__footer-dot {
        display: none;
    }
}
/* ==================================================
   HELHEIM — СТРАНИЦА 403
   ================================================== */

#error-403.helheim-error-403 {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 28px;
    color: #f6f6f8;
    background:
        radial-gradient(circle at 18% 20%, rgba(131, 0, 17, 0.34), transparent 34%),
        radial-gradient(circle at 84% 78%, rgba(95, 0, 12, 0.28), transparent 38%),
        linear-gradient(145deg, #07070a 0%, #0d0d12 48%, #09090c 100%);
    isolation: isolate;
}

#error-403.helheim-error-403::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.16;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 90%);
}

#error-403.helheim-error-403::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58)),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 4px
        );
}

.helheim-error-403__ambient {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(215, 25, 41, 0.15);
    filter: drop-shadow(0 0 45px rgba(170, 0, 24, 0.14));
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-error-403__ambient--one {
    top: -170px;
    right: -110px;
    width: 430px;
    height: 430px;
}

.helheim-error-403__ambient--two {
    bottom: -210px;
    left: -150px;
    width: 520px;
    height: 520px;
}

.helheim-error-403__shell {
    width: min(100%, 760px);
    text-align: center;
}

.helheim-error-403__brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.helheim-error-403__brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.72);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(145deg, #e21c31, #8c0a16);
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(178, 0, 24, 0.28);
}

.helheim-error-403__brand-text {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
}

.helheim-error-403__brand-text strong {
    color: #fff;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.14em;
}

.helheim-error-403__brand-text small {
    margin-top: 5px;
    color: #8f8f99;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.helheim-error-403__card {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 6vw, 58px);
    border: 1px solid rgba(215, 25, 41, 0.34);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 25, 41, 0.17), transparent 35%),
        linear-gradient(145deg, rgba(28, 28, 34, 0.98), rgba(12, 12, 16, 0.985));
    box-shadow:
        0 28px 85px rgba(0, 0, 0, 0.58),
        inset 0 0 75px rgba(135, 0, 18, 0.045);
    backdrop-filter: blur(12px);
}

.helheim-error-403__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e31d34, transparent);
    box-shadow: 0 0 20px rgba(227, 29, 52, 0.45);
}

.helheim-error-403__card::after {
    content: "";
    position: absolute;
    top: -125px;
    right: -115px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(215, 25, 41, 0.14);
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-error-403__icon {
    position: absolute;
    top: 32px;
    left: 34px;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.42);
    border-radius: 14px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.08);
    box-shadow: inset 0 0 26px rgba(215, 25, 41, 0.08);
}

.helheim-error-403__icon i {
    font-size: 21px;
}

.helheim-error-403__code {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(82px, 16vw, 150px);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.07em;
    text-shadow:
        0 10px 34px rgba(0, 0, 0, 0.6),
        0 0 45px rgba(215, 25, 41, 0.12);
}

.helheim-error-403__eyebrow {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 12px;
    color: #ef3345;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.helheim-error-403__card h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 5vw, 45px);
    line-height: 1.08;
    text-transform: uppercase;
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.58);
}

.helheim-error-403__divider {
    width: 84px;
    height: 2px;
    margin: 22px auto;
    background: linear-gradient(90deg, transparent, #d71929, transparent);
}

.helheim-error-403__content {
    max-width: 590px;
    margin: 0 auto;
    color: #b8b8c1;
    font-size: 15px;
    line-height: 1.75;
}

.helheim-error-403__content > p {
    margin: 0 !important;
}

.helheim-error-403__login-notice {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 19px;
    padding: 14px 16px;
    border: 1px solid rgba(239, 51, 69, 0.2);
    border-radius: 8px;
    color: #c8c8d0;
    background: rgba(215, 25, 41, 0.055);
    text-align: left;
}

.helheim-error-403__login-notice i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #ef3345;
}

.helheim-error-403__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 29px;
}

.helheim-error-403__button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.helheim-error-403__button i {
    margin-right: 9px;
}

.helheim-error-403__button--primary {
    border: 1px solid rgba(239, 51, 69, 0.78);
    color: #fff !important;
    background: linear-gradient(135deg, #dc1b31, #8d0916);
    box-shadow: 0 12px 28px rgba(170, 0, 22, 0.27);
}

.helheim-error-403__button--primary:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #f1283f, #a30c1a);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(183, 0, 25, 0.34);
}

.helheim-error-403__button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d9d9df;
    background: rgba(255, 255, 255, 0.035);
}

.helheim-error-403__button--secondary:hover {
    border-color: rgba(239, 51, 69, 0.4);
    color: #fff;
    background: rgba(215, 25, 41, 0.075);
    transform: translateY(-2px);
}

.helheim-error-403__status {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 26px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: #8f8f99;
    background: rgba(255, 255, 255, 0.025);
    font-size: 11px;
}

.helheim-error-403__status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #ef3345;
    box-shadow: 0 0 14px rgba(239, 51, 69, 0.72);
}

.helheim-error-403__footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: #666671;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.helheim-error-403__footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #8c0a16;
}

@media (max-width: 640px) {
    #error-403.helheim-error-403 {
        align-items: flex-start;
        padding: 26px 16px;
        overflow-y: auto;
    }

    .helheim-error-403__shell {
        margin: auto 0;
    }

    .helheim-error-403__card {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .helheim-error-403__icon {
        position: static;
        width: 52px;
        height: 52px;
        margin: 0 auto 21px;
    }

    .helheim-error-403__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .helheim-error-403__button {
        width: 100%;
    }

    .helheim-error-403__status {
        align-items: flex-start;
        border-radius: 10px;
        text-align: left;
    }

    .helheim-error-403__footer {
        flex-direction: column;
        line-height: 1.55;
    }

    .helheim-error-403__footer-dot {
        display: none;
    }
}
/* ==================================================
   HELHEIM — СТРАНИЦА ВХОДА
   ================================================== */

.helheim-auth {
    position: relative;
    overflow: hidden;
    padding: 56px 0 78px;
    background:
        radial-gradient(circle at 14% 16%, rgba(126, 0, 17, 0.16), transparent 30%),
        radial-gradient(circle at 86% 82%, rgba(94, 0, 14, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(7, 7, 10, 0.98), rgba(10, 10, 14, 1));
}

.helheim-auth::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 95%);
}

.helheim-auth .ui.container {
    position: relative;
    z-index: 1;
}

.helheim-auth__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
    gap: 18px;
    max-width: 1120px;
    margin: 0 auto;
}

.helheim-auth__side,
.helheim-auth__panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(215, 25, 41, 0.27);
    border-radius: 15px;
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 25, 41, 0.14), transparent 36%),
        linear-gradient(145deg, rgba(27, 27, 33, 0.985), rgba(12, 12, 16, 0.99));
    box-shadow:
        0 24px 68px rgba(0, 0, 0, 0.46),
        inset 0 0 70px rgba(125, 0, 18, 0.035);
}

.helheim-auth__side::before,
.helheim-auth__panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e31d34, transparent);
    box-shadow: 0 0 18px rgba(227, 29, 52, 0.36);
}

.helheim-auth__side {
    display: flex;
    min-height: 660px;
    justify-content: center;
    flex-direction: column;
    padding: clamp(34px, 5vw, 55px);
}

.helheim-auth__side::after {
    content: "";
    position: absolute;
    top: -135px;
    right: -110px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(215, 25, 41, 0.14);
    transform: rotate(45deg);
    pointer-events: none;
}

.helheim-auth__kicker {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 14px;
    color: #ef3345;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.helheim-auth__side h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.02;
    text-transform: uppercase;
    text-shadow: 0 7px 28px rgba(0, 0, 0, 0.55);
}

.helheim-auth__lead {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 !important;
    color: #aaaab4;
    font-size: 15px;
    line-height: 1.76;
}

.helheim-auth__features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.helheim-auth__feature {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.022);
}

.helheim-auth__feature-icon {
    display: inline-flex;
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.32);
    border-radius: 10px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.07);
}

.helheim-auth__feature strong,
.helheim-auth__feature small {
    display: block;
}

.helheim-auth__feature strong {
    margin-bottom: 3px;
    color: #f4f4f6;
    font-size: 13px;
}

.helheim-auth__feature small {
    color: #85858f;
    font-size: 11px;
    line-height: 1.45;
}

.helheim-auth__server {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding: 16px 17px;
    border: 1px solid rgba(215, 25, 41, 0.28);
    border-radius: 8px;
    background: rgba(101, 2, 15, 0.11);
}

.helheim-auth__server small,
.helheim-auth__server strong {
    display: block;
}

.helheim-auth__server small {
    margin-bottom: 5px;
    color: #888892;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.helheim-auth__server strong {
    color: #fff;
    font-size: 16px;
}

.helheim-auth__panel {
    padding: clamp(30px, 4.4vw, 46px);
}

.helheim-auth__panel-head {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 28px;
}

.helheim-auth__panel-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.42);
    border-radius: 14px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.08);
    box-shadow: inset 0 0 26px rgba(215, 25, 41, 0.08);
}

.helheim-auth__panel-icon i {
    font-size: 21px;
}

.helheim-auth__panel-head span {
    display: block;
    margin-bottom: 5px;
    color: #ef3345;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.17em;
}

.helheim-auth__panel-head h2 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.08;
}

.helheim-auth__message {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 16px 17px;
    border-radius: 8px;
}

.helheim-auth__message--error {
    border: 1px solid rgba(239, 51, 69, 0.3);
    color: #f0c7cb;
    background: rgba(153, 5, 24, 0.13);
}

.helheim-auth__message > i {
    margin-top: 3px;
    color: #ef3345;
    font-size: 17px;
}

.helheim-auth__message strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.helheim-auth__message ul {
    margin: 0;
    padding-left: 18px;
}

.helheim-auth__message li {
    margin: 4px 0;
    line-height: 1.5;
}

.helheim-auth__form.ui.form .field {
    margin-bottom: 18px;
}

.helheim-auth__field > label {
    margin-bottom: 8px !important;
    color: #c9c9d0 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
}

.helheim-auth__input-wrap {
    position: relative;
}

.helheim-auth__input-wrap > i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: #72727c;
    transform: translateY(-50%);
}

.helheim-auth__input-wrap input {
    min-height: 48px !important;
    padding: 0 46px 0 43px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 7px !important;
    color: #f4f4f6 !important;
    background: rgba(255, 255, 255, 0.032) !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.helheim-auth__input-wrap input::placeholder {
    color: #696973 !important;
}

.helheim-auth__input-wrap input:focus {
    border-color: rgba(239, 51, 69, 0.5) !important;
    background: rgba(215, 25, 41, 0.045) !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 41, 0.07) !important;
}

.helheim-auth__password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 3;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    color: #777781;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.helheim-auth__password-toggle:hover {
    color: #ef3345;
    background: rgba(215, 25, 41, 0.07);
}

.helheim-auth__options {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 21px;
}

.helheim-auth__remember {
    margin: 0 !important;
}

.helheim-auth__remember .ui.checkbox label {
    color: #aaaab4 !important;
    font-size: 12px;
}

.helheim-auth__remember .ui.checkbox label::before {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.035) !important;
}

.helheim-auth__remember .ui.checkbox input:checked ~ label::before {
    border-color: #d71929 !important;
    background: #b70f20 !important;
}

.helheim-auth__remember .ui.checkbox input:checked ~ label::after {
    color: #fff !important;
}

.helheim-auth__forgot {
    color: #d7a4aa !important;
    font-size: 12px;
    text-decoration: none !important;
}

.helheim-auth__forgot:hover {
    color: #ef3345 !important;
}

.helheim-auth__captcha {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.022);
}

.helheim-auth__submit,
.helheim-auth__register-button,
.helheim-auth__oauth-button {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.helheim-auth__submit {
    border: 1px solid rgba(239, 51, 69, 0.78);
    color: #fff;
    background: linear-gradient(135deg, #dc1b31, #8d0916);
    box-shadow: 0 12px 28px rgba(170, 0, 22, 0.25);
}

.helheim-auth__submit:hover {
    background: linear-gradient(135deg, #f1283f, #a30c1a);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(183, 0, 25, 0.32);
}

.helheim-auth__submit i,
.helheim-auth__register-button i {
    margin-right: 9px;
}

.helheim-auth__divider {
    position: relative;
    margin: 26px 0 18px;
    text-align: center;
}

.helheim-auth__divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.075);
}

.helheim-auth__divider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 12px;
    color: #73737d;
    background: #111116;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.helheim-auth__oauth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.helheim-auth__oauth-button {
    width: 100%;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d9d9df !important;
    background: rgba(255, 255, 255, 0.035);
    text-transform: none;
    letter-spacing: 0;
}

.helheim-auth__oauth-button:hover {
    border-color: rgba(239, 51, 69, 0.36);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.065);
    transform: translateY(-2px);
}

.helheim-auth__oauth-button img {
    max-width: 22px;
    max-height: 22px;
    margin-right: 9px;
}

.helheim-auth__oauth-button i {
    margin-right: 9px;
}

.helheim-auth__divider--register {
    margin-top: 26px;
}

.helheim-auth__register-button {
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #e4e4e8 !important;
    background: rgba(255, 255, 255, 0.035);
}

.helheim-auth__register-button:hover {
    border-color: rgba(239, 51, 69, 0.4);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.075);
    transform: translateY(-2px);
}

@media (max-width: 980px) {
    .helheim-auth__layout {
        grid-template-columns: 1fr;
    }

    .helheim-auth__side {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .helheim-auth {
        padding: 34px 0 52px;
    }

    .helheim-auth__layout {
        gap: 14px;
    }

    .helheim-auth__side,
    .helheim-auth__panel {
        border-radius: 12px;
    }

    .helheim-auth__side {
        padding: 30px 20px;
    }

    .helheim-auth__panel {
        padding: 28px 20px;
    }

    .helheim-auth__features {
        margin-top: 24px;
    }

    .helheim-auth__options {
        align-items: flex-start;
        flex-direction: column;
    }

    .helheim-auth__oauth {
        grid-template-columns: 1fr;
    }

    .helheim-auth__panel-head h2 {
        font-size: 24px;
    }
}
/* ==================================================
   HELHEIM — СТРАНИЦА РЕГИСТРАЦИИ
   ================================================== */

.helheim-auth__layout--register {
    grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
    max-width: 1220px;
}

.helheim-auth__side--register {
    min-height: 760px;
}

.helheim-auth__panel--register {
    min-width: 0;
}

.helheim-auth__oauth-flow-message {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: 15px 17px;
    border: 1px solid rgba(239, 51, 69, 0.24);
    border-radius: 8px;
    color: #c8c8d0;
    background: rgba(215, 25, 41, 0.06);
    line-height: 1.65;
}

.helheim-auth__required {
    margin-left: 4px;
    color: #ef3345;
}

.helheim-auth__textarea-wrap textarea {
    min-height: 120px !important;
    resize: vertical;
    padding: 14px 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 7px !important;
    color: #f4f4f6 !important;
    background: rgba(255, 255, 255, 0.032) !important;
    box-shadow: none !important;
    line-height: 1.55;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.helheim-auth__textarea-wrap textarea::placeholder {
    color: #696973 !important;
}

.helheim-auth__textarea-wrap textarea:focus {
    border-color: rgba(239, 51, 69, 0.5) !important;
    background: rgba(215, 25, 41, 0.045) !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 41, 0.07) !important;
}

.helheim-auth__select-wrap .ui.dropdown {
    min-height: 48px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 7px !important;
    color: #f4f4f6 !important;
    background: rgba(255, 255, 255, 0.032) !important;
    box-shadow: none !important;
}

.helheim-auth__select-wrap select option {
    color: #f4f4f6;
    background: #17171d;
}

.helheim-auth__choice-group {
    display: grid;
    gap: 9px;
}

.helheim-auth__choice {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.022);
}

.helheim-auth__choice .ui.checkbox label,
.helheim-auth__choice .ui.radio.checkbox label {
    color: #b8b8c1 !important;
    font-size: 12px;
}

.helheim-auth__choice .ui.checkbox label::before,
.helheim-auth__choice .ui.radio.checkbox label::before {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.035) !important;
}

.helheim-auth__choice .ui.checkbox input:checked ~ label::before,
.helheim-auth__choice .ui.radio.checkbox input:checked ~ label::before {
    border-color: #d71929 !important;
    background: #b70f20 !important;
}

.helheim-auth__choice .ui.checkbox input:checked ~ label::after,
.helheim-auth__choice .ui.radio.checkbox input:checked ~ label::after {
    color: #fff !important;
}

.helheim-auth__terms {
    margin: 8px 0 22px;
    padding: 15px 16px;
    border: 1px solid rgba(215, 25, 41, 0.19);
    border-radius: 8px;
    background: rgba(105, 3, 16, 0.08);
}

.helheim-auth__terms .ui.checkbox label {
    color: #c5c5cc !important;
    font-size: 12px;
    line-height: 1.5;
}

.helheim-auth__terms .ui.checkbox label::before {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.035) !important;
}

.helheim-auth__terms .ui.checkbox input:checked ~ label::before {
    border-color: #d71929 !important;
    background: #b70f20 !important;
}

.helheim-auth__terms .ui.checkbox input:checked ~ label::after {
    color: #fff !important;
}

.helheim-auth__form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.helheim-auth__cancel-button {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;
    color: #d9d9df !important;
    background: rgba(255, 255, 255, 0.035);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.helheim-auth__cancel-button i {
    margin-right: 9px;
}

.helheim-auth__cancel-button:hover {
    border-color: rgba(239, 51, 69, 0.38);
    color: #fff !important;
    background: rgba(215, 25, 41, 0.07);
    transform: translateY(-2px);
}

.helheim-auth__email-caption {
    margin-top: 7px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.45;
}

.helheim-auth__email-caption--orange {
    border: 1px solid rgba(239, 160, 40, 0.28);
    color: #e8c48b;
    background: rgba(162, 93, 8, 0.1);
}

.helheim-auth__email-caption--green {
    border: 1px solid rgba(60, 190, 115, 0.26);
    color: #9dd9b8;
    background: rgba(30, 135, 76, 0.1);
}

@media (max-width: 1080px) {
    .helheim-auth__layout--register {
        grid-template-columns: 1fr;
    }

    .helheim-auth__side--register {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .helheim-auth__dynamic-field {
        min-width: 0;
    }

    .helheim-auth__select-wrap .ui.dropdown {
        width: 100%;
    }
}
/* ==================================================
   HELHEIM — ПОДКЛЮЧЕНИЕ AUTHME
   ================================================== */

.helheim-auth__layout--authme {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    max-width: 1120px;
}

.helheim-auth__side--authme {
    min-height: 650px;
}

.helheim-auth__panel--authme {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.helheim-authme-unavailable {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid rgba(239, 51, 69, 0.28);
    border-radius: 9px;
    background:
        linear-gradient(135deg, rgba(110, 4, 18, 0.16), rgba(255, 255, 255, 0.02));
}

.helheim-authme-unavailable__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.4);
    border-radius: 12px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.08);
}

.helheim-authme-unavailable__icon i {
    font-size: 19px;
}

.helheim-authme-unavailable strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 15px;
}

.helheim-authme-unavailable p {
    margin: 0 !important;
    color: #aaaab4;
    line-height: 1.65;
}

@media (max-width: 980px) {
    .helheim-auth__layout--authme {
        grid-template-columns: 1fr;
    }

    .helheim-auth__side--authme {
        min-height: 0;
    }
}
/* ==================================================
   HELHEIM — МОБИЛЬНАЯ КОРРЕКЦИЯ ЮРИДИЧЕСКИХ ЗАГОЛОВКОВ
   ================================================== */

.helheim-privacy__hero h1,
.helheim-cookie-policy__hero h1,
.helheim-terms__hero h1 {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

@media (max-width: 640px) {
    .helheim-privacy__hero,
    .helheim-cookie-policy__hero,
    .helheim-terms__hero {
        min-width: 0;
        padding: 27px 20px;
    }

    .helheim-privacy__hero h1,
    .helheim-cookie-policy__hero h1,
    .helheim-terms__hero h1 {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        font-size: clamp(24px, 7.3vw, 30px);
        line-height: 1.08;
        letter-spacing: -0.025em;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .helheim-privacy__kicker,
    .helheim-cookie-policy__kicker,
    .helheim-terms__kicker {
        max-width: 100%;
        font-size: 9px;
        line-height: 1.5;
        letter-spacing: 0.16em;
        overflow-wrap: anywhere;
    }

    .helheim-privacy__edition,
    .helheim-cookie-policy__edition,
    .helheim-terms__edition {
        font-size: 10px;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .helheim-privacy__hero h1,
    .helheim-cookie-policy__hero h1,
    .helheim-terms__hero h1 {
        font-size: 23px;
        letter-spacing: -0.035em;
    }
}
/* ==================================================
   HELHEIM — ВОССТАНОВЛЕНИЕ ПАРОЛЯ
   ================================================== */

.helheim-auth__layout--forgot {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    max-width: 1120px;
}

.helheim-auth__side--forgot {
    min-height: 620px;
}

.helheim-auth__panel--forgot {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.helheim-auth__message--success {
    border: 1px solid rgba(61, 190, 115, 0.28);
    color: #a9dabe;
    background: rgba(29, 127, 72, 0.12);
}

.helheim-auth__message--success > i {
    color: #4fc887;
}

.helheim-auth__message-text {
    color: inherit;
    line-height: 1.6;
}

.helheim-auth__security-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    color: #8f8f99;
    background: rgba(255, 255, 255, 0.022);
    font-size: 11px;
    line-height: 1.55;
}

.helheim-auth__security-note i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #ef3345;
}

@media (max-width: 980px) {
    .helheim-auth__layout--forgot {
        grid-template-columns: 1fr;
    }

    .helheim-auth__side--forgot {
        min-height: 0;
    }
}
/* ==================================================
   HELHEIM — УСТАНОВКА НОВОГО ПАРОЛЯ
   ================================================== */

.helheim-auth__layout--change-password {
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    max-width: 1120px;
}

.helheim-auth__side--change-password {
    min-height: 670px;
}

.helheim-auth__panel--change-password {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.helheim-auth__password-match {
    min-height: 18px;
    margin: -5px 0 15px;
    font-size: 11px;
    line-height: 1.5;
}

.helheim-auth__password-match--success {
    color: #69d79a;
}

.helheim-auth__password-match--error {
    color: #ef7b87;
}

@media (max-width: 980px) {
    .helheim-auth__layout--change-password {
        grid-template-columns: 1fr;
    }

    .helheim-auth__side--change-password {
        min-height: 0;
    }
}
/* ==================================================
   HELHEIM — ВХОД БЕЗ ВОССТАНОВЛЕНИЯ ПАРОЛЯ
   ================================================== */

.helheim-auth__options--single {
    justify-content: flex-start;
}
/* ==================================================
   HELHEIM — ДВУХФАКТОРНАЯ АВТОРИЗАЦИЯ
   ================================================== */

.helheim-auth__layout--tfa {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    max-width: 1080px;
}

.helheim-auth__side--tfa {
    min-height: 620px;
}

.helheim-auth__panel--tfa {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.helheim-auth__input-wrap--tfa input {
    font-size: 20px !important;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.helheim-auth__input-wrap--tfa input::placeholder {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: normal;
}

@media (max-width: 980px) {
    .helheim-auth__layout--tfa {
        grid-template-columns: 1fr;
    }

    .helheim-auth__side--tfa {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .helheim-auth__input-wrap--tfa input {
        font-size: 18px !important;
        letter-spacing: 0.12em;
    }
}
/* ==================================================
   HELHEIM — ЗАВЕРШЕНИЕ ПОДКЛЮЧЕНИЯ AUTHME
   ================================================== */

.helheim-auth__layout--authme-email {
    grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
    max-width: 1220px;
}

.helheim-auth__side--authme-email {
    min-height: 760px;
}

.helheim-auth__panel--authme-email {
    min-width: 0;
}

.helheim-authme-sync {
    margin: 7px 0 22px;
    padding: 15px 16px;
    border: 1px solid rgba(215, 25, 41, 0.2);
    border-radius: 8px;
    background: rgba(105, 3, 16, 0.08);
}

.helheim-authme-sync .ui.checkbox {
    display: block;
}

.helheim-authme-sync .ui.checkbox label {
    display: flex !important;
    gap: 9px;
    align-items: center;
    color: #c5c5cc !important;
    font-size: 12px;
    line-height: 1.5;
}

.helheim-authme-sync .ui.checkbox label::before {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.035) !important;
}

.helheim-authme-sync .ui.checkbox input:checked ~ label::before {
    border-color: #d71929 !important;
    background: #b70f20 !important;
}

.helheim-authme-sync .ui.checkbox input:checked ~ label::after {
    color: #fff !important;
}

.helheim-authme-sync__help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef3345;
    cursor: help;
}

.helheim-authme-sync__help i {
    margin: 0;
}

@media (max-width: 1080px) {
    .helheim-auth__layout--authme-email {
        grid-template-columns: 1fr;
    }

    .helheim-auth__side--authme-email {
        min-height: 0;
    }
}
/* ==================================================
   HELHEIM — ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ
   ================================================== */

.helheim-profile-page {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 22px 0 54px;
}

.helheim-profile-page #profile-header {
    position: relative;
    min-height: 330px;
    margin: 0 0 24px !important;
    padding: 52px 28px 34px !important;
    overflow: hidden;
    border: 1px solid rgba(239, 51, 69, 0.2) !important;
    border-radius: 14px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
}

.helheim-profile-page #profile-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 11, 0.24) 0%, rgba(8, 8, 11, 0.66) 52%, rgba(8, 8, 11, 0.96) 100%),
        linear-gradient(100deg, rgba(102, 2, 15, 0.42), transparent 52%);
    pointer-events: none;
}

.helheim-profile-page #profile-header::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    z-index: 0;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 25, 41, 0.18), transparent 68%);
    pointer-events: none;
}

.helheim-profile-page #profile-header > * {
    position: relative;
    z-index: 1;
}

.helheim-profile-page #profile-header > .actions {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: flex;
    gap: 8px;
    align-items: center;
}

.helheim-profile-page #profile-header > .actions form {
    margin: 0;
}

.helheim-profile-page #profile-header > .actions .ui.button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    min-width: 40px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: rgba(10, 10, 14, 0.72) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26) !important;
    backdrop-filter: blur(10px);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.helheim-profile-page #profile-header > .actions .ui.button:hover {
    border-color: rgba(239, 51, 69, 0.58) !important;
    background: rgba(151, 10, 28, 0.82) !important;
    transform: translateY(-2px);
}

.helheim-profile-page #profile-header > .actions .ui.button i {
    margin: 0 !important;
}

.helheim-profile-page #profile-header center {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
}

.helheim-profile-page #profile-header .ui.circular.image {
    width: 118px !important;
    height: 118px !important;
    margin: 0 0 14px !important;
    object-fit: cover;
    border: 4px solid rgba(239, 51, 69, 0.9);
    background: #111116;
    box-shadow:
        0 0 0 7px rgba(10, 10, 14, 0.6),
        0 18px 36px rgba(0, 0, 0, 0.42);
}

.helheim-profile-page #profile-header h2.ui.header {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: clamp(28px, 3vw, 42px) !important;
    line-height: 1.05;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.52);
}

.helheim-profile-page #profile-header h2.ui.header .sub.header {
    margin-top: 8px;
    color: #c2c2ca !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.helheim-profile-page #profile-header center > .ui.label,
.helheim-profile-page #profile-header center > span,
.helheim-profile-page #profile-header center > a {
    margin: 4px 3px 0 !important;
}

.helheim-profile-page #profile {
    margin-top: 0 !important;
}

.helheim-profile-page #profile > .row {
    align-items: flex-start;
}

.helheim-profile-page #profile > .row > .column {
    min-width: 0;
}

.helheim-profile-page #profile .ui.segment,
.helheim-profile-page #profile .ui.card,
.helheim-profile-page #profile .ui.message,
.helheim-profile-page #profile .ui.fluid.card {
    border-color: rgba(255, 255, 255, 0.075) !important;
    border-radius: 11px !important;
    color: #c4c4cc;
    background:
        linear-gradient(145deg, rgba(28, 28, 35, 0.96), rgba(18, 18, 24, 0.98)) !important;
    box-shadow: 0 15px 34px rgba(0, 0, 0, 0.2) !important;
}

.helheim-profile-page #profile .ui.card > .content,
.helheim-profile-page #profile .ui.card > .extra.content {
    border-color: rgba(255, 255, 255, 0.065) !important;
}

.helheim-profile-page #profile .ui.header,
.helheim-profile-page #profile .ui.card .header {
    color: #f3f3f6 !important;
}

.helheim-profile-page #profile .description,
.helheim-profile-page #profile .meta {
    color: #9d9da8 !important;
}

.helheim-profile-page #profile .ui.top.attached.tabular.menu {
    display: flex;
    min-height: 54px;
    align-items: stretch;
    margin: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-bottom: 0 !important;
    border-radius: 11px 11px 0 0 !important;
    background: rgba(17, 17, 23, 0.96) !important;
    scrollbar-width: thin;
}

.helheim-profile-page #profile .ui.top.attached.tabular.menu .item {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 17px 20px !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    color: #8e8e99 !important;
    background: transparent !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.helheim-profile-page #profile .ui.top.attached.tabular.menu .item:hover {
    color: #dddde3 !important;
    background: rgba(255, 255, 255, 0.025) !important;
}

.helheim-profile-page #profile .ui.top.attached.tabular.menu .item.active {
    border-bottom-color: #df2437 !important;
    color: #fff !important;
    background:
        linear-gradient(180deg, rgba(215, 25, 41, 0.11), rgba(215, 25, 41, 0.025)) !important;
}

.helheim-profile-page #profile .ui.bottom.attached.tab.segment {
    margin: 0 !important;
    padding: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 0 0 11px 11px !important;
    background:
        linear-gradient(145deg, rgba(26, 26, 33, 0.97), rgba(17, 17, 23, 0.99)) !important;
}

.helheim-profile-page #profile .ui.bottom.attached.tab.segment > h3.ui.header {
    margin-bottom: 20px !important;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 17px !important;
}

.helheim-profile-page #form-profile-post {
    margin-bottom: 24px;
    padding: 15px;
    border: 1px solid rgba(239, 51, 69, 0.13);
    border-radius: 9px;
    background: rgba(120, 4, 20, 0.055);
}

.helheim-profile-page #form-profile-post textarea,
.helheim-profile-page .ui.modal textarea,
.helheim-profile-page #profile textarea {
    min-height: 105px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 8px !important;
    color: #f2f2f5 !important;
    background: rgba(255, 255, 255, 0.032) !important;
    box-shadow: none !important;
}

.helheim-profile-page #form-profile-post textarea:focus,
.helheim-profile-page .ui.modal textarea:focus,
.helheim-profile-page #profile textarea:focus {
    border-color: rgba(239, 51, 69, 0.5) !important;
    background: rgba(215, 25, 41, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 41, 0.065) !important;
}

.helheim-profile-page #profile .ui.primary.button,
.helheim-profile-page #profile input.ui.primary.button {
    border: 1px solid rgba(239, 51, 69, 0.44) !important;
    border-radius: 7px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #b60f20, #7d0614) !important;
    box-shadow: 0 10px 24px rgba(109, 3, 17, 0.22) !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.helheim-profile-page #profile .ui.primary.button:hover,
.helheim-profile-page #profile input.ui.primary.button:hover {
    background: linear-gradient(135deg, #d51a2d, #960819) !important;
}

.helheim-profile-page #profile-feed .ui.comments {
    width: 100%;
    max-width: none;
    margin: 0;
}

.helheim-profile-page #profile-feed .ui.comments > .comment {
    margin: 0 0 14px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.022);
}

.helheim-profile-page #profile-feed .ui.comments .comment .avatar {
    width: 46px !important;
}

.helheim-profile-page #profile-feed .ui.comments .comment .avatar img {
    width: 46px !important;
    height: 46px !important;
    border: 2px solid rgba(239, 51, 69, 0.34);
    object-fit: cover;
}

.helheim-profile-page #profile-feed .ui.comments .comment > .content {
    margin-left: 60px;
}

.helheim-profile-page #profile-feed .ui.comments .author {
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
}

.helheim-profile-page #profile-feed .ui.comments .metadata {
    margin-left: 8px;
    color: #777783 !important;
    font-size: 10px;
}

.helheim-profile-page #profile-feed .ui.comments .text.forum_post {
    margin-top: 10px;
    color: #c6c6ce !important;
    line-height: 1.65;
}

.helheim-profile-page #profile-feed .ui.comments .actions {
    margin-top: 12px;
}

.helheim-profile-page #profile-feed .ui.comments .actions a {
    margin-right: 13px;
    color: #8f8f99 !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    cursor: pointer;
}

.helheim-profile-page #profile-feed .ui.comments .actions a:hover {
    color: #ef3345 !important;
}

.helheim-profile-page #profile-feed #reactions.ui.mini.message {
    display: flow-root;
    margin: 13px 0 0 !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: rgba(8, 8, 12, 0.46) !important;
    box-shadow: none !important;
}

.helheim-profile-page #profile-feed .reaction-button,
.helheim-profile-page #profile-feed .reaction-button-selected {
    display: inline-flex;
    min-width: 27px;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}

.helheim-profile-page #profile-feed .reaction-button:hover {
    border-color: rgba(239, 51, 69, 0.25);
    background: rgba(215, 25, 41, 0.06);
}

.helheim-profile-page #profile-feed .reaction-button-selected {
    border-color: rgba(239, 51, 69, 0.42);
    background: rgba(215, 25, 41, 0.1);
}

.helheim-profile-page #profile-feed .ui.comments .comments {
    margin-top: 16px !important;
    padding: 14px 0 0 14px !important;
    border-left: 2px solid rgba(239, 51, 69, 0.16);
}

.helheim-profile-page #profile-feed .ui.comments .comments .comment {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.helheim-profile-page #profile-about .ui.relaxed.list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 0 0 14px;
}

.helheim-profile-page #profile-about .ui.relaxed.list > .item {
    display: flex;
    min-height: 74px;
    align-items: center;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.022);
}

.helheim-profile-page #profile-about .ui.relaxed.list > .item > i.icon {
    width: 38px;
    margin-right: 12px !important;
    color: #ef3345;
    font-size: 18px;
}

.helheim-profile-page #profile-about .item .header {
    margin-bottom: 4px;
    color: #ededf1 !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.helheim-profile-page #profile-about .item .description {
    color: #9e9ea9 !important;
    line-height: 1.5;
}

.helheim-profile-page #profile .ui.info.message,
.helheim-profile-page #profile .ui.error.message,
.helheim-profile-page #profile .ui.success.message,
.helheim-profile-page #profile .ui.negative.message {
    padding: 16px !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

.helheim-profile-page #profile .ui.info.message {
    border: 1px solid rgba(75, 146, 216, 0.22) !important;
    color: #a8bfd6 !important;
    background: rgba(35, 91, 145, 0.09) !important;
}

.helheim-profile-page #profile .ui.success.message {
    border: 1px solid rgba(62, 190, 114, 0.24) !important;
    color: #a9dabe !important;
    background: rgba(29, 127, 72, 0.1) !important;
}

.helheim-profile-page #profile .ui.error.message,
.helheim-profile-page #profile .ui.negative.message {
    border: 1px solid rgba(239, 51, 69, 0.25) !important;
    color: #e3a7ad !important;
    background: rgba(144, 9, 27, 0.1) !important;
}

.helheim-profile-page .ui.pagination.menu {
    margin-top: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 8px !important;
    background: rgba(14, 14, 19, 0.92) !important;
    box-shadow: none !important;
}

.helheim-profile-page .ui.pagination.menu .item {
    color: #9c9ca7 !important;
    background: transparent !important;
}

.helheim-profile-page .ui.pagination.menu .item.active {
    color: #fff !important;
    background: rgba(215, 25, 41, 0.13) !important;
}

.helheim-profile-page .ui.popup {
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    color: #c7c7cf !important;
    background: #17171d !important;
    box-shadow: 0 15px 34px rgba(0, 0, 0, 0.34) !important;
}

#modal-reactions.ui.modal,
[id^="modal-edit-"].ui.modal,
[id^="modal-reply-"].ui.modal,
#modal-block.ui.modal,
#imageModal.ui.modal {
    border: 1px solid rgba(239, 51, 69, 0.18) !important;
    border-radius: 12px !important;
    color: #c7c7cf !important;
    background: #17171d !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5) !important;
}

#modal-reactions.ui.modal > .header,
[id^="modal-edit-"].ui.modal > .header,
[id^="modal-reply-"].ui.modal > .header,
#modal-block.ui.modal > .header,
#imageModal.ui.modal > .header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #fff !important;
    background: #1d1d24 !important;
}

#modal-reactions.ui.modal > .content,
[id^="modal-edit-"].ui.modal > .content,
[id^="modal-reply-"].ui.modal > .content,
#modal-block.ui.modal > .content,
#imageModal.ui.modal > .content {
    color: #bdbdc6 !important;
    background: #17171d !important;
}

#modal-reactions.ui.modal > .actions,
[id^="modal-edit-"].ui.modal > .actions,
[id^="modal-reply-"].ui.modal > .actions,
#modal-block.ui.modal > .actions,
#imageModal.ui.modal > .actions {
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    background: #141419 !important;
}

#modal-reactions.ui.modal .close.icon,
[id^="modal-edit-"].ui.modal .close.icon,
[id^="modal-reply-"].ui.modal .close.icon,
#modal-block.ui.modal .close.icon,
#imageModal.ui.modal .close.icon {
    color: #fff !important;
}

#imageModal .image_picker_selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
}

#imageModal .image_picker_selector li {
    width: auto !important;
    margin: 0 !important;
}

#imageModal .image_picker_selector .thumbnail {
    padding: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.025) !important;
}

#imageModal .image_picker_selector .thumbnail.selected {
    border-color: rgba(239, 51, 69, 0.58) !important;
    background: rgba(215, 25, 41, 0.09) !important;
}

#imageModal .image_picker_selector img {
    width: 100%;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .helheim-profile-page {
        padding-top: 16px;
    }

    .helheim-profile-page #profile-header {
        min-height: 300px;
    }

    .helheim-profile-page #profile-about .ui.relaxed.list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .helheim-profile-page {
        padding: 10px 0 38px;
    }

    .helheim-profile-page #profile-header {
        min-height: 275px;
        padding: 64px 16px 26px !important;
        border-radius: 11px !important;
    }

    .helheim-profile-page #profile-header > .actions {
        top: 12px;
        right: 12px;
        left: 12px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .helheim-profile-page #profile-header > .actions .ui.button {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .helheim-profile-page #profile-header center {
        min-height: 180px;
    }

    .helheim-profile-page #profile-header .ui.circular.image {
        width: 90px !important;
        height: 90px !important;
        border-width: 3px;
        box-shadow:
            0 0 0 5px rgba(10, 10, 14, 0.58),
            0 13px 28px rgba(0, 0, 0, 0.38);
    }

    .helheim-profile-page #profile-header h2.ui.header {
        font-size: 27px !important;
    }

    .helheim-profile-page #profile-header h2.ui.header .sub.header {
        font-size: 10px !important;
    }

    .helheim-profile-page #profile {
        margin-right: -0.5rem !important;
        margin-left: -0.5rem !important;
    }

    .helheim-profile-page #profile .ui.bottom.attached.tab.segment {
        padding: 16px !important;
    }

    .helheim-profile-page #profile .ui.top.attached.tabular.menu .item {
        padding: 15px 16px !important;
        font-size: 10px;
    }

    .helheim-profile-page #profile-feed .ui.comments > .comment {
        padding: 13px;
    }

    .helheim-profile-page #profile-feed .ui.comments .comment .avatar,
    .helheim-profile-page #profile-feed .ui.comments .comment .avatar img {
        width: 38px !important;
        height: 38px !important;
    }

    .helheim-profile-page #profile-feed .ui.comments .comment > .content {
        margin-left: 50px;
    }

    .helheim-profile-page #profile-feed #reactions.ui.mini.message .right.floated {
        display: block;
        float: none !important;
        margin-top: 8px;
    }

    .helheim-profile-page #profile-feed .ui.comments .comments {
        margin-left: 0 !important;
        padding-left: 9px !important;
    }

    #imageModal .image_picker_selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .helheim-profile-page #profile-header h2.ui.header {
        max-width: 100%;
        font-size: 24px !important;
        overflow-wrap: anywhere;
    }

    .helheim-profile-page #profile-feed .ui.comments .author,
    .helheim-profile-page #profile-feed .ui.comments .metadata {
        display: block;
        margin-left: 0;
    }

    #imageModal .image_picker_selector {
        grid-template-columns: 1fr;
    }
}
/* ==================================================
   HELHEIM — НАВИГАЦИЯ ЛИЧНОГО КАБИНЕТА
   ================================================== */

.helheim-account-nav {
    position: sticky;
    top: 86px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(27, 27, 34, 0.98), rgba(16, 16, 22, 0.99));
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.helheim-account-nav__head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(135deg, rgba(121, 4, 20, 0.16), rgba(255, 255, 255, 0.018));
}

.helheim-account-nav__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.34);
    border-radius: 10px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.08);
    box-shadow: 0 8px 20px rgba(76, 2, 13, 0.16);
}

.helheim-account-nav__icon i {
    margin: 0;
    font-size: 16px;
}

.helheim-account-nav__head small {
    display: block;
    margin-bottom: 3px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.helheim-account-nav__head strong {
    display: block;
    color: #f3f3f6;
    font-size: 13px;
    font-weight: 900;
}

.helheim-account-nav__menu.ui.vertical.menu {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.helheim-account-nav__menu.ui.vertical.menu .item {
    display: flex !important;
    min-height: 47px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 !important;
    padding: 13px 15px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
    border-radius: 0 !important;
    color: #9e9ea9 !important;
    background: transparent !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}

.helheim-account-nav__menu.ui.vertical.menu .item:last-child {
    border-bottom: 0 !important;
}

.helheim-account-nav__menu.ui.vertical.menu .item::before {
    display: none !important;
}

.helheim-account-nav__menu.ui.vertical.menu .item:hover {
    padding-left: 19px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.026) !important;
}

.helheim-account-nav__menu.ui.vertical.menu .item.active {
    color: #fff !important;
    background:
        linear-gradient(90deg, rgba(167, 8, 29, 0.2), rgba(215, 25, 41, 0.045)) !important;
    box-shadow:
        inset 3px 0 0 #df2437,
        inset 0 0 22px rgba(116, 4, 18, 0.08) !important;
}

.helheim-account-nav__menu.ui.vertical.menu .item.active .helheim-account-nav__arrow {
    color: #ef3345;
    transform: translateX(2px);
}

.helheim-account-nav__item-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.helheim-account-nav__arrow {
    flex: 0 0 auto;
    margin: 0 !important;
    color: #54545e;
    font-size: 9px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.helheim-account-nav__menu.ui.vertical.menu .item:hover .helheim-account-nav__arrow {
    color: #b9b9c2;
    transform: translateX(2px);
}

@media (max-width: 991px) {
    .helheim-account-nav {
        position: static;
        top: auto;
        margin-bottom: 18px;
    }

    .helheim-account-nav__menu.ui.vertical.menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .helheim-account-nav__menu.ui.vertical.menu .item {
        border-right: 1px solid rgba(255, 255, 255, 0.045) !important;
    }

    .helheim-account-nav__menu.ui.vertical.menu .item:nth-child(2n) {
        border-right: 0 !important;
    }
}

@media (max-width: 560px) {
    .helheim-account-nav__head {
        padding: 14px;
    }

    .helheim-account-nav__menu.ui.vertical.menu {
        grid-template-columns: 1fr;
    }

    .helheim-account-nav__menu.ui.vertical.menu .item {
        min-height: 45px;
        border-right: 0 !important;
    }
}
/* ==================================================
   HELHEIM — ОБЗОР ЛИЧНОГО КАБИНЕТА
   ================================================== */

.helheim-account-page {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 26px 0 56px;
}

.helheim-account-page__heading {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 23px 26px;
    border: 1px solid rgba(239, 51, 69, 0.15);
    border-radius: 13px;
    background:
        radial-gradient(circle at 88% 25%, rgba(215, 25, 41, 0.11), transparent 30%),
        linear-gradient(145deg, rgba(28, 28, 35, 0.97), rgba(16, 16, 22, 0.99));
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.helheim-account-page__kicker {
    display: block;
    margin-bottom: 7px;
    color: #ef3345;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.helheim-account-page__heading h1 {
    margin: 0 !important;
    color: #f4f4f6 !important;
    font-size: clamp(24px, 3vw, 34px) !important;
    line-height: 1.08;
}

.helheim-account-page__heading p {
    max-width: 700px;
    margin: 9px 0 0 !important;
    color: #9898a3;
    font-size: 12px;
    line-height: 1.6;
}

.helheim-account-page__heading-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.34);
    border-radius: 14px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.075);
    box-shadow: 0 12px 30px rgba(94, 2, 15, 0.16);
}

.helheim-account-page__heading-icon i {
    margin: 0;
    font-size: 21px;
}

.helheim-account-grid {
    margin-top: 0 !important;
}

.helheim-account-grid > .row {
    align-items: flex-start;
}

.helheim-account-grid__nav,
.helheim-account-grid__content {
    min-width: 0;
}

.helheim-account-card {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(27, 27, 34, 0.98), rgba(16, 16, 22, 0.99));
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.helheim-account-card__head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(135deg, rgba(112, 4, 18, 0.13), rgba(255, 255, 255, 0.015));
}

.helheim-account-card__head span {
    display: block;
    margin-bottom: 4px;
    color: #ef3345;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.helheim-account-card__head h2 {
    margin: 0 !important;
    color: #f0f0f4 !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.helheim-account-card__icon {
    display: inline-flex !important;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border: 1px solid rgba(239, 51, 69, 0.27);
    border-radius: 10px;
    color: #ef3345 !important;
    background: rgba(215, 25, 41, 0.06);
}

.helheim-account-card__icon i {
    margin: 0;
    font-size: 14px;
}

.helheim-account-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    padding: 17px;
}

.helheim-account-detail {
    display: flex;
    gap: 12px;
    min-width: 0;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.helheim-account-detail:hover {
    border-color: rgba(239, 51, 69, 0.19);
    background: rgba(215, 25, 41, 0.035);
    transform: translateY(-1px);
}

.helheim-account-detail__icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 69, 0.2);
    border-radius: 8px;
    color: #ef3345;
    background: rgba(215, 25, 41, 0.055);
}

.helheim-account-detail__icon i {
    margin: 0;
    font-size: 8px;
}

.helheim-account-detail__content {
    min-width: 0;
}

.helheim-account-detail__name {
    display: block;
    margin-bottom: 4px;
    color: #8e8e99;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.helheim-account-detail__value {
    color: #ececf1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.helheim-account-detail__value a {
    color: #f0a0a8 !important;
}

.helheim-account-chart {
    position: relative;
    min-height: 320px;
    padding: 18px 18px 14px;
}

.helheim-account-chart canvas {
    width: 100% !important;
    max-width: 100%;
}

@media (max-width: 991px) {
    .helheim-account-page {
        padding-top: 18px;
    }

    .helheim-account-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .helheim-account-page {
        padding: 10px 0 40px;
    }

    .helheim-account-page__heading {
        margin-bottom: 17px;
        padding: 18px;
        border-radius: 11px;
    }

    .helheim-account-page__heading-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .helheim-account-grid {
        margin-right: -0.5rem !important;
        margin-left: -0.5rem !important;
    }

    .helheim-account-card__head {
        padding: 15px;
    }

    .helheim-account-details {
        padding: 14px;
    }

    .helheim-account-chart {
        min-height: 260px;
        padding: 14px 10px 10px;
    }
}

@media (max-width: 480px) {
    .helheim-account-page__heading {
        align-items: flex-start;
    }

    .helheim-account-page__heading p {
        font-size: 11px;
    }

    .helheim-account-page__heading-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .helheim-account-detail {
        padding: 12px;
    }

    .helheim-account-card__head h2 {
        font-size: 14px !important;
    }
}
/* ==================================================
   HELHEIM — МОБИЛЬНЫЙ БАННЕР БЕЗ ОБРЕЗКИ V2
   ВАЖНО: блок находится в самом конце файла,
   поэтому перекрывает старые мобильные правила.
   ================================================== */

@media only screen and (max-width: 768px) {
    body .ui.masthead {
        display: block !important;
        width: 100% !important;

        /* Пропорции исходного баннера 1800 × 350 */
        height: calc(100vw * 350 / 1800) !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 36 / 7 !important;

        margin-bottom: 16px !important;
        padding: 0 !important;

        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: #07070b !important;

        border-bottom: 2px solid #a60f1a !important;
        box-shadow: none !important;
    }

    body .ui.masthead::before,
    body .ui.masthead::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }

    body .ui.masthead > .ui.container {
        display: none !important;
    }
}

/* END HELHEIM — МОБИЛЬНЫЙ БАННЕР БЕЗ ОБРЕЗКИ V2 */

/* ==================================================
   HELHEIM — ПОЛНАЯ СВЕТЛАЯ ТЕМА V1
   Работает, когда у body отсутствует класс dark.
   Переключатель темы уже находится в футере сайта.
   ================================================== */

body:not(.dark) {
    --hl-light-bg: #edf0f4;
    --hl-light-bg-soft: #f5f7f9;
    --hl-light-surface: #ffffff;
    --hl-light-surface-alt: #f1f3f6;
    --hl-light-border: #d8dde5;
    --hl-light-border-strong: #c7cdd7;
    --hl-light-text: #242830;
    --hl-light-heading: #171a20;
    --hl-light-muted: #69717d;
    --hl-light-faint: #8a929e;
    --hl-light-accent: #9e1021;
    --hl-light-accent-hover: #c3182d;
    --hl-light-accent-soft: rgba(158, 16, 33, 0.075);
    --hl-light-success: #27865b;
    --hl-light-warning: #a96716;
    --hl-light-danger: #bd2438;
    --hl-light-shadow: 0 12px 34px rgba(35, 42, 52, 0.085);
    --hl-light-shadow-small: 0 5px 18px rgba(35, 42, 52, 0.065);

    color: var(--hl-light-text);
    background: var(--hl-light-bg) !important;
}

body:not(.dark) > .pusher,
body:not(.dark).pushable > .pusher,
body:not(.dark) #wrapper {
    color: var(--hl-light-text);
    background: var(--hl-light-bg) !important;
}

body:not(.dark) ::selection {
    color: #ffffff;
    background: var(--hl-light-accent);
}

body:not(.dark) a:not(.ui):not([class*="helheim-"]) {
    color: var(--hl-light-accent);
}

body:not(.dark) a:not(.ui):not([class*="helheim-"]):hover {
    color: var(--hl-light-accent-hover);
}

/* ==================================================
   SEMANTIC UI — ОСНОВА СВЕТЛОГО РЕЖИМА
   ================================================== */

body:not(.dark) .ui.segment,
body:not(.dark) .ui.card,
body:not(.dark) .ui.cards > .card,
body:not(.dark) .ui.vertical.menu:not(.inverted),
body:not(.dark) .ui.popup,
body:not(.dark) .ui.modal,
body:not(.dark) .ui.dropdown .menu,
body:not(.dark) .ui.selection.dropdown,
body:not(.dark) .ui.table {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
    box-shadow: var(--hl-light-shadow-small) !important;
}

body:not(.dark) .ui.segment,
body:not(.dark) .ui.card,
body:not(.dark) .ui.cards > .card {
    border: 1px solid var(--hl-light-border) !important;
}

body:not(.dark) .ui.header,
body:not(.dark) .ui.header .sub.header,
body:not(.dark) .ui.card > .content > .header,
body:not(.dark) .ui.cards > .card > .content > .header,
body:not(.dark) .ui.list > .item > .content > .header,
body:not(.dark) .ui.form .field > label,
body:not(.dark) .ui.checkbox label,
body:not(.dark) .ui.checkbox + label {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) .ui.card > .content > .description,
body:not(.dark) .ui.cards > .card > .content > .description,
body:not(.dark) .ui.card .meta,
body:not(.dark) .ui.list > .item .description,
body:not(.dark) .ui.header .sub.header {
    color: var(--hl-light-muted) !important;
}

body:not(.dark) .ui.divider {
    border-color: var(--hl-light-border) !important;
}

body:not(.dark) .ui.horizontal.divider {
    color: var(--hl-light-muted) !important;
}

body:not(.dark) .ui.table thead th {
    color: #4e5662 !important;
    border-color: var(--hl-light-border) !important;
    background: #eef1f5 !important;
}

body:not(.dark) .ui.table tbody td,
body:not(.dark) .ui.table tr {
    color: var(--hl-light-text) !important;
    border-color: #e1e5eb !important;
}

body:not(.dark) .ui.striped.table > tr:nth-child(2n),
body:not(.dark) .ui.striped.table tbody tr:nth-child(2n) {
    background: #f8f9fb !important;
}

body:not(.dark) .ui.selectable.table tbody tr:hover,
body:not(.dark) .ui.table tbody tr td.selectable:hover {
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .ui.form input:not([type="submit"]):not([type="button"]),
body:not(.dark) .ui.form textarea,
body:not(.dark) .ui.form select,
body:not(.dark) .ui.input > input,
body:not(.dark) .ui.selection.dropdown {
    color: var(--hl-light-heading) !important;
    border: 1px solid var(--hl-light-border-strong) !important;
    background: var(--hl-light-surface) !important;
    box-shadow: none !important;
}

body:not(.dark) .ui.form input::placeholder,
body:not(.dark) .ui.form textarea::placeholder,
body:not(.dark) .ui.search.dropdown > input.search::placeholder {
    color: #9ba2ac !important;
}

body:not(.dark) .ui.form input:focus,
body:not(.dark) .ui.form textarea:focus,
body:not(.dark) .ui.selection.dropdown.active,
body:not(.dark) .ui.selection.dropdown:focus {
    border-color: rgba(158, 16, 33, 0.48) !important;
    box-shadow: 0 0 0 3px rgba(158, 16, 33, 0.08) !important;
}

body:not(.dark) .ui.dropdown .menu > .item,
body:not(.dark) .ui.menu .ui.dropdown .menu > .item,
body:not(.dark) .ui.pointing.dropdown > .menu > .item {
    color: #343941 !important;
    border-color: #e4e7ec !important;
    background: transparent !important;
}

body:not(.dark) .ui.dropdown .menu > .item:hover,
body:not(.dark) .ui.menu .ui.dropdown .menu > .item:hover,
body:not(.dark) .ui.dropdown .menu > .selected.item,
body:not(.dark) .ui.dropdown .menu > .active.item {
    color: var(--hl-light-accent) !important;
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .ui.modal > .header,
body:not(.dark) .ui.modal > .content,
body:not(.dark) .ui.modal > .actions {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
}

body:not(.dark) .ui.modal > .actions {
    background: var(--hl-light-bg-soft) !important;
}

body:not(.dark) .ui.pagination.menu {
    border: 1px solid var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
    box-shadow: var(--hl-light-shadow-small) !important;
}

body:not(.dark) .ui.pagination.menu .item {
    color: #4d5560 !important;
    border-color: var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
}

body:not(.dark) .ui.pagination.menu .item.active,
body:not(.dark) .ui.pagination.menu .item:hover {
    color: #ffffff !important;
    background: var(--hl-light-accent) !important;
}

body:not(.dark) .forum_post,
body:not(.dark) .ui.comments .forum_post.text,
body:not(.dark) .ui.comments .comment .text {
    color: #343941 !important;
}

body:not(.dark) .forum_post blockquote,
body:not(.dark) .blockquote {
    color: #49515c !important;
    border-left-color: var(--hl-light-accent) !important;
    background: #f4f5f8 !important;
}

body:not(.dark) .forum_post code,
body:not(.dark) .forum_post pre {
    color: #313640 !important;
    border-color: var(--hl-light-border) !important;
    background: #eef1f4 !important;
}

body:not(.dark) .ui.message:not(.negative):not(.error):not(.success):not(.warning) {
    color: #46505c !important;
    border-color: #cfd9e5 !important;
    background: #eef5fb !important;
    box-shadow: none !important;
}

body:not(.dark) .ui.success.message {
    color: #266747 !important;
    border-color: #bbdccb !important;
    background: #edf8f2 !important;
    box-shadow: none !important;
}

body:not(.dark) .ui.error.message,
body:not(.dark) .ui.negative.message {
    color: #923143 !important;
    border-color: #e7bdc5 !important;
    background: #fff1f3 !important;
    box-shadow: none !important;
}

body:not(.dark) .ui.warning.message {
    color: #825419 !important;
    border-color: #ead3ac !important;
    background: #fff8ea !important;
    box-shadow: none !important;
}

/* Редакторы */
body:not(.dark) .tox .tox-menubar,
body:not(.dark) .tox .tox-toolbar,
body:not(.dark) .tox .tox-toolbar__overflow,
body:not(.dark) .tox .tox-toolbar__primary,
body:not(.dark) .tox .tox-statusbar,
body:not(.dark) .tox .tox-dialog,
body:not(.dark) .tox .tox-dialog__header,
body:not(.dark) .tox .tox-dialog__footer,
body:not(.dark) .tox .tox-menu,
body:not(.dark) .tox .tox-listboxfield .tox-listbox--select,
body:not(.dark) .tox .tox-textarea,
body:not(.dark) .tox .tox-textfield,
body:not(.dark) .tox .tox-toolbar-textfield,
body:not(.dark) .tox .tox-selectfield select,
body:not(.dark) .sceditor-container {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
}

body:not(.dark) .tox .tox-edit-area__iframe {
    background: #ffffff !important;
}

/* ==================================================
   НАВИГАЦИЯ
   ================================================== */

body:not(.dark) .helheim-navbar.ui.secondary.menu {
    color: var(--hl-light-text) !important;
    border-bottom: 1px solid var(--hl-light-border) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 8px 28px rgba(35, 42, 52, 0.075) !important;
}

body:not(.dark) .helheim-nav-brand__text strong {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) .helheim-nav-brand__text small {
    color: var(--hl-light-muted) !important;
}

body:not(.dark) .helheim-navbar .helheim-nav-item,
body:not(.dark) .helheim-navbar__toc,
body:not(.dark) .helheim-user-button {
    color: #404751 !important;
}

body:not(.dark) .helheim-navbar .helheim-nav-item:hover,
body:not(.dark) .helheim-navbar .helheim-nav-item.active,
body:not(.dark) .helheim-navbar__toc:hover {
    color: var(--hl-light-accent) !important;
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .helheim-nav-ip,
body:not(.dark) .helheim-account-button,
body:not(.dark) .helheim-user-button {
    color: #3b424c !important;
    border-color: var(--hl-light-border) !important;
    background: #f4f6f8 !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-nav-ip:hover,
body:not(.dark) .helheim-account-button:hover,
body:not(.dark) .helheim-user-button:hover {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.28) !important;
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .helheim-user-popup.ui.popup,
body:not(.dark) .helheim-navbar .ui.dropdown .menu {
    color: var(--hl-light-text) !important;
    border: 1px solid var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
    box-shadow: var(--hl-light-shadow) !important;
}

body:not(.dark) .helheim-user-popup .ui.header,
body:not(.dark) .helheim-navbar .ui.dropdown .menu .header {
    color: var(--hl-light-heading) !important;
}

/* Мобильная боковая панель */
body:not(.dark) .helheim-sidebar.ui.vertical.inverted.sidebar.menu {
    color: var(--hl-light-text) !important;
    border-right: 1px solid var(--hl-light-border) !important;
    background: #f8f9fb !important;
    box-shadow: 18px 0 50px rgba(35, 42, 52, 0.16) !important;
}

body:not(.dark) .helheim-sidebar.ui.menu .item,
body:not(.dark) .helheim-sidebar.ui.menu .item .header,
body:not(.dark) .helheim-sidebar.ui.menu .menu .item {
    color: #343a43 !important;
}

body:not(.dark) .helheim-sidebar.ui.menu .item:hover,
body:not(.dark) .helheim-sidebar.ui.menu .item.active,
body:not(.dark) .helheim-sidebar.ui.menu .menu .item:hover {
    color: var(--hl-light-accent) !important;
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .helheim-sidebar__brand,
body:not(.dark) .helheim-sidebar__account-title,
body:not(.dark) .helheim-sidebar__server {
    border-color: var(--hl-light-border) !important;
    background: #ffffff !important;
}

body:not(.dark) .helheim-sidebar__brand strong,
body:not(.dark) .helheim-mobile-account-v3__profile-text strong {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) .helheim-sidebar__brand small,
body:not(.dark) .helheim-mobile-account-v3__profile-text small,
body:not(.dark) .helheim-sidebar__server small {
    color: var(--hl-light-muted) !important;
}

body:not(.dark) .helheim-mobile-account-v3__profile,
body:not(.dark) .helheim-mobile-account-v3__action,
body:not(.dark) .helheim-mobile-account-v3__service,
body:not(.dark) .helheim-mobile-account-v3__direct {
    color: #353c46 !important;
    border-color: var(--hl-light-border) !important;
    background: #ffffff !important;
}

body:not(.dark) .helheim-mobile-account-v3__action:hover,
body:not(.dark) .helheim-mobile-account-v3__service:hover,
body:not(.dark) .helheim-mobile-account-v3__direct:hover {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.25) !important;
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .helheim-sidebar__server button {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.25) !important;
    background: #ffffff !important;
}

/* ==================================================
   ФУТЕР И ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ
   ================================================== */

body:not(.dark) .helheim-footer.ui.footer.segment {
    color: #343a43 !important;
    border-top: 1px solid var(--hl-light-border) !important;
    background:
        linear-gradient(180deg, #e9edf2 0%, #dde3ea 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body:not(.dark) .helheim-footer-logo strong,
body:not(.dark) .helheim-footer h4,
body:not(.dark) .helheim-footer-community-item strong,
body:not(.dark) .helheim-footer-ip strong,
body:not(.dark) .helheim-footer__bottom strong {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) .helheim-footer-logo small,
body:not(.dark) .helheim-footer__brand > p,
body:not(.dark) .helheim-footer-community-item small,
body:not(.dark) .helheim-footer__bottom span,
body:not(.dark) .helheim-footer__system,
body:not(.dark) .helheim-footer-settings__label {
    color: #68717c !important;
}

body:not(.dark) .helheim-footer-link-list > a,
body:not(.dark) .helheim-footer-dropdown,
body:not(.dark) .helheim-footer__system a {
    color: #3d454f !important;
}

body:not(.dark) .helheim-footer-link-list > a:hover,
body:not(.dark) .helheim-footer-dropdown:hover,
body:not(.dark) .helheim-footer__system a:hover {
    color: var(--hl-light-accent) !important;
}

body:not(.dark) .helheim-footer-ip,
body:not(.dark) .helheim-footer-community-item {
    color: #343a43 !important;
    border-color: #cbd2db !important;
    background: rgba(255, 255, 255, 0.62) !important;
    box-shadow: 0 5px 16px rgba(35, 42, 52, 0.055) !important;
}

body:not(.dark) a.helheim-footer-community-item:hover,
body:not(.dark) .helheim-footer-ip:hover {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.26) !important;
    background: #ffffff !important;
}

body:not(.dark) .helheim-footer-community-item.is-disabled {
    opacity: 0.66;
}

body:not(.dark) .darkmode-toggle-label {
    border: 1px solid #c5ccd6 !important;
    background: #cfd5dd !important;
    box-shadow: inset 0 1px 3px rgba(35, 42, 52, 0.1) !important;
}

body:not(.dark) .darkmode-ball {
    background: #ffffff !important;
    box-shadow: 0 2px 7px rgba(35, 42, 52, 0.18) !important;
}

body:not(.dark) .darkmode-toggle-label .fa-sun {
    color: #a96814 !important;
}

/* ==================================================
   ОБЩИЕ HELHEIM-КАРТОЧКИ И ЗАГОЛОВКИ
   ================================================== */

body:not(.dark) .helheim-account-page__heading,
body:not(.dark) .helheim-leaderboards-page__heading,
body:not(.dark) .helheim-forum-hero,
body:not(.dark) .helheim-forum-view-hero,
body:not(.dark) .helheim-members-hero,
body:not(.dark) .helheim-status-hero,
body:not(.dark) .helheim-topic-hero,
body:not(.dark) .helheim-intro,
body:not(.dark) .helheim-final {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background:
        linear-gradient(135deg, rgba(158, 16, 33, 0.055), rgba(255, 255, 255, 0.92)) !important;
    box-shadow: var(--hl-light-shadow) !important;
}

body:not(.dark) .helheim-account-card,
body:not(.dark) .helheim-account-nav,
body:not(.dark) .helheim-account-detail,
body:not(.dark) .helheim-account-chart,
body:not(.dark) .helheim-account-alert,
body:not(.dark) .helheim-account-message,
body:not(.dark) .helheim-settings-card,
body:not(.dark) .helheim-community-card,
body:not(.dark) .helheim-ip-card,
body:not(.dark) .helheim-connection-card,
body:not(.dark) .helheim-session-card,
body:not(.dark) .helheim-placeholder-card,
body:not(.dark) .helheim-oauth-provider,
body:not(.dark) .helheim-notification-setting,
body:not(.dark) .helheim-leaderboards-tabs,
body:not(.dark) .helheim-leaderboard-panel,
body:not(.dark) .helheim-leaderboards-empty-state,
body:not(.dark) .helheim-forum-category,
body:not(.dark) .helheim-forum-node,
body:not(.dark) .helheim-forum-view-section,
body:not(.dark) .helheim-forum-view-row,
body:not(.dark) .helheim-members-panel,
body:not(.dark) .helheim-members-board,
body:not(.dark) .helheim-members-entry,
body:not(.dark) .helheim-status-section,
body:not(.dark) .helheim-status-server,
body:not(.dark) .helheim-status-summary,
body:not(.dark) .helheim-status-help,
body:not(.dark) .helheim-status-raw,
body:not(.dark) .helheim-topic-post,
body:not(.dark) .helheim-topic-reply,
body:not(.dark) .helheim-topic-author,
body:not(.dark) .helheim-topic-content,
body:not(.dark) .helheim-topic-message,
body:not(.dark) .helheim-auth__panel,
body:not(.dark) .helheim-user-popover,
body:not(.dark) .helheim-reactions-modal,
body:not(.dark) .helheim-cookie-policy__card,
body:not(.dark) .helheim-terms__card,
body:not(.dark) .helheim-privacy__summary-card {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
    box-shadow: var(--hl-light-shadow-small) !important;
}

body:not(.dark) .helheim-settings-action-card,
body:not(.dark) .helheim-account-alerts__item,
body:not(.dark) .helheim-account-messages__item,
body:not(.dark) .helheim-view-message__item,
body:not(.dark) .helheim-leaderboard-entry__link,
body:not(.dark) .helheim-placeholder-card__value code {
    color: var(--hl-light-text) !important;
    border-color: #dfe3e9 !important;
    background: #f8f9fb !important;
}

body:not(.dark) .helheim-account-card__head,
body:not(.dark) .helheim-account-card__head--alerts,
body:not(.dark) .helheim-account-messages__head,
body:not(.dark) .helheim-account-nav__head,
body:not(.dark) .helheim-connections__head,
body:not(.dark) .helheim-leaderboard-panel__head,
body:not(.dark) .helheim-leaderboards-tabs__head,
body:not(.dark) .helheim-new-message__head,
body:not(.dark) .helheim-notification-settings__head,
body:not(.dark) .helheim-oauth__head,
body:not(.dark) .helheim-placeholders__head,
body:not(.dark) .helheim-sessions__head,
body:not(.dark) .helheim-settings-card__head,
body:not(.dark) .helheim-tfa-settings__head,
body:not(.dark) .helheim-forum-category__header,
body:not(.dark) .helheim-members-board__heading,
body:not(.dark) .helheim-members-panel__heading,
body:not(.dark) .helheim-topic-reply__heading {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background:
        linear-gradient(135deg, rgba(158, 16, 33, 0.055), #f5f7f9) !important;
}

body:not(.dark) [class*="helheim-"] h1:not([style]),
body:not(.dark) [class*="helheim-"] h2:not([style]),
body:not(.dark) [class*="helheim-"] h3:not([style]),
body:not(.dark) [class*="helheim-"] h4:not([style]) {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) [class*="helheim-"] p:not([style]) {
    color: var(--hl-light-muted);
}

body:not(.dark) [class*="helheim-"] code {
    color: #3f4650;
    border-color: var(--hl-light-border);
    background: #edf0f4;
}

body:not(.dark) .helheim-account-page__heading-icon,
body:not(.dark) .helheim-account-card__icon,
body:not(.dark) .helheim-leaderboards-page__heading-icon,
body:not(.dark) .helheim-leaderboard-panel__icon,
body:not(.dark) [class*="helheim-"][class*="__icon"]:not(.helheim-footer-logo__mark):not(.helheim-nav-brand__mark) {
    border-color: rgba(158, 16, 33, 0.18) !important;
    color: var(--hl-light-accent) !important;
    background: rgba(158, 16, 33, 0.055) !important;
}

/* ==================================================
   ГЛАВНАЯ
   ================================================== */

body:not(.dark) .helheim-home,
body:not(.dark) .helheim-section,
body:not(.dark) .helheim-community {
    color: var(--hl-light-text);
}

body:not(.dark) .helheim-feature,
body:not(.dark) .helheim-step {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
    box-shadow: var(--hl-light-shadow-small) !important;
}

body:not(.dark) .helheim-feature__number,
body:not(.dark) .helheim-step__number {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.2) !important;
    background: rgba(158, 16, 33, 0.06) !important;
}

body:not(.dark) .helheim-community-card__status {
    color: #59616c !important;
    border-color: var(--hl-light-border) !important;
    background: #f1f3f6 !important;
}

/* ==================================================
   ФОРУМ И ТЕМЫ
   ================================================== */

body:not(.dark) .helheim-forum-page,
body:not(.dark) .helheim-forum-view-page,
body:not(.dark) .helheim-topic-page,
body:not(.dark) .helheim-members-page,
body:not(.dark) .helheim-status-page {
    color: var(--hl-light-text);
}

body:not(.dark) .helheim-forum-breadcrumb,
body:not(.dark) .helheim-forum-view-breadcrumb,
body:not(.dark) .helheim-topic-breadcrumb {
    color: #59616c !important;
    border-color: var(--hl-light-border) !important;
    background: rgba(255, 255, 255, 0.78) !important;
}

body:not(.dark) .helheim-forum-search,
body:not(.dark) .helheim-forum-view-search,
body:not(.dark) .helheim-members-search {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
}

body:not(.dark) .helheim-forum-node__title,
body:not(.dark) .helheim-forum-node__latest-title,
body:not(.dark) .helheim-forum-view-row__title,
body:not(.dark) .helheim-forum-view-row__latest-title,
body:not(.dark) .helheim-members-entry__name,
body:not(.dark) .helheim-topic-hero__title {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) .helheim-forum-node__description,
body:not(.dark) .helheim-forum-node__latest,
body:not(.dark) .helheim-forum-node__stats,
body:not(.dark) .helheim-forum-view-row__meta,
body:not(.dark) .helheim-forum-view-row__latest-meta,
body:not(.dark) .helheim-forum-view-row__stats,
body:not(.dark) .helheim-members-entry__meta,
body:not(.dark) .helheim-topic-post__date,
body:not(.dark) .helheim-topic-post__meta,
body:not(.dark) .helheim-topic-hero__meta {
    color: var(--hl-light-muted) !important;
}

body:not(.dark) .helheim-forum-node:hover,
body:not(.dark) .helheim-forum-view-row:hover,
body:not(.dark) .helheim-members-entry:hover,
body:not(.dark) .helheim-topic-post:hover {
    border-color: rgba(158, 16, 33, 0.2) !important;
    background: #fffafb !important;
}

body:not(.dark) .helheim-forum-node__subforums,
body:not(.dark) .helheim-topic-signature,
body:not(.dark) .helheim-topic-reactions,
body:not(.dark) .helheim-topic-toolbar,
body:not(.dark) .helheim-topic-lock-notice {
    color: #4d5560 !important;
    border-color: var(--hl-light-border) !important;
    background: #f5f7f9 !important;
}

body:not(.dark) .helheim-topic-author {
    background: #f7f8fa !important;
}

body:not(.dark) .helheim-topic-message {
    color: #303640 !important;
    background: #ffffff !important;
}

body:not(.dark) .helheim-topic-reply textarea {
    color: var(--hl-light-heading) !important;
    border-color: var(--hl-light-border-strong) !important;
    background: #ffffff !important;
}

/* ==================================================
   СТАТУС И УЧАСТНИКИ
   ================================================== */

body:not(.dark) .helheim-status-server__state,
body:not(.dark) .helheim-status-server__players,
body:not(.dark) .helheim-status-server__ip,
body:not(.dark) .helheim-status-summary__item,
body:not(.dark) .helheim-members-nav__item,
body:not(.dark) .helheim-members-new-grid__item {
    color: #4b535e !important;
    border-color: var(--hl-light-border) !important;
    background: #f5f7f9 !important;
}

body:not(.dark) .helheim-members-nav__item:hover,
body:not(.dark) .helheim-members-nav__item.active {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.22) !important;
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .helheim-members-empty,
body:not(.dark) .helheim-forum-view-empty {
    color: var(--hl-light-muted) !important;
    border-color: var(--hl-light-border) !important;
    background: #f8f9fb !important;
}

/* ==================================================
   АВТОРИЗАЦИЯ И РЕГИСТРАЦИЯ
   ================================================== */

body:not(.dark) .helheim-auth {
    color: var(--hl-light-text) !important;
    background:
        radial-gradient(circle at 20% 20%, rgba(158, 16, 33, 0.07), transparent 34%),
        linear-gradient(145deg, #edf0f4, #f8f9fb) !important;
}

body:not(.dark) .helheim-auth__side {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background:
        linear-gradient(145deg, rgba(158, 16, 33, 0.075), rgba(255, 255, 255, 0.86)) !important;
}

body:not(.dark) .helheim-auth__lead,
body:not(.dark) .helheim-auth__feature,
body:not(.dark) .helheim-auth__server,
body:not(.dark) .helheim-auth__security-note,
body:not(.dark) .helheim-auth__terms,
body:not(.dark) .helheim-auth__forgot {
    color: var(--hl-light-muted) !important;
}

body:not(.dark) .helheim-auth__input-wrap,
body:not(.dark) .helheim-auth__textarea-wrap,
body:not(.dark) .helheim-auth__select-wrap {
    color: var(--hl-light-heading) !important;
    border-color: var(--hl-light-border-strong) !important;
    background: #ffffff !important;
}

body:not(.dark) .helheim-auth__input-wrap:focus-within,
body:not(.dark) .helheim-auth__textarea-wrap:focus-within,
body:not(.dark) .helheim-auth__select-wrap:focus-within {
    border-color: rgba(158, 16, 33, 0.48) !important;
    box-shadow: 0 0 0 3px rgba(158, 16, 33, 0.08) !important;
}

body:not(.dark) .helheim-auth__input-wrap input,
body:not(.dark) .helheim-auth__textarea-wrap textarea,
body:not(.dark) .helheim-auth__select-wrap select {
    color: var(--hl-light-heading) !important;
    background: transparent !important;
}

body:not(.dark) .helheim-auth__oauth-button,
body:not(.dark) .helheim-auth__cancel-button {
    color: #3e4650 !important;
    border-color: var(--hl-light-border) !important;
    background: #f3f5f7 !important;
}

body:not(.dark) .helheim-auth__oauth-button:hover,
body:not(.dark) .helheim-auth__cancel-button:hover {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.26) !important;
    background: var(--hl-light-accent-soft) !important;
}

/* ==================================================
   ЛИЧНЫЙ КАБИНЕТ
   ================================================== */

body:not(.dark) .helheim-account-nav__menu {
    background: #ffffff !important;
}

body:not(.dark) .helheim-account-nav__link,
body:not(.dark) .helheim-account-nav .item {
    color: #424a55 !important;
    border-color: transparent !important;
}

body:not(.dark) .helheim-account-nav__link:hover,
body:not(.dark) .helheim-account-nav__link.active,
body:not(.dark) .helheim-account-nav .item:hover,
body:not(.dark) .helheim-account-nav .active.item {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.18) !important;
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .helheim-account-detail,
body:not(.dark) .helheim-account-alert-view__content,
body:not(.dark) .helheim-view-message__content {
    color: #343a43 !important;
}

body:not(.dark) .helheim-account-alerts__item:hover,
body:not(.dark) .helheim-account-messages__item:hover,
body:not(.dark) .helheim-view-message__item:hover,
body:not(.dark) .helheim-connection-card:hover,
body:not(.dark) .helheim-session-card:hover,
body:not(.dark) .helheim-oauth-provider:hover,
body:not(.dark) .helheim-notification-setting:hover {
    border-color: rgba(158, 16, 33, 0.2) !important;
    background: #fffafb !important;
}

body:not(.dark) .helheim-account-alerts__title,
body:not(.dark) .helheim-account-message__title,
body:not(.dark) .helheim-view-message__author-info > a:not([style]),
body:not(.dark) .helheim-connection-card__title-row h3,
body:not(.dark) .helheim-session-card__title-row h3,
body:not(.dark) .helheim-oauth-provider__title-row h3 {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) .helheim-account-alerts__time,
body:not(.dark) .helheim-account-message__date,
body:not(.dark) .helheim-view-message__author-info > span,
body:not(.dark) .helheim-connection-card__username,
body:not(.dark) .helheim-session-card__meta > span,
body:not(.dark) .helheim-oauth-provider__id > span {
    color: var(--hl-light-muted) !important;
}

body:not(.dark) .helheim-new-message__field input,
body:not(.dark) .helheim-new-message__editor,
body:not(.dark) .helheim-view-message__editor,
body:not(.dark) .helheim-settings-field input,
body:not(.dark) .helheim-settings-field textarea,
body:not(.dark) .helheim-settings-field .ui.dropdown,
body:not(.dark) .helheim-tfa-settings__code-field input {
    color: var(--hl-light-heading) !important;
    border-color: var(--hl-light-border-strong) !important;
    background: #ffffff !important;
}

body:not(.dark) .helheim-settings-field > label strong,
body:not(.dark) .helheim-settings-action-card__info strong,
body:not(.dark) .helheim-settings-upload strong {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) .helheim-settings-field > label small,
body:not(.dark) .helheim-settings-action-card__info p,
body:not(.dark) .helheim-settings-upload small,
body:not(.dark) .helheim-notification-settings__hint {
    color: var(--hl-light-muted) !important;
}

body:not(.dark) .helheim-settings-upload {
    color: #444c57 !important;
    border-color: rgba(158, 16, 33, 0.24) !important;
    background: #faf5f6 !important;
}

body:not(.dark) .helheim-settings-upload:hover {
    border-color: rgba(158, 16, 33, 0.42) !important;
    background: #fffafb !important;
}

body:not(.dark) .helheim-notification-settings__legend {
    color: #5e6671 !important;
    border-color: var(--hl-light-border) !important;
    background: #eef1f4 !important;
}

body:not(.dark) .helheim-notification-settings__list {
    border-color: var(--hl-light-border) !important;
}

body:not(.dark) .helheim-notification-setting__name {
    color: #343b45 !important;
}

body:not(.dark) .helheim-notification-setting__toggle.ui.toggle.checkbox label::before {
    border-color: #c9cfd8 !important;
    background: #d9dee5 !important;
}

body:not(.dark) .helheim-notification-setting__toggle.ui.toggle.checkbox label::after {
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(35, 42, 52, 0.16) !important;
}

body:not(.dark) .helheim-notification-setting__toggle.ui.toggle.checkbox input:checked ~ label::before {
    border-color: rgba(158, 16, 33, 0.45) !important;
    background: var(--hl-light-accent) !important;
}

body:not(.dark) .helheim-placeholders__desktop-table,
body:not(.dark) .helheim-placeholder-card {
    border-color: var(--hl-light-border) !important;
    background: #ffffff !important;
}

body:not(.dark) .helheim-placeholders__desktop-table thead {
    background: #eef1f4 !important;
}

body:not(.dark) .helheim-placeholders__desktop-table th,
body:not(.dark) .helheim-placeholders__desktop-table td {
    color: #454d58 !important;
    border-color: #e1e5eb !important;
}

body:not(.dark) .helheim-placeholders__desktop-table tbody tr:hover {
    background: #fffafb !important;
}

body:not(.dark) .helheim-placeholders__desktop-table td code,
body:not(.dark) .helheim-placeholder-card__value code,
body:not(.dark) .helheim-oauth-provider__id code,
body:not(.dark) .helheim-tfa-settings__secret code {
    color: #323842 !important;
    border-color: var(--hl-light-border) !important;
    background: #edf0f4 !important;
}

/* ==================================================
   ЛИДЕРБОРДЫ, РЕАКЦИИ И POPOVER
   ================================================== */

body:not(.dark) .helheim-leaderboards-tab {
    color: #505864 !important;
}

body:not(.dark) .helheim-leaderboards-tab:hover,
body:not(.dark) .helheim-leaderboards-tab.active {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.2) !important;
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .helheim-leaderboard-entry__rank,
body:not(.dark) .helheim-leaderboard-entry__value {
    color: #3f4752 !important;
}

body:not(.dark) .helheim-leaderboard-entry__username:not([style]) {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) .helheim-reactions-modal__tabs {
    border-color: var(--hl-light-border) !important;
    background: #f1f3f6 !important;
}

body:not(.dark) .helheim-reactions-modal__tab {
    color: #5c6470 !important;
}

body:not(.dark) .helheim-reactions-modal__tab:hover,
body:not(.dark) .helheim-reactions-modal__tab.active {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.2) !important;
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .helheim-reactions-modal__user {
    border-color: #e2e6ec !important;
}

body:not(.dark) .helheim-reactions-modal__user:hover {
    background: #fffafb !important;
}

body:not(.dark) .helheim-reactions-modal__nickname:not([style]),
body:not(.dark) .helheim-user-popover__identity h4:not([style]),
body:not(.dark) .helheim-user-popover__stat-value {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) .helheim-user-popover__stat {
    background: #f8f9fb !important;
}

body:not(.dark) .helheim-user-popover__stat:hover {
    border-color: rgba(158, 16, 33, 0.17) !important;
    background: #fffafb !important;
}

body:not(.dark) .helheim-user-popover__stat-label,
body:not(.dark) .helheim-reactions-modal__time {
    color: var(--hl-light-muted) !important;
}

/* ==================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   ================================================== */

body:not(.dark) .helheim-rules,
body:not(.dark) .helheim-privacy,
body:not(.dark) .helheim-cookie-policy,
body:not(.dark) .helheim-terms {
    color: var(--hl-light-text) !important;
    background:
        radial-gradient(circle at 18% 12%, rgba(158, 16, 33, 0.055), transparent 30%),
        var(--hl-light-bg) !important;
}

body:not(.dark) .helheim-rules__hero,
body:not(.dark) .helheim-privacy__hero,
body:not(.dark) .helheim-cookie-policy__hero,
body:not(.dark) .helheim-terms__hero {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background:
        linear-gradient(135deg, rgba(158, 16, 33, 0.06), #ffffff) !important;
    box-shadow: var(--hl-light-shadow) !important;
}

body:not(.dark) .helheim-rules__navigation,
body:not(.dark) .helheim-rules__section,
body:not(.dark) .helheim-privacy__section,
body:not(.dark) .helheim-privacy__contact,
body:not(.dark) .helheim-cookie-policy__section,
body:not(.dark) .helheim-cookie-policy__intro,
body:not(.dark) .helheim-terms__section,
body:not(.dark) .helheim-terms__contact {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
    box-shadow: var(--hl-light-shadow-small) !important;
}

body:not(.dark) .helheim-rules__anchor {
    color: #454d58 !important;
    border-color: transparent !important;
}

body:not(.dark) .helheim-rules__anchor:hover,
body:not(.dark) .helheim-rules__anchor.is-active {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.18) !important;
    background: var(--hl-light-accent-soft) !important;
}

body:not(.dark) .helheim-rules__notice,
body:not(.dark) .helheim-privacy__notice,
body:not(.dark) .helheim-cookie-policy__warning,
body:not(.dark) .helheim-terms__notice {
    color: #75434a !important;
    border-color: #e2c1c6 !important;
    background: #fff4f5 !important;
}

/* ==================================================
   403, 404, ТЕХРАБОТЫ И USER NOT FOUND
   ================================================== */

body:not(.dark) .helheim-error-403,
body:not(.dark) .helheim-error-404,
body:not(.dark) .helheim-maintenance,
body:not(.dark) .helheim-user-not-found {
    color: var(--hl-light-text) !important;
    background:
        radial-gradient(circle at 50% 32%, rgba(158, 16, 33, 0.08), transparent 34%),
        linear-gradient(145deg, #e9edf2, #f7f8fa) !important;
}

body:not(.dark) .helheim-error-403__card,
body:not(.dark) .helheim-error-404__card,
body:not(.dark) .helheim-maintenance__card,
body:not(.dark) .helheim-user-not-found__card {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 244, 247, 0.98)) !important;
    box-shadow: 0 28px 70px rgba(35, 42, 52, 0.15) !important;
}

body:not(.dark) .helheim-error-403__card h1,
body:not(.dark) .helheim-error-404__card h1,
body:not(.dark) .helheim-maintenance__card h1,
body:not(.dark) .helheim-user-not-found__card h1 {
    color: var(--hl-light-heading) !important;
}

body:not(.dark) .helheim-error-403__button--secondary,
body:not(.dark) .helheim-error-404__button--secondary,
body:not(.dark) .helheim-maintenance__button--secondary,
body:not(.dark) .helheim-user-not-found__button--back,
body:not(.dark) .helheim-view-message__button--back,
body:not(.dark) .helheim-tfa-settings__button--cancel,
body:not(.dark) .helheim-oauth__modal-button--cancel,
body:not(.dark) .helheim-sessions__modal-button--cancel {
    color: #454d58 !important;
    border-color: var(--hl-light-border-strong) !important;
    background: #f2f4f7 !important;
}

body:not(.dark) .helheim-error-403__button--secondary:hover,
body:not(.dark) .helheim-error-404__button--secondary:hover,
body:not(.dark) .helheim-maintenance__button--secondary:hover,
body:not(.dark) .helheim-user-not-found__button--back:hover,
body:not(.dark) .helheim-view-message__button--back:hover,
body:not(.dark) .helheim-tfa-settings__button--cancel:hover {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.26) !important;
    background: var(--hl-light-accent-soft) !important;
}

/* ==================================================
   МОДАЛЬНЫЕ ОКНА HELHEIM
   ================================================== */

body:not(.dark) .helheim-view-message__modal.ui.modal,
body:not(.dark) .helheim-oauth__modal.ui.modal,
body:not(.dark) .helheim-sessions__modal.ui.modal {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
    box-shadow: 0 26px 70px rgba(35, 42, 52, 0.18) !important;
}

body:not(.dark) .helheim-view-message__modal > .header,
body:not(.dark) .helheim-oauth__modal > .header,
body:not(.dark) .helheim-sessions__modal > .header {
    color: var(--hl-light-heading) !important;
    border-color: var(--hl-light-border) !important;
    background: #f2f4f7 !important;
}

body:not(.dark) .helheim-view-message__modal > .content,
body:not(.dark) .helheim-oauth__modal > .content,
body:not(.dark) .helheim-sessions__modal > .content {
    color: #4c5460 !important;
    background: #ffffff !important;
}

body:not(.dark) .helheim-view-message__modal > .actions,
body:not(.dark) .helheim-oauth__modal > .actions,
body:not(.dark) .helheim-sessions__modal > .actions {
    border-color: var(--hl-light-border) !important;
    background: #f2f4f7 !important;
}

/* ==================================================
   ПРОФИЛЬ
   ================================================== */

body:not(.dark) #profile-header {
    color: var(--hl-light-text) !important;
    border-color: var(--hl-light-border) !important;
    background-color: #ffffff !important;
    box-shadow: var(--hl-light-shadow) !important;
}

body:not(.dark) .ui.attached.tabular.menu,
body:not(.dark) .ui.tabular.menu {
    border-color: var(--hl-light-border) !important;
    background: transparent !important;
}

body:not(.dark) .ui.attached.tabular.menu .item,
body:not(.dark) .ui.tabular.menu .item {
    color: #59616c !important;
}

body:not(.dark) .ui.attached.tabular.menu .item.active,
body:not(.dark) .ui.tabular.menu .item.active {
    color: var(--hl-light-accent) !important;
    border-color: var(--hl-light-border) !important;
    background: #ffffff !important;
}

/* ==================================================
   COOKIE BANNER
   ================================================== */

body:not(.dark) .cc-window.cc-floating {
    color: #434b56 !important;
    border: 1px solid var(--hl-light-border) !important;
    background: #ffffff !important;
    box-shadow: var(--hl-light-shadow) !important;
}

body:not(.dark) .cc-window.cc-floating .cc-highlight .cc-btn:first-child,
body:not(.dark) .cc-window.cc-floating .cc-link {
    color: #4c5460 !important;
}

body:not(.dark) .cc-window.cc-floating .cc-highlight .cc-btn.cc-allow {
    color: #ffffff !important;
    background: var(--hl-light-accent) !important;
}

/* ==================================================
   СКРОЛЛБАР
   ================================================== */

body:not(.dark) {
    scrollbar-color: #b6bdc7 #eef1f4;
}

body:not(.dark) ::-webkit-scrollbar-track {
    background: #eef1f4;
}

body:not(.dark) ::-webkit-scrollbar-thumb {
    border: 3px solid #eef1f4;
    border-radius: 999px;
    background: #b6bdc7;
}

body:not(.dark) ::-webkit-scrollbar-thumb:hover {
    background: #979faa;
}

/* END HELHEIM — ПОЛНАЯ СВЕТЛАЯ ТЕМА V1 */

/* ==================================================
   HELHEIM — СВЕТЛАЯ ТЕМА V2: КОНТРАСТ ГЛАВНОЙ
   Исправляет плохо читаемые элементы на главной странице.
   Блок расположен в самом конце custom.css.
   ================================================== */

/* Информация о сервере в первом светлом блоке */
body:not(.dark) .helheim-intro .helheim-server-info__item {
    border-top: 1px solid #e2e6ec !important;
    border-right: 1px solid #e2e6ec !important;
    border-bottom: 1px solid #e2e6ec !important;
    border-left: 3px solid var(--hl-light-accent) !important;
    border-radius: 0 5px 5px 0;
    background: #f6f7f9 !important;
}

body:not(.dark) .helheim-intro .helheim-server-info small {
    color: #727a86 !important;
}

body:not(.dark) .helheim-intro .helheim-server-info strong {
    color: #22272f !important;
    text-shadow: none !important;
}

/* Второстепенные кнопки на светлом фоне */
body:not(.dark) .helheim-button--secondary {
    color: #444c57 !important;
    border-color: #cbd1da !important;
    background: #f3f5f7 !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-button--secondary:hover {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.34) !important;
    background: rgba(158, 16, 33, 0.07) !important;
}

body:not(.dark) .helheim-button--ghost {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.4) !important;
    background: rgba(158, 16, 33, 0.045) !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-button--ghost:hover {
    color: #ffffff !important;
    border-color: var(--hl-light-accent) !important;
    background: var(--hl-light-accent) !important;
}

/* Тёмная CTA-полоса остаётся контрастной и в светлом режиме */
body:not(.dark) .helheim-cta {
    color: #ffffff !important;
    border-color: rgba(158, 16, 33, 0.5) !important;
    background:
        linear-gradient(
            110deg,
            rgba(133, 25, 38, 0.76),
            rgba(20, 20, 25, 0.99) 62%
        ) !important;
    box-shadow: 0 12px 30px rgba(35, 42, 52, 0.13) !important;
}

body:not(.dark) .helheim-cta h2 {
    color: #ffffff !important;
    text-shadow: none !important;
}

body:not(.dark) .helheim-cta p {
    color: #c7cad1 !important;
}

body:not(.dark) .helheim-cta .helheim-kicker {
    color: #ff5264 !important;
}

body:not(.dark) .helheim-cta .helheim-ip-card {
    color: #252a31 !important;
    border-color: #d8dde5 !important;
    background: #ffffff !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.14) !important;
}

body:not(.dark) .helheim-cta .helheim-ip-card small {
    color: #727a86 !important;
}

body:not(.dark) .helheim-cta .helheim-ip-card strong {
    color: #20252c !important;
}

/* Тёмный блок сообщества: исправляем чёрный текст на тёмном фоне */
body:not(.dark) .helheim-community {
    color: #ffffff !important;
    border-color: rgba(158, 16, 33, 0.42) !important;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(180, 29, 47, 0.22),
            transparent 38%
        ),
        #151519 !important;
    box-shadow: 0 14px 35px rgba(35, 42, 52, 0.14) !important;
}

body:not(.dark) .helheim-community .helheim-community__heading h2,
body:not(.dark) .helheim-community .helheim-section-heading h2 {
    color: #ffffff !important;
    text-shadow: none !important;
}

body:not(.dark) .helheim-community .helheim-community__heading p,
body:not(.dark) .helheim-community .helheim-section-heading p {
    color: #bfc3cb !important;
}

body:not(.dark) .helheim-community .helheim-kicker {
    color: #ff4256 !important;
}

/* Карточки внутри тёмного блока остаются светлыми и читаемыми */
body:not(.dark) .helheim-community .helheim-community-card {
    color: #242a32 !important;
    border-color: #d9dee5 !important;
    background: #ffffff !important;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.12) !important;
}

body:not(.dark) .helheim-community a.helheim-community-card:hover {
    color: #242a32 !important;
    border-color: rgba(158, 16, 33, 0.4) !important;
    background: #fffafb !important;
}

body:not(.dark) .helheim-community .helheim-community-card strong {
    color: #242a32 !important;
}

body:not(.dark) .helheim-community .helheim-community-card small {
    color: #707783 !important;
}

body:not(.dark) .helheim-community .helheim-community-card__status {
    color: #737b86 !important;
    background: #eef1f4 !important;
}

body:not(.dark) .helheim-community .helheim-community-card__status.is-online {
    color: var(--hl-light-accent) !important;
}

body:not(.dark) .helheim-community .helheim-community-card.is-disabled {
    opacity: 0.64 !important;
    filter: grayscale(0.15);
}

/* Финальный светлый блок: второстепенные кнопки должны быть видны */
body:not(.dark) .helheim-final .helheim-button--secondary {
    color: #4a525d !important;
    border-color: #cbd1da !important;
    background: #f3f5f7 !important;
}

body:not(.dark) .helheim-final .helheim-button--ghost {
    color: var(--hl-light-accent) !important;
    border-color: rgba(158, 16, 33, 0.36) !important;
    background: rgba(158, 16, 33, 0.045) !important;
}

/* END HELHEIM — СВЕТЛАЯ ТЕМА V2: КОНТРАСТ ГЛАВНОЙ */

/* ==================================================
   HELHEIM — СВЕТЛАЯ ТЕМА V3: ТЁПЛЫЙ КАМЕНЬ
   Спокойная премиальная палитра без холодного голубого
   и без розовых заливок.
   ================================================== */

body:not(.dark) {
    --hl-light-bg: #e9e4de;
    --hl-light-bg-soft: #f1ede8;
    --hl-light-surface: #faf7f3;
    --hl-light-surface-alt: #f0ebe5;
    --hl-light-border: #d4ccc4;
    --hl-light-border-strong: #c5bbb2;
    --hl-light-text: #29252a;
    --hl-light-heading: #1e1b1f;
    --hl-light-muted: #70686d;
    --hl-light-faint: #90878b;
    --hl-light-accent: #7f1425;
    --hl-light-accent-hover: #a31931;
    --hl-light-accent-soft: rgba(127, 20, 37, 0.08);
    --hl-light-success: #2f7558;
    --hl-light-warning: #95601d;
    --hl-light-danger: #a51d35;
    --hl-light-shadow: 0 16px 38px rgba(36, 28, 32, 0.10);
    --hl-light-shadow-small: 0 7px 20px rgba(36, 28, 32, 0.075);

    color: var(--hl-light-text) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(127, 20, 37, 0.035), transparent 30%),
        var(--hl-light-bg) !important;
}

body:not(.dark) > .pusher,
body:not(.dark).pushable > .pusher,
body:not(.dark) #wrapper {
    background: transparent !important;
}

/* Основные поверхности */
body:not(.dark) .ui.segment,
body:not(.dark) .ui.card,
body:not(.dark) .ui.cards > .card,
body:not(.dark) .ui.popup,
body:not(.dark) .ui.modal,
body:not(.dark) .ui.dropdown .menu,
body:not(.dark) .ui.selection.dropdown,
body:not(.dark) .ui.table,
body:not(.dark) .helheim-account-card,
body:not(.dark) .helheim-account-nav,
body:not(.dark) .helheim-account-detail,
body:not(.dark) .helheim-account-chart,
body:not(.dark) .helheim-account-alert,
body:not(.dark) .helheim-account-message,
body:not(.dark) .helheim-settings-card,
body:not(.dark) .helheim-community-card,
body:not(.dark) .helheim-ip-card,
body:not(.dark) .helheim-connection-card,
body:not(.dark) .helheim-session-card,
body:not(.dark) .helheim-placeholder-card,
body:not(.dark) .helheim-oauth-provider,
body:not(.dark) .helheim-notification-setting,
body:not(.dark) .helheim-leaderboards-tabs,
body:not(.dark) .helheim-leaderboard-panel,
body:not(.dark) .helheim-forum-category,
body:not(.dark) .helheim-forum-node,
body:not(.dark) .helheim-forum-view-section,
body:not(.dark) .helheim-forum-view-row,
body:not(.dark) .helheim-members-panel,
body:not(.dark) .helheim-members-board,
body:not(.dark) .helheim-members-entry,
body:not(.dark) .helheim-status-section,
body:not(.dark) .helheim-status-server,
body:not(.dark) .helheim-status-summary,
body:not(.dark) .helheim-topic-post,
body:not(.dark) .helheim-topic-reply,
body:not(.dark) .helheim-auth__panel,
body:not(.dark) .helheim-user-popover,
body:not(.dark) .helheim-reactions-modal,
body:not(.dark) .helheim-cookie-policy__card,
body:not(.dark) .helheim-terms__card,
body:not(.dark) .helheim-privacy__summary-card {
    border-color: var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
    box-shadow: var(--hl-light-shadow-small) !important;
}

/* Заголовочные светлые блоки — без розовой дымки */
body:not(.dark) .helheim-account-page__heading,
body:not(.dark) .helheim-leaderboards-page__heading,
body:not(.dark) .helheim-forum-hero,
body:not(.dark) .helheim-forum-view-hero,
body:not(.dark) .helheim-members-hero,
body:not(.dark) .helheim-status-hero,
body:not(.dark) .helheim-topic-hero,
body:not(.dark) .helheim-intro,
body:not(.dark) .helheim-final,
body:not(.dark) .helheim-rules__hero,
body:not(.dark) .helheim-privacy__hero,
body:not(.dark) .helheim-cookie-policy__hero,
body:not(.dark) .helheim-terms__hero {
    border: 1px solid var(--hl-light-border) !important;
    background:
        linear-gradient(135deg, #faf7f3 0%, #f3eee8 100%) !important;
    box-shadow: var(--hl-light-shadow) !important;
}

body:not(.dark) .helheim-intro::before,
body:not(.dark) .helheim-final::before {
    opacity: 0.34 !important;
    filter: saturate(0.6);
}

/* Навигация */
body:not(.dark) .helheim-navbar.ui.secondary.menu {
    border-bottom: 1px solid #d8d0c9 !important;
    background: rgba(249, 246, 242, 0.97) !important;
    box-shadow: 0 8px 24px rgba(36, 28, 32, 0.075) !important;
}

body:not(.dark) .helheim-navbar .helheim-nav-item,
body:not(.dark) .helheim-navbar__toc,
body:not(.dark) .helheim-user-button {
    color: #4c454a !important;
}

body:not(.dark) .helheim-navbar .helheim-nav-item:hover,
body:not(.dark) .helheim-navbar .helheim-nav-item.active,
body:not(.dark) .helheim-navbar__toc:hover {
    color: var(--hl-light-accent) !important;
    background: rgba(127, 20, 37, 0.07) !important;
}

body:not(.dark) .helheim-nav-ip,
body:not(.dark) .helheim-account-button,
body:not(.dark) .helheim-user-button {
    color: #4a4348 !important;
    border-color: #d2c9c2 !important;
    background: #f3eee8 !important;
}

/* Футер */
body:not(.dark) .helheim-footer.ui.footer.segment {
    border-top: 1px solid #cec5bd !important;
    background:
        linear-gradient(180deg, #e2dcd5 0%, #d8d0c8 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.68) !important;
}

/* Карточки возможностей */
body:not(.dark) .helheim-feature,
body:not(.dark) .helheim-step {
    border: 1px solid var(--hl-light-border) !important;
    background: var(--hl-light-surface) !important;
    box-shadow: 0 7px 20px rgba(36, 28, 32, 0.07) !important;
}

body:not(.dark) .helheim-feature:hover,
body:not(.dark) .helheim-step:hover {
    border-color: rgba(127, 20, 37, 0.25) !important;
    box-shadow: 0 12px 28px rgba(36, 28, 32, 0.11) !important;
}

/* Первый блок с IP */
body:not(.dark) .helheim-intro .helheim-server-info__item {
    border-color: #d5ccc4 !important;
    border-left-color: var(--hl-light-accent) !important;
    background: #f3eee8 !important;
}

body:not(.dark) .helheim-intro .helheim-server-info small {
    color: #81787d !important;
}

body:not(.dark) .helheim-intro .helheim-server-info strong {
    color: #262126 !important;
}

/* Кнопки */
body:not(.dark) .helheim-button--primary,
body:not(.dark) .ui.primary.button,
body:not(.dark) .ui.red.button {
    color: #ffffff !important;
    border-color: #741020 !important;
    background:
        linear-gradient(180deg, #981b31 0%, #741020 100%) !important;
    box-shadow: 0 7px 18px rgba(127, 20, 37, 0.22) !important;
}

body:not(.dark) .helheim-button--primary:hover,
body:not(.dark) .ui.primary.button:hover,
body:not(.dark) .ui.red.button:hover {
    background:
        linear-gradient(180deg, #ae2139 0%, #861428 100%) !important;
}

body:not(.dark) .helheim-button--secondary {
    color: #4b4449 !important;
    border-color: #c8beb6 !important;
    background: #f1ece6 !important;
}

body:not(.dark) .helheim-button--ghost {
    color: var(--hl-light-accent) !important;
    border-color: rgba(127, 20, 37, 0.34) !important;
    background: transparent !important;
}

/* Тёмные акцентные блоки */
body:not(.dark) .helheim-cta,
body:not(.dark) .helheim-community {
    color: #f6f1ed !important;
    border-color: rgba(127, 20, 37, 0.58) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(145, 24, 44, 0.26), transparent 38%),
        linear-gradient(120deg, #302329 0%, #1b171b 62%, #141216 100%) !important;
    box-shadow: 0 16px 36px rgba(36, 28, 32, 0.18) !important;
}

body:not(.dark) .helheim-cta h2,
body:not(.dark) .helheim-community h2 {
    color: #fffaf6 !important;
}

body:not(.dark) .helheim-cta p,
body:not(.dark) .helheim-community p {
    color: #c9c0c4 !important;
}

body:not(.dark) .helheim-cta .helheim-kicker,
body:not(.dark) .helheim-community .helheim-kicker {
    color: #e84a61 !important;
}

body:not(.dark) .helheim-cta .helheim-ip-card,
body:not(.dark) .helheim-community .helheim-community-card {
    color: #2b262a !important;
    border-color: #d9d0c8 !important;
    background: #f8f4ef !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.13) !important;
}

body:not(.dark) .helheim-community .helheim-community-card strong,
body:not(.dark) .helheim-cta .helheim-ip-card strong {
    color: #292428 !important;
}

body:not(.dark) .helheim-community .helheim-community-card small,
body:not(.dark) .helheim-cta .helheim-ip-card small {
    color: #776f74 !important;
}

/* Формы */
body:not(.dark) .ui.form input:not([type="submit"]):not([type="button"]),
body:not(.dark) .ui.form textarea,
body:not(.dark) .ui.form select,
body:not(.dark) .ui.input > input,
body:not(.dark) .ui.selection.dropdown,
body:not(.dark) .helheim-auth__input-wrap,
body:not(.dark) .helheim-auth__textarea-wrap,
body:not(.dark) .helheim-auth__select-wrap {
    color: #272327 !important;
    border-color: #c9c0b8 !important;
    background: #fffdf9 !important;
}

body:not(.dark) .ui.form input:focus,
body:not(.dark) .ui.form textarea:focus,
body:not(.dark) .ui.selection.dropdown.active,
body:not(.dark) .ui.selection.dropdown:focus {
    border-color: rgba(127, 20, 37, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(127, 20, 37, 0.09) !important;
}

/* Таблицы и списки */
body:not(.dark) .ui.table thead th {
    color: #554d52 !important;
    border-color: #d4ccc4 !important;
    background: #ede7e1 !important;
}

body:not(.dark) .ui.striped.table > tr:nth-child(2n),
body:not(.dark) .ui.striped.table tbody tr:nth-child(2n),
body:not(.dark) .helheim-settings-action-card,
body:not(.dark) .helheim-account-alerts__item,
body:not(.dark) .helheim-account-messages__item,
body:not(.dark) .helheim-view-message__item,
body:not(.dark) .helheim-leaderboard-entry__link {
    background: #f5f1ec !important;
}

/* Мобильная панель */
body:not(.dark) .helheim-sidebar.ui.vertical.inverted.sidebar.menu {
    border-right-color: #d0c7bf !important;
    background: #f6f1eb !important;
}

body:not(.dark) .helheim-sidebar__brand,
body:not(.dark) .helheim-sidebar__account-title,
body:not(.dark) .helheim-sidebar__server,
body:not(.dark) .helheim-mobile-account-v3__profile,
body:not(.dark) .helheim-mobile-account-v3__action,
body:not(.dark) .helheim-mobile-account-v3__service,
body:not(.dark) .helheim-mobile-account-v3__direct {
    border-color: #d5ccc4 !important;
    background: #fcf9f5 !important;
}

/* Cookie */
body:not(.dark) .cc-window.cc-floating {
    color: #494147 !important;
    border-color: #cfc5bd !important;
    background: #f7f2ec !important;
}

/* END HELHEIM — СВЕТЛАЯ ТЕМА V3: ТЁПЛЫЙ КАМЕНЬ */

/* ==================================================
   HELHEIM — СВЕТЛАЯ ТЕМА V4: ТЕКСТ CTA
   Исправляет заголовок «Здесь выживают только сильнейшие».
   Повышенная специфичность нужна, чтобы перекрыть общий
   светлый стиль заголовков с !important.
   ================================================== */

body:not(.dark) [class*="helheim-"].helheim-cta h1:not([style]),
body:not(.dark) [class*="helheim-"].helheim-cta h2:not([style]),
body:not(.dark) [class*="helheim-"].helheim-cta h3:not([style]),
body:not(.dark) .helheim-cta > div:first-child h1,
body:not(.dark) .helheim-cta > div:first-child h2,
body:not(.dark) .helheim-cta > div:first-child h3 {
    color: #fffaf6 !important;
    -webkit-text-fill-color: #fffaf6 !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

body:not(.dark) [class*="helheim-"].helheim-cta p:not([style]),
body:not(.dark) .helheim-cta > div:first-child p {
    color: #d0c7cb !important;
    -webkit-text-fill-color: #d0c7cb !important;
    opacity: 1 !important;
}

body:not(.dark) [class*="helheim-"].helheim-cta .helheim-kicker {
    color: #ef5268 !important;
    -webkit-text-fill-color: #ef5268 !important;
    opacity: 1 !important;
}

/* END HELHEIM — СВЕТЛАЯ ТЕМА V4: ТЕКСТ CTA */

/* ==================================================
   HELHEIM — СВЕТЛАЯ ТЕМА V5: ФОРУМ, СТАТУС, ПОЛЬЗОВАТЕЛИ
   Исправляет оставшиеся белые надписи, блеклые кнопки,
   серые AJAX-блоки и тёмные стили внутренних страниц.
   ================================================== */

/* ==================================================
   ФОРУМ
   ================================================== */

body:not(.dark) .helheim-forum-page .helheim-forum-breadcrumb {
    padding: 0 !important;
    border: 0 !important;
    color: #746b70 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-breadcrumb a {
    color: #6c6368 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-breadcrumb a:hover,
body:not(.dark) .helheim-forum-page .helheim-forum-breadcrumb strong {
    color: #2b262a !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-search {
    border: 1px solid #d1c8c0 !important;
    background: #f7f3ee !important;
    box-shadow: 0 10px 26px rgba(36, 28, 32, 0.10) !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-search > label {
    color: #746b70 !important;
    -webkit-text-fill-color: #746b70 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-search__field input {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
    border-color: #cfc5bd !important;
    background: #fffdf9 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-search__field input::placeholder {
    color: #91878c !important;
    -webkit-text-fill-color: #91878c !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-search__field input:focus {
    border-color: rgba(127, 20, 37, 0.52) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(127, 20, 37, 0.08) !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-heading h2 {
    color: #211d21 !important;
    -webkit-text-fill-color: #211d21 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-heading > p {
    color: #71696e !important;
    -webkit-text-fill-color: #71696e !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-category {
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 10px 28px rgba(36, 28, 32, 0.08) !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-category__header {
    border-bottom-color: #d8cfc7 !important;
    background:
        linear-gradient(
            90deg,
            rgba(127, 20, 37, 0.07),
            rgba(247, 243, 238, 0.96) 62%
        ) !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-category__header span {
    color: #a11d34 !important;
    -webkit-text-fill-color: #a11d34 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-category__header h3,
body:not(.dark) .helheim-forum-page .helheim-forum-category__header h3 a {
    color: #282328 !important;
    -webkit-text-fill-color: #282328 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-category__open {
    color: #7f1425 !important;
    -webkit-text-fill-color: #7f1425 !important;
    border-color: rgba(127, 20, 37, 0.34) !important;
    background: rgba(127, 20, 37, 0.055) !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-category__open:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #7f1425 !important;
    background: #7f1425 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node + .helheim-forum-node {
    border-top-color: #ddd5ce !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__icon {
    color: #8f172b !important;
    border-color: rgba(127, 20, 37, 0.23) !important;
    background: rgba(127, 20, 37, 0.055) !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__title,
body:not(.dark) .helheim-forum-page .helheim-forum-node__latest-title {
    color: #2a2529 !important;
    -webkit-text-fill-color: #2a2529 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__title:hover,
body:not(.dark) .helheim-forum-page .helheim-forum-node__latest-title:hover {
    color: #8f172b !important;
    -webkit-text-fill-color: #8f172b !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__description,
body:not(.dark) .helheim-forum-page .helheim-forum-node__latest,
body:not(.dark) .helheim-forum-page .helheim-forum-node__latest > div > span,
body:not(.dark) .helheim-forum-page .helheim-forum-node__empty {
    color: #71696e !important;
    -webkit-text-fill-color: #71696e !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__latest > div > span a {
    color: #5b5358 !important;
    -webkit-text-fill-color: #5b5358 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__subforums {
    color: #776f74 !important;
    background: transparent !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__subforums a {
    color: #62595f !important;
    -webkit-text-fill-color: #62595f !important;
    border-color: #d8cfc7 !important;
    background: #f2ede7 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__stats > div {
    border-color: #d9d0c8 !important;
    background: #f2ede7 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__stats small,
body:not(.dark) .helheim-forum-page .helheim-forum-node__latest small,
body:not(.dark) .helheim-forum-page .helheim-forum-node__empty small {
    color: #80777c !important;
    -webkit-text-fill-color: #80777c !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__stats strong {
    color: #2a2529 !important;
    -webkit-text-fill-color: #2a2529 !important;
}

body:not(.dark) .helheim-forum-page .helheim-forum-node__latest {
    border-left-color: #ddd5ce !important;
}

/* ==================================================
   СТАТУС СЕРВЕРА
   ================================================== */

body:not(.dark) .helheim-status-page .helheim-status-summary__item {
    border-top: 1px solid #d5ccc4 !important;
    border-right: 1px solid #d5ccc4 !important;
    border-bottom: 1px solid #d5ccc4 !important;
    border-left: 3px solid #7f1425 !important;
    background: #f3eee8 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-summary__item small {
    color: #81787d !important;
    -webkit-text-fill-color: #81787d !important;
}

body:not(.dark) .helheim-status-page .helheim-status-summary__item strong {
    color: #282328 !important;
    -webkit-text-fill-color: #282328 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-button--secondary {
    color: #51494e !important;
    -webkit-text-fill-color: #51494e !important;
    border-color: #c8beb6 !important;
    background: #f1ece6 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-button--ghost {
    color: #7f1425 !important;
    -webkit-text-fill-color: #7f1425 !important;
    border-color: rgba(127, 20, 37, 0.37) !important;
    background: rgba(127, 20, 37, 0.055) !important;
}

body:not(.dark) .helheim-status-page .helheim-status-button--secondary:hover,
body:not(.dark) .helheim-status-page .helheim-status-button--ghost:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #7f1425 !important;
    background: #7f1425 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-section__heading h2 {
    color: #211d21 !important;
    -webkit-text-fill-color: #211d21 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-section__heading > p {
    color: #71696e !important;
    -webkit-text-fill-color: #71696e !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server.ui.card {
    color: #292428 !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 12px 30px rgba(36, 28, 32, 0.09) !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server h3 {
    color: #282328 !important;
    -webkit-text-fill-color: #282328 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server__eyebrow {
    color: #a11d34 !important;
    -webkit-text-fill-color: #a11d34 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server__ip {
    color: #2b262a !important;
    border-color: #cfc5bd !important;
    background: #f4efe9 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server__ip:hover {
    border-color: rgba(127, 20, 37, 0.48) !important;
    background: #fffaf7 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server__ip small {
    color: #80777c !important;
    -webkit-text-fill-color: #80777c !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server__ip strong {
    color: #2a2529 !important;
    -webkit-text-fill-color: #2a2529 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server__state {
    color: #302a2f !important;
    border-color: #d4cbc3 !important;
    background: #eee8e2 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server #server-status,
body:not(.dark) .helheim-status-page .helheim-status-server #server-status * {
    color: #40393e !important;
    -webkit-text-fill-color: #40393e !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server__indicator {
    background: rgba(127, 20, 37, 0.10) !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server__players {
    color: #443d42 !important;
    border-top-color: #d8cfc7 !important;
    background: #f3eee8 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server__players-heading span {
    color: #302a2f !important;
    -webkit-text-fill-color: #302a2f !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server__players-heading small,
body:not(.dark) .helheim-status-page .helheim-status-server #server-players {
    color: #756d72 !important;
    -webkit-text-fill-color: #756d72 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-help {
    color: #fffaf6 !important;
    border-color: rgba(127, 20, 37, 0.55) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(145, 24, 44, 0.25), transparent 40%),
        linear-gradient(120deg, #302329 0%, #181519 100%) !important;
}

body:not(.dark) .helheim-status-page .helheim-status-help h2,
body:not(.dark) .helheim-status-page .helheim-status-help h3 {
    color: #fffaf6 !important;
    -webkit-text-fill-color: #fffaf6 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-help p {
    color: #c9c0c4 !important;
    -webkit-text-fill-color: #c9c0c4 !important;
}

/* ==================================================
   ПОЛЬЗОВАТЕЛИ
   ================================================== */

body:not(.dark) .helheim-members-page .helheim-members-nav,
body:not(.dark) .helheim-members-page .helheim-members-panel,
body:not(.dark) .helheim-members-page .helheim-members-board {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 10px 27px rgba(36, 28, 32, 0.08) !important;
}

body:not(.dark) .helheim-members-page .helheim-members-panel__heading,
body:not(.dark) .helheim-members-page .helheim-members-board__heading {
    border-bottom-color: #d8cfc7 !important;
    background:
        linear-gradient(
            90deg,
            rgba(127, 20, 37, 0.065),
            #f2ede7 66%
        ) !important;
}

body:not(.dark) .helheim-members-page .helheim-members-panel__heading span {
    color: #554d52 !important;
    -webkit-text-fill-color: #554d52 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-board__heading h2 {
    color: #2a2529 !important;
    -webkit-text-fill-color: #2a2529 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-board__heading .helheim-members-kicker {
    color: #a11d34 !important;
    -webkit-text-fill-color: #a11d34 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-nav__item {
    color: #544c51 !important;
    -webkit-text-fill-color: #544c51 !important;
    border-bottom-color: #dfd7d0 !important;
    background: transparent !important;
}

body:not(.dark) .helheim-members-page .helheim-members-nav__item .icon {
    color: #9b1b31 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-nav__item:hover,
body:not(.dark) .helheim-members-page .helheim-members-nav__item.is-active,
body:not(.dark) .helheim-members-page .helheim-members-nav__item.active {
    color: #7f1425 !important;
    -webkit-text-fill-color: #7f1425 !important;
    background: rgba(127, 20, 37, 0.07) !important;
}

body:not(.dark) .helheim-members-page .helheim-members-search .ui.input > input,
body:not(.dark) .helheim-members-page .ui.selection.dropdown {
    color: #2b262a !important;
    -webkit-text-fill-color: #2b262a !important;
    border-color: #cfc5bd !important;
    background: #fffdf9 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-search .ui.input > input::placeholder {
    color: #958b90 !important;
    -webkit-text-fill-color: #958b90 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-search .ui.input > .icon {
    color: #9b1b31 !important;
}

body:not(.dark) .helheim-members-page .ui.selection.dropdown .text,
body:not(.dark) .helheim-members-page .ui.selection.dropdown .dropdown.icon {
    color: #5b5358 !important;
    -webkit-text-fill-color: #5b5358 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-search.ui.search > .results,
body:not(.dark) .helheim-members-page .ui.selection.dropdown .menu {
    border-color: #cfc5bd !important;
    background: #fffdf9 !important;
    box-shadow: 0 12px 30px rgba(36, 28, 32, 0.12) !important;
}

body:not(.dark) .helheim-members-page .helheim-members-search.ui.search > .results .result,
body:not(.dark) .helheim-members-page .ui.selection.dropdown .menu > .item {
    color: #51494e !important;
    border-color: #e0d8d1 !important;
    background: #fffdf9 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-search.ui.search > .results .result:hover,
body:not(.dark) .helheim-members-page .ui.selection.dropdown .menu > .item:hover {
    color: #7f1425 !important;
    background: rgba(127, 20, 37, 0.07) !important;
}

body:not(.dark) .helheim-members-page .helheim-members-search.ui.search > .results .result .title {
    color: #2b262a !important;
    -webkit-text-fill-color: #2b262a !important;
}

body:not(.dark) .helheim-members-page .helheim-members-search.ui.search > .results .result .description {
    color: #756d72 !important;
    -webkit-text-fill-color: #756d72 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-entry__name {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-entry__meta {
    color: #7a7176 !important;
    -webkit-text-fill-color: #7a7176 !important;
}

body:not(.dark) .helheim-members-page .helheim-members-entry__count {
    color: #7f1425 !important;
    -webkit-text-fill-color: #7f1425 !important;
    border-color: rgba(127, 20, 37, 0.24) !important;
    background: rgba(127, 20, 37, 0.055) !important;
}

body:not(.dark) .helheim-members-page .helheim-members-view-all {
    color: #7f1425 !important;
    -webkit-text-fill-color: #7f1425 !important;
    border-color: rgba(127, 20, 37, 0.30) !important;
    background: rgba(127, 20, 37, 0.045) !important;
}

body:not(.dark) .helheim-members-page .helheim-members-view-all:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #7f1425 !important;
    background: #7f1425 !important;
}

body:not(.dark) .helheim-members-page .ui.pagination.menu {
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-members-page .ui.pagination.menu .item {
    color: #5b5358 !important;
    border-color: #ddd5ce !important;
    background: transparent !important;
}

body:not(.dark) .helheim-members-page .ui.pagination.menu .active.item,
body:not(.dark) .helheim-members-page .ui.pagination.menu .item:hover {
    color: #ffffff !important;
    background: #7f1425 !important;
}

/* END HELHEIM — СВЕТЛАЯ ТЕМА V5: ФОРУМ, СТАТУС, ПОЛЬЗОВАТЕЛИ */

/* ==================================================
   HELHEIM — СВЕТЛАЯ ТЕМА V6: ФОРУМ, СТАТУС И ФОН
   Исправляет CTA форума, динамическую карточку состояния
   сервера, цвет пустого пространства и мелкий текст футера.
   ================================================== */

/* ==================================================
   ЕДИНЫЙ ФОН БЕЗ ХОЛОДНЫХ ГОЛУБЫХ ПОЛОС
   ================================================== */

html:has(body:not(.dark)),
body:not(.dark),
body:not(.dark).pushable,
body:not(.dark) > .pusher,
body:not(.dark).pushable > .pusher,
body:not(.dark) #wrapper {
    background-color: var(--hl-light-bg) !important;
    background-image:
        radial-gradient(
            circle at 18% 0%,
            rgba(127, 20, 37, 0.035),
            transparent 30%
        ) !important;
    background-attachment: fixed !important;
}

body:not(.dark) #wrapper {
    margin-bottom: 0 !important;
}

body:not(.dark) .helheim-forum-page,
body:not(.dark) .helheim-status-page,
body:not(.dark) .helheim-members-page {
    background: transparent !important;
}

/* ==================================================
   НИЖНИЙ CTA ФОРУМА
   ================================================== */

body:not(.dark) [class*="helheim-"].helheim-forum-cta {
    color: #fffaf6 !important;
    border-color: rgba(127, 20, 37, 0.58) !important;
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(145, 24, 44, 0.27),
            transparent 40%
        ),
        linear-gradient(
            118deg,
            #35252c 0%,
            #1d181d 62%,
            #151216 100%
        ) !important;
    box-shadow: 0 15px 35px rgba(36, 28, 32, 0.17) !important;
}

body:not(.dark) [class*="helheim-"].helheim-forum-cta h1:not([style]),
body:not(.dark) [class*="helheim-"].helheim-forum-cta h2:not([style]),
body:not(.dark) [class*="helheim-"].helheim-forum-cta h3:not([style]),
body:not(.dark) .helheim-forum-cta > div:first-child h2 {
    color: #fffaf6 !important;
    -webkit-text-fill-color: #fffaf6 !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

body:not(.dark) [class*="helheim-"].helheim-forum-cta p:not([style]),
body:not(.dark) .helheim-forum-cta > div:first-child p {
    color: #d0c7cc !important;
    -webkit-text-fill-color: #d0c7cc !important;
    opacity: 1 !important;
}

body:not(.dark) [class*="helheim-"].helheim-forum-cta .helheim-forum-kicker {
    color: #ef5268 !important;
    -webkit-text-fill-color: #ef5268 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-forum-cta .helheim-forum-button--secondary {
    color: #f7f1ee !important;
    -webkit-text-fill-color: #f7f1ee !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.055) !important;
}

body:not(.dark) .helheim-forum-cta .helheim-forum-button--secondary:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: rgba(239, 82, 104, 0.65) !important;
    background: rgba(127, 20, 37, 0.35) !important;
}

/* ==================================================
   ДИНАМИЧЕСКОЕ СОСТОЯНИЕ СЕРВЕРА
   JavaScript заменяет исходный #server-status на этот блок.
   ================================================== */

body:not(.dark) .helheim-status-page .helheim-server-health {
    --health-accent: #777075;
    --health-soft: rgba(119, 112, 117, 0.10);
    --health-border: rgba(119, 112, 117, 0.28);

    color: #2c272b !important;
    border-color: var(--health-border) !important;
    background:
        radial-gradient(
            circle at 0% 0%,
            var(--health-soft),
            transparent 44%
        ),
        #f2ede7 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 8px 20px rgba(36, 28, 32, 0.065) !important;
}

body:not(.dark) .helheim-status-page .helheim-server-health.is-online {
    --health-accent: #238b58;
    --health-soft: rgba(35, 139, 88, 0.11);
    --health-border: rgba(35, 139, 88, 0.32);
}

body:not(.dark) .helheim-status-page .helheim-server-health.is-restarting {
    --health-accent: #a65b17;
    --health-soft: rgba(166, 91, 23, 0.11);
    --health-border: rgba(166, 91, 23, 0.32);
}

body:not(.dark) .helheim-status-page .helheim-server-health.is-maintenance {
    --health-accent: #98701a;
    --health-soft: rgba(152, 112, 26, 0.12);
    --health-border: rgba(152, 112, 26, 0.34);
}

body:not(.dark) .helheim-status-page .helheim-server-health.is-offline {
    --health-accent: #a51d35;
    --health-soft: rgba(165, 29, 53, 0.11);
    --health-border: rgba(165, 29, 53, 0.33);
}

body:not(.dark) .helheim-status-page .helheim-server-health__icon {
    border-color: var(--health-border) !important;
    background: var(--health-soft) !important;
}

body:not(.dark) .helheim-status-page .helheim-server-health__icon span {
    background: var(--health-accent) !important;
    box-shadow: 0 0 14px color-mix(in srgb, var(--health-accent) 58%, transparent) !important;
}

body:not(.dark) .helheim-status-page .helheim-server-health__label {
    color: #7d7479 !important;
    -webkit-text-fill-color: #7d7479 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-status-page .helheim-server-health__title {
    color: #282328 !important;
    -webkit-text-fill-color: #282328 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-status-page .helheim-server-health__description {
    color: #746b70 !important;
    -webkit-text-fill-color: #746b70 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-status-page .helheim-server-health__badge {
    color: var(--health-accent) !important;
    -webkit-text-fill-color: var(--health-accent) !important;
    border-color: var(--health-border) !important;
    background: var(--health-soft) !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-status-page .helheim-server-health__metrics {
    border-top-color: #d6cdc5 !important;
    background: #e9e3dc !important;
}

body:not(.dark) .helheim-status-page .helheim-server-health__metric:not(:last-child) {
    border-right-color: #d6cdc5 !important;
}

body:not(.dark) .helheim-status-page .helheim-server-health__metric small {
    color: #7c7378 !important;
    -webkit-text-fill-color: #7c7378 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-status-page .helheim-server-health__metric strong {
    color: #2a2529 !important;
    -webkit-text-fill-color: #2a2529 !important;
    opacity: 1 !important;
}

/* Запасной стиль до завершения AJAX-запроса */
body:not(.dark) .helheim-status-page .helheim-status-server__state {
    color: #2c272b !important;
    border-color: #d4cbc3 !important;
    background: #f2ede7 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-server #server-status,
body:not(.dark) .helheim-status-page .helheim-status-server #server-status * {
    color: #40393e !important;
    -webkit-text-fill-color: #40393e !important;
}

/* Нижняя помощь на странице статуса */
body:not(.dark) .helheim-status-page .helheim-status-help__ip small {
    color: #bdb3b8 !important;
    -webkit-text-fill-color: #bdb3b8 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-status-page .helheim-status-help__ip strong {
    color: #fffaf6 !important;
    -webkit-text-fill-color: #fffaf6 !important;
}

/* ==================================================
   ФУТЕР — МЕЛКИЙ ТЕКСТ В IP-КАРТОЧКЕ
   ================================================== */

body:not(.dark) .helheim-footer .helheim-footer-ip {
    color: #2b262a !important;
    border-color: #cfc5bd !important;
    background: rgba(250, 247, 243, 0.78) !important;
}

body:not(.dark) .helheim-footer .helheim-footer-ip small {
    color: #81787d !important;
    -webkit-text-fill-color: #81787d !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-footer .helheim-footer-ip strong {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
}

body:not(.dark) .helheim-footer .helheim-footer-community-item small {
    color: #756d72 !important;
    -webkit-text-fill-color: #756d72 !important;
    opacity: 1 !important;
}

/* END HELHEIM — СВЕТЛАЯ ТЕМА V6: ФОРУМ, СТАТУС И ФОН */

/* ==================================================
   HELHEIM — СВЕТЛАЯ ТЕМА V7: ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   Cookie, правила и условия, политика конфиденциальности.
   Исправляет белый текст на светлых карточках и слабый контраст.
   ================================================== */

/* Общая типографика и поверхности */
body:not(.dark) .helheim-cookie-policy,
body:not(.dark) .helheim-terms,
body:not(.dark) .helheim-privacy {
    color: #2b262a !important;
}

body:not(.dark) .helheim-cookie-policy__hero,
body:not(.dark) .helheim-terms__hero,
body:not(.dark) .helheim-privacy__hero {
    color: #292428 !important;
    border-color: #d4cbc3 !important;
    background: linear-gradient(135deg, #faf7f3 0%, #f2ece6 100%) !important;
    box-shadow: 0 15px 38px rgba(36, 28, 32, 0.10) !important;
}

body:not(.dark) .helheim-cookie-policy__hero h1,
body:not(.dark) .helheim-terms__hero h1,
body:not(.dark) .helheim-privacy__hero h1 {
    color: #211d21 !important;
    -webkit-text-fill-color: #211d21 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-cookie-policy__kicker,
body:not(.dark) .helheim-terms__kicker,
body:not(.dark) .helheim-privacy__kicker {
    color: #a11d34 !important;
    -webkit-text-fill-color: #a11d34 !important;
}

body:not(.dark) .helheim-cookie-policy__edition,
body:not(.dark) .helheim-terms__edition,
body:not(.dark) .helheim-privacy__edition {
    color: #756d72 !important;
    -webkit-text-fill-color: #756d72 !important;
}

body:not(.dark) .helheim-cookie-policy__lead,
body:not(.dark) .helheim-terms__lead,
body:not(.dark) .helheim-privacy__lead {
    color: #625a5f !important;
    -webkit-text-fill-color: #625a5f !important;
}

/* COOKIE */
body:not(.dark) .helheim-cookie-policy__intro,
body:not(.dark) .helheim-cookie-policy__section,
body:not(.dark) .helheim-cookie-policy__card {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 8px 22px rgba(36, 28, 32, 0.075) !important;
}

body:not(.dark) .helheim-cookie-policy__intro strong,
body:not(.dark) .helheim-cookie-policy__card h2,
body:not(.dark) .helheim-cookie-policy__section h2 {
    color: #252125 !important;
    -webkit-text-fill-color: #252125 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-cookie-policy__intro p,
body:not(.dark) .helheim-cookie-policy__card p,
body:not(.dark) .helheim-cookie-policy__section p {
    color: #686065 !important;
    -webkit-text-fill-color: #686065 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-cookie-policy__card li {
    color: #625a5f !important;
    -webkit-text-fill-color: #625a5f !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-cookie-policy__number {
    color: rgba(127, 20, 37, 0.26) !important;
    -webkit-text-fill-color: rgba(127, 20, 37, 0.26) !important;
}

body:not(.dark) .helheim-cookie-policy__status {
    color: #9b1b31 !important;
    -webkit-text-fill-color: #9b1b31 !important;
    border-color: rgba(127, 20, 37, 0.28) !important;
    background: rgba(127, 20, 37, 0.055) !important;
}

body:not(.dark) .helheim-cookie-policy__intro-icon,
body:not(.dark) .helheim-cookie-policy__section-icon {
    color: #a11d34 !important;
    border-color: rgba(127, 20, 37, 0.25) !important;
    background: rgba(127, 20, 37, 0.06) !important;
}

body:not(.dark) .helheim-cookie-policy__manage-button {
    display: inline-flex !important;
    min-height: 43px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 20px !important;
    border: 1px solid #741020 !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(180deg, #981b31 0%, #741020 100%) !important;
    box-shadow: 0 7px 18px rgba(127, 20, 37, 0.22) !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

body:not(.dark) .helheim-cookie-policy__manage-button:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(180deg, #ae2139 0%, #861428 100%) !important;
    transform: translateY(-1px) !important;
}

body:not(.dark) .helheim-cookie-policy__result {
    color: #5f575c !important;
    -webkit-text-fill-color: #5f575c !important;
}

body:not(.dark) .helheim-cookie-policy__warning {
    color: #6d4a1f !important;
    border-color: #dfc59f !important;
    background: #fff6e8 !important;
}

body:not(.dark) .helheim-cookie-policy__warning strong {
    color: #70491b !important;
    -webkit-text-fill-color: #70491b !important;
}

body:not(.dark) .helheim-cookie-policy__warning p {
    color: #765c3b !important;
    -webkit-text-fill-color: #765c3b !important;
}

/* TERMS */
body:not(.dark) .helheim-terms__notice,
body:not(.dark) .helheim-terms__card,
body:not(.dark) .helheim-terms__section {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 8px 22px rgba(36, 28, 32, 0.075) !important;
}

body:not(.dark) .helheim-terms__notice {
    border-left: 4px solid #8f172b !important;
    background: #fbf0f1 !important;
}

body:not(.dark) .helheim-terms__notice strong,
body:not(.dark) .helheim-terms__card h2,
body:not(.dark) .helheim-terms__section h2 {
    color: #252125 !important;
    -webkit-text-fill-color: #252125 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-terms__notice p,
body:not(.dark) .helheim-terms__card p,
body:not(.dark) .helheim-terms__section p {
    color: #686065 !important;
    -webkit-text-fill-color: #686065 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-terms__card li {
    color: #625a5f !important;
    -webkit-text-fill-color: #625a5f !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-terms__card-number {
    color: rgba(127, 20, 37, 0.24) !important;
    -webkit-text-fill-color: rgba(127, 20, 37, 0.24) !important;
}

body:not(.dark) .helheim-terms__section-icon {
    color: #a11d34 !important;
    border-color: rgba(127, 20, 37, 0.25) !important;
    background: rgba(127, 20, 37, 0.06) !important;
}

body:not(.dark) .helheim-terms__contact {
    color: #fffaf6 !important;
    border-color: rgba(127, 20, 37, 0.55) !important;
    background: linear-gradient(118deg, #35252c 0%, #1c171c 100%) !important;
}

body:not(.dark) .helheim-terms__contact strong {
    color: #fffaf6 !important;
    -webkit-text-fill-color: #fffaf6 !important;
}

body:not(.dark) .helheim-terms__contact p {
    color: #c9c0c4 !important;
    -webkit-text-fill-color: #c9c0c4 !important;
}

/* PRIVACY */
body:not(.dark) .helheim-privacy__summary-card,
body:not(.dark) .helheim-privacy__section,
body:not(.dark) .helheim-privacy__contact {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 8px 22px rgba(36, 28, 32, 0.075) !important;
}

body:not(.dark) .helheim-privacy__summary-card strong,
body:not(.dark) .helheim-privacy__section h2,
body:not(.dark) .helheim-privacy__section b,
body:not(.dark) .helheim-privacy__section strong {
    color: #252125 !important;
    -webkit-text-fill-color: #252125 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-privacy__summary-card p,
body:not(.dark) .helheim-privacy__section p {
    color: #686065 !important;
    -webkit-text-fill-color: #686065 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-privacy__section li {
    color: #625a5f !important;
    -webkit-text-fill-color: #625a5f !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-privacy__notice {
    color: #2b262a !important;
    border-color: rgba(127, 20, 37, 0.27) !important;
    border-left: 4px solid #8f172b !important;
    background: #fbf0f1 !important;
}

body:not(.dark) .helheim-privacy__notice strong {
    color: #252125 !important;
    -webkit-text-fill-color: #252125 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-privacy__notice p {
    color: #686065 !important;
    -webkit-text-fill-color: #686065 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-privacy__summary-icon,
body:not(.dark) .helheim-privacy__notice-icon {
    color: #a11d34 !important;
    border-color: rgba(127, 20, 37, 0.25) !important;
    background: rgba(127, 20, 37, 0.06) !important;
}

body:not(.dark) .helheim-privacy__section-number {
    color: rgba(127, 20, 37, 0.19) !important;
    -webkit-text-fill-color: rgba(127, 20, 37, 0.19) !important;
}

body:not(.dark) .helheim-privacy__warning {
    color: #6d4a1f !important;
    border-color: #dfc59f !important;
    background: #fff6e8 !important;
}

body:not(.dark) .helheim-privacy__warning p {
    color: #765c3b !important;
    -webkit-text-fill-color: #765c3b !important;
}

body:not(.dark) .helheim-privacy__contact {
    background: #f6ebe9 !important;
}

body:not(.dark) .helheim-privacy__contact small {
    color: #9b1b31 !important;
    -webkit-text-fill-color: #9b1b31 !important;
}

body:not(.dark) .helheim-privacy__contact strong {
    color: #2b262a !important;
    -webkit-text-fill-color: #2b262a !important;
}

/* Нижние информационные полосы */
body:not(.dark) .helheim-cookie-policy__footer,
body:not(.dark) .helheim-terms__footer,
body:not(.dark) .helheim-privacy__footer {
    border-color: #d4cbc3 !important;
    background: #d4cbc3 !important;
}

body:not(.dark) .helheim-cookie-policy__footer span,
body:not(.dark) .helheim-terms__footer span,
body:not(.dark) .helheim-privacy__footer span {
    background: #f3eee8 !important;
}

body:not(.dark) .helheim-cookie-policy__footer small,
body:not(.dark) .helheim-terms__footer small,
body:not(.dark) .helheim-privacy__footer small {
    color: #7d7479 !important;
    -webkit-text-fill-color: #7d7479 !important;
}

body:not(.dark) .helheim-cookie-policy__footer strong,
body:not(.dark) .helheim-terms__footer strong,
body:not(.dark) .helheim-privacy__footer strong {
    color: #2a2529 !important;
    -webkit-text-fill-color: #2a2529 !important;
}

@media (max-width: 640px) {
    body:not(.dark) .helheim-cookie-policy__manage-button {
        width: 100% !important;
    }
}

/* END HELHEIM — СВЕТЛАЯ ТЕМА V7: ЮРИДИЧЕСКИЕ СТРАНИЦЫ */

/* ==================================================
   HELHEIM — СВЕТЛАЯ ТЕМА V8: АККАУНТ И ПРОФИЛЬ
   Полная адаптация всех страниц личного кабинета и профиля.
   Блок расположен в самом конце custom.css.
   ================================================== */

/* ==================================================
   ЛИЧНЫЙ КАБИНЕТ — ОБЩАЯ ОСНОВА
   ================================================== */

body:not(.dark) .helheim-account-page {
    color: #2b262a !important;
    background: transparent !important;
}

body:not(.dark) .helheim-account-page__heading {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background:
        linear-gradient(135deg, #faf7f3 0%, #f2ece6 100%) !important;
    box-shadow: 0 15px 38px rgba(36, 28, 32, 0.10) !important;
}

body:not(.dark) .helheim-account-page__heading h1 {
    color: #211d21 !important;
    -webkit-text-fill-color: #211d21 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-account-page__heading p {
    color: #6b6368 !important;
    -webkit-text-fill-color: #6b6368 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-account-page__kicker {
    color: #a11d34 !important;
    -webkit-text-fill-color: #a11d34 !important;
}

body:not(.dark) .helheim-account-page__heading-icon,
body:not(.dark) .helheim-account-card__icon,
body:not(.dark) .helheim-account-detail__icon,
body:not(.dark) .helheim-account-alert-view__icon,
body:not(.dark) .helheim-view-message__summary-icon,
body:not(.dark) .helheim-settings-action-card__icon,
body:not(.dark) .helheim-notification-setting__icon,
body:not(.dark) .helheim-placeholder-card__icon,
body:not(.dark) .helheim-tfa-settings__verify-icon {
    color: #9b1b31 !important;
    border-color: rgba(127, 20, 37, 0.24) !important;
    background: rgba(127, 20, 37, 0.06) !important;
}

/* Навигация аккаунта */
body:not(.dark) .helheim-account-nav {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 10px 28px rgba(36, 28, 32, 0.085) !important;
}

body:not(.dark) .helheim-account-nav__head {
    color: #2b262a !important;
    border-bottom-color: #d8cfc7 !important;
    background:
        linear-gradient(90deg, rgba(127, 20, 37, 0.065), #f2ede7 72%) !important;
}

body:not(.dark) .helheim-account-nav__head small {
    color: #a11d34 !important;
    -webkit-text-fill-color: #a11d34 !important;
}

body:not(.dark) .helheim-account-nav__head strong {
    color: #282328 !important;
    -webkit-text-fill-color: #282328 !important;
}

body:not(.dark) .helheim-account-nav__icon {
    color: #9b1b31 !important;
    border-color: rgba(127, 20, 37, 0.23) !important;
    background: rgba(127, 20, 37, 0.055) !important;
}

body:not(.dark) .helheim-account-nav__menu.ui.vertical.menu {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-account-nav__menu.ui.menu .item {
    color: #5c5459 !important;
    border-top-color: #e0d8d1 !important;
    background: transparent !important;
}

body:not(.dark) .helheim-account-nav__menu.ui.menu .item::before {
    background: #e0d8d1 !important;
}

body:not(.dark) .helheim-account-nav__menu.ui.menu .item:hover {
    color: #7f1425 !important;
    background: rgba(127, 20, 37, 0.055) !important;
}

body:not(.dark) .helheim-account-nav__menu.ui.menu .active.item {
    color: #7f1425 !important;
    border-left-color: #9b1b31 !important;
    background:
        linear-gradient(90deg, rgba(127, 20, 37, 0.12), rgba(127, 20, 37, 0.035)) !important;
}

body:not(.dark) .helheim-account-nav__item-title,
body:not(.dark) .helheim-account-nav__arrow {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Основные карточки аккаунта */
body:not(.dark) .helheim-account-card,
body:not(.dark) .helheim-account-detail,
body:not(.dark) .helheim-account-chart,
body:not(.dark) .helheim-settings-card {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 11px 30px rgba(36, 28, 32, 0.085) !important;
}

body:not(.dark) .helheim-account-card__head,
body:not(.dark) .helheim-account-card__head--alerts,
body:not(.dark) .helheim-account-messages__head,
body:not(.dark) .helheim-connections__head,
body:not(.dark) .helheim-new-message__head,
body:not(.dark) .helheim-notification-settings__head,
body:not(.dark) .helheim-oauth__head,
body:not(.dark) .helheim-placeholders__head,
body:not(.dark) .helheim-sessions__head,
body:not(.dark) .helheim-settings-card__head,
body:not(.dark) .helheim-tfa-settings__head,
body:not(.dark) .helheim-account-alert-view__head,
body:not(.dark) .helheim-view-message__reply-head {
    color: #2b262a !important;
    border-bottom-color: #d8cfc7 !important;
    background:
        linear-gradient(90deg, rgba(127, 20, 37, 0.06), #f2ede7 68%) !important;
}

body:not(.dark) .helheim-account-card__head > div > span,
body:not(.dark) .helheim-account-messages__head > div > span,
body:not(.dark) .helheim-connections__head > div > span,
body:not(.dark) .helheim-new-message__head > div > span,
body:not(.dark) .helheim-notification-settings__head > div > span,
body:not(.dark) .helheim-oauth__head > div > span,
body:not(.dark) .helheim-placeholders__head > div > span,
body:not(.dark) .helheim-sessions__head > div > span,
body:not(.dark) .helheim-settings-card__head > div > span,
body:not(.dark) .helheim-tfa-settings__head > div > span,
body:not(.dark) .helheim-account-alert-view__heading > span,
body:not(.dark) .helheim-view-message__reply-head > span {
    color: #a11d34 !important;
    -webkit-text-fill-color: #a11d34 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-account-card h2,
body:not(.dark) .helheim-account-card h3,
body:not(.dark) .helheim-settings-card h2,
body:not(.dark) .helheim-settings-card h3,
body:not(.dark) .helheim-account-alert-view__heading h2,
body:not(.dark) .helheim-view-message__summary h2 {
    color: #272227 !important;
    -webkit-text-fill-color: #272227 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* Обзор аккаунта */
body:not(.dark) .helheim-account-detail {
    border-color: #d8cfc7 !important;
    background: #f5f0ea !important;
}

body:not(.dark) .helheim-account-detail__name {
    color: #7b7277 !important;
    -webkit-text-fill-color: #7b7277 !important;
}

body:not(.dark) .helheim-account-detail__value,
body:not(.dark) .helheim-account-detail__value:not([style]) {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
}

body:not(.dark) .helheim-account-detail__content {
    color: #2b262a !important;
}

body:not(.dark) .helheim-account-chart {
    background: #fffdf9 !important;
}

body:not(.dark) .helheim-account-chart canvas {
    background: #fffdf9 !important;
}

/* Текстовые элементы всех страниц аккаунта */
body:not(.dark) .helheim-account-page strong:not([style]),
body:not(.dark) .helheim-account-page h2:not([style]),
body:not(.dark) .helheim-account-page h3:not([style]),
body:not(.dark) .helheim-account-page h4:not([style]) {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
}

body:not(.dark) .helheim-account-page p:not([style]),
body:not(.dark) .helheim-account-page li:not([style]),
body:not(.dark) .helheim-account-page .description:not([style]),
body:not(.dark) .helheim-account-page .meta:not([style]) {
    color: #6c6469 !important;
    -webkit-text-fill-color: #6c6469 !important;
}

/* Уведомления и сообщения */
body:not(.dark) .helheim-account-alert,
body:not(.dark) .helheim-account-message,
body:not(.dark) .helheim-view-message__item {
    color: #2b262a !important;
    border-color: #ddd5ce !important;
    background: #f7f3ee !important;
}

body:not(.dark) .helheim-account-alert:hover,
body:not(.dark) .helheim-account-message:hover,
body:not(.dark) .helheim-view-message__item:hover {
    border-color: rgba(127, 20, 37, 0.25) !important;
    background: #fffaf7 !important;
}

body:not(.dark) .helheim-account-alert--unread {
    border-left-color: #9b1b31 !important;
    background:
        linear-gradient(90deg, rgba(127, 20, 37, 0.08), #f8f4ef 34%) !important;
}

body:not(.dark) .helheim-account-alert__status,
body:not(.dark) .helheim-account-message__icon {
    color: #9b1b31 !important;
    border-color: rgba(127, 20, 37, 0.23) !important;
    background: rgba(127, 20, 37, 0.055) !important;
}

body:not(.dark) .helheim-account-alert__title,
body:not(.dark) .helheim-account-message__title,
body:not(.dark) .helheim-account-message__user:not([style]),
body:not(.dark) .helheim-view-message__author-info > a:not([style]) {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
}

body:not(.dark) .helheim-account-alert__date,
body:not(.dark) .helheim-account-message__date,
body:not(.dark) .helheim-account-message__participants,
body:not(.dark) .helheim-account-message__last-label,
body:not(.dark) .helheim-view-message__author-info > span {
    color: #7a7176 !important;
    -webkit-text-fill-color: #7a7176 !important;
}

body:not(.dark) .helheim-account-alert__arrow,
body:not(.dark) .helheim-account-message__arrow {
    color: #9b9297 !important;
}

body:not(.dark) .helheim-account-alert__badge,
body:not(.dark) .helheim-account-alert-view__new {
    color: #9b1b31 !important;
    border-color: rgba(127, 20, 37, 0.24) !important;
    background: rgba(127, 20, 37, 0.06) !important;
}

body:not(.dark) .helheim-account-alert-view__content,
body:not(.dark) .helheim-view-message__content {
    color: #3c363a !important;
    -webkit-text-fill-color: #3c363a !important;
    border-color: #ddd5ce !important;
    background: #fffdf9 !important;
}

body:not(.dark) .helheim-view-message__summary {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
}

body:not(.dark) .helheim-view-message__summary p,
body:not(.dark) .helheim-view-message__summary p strong {
    color: #6b6368 !important;
    -webkit-text-fill-color: #6b6368 !important;
}

body:not(.dark) .helheim-view-message__reply {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
}

/* Подключения, OAuth и сеансы */
body:not(.dark) .helheim-connection-card,
body:not(.dark) .helheim-oauth-provider,
body:not(.dark) .helheim-session-card {
    color: #2b262a !important;
    border-color: #d8cfc7 !important;
    background: #f7f3ee !important;
}

body:not(.dark) .helheim-connection-card:hover,
body:not(.dark) .helheim-oauth-provider:hover,
body:not(.dark) .helheim-session-card:hover {
    border-color: rgba(127, 20, 37, 0.25) !important;
    background: #fffaf7 !important;
}

body:not(.dark) .helheim-connection-card__title-row h3,
body:not(.dark) .helheim-oauth-provider__title-row h3,
body:not(.dark) .helheim-session-card__title-row h3,
body:not(.dark) .helheim-session-card__device {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
}

body:not(.dark) .helheim-connection-card__meta,
body:not(.dark) .helheim-connection-card__username,
body:not(.dark) .helheim-oauth-provider__id,
body:not(.dark) .helheim-session-card__meta {
    color: #756d72 !important;
    -webkit-text-fill-color: #756d72 !important;
}

body:not(.dark) .helheim-connection-card__username--muted {
    color: #91888d !important;
    -webkit-text-fill-color: #91888d !important;
}

body:not(.dark) .helheim-connection-card__status,
body:not(.dark) .helheim-oauth-provider__status,
body:not(.dark) .helheim-session-card__badge {
    border-color: #d4cbc3 !important;
    background: #eee8e2 !important;
}

body:not(.dark) .helheim-connection-card__badge--required,
body:not(.dark) .helheim-session-card__badge--admin {
    color: #9b1b31 !important;
    border-color: rgba(127, 20, 37, 0.25) !important;
    background: rgba(127, 20, 37, 0.06) !important;
}

body:not(.dark) .helheim-session-card--current,
body:not(.dark) .helheim-connection-card--connected,
body:not(.dark) .helheim-oauth-provider--linked {
    border-left-color: #2f7558 !important;
}

body:not(.dark) .helheim-session-card--admin {
    border-left-color: #9b1b31 !important;
}

/* Настройки уведомлений */
body:not(.dark) .helheim-notification-settings__legend {
    color: #5c5459 !important;
    border-color: #d4cbc3 !important;
    background: #eee8e2 !important;
}

body:not(.dark) .helheim-notification-settings__legend-title,
body:not(.dark) .helheim-notification-settings__legend-channel {
    color: #5c5459 !important;
    -webkit-text-fill-color: #5c5459 !important;
}

body:not(.dark) .helheim-notification-settings__list {
    border-color: #ddd5ce !important;
}

body:not(.dark) .helheim-notification-setting {
    color: #2b262a !important;
    border-color: #ddd5ce !important;
    background: #f7f3ee !important;
}

body:not(.dark) .helheim-notification-setting:hover {
    border-color: rgba(127, 20, 37, 0.23) !important;
    background: #fffaf7 !important;
}

body:not(.dark) .helheim-notification-setting__name,
body:not(.dark) .helheim-notification-setting__mobile-label {
    color: #3e383c !important;
    -webkit-text-fill-color: #3e383c !important;
}

body:not(.dark) .helheim-notification-settings__hint {
    color: #776f74 !important;
    -webkit-text-fill-color: #776f74 !important;
}

/* Настройки профиля и аккаунта */
body:not(.dark) .helheim-settings-action-card {
    color: #2b262a !important;
    border-color: #ddd5ce !important;
    background: #f5f0ea !important;
}

body:not(.dark) .helheim-settings-action-card__info strong,
body:not(.dark) .helheim-settings-field > label,
body:not(.dark) .helheim-settings-field > label strong {
    color: #302a2f !important;
    -webkit-text-fill-color: #302a2f !important;
}

body:not(.dark) .helheim-settings-action-card__info p,
body:not(.dark) .helheim-settings-field__help,
body:not(.dark) .helheim-settings-field > label small {
    color: #776f74 !important;
    -webkit-text-fill-color: #776f74 !important;
}

body:not(.dark) .helheim-settings-field__label-icon {
    color: #9b1b31 !important;
}

body:not(.dark) .helheim-settings-upload {
    color: #4e474c !important;
    border-color: rgba(127, 20, 37, 0.28) !important;
    background: #f6ebe9 !important;
}

body:not(.dark) .helheim-settings-upload strong {
    color: #302a2f !important;
    -webkit-text-fill-color: #302a2f !important;
}

body:not(.dark) .helheim-settings-upload small {
    color: #756d72 !important;
    -webkit-text-fill-color: #756d72 !important;
}

/* Placeholders */
body:not(.dark) .helheim-placeholders__desktop-table,
body:not(.dark) .helheim-placeholder-card {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
}

body:not(.dark) .helheim-placeholders__desktop-table thead {
    background: #eee8e2 !important;
}

body:not(.dark) .helheim-placeholders__desktop-table th {
    color: #5d555a !important;
    -webkit-text-fill-color: #5d555a !important;
    border-color: #d8cfc7 !important;
}

body:not(.dark) .helheim-placeholders__desktop-table td {
    color: #51494e !important;
    -webkit-text-fill-color: #51494e !important;
    border-color: #e0d8d1 !important;
}

body:not(.dark) .helheim-placeholder-card__head strong,
body:not(.dark) .helheim-placeholder-card__value {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
}

body:not(.dark) .helheim-placeholder-card__meta,
body:not(.dark) .helheim-placeholders__updated,
body:not(.dark) .helheim-placeholder-card__visibility {
    color: #766e73 !important;
    -webkit-text-fill-color: #766e73 !important;
}

body:not(.dark) .helheim-placeholders__state--enabled {
    color: #2f7558 !important;
}

body:not(.dark) .helheim-placeholders__state--disabled {
    color: #8a8085 !important;
}

/* 2FA */
body:not(.dark) .helheim-tfa-settings__steps,
body:not(.dark) .helheim-tfa-settings__qr-panel,
body:not(.dark) .helheim-tfa-settings__verify {
    color: #2b262a !important;
    border-color: #d8cfc7 !important;
    background: #f7f3ee !important;
}

body:not(.dark) .helheim-tfa-settings__step {
    border-color: #ddd5ce !important;
    background: #f5f0ea !important;
}

body:not(.dark) .helheim-tfa-settings__step--active {
    border-color: rgba(127, 20, 37, 0.28) !important;
    background: rgba(127, 20, 37, 0.055) !important;
}

body:not(.dark) .helheim-tfa-settings__step > span {
    color: #9b1b31 !important;
    border-color: rgba(127, 20, 37, 0.25) !important;
    background: rgba(127, 20, 37, 0.06) !important;
}

body:not(.dark) .helheim-tfa-settings__step strong,
body:not(.dark) .helheim-tfa-settings__verify-copy strong {
    color: #302a2f !important;
    -webkit-text-fill-color: #302a2f !important;
}

body:not(.dark) .helheim-tfa-settings__step p,
body:not(.dark) .helheim-tfa-settings__verify-copy p {
    color: #746c71 !important;
    -webkit-text-fill-color: #746c71 !important;
}

body:not(.dark) .helheim-tfa-settings__secret {
    color: #5d555a !important;
    border-color: #d4cbc3 !important;
    background: #eee8e2 !important;
}

/* Формы аккаунта */
body:not(.dark) .helheim-account-page .ui.form label,
body:not(.dark) .helheim-new-message__field label,
body:not(.dark) .helheim-settings-field label,
body:not(.dark) .helheim-tfa-settings__code-field label {
    color: #3f393d !important;
    -webkit-text-fill-color: #3f393d !important;
}

body:not(.dark) .helheim-account-page .ui.form input:not([type="submit"]):not([type="button"]),
body:not(.dark) .helheim-account-page .ui.form textarea,
body:not(.dark) .helheim-account-page .ui.form select,
body:not(.dark) .helheim-account-page .ui.input > input,
body:not(.dark) .helheim-account-page .ui.selection.dropdown,
body:not(.dark) .helheim-new-message__editor,
body:not(.dark) .helheim-view-message__editor,
body:not(.dark) .helheim-settings-field input,
body:not(.dark) .helheim-settings-field textarea,
body:not(.dark) .helheim-settings-field select,
body:not(.dark) .helheim-settings-field .ui.dropdown,
body:not(.dark) .helheim-tfa-settings__code-field input {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
    border-color: #c9c0b8 !important;
    background: #fffdf9 !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-account-page input::placeholder,
body:not(.dark) .helheim-account-page textarea::placeholder {
    color: #968c91 !important;
    -webkit-text-fill-color: #968c91 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-account-page .ui.form input:focus,
body:not(.dark) .helheim-account-page .ui.form textarea:focus,
body:not(.dark) .helheim-account-page .ui.selection.dropdown.active,
body:not(.dark) .helheim-account-page .ui.selection.dropdown:focus {
    border-color: rgba(127, 20, 37, 0.52) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(127, 20, 37, 0.08) !important;
}

body:not(.dark) .helheim-account-page .ui.dropdown .menu {
    color: #2b262a !important;
    border-color: #cfc5bd !important;
    background: #fffdf9 !important;
    box-shadow: 0 12px 30px rgba(36, 28, 32, 0.12) !important;
}

body:not(.dark) .helheim-account-page .ui.dropdown .menu > .item {
    color: #51494e !important;
    border-color: #e0d8d1 !important;
    background: #fffdf9 !important;
}

body:not(.dark) .helheim-account-page .ui.dropdown .menu > .item:hover,
body:not(.dark) .helheim-account-page .ui.dropdown .menu > .selected.item {
    color: #7f1425 !important;
    background: rgba(127, 20, 37, 0.07) !important;
}

/* Кнопки аккаунта */
body:not(.dark) .helheim-account-page button,
body:not(.dark) .helheim-account-page .ui.button,
body:not(.dark) .helheim-account-page a[class*="button"] {
    opacity: 1 !important;
}

body:not(.dark) .helheim-account-messages__new,
body:not(.dark) .helheim-new-message__submit,
body:not(.dark) .helheim-view-message__submit,
body:not(.dark) .helheim-notification-settings__submit,
body:not(.dark) .helheim-settings-button--primary,
body:not(.dark) .helheim-settings-button--success,
body:not(.dark) .helheim-tfa-settings__button--primary,
body:not(.dark) .helheim-account-alert-view__button--view,
body:not(.dark) .helheim-connection-card__button--connect,
body:not(.dark) .helheim-connection-card__button--verify,
body:not(.dark) .helheim-oauth-provider__button--link {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #741020 !important;
    background: linear-gradient(180deg, #981b31 0%, #741020 100%) !important;
    box-shadow: 0 7px 18px rgba(127, 20, 37, 0.20) !important;
}

body:not(.dark) .helheim-account-messages__new:hover,
body:not(.dark) .helheim-new-message__submit:hover,
body:not(.dark) .helheim-view-message__submit:hover,
body:not(.dark) .helheim-notification-settings__submit:hover,
body:not(.dark) .helheim-settings-button--primary:hover,
body:not(.dark) .helheim-settings-button--success:hover,
body:not(.dark) .helheim-tfa-settings__button--primary:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(180deg, #ae2139 0%, #861428 100%) !important;
}

body:not(.dark) .helheim-account-alert-view__button--back,
body:not(.dark) .helheim-view-message__button--back,
body:not(.dark) .helheim-tfa-settings__button--cancel,
body:not(.dark) .helheim-oauth__modal-button--cancel,
body:not(.dark) .helheim-sessions__modal-button--cancel,
body:not(.dark) .helheim-connection-card__button--unlink,
body:not(.dark) .helheim-session-card__logout {
    color: #51494e !important;
    -webkit-text-fill-color: #51494e !important;
    border-color: #c8beb6 !important;
    background: #f1ece6 !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-account-alert-view__button--delete,
body:not(.dark) .helheim-view-message__button--leave,
body:not(.dark) .helheim-settings-button--danger,
body:not(.dark) .helheim-account-alerts__delete-all,
body:not(.dark) .helheim-sessions__logout-all {
    color: #a51d35 !important;
    -webkit-text-fill-color: #a51d35 !important;
    border-color: rgba(165, 29, 53, 0.30) !important;
    background: rgba(165, 29, 53, 0.055) !important;
}

body:not(.dark) .helheim-account-alert-view__button--delete:hover,
body:not(.dark) .helheim-view-message__button--leave:hover,
body:not(.dark) .helheim-settings-button--danger:hover,
body:not(.dark) .helheim-account-alerts__delete-all:hover,
body:not(.dark) .helheim-sessions__logout-all:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #a51d35 !important;
    background: #a51d35 !important;
}

/* Уведомления об успехе и ошибках */
body:not(.dark) .helheim-connections__notice,
body:not(.dark) .helheim-notification-settings__notice,
body:not(.dark) .helheim-oauth__notice,
body:not(.dark) .helheim-placeholders__notice,
body:not(.dark) .helheim-sessions__notice,
body:not(.dark) .helheim-settings__notice,
body:not(.dark) .helheim-tfa-settings__notice,
body:not(.dark) .helheim-view-message__notice,
body:not(.dark) .helheim-account-alerts__message,
body:not(.dark) .helheim-account-alert-view__message,
body:not(.dark) .helheim-new-message__error {
    color: #51494e !important;
    border-color: #d4cbc3 !important;
    background: #f5f0ea !important;
}

body:not(.dark) [class*="__notice--success"],
body:not(.dark) .helheim-view-message__notice--success {
    color: #2f654b !important;
    border-color: #b9d8c8 !important;
    background: #edf7f1 !important;
}

body:not(.dark) [class*="__notice--error"],
body:not(.dark) [class*="__message--error"],
body:not(.dark) .helheim-new-message__error {
    color: #913247 !important;
    border-color: #e1b8c1 !important;
    background: #fff0f2 !important;
}

/* Пустые состояния */
body:not(.dark) .helheim-account-alerts__empty,
body:not(.dark) .helheim-account-messages__empty,
body:not(.dark) .helheim-oauth__empty,
body:not(.dark) .helheim-placeholders__empty {
    color: #6f676c !important;
    border-color: #d8cfc7 !important;
    background: #f5f0ea !important;
}

body:not(.dark) .helheim-account-alerts__empty strong,
body:not(.dark) .helheim-account-messages__empty strong,
body:not(.dark) .helheim-oauth__empty strong,
body:not(.dark) .helheim-placeholders__empty strong {
    color: #302a2f !important;
    -webkit-text-fill-color: #302a2f !important;
}

/* Код и технические значения */
body:not(.dark) .helheim-account-page code,
body:not(.dark) .helheim-placeholder-card__value code,
body:not(.dark) .helheim-oauth-provider__id code,
body:not(.dark) .helheim-tfa-settings__secret code {
    color: #3f393d !important;
    -webkit-text-fill-color: #3f393d !important;
    border-color: #d4cbc3 !important;
    background: #eee8e2 !important;
}

/* Пагинация */
body:not(.dark) .helheim-account-page .ui.pagination.menu {
    color: #51494e !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-account-page .ui.pagination.menu .item {
    color: #5b5358 !important;
    border-color: #ddd5ce !important;
    background: transparent !important;
}

body:not(.dark) .helheim-account-page .ui.pagination.menu .active.item,
body:not(.dark) .helheim-account-page .ui.pagination.menu .item:hover {
    color: #ffffff !important;
    background: #7f1425 !important;
}

/* Модальные окна аккаунта */
body:not(.dark) .helheim-view-message__modal.ui.modal,
body:not(.dark) .helheim-oauth__modal.ui.modal,
body:not(.dark) .helheim-sessions__modal.ui.modal {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 26px 70px rgba(36, 28, 32, 0.18) !important;
}

body:not(.dark) .helheim-view-message__modal > .header,
body:not(.dark) .helheim-oauth__modal > .header,
body:not(.dark) .helheim-sessions__modal > .header {
    color: #292428 !important;
    border-bottom-color: #d8cfc7 !important;
    background: #eee8e2 !important;
}

body:not(.dark) .helheim-view-message__modal > .content,
body:not(.dark) .helheim-oauth__modal > .content,
body:not(.dark) .helheim-sessions__modal > .content {
    color: #625a5f !important;
    background: #faf7f3 !important;
}

body:not(.dark) .helheim-view-message__modal > .actions,
body:not(.dark) .helheim-oauth__modal > .actions,
body:not(.dark) .helheim-sessions__modal > .actions {
    border-top-color: #d8cfc7 !important;
    background: #eee8e2 !important;
}

/* ==================================================
   ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ
   ================================================== */

body:not(.dark) .helheim-profile-page {
    color: #2b262a !important;
    background: transparent !important;
}

/* Баннер остаётся тёмным акцентом, остальной профиль становится светлым */
body:not(.dark) .helheim-profile-page #profile-header {
    border-color: rgba(127, 20, 37, 0.38) !important;
    background-color: #2b2227 !important;
    box-shadow:
        0 20px 48px rgba(36, 28, 32, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

body:not(.dark) .helheim-profile-page #profile-header::before {
    background:
        linear-gradient(180deg, rgba(35, 29, 33, 0.16) 0%, rgba(35, 29, 33, 0.54) 52%, rgba(28, 23, 27, 0.92) 100%),
        linear-gradient(100deg, rgba(127, 20, 37, 0.24), transparent 54%) !important;
}

body:not(.dark) .helheim-profile-page #profile-header h2.ui.header,
body:not(.dark) .helheim-profile-page #profile-header h2.ui.header .sub.header {
    color: #fffaf6 !important;
    -webkit-text-fill-color: #fffaf6 !important;
}

body:not(.dark) .helheim-profile-page #profile-header h2.ui.header .sub.header {
    color: #d0c7cc !important;
    -webkit-text-fill-color: #d0c7cc !important;
}

body:not(.dark) .helheim-profile-page #profile-header > .actions .ui.button {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.17) !important;
    background: rgba(32, 27, 31, 0.76) !important;
}

body:not(.dark) .helheim-profile-page #profile-header > .actions .ui.button:hover {
    border-color: rgba(239, 82, 104, 0.65) !important;
    background: rgba(127, 20, 37, 0.82) !important;
}

/* Все панели и виджеты профиля */
body:not(.dark) .helheim-profile-page #profile .ui.segment,
body:not(.dark) .helheim-profile-page #profile .ui.card,
body:not(.dark) .helheim-profile-page #profile .ui.fluid.card,
body:not(.dark) .helheim-profile-page #profile .ui.message {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 11px 30px rgba(36, 28, 32, 0.085) !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.card > .content,
body:not(.dark) .helheim-profile-page #profile .ui.card > .extra.content {
    color: #2b262a !important;
    border-color: #ddd5ce !important;
    background: transparent !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.header,
body:not(.dark) .helheim-profile-page #profile .ui.card .header,
body:not(.dark) .helheim-profile-page #profile .ui.segment > .header,
body:not(.dark) .helheim-profile-page #profile strong:not([style]) {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
    text-shadow: none !important;
}

body:not(.dark) .helheim-profile-page #profile .description,
body:not(.dark) .helheim-profile-page #profile .meta,
body:not(.dark) .helheim-profile-page #profile p:not([style]) {
    color: #6f676c !important;
    -webkit-text-fill-color: #6f676c !important;
}

/* Вкладки */
body:not(.dark) .helheim-profile-page #profile .ui.top.attached.tabular.menu {
    border-color: #d4cbc3 !important;
    background: #eee8e2 !important;
    box-shadow: 0 8px 22px rgba(36, 28, 32, 0.065) !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.top.attached.tabular.menu .item {
    color: #6b6368 !important;
    border-bottom-color: transparent !important;
    background: transparent !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.top.attached.tabular.menu .item:hover {
    color: #7f1425 !important;
    background: rgba(127, 20, 37, 0.055) !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.top.attached.tabular.menu .item.active {
    color: #7f1425 !important;
    border-bottom-color: #9b1b31 !important;
    background:
        linear-gradient(180deg, rgba(127, 20, 37, 0.09), rgba(127, 20, 37, 0.025)) !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.bottom.attached.tab.segment {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.bottom.attached.tab.segment > h3.ui.header {
    color: #292428 !important;
    border-bottom-color: #ddd5ce !important;
}

/* Форма стены */
body:not(.dark) .helheim-profile-page #form-profile-post {
    border-color: rgba(127, 20, 37, 0.21) !important;
    background: #f6ebe9 !important;
}

body:not(.dark) .helheim-profile-page #form-profile-post textarea,
body:not(.dark) .helheim-profile-page .ui.modal textarea,
body:not(.dark) .helheim-profile-page #profile textarea,
body:not(.dark) .helheim-profile-page #profile input:not([type="submit"]):not([type="button"]),
body:not(.dark) .helheim-profile-page #profile select,
body:not(.dark) .helheim-profile-page #profile .ui.selection.dropdown {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
    border-color: #c9c0b8 !important;
    background: #fffdf9 !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-profile-page textarea::placeholder,
body:not(.dark) .helheim-profile-page input::placeholder {
    color: #968c91 !important;
    -webkit-text-fill-color: #968c91 !important;
    opacity: 1 !important;
}

body:not(.dark) .helheim-profile-page #form-profile-post textarea:focus,
body:not(.dark) .helheim-profile-page .ui.modal textarea:focus,
body:not(.dark) .helheim-profile-page #profile textarea:focus,
body:not(.dark) .helheim-profile-page #profile input:focus {
    border-color: rgba(127, 20, 37, 0.52) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(127, 20, 37, 0.08) !important;
}

/* Стена профиля */
body:not(.dark) .helheim-profile-page #profile-feed .ui.comments > .comment {
    color: #2b262a !important;
    border-color: #ddd5ce !important;
    background: #f7f3ee !important;
}

body:not(.dark) .helheim-profile-page #profile-feed .ui.comments .comments .comment {
    color: #2b262a !important;
    border: 1px solid #e0d8d1 !important;
    background: #f5f0ea !important;
}

body:not(.dark) .helheim-profile-page #profile-feed .ui.comments .comment .avatar img {
    border-color: rgba(127, 20, 37, 0.32) !important;
}

body:not(.dark) .helheim-profile-page #profile-feed .ui.comments .author:not([style]) {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
}

body:not(.dark) .helheim-profile-page #profile-feed .ui.comments .metadata {
    color: #7b7277 !important;
    -webkit-text-fill-color: #7b7277 !important;
}

body:not(.dark) .helheim-profile-page #profile-feed .ui.comments .text.forum_post {
    color: #484146 !important;
    -webkit-text-fill-color: #484146 !important;
}

body:not(.dark) .helheim-profile-page #profile-feed .ui.comments .actions a {
    color: #6f676c !important;
    -webkit-text-fill-color: #6f676c !important;
}

body:not(.dark) .helheim-profile-page #profile-feed .ui.comments .actions a:hover {
    color: #9b1b31 !important;
    -webkit-text-fill-color: #9b1b31 !important;
}

body:not(.dark) .helheim-profile-page #profile-feed #reactions.ui.mini.message {
    color: #51494e !important;
    border-color: #ddd5ce !important;
    background: #eee8e2 !important;
}

body:not(.dark) .helheim-profile-page #profile-feed .reaction-button:hover,
body:not(.dark) .helheim-profile-page #profile-feed .reaction-button-selected {
    border-color: rgba(127, 20, 37, 0.32) !important;
    background: rgba(127, 20, 37, 0.07) !important;
}

body:not(.dark) .helheim-profile-page #profile-feed .ui.comments .comments {
    border-left-color: rgba(127, 20, 37, 0.22) !important;
}

/* О пользователе */
body:not(.dark) .helheim-profile-page #profile-about .ui.relaxed.list > .item {
    color: #2b262a !important;
    border-color: #ddd5ce !important;
    background: #f7f3ee !important;
}

body:not(.dark) .helheim-profile-page #profile-about .ui.relaxed.list > .item > i.icon {
    color: #9b1b31 !important;
}

body:not(.dark) .helheim-profile-page #profile-about .item .header {
    color: #292428 !important;
    -webkit-text-fill-color: #292428 !important;
}

body:not(.dark) .helheim-profile-page #profile-about .item .description {
    color: #71696e !important;
    -webkit-text-fill-color: #71696e !important;
}

/* Таблицы и боковые виджеты профиля */
body:not(.dark) .helheim-profile-page #profile .ui.table {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #fffdf9 !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.table thead th {
    color: #5d555a !important;
    border-color: #d8cfc7 !important;
    background: #eee8e2 !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.table tbody td {
    color: #51494e !important;
    border-color: #e0d8d1 !important;
    background: #fffdf9 !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.divider {
    border-color: #d8cfc7 !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.label:not([style]) {
    color: #7f1425 !important;
    border-color: rgba(127, 20, 37, 0.25) !important;
    background: rgba(127, 20, 37, 0.06) !important;
}

/* Сообщения состояний */
body:not(.dark) .helheim-profile-page #profile .ui.info.message {
    color: #425d73 !important;
    border-color: #bfd2df !important;
    background: #eef5fa !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.success.message {
    color: #2f654b !important;
    border-color: #b9d8c8 !important;
    background: #edf7f1 !important;
}

body:not(.dark) .helheim-profile-page #profile .ui.error.message,
body:not(.dark) .helheim-profile-page #profile .ui.negative.message {
    color: #913247 !important;
    border-color: #e1b8c1 !important;
    background: #fff0f2 !important;
}

/* Пагинация и popups */
body:not(.dark) .helheim-profile-page .ui.pagination.menu {
    color: #51494e !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: none !important;
}

body:not(.dark) .helheim-profile-page .ui.pagination.menu .item {
    color: #5b5358 !important;
    border-color: #ddd5ce !important;
    background: transparent !important;
}

body:not(.dark) .helheim-profile-page .ui.pagination.menu .item.active,
body:not(.dark) .helheim-profile-page .ui.pagination.menu .item:hover {
    color: #ffffff !important;
    background: #7f1425 !important;
}

body:not(.dark) .helheim-profile-page .ui.popup {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #fffdf9 !important;
    box-shadow: 0 15px 34px rgba(36, 28, 32, 0.14) !important;
}

/* Модальные окна профиля */
body:not(.dark) #modal-reactions.ui.modal,
body:not(.dark) [id^="modal-edit-"].ui.modal,
body:not(.dark) [id^="modal-reply-"].ui.modal,
body:not(.dark) #modal-block.ui.modal,
body:not(.dark) #imageModal.ui.modal {
    color: #2b262a !important;
    border-color: #d4cbc3 !important;
    background: #faf7f3 !important;
    box-shadow: 0 28px 80px rgba(36, 28, 32, 0.22) !important;
}

body:not(.dark) #modal-reactions.ui.modal > .header,
body:not(.dark) [id^="modal-edit-"].ui.modal > .header,
body:not(.dark) [id^="modal-reply-"].ui.modal > .header,
body:not(.dark) #modal-block.ui.modal > .header,
body:not(.dark) #imageModal.ui.modal > .header {
    color: #292428 !important;
    border-bottom-color: #d8cfc7 !important;
    background: #eee8e2 !important;
}

body:not(.dark) #modal-reactions.ui.modal > .content,
body:not(.dark) [id^="modal-edit-"].ui.modal > .content,
body:not(.dark) [id^="modal-reply-"].ui.modal > .content,
body:not(.dark) #modal-block.ui.modal > .content,
body:not(.dark) #imageModal.ui.modal > .content {
    color: #625a5f !important;
    background: #faf7f3 !important;
}

body:not(.dark) #modal-reactions.ui.modal > .actions,
body:not(.dark) [id^="modal-edit-"].ui.modal > .actions,
body:not(.dark) [id^="modal-reply-"].ui.modal > .actions,
body:not(.dark) #modal-block.ui.modal > .actions,
body:not(.dark) #imageModal.ui.modal > .actions {
    border-top-color: #d8cfc7 !important;
    background: #eee8e2 !important;
}

body:not(.dark) #modal-reactions.ui.modal .close.icon,
body:not(.dark) [id^="modal-edit-"].ui.modal .close.icon,
body:not(.dark) [id^="modal-reply-"].ui.modal .close.icon,
body:not(.dark) #modal-block.ui.modal .close.icon,
body:not(.dark) #imageModal.ui.modal .close.icon {
    color: #51494e !important;
}

body:not(.dark) #imageModal .image_picker_selector .thumbnail {
    border-color: #d4cbc3 !important;
    background: #f5f0ea !important;
}

body:not(.dark) #imageModal .image_picker_selector .thumbnail.selected {
    border-color: rgba(127, 20, 37, 0.55) !important;
    background: rgba(127, 20, 37, 0.07) !important;
}

/* END HELHEIM — СВЕТЛАЯ ТЕМА V8: АККАУНТ И ПРОФИЛЬ */
