:root {
    --font-main: 'Inter', sans-serif;
    --container-width: 1100px;
    --bg-primary: #12101E;
    --bg-secondary: #19172A;
    --accent-primary: linear-gradient(135deg, #6366F1, #A855F7);
    --accent-bright: #A855F7;
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --border-color: rgba(168, 85, 247, 0.15);
    --radius-large: 24px;
    --radius-medium: 16px;
    --cell-backdrop-filter: none;
    --aurora-display: block;
    --fire-display: none;
    --success-color: #22c55e;
}
html.theme-orange {
    --bg-primary: #141417;
    --bg-secondary: #1F1F22;
    --accent-primary: linear-gradient(135deg, #F97316, #FBBF24);
    --accent-bright: #FBBF24;
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.1);
    --radius-large: 16px;
    --radius-medium: 12px;
    --cell-backdrop-filter: none;
    --aurora-display: block;
    --fire-display: none;
    --success-color: #22c55e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-primary);
    font-family: var(--font-main);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
    overflow-x: hidden;
}
@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes page-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
.main {
    animation: page-fade-in 0.5s ease-out forwards;
}
.main.is-leaving {
    animation: page-fade-out 0.5s ease-out forwards;
}
.page-wrapper {
    position: relative;
    z-index: 1;
    transform: translateZ(0);
}
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.aurora-bg, .fire-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.aurora-bg { display: var(--aurora-display); }
.fire-bg { display: var(--fire-display); }
.aurora-bg__shape1, .aurora-bg__shape2 { position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.2; }
.aurora-bg__shape1 { width: 500px; height: 500px; background: #4F46E5; top: -50px; left: -150px; animation: move-aurora1 20s infinite ease-in-out; }
.aurora-bg__shape2 { width: 400px; height: 400px; background: #A855F7; bottom: -100px; right: -100px; animation: move-aurora2 25s infinite ease-in-out; }
html.theme-orange .aurora-bg__shape1 {
    background: #F97316;
}
html.theme-orange .aurora-bg__shape2 {
    background: #FBBF24;
}
.fire-bg__shape1, .fire-bg__shape2 { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.25; }
.fire-bg__shape1 { width: 450px; height: 450px; background: #F97316; top: -100px; left: -200px; animation: move-fire1 22s infinite alternate ease-in-out; }
.fire-bg__shape2 { width: 350px; height: 350px; background: #FBBF24; bottom: -150px; right: -150px; animation: move-fire2 28s infinite alternate-reverse ease-in-out; }
@keyframes move-aurora1 {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(120px, 80px) rotate(180deg) scale(1.2); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}
@keyframes move-aurora2 {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(-100px, -50px) rotate(-180deg) scale(1.1); }
    100% { transform: translate(0, 0) rotate(-360deg) scale(1); }
}
@keyframes move-fire1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, 60px) scale(1.1); } }
@keyframes move-fire2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-70px, -50px) scale(1.1); } }
.header { padding: 24px 0; position: sticky; top: 0; z-index: 100; background: rgba(18, 16, 30, 0.7); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
html.theme-orange .header { background: rgba(20, 20, 23, 0.7); }
.header__container { display: flex; align-items: center; }
.header__logo { font-size: 22px; font-weight: 800; color: var(--text-primary); text-decoration: none; letter-spacing: 1px; }
.header__nav { margin-left: 40px; margin-right: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
}
.nav__link:hover, .nav__link.is-active { color: var(--accent-bright); transform: translateY(-2px); }
.header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}
.header__auth-block {
    display: flex;
    align-items: center;
}
.theme-switcher { display: flex; background: var(--bg-primary); border-radius: 12px; padding: 4px; border: 1px solid var(--border-color); }
.theme-switcher__btn { background: transparent; border: none; padding: 6px; cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s ease; }
.theme-switcher__btn:hover { background-color: var(--bg-secondary); }
.theme-switcher__btn.is-active { box-shadow: inset 0 0 0 1px var(--border-color); background-color: var(--bg-secondary); }
.theme-icon { display: block; width: 20px; height: 20px; border-radius: 50%; }
.theme-icon--aurora { background: linear-gradient(135deg, #4F46E5, #A855F7); }
.theme-icon--orange { background: #FF6B00; }
.hero { text-align: center; padding: 100px 0; }
.hero__title { font-size: 64px; font-weight: 800; margin-bottom: 16px; }
.hero__subtitle { font-size: 20px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; margin-bottom: 32px; }
.main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    padding-bottom: 100px;
}
.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.bento-grid, .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.bento-grid { padding-bottom: 100px; }
.bento-cell, .news-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    padding: 32px;
    display: flex;
    flex-direction: column;
    backdrop-filter: var(--cell-backdrop-filter);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.bento-cell:hover { border-color: var(--accent-bright); transform: translateY(-4px); box-shadow: 0 0 20px rgba(168, 85, 247, 0.1); }
html.theme-orange .bento-cell:hover { box-shadow: 0 0 20px rgba(251, 191, 36, 0.1); }
.bento-cell--discord {
    background-color: #5865F2;
    border-color: #5865F2;
    color: #ffffff;
    text-decoration: none;
}
.bento-cell--discord:hover {
    border-color: #5865F2;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
}
.bento-cell--discord .cell__icon {
    width: 40px;
    height: auto;
    fill: #ffffff;
    margin-bottom: 16px;
}
.bento-cell--discord .cell__title, .bento-cell--discord .cell__link {
    color: #ffffff;
}
.bento-cell--discord .cell__description {
    color: rgba(255, 255, 255, 0.8);
}
.cell__category { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.cell__title { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.cell__description { color: var(--text-secondary); margin-bottom: 24px; flex-grow: 1; }
.cell__link { color: var(--text-primary); font-weight: 600; text-decoration: none; }
.cell__link::after { content: ' →'; transition: transform 0.2s; display: inline-block; }
.cell__link:hover::after { transform: translateX(4px); }
.news-feed { padding-bottom: 100px; }
.news-feed__title { font-size: 36px; font-weight: 800; margin-bottom: 32px; }
.news-feed__all-link { text-align: center; margin-top: 40px; }
.news-card { text-decoration: none; }
.btn, .btn--primary { background: var(--accent-primary); color: white; padding: 12px 24px; border-radius: 12px; text-decoration: none; font-weight: 600; display: inline-block; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); border: none; cursor: pointer; font-family: var(--font-main); }
.btn:hover, .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn--secondary { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary); }
.btn--secondary:hover { border-color: var(--text-secondary); }
.btn--danger { background: #ef4444; }
.footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-secondary); font-size: 14px; }
.post-article { max-width: 800px; padding: 60px 20px 100px; margin-left: auto; margin-right: auto; }
.back-link { display: inline-block; color: var(--text-secondary); text-decoration: none; margin-bottom: 40px; font-weight: 600; transition: color 0.2s ease; }
.back-link:hover { color: var(--text-primary); }
.post-article__title { font-size: 48px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.post-article__meta { color: var(--text-secondary); margin-bottom: 40px; }
.post-article__content { font-size: 17px; line-height: 1.7; color: var(--text-primary); }
.post-article__content h1, .post-article__content h2, .post-article__content h3 { font-weight: 800; line-height: 1.3; margin-top: 2.5em; margin-bottom: 1em; }
.post-article__content h2 { font-size: 1.8em; }
.post-article__content h3 { font-size: 1.4em; }
.post-article__content p { margin-bottom: 1.2em; }
.post-article__content ul, .post-article__content ol { margin-left: 20px; margin-bottom: 1.2em; }
.post-article__content li { margin-bottom: 0.5em; }
.post-article__content code { background: var(--bg-secondary); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.post-article__content pre { background: var(--bg-secondary); padding: 16px; border-radius: 12px; overflow-x: auto; margin-bottom: 1.2em; }
.post-article__content pre code { padding: 0; background: none; }
.post-article__content blockquote { border-left: 3px solid var(--border-color); padding-left: 20px; margin-left: 0; color: var(--text-secondary); font-style: italic; }
.category-section { padding-top: 60px; padding-bottom: 100px; }
.category-title { font-size: 48px; font-weight: 800; margin-bottom: 40px; }
.auth-form-wrapper { display: flex; justify-content: center; align-items: center; padding: 80px 0; }
.form-container { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-large); padding: 40px; width: 100%; max-width: 400px; }
.form-container h1 { text-align: center; font-size: 28px; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.form-input, .form-textarea { width: 100%; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; color: var(--text-primary); font-size: 16px; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { color: #f87171; margin-top: 8px; }
.profile-section { padding-top: 60px; }
.profile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.profile-title { font-size: 48px; font-weight: 800; }
.admin-wrapper { display: flex; gap: 32px; padding: 40px 0; }
.admin-sidebar { width: 220px; flex-shrink: 0; }
.admin-sidebar__nav { display: flex; flex-direction: column; gap: 8px; }
.admin-sidebar__link { display: block; padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--text-secondary); transition: all 0.2s ease; }
.admin-sidebar__link:hover { background-color: var(--bg-secondary); color: var(--accent-bright); }
.admin-sidebar__link.is-active { background-color: var(--bg-secondary); color: var(--accent-bright); box-shadow: inset 0 0 0 1px var(--border-color); }
html.theme-orange .admin-sidebar__link.is-active { color: #FBBF24; box-shadow: inset 0 0 0 1px #FBBF24; }
.admin-content { flex-grow: 1; }
.admin-title { font-size: 36px; margin-bottom: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin-bottom: 40px; }
.stat-card { background-color: var(--bg-secondary); padding: 24px; border-radius: var(--radius-medium); }
.stat-card__title { font-size: 16px; color: var(--text-secondary); margin-bottom: 8px; }
.stat-card__value { font-size: 32px; font-weight: 800; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-color); }
.admin-table th { color: var(--text-secondary); font-weight: 600; }
.admin-table td { color: var(--text-primary); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table__actions { display: flex; gap: 12px; }
.table-cell-breakable {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
.rules-page-wrapper { display: flex; align-items: flex-start; gap: 48px; padding: 60px 0 100px; }
.rules-content { flex-grow: 1; min-width: 0; }
.rules-toc { width: 280px; flex-shrink: 0; position: sticky; top: 120px; }
.rules-toc__title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.rules-toc ul { list-style: none; padding-left: 0; }
.rules-toc ul ul { padding-left: 20px; }
.rules-toc li { margin-bottom: 8px; }
.rules-toc a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; display: block; }
.rules-toc a:hover { color: var(--text-primary); }
.EasyMDEContainer { border: 1px solid var(--border-color) !important; border-radius: 12px; }
.EasyMDEContainer .editor-toolbar {
    background: var(--bg-secondary);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 87px;
    z-index: 10;
}
.EasyMDEContainer .editor-toolbar button { color: var(--text-secondary) !important; }
.EasyMDEContainer .editor-toolbar button:hover, .EasyMDEContainer .editor-toolbar button.active { background: var(--bg-primary); color: var(--text-primary) !important; }
.CodeMirror { background: var(--bg-primary) !important; color: var(--text-primary) !important; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.editor-preview { background: var(--bg-primary) !important; }
.editor-statusbar { color: var(--text-secondary) !important; font-size: 14px !important; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.autosave-status { font-size: 14px; color: var(--text-secondary); transition: opacity 0.3s ease; }
.toast-notification { position: fixed; top: 120px; right: 20px; background-color: var(--success-color); color: white; padding: 12px 20px; border-radius: 12px; z-index: 1000; font-weight: 600; opacity: 0; transform: translateX(20px); animation: slide-in-out 4s ease-in-out; }
@keyframes slide-in-out {
    0%, 100% { opacity: 0; transform: translateX(20px); }
    10%, 90% { opacity: 1; transform: translateX(0); }
}
.status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
}
.status-в-ожидании {
    background-color: #f59e0b;
}
.status-ожидает-оплаты {
    background-color: #3b82f6;
}
.status-на-проверке {
    background-color: #06b6d4;
}
.status-в-процессе-выполнения {
    background-color: #8b5cf6;
}
.status-выполнено {
    background-color: #22c55e;
}
.status-отклонено {
    background-color: #ef4444;
}
.chat-page-container {
    padding-top: 40px;
    padding-bottom: 60px;
}
.chat-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.chat-header__title {
    font-size: 28px;
    margin-bottom: 8px;
}
.chat-header__meta {
    color: var(--text-secondary);
}
.chat-header__meta .status-badge {
    margin-left: 12px;
    vertical-align: middle;
}
.chat-container {
    height: 60vh;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-message {
    display: flex;
    gap: 12px;
    max-width: 70%;
    align-items: flex-end;
}
.chat-message__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-secondary);
}
.chat-message__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-message__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.chat-message__bubble {
    padding: 12px 16px;
    border-radius: var(--radius-medium);
    line-height: 1.5;
}
.chat-message__content p {
    margin: 0;
    word-wrap: break-word;
}
.chat-message__meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    padding: 0 4px;
}
.chat-attachment-img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
}
.chat-message.is-sender {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.chat-message.is-sender .chat-message__body {
    align-items: flex-end;
}
.chat-message.is-sender .chat-message__bubble {
    background: var(--accent-primary);
    color: white;
}
.chat-message.is-sender .chat-message__meta {
    text-align: right;
}
.chat-message.is-receiver {
    align-self: flex-start;
}
.chat-message.is-receiver .chat-message__body {
    align-items: flex-start;
}
.chat-message.is-receiver .chat-message__bubble {
    background: var(--bg-secondary);
}
.chat-message--system {
    align-self: center;
    max-width: 80%;
    width: 100%;
    text-align: center;
    margin: 8px 0;
    justify-content: center;
}
.chat-message--system .chat-message__bubble {
    background-color: transparent;
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    font-style: italic;
    font-size: 14px;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
}
.chat-message--system .chat-message__meta {
    display: none;
}
.chat-form {
    display: flex;
    gap: 16px;
}
.chat-form textarea {
    flex-grow: 1;
    resize: none;
    height: 52px;
    padding-top: 14px;
}
.chat-form__attachment {
    position: relative;
}
.chat-form__attachment input[type="file"] {
    display: none;
}
.chat-form__attachment-label {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.chat-form__attachment-label:hover {
    border-color: var(--accent-bright);
}
.chat-form__attachment-label svg {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
}
#attachment-preview-container {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: none;
    align-items: center;
    gap: 8px;
}
#attachment-preview {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
}
#remove-attachment {
    background: #ef4444;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.admin-tabs__link {
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transform: translateY(1px);
    transition: all 0.2s ease;
}
.admin-tabs__link:hover {
    color: var(--text-primary);
}
.admin-tabs__link.is-active {
    color: var(--accent-bright);
    border-bottom-color: var(--accent-bright);
}
html.theme-orange .admin-tabs__link.is-active {
    color: #FBBF24;
    border-bottom-color: #FBBF24;
}
.status-line {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}
.status-line:not(:last-child) {
    margin-bottom: 16px;
}
.status-line__label {
    color: var(--text-secondary);
    font-weight: 600;
}
#theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    background-color: var(--bg-primary);
    clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
html.is-transitioning #theme-transition-overlay {
    clip-path: circle(150% at var(--x, 50%) var(--y, 50%));
}
.profile-header__info {
    display: flex;
    align-items: center;
    gap: 24px;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
}
.profile-avatar img,
.profile-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--bg-secondary);
}
.comments-section {
    padding-bottom: 100px;
}
#comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.comment-card {
    display: flex;
    gap: 16px;
}
.comment-card__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}
.comment-card__avatar img,
.comment-card__avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--bg-secondary);
}
.comment-card__body {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 16px;
    flex-grow: 1;
}
.comment-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.comment-card__author {
    font-weight: 600;
}
.comment-card__date {
    font-size: 14px;
    color: var(--text-secondary);
}
.comment-card__content {
    line-height: 1.6;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
.btn .spinner {
    vertical-align: middle;
}
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 23, 42, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: var(--radius-large);
    transition: opacity 0.2s ease;
}
.spinner-overlay .spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
}
.notifications {
    position: relative;
}
.notifications__bell {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color 0.2s ease;
}
.notifications__bell:hover {
    color: var(--text-primary);
}
.notifications__bell svg {
    width: 22px;
    height: 22px;
}
.notifications__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}
.notifications__panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    background-color: rgba(25, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 101;
    overflow: hidden;
}
html.theme-orange .notifications__panel {
    background-color: rgba(31, 31, 34, 0.8);
}
.notifications__header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.notifications__header h3 {
    font-size: 16px;
    margin: 0;
}
.notifications__list {
    max-height: 400px;
    overflow-y: auto;
}
.notifications__empty {
    padding: 32px;
    text-align: center;
    color: var(--text-secondary);
}
.notification-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item:hover {
    background-color: var(--bg-primary);
}
.notification-item.is-unread {
    background-color: rgba(168, 85, 247, 0.08);
}
html.theme-orange .notification-item.is-unread {
    background-color: rgba(251, 191, 36, 0.08);
}
.header__mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    margin-left: 16px;
}
.header__mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 5px;
    transition: all 0.3s linear;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
    padding: 20px;
    overflow-y: auto;
}
.mobile-nav.is-open {
    transform: translateX(0);
}
.mobile-nav .nav__link {
    font-size: 24px;
    font-weight: 800;
}
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}
.table-wrapper .admin-table {
    min-width: 800px;
}
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 200px);
}
.error-page__status-code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    background: var(--accent-primary);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 16px;
}
.error-page__title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}
.error-page__detail {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}
@media (max-width: 1024px) {
    .rules-page-wrapper {
        flex-direction: column;
    }
    .rules-toc {
        position: static;
        width: 100%;
        margin-bottom: 40px;
    }
    .main-content-grid {
        grid-template-columns: 1fr;
    }
    .header__nav {
        display: none;
    }
    .header__mobile-menu-btn {
        display: flex;
        order: 3;
    }
    .header__actions {
        order: 2;
        margin-left: 0;
    }
    .header__logo {
        margin-right: auto;
        order: 1;
    }
    .header__container {
        justify-content: space-between;
    }
}
@media (max-width: 768px) {
    .hero__title {
        font-size: 42px;
    }
    .bento-grid, .news-grid {
        grid-template-columns: 1fr;
    }
    .post-article__title, .category-title, .profile-title, .admin-title {
        font-size: 32px;
    }
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
    .chat-message {
        max-width: 90%;
    }
    .auth-form-wrapper {
        padding: 40px 0;
    }
    .form-container {
        padding: 24px;
    }
    .header__actions {
        gap: 16px;
    }
    .error-page__status-code {
        font-size: 80px;
    }
    .error-page__title {
        font-size: 28px;
    }
}
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .container {
        padding: 0 15px;
    }
    .hero {
        padding: 60px 0;
    }
    .hero__title {
        font-size: 36px;
    }
    .hero__subtitle {
        font-size: 18px;
    }
    .header__actions {
        gap: 8px;
    }
    .header__auth-block .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    .notifications__panel {
        width: calc(100vw - 30px);
        right: 0;
        left: 0;
        margin: 0 auto;
    }
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .chat-form {
        flex-wrap: wrap;
    }
    .chat-form textarea {
        flex-basis: 100%;
        order: 2;
        min-height: 52px;
    }
    .chat-form__attachment {
        order: 1;
    }
    .chat-form button {
        flex-grow: 1;
        order: 3;
    }
    .chat-container {
        padding: 10px;
    }
    .admin-wrapper {
        padding: 20px 0;
    }
}