/* ========================================
   ОСНОВНЫЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background: #0a0c10;
    font-family: 'Inter', sans-serif;
    color: #e8edf5;
    overflow-x: hidden;
}

#center-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
}

#site-wrapper {
    width: 1920px;
    min-height: 100vh;
    position: relative;
    transform-origin: top center;
    flex-shrink: 0;
    background: transparent;
    overflow: hidden;
}

#bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.header,
.hero,
.features,
.footer,
section {
    position: relative;
    z-index: 1;
}

.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 48px;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(134, 129, 129, 0.151);
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    left: 48px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
}

.logo img {
    width: 192px;
    height: auto;
    transition: opacity 0.3s ease;
}

.logo .logo-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.logo:hover .logo-hover {
    opacity: 1;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #ef4444);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: transparent;
    border: none;
    z-index: 101;
    position: absolute;
    right: 48px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #e8edf5;
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 100px 30px 30px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    transition: 0.3s;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu a:hover {
    color: #fff;
}

.mobile-menu .mobile-auth {
    margin-top: 20px;
    width: 100%;
}

.mobile-menu .mobile-auth .btn-login {
    display: block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    position: absolute;
    right: 48px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-buttons .btn-login {
    background: linear-gradient(135deg, #2d0a0a98, #4a0f0faf);
    color: #ff6b6b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 11px 24px;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid rgba(255, 107, 107, 0.15);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.auth-buttons .btn-login:hover {
    background: linear-gradient(135deg, #4a0f0f, #6b1414);
    color: #ff8c8c;
    border-color: rgba(255, 107, 107, 0.4);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.25);
    transform: translateY(-5px);
}

.user-block {
    display: none;
    align-items: center;
    gap: 8px;
    position: relative;
}

#userToggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 11px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    white-space: nowrap;
}

#userToggle:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 107, 107, 0.3);
}

#userToggle .name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

#userToggle .arrow {
    color: #6b7280;
    font-size: 13px;
    transition: 0.3s;
}

#userToggle .arrow.open {
    transform: rotate(180deg);
}

#tray {
    display: none;
    position: fixed;
    top: 72px;
    right: 24px;
    background: #14181f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 8px;
    min-width: 240px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 999999999;
    backdrop-filter: blur(20px);
}

#tray.open {
    display: block;
}

#tray .tray-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

#tray .tray-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

#tray .tray-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 6px 8px;
}

#tray .tray-btn-deposit {
    display: block;
    margin: 6px 8px;
    padding: 10px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

#tray .tray-btn-deposit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
}

#tray .tray-btn-logout {
    display: block;
    margin: 6px 8px;
    padding: 10px;
    background: transparent;
    color: #ef4444;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

#tray .tray-btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    padding: 60px 20px 40px;
    width: 100%;
}

.hero-logo {
    display: block;
    width: 45%;
    max-width: 820px;
    margin: 0 auto 10px;
    height: auto;
}

.hero-slogan {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 28px;
}

.hero-slogan span {
    color: #fff;
    font-weight: 800;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btn {
    display: inline-block;
    padding: 18px 60px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 2px solid #fff;
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 50px rgba(59, 130, 246, 0.7);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.features {
    display: flex;
    gap: 20px;
    padding: 40px 48px 60px;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
}

.feature-card {
    flex: 0 0 260px;
    background: rgba(20, 24, 31, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: 0.4s;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.feature-card .icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
}

.footer {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 28px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.footer span {
    color: #fff;
    font-weight: 600;
}

#toastContainer {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 300px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: 0.4s;
}

.toast.success {
    background: rgba(16, 185, 129, 0.9);
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
}

.toast.warning {
    background: rgba(245, 158, 11, 0.9);
}

.toast.info {
    background: rgba(59, 130, 246, 0.9);
}

/* Стили для страниц форума */
.forum-section,
.form-section,
.play-section,
.profile-section,
.rules-section,
.servers-section,
.settings-section,
.shop-section,
.support-section,
.ticket-section,
.tickets-section,
.topic-section,
.admin-section {
    padding: 40px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.forum-header,
.form-header,
.play-header,
.profile-header,
.rules-header,
.servers-header,
.settings-header,
.shop-header,
.support-header,
.tickets-header {
    text-align: center;
    margin-bottom: 40px;
}

.forum-header h1,
.form-header h1,
.play-header h1,
.profile-header h1,
.rules-header h1,
.servers-header h1,
.settings-header h1,
.shop-header h1,
.support-header h1,
.tickets-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.forum-header h1 span,
.form-header h1 span,
.play-header h1 span,
.profile-header h1 span,
.rules-header h1 span,
.servers-header h1 span,
.settings-header h1 span,
.shop-header h1 span,
.support-header h1 span,
.tickets-header h1 span {
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forum-container,
.form-container,
.server-ip-box,
.play-steps,
.play-extra,
.profile-card,
.rules-container,
.servers-list-wrapper,
.servers-stats-panel,
.settings-card,
.donate-grid,
.donate-info,
.ticket-form,
.my-tickets,
.ticket-container,
.topic-container {
    background: rgba(20, 24, 31, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 32px;
}

.forum-category {
    background: rgba(20, 24, 31, 0.4);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.forum-category h2 {
    color: #fb923c;
    font-size: 20px;
    margin-bottom: 4px;
}

.category-desc {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 16px;
}

.forum-subcategory {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 6px;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
}

.forum-subcategory:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.sub-name {
    font-weight: 600;
    color: #fff;
    font-size: 17px;
}

.sub-desc {
    font-size: 14px;
    color: #6b7280;
}

.sub-stats {
    color: #6b7280;
    font-size: 14px;
    display: flex;
    gap: 16px;
}

.forum-back {
    margin-bottom: 24px;
}

.forum-subcategory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.forum-subcategory-header h2 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 4px;
}

.topics-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 4px;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.topic-title {
    font-weight: 500;
    color: #fff;
    font-size: 16px;
}

.topic-meta {
    color: #6b7280;
    font-size: 13px;
}

.topic-stats {
    display: flex;
    gap: 14px;
    color: #6b7280;
    font-size: 14px;
}

.empty-state,
.error-message,
.empty-message {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
}

.error-message {
    color: #ef4444;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.back-link {
    color: #fb923c;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
    display: inline-block;
    margin-bottom: 16px;
}

.back-link:hover {
    color: #f97316;
    transform: translateX(-4px);
}

/* Формы */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #9ca3af;
    font-weight: 500;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: #e8edf5;
    font-size: 15px;
    transition: 0.3s;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select option {
    background: #14181f;
    color: #e8edf5;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Файлы */
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.file-upload-area:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.04);
}

.file-upload-area.dragover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    transform: scale(1.01);
}

.file-upload-area .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.file-upload-area p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.file-upload-area .sub-text {
    font-size: 12px;
    color: #6b7280;
    opacity: 0.7;
    margin-top: 6px;
}

#fileList {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.file-item .file-icon {
    font-size: 18px;
}

.file-item .file-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item .file-size {
    color: #6b7280;
    font-size: 12px;
}

.file-item .remove-file {
    cursor: pointer;
    color: #ef4444;
    font-weight: 700;
    padding: 0 4px;
    transition: 0.2s;
    font-size: 16px;
}

.file-item .remove-file:hover {
    color: #f87171;
    transform: scale(1.2);
}

.file-count {
    display: inline-block;
    background: #f97316;
    color: #fff;
    border-radius: 30px;
    padding: 2px 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Страница play */
.play-section .server-ip-box {
    text-align: center;
    margin-bottom: 40px;
    border: 2px dashed rgba(249, 115, 22, 0.3);
}

.play-section .server-ip-box .ip-label {
    color: #6b7280;
    margin-bottom: 8px;
}

.play-section .server-ip-box .ip {
    font-size: 36px;
    font-weight: 700;
    color: #fb923c;
    font-family: monospace;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.play-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-number {
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 2px;
}

.step-content p {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.5;
}

.step-content code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 12px;
    border-radius: 6px;
    font-family: monospace;
    color: #fb923c;
    font-size: 15px;
}

.play-extra h3 {
    color: #10b981;
    margin-bottom: 10px;
    font-size: 20px;
}

.play-extra p {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 15px;
}

.play-extra a {
    color: #fb923c;
    text-decoration: none;
}

.play-extra a:hover {
    text-decoration: underline;
}

/* Профиль */
.profile-card {
    max-width: 800px;
    margin: 0 auto;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #c2410c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    border: 2px solid rgba(249, 115, 22, 0.3);
}

.profile-field {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field .label {
    color: #6b7280;
    font-size: 15px;
}

.profile-field .value {
    color: #e8edf5;
    font-weight: 500;
    font-size: 15px;
}

.profile-balance {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-balance .balance-label {
    color: #9ca3af;
    font-size: 16px;
}

.profile-balance .balance-value {
    font-size: 32px;
    font-weight: 700;
    color: #fb923c;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-stats .stat {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.profile-stats .stat .number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.profile-stats .stat .label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

/* Правила */
.rules-container {
    max-width: 900px;
    margin: 0 auto;
}

.rules-block {
    background: rgba(20, 24, 31, 0.4);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.rules-block h2 {
    color: #fb923c;
    font-size: 22px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules-block ul {
    list-style: none;
    padding: 0;
}

.rules-block ul li {
    padding: 10px 0;
    color: #9ca3af;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: start;
    gap: 14px;
    font-size: 16px;
}

.rules-block ul li:last-child {
    border-bottom: none;
}

.rules-block ul li::before {
    content: "•";
    color: #fb923c;
    font-size: 24px;
    font-weight: 700;
}

.rules-block .important {
    background: rgba(239, 68, 68, 0.08);
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 14px;
    border-left: 3px solid #ef4444;
    color: #fca5a5;
    font-size: 15px;
}

/* Серверы */
.servers-stats-panel {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.servers-stats-panel h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.servers-stats-panel .subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 30px;
    color: #6b7280;
}

.servers-stats-panel .total-online {
    font-size: 48px;
    font-weight: 800;
    color: #fb923c;
}

.servers-stats-panel .total-online span {
    font-size: 28px;
    font-weight: 400;
    opacity: 0.7;
    color: #fff;
}

.servers-stats-panel .total-label {
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
    color: #6b7280;
}

.servers-list-wrapper {
    max-height: 700px;
    overflow-y: auto;
}

.servers-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.servers-list-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.servers-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.3);
    border-radius: 10px;
}

.server-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.server-row:last-child {
    border-bottom: none;
}

.server-img-preview {
    width: 80px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    background: #2d3748;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.server-info-col .s-name {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.server-info-col .s-ver {
    font-size: 13px;
    color: #6b7280;
}

.server-players-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 140px;
}

.server-players-col .players-text {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-bar-fill.green {
    background: #10b981;
}

.progress-bar-fill.yellow {
    background: #f59e0b;
}

.progress-bar-fill.red {
    background: #ef4444;
}

.server-ver-col {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
    min-width: 40px;
    text-align: right;
}

/* Настройки */
.settings-card {
    max-width: 700px;
    margin: 0 auto;
}

.settings-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-info-row .label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.settings-info-row .value {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.settings-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Магазин */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.donate-card {
    text-align: center;
    transition: 0.4s;
}

.donate-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.donate-card h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
}

.donate-card .price {
    font-size: 36px;
    font-weight: 700;
    color: #fb923c;
    margin: 10px 0;
}

.donate-card .perks {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    text-align: left;
}

.donate-card .perks li {
    padding: 8px 0;
    color: #9ca3af;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.donate-card .perks li::before {
    content: "✅";
    color: #10b981;
}

.donate-info h3 {
    color: #fb923c;
    margin-bottom: 10px;
    font-size: 20px;
}

.donate-info p {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 15px;
}

/* Поддержка */
.ticket-form {
    max-width: 800px;
    margin: 0 auto 40px;
}

.ticket-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    color: #10b981;
    display: none;
    margin-bottom: 24px;
}

.my-tickets {
    max-width: 800px;
    margin: 0 auto;
}

.my-tickets h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.ticket-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ticket-list-item:hover {
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateX(4px);
}

.ticket-list-item .info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-list-item .info .subject {
    font-weight: 500;
    color: #fff;
}

.ticket-list-item .info .meta {
    font-size: 13px;
    color: #6b7280;
}

.status-badge {
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.status-new {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.status-open {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-hold {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-resolved {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.status-closed {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

/* Тикеты */
.ticket-container {
    max-width: 1000px;
    margin: 0 auto;
}

.ticket-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.ticket-topbar .left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ticket-topbar .left h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.ticket-topbar .subject {
    font-size: 20px;
    color: #fff;
    font-weight: 500;
}

.ticket-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.ticket-sidebar {
    background: rgba(20, 24, 31, 0.4);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ticket-sidebar .label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    margin-bottom: 6px;
}

.ticket-sidebar .label:first-child {
    margin-top: 0;
}

.ticket-sidebar .value {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
}

.ticket-sidebar .info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    gap: 8px;
}

.ticket-sidebar .info-row .label-text {
    color: #6b7280;
    white-space: nowrap;
}

.ticket-sidebar .info-row .value-text {
    color: #fff;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.ticket-sidebar select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    margin-top: 4px;
    cursor: pointer;
}

.ticket-sidebar select:focus {
    outline: none;
    border-color: #f97316;
}

.ticket-sidebar select option {
    background: #14181f;
    color: #fff;
}

.ticket-sidebar .tags-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    margin-top: 4px;
}

.ticket-sidebar .tags-input:focus {
    outline: none;
    border-color: #f97316;
}

.ticket-sidebar .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ticket-sidebar .tag {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(249, 115, 22, 0.08);
}

.ticket-sidebar .tag .remove-tag {
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    line-height: 1;
}

.ticket-sidebar .tag .remove-tag:hover {
    color: #ef4444;
}

.ticket-main {
    background: rgba(20, 24, 31, 0.4);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ticket-message {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ticket-message .author {
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.ticket-message .author .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #c2410c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.ticket-message .date {
    font-size: 13px;
    color: #6b7280;
    margin-left: 46px;
}

.ticket-message .text {
    color: #9ca3af;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-top: 8px;
    padding-left: 46px;
}

.comments-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.comments-section h3 .count {
    color: #6b7280;
    font-weight: 400;
    font-size: 14px;
}

.comment-item-inline {
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.comment-item-inline .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.comment-item-inline .author {
    font-weight: 500;
    color: #fb923c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-item-inline .avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #c2410c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
}

.comment-item-inline .date {
    font-size: 13px;
    color: #6b7280;
}

.comment-item-inline .text {
    color: #9ca3af;
    line-height: 1.6;
    white-space: pre-wrap;
    margin-top: 6px;
    padding-left: 34px;
}

.comment-item-inline.internal {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.03);
}

.internal-badge {
    font-size: 11px;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 1px 10px;
    border-radius: 30px;
    font-weight: 500;
}

.comment-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #f97316;
}

.comment-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.comment-form .btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.comment-form .btn-primary {
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: #fff;
}

.comment-form .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.3);
}

.comment-form .btn-internal {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.comment-form .btn-internal:hover {
    background: rgba(245, 158, 11, 0.2);
}

.closed-message {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 20px;
}

.login-to-comment {
    text-align: center;
    padding: 30px 20px;
    color: #6b7280;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 20px;
}

.login-to-comment a {
    color: #fb923c;
    text-decoration: none;
    font-weight: 500;
}

.login-to-comment a:hover {
    text-decoration: underline;
}

/* Темы */
.topic-container {
    max-width: 900px;
    margin: 0 auto;
}

.topic-header {
    margin-bottom: 24px;
}

.topic-header .meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.topic-header .category-badge {
    font-size: 13px;
    font-weight: 500;
    color: #fb923c;
    background: rgba(249, 115, 22, 0.12);
    padding: 4px 14px;
    border-radius: 30px;
}

.topic-header .comments-badge {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.topic-header .comments-badge span {
    color: #10b981;
    font-weight: 600;
}

.topic-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.topic-header .meta-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 15px;
}

.topic-header .author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
}

.topic-header .author .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #c2410c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.topic-header .author .name {
    font-weight: 500;
    color: #fff;
}

.topic-content {
    margin-bottom: 24px;
    line-height: 1.8;
}

.topic-content .text {
    color: #9ca3af;
    white-space: pre-wrap;
}

.comments-section {
    background: rgba(20, 24, 31, 0.4);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.comments-section .comments-header {
    margin-bottom: 20px;
}

.comments-section .comments-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.comment-item {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.comment-item .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.comment-item .author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #fff;
}

.comment-item .author .avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #c2410c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}

.comment-item .author .name {
    color: #fff;
}

.comment-item .author .role-badge-sm {
    font-size: 11px;
    padding: 1px 10px;
    border-radius: 30px;
    font-weight: 500;
}

.comment-item .date {
    font-size: 13px;
    color: #6b7280;
}

.comment-item .text {
    color: #9ca3af;
    line-height: 1.7;
    white-space: pre-wrap;
    padding-left: 40px;
}

.comment-item.internal {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.03);
}

.comment-item.internal .author .name {
    color: #f59e0b;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-comments .icon {
    font-size: 44px;
    display: block;
    margin-bottom: 12px;
}

/* Роли */
.role-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.role-admin {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.role-moderator {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.role-player {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
}

.role-badge-sm {
    font-size: 11px;
    padding: 1px 10px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-block;
    margin-left: 4px;
}

/* Админ-панель */
.admin-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header .left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header .left h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-container {
    display: flex;
    gap: 24px;
    background: rgba(20, 24, 31, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    overflow: hidden;
}

.admin-sidebar {
    width: 250px;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-sidebar nav a {
    display: block;
    padding: 12px 16px;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.2s;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
}

.admin-content {
    flex: 1;
    padding: 24px;
}

/* Адаптивность */
#site-wrapper {
    width: min(1920px, 100%);
    max-width: 1920px;
    min-height: 100vh;
    transform: none !important;
    overflow: visible;
}

#bg-image {
    width: 100%;
    max-width: none;
    height: 100vh;
    min-height: 900px;
    object-fit: cover;
}

@media screen and (max-width: 1024px) {
    #site-wrapper {
        width: 100% !important;
        max-width: none !important;
        transform: none !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    #bg-image {
        width: 100% !important;
        height: 100% !important;
        position: fixed;
    }

    .header {
        padding: 0 20px;
        height: 70px;
        justify-content: space-between;
    }

    .header-left {
        position: static;
        left: auto;
    }

    .header-right {
        position: static;
        right: auto;
    }

    .hamburger {
        position: static;
        right: auto;
    }

    .logo img {
        width: 150px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        padding: 40px 20px 30px;
    }

    .hero-logo {
        width: 50%;
        max-width: 400px;
    }

    .features {
        flex-wrap: wrap;
        padding: 30px 20px 40px;
        gap: 15px;
    }

    .feature-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 200px;
        padding: 24px 20px;
    }

    .forum-section,
    .form-section,
    .play-section,
    .profile-section,
    .rules-section,
    .settings-section,
    .shop-section,
    .support-section,
    .ticket-section,
    .tickets-section,
    .topic-section,
    .admin-section {
        padding: 20px;
    }

    .forum-header h1,
    .form-header h1,
    .play-header h1,
    .profile-header h1,
    .rules-header h1,
    .servers-header h1,
    .settings-header h1,
    .shop-header h1,
    .support-header h1,
    .tickets-header h1 {
        font-size: 32px;
    }

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

    .ticket-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .admin-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 768px) {
    .header-center {
        display: none;
    }

    .header {
        padding: 0 16px;
        height: 60px;
    }

    .hamburger {
        display: flex;
        position: static;
    }

    .logo img {
        width: 120px;
    }

    .hero {
        padding: 30px 16px 20px;
    }

    .hero-logo {
        width: 70%;
        max-width: 300px;
    }

    .hero-slogan {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-btn {
        padding: 14px 40px;
        font-size: 16px;
    }

    .features {
        padding: 20px 16px 30px;
    }

    .forum-section,
    .form-section,
    .play-section,
    .profile-section,
    .rules-section,
    .settings-section,
    .shop-section,
    .support-section,
    .ticket-section,
    .tickets-section,
    .topic-section,
    .admin-section {
        padding: 16px;
    }

    .forum-header h1,
    .form-header h1,
    .play-header h1,
    .profile-header h1,
    .rules-header h1,
    .servers-header h1,
    .settings-header h1,
    .shop-header h1,
    .support-header h1,
    .tickets-header h1 {
        font-size: 26px;
    }

    .server-ip-box .ip {
        font-size: 24px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .ticket-sidebar {
        grid-template-columns: 1fr;
    }

    .profile-actions,
    .settings-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-actions .hero-btn,
    .profile-actions .btn-secondary,
    .settings-actions .hero-btn,
    .settings-actions .btn-secondary,
    .form-actions .hero-btn,
    .form-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .hero-btn,
    .form-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 0 12px;
        height: 54px;
    }

    .logo img {
        width: 90px;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .hero {
        padding: 20px 12px 15px;
    }

    .hero-logo {
        width: 85%;
        max-width: 250px;
    }

    .hero-slogan {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .features {
        padding: 15px 12px 25px;
    }

    .feature-card {
        flex: 0 0 100%;
    }

    .forum-header h1,
    .form-header h1,
    .play-header h1,
    .profile-header h1,
    .rules-header h1,
    .servers-header h1,
    .settings-header h1,
    .shop-header h1,
    .support-header h1,
    .tickets-header h1 {
        font-size: 22px;
    }

    .forum-category h2 {
        font-size: 18px;
    }

    .forum-subcategory {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .sub-stats {
        justify-content: flex-start;
    }

    .topic-item {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .topic-stats {
        justify-content: flex-start;
    }

    .server-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .server-players-col {
        min-width: 100px;
        align-items: flex-start;
    }

    .server-img-preview {
        width: 60px;
        height: 34px;
    }

    .profile-field {
        flex-direction: column;
        gap: 4px;
    }

    .profile-balance {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

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

    .donate-card {
        padding: 20px;
    }

    .ticket-message .text {
        padding-left: 0;
    }

    .comment-item .text {
        padding-left: 0;
    }

    .comment-item-inline .text {
        padding-left: 0;
    }

    .admin-sidebar nav {
        flex-direction: column;
    }
}

/* Тикеты - список */
.tickets-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tickets-header {
    text-align: center;
    margin-bottom: 40px;
}

.tickets-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tickets-header h1 span {
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ticket-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ticket-filters select,
.ticket-filters input {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #e8edf5;
    font-size: 14px;
}

.ticket-filters select:focus,
.ticket-filters input:focus {
    outline: none;
    border-color: #f97316;
}

.ticket-filters select option {
    background: #14181f;
    color: #e8edf5;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(20, 24, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 12px;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
}

.ticket-item:hover {
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateX(4px);
}

.ticket-item .info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ticket-item .info .subject {
    font-weight: 500;
    color: #fff;
    font-size: 17px;
}

.ticket-item .info .meta {
    font-size: 13px;
    color: #6b7280;
}

.ticket-item .right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Стили для .status-badge уже есть в CSS */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   АДМИН-ПАНЕЛЬ
   ============================================ */

.admin-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header .left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header .left h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-container {
    display: flex;
    gap: 24px;
    background: rgba(20, 24, 31, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    overflow: hidden;
}

.admin-sidebar {
    width: 250px;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-sidebar nav a {
    display: block;
    padding: 12px 16px;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.2s;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
}

.admin-content {
    flex: 1;
    padding: 24px;
}

/* ===== СТАТИСТИКА ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-card h3 {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

/* ===== ЗАГОЛОВКИ СЕКЦИЙ ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 22px;
    color: #fff;
    margin: 0;
}

/* ===== КНОПКИ ===== */
.btn-primary {
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.3);
}

.btn-sm {
    padding: 4px 12px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-edit {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.btn-edit:hover {
    background: rgba(249, 115, 22, 0.4);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.4);
}

/* ===== КАРТОЧКИ ЭЛЕМЕНТОВ ===== */
.item-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    transition: 0.3s;
}

.item-card:hover {
    border-color: rgba(249, 115, 22, 0.2);
}

.item-card .info {
    flex: 1;
}

.item-card .info .title {
    font-weight: 600;
    color: #fff;
    font-size: 16px;
}

.item-card .info .desc {
    font-size: 13px;
    color: #6b7280;
}

.item-card .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== ДРЕВОВИДНЫЙ ФОРУМ ===== */
.forum-tree {
    margin: 0;
    padding: 0;
    list-style: none;
}

.forum-tree li {
    list-style: none;
    margin-bottom: 4px;
}

.forum-tree .category-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 8px;
    overflow: hidden;
}

.forum-tree .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: 0.3s;
    border-left: 4px solid rgba(249, 115, 22, 0.5);
}

.forum-tree .category-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.forum-tree .category-header .toggle {
    font-size: 18px;
    transition: 0.3s;
    color: #6b7280;
    margin-right: 10px;
    user-select: none;
}

.forum-tree .category-header .toggle.open {
    transform: rotate(90deg);
}

.forum-tree .category-header .info {
    flex: 1;
}

.forum-tree .category-header .info .title {
    font-weight: 600;
    color: #fff;
    font-size: 16px;
}

.forum-tree .category-header .info .desc {
    font-size: 13px;
    color: #6b7280;
}

.forum-tree .category-children {
    padding-left: 30px;
    display: none;
}

.forum-tree .category-children.open {
    display: block;
}

.forum-tree .subcategory-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
    overflow: hidden;
}

.forum-tree .subcategory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: 0.3s;
}

.forum-tree .subcategory-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.forum-tree .subcategory-header .toggle {
    font-size: 14px;
    transition: 0.3s;
    color: #6b7280;
    margin-right: 8px;
    user-select: none;
}

.forum-tree .subcategory-header .toggle.open {
    transform: rotate(90deg);
}

.forum-tree .subcategory-header .info {
    flex: 1;
}

.forum-tree .subcategory-header .info .title {
    font-weight: 500;
    color: #e8edf5;
    font-size: 14px;
}

.forum-tree .subcategory-header .info .desc {
    font-size: 12px;
    color: #6b7280;
}

.forum-tree .subcategory-children {
    padding-left: 30px;
    display: none;
}

.forum-tree .subcategory-children.open {
    display: block;
}

.forum-tree .topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.01);
    margin-bottom: 2px;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
}

.forum-tree .topic-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.forum-tree .topic-item .info .title {
    font-size: 14px;
    color: #9ca3af;
}

.forum-tree .topic-item .info .desc {
    font-size: 12px;
    color: #6b7280;
}

.forum-tree .topic-item .actions {
    display: flex;
    gap: 6px;
}

/* ===== ФОРМЫ В АДМИНКЕ ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #e8edf5;
    font-size: 14px;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select option {
    background: #14181f;
    color: #e8edf5;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #14181f;
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-box h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 22px;
}

.modal-box .close-modal {
    float: right;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-box .close-modal:hover {
    color: #fff;
}

/* ===== ФАЙЛОВЫЙ ИНПУТ ===== */
.file-input-wrapper {
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.file-input-wrapper:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.04);
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-input-wrapper .file-label {
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
}

.file-input-wrapper .file-label:hover {
    color: #e8edf5;
}

/* ===== АДАПТИВНОСТЬ АДМИНКИ ===== */
@media (max-width: 992px) {
    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .admin-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-sidebar nav a {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .admin-section {
        padding: 20px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .forum-tree .category-children {
        padding-left: 16px;
    }

    .forum-tree .subcategory-children {
        padding-left: 16px;
    }
}

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

    .item-card {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================ */

@media screen and (max-width: 1024px) {
    #site-wrapper {
        width: 100% !important;
        transform: none !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    #bg-image {
        width: 100% !important;
        height: 100% !important;
        position: fixed;
    }

    .header {
        padding: 0 20px;
        height: 70px;
        justify-content: space-between;
    }

    .header-left {
        position: static;
        left: auto;
    }

    .header-right {
        position: static;
        right: auto;
    }

    .hamburger {
        position: static;
        right: auto;
    }

    .logo img {
        width: 150px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        padding: 40px 20px 30px;
    }

    .hero-logo {
        width: 50%;
        max-width: 400px;
    }

    .features {
        flex-wrap: wrap;
        padding: 30px 20px 40px;
        gap: 15px;
    }

    .feature-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 200px;
        padding: 24px 20px;
    }

    .forum-section,
    .form-section,
    .play-section,
    .profile-section,
    .rules-section,
    .settings-section,
    .shop-section,
    .support-section,
    .ticket-section,
    .tickets-section,
    .topic-section,
    .admin-section {
        padding: 20px;
    }

    .forum-header h1,
    .form-header h1,
    .play-header h1,
    .profile-header h1,
    .rules-header h1,
    .servers-header h1,
    .settings-header h1,
    .shop-header h1,
    .support-header h1,
    .tickets-header h1 {
        font-size: 32px;
    }

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

    .ticket-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .admin-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 768px) {
    .header-center {
        display: none;
    }

    .header {
        padding: 0 16px;
        height: 60px;
    }

    .hamburger {
        display: flex;
        position: static;
    }

    .logo img {
        width: 120px;
    }

    .hero {
        padding: 30px 16px 20px;
    }

    .hero-logo {
        width: 70%;
        max-width: 300px;
    }

    .hero-slogan {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-btn {
        padding: 14px 40px;
        font-size: 16px;
    }

    .features {
        padding: 20px 16px 30px;
        gap: 12px;
    }

    .feature-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 150px;
        padding: 20px 16px;
    }

    .feature-card .icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .feature-card p {
        font-size: 13px;
    }

    .forum-section,
    .form-section,
    .play-section,
    .profile-section,
    .rules-section,
    .settings-section,
    .shop-section,
    .support-section,
    .ticket-section,
    .tickets-section,
    .topic-section,
    .admin-section {
        padding: 16px;
    }

    .forum-header h1,
    .form-header h1,
    .play-header h1,
    .profile-header h1,
    .rules-header h1,
    .servers-header h1,
    .settings-header h1,
    .shop-header h1,
    .support-header h1,
    .tickets-header h1 {
        font-size: 26px;
    }

    .server-ip-box .ip {
        font-size: 24px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .ticket-sidebar {
        grid-template-columns: 1fr;
    }

    .profile-actions,
    .settings-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-actions .hero-btn,
    .profile-actions .btn-secondary,
    .settings-actions .hero-btn,
    .settings-actions .btn-secondary,
    .form-actions .hero-btn,
    .form-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .hero-btn,
    .form-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 0 12px;
        height: 54px;
    }

    .logo img {
        width: 90px;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .hero {
        padding: 20px 12px 15px;
    }

    .hero-logo {
        width: 85%;
        max-width: 250px;
    }

    .hero-slogan {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .features {
        padding: 15px 12px 25px;
        gap: 10px;
    }

    .feature-card {
        flex: 0 0 100%;
        padding: 16px 14px;
    }

    .feature-card .icon {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .feature-card h3 {
        font-size: 14px;
    }

    .feature-card p {
        font-size: 12px;
    }

    .forum-header h1,
    .form-header h1,
    .play-header h1,
    .profile-header h1,
    .rules-header h1,
    .servers-header h1,
    .settings-header h1,
    .shop-header h1,
    .support-header h1,
    .tickets-header h1 {
        font-size: 22px;
    }

    .forum-category h2 {
        font-size: 18px;
    }

    .forum-subcategory {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .sub-stats {
        justify-content: flex-start;
    }

    .topic-item {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .topic-stats {
        justify-content: flex-start;
    }

    .server-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .server-players-col {
        min-width: 100px;
        align-items: flex-start;
    }

    .server-img-preview {
        width: 60px;
        height: 34px;
    }

    .profile-field {
        flex-direction: column;
        gap: 4px;
    }

    .profile-balance {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

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

    .donate-card {
        padding: 20px;
    }

    .ticket-message .text {
        padding-left: 0;
    }

    .comment-item .text {
        padding-left: 0;
    }

    .comment-item-inline .text {
        padding-left: 0;
    }

    .admin-sidebar nav {
        flex-direction: column;
    }
}

.forum-page #site-wrapper {
    overflow: visible;
}

.forum-layout {
    width: min(1500px, calc(100% - 96px));
    margin: 0 auto;
    padding: 46px 0 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
}

.forum-main-column,
.forum-sidebar {
    min-width: 0;
}

.forum-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.forum-kicker,
.forum-category-label {
    color: #f97316;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.forum-page-header h1 {
    margin-top: 8px;
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    color: #fff;
}

.forum-page-header p {
    max-width: 680px;
    margin-top: 12px;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1.6;
}

[hidden] {
    display: none !important;
}

.forum-create-button,
.forum-toolbar-button,
.forum-error button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(249, 115, 22, 0.32);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(239, 68, 68, 0.14));
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.forum-create-button:hover,
.forum-toolbar-button:hover,
.forum-error button:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.58);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(239, 68, 68, 0.2));
}

.forum-toolbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(13, 16, 22, 0.74);
    backdrop-filter: blur(14px);
}

.forum-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #6b7280;
    font-size: 13px;
}

.forum-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
}

.forum-breadcrumb a:hover {
    color: #fff;
}

.breadcrumb-current {
    color: #e5e7eb;
    font-weight: 700;
}

.forum-toolbar-button {
    min-height: 34px;
    padding: 0 12px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 12px;
}

.forum-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.forum-category-block {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 24, 31, 0.88), rgba(14, 17, 23, 0.82));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.forum-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-category-heading h2 {
    margin-top: 5px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.forum-category-heading p {
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}

.forum-category-count {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
    font-size: 13px;
    font-weight: 800;
}

.forum-rows {
    display: flex;
    flex-direction: column;
}

.forum-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 78px 88px;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    padding: 13px 24px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    transition: background 0.2s ease, padding 0.2s ease;
}

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

.forum-row:hover {
    padding-left: 28px;
    background: rgba(255, 255, 255, 0.035);
}

.forum-row-icon,
.forum-topic-avatar,
.top-author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(249, 115, 22, 0.22);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(59, 130, 246, 0.1));
    color: #fb923c;
    font-weight: 900;
}

.forum-row-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 16px;
}

.forum-row-main,
.forum-topic-main,
.latest-topic-main,
.top-author-main {
    min-width: 0;
}

.forum-row-main strong,
.forum-topic-main strong,
.latest-topic-main strong,
.top-author-main strong {
    display: block;
    overflow: hidden;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-row-main small,
.forum-topic-main small,
.latest-topic-main small,
.top-author-main small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #6b7280;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-row-stat,
.forum-topic-comments {
    text-align: center;
}

.forum-row-stat b,
.forum-topic-comments b {
    display: block;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 800;
}

.forum-row-stat small,
.forum-topic-comments small {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 10px;
    text-transform: uppercase;
}

.forum-topic-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    color: #6b7280;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.forum-topic-toolbar a {
    color: #fb923c;
    text-decoration: none;
    font-weight: 700;
}

.forum-create-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
}

.forum-topic-list {
    display: flex;
    flex-direction: column;
}

.forum-topic-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 86px;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 12px 24px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    transition: background 0.2s ease;
}

.forum-topic-row:hover {
    background: rgba(255, 255, 255, 0.035);
}

.forum-topic-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 13px;
}

.forum-side-card {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(17, 21, 28, 0.86);
    backdrop-filter: blur(14px);
}

.forum-side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.forum-side-mark,
.forum-side-count {
    color: #fb923c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.forum-announcement {
    display: block;
    margin: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.forum-announcement:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.16);
}

.announcement-blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.04));
}

.announcement-orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(249, 115, 22, 0.04));
}

.announcement-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.04));
}

.announcement-title {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.announcement-text {
    display: block;
    margin-top: 5px;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.45;
}

.latest-topic {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    transition: background 0.2s ease;
}

.latest-topic:hover {
    background: rgba(255, 255, 255, 0.035);
}

.latest-topic-dot {
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

.top-author {
    display: grid;
    grid-template-columns: 24px 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.top-author-place {
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.top-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 11px;
}

.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 16px;
}

.forum-stats-grid>div {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-stats-grid>div:last-child {
    border-right: 0;
}

.forum-stats-grid strong {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.forum-stats-grid span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 10px;
    text-transform: uppercase;
}

.forum-side-empty,
.forum-empty-small {
    padding: 20px 16px;
    color: #6b7280;
    font-size: 12px;
}

.forum-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 28px;
    text-align: center;
}

.forum-empty strong,
.forum-error strong {
    color: #e5e7eb;
    font-size: 15px;
}

.forum-empty span,
.forum-error span {
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

.forum-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 30px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 16px;
    background: rgba(127, 29, 29, 0.08);
    text-align: center;
}

.forum-error button {
    margin-top: 18px;
    cursor: pointer;
}

.forum-loading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forum-loading-line {
    height: 82px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    background-size: 200% 100%;
    animation: forum-loading 1.5s infinite;
}

@keyframes forum-loading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

@media screen and (max-width: 1100px) {
    .forum-layout {
        width: min(100% - 40px, 900px);
        grid-template-columns: 1fr;
    }

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

    .forum-side-card {
        margin-bottom: 0;
    }

    .forum-side-announcements,
    .forum-stats-card {
        grid-column: span 2;
    }
}

@media screen and (max-width: 768px) {
    .forum-layout {
        width: calc(100% - 32px);
        padding: 28px 0 50px;
    }

    .forum-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .forum-page-header h1 {
        font-size: 36px;
    }

    .forum-page-header p {
        font-size: 14px;
    }

    .forum-row {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 13px 16px;
    }

    .forum-row-stat {
        display: none;
    }

    .forum-category-heading,
    .forum-topic-row {
        padding-left: 16px;
        padding-right: 16px;
    }

    .forum-category-heading {
        align-items: flex-start;
    }

    .forum-topic-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .forum-topic-comments {
        display: none;
    }

    .forum-sidebar {
        grid-template-columns: 1fr;
    }

    .forum-side-announcements,
    .forum-stats-card {
        grid-column: span 1;
    }
}

@media screen and (max-width: 480px) {
    .forum-layout {
        width: calc(100% - 24px);
    }

    .forum-toolbar {
        padding: 0 11px;
    }

    .forum-page-header h1 {
        font-size: 30px;
    }

    .forum-category-heading {
        padding: 18px 14px;
    }

    .forum-row {
        min-height: 76px;
        padding: 11px 14px;
    }

    .forum-row-main strong,
    .forum-topic-main strong {
        font-size: 13px;
    }
}

.forum-page .user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    cursor: pointer;
}

.forum-page .user-tray {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 200;
    min-width: 190px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(17, 21, 28, 0.98);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
}

.forum-page .user-block {
    position: relative;
}

.forum-page .user-tray .tray-item,
.forum-page .user-tray .tray-btn-logout {
    display: flex;
    width: 100%;
    padding: 10px 11px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.forum-page .user-tray .tray-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.forum-page .user-tray .tray-btn-logout {
    color: #f87171;
}

.forum-page .user-tray .tray-btn-logout:hover {
    background: rgba(239, 68, 68, 0.08);
}

.header-right .user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0;
    cursor: pointer
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1b222d;
    color: #fff;
    font-weight: 800
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.header-balance {
    color: #fff;
    font-weight: 800
}

.header-deposit {
    background: #78bd3f;
    color: #fff;
    text-decoration: none;
    border-radius: 9px;
    padding: 10px 14px;
    font-weight: 800
}

.profile-modern-card {
    max-width: 1080px;
    margin: 0 auto;
    background: rgba(15, 18, 25, .82);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 22px;
    padding: 28px
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.profile-avatar-large {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #202733;
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    border: 3px solid rgba(251, 146, 60, .45)
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.profile-identity {
    flex: 1
}

.profile-identity h2 {
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    font-size: 28px;
    color: #fff
}

.profile-identity span {
    color: #8f98a8
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .05);
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden
}

.profile-info {
    background: rgba(20, 24, 31, .72);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.profile-info span {
    color: #7d8797;
    font-size: 12px;
    text-transform: uppercase
}

.profile-info strong {
    color: #fff
}

.profile-settings {
    margin-top: 24px;
    padding: 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .06)
}

.profile-settings label {
    display: block;
    margin: 10px 0
}

.profile-upload {
    display: grid;
    gap: 10px;
    margin: 20px 0
}

.topic-page-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 18px
}

.topic-page-title h1 {
    font-family: 'Russo One', sans-serif;
    font-size: 32px;
    color: #fff;
    margin: 8px 0
}

.topic-page-meta {
    display: flex;
    gap: 14px;
    color: #788394;
    font-size: 13px;
    flex-wrap: wrap
}

.topic-author-link {
    color: #fb923c;
    text-decoration: none;
    font-weight: 700
}

.topic-breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    color: #697385
}

.topic-breadcrumb a {
    color: #9aa4b4;
    text-decoration: none
}

.topic-status-line {
    display: flex;
    gap: 8px
}

.topic-state {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800
}

.topic-state.closed {
    background: rgba(239, 68, 68, .12);
    color: #fb7185
}

.topic-state.pinned {
    background: rgba(251, 146, 60, .12);
    color: #fb923c
}

.topic-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.topic-action {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer
}

.topic-post {
    display: grid;
    grid-template-columns: 190px 1fr;
    background: rgba(13, 17, 24, .82);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px
}

.topic-author-card {
    background: rgba(9, 12, 18, .6);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .05)
}

.topic-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    background: #252d3a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 12px
}

.topic-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.topic-author-name {
    color: #fff;
    font-weight: 800;
    text-decoration: none
}

.topic-author-role {
    color: #fb923c;
    font-size: 12px;
    margin-top: 5px
}

.topic-post-body {
    padding: 22px 26px
}

.topic-post-date {
    color: #687386;
    font-size: 12px;
    margin-bottom: 18px;
    text-align: right
}

.topic-post-content {
    color: #d1d5db;
    line-height: 1.8;
    overflow-wrap: anywhere
}

.topic-closed-message {
    padding: 18px;
    border: 1px solid rgba(239, 68, 68, .18);
    color: #fb7185;
    border-radius: 12px;
    text-align: center
}

.topic-comment-form {
    margin-top: 20px;
    display: grid;
    gap: 12px
}

.topic-comment-form textarea {
    min-height: 140px
}

.forum-topic-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 80px 125px;
    align-items: center;
    gap: 14px
}

.forum-topic-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #252d3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800
}

.forum-topic-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.forum-topic-main strong {
    display: block;
    color: #fff
}

.forum-topic-author {
    color: #fb923c
}

.forum-topic-date {
    color: #778195;
    font-size: 12px;
    text-align: right
}

.topic-lock,
.topic-pin {
    margin-right: 6px
}

.topic-pin {
    color: #fb923c
}

.forum-category-count {
    display: none !important
}

.home-news-section {
    padding: 40px 48px 60px;
    max-width: 1320px;
    margin: 0 auto
}

.home-news-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 20px
}

.home-news-kicker,
.rules-kicker,
.profile-kicker {
    color: #fb923c;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.home-news-header h2 {
    font-family: 'Russo One', sans-serif;
    color: #fff;
    margin-top: 5px
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.home-news-card {
    background: rgba(20, 24, 31, .68);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 16px;
    overflow: hidden
}

.home-news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover
}

.home-news-card-body {
    padding: 18px
}

.home-news-card-body span {
    color: #6f7a8b;
    font-size: 12px
}

.home-news-card h3 {
    color: #fff;
    margin: 7px 0
}

.home-news-card p {
    color: #8d97a8;
    line-height: 1.6
}

.home-news-empty {
    padding: 30px;
    color: #768193;
    text-align: center;
    background: rgba(20, 24, 31, .5);
    border-radius: 14px
}

.rules-content p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 14px
}

.rules-spacer {
    height: 5px
}

@media(max-width:900px) {
    .profile-hero {
        flex-wrap: wrap
    }

    .profile-info-grid {
        grid-template-columns: 1fr
    }

    .topic-post {
        grid-template-columns: 1fr
    }

    .topic-author-card {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
        flex-direction: row;
        gap: 12px;
        text-align: left
    }

    .topic-avatar {
        margin: 0;
        width: 62px;
        height: 62px
    }

    .topic-page-title {
        flex-direction: column
    }

    .forum-topic-row {
        grid-template-columns: 42px minmax(0, 1fr) 65px
    }

    .forum-topic-date {
        display: none
    }

    .home-news-grid {
        grid-template-columns: 1fr
    }
}


.header-right {
    gap: 10px;
}

.header-right .auth-buttons {
    display: flex;
    align-items: center;
}

.header-right .user-block[hidden],
.header-right .auth-buttons[hidden],
.mobile-auth[hidden],
.user-tray[hidden],
.profile-settings-panel[hidden] {
    display: none !important;
}

.header-right .user-block {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-user-identity {
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    cursor: pointer;
}

.header-user-identity:hover {
    background: rgba(255, 255, 255, .065);
    border-color: rgba(251, 146, 60, .25);
}

.header-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #202735;
    color: #fff;
    font-weight: 900;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.header-arrow {
    color: #778195;
    font-size: 10px;
    transition: transform .2s ease;
}

.header-arrow.open {
    transform: rotate(180deg);
}

.header-deposit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    background: #78bd3f;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(120, 189, 63, .18);
}

.header-deposit:hover {
    background: #88ce4b;
    transform: translateY(-1px);
}

.header-balance-box {
    min-width: 100px;
    min-height: 44px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-balance-label {
    color: #737d8f;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.header-balance-box strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    margin-top: 3px;
}

.header-right .user-tray {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    z-index: 1000;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(17, 21, 29, .98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.header-right .tray-item,
.header-right .tray-btn-logout {
    display: flex;
    align-items: center;
    padding: 11px 13px;
    border-radius: 9px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.header-right .tray-item:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.header-right .tray-btn-logout {
    color: #fb7185;
}

.header-right .tray-btn-logout:hover {
    background: rgba(239, 68, 68, .08);
}

.profile-page-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.profile-header {
    margin-bottom: 22px;
}

.profile-identity-panel {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 8px 0 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.profile-identity {
    flex: 1;
    min-width: 0;
}

.profile-identity-label {
    display: block;
    color: #727d90;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.profile-identity h2 {
    margin: 5px 0 9px;
    font-family: 'Russo One', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    text-transform: uppercase;
    color: #fff;
}

.profile-status-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(120, 189, 63, .12);
    border: 1px solid rgba(120, 189, 63, .2);
    color: #9bd96b;
    font-size: 11px;
    font-weight: 800;
}

.profile-settings-button {
    border: 1px solid rgba(251, 146, 60, .28);
    border-radius: 10px;
    background: rgba(251, 146, 60, .1);
    color: #fb923c;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
}

.profile-settings-button:hover {
    background: rgba(251, 146, 60, .16);
}

.profile-settings-panel {
    margin-top: 24px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(10, 14, 22, .78);
    border: 1px solid rgba(255, 255, 255, .07);
}

.settings-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.settings-panel-header h3 {
    margin: 4px 0;
    font-family: 'Russo One', sans-serif;
    color: #fff;
    font-size: 22px;
}

.settings-panel-header p {
    color: #7d8797;
    font-size: 13px;
}

.settings-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 9px;
    background: rgba(255, 255, 255, .03);
    color: #aeb7c5;
    font-size: 22px;
    cursor: pointer;
}

.settings-group {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.settings-group-title {
    margin-bottom: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.settings-switch-row,
.settings-static-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 12px;
    background: rgba(255, 255, 255, .018);
    margin-top: 8px;
    cursor: pointer;
}

.settings-switch-row>span:first-child,
.settings-static-row>span:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-switch-row strong,
.settings-static-row strong {
    color: #e8edf5;
    font-size: 13px;
}

.settings-switch-row small,
.settings-static-row small,
.profile-upload-card small {
    color: #727d90;
    font-size: 11px;
    line-height: 1.45;
}

.settings-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-ui {
    position: relative;
    width: 44px;
    height: 24px;
    flex: 0 0 44px;
    border-radius: 999px;
    background: #303746;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: .2s;
}

.switch-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8d96a5;
    transition: .2s;
}

.settings-switch-row input:checked+.switch-ui {
    background: #78bd3f;
    border-color: #78bd3f;
}

.settings-switch-row input:checked+.switch-ui::after {
    transform: translateX(20px);
    background: #fff;
}

.settings-static-row b {
    color: #78bd3f;
    font-size: 11px;
}

.profile-upload-card {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    padding: 15px;
    border: 1px dashed rgba(255, 255, 255, .1);
    border-radius: 12px;
}

.profile-upload-card>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-upload-card input[type=file] {
    max-width: 270px;
    color: #9aa4b4;
    font-size: 11px;
}

.settings-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.settings-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
}

.settings-button.primary {
    background: #78bd3f;
    color: #fff;
}

.settings-button.secondary {
    background: rgba(255, 255, 255, .05);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, .08);
}

.settings-button.danger {
    background: rgba(239, 68, 68, .08);
    color: #fb7185;
    border-color: rgba(239, 68, 68, .18);
}

.settings-message {
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 9px;
    font-size: 12px;
}

.settings-message.success {
    color: #9bd96b;
    background: rgba(120, 189, 63, .08);
    border: 1px solid rgba(120, 189, 63, .16);
}

.settings-message.error {
    color: #fb7185;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .16);
}

.topic-shell {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 80px;
}

.reference-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #596477;
    font-size: 11px;
}

.reference-breadcrumb a {
    color: #9aa4b4;
    text-decoration: none;
    font-weight: 700;
}

.reference-breadcrumb a:hover {
    color: #fff;
}

.reference-breadcrumb strong {
    color: #d5d9e0;
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reference-topic-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.reference-topic-title-wrap {
    min-width: 0;
}

.reference-topic-badges {
    display: flex;
    gap: 7px;
    min-height: 22px;
}

.reference-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.reference-badge.pinned {
    background: #f97316;
    color: #fff;
}

.reference-badge.closed {
    background: #ef4444;
    color: #fff;
}

.reference-topic-header h1 {
    margin: 4px 0 7px;
    font-family: 'Russo One', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    color: #fff;
    line-height: 1.15;
}

.reference-topic-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #677287;
    font-size: 11px;
}

.reference-topic-meta a {
    color: #fb923c;
    font-weight: 800;
    text-decoration: none;
}

.topic-controls {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topic-control {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #bdc6d3;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.topic-control:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.reference-closed-bar {
    margin-bottom: 10px;
    padding: 9px 12px;
    border-left: 2px solid #22c55e;
    border-radius: 5px;
    background: rgba(15, 24, 27, .72);
    color: #d5dbe4;
    font-size: 12px;
    font-weight: 800;
}

.reference-closed-bar span {
    margin-right: 8px;
    color: #22c55e;
}

.reference-post {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 7px;
    overflow: hidden;
    background: rgba(9, 13, 28, .79);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
}

.reference-author {
    padding: 17px 13px;
    background: rgba(8, 12, 28, .72);
    border-right: 1px solid rgba(255, 255, 255, .045);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 190px;
}

.reference-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #20283a;
    color: #fff;
    font-size: 29px;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 9px;
    border: 2px solid rgba(251, 146, 60, .18);
}

.reference-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-author-name {
    color: #fb923c;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.reference-author-name:hover {
    color: #fdba74;
}

.reference-author-role {
    margin-top: 4px;
    color: #d0d6df;
    font-size: 9px;
    font-weight: 800;
}

.reference-author-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
    padding-top: 15px;
    width: 100%;
    color: #687388;
    font-size: 9px;
}

.reference-author-stats a {
    color: #8d9bb0;
    text-decoration: none;
}

.reference-post-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.reference-post-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    color: #4e5a70;
    font-size: 10px;
}

.reference-post-toolbar span {
    color: #566178;
}

.reference-post-body {
    padding: 25px 28px 34px;
    color: #e0e4ea;
    font-size: 14px;
    line-height: 1.8;
    min-height: 190px;
    overflow-wrap: anywhere;
}

.reference-post-first .reference-post-body {
    min-height: 260px;
}

.reference-comments {
    margin-top: 22px;
}

.reference-section-heading {
    display: flex;
    align-items: center;
    margin: 0 0 10px;
}

.reference-section-heading h2 {
    font-family: 'Russo One', sans-serif;
    color: #fff;
    font-size: 18px;
}

.reference-section-heading h2 span {
    color: #667187;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    margin-left: 5px;
}

.reference-empty,
.reference-closed-message,
.reference-error {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 7px;
    background: rgba(9, 13, 28, .72);
    color: #788499;
    text-align: center;
}

.reference-reply-form {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 7px;
    background: rgba(9, 13, 28, .78);
}

.reference-reply-form textarea {
    width: 100%;
    min-height: 145px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 7px;
    resize: vertical;
    background: #0c1120;
    color: #e8edf5;
    outline: none;
}

.reference-reply-form>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #687388;
    font-size: 10px;
}

.topic-submit {
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 7px;
    background: #f97316;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.topic-submit:hover {
    background: #fb923c;
}

.reference-error {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.reference-error strong {
    color: #fff;
}

.reference-error a {
    color: #fb923c;
    text-decoration: none;
    font-weight: 800;
}

.topic-loading,
.profile-loading {
    padding: 30px;
    border-radius: 8px;
    background: rgba(9, 13, 28, .72);
    color: #788499;
    text-align: center;
}

.forum-toolbar-button.is-loading {
    pointer-events: none;
    opacity: .65;
}

.forum-toolbar-button.is-loading::after {
    content: '';
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: forum-refresh-spin .65s linear infinite;
}

@keyframes forum-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.top-author {
    text-decoration: none;
}

.top-author:hover .top-author-main strong {
    color: #fb923c;
}

.top-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .header-user-identity {
        min-width: 0;
        padding: 7px;
    }

    .header-user-name {
        display: none;
    }

    .header-balance-box {
        min-width: 80px;
    }

    .header-deposit {
        padding: 0 12px;
    }

    .reference-topic-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .topic-controls {
        justify-content: flex-start;
    }

    .reference-post {
        grid-template-columns: 1fr;
    }

    .reference-author {
        min-height: 0;
        padding: 12px 15px;
        flex-direction: row;
        text-align: left;
        gap: 10px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .045);
    }

    .reference-avatar {
        width: 58px;
        height: 58px;
        margin: 0;
        flex: 0 0 58px;
    }

    .reference-author-name {
        font-size: 12px;
    }

    .reference-author-role {
        margin-top: 2px;
    }

    .reference-author-stats {
        margin: 0 0 0 auto;
        padding: 0;
        width: auto;
        text-align: right;
    }

    .reference-post-body,
    .reference-post-first .reference-post-body {
        min-height: 150px;
        padding: 18px;
    }

    .profile-identity-panel {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .profile-upload-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-right {
        right: 12px;
        gap: 5px;
    }

    .header-user-identity {
        border-radius: 9px;
    }

    .header-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .header-balance-box {
        min-width: 68px;
        padding: 6px 9px;
    }

    .header-deposit {
        min-height: 38px;
        padding: 0 9px;
        font-size: 11px;
    }

    .header-balance-box strong {
        font-size: 11px;
    }

    .header-balance-label {
        font-size: 8px;
    }

    .topic-shell,
    .profile-page-shell {
        width: min(100% - 24px, 1500px);
        padding-top: 25px;
    }

    .reference-post-body {
        font-size: 13px;
    }

    .settings-actions {
        flex-direction: column;
    }

    .settings-button {
        width: 100%;
    }
}


/* Header v10 */
.header-right .user-block {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.header-right .user-block[hidden] {
    display: none !important;
}

.header-right .header-balance-box {
    order: 1;
}

.header-right .header-deposit {
    order: 2;
}

.header-right .header-user-identity {
    order: 3;
}

.header-right .user-tray {
    order: 4;
}

#tray:not([hidden]) {
    display: block !important;
}

#tray[hidden] {
    display: none !important;
}

.header-user-identity {
    min-width: 165px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    cursor: pointer;
}

.header-balance-box {
    min-width: 100px;
}

.header-deposit {
    min-width: 112px;
}

.forum-page #site-wrapper {
    width: 100%;
    max-width: 1920px;
    overflow: visible;
    transform: none !important;
}

.forum-page #bg-image {
    width: 100%;
    max-width: none;
    height: 100vh;
    min-height: 900px;
    object-fit: cover;
}

.forum-page .header {
    width: 100%;
}

.forum-page .forum-layout {
    width: min(1500px, calc(100% - 48px));
    max-width: 1500px;
}

@media (max-width: 1200px) {
    .header-left {
        left: 24px;
    }

    .header {
        padding: 0 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .header-right .header-user-identity {
        min-width: 145px;
    }
}

@media (max-width: 900px) {
    .header-left {
        position: static;
    }

    .header {
        justify-content: space-between;
    }

    .header-center {
        display: none;
    }

    .header-right {
        margin-left: auto;
    }
}

/* Header v11 */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    min-width: 0;
    z-index: 500;
}

.header-right {
    min-width: 0;
    gap: 10px;
}

.header-right .user-block {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    z-index: 1000;
}

.header-right .header-balance-box {
    order: 1;
    flex: 0 0 auto;
}

.header-right .header-deposit {
    order: 2;
    flex: 0 0 auto;
}

.header-right .header-user-identity {
    order: 3;
    flex: 0 1 auto;
    min-width: 150px;
}

.header-right .user-tray {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 2000 !important;
    display: block;
    min-width: 220px;
}

.header-right .user-tray[hidden] {
    display: none !important;
}

.header-right .user-tray.open {
    display: block !important;
}

.header-right .user-tray .tray-item[hidden] {
    display: none !important;
}

.forum-page #center-wrapper {
    width: 100%;
    min-width: 0;
}

.forum-page #site-wrapper {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    transform: none !important;
}

.forum-page .forum-layout {
    width: min(1500px, calc(100% - 48px));
    max-width: 1500px;
}

@media (max-width: 1200px) {
    .header {
        padding-left: 24px;
        padding-right: 24px;
    }

    .header-left {
        left: 24px;
    }

    .header-right {
        right: 24px;
    }

    .nav-links {
        gap: 16px;
    }

    .forum-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .header-left {
        position: static;
    }

    .header-center {
        display: none;
    }

    .header {
        justify-content: space-between;
    }

    .header-right {
        position: static;
    }

    .forum-layout {
        grid-template-columns: 1fr;
        width: min(100% - 24px, 760px);
    }

    .forum-sidebar {
        order: 2;
    }
}

@media (max-width: 560px) {
    .header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-left {
        max-width: 120px;
    }

    .header-right {
        gap: 5px;
    }

    .header-right .header-balance-box {
        min-width: 68px;
    }

    .header-right .header-deposit {
        min-width: 0;
    }

    .header-right .header-user-identity {
        min-width: 42px;
        width: 42px;
        padding: 5px;
        justify-content: center;
    }

    .header-right .header-user-name,
    .header-right .header-arrow {
        display: none;
    }

    .header-right .user-tray {
        right: 0 !important;
        min-width: 210px;
    }
}


/* Forum v12 structural layout */
body.forum-page {
    background: #080a0f;
    overflow-x: hidden;
}

body.forum-page #center-wrapper {
    display: block;
    width: 100%;
    min-height: 100vh;
}

body.forum-page #site-wrapper {
    width: 100%;
    max-width: 1920px;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    transform: none !important;
}

body.forum-page #bg-image {
    display: block !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    min-height: 100vh;
    object-fit: cover;
    z-index: 0;
}

body.forum-page .header {
    position: sticky;
    top: 0;
    z-index: 3000;
}

body.forum-page .forum-layout {
    position: relative;
    z-index: 1;
    width: min(1500px, calc(100% - 64px));
    max-width: 1500px;
    margin: 0 auto;
    padding: 36px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

body.forum-page .forum-main-column,
body.forum-page .forum-sidebar {
    min-width: 0;
    width: 100%;
}

body.forum-page .forum-sidebar {
    position: sticky;
    top: 104px;
    z-index: 2;
}

body.forum-page .forum-side-card {
    width: 100%;
    overflow: hidden;
}

body.forum-page .user-block {
    position: relative;
    z-index: 3100;
}

body.forum-page .user-tray {
    z-index: 3200 !important;
}

@media (max-width: 1200px) {
    body.forum-page .forum-layout {
        width: min(100% - 40px, 1100px);
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }
}

@media (max-width: 900px) {
    body.forum-page .forum-layout {
        width: min(100% - 24px, 760px);
        grid-template-columns: 1fr;
    }

    body.forum-page .forum-sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    body.forum-page .forum-layout {
        width: calc(100% - 20px);
        padding-top: 20px;
    }
}


/* Unified inner-page layout */
body.content-page {
    min-width: 0;
    overflow-x: hidden;
    background: #080a0f;
}

body.content-page #center-wrapper {
    width: 100%;
    min-width: 0;
    display: block;
}

body.content-page #site-wrapper {
    width: 100%;
    max-width: 1920px;
    min-height: 100vh;
    margin: 0 auto;
    overflow: visible;
    transform: none !important;
}

body.content-page #bg-image {
    display: block !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    min-height: 100vh;
    object-fit: cover;
    z-index: 0;
}

body.content-page .header {
    width: 100%;
    max-width: none;
}

body.content-page>#center-wrapper>#site-wrapper>section,
body.content-page .shop-section,
body.content-page .servers-section,
body.content-page .play-section,
body.content-page .rules-section,
body.content-page .support-section,
body.content-page .tickets-section,
body.content-page .ticket-section,
body.content-page .topic-section,
body.content-page .profile-section,
body.content-page .form-section,
body.content-page .admin-section {
    width: min(1400px, calc(100% - 48px));
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

body.content-page .footer {
    width: 100%;
}

@media (max-width: 900px) {

    body.content-page>#center-wrapper>#site-wrapper>section,
    body.content-page .shop-section,
    body.content-page .servers-section,
    body.content-page .play-section,
    body.content-page .rules-section,
    body.content-page .support-section,
    body.content-page .tickets-section,
    body.content-page .ticket-section,
    body.content-page .topic-section,
    body.content-page .profile-section,
    body.content-page .form-section,
    body.content-page .admin-section {
        width: min(100% - 24px, 1400px);
    }
}

.home-content-section {
    width: min(1380px, calc(100% - 96px));
    margin: 0 auto;
    padding: 0 0 60px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: start;
}

.home-news-panel,
.home-servers-panel {
    min-width: 0;
    min-height: 390px;
    background: rgba(20, 24, 31, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

.home-section-heading {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-section-heading h2 {
    margin: 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.home-news-list {
    max-height: 520px;
    overflow-y: auto;
}

.home-news-list::-webkit-scrollbar,
.home-servers-list::-webkit-scrollbar {
    width: 5px;
}

.home-news-list::-webkit-scrollbar-track,
.home-servers-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.home-news-list::-webkit-scrollbar-thumb,
.home-servers-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
}

.home-news-card {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-news-card:last-child {
    border-bottom: 0;
}

.home-news-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.home-news-card-header h3 {
    margin: 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.home-news-card-header time {
    flex: 0 0 auto;
    color: #737e90;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.home-news-card>p {
    margin: 0;
    color: #a5adba;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.home-news-card figure {
    margin: 18px 0 0;
    overflow: hidden;
    border-radius: 12px;
    background: #0f131a;
}

.home-news-card figure img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.home-news-empty {
    padding: 32px 24px;
    color: #737e90;
    font-size: 14px;
    text-align: center;
}

.home-servers-list {
    max-height: 520px;
    overflow-y: auto;
    padding: 8px 18px 12px;
}

.home-server-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.home-server-row:last-child {
    border-bottom: 0;
}

.home-server-id {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #7347ff, #4f35e8);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.home-server-main {
    flex: 1;
    min-width: 0;
}

.home-server-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
}

.home-server-name-row strong {
    min-width: 0;
    color: #f4f5f7;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.home-server-copy {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #292f46;
    color: #aeb5c4;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.home-server-copy:hover,
.home-server-copy.copied {
    background: #343c58;
    color: #fff;
}

.home-server-copy:active {
    transform: scale(0.94);
}

.home-server-copy svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-server-status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
}

.home-server-status span {
    color: #8992aa;
    font-size: 13px;
    font-weight: 600;
}

.home-server-status strong {
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 600;
}

.home-server-status small {
    color: #8d96ad;
    font-size: 13px;
    font-weight: 500;
}

.home-server-progress {
    width: 100%;
    height: 7px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.home-server-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6846ff 0%, #17b6e8 52%, #4fdf8c 100%);
    box-shadow: 0 0 10px rgba(70, 155, 255, 0.28);
    transition: width 0.5s ease;
}

.home-server-progress span.warning {
    background: linear-gradient(90deg, #6846ff 0%, #17b6e8 38%, #4fdf8c 100%);
}

.home-server-progress span.critical {
    background: linear-gradient(90deg, #6846ff 0%, #17b6e8 28%, #ffb14e 100%);
}

@media (max-width: 1100px) {
    .home-content-section {
        width: min(100% - 48px, 1380px);
        grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    }
}

@media (max-width: 900px) {
    .home-content-section {
        width: min(100% - 32px, 1380px);
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 40px;
    }

    .home-news-panel,
    .home-servers-panel {
        min-height: 0;
    }

    .home-news-list,
    .home-servers-list {
        max-height: none;
    }
}

@media (max-width: 600px) {
    .home-content-section {
        width: calc(100% - 24px);
    }

    .home-section-heading {
        min-height: 62px;
        padding: 0 18px;
    }

    .home-section-heading h2 {
        font-size: 19px;
    }

    .home-news-card {
        padding: 18px;
    }

    .home-news-card-header {
        gap: 10px;
    }

    .home-news-card-header h3 {
        font-size: 17px;
    }

    .home-news-card-header time {
        font-size: 11px;
    }

    .home-servers-list {
        padding: 6px 14px 10px;
    }
}

.home-content-section {
    width: min(1380px, calc(100% - 96px));
    margin: 0 auto;
    padding: 0 0 60px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: stretch;
}

.home-news-panel,
.home-servers-panel {
    min-width: 0;
    min-height: 390px;
    background: rgba(20, 24, 31, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

.home-section-heading {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-section-heading h2 {
    margin: 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.home-news-list {
    max-height: 520px;
    overflow-y: auto;
}

.home-news-card {
    padding: 24px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
}

.home-news-card:last-child {
    border-bottom: 0;
}

.home-news-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.home-news-card-header h3 {
    margin: 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.home-news-card-header time {
    flex: 0 0 auto;
    color: #737e90;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.home-news-card>p {
    margin: 0;
    color: #a5adba;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.home-news-card figure {
    margin: 18px 0 0;
    overflow: hidden;
    border-radius: 10px;
    background: #0f131a;
}

.home-news-card figure img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.home-news-empty {
    padding: 32px 24px;
    color: #737e90;
    font-size: 14px;
    text-align: center;
}

.home-servers-list {
    max-height: 520px;
    overflow-y: auto;
    padding: 8px 18px 12px;
}

.home-server-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.home-server-row:last-child {
    border-bottom: 0;
}

.home-server-id {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef3d2f, #b9231d);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.home-server-id img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-server-main {
    flex: 1;
    min-width: 0;
}

.home-server-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
}

.home-server-name-row strong {
    min-width: 0;
    color: #f4f5f7;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.home-server-copy {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: rgba(239, 61, 47, 0.12);
    color: #aeb5c4;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.home-server-copy:hover,
.home-server-copy.copied {
    background: rgba(239, 61, 47, 0.24);
    color: #fff;
}

.home-server-copy:active {
    transform: scale(0.94);
}

.home-server-copy svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-server-status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
}

.home-server-status span {
    color: #8992aa;
    font-size: 13px;
    font-weight: 600;
}

.home-server-row.is-offline .home-server-status span {
    color: #ef7770;
}

.home-server-status strong {
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 600;
}

.home-server-status small {
    color: #8d96ad;
    font-size: 13px;
    font-weight: 500;
}

.home-server-progress {
    width: 100%;
    height: 7px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.home-server-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ef3d2f 0%, #f06a35 50%, #f5a23a 100%);
    box-shadow: 0 0 10px rgba(239, 61, 47, 0.22);
    transition: width 0.5s ease;
}

.home-server-progress span.warning {
    background: linear-gradient(90deg, #ef3d2f 0%, #f06a35 45%, #f5a23a 100%);
}

.home-server-progress span.critical {
    background: linear-gradient(90deg, #ef3d2f 0%, #ef5a32 45%, #ffb14e 100%);
}

.admin-server-preview {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(239, 61, 47, 0.12);
    color: #ef3d2f;
    font-weight: 800;
}

.admin-server-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-server-card {
    align-items: center;
}

.admin-current-image {
    margin-top: 10px;
    width: 100px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
}

.admin-current-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .home-content-section {
        width: min(100% - 48px, 1380px);
        grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    }
}

@media (max-width: 900px) {
    .home-content-section {
        width: min(100% - 32px, 1380px);
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 40px;
    }

    .home-news-panel,
    .home-servers-panel {
        min-height: 0;
    }

    .home-news-list,
    .home-servers-list {
        max-height: none;
    }
}

@media (max-width: 600px) {
    .home-content-section {
        width: calc(100% - 24px);
    }

    .home-section-heading {
        min-height: 62px;
        padding: 0 18px;
    }

    .home-section-heading h2 {
        font-size: 19px;
    }

    .home-news-card {
        padding: 18px;
    }

    .home-news-card-header {
        gap: 10px;
    }

    .home-news-card-header h3 {
        font-size: 17px;
    }

    .home-news-card-header time {
        font-size: 11px;
    }

    .home-servers-list {
        padding: 6px 14px 10px;
    }
}

:root {
    --tr-bg: #070a0f;
    --tr-panel: rgba(12, 16, 23, 0.88);
    --tr-panel-soft: rgba(17, 22, 30, 0.76);
    --tr-border: rgba(126, 151, 181, 0.16);
    --tr-border-strong: rgba(239, 61, 47, 0.48);
    --tr-text: #f4f6f8;
    --tr-muted: #8995a7;
    --tr-red: #ef3d2f;
    --tr-red-bright: #ff4b3d;
    --tr-blue: #2498d8;
    --tr-blue-soft: #66b8e8;
}

html,
body {
    background: var(--tr-bg);
    color: var(--tr-text);
}

body.content-page,
body.forum-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(5, 8, 12, 0.72), rgba(5, 8, 12, 0.94)),
        url('/images/index.jpg') center top / cover fixed no-repeat,
        var(--tr-bg);
}

#site-wrapper {
    width: min(1920px, 100%);
    background: transparent;
    overflow: visible;
}

#bg-image {
    position: fixed;
    width: 100vw;
    height: 100vh;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    opacity: 0.9;
}

.header {
    height: 72px;
    padding: 0 48px;
    background: rgba(6, 9, 14, 0.88);
    border-bottom: 1px solid rgba(130, 153, 181, 0.14);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.header-left {
    left: 48px;
}

.logo img {
    width: 176px;
}

.nav-links {
    gap: 36px;
}

.nav-links a {
    color: #8290a4;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #fff;
}

.nav-links a::after {
    bottom: -26px;
    height: 2px;
    background: linear-gradient(90deg, var(--tr-blue), var(--tr-red));
}

.auth-buttons .btn-login {
    background: rgba(255, 255, 255, 0.025);
    color: #dce3eb;
    border: 1px solid rgba(220, 227, 235, 0.2);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.auth-buttons .btn-login:hover {
    background: rgba(239, 61, 47, 0.1);
    color: #fff;
    border-color: rgba(239, 61, 47, 0.6);
    box-shadow: 0 8px 24px rgba(239, 61, 47, 0.12);
}

.hero {
    min-height: calc(100vh - 72px);
    height: calc(100vh - 72px);
    padding: 40px 24px 60px;
    justify-content: center;
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 48%, rgba(25, 51, 74, 0.24), transparent 42%);
    z-index: -1;
    pointer-events: none;
}

.hero-eyebrow {
    margin: 0 0 18px;
    color: #aeb8c7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
}

.hero-title {
    max-width: 1000px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: clamp(38px, 4vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.48);
}

.hero-title span {
    color: var(--tr-red-bright);
}

.hero-description {
    max-width: 640px;
    margin: 0 auto 34px;
    color: #aab4c2;
    font-size: 16px;
    line-height: 1.7;
}

.hero-btn {
    padding: 17px 54px;
    min-width: 200px;
    border: 1px solid rgba(255, 93, 79, 0.9);
    border-radius: 7px;
    background: linear-gradient(135deg, #f02f27, #c91820);
    box-shadow: 0 12px 45px rgba(239, 61, 47, 0.28);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-btn:hover {
    background: linear-gradient(135deg, #ff4439, #dc1f28);
    box-shadow: 0 16px 55px rgba(239, 61, 47, 0.4);
}

.features {
    width: min(1380px, calc(100% - 96px));
    margin: 0 auto;
    padding: 90px 0 72px;
    gap: 16px;
}

.feature-card {
    flex: 1 1 0;
    min-width: 0;
    min-height: 170px;
    padding: 28px 20px;
    background: rgba(9, 13, 19, 0.78);
    border: 1px solid rgba(126, 151, 181, 0.2);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02), 0 18px 45px rgba(0, 0, 0, .18);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 61, 47, 0.52);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35), 0 0 28px rgba(239, 61, 47, .08);
}

.feature-card .icon {
    font-size: 36px;
    margin-bottom: 13px;
    filter: saturate(0.9);
}

.feature-card h3 {
    margin-bottom: 8px;
    color: #f5f7fa;
    font-size: 16px;
    font-weight: 700;
}

.feature-card p {
    color: #93a0b1;
    font-size: 13px;
    line-height: 1.55;
}

.home-content-section {
    width: min(1380px, calc(100% - 96px));
    margin: 0 auto;
    padding: 0 0 72px;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr);
    gap: 20px;
}

.home-news-panel,
.home-servers-panel {
    min-height: 410px;
    background: rgba(8, 12, 18, 0.84);
    border: 1px solid rgba(126, 151, 181, 0.18);
    border-radius: 13px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .2);
}

.home-section-heading {
    min-height: 70px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(126, 151, 181, 0.12);
}

.home-section-heading h2 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.home-news-card {
    padding: 24px;
    border-bottom: 1px solid rgba(126, 151, 181, 0.1);
}

.home-news-card-header h3 {
    font-size: 18px;
    font-weight: 650;
}

.home-news-card-header time {
    color: #738196;
}

.home-news-card>p {
    color: #a4afbe;
}

.home-news-card figure {
    margin-top: 18px;
    border-radius: 11px;
    border: 1px solid rgba(126, 151, 181, 0.14);
    background: #080c12;
}

.home-news-card figure img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: inherit;
}

.home-servers-list {
    padding: 8px 18px 12px;
}

.home-server-row {
    padding: 12px 0;
    border-bottom-color: rgba(126, 151, 181, 0.1);
}

.home-server-id {
    background: linear-gradient(135deg, #d92c27, #8e171b);
    border-radius: 9px;
}

.home-server-copy {
    background: rgba(126, 151, 181, 0.1);
    border: 1px solid rgba(126, 151, 181, 0.08);
}

.home-server-copy:hover,
.home-server-copy.copied {
    background: rgba(239, 61, 47, 0.16);
    color: #fff;
    border-color: rgba(239, 61, 47, 0.3);
}

.home-server-progress span,
.home-server-progress span.warning,
.home-server-progress span.critical {
    background: linear-gradient(90deg, #d92c27 0%, #ef3d2f 55%, #ff8b52 100%);
    box-shadow: 0 0 10px rgba(239, 61, 47, 0.2);
}

.footer {
    border-top-color: rgba(126, 151, 181, 0.12);
    color: #667286;
    padding: 28px 20px 38px;
}

.footer span {
    color: #dce3eb;
}

.forum-section,
.form-section,
.play-section,
.profile-section,
.rules-section,
.servers-section,
.settings-section,
.shop-section,
.support-section,
.ticket-section,
.tickets-section,
.topic-section,
.admin-section {
    width: min(1380px, calc(100% - 96px));
    max-width: none;
    padding: 70px 0 80px;
}

.forum-header,
.form-header,
.play-header,
.profile-header,
.rules-header,
.servers-header,
.settings-header,
.shop-header,
.support-header,
.tickets-header {
    margin-bottom: 30px;
}

.forum-header h1,
.form-header h1,
.play-header h1,
.profile-header h1,
.rules-header h1,
.servers-header h1,
.settings-header h1,
.shop-header h1,
.support-header h1,
.tickets-header h1 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.forum-header h1 span,
.form-header h1 span,
.play-header h1 span,
.profile-header h1 span,
.rules-header h1 span,
.servers-header h1 span,
.settings-header h1 span,
.shop-header h1 span,
.support-header h1 span,
.tickets-header h1 span {
    color: var(--tr-red-bright);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.forum-container,
.form-container,
.server-ip-box,
.play-steps,
.play-extra,
.profile-card,
.rules-container,
.servers-list-wrapper,
.servers-stats-panel,
.settings-card,
.donate-grid,
.donate-info,
.ticket-form,
.my-tickets,
.ticket-container,
.topic-container {
    background: var(--tr-panel);
    border: 1px solid var(--tr-border);
    border-radius: 14px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
}

.forum-category,
.forum-category-block,
.rules-block,
.shop-card,
.support-card,
.ticket-card,
.topic-post,
.admin-container,
.admin-sidebar,
.admin-content,
.profile-modern-card {
    border-color: var(--tr-border);
}

button,
input,
select,
textarea {
    font-family: 'Inter', sans-serif;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(36, 152, 216, 0.75);
    outline-offset: 2px;
}

.mobile-menu {
    background: rgba(5, 8, 12, 0.98);
}

.mobile-menu a:hover {
    color: #fff;
}

.mobile-menu .mobile-auth .btn-login {
    background: linear-gradient(135deg, #d92c27, #9f171d);
}

@media (max-width: 1100px) {
    .header {
        padding: 0 28px;
    }

    .header-left {
        left: 28px;
    }

    .header-right {
        right: 28px;
    }

    .features,
    .home-content-section,
    .forum-section,
    .form-section,
    .play-section,
    .profile-section,
    .rules-section,
    .servers-section,
    .settings-section,
    .shop-section,
    .support-section,
    .ticket-section,
    .tickets-section,
    .topic-section,
    .admin-section {
        width: min(100% - 56px, 1380px);
    }

    .features {
        flex-wrap: wrap;
    }

    .feature-card {
        flex: 1 1 220px;
    }
}

@media (max-width: 900px) {
    .header {
        height: 68px;
    }

    .header-center {
        display: none;
    }

    .header-right {
        right: 76px;
    }

    .hero {
        min-height: calc(100vh - 68px);
        height: calc(100vh - 68px);
    }

    .features {
        padding-top: 70px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 0 18px;
    }

    .header-left {
        left: 18px;
    }

    .header-right {
        right: 62px;
    }

    .logo img {
        width: 145px;
    }

    .hero {
        min-height: calc(100svh - 68px);
        height: calc(100svh - 68px);
        padding: 30px 18px 40px;
    }

    .hero-eyebrow {
        font-size: 9px;
        letter-spacing: 0.24em;
    }

    .hero-title {
        font-size: 35px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-btn {
        min-width: 180px;
        padding: 15px 34px;
    }

    .features,
    .home-content-section,
    .forum-section,
    .form-section,
    .play-section,
    .profile-section,
    .rules-section,
    .servers-section,
    .settings-section,
    .shop-section,
    .support-section,
    .ticket-section,
    .tickets-section,
    .topic-section,
    .admin-section {
        width: calc(100% - 24px);
    }

    .features {
        padding-top: 60px;
        gap: 12px;
    }

    .feature-card {
        flex-basis: 100%;
    }

    .home-content-section {
        padding-bottom: 45px;
    }

    .home-news-card figure img {
        height: auto;
    }
}

.forum-page .forum-layout {
    width: min(1380px, calc(100% - 96px));
    padding: 70px 0 80px;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
}

.forum-page .forum-kicker,
.forum-page .forum-category-label {
    color: var(--tr-red-bright);
}

.forum-page .forum-page-header h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.forum-page .forum-create-button,
.forum-page .forum-toolbar-button,
.forum-page .forum-error button {
    border-color: rgba(239, 61, 47, 0.42);
    background: rgba(239, 61, 47, 0.08);
}

.forum-page .forum-create-button:hover,
.forum-page .forum-toolbar-button:hover,
.forum-page .forum-error button:hover {
    border-color: rgba(239, 61, 47, 0.7);
    background: rgba(239, 61, 47, 0.14);
}

.forum-page .forum-toolbar,
.forum-page .forum-category-block,
.forum-page .forum-side-announcements,
.forum-page .forum-stats-card {
    background: rgba(8, 12, 18, 0.84);
    border-color: var(--tr-border);
    border-radius: 13px;
}

.forum-page .forum-category-heading {
    border-bottom-color: rgba(126, 151, 181, 0.12);
}

.forum-page .forum-category-heading h2,
.forum-page .forum-topic-author,
.forum-page .topic-pin,
.forum-page .forum-kicker {
    color: var(--tr-red-bright);
}

.admin-section {
    padding-top: 60px;
}

.admin-header .left h1 {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.admin-container {
    background: rgba(8, 12, 18, 0.88);
    border-color: var(--tr-border);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

.admin-sidebar {
    width: 230px;
    background: rgba(5, 8, 13, 0.55);
    border-right-color: var(--tr-border);
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(239, 61, 47, 0.1);
    color: var(--tr-red-bright);
}

.admin-content {
    background: rgba(8, 12, 18, 0.36);
}

@media (max-width: 900px) {
    .forum-page .forum-layout {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .forum-page .forum-layout {
        width: calc(100% - 24px);
        padding-top: 45px;
    }
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
label,
span,
strong,
small,
li {
    font-family: 'Inter', sans-serif;
}

.admin-header .btn-secondary,
.btn-primary,
.btn-success,
.btn-submit,
.btn-save,
.save-btn,
.submit-btn,
.action-btn.primary,
.primary-button {
    background: linear-gradient(135deg, #d92c27, #a9181d);
    border-color: rgba(255, 75, 61, 0.55);
    color: #fff;
}

.admin-header .btn-secondary:hover,
.btn-primary:hover,
.btn-success:hover,
.btn-submit:hover,
.btn-save:hover,
.save-btn:hover,
.submit-btn:hover,
.action-btn.primary:hover,
.primary-button:hover {
    background: linear-gradient(135deg, #ef3d2f, #c51d25);
    border-color: rgba(255, 91, 78, 0.75);
}

a:not(.logo):not(.nav-links a):not(.tray-item):not(.tray-btn-logout):not(.btn-login):not(.hero-btn):not(.forum-create-button):not(.forum-toolbar-button) {
    text-underline-offset: 3px;
}

@media (min-width: 901px) {
    body:not(.forum-page) .header-center .nav-links {
        transform: translateX(20px);
    }
}


/* Homepage final layout */
.hero {
    min-height: 520px;
    height: 520px;
    padding: 150px 24px 24px;
}

.hero-center-logo {
    display: block;
    width: min(430px, 70vw);
    max-height: 112px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 16px;
}

.hero-title {
    margin-bottom: 14px;
}

.hero-description {
    margin-bottom: 28px;
}

.features {
    width: min(1380px, calc(100% - 96px));
    padding: 140px 0 42px;
    gap: 16px;
}

.feature-card {
    min-height: 170px;
}

.home-content-section {
    width: min(1380px, calc(100% - 96px));
    padding-bottom: 60px;
}

.home-news-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 20px;
    align-items: start;
    min-height: 190px;
}

.home-news-card figure {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 280px;
    height: 150px;
    margin: 0;
    overflow: hidden;
    border-radius: 11px;
    border: 1px solid rgba(126, 151, 181, 0.14);
    background: #080c12;
}

.home-news-card figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.home-news-card figure:empty {
    display: none;
}

.home-news-card-header {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 10px;
}

.home-news-card>p {
    grid-column: 2;
    grid-row: 2;
}

@media (max-width: 900px) {
    .hero {
        min-height: 500px;
        height: 500px;
    }

    .features {
        width: calc(100% - 32px);
        padding: 24px 0 36px;
    }

    .home-content-section {
        width: calc(100% - 32px);
    }

    .home-news-card {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .home-news-card figure {
        width: 220px;
        height: 125px;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: calc(100svh - 68px);
        height: auto;
        padding: 34px 18px 42px;
    }

    .hero-center-logo {
        width: min(360px, 86vw);
        max-height: 92px;
        margin-bottom: 14px;
    }

    .features {
        width: calc(100% - 24px);
        padding: 24px 0 34px;
    }

    .home-content-section {
        width: calc(100% - 24px);
    }

    .home-news-card {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 12px;
        min-height: 0;
    }

    .home-news-card figure {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: 180px;
    }

    .home-news-card-header {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 0;
    }

    .home-news-card>p {
        grid-column: 1;
        grid-row: 3;
    }
}


.home-news-card:not(.has-image) {
    grid-template-columns: minmax(0, 1fr);
}

.home-news-card:not(.has-image) .home-news-card-header,
.home-news-card:not(.has-image)>p {
    grid-column: 1;
}

.home-news-card:not(.has-image) .home-news-card-header {
    grid-row: 1;
}

.home-news-card:not(.has-image)>p {
    grid-row: 2;
}


/* TriuMRust v15 visual corrections */
.header,
.header a,
.header button,
.mobile-menu,
.mobile-menu a {
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.nav-links a {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.hero-center-logo {
    width: min(672px, 84vw);
    max-height: 224px;
}

.hero-title {
    max-width: 1100px;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-title span {
    color: #fff;
}

.hero-description {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.65;
}

.forum-page .forum-category-label {
    display: none !important;
}

.admin-current-image {
    margin-top: 12px;
    max-width: 320px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
}

.admin-current-image img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

@media (max-width: 600px) {
    .hero-center-logo {
        width: min(552px, 92vw);
        max-height: 184px;
    }

    .hero-title {
        font-size: clamp(23px, 7vw, 32px);
        letter-spacing: 0.02em;
    }

    .hero-description {
        font-size: 14px;
    }
}


/* TriuMRust v16 news layout */
.home-news-list {
    max-height: none;
    overflow: visible;
    padding: 16px;
}

.home-news-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    margin-bottom: 12px;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(9, 13, 19, 0.5);
}

.home-news-card:last-of-type {
    margin-bottom: 0;
}

.home-news-card figure {
    grid-column: 1;
    grid-row: 1;
    width: 220px;
    height: 140px;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(126, 151, 181, 0.14);
}

.home-news-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-card-content {
    min-width: 0;
    grid-column: 2;
}

.home-news-card:not(.has-image) {
    grid-template-columns: minmax(0, 1fr);
}

.home-news-card:not(.has-image) .home-news-card-content {
    grid-column: 1;
}

.home-news-card-header {
    margin-bottom: 9px;
}

.home-news-card-text {
    color: #a5adba;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.home-news-card-text.is-expanded {
    display: block;
    overflow: visible;
}

.home-news-read-more,
.home-news-load-more {
    border: 0;
    color: #fb923c;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.home-news-read-more {
    margin-top: 9px;
    padding: 0;
}

.home-news-load-more {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.home-news-load-more:hover,
.home-news-read-more:hover {
    color: #fff;
}

.admin-current-image {
    width: min(100%, 420px);
    height: 220px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(126, 151, 181, 0.14);
    border-radius: 10px;
    background: #080c12;
}

.admin-current-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-image-preview {
    display: none;
    width: min(100%, 420px);
    height: 220px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(126, 151, 181, 0.14);
    border-radius: 10px;
    background: #080c12;
}

.admin-image-preview.is-visible {
    display: block;
}

.admin-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 700px) {
    .home-news-card {
        grid-template-columns: 1fr;
    }

    .home-news-card figure,
    .home-news-card-content,
    .home-news-card:not(.has-image) .home-news-card-content {
        grid-column: 1;
    }

    .home-news-card figure {
        width: 100%;
        height: 180px;
    }
}

.home-content-section {
    align-items: start;
}

.home-news-panel,
.home-servers-panel {
    align-self: start;
}

.home-news-card {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
}

.home-news-card figure {
    grid-column: 1;
    grid-row: 1;
    width: 220px;
    height: 140px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-news-card figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: inherit;
}

.home-news-card-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
}

.home-news-card-text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 700px) {
    .home-news-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .home-news-card figure,
    .home-news-card-content,
    .home-news-card:not(.has-image) .home-news-card-content {
        grid-column: 1;
    }

    .home-news-card figure {
        grid-row: 1;
        width: 100%;
        height: 180px;
    }

    .home-news-card-content,
    .home-news-card:not(.has-image) .home-news-card-content {
        grid-row: 2;
    }
}

.home-content-section {
    align-items: start !important;
}

.home-news-panel {
    align-self: start !important;
    min-height: 410px;
    height: auto;
    max-height: none;
}

.home-servers-panel {
    align-self: start !important;
    height: 410px !important;
    min-height: 410px !important;
    max-height: 410px !important;
    overflow: hidden;
}

.home-servers-list {
    height: calc(410px - 70px);
    max-height: calc(410px - 70px) !important;
    overflow-y: auto;
    box-sizing: border-box;
}

.home-news-list {
    max-height: none;
    overflow: visible;
}

.home-news-card {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    min-height: 190px;
    max-height: 360px;
    box-sizing: border-box;
    overflow: hidden;
}

.home-news-card figure {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 220px !important;
    height: 140px !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.home-news-card figure img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

.home-news-card-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.home-news-card-text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 700px) {
    .home-servers-panel {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .home-servers-list {
        height: auto;
        max-height: none !important;
    }

    .home-news-card {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        min-height: 0;
        max-height: none;
    }

    .home-news-card figure {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: 180px !important;
    }

    .home-news-card-content {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
}.features {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 10px;
}

.feature-card {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 100px;
    height: 100px;
    padding: 10px 12px;
    background: rgba(7, 12, 18, 0.58);
    border: 1px solid rgba(20, 157, 255, 0.42);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 18px 45px rgba(0, 0, 0, 0.18);
    text-align: left;
    overflow: hidden;
}

.feature-card:nth-child(even) {
    border-color: rgba(239, 47, 47, 0.46);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 157, 255, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 24px rgba(20, 157, 255, 0.12);
}

.feature-card:nth-child(even):hover {
    border-color: rgba(239, 47, 47, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 24px rgba(239, 47, 47, 0.12);
}

.feature-card .icon {
    display: flex;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    margin: 0 8px 0 0;
    align-items: center;
    justify-content: center;
    font-size: 0;
    filter: none;
}

.feature-card .icon img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.feature-card-content {
    min-width: 0;
}

.feature-card h3 {
    margin: 0 0 6px;
    color: #16a8ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.feature-card:nth-child(even) h3 {
    color: #f13a32;
}

.feature-card p {
    margin: 0;
    color: #7f8995;
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .features {
        flex-wrap: wrap;
    }

    .feature-card {
        flex: 1 1 calc(50% - 5px);
    }
}

@media (max-width: 600px) {
    .features {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .feature-card {
        flex: 0 0 100%;
        width: 100%;
        height: 92px;
        min-height: 92px;
        padding: 9px 12px;
    }

    .feature-card .icon,
    .feature-card .icon img {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .feature-card h3 {
        font-size: 12px;
    }

    .feature-card p {
        font-size: 11px;
    }
}


/* Header v12 */
.header-left {
    left: 64px;
    gap: 18px;
}

.logo {
    flex: 0 0 auto;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-social {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.header-social img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    transition: opacity .2s ease, transform .2s ease;
}

.header-social .header-social-hover {
    position: absolute;
    inset: 3px;
    width: 34px;
    height: 34px;
    opacity: 0;
}

.header-social:hover img:first-child {
    opacity: 0;
    transform: scale(1.05);
}

.header-social:hover .header-social-hover {
    opacity: 1;
    transform: scale(1.05);
}

.header-right .header-balance-box {
    min-width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.header-right .header-deposit {
    background: #ef3030;
    box-shadow: 0 8px 24px rgba(239, 48, 48, .18);
}

.header-right .header-deposit:hover {
    background: #ff4141;
}

.header-right .header-user-identity {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.header-right .header-user-identity:hover {
    border-color: transparent;
    background: transparent;
}

.header-right .header-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 0;
    background: transparent;
}

@media (max-width: 1200px) {
    .header-left {
        left: 36px;
        gap: 14px;
    }

    .header-socials {
        gap: 6px;
    }
}

@media (max-width: 900px) {
    .header-left {
        left: auto;
        gap: 10px;
    }

    .header-socials {
        display: none;
    }
}

#userToggle,
#userToggle:hover,
#userToggle:focus,
#userToggle:focus-visible,
#userToggle:active {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
}

.header-right .header-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    overflow: hidden;
}

.header-right .header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


/* TriuMRust v17 news cards */
.home-content-section {
    width: min(1380px, calc(100% - 96px));
    margin: 0 auto;
    padding: 0 0 60px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr);
    gap: 20px;
    align-items: start;
}

.home-news-list {
    min-width: 0;
    max-height: none;
    padding: 0;
    overflow: visible;
}

.home-news-card {
    display: block !important;
    width: 100%;
    min-height: 0;
    max-height: none !important;
    margin: 0 0 16px;
    padding: 22px;
    box-sizing: border-box;
    overflow: visible !important;
    border: 1px solid rgba(126, 151, 181, 0.16);
    border-radius: 16px;
    background: rgba(20, 24, 31, 0.78);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
}

.home-news-card:last-of-type {
    margin-bottom: 0;
}

.home-news-card figure,
.home-news-card:not(.has-image) figure {
    display: block;
    width: 100% !important;
    height: 360px !important;
    min-width: 0;
    min-height: 0;
    margin: 0 0 20px !important;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(126, 151, 181, 0.14);
    border-radius: 13px;
    background: #080c12;
}

.home-news-card figure img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: inherit;
}

.home-news-card-content,
.home-news-card:not(.has-image) .home-news-card-content {
    display: block;
    width: 100%;
    min-width: 0;
    grid-column: auto !important;
    grid-row: auto !important;
}

.home-news-card:not(.has-image) .home-news-card-content {
    padding-top: 0;
}

.home-news-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(126, 151, 181, 0.16);
}

.home-news-card-header h3 {
    margin: 0;
    color: #f5f7fa;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.home-news-card-header time {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #738196;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
}

.home-news-card-text {
    display: -webkit-box;
    max-width: 100%;
    min-width: 0;
    color: #a5adba;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.home-news-card-text.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.home-news-read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 0;
    border: 0;
    color: #16c7ff;
    background: transparent;
    font: inherit;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}

.home-news-read-more:hover {
    color: #fff;
}

.home-news-load-more {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 13px 18px;
    border: 1px solid rgba(126, 151, 181, 0.16);
    border-radius: 10px;
    color: #16c7ff;
    background: rgba(255, 255, 255, 0.025);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.home-news-load-more:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .home-content-section {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
    }

    .home-news-card figure,
    .home-news-card:not(.has-image) figure {
        height: 280px !important;
    }
}

@media (max-width: 600px) {
    .home-content-section {
        width: calc(100% - 24px);
    }

    .home-news-card {
        padding: 16px;
        border-radius: 14px;
    }

    .home-news-card figure,
    .home-news-card:not(.has-image) figure {
        height: 210px !important;
        margin-top: 16px !important;
        margin-bottom: 0 !important;
    }

    .home-news-card-header {
        display: block;
    }

    .home-news-card-header h3 {
        font-size: 18px;
    }

    .home-news-card-header time {
        display: block;
        margin-top: 7px;
    }

    .home-news-card-text {
        font-size: 14px;
    }
}

.shop-page .shop-store {
    width: min(1400px, calc(100% - 48px));
    max-width: 1400px;
    margin: 0 auto;
    padding: 38px 0 64px;
}

.shop-store-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.shop-store-header h1 {
    margin: 0;
    color: #f5f5f5;
    font-family: Montserrat, Inter, sans-serif;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.05;
    font-weight: 800;
}

.shop-store-header h1 span {
    color: #b5d800;
}

.shop-store-header p {
    max-width: 720px;
    margin: 11px 0 0;
    color: #aeb4b5;
    font-size: 16px;
    line-height: 1.55;
}

.shop-orders-button {
    border: 1px solid rgba(181, 216, 0, .45);
    background: rgba(181, 216, 0, .08);
    color: #c8ed12;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.shop-orders-button:hover {
    background: rgba(181, 216, 0, .15);
}

.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.shop-categories {
    min-width: 0;
    flex: 1;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 3px;
}

.shop-category {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;
    background: rgba(27, 31, 31, .82);
    color: #aeb3b4;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.shop-category:hover,
.shop-category.active {
    color: #d6f32a;
    border-color: rgba(181, 216, 0, .55);
    background: rgba(181, 216, 0, .1);
}

.shop-search {
    flex: 0 0 280px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 9px;
    background: rgba(25, 29, 29, .86);
}

.shop-search span {
    color: #b5d800;
    font-size: 22px;
}

.shop-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #eef1ef;
    font-size: 14px;
}

.shop-search input::placeholder {
    color: #747a7b;
}

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

.shop-product-card {
    position: relative;
    min-width: 0;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(31, 35, 35, .96), rgba(23, 27, 27, .97));
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 9px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.shop-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(181, 216, 0, .5);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

.shop-product-badges {
    position: absolute;
    z-index: 3;
    top: 9px;
    left: 9px;
    display: flex;
    gap: 5px;
}

.shop-badge {
    padding: 4px 6px;
    color: #c9ed10;
    border: 1px solid rgba(181, 216, 0, .62);
    background: rgba(48, 59, 4, .78);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
}

.shop-favorite {
    position: absolute;
    z-index: 4;
    top: 8px;
    right: 8px;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    background: rgba(15, 18, 18, .7);
    color: #858c8d;
    font-size: 16px;
    cursor: pointer;
}

.shop-favorite.active,
.shop-favorite:hover {
    color: #d3f21c;
    border-color: rgba(181, 216, 0, .48);
}

.shop-product-image {
    height: 205px;
    flex: 0 0 205px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px 8px;
}

.shop-product-image img {
    width: 100%;
    height: 175px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .28));
}

.shop-product-image span,
.shop-purchase-image span {
    color: #4b5151;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .15em;
}

.shop-product-bottom {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.shop-product-info {
    min-width: 0;
    flex: 1;
    padding: 0;
}

.shop-product-info h2 {
    margin: 0 0 5px;
    color: #f0f2f0;
    font-size: 15px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.shop-product-price del {
    display: block;
    color: #62696a;
    font-size: 10px;
    line-height: 1;
}

.shop-product-price strong {
    display: block;
    margin-top: 2px;
    color: #f3f5f3;
    font-size: 16px;
    line-height: 1.1;
}

.shop-product-actions {
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shop-buy-gift,
.shop-buy-button {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.shop-buy-gift {
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .035);
    color: #a9afaf;
}

.shop-buy-gift:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.shop-buy-button {
    border: 1px solid rgba(181, 216, 0, .55);
    background: rgba(181, 216, 0, .11);
    color: #d6f21d;
}

.shop-buy-button:hover {
    background: rgba(181, 216, 0, .2);
}

.shop-section-title span {
    font-size: 15px;
}

.shop-section-title small {
    font-size: 12px;
}

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

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

    .shop-product-image {
        height: 175px;
        flex-basis: 175px;
    }

    .shop-product-image img {
        height: 150px;
    }

    .shop-search {
        flex-basis: 230px;
    }
}

@media (max-width: 700px) {
    .shop-page .shop-store {
        width: min(100% - 24px, 680px);
        padding-top: 26px;
    }

    .shop-store-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-search {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .shop-product-card {
        min-height: 285px;
    }

    .shop-product-image {
        height: 165px;
        flex-basis: 165px;
        padding: 16px 8px 6px;
    }

    .shop-product-image img {
        height: 140px;
    }

    .shop-product-bottom {
        min-height: 84px;
        padding: 8px;
    }

    .shop-product-actions {
        flex-basis: 86px;
    }

    .shop-product-info h2 {
        font-size: 14px;
    }

    .shop-product-price strong {
        font-size: 15px;
    }

    .shop-buy-gift,
    .shop-buy-button {
        height: 31px;
        font-size: 10px;
    }
}

.shop-loading,
.shop-empty {
    grid-column: 1 / -1;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, .08);
    border-radius: 10px;
    color: #858c8d;
    font-size: 13px;
}

.shop-modal-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(8px);
}

.shop-modal-overlay[hidden] {
    display: none;
}

.shop-modal-open {
    overflow: hidden;
}

.shop-modal {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 26px;
    background: #171b1b;
    border: 1px solid rgba(181, 216, 0, .24);
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.shop-modal h2 {
    margin: 0 36px 20px 0;
    color: #f2f4f2;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 21px;
}

.shop-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #8c9293;
    font-size: 25px;
    cursor: pointer;
}

.shop-purchase-product {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
}

.shop-purchase-image {
    width: 74px;
    height: 62px;
    flex: 0 0 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, .2);
}

.shop-purchase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-purchase-product strong,
.shop-purchase-product span {
    display: block;
}

.shop-purchase-product strong {
    color: #eef1ef;
    font-size: 15px;
}

.shop-purchase-product span {
    margin-top: 5px;
    color: #c8ed12;
    font-weight: 800;
}

.shop-server-list {
    display: grid;
    gap: 8px;
}

.shop-server-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    color: #d9ddda;
    text-align: left;
    cursor: pointer;
}

.shop-server-option:hover {
    border-color: rgba(181, 216, 0, .48);
    background: rgba(181, 216, 0, .07);
}

.shop-server-option small {
    color: #9ab900;
    font-weight: 700;
}

.shop-gift-field {
    margin-top: 15px;
}

.shop-gift-field label,
.shop-product-form label,
.shop-product-form .form-group > label {
    display: block;
    margin-bottom: 6px;
    color: #92999a;
    font-size: 11px;
    font-weight: 700;
}

.shop-gift-field input,
.shop-product-form input,
.shop-product-form select,
.shop-product-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 7px;
    outline: 0;
    background: rgba(0, 0, 0, .2);
    color: #e7ebe8;
}

.shop-gift-field input {
    height: 42px;
    padding: 0 12px;
}

.shop-purchase-note {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(181, 216, 0, .05);
    color: #8e9595;
    font-size: 12px;
    line-height: 1.55;
}

.shop-purchase-note strong {
    color: #c8ed12;
}

.shop-modal-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(181, 216, 0, .6);
    border-radius: 8px;
    background: rgba(181, 216, 0, .13);
    color: #d7f320;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.shop-modal-primary:hover {
    background: rgba(181, 216, 0, .22);
}

.shop-modal-primary:disabled {
    opacity: .5;
    cursor: wait;
}

.shop-modal-message {
    color: #9da4a4;
    font-size: 13px;
    line-height: 1.6;
}

.shop-confirm {
    display: grid;
    gap: 10px;
}

.shop-confirm > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.shop-confirm span {
    color: #7d8585;
    font-size: 11px;
}

.shop-confirm strong {
    color: #e8ece9;
    font-size: 13px;
    text-align: right;
}

.shop-my-orders {
    display: grid;
    gap: 8px;
}

.shop-my-order {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
}

.shop-my-order > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-my-order strong,
.shop-my-order span,
.shop-my-order small {
    display: block;
}

.shop-my-order strong {
    color: #e7ebe8;
    font-size: 12px;
}

.shop-my-order span,
.shop-my-order small {
    color: #7f8787;
    font-size: 10px;
}

.shop-my-order small {
    margin-top: 8px;
}

.shop-order-status {
    padding: 4px 7px;
    border-radius: 5px;
    font-weight: 700;
}

.shop-order-status.pending { color: #c8ed12; background: rgba(181, 216, 0, .08); }
.shop-order-status.processing { color: #8edbe8; background: rgba(52, 190, 210, .08); }
.shop-order-status.completed { color: #74d69a; background: rgba(64, 190, 117, .08); }
.shop-order-status.failed { color: #ef7d7d; background: rgba(220, 62, 62, .08); }
.shop-order-status.cancelled { color: #a2a7a7; background: rgba(255, 255, 255, .05); }

.shop-admin-toolbar {
    width: 100%;
}

.shop-admin-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.shop-admin-tab {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
    color: #92999a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.shop-admin-tab.active,
.shop-admin-tab:hover {
    border-color: rgba(181, 216, 0, .45);
    color: #c8ed12;
    background: rgba(181, 216, 0, .08);
}

.shop-admin-product-card {
    align-items: center;
}

.admin-shop-product-preview {
    width: 72px;
    height: 62px;
    flex: 0 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, .15);
    color: #4c5353;
    font-weight: 900;
}

.admin-shop-product-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-admin-hit {
    margin-left: 7px;
    padding: 2px 5px;
    border: 1px solid rgba(181, 216, 0, .5);
    border-radius: 4px;
    color: #c8ed12;
    font-size: 9px;
}

.shop-admin-table {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 9px;
}

.shop-admin-row {
    min-width: 760px;
    display: grid;
    grid-template-columns: 70px minmax(150px, 1.3fr) minmax(110px, 1fr) minmax(100px, 1fr) minmax(110px, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    color: #9ca2a2;
    font-size: 11px;
}

.shop-admin-row:last-child {
    border-bottom: 0;
}

.shop-admin-head {
    color: #6f7777;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(255, 255, 255, .018);
}

.shop-admin-row small {
    display: block;
    margin-top: 3px;
    color: #646b6b;
    font-size: 9px;
}

.shop-orders-table .shop-admin-row {
    grid-template-columns: 45px minmax(150px, 1fr) minmax(140px, 1.1fr) minmax(130px, 1fr) 90px 120px 135px;
}

.shop-server-selector {
    display: grid;
    gap: 6px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 7px;
    background: rgba(0, 0, 0, .12);
}

.shop-server-hint {
    color: #666e6e;
    font-size: 10px;
    line-height: 1.45;
}

.shop-server-check,
.shop-admin-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #a5abab !important;
    cursor: pointer;
}

.shop-server-check input,
.shop-admin-check input {
    width: auto !important;
}

.shop-product-form .form-group {
    margin-bottom: 12px;
}

.shop-product-form input,
.shop-product-form select {
    height: 38px;
    padding: 0 10px;
}

.shop-product-form textarea {
    min-height: 130px;
    padding: 10px;
    resize: vertical;
}

.shop-product-form input:focus,
.shop-product-form select:focus,
.shop-product-form textarea:focus {
    border-color: rgba(181, 216, 0, .5);
}

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

@media (max-width: 900px) {
    .shop-store-header {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-account-box {
        width: 100%;
        box-sizing: border-box;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-search {
        flex-basis: 42px;
        width: 100%;
        box-sizing: border-box;
    }

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

@media (max-width: 560px) {
    .shop-page .shop-store {
        width: calc(100% - 24px);
        padding-top: 25px;
    }

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

    .shop-product-card {
        min-height: 365px;
    }

    .shop-modal {
        padding: 20px;
    }
}

.shop-page .shop-store {
    width: min(1400px, calc(100% - 48px));
    max-width: 1400px;
    padding-top: 30px;
}

.shop-store-header {
    align-items: center;
    margin-bottom: 20px;
}

.shop-kicker {
    color: #ef4444;
}

.shop-store-header h1 span {
    color: #ef4444;
}

.shop-orders-button {
    border-color: rgba(239, 68, 68, .45);
    background: rgba(239, 68, 68, .08);
    color: #f87171;
}

.shop-orders-button:hover {
    background: rgba(239, 68, 68, .16);
}

.shop-server-section {
    margin-bottom: 14px;
}

.shop-section-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.shop-section-title span {
    color: #f0f2f0;
    font-size: 14px;
    font-weight: 800;
}

.shop-section-title small {
    color: #707777;
    font-size: 10px;
}

.shop-server-carousel,
.shop-category-carousel {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.shop-servers,
.shop-categories {
    min-width: 0;
    flex: 1;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 2px 1px 5px;
}

.shop-servers::-webkit-scrollbar,
.shop-categories::-webkit-scrollbar {
    display: none;
}

.shop-carousel-arrow {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(25, 29, 29, .9);
    color: #9da3a3;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: .18s ease;
}

.shop-carousel-arrow:hover {
    color: #f87171;
    border-color: rgba(239, 68, 68, .48);
    background: rgba(239, 68, 68, .08);
}

.shop-carousel-arrow[hidden] {
    display: none;
}

.shop-server-card {
    flex: 0 0 210px;
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: 10px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;
    background: rgba(27, 31, 31, .84);
    color: #9ca2a2;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}

.shop-server-card:hover,
.shop-server-card.active {
    border-color: rgba(239, 68, 68, .52);
    background: rgba(239, 68, 68, .08);
}

.shop-server-card-image {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(0, 0, 0, .18);
    color: #555c5c;
    font-size: 14px;
    font-weight: 900;
}

.shop-server-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-server-card-name {
    min-width: 0;
    overflow: hidden;
    color: #e9ecea;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-server-card-check {
    color: #6f7777;
    font-size: 9px;
    font-weight: 700;
}

.shop-server-card.active .shop-server-card-check {
    color: #f87171;
}

.shop-no-servers,
.shop-category-placeholder {
    width: 100%;
    padding: 13px;
    border: 1px dashed rgba(255, 255, 255, .08);
    border-radius: 8px;
    color: #6f7777;
    font-size: 11px;
    text-align: center;
}

.shop-catalog {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.shop-toolbar {
    margin-bottom: 10px;
    gap: 10px;
}

.shop-category-carousel {
    flex: 1;
    min-width: 0;
}

.shop-category {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    border-color: rgba(255, 255, 255, .065);
    background: rgba(27, 31, 31, .82);
    font-size: 11px;
}

.shop-category:hover,
.shop-category.active {
    color: #f87171;
    border-color: rgba(239, 68, 68, .5);
    background: rgba(239, 68, 68, .08);
}

.shop-search {
    flex: 0 0 245px;
    height: 36px;
    border-radius: 7px;
}

.shop-search span {
    color: #ef4444;
}

.shop-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.shop-product-card {
    min-height: 300px;
    border-radius: 8px;
}

.shop-product-card:hover {
    border-color: rgba(239, 68, 68, .45);
}

.shop-product-badges {
    top: 9px;
    left: 9px;
    gap: 4px;
}

.shop-badge {
    padding: 3px 6px;
    color: #f87171;
    border-color: rgba(239, 68, 68, .52);
    background: rgba(80, 14, 18, .72);
    font-size: 9px;
}

.shop-badge-hit {
    color: #ff9b9b;
}

.shop-favorite {
    top: 8px;
    right: 8px;
    width: 27px;
    height: 27px;
    border-radius: 6px;
    font-size: 15px;
}

.shop-favorite.active,
.shop-favorite:hover {
    color: #f87171;
    border-color: rgba(239, 68, 68, .45);
}

.shop-product-image {
    flex: 0 0 135px;
    min-height: 135px;
    padding: 12px 15px 2px;
    order: 1;
}

.shop-product-image img {
    height: 125px;
}

.shop-product-info {
    min-height: 82px;
    padding: 7px 11px 0;
    order: 2;
}

.shop-product-category {
    color: #686f70;
    font-size: 9px;
}

.shop-product-info h2 {
    margin: 4px 0 4px;
    font-size: 14px;
}

.shop-product-info p {
    font-size: 10px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}

.shop-product-bottom {
    margin-top: auto;
    padding: 9px 10px 10px;
    order: 3;
}

.shop-product-price del {
    font-size: 9px;
}

.shop-product-price strong {
    color: #f2f4f2;
    font-size: 15px;
}

.shop-product-actions {
    gap: 4px;
}

.shop-buy-gift,
.shop-buy-button {
    height: 31px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 9px;
}

.shop-buy-button {
    border-color: rgba(239, 68, 68, .5);
    background: rgba(239, 68, 68, .1);
    color: #f87171;
}

.shop-buy-button:hover {
    background: rgba(239, 68, 68, .19);
}

.shop-modal-primary {
    border-color: rgba(239, 68, 68, .6);
    background: rgba(239, 68, 68, .11);
    color: #f87171;
}

.shop-modal-primary:hover {
    background: rgba(239, 68, 68, .2);
}

.shop-purchase-note {
    background: rgba(239, 68, 68, .05);
}

.shop-purchase-note strong {
    color: #f87171;
}

.shop-admin-tabs .shop-admin-tab.active,
.shop-admin-tabs .shop-admin-tab:hover {
    border-color: rgba(239, 68, 68, .45);
    color: #f87171;
    background: rgba(239, 68, 68, .08);
}

.shop-product-form {
    display: block;
    width: 100%;
    padding-top: 4px;
}

.shop-product-form .form-group,
.shop-product-form .shop-server-selector,
.shop-product-form .shop-admin-check,
.shop-product-form > button {
    min-width: 0;
}

.shop-product-form .form-group {
    margin-bottom: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 9px;
    background: rgba(255, 255, 255, .018);
}

.shop-product-form .form-group > label,
.shop-product-form label {
    color: #a3a9a9;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.shop-product-form input,
.shop-product-form select,
.shop-product-form textarea {
    border-color: rgba(255, 255, 255, .075);
    background: rgba(10, 12, 12, .38);
    border-radius: 7px;
    color: #edf0ee;
}

.shop-product-form input:focus,
.shop-product-form select:focus,
.shop-product-form textarea:focus {
    border-color: rgba(239, 68, 68, .52);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .08);
}

.shop-server-selector {
    background: rgba(10, 12, 12, .28);
    border-color: rgba(255, 255, 255, .065);
}

.shop-server-check:hover,
.shop-admin-check:hover {
    color: #f87171 !important;
}

.shop-admin-check input:checked,
.shop-server-check input:checked {
    accent-color: #ef4444;
}

.admin-current-image,
.admin-image-preview {
    border-color: rgba(255, 255, 255, .07);
    background: rgba(0, 0, 0, .2);
}

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

@media (max-width: 900px) {
    .shop-store-header {
        align-items: stretch;
    }

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

}

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

    .shop-server-card {
        flex-basis: 190px;
    }

    .shop-search {
        flex-basis: 36px;
    }
}

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


.shop-modal {
    width: min(760px, 100%);
    border-color: rgba(239, 68, 68, .28);
}

.shop-modal-close:hover {
    color: #f87171;
}

.shop-purchase-product span {
    color: #f87171;
}

.shop-purchase-product small {
    display: block;
    margin-top: 5px;
    color: #747b7b;
    font-size: 10px;
}


.shop-form-section { margin: 16px 0; padding: 16px; border: 1px solid rgba(220, 38, 38, .25); border-radius: 12px; background: rgba(127, 29, 29, .08); }
.shop-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shop-form-hint { margin-top: 8px; color: #a1a1aa; font-size: 13px; line-height: 1.5; }
.shop-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.shop-toggle input { width: 18px; height: 18px; accent-color: #dc2626; }
@media (max-width: 640px) { .shop-form-grid { grid-template-columns: 1fr; } }



.shop-page .shop-product-card {
    min-height: 300px;
    height: 300px;
}

.shop-page .shop-product-image {
    flex: 0 0 190px;
    height: 190px;
    min-height: 190px;
    padding: 12px 10px 6px;
    order: 1;
}

.shop-page .shop-product-image img {
    width: 100%;
    height: 165px;
    object-fit: contain;
}

.shop-page .shop-product-bottom {
    flex: 1 1 auto;
    min-height: 110px;
    margin-top: 0;
    padding: 9px 10px 10px;
    align-items: center;
    order: 2;
}

.shop-page .shop-product-info {
    min-width: 0;
    min-height: 0;
    padding: 0;
    flex: 1 1 auto;
    order: 0;
}

.shop-page .shop-product-info h2 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.shop-page .shop-product-price del {
    font-size: 9px;
}

.shop-page .shop-product-price strong {
    margin-top: 2px;
    font-size: 16px;
}

.shop-page .shop-product-actions {
    flex: 0 0 94px;
    width: 94px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    order: 1;
}

.shop-page .shop-buy-gift,
.shop-page .shop-buy-button {
    width: 100%;
    height: 32px;
    padding: 0 7px;
    font-size: 10px;
}

.shop-page .shop-store-header p {
    font-size: 16px;
}

.shop-page .shop-section-title span {
    font-size: 15px;
}

.shop-page .shop-section-title small {
    font-size: 12px;
}

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

@media (max-width: 900px) {
    .shop-page .shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shop-page .shop-product-card {
        min-height: 285px;
        height: 285px;
    }

    .shop-page .shop-product-image {
        flex-basis: 175px;
        height: 175px;
        min-height: 175px;
    }

    .shop-page .shop-product-image img {
        height: 150px;
    }

    .shop-page .shop-product-bottom {
        min-height: 110px;
    }
}

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

    .shop-page .shop-product-card {
        min-height: 270px;
        height: 270px;
    }

    .shop-page .shop-product-image {
        flex-basis: 160px;
        height: 160px;
        min-height: 160px;
        padding: 10px 8px 5px;
    }

    .shop-page .shop-product-image img {
        height: 138px;
    }

    .shop-page .shop-product-bottom {
        min-height: 110px;
        padding: 8px;
    }

    .shop-page .shop-product-actions {
        flex-basis: 82px;
        width: 82px;
    }

    .shop-page .shop-product-info h2 {
        font-size: 14px;
    }

    .shop-page .shop-product-price strong {
        font-size: 15px;
    }

    .shop-page .shop-buy-gift,
    .shop-page .shop-buy-button {
        height: 30px;
        font-size: 9px;
    }
}

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

    .shop-page .shop-product-card {
        height: 285px;
        min-height: 285px;
    }

    .shop-page .shop-product-image {
        flex-basis: 175px;
        height: 175px;
        min-height: 175px;
    }

    .shop-page .shop-product-image img {
        height: 150px;
    }
}


.shop-page .shop-page-shell {
    width: min(1100px, calc(100% - 40px));
    margin: 22px auto 36px;
    padding: 30px 34px 18px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(7, 10, 12, .88), rgba(9, 12, 15, .72));
    box-shadow: 0 22px 70px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .025);
    backdrop-filter: blur(3px);
}

.shop-page .shop-store {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.shop-page .shop-store-header {
    align-items: flex-start;
    margin-bottom: 18px;
}

.shop-page .shop-store-header h1 {
    font-size: clamp(30px, 3vw, 40px);
    letter-spacing: -.025em;
}

.shop-page .shop-orders-button {
    align-self: flex-start;
    transform: translateY(-3px);
}

.shop-page .shop-store-header p {
    margin-top: 9px;
    color: #c4c8c8;
    font-size: 17px;
}

.shop-page .shop-server-section {
    margin-bottom: 14px;
}

.shop-page .shop-section-title span {
    font-size: 16px;
}

.shop-page .shop-section-title small {
    color: #8d9494;
    font-size: 12px;
}

.shop-page .shop-category,
.shop-page .shop-search,
.shop-page .shop-server-card {
    font-size: 14px;
}

.shop-page .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
    justify-content: start;
    gap: 14px;
}

.shop-page .shop-product-card {
    width: 100%;
    height: 286px;
    min-height: 286px;
    border-radius: 11px;
}

.shop-page .shop-product-image {
    flex: 0 0 178px;
    height: 178px;
    min-height: 178px;
    padding: 12px 12px 6px;
}

.shop-page .shop-product-image img {
    width: 100%;
    height: 154px;
}

.shop-page .shop-product-bottom {
    min-height: 108px;
    padding: 9px 10px 10px;
}

.shop-page .shop-product-info h2 {
    font-size: 16px;
    line-height: 1.18;
}

.shop-page .shop-product-price del {
    font-size: 10px;
}

.shop-page .shop-product-price strong {
    font-size: 17px;
}

.shop-page .shop-product-actions {
    flex-basis: 94px;
    width: 94px;
}

.shop-page .shop-buy-gift,
.shop-page .shop-buy-button {
    height: 33px;
    font-size: 11px;
}

.shop-page .footer {
    width: 100%;
    margin: 0;
    padding: 28px 20px 38px;
    border-top: 1px solid rgba(126, 151, 181, .12);
}

@media (max-width: 760px) {
    .shop-page .shop-page-shell {
        width: min(100% - 24px, 680px);
        margin-top: 14px;
        padding: 24px 18px 14px;
        border-radius: 14px;
    }

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

@media (max-width: 520px) {
    .shop-page .shop-page-shell {
        padding: 20px 12px 12px;
    }

    .shop-page .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-page .shop-product-card {
        max-width: 300px;
    }
}

.shop-page .shop-page-shell {
    width: min(1280px, calc(100% - 48px));
    padding: 15px 17px 20px;
}

.shop-page .shop-server-carousel {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.shop-page .shop-servers {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.shop-page .shop-servers::-webkit-scrollbar {
    display: none;
}

.shop-page .shop-server-card {
    flex: 0 1 clamp(175px, 18vw, 215px);
    width: clamp(175px, 18vw, 215px);
    min-width: 175px;
    min-height: 54px;
    height: auto;
    box-sizing: border-box;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 1px;
    padding: 4px 9px 6px;
    border-radius: 9px;
}

.shop-page .shop-server-card-image {
    width: 36px;
    height: 36px;
}

.shop-page .shop-server-card-name {
    align-self: end;
    overflow: visible;
    font-size: 12px;
    line-height: 14px;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.shop-page .shop-server-card-check {
    align-self: start;
    font-size: 9px;
    line-height: 12px;
}

.shop-page .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(235px, 270px));
    gap: 14px;
}

.shop-page .shop-product-card {
    width: 100%;
    height: 258px;
    min-height: 258px;
}

.shop-page .shop-product-image {
    flex: 0 0 154px;
    height: 154px;
    min-height: 154px;
    padding: 10px 10px 5px;
}

.shop-page .shop-product-image img {
    height: 136px;
}

.shop-page .shop-product-bottom {
    min-height: 104px;
    padding: 8px 10px 9px;
}

.shop-page .shop-product-info h2 {
    font-size: 15px;
    line-height: 1.18;
}

.shop-page .shop-product-price strong {
    font-size: 16px;
}

.shop-page .shop-product-actions {
    flex-basis: 88px;
    width: 88px;
    gap: 5px;
}

.shop-page .shop-buy-gift,
.shop-page .shop-buy-button {
    height: 32px;
    min-height: 32px;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 10px;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.shop-page .shop-buy-gift {
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(35, 40, 40, .88);
    color: #d7dbda;
}

.shop-page .shop-buy-gift:hover:not(:disabled) {
    border-color: rgba(239, 68, 68, .5);
    background: rgba(239, 68, 68, .12);
    color: #f87171;
}

.shop-page .shop-buy-gift:disabled {
    opacity: .45;
}

@media (max-width: 900px) {
    .shop-page .shop-page-shell {
        width: min(100% - 32px, 760px);
    }

    .shop-page .shop-grid {
        grid-template-columns: repeat(3, minmax(0, 270px));
    }
}

@media (max-width: 650px) {
    .shop-page .shop-page-shell {
        width: calc(100% - 24px);
        padding: 12px 10px 14px;
    }

    .shop-page .shop-orders-button {
        transform: none;
    }

    .shop-page .shop-server-card {
        flex-basis: clamp(165px, 58vw, 200px);
        width: clamp(165px, 58vw, 200px);
        min-width: 165px;
    }

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

    .shop-page .shop-product-card {
        height: 250px;
        min-height: 250px;
    }

    .shop-page .shop-product-image {
        flex-basis: 146px;
        height: 146px;
        min-height: 146px;
    }

    .shop-page .shop-product-image img {
        height: 128px;
    }
}

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

    .shop-page .shop-product-card {
        max-width: 270px;
    }
}

.modal-box.shop-product-modal {
    width: min(760px, calc(100vw - 40px));
    max-width: 760px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.modal-box.shop-product-modal-wide {
    width: min(1180px, calc(100vw - 40px));
    max-width: 1180px;
}

.shop-product-form-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.shop-product-form.is-bundle .shop-product-form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
    align-items: start;
}

.shop-product-form-main {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.shop-bundle-panel {
    min-width: 0;
}

#shopDynamicProductFields {
    min-width: 0;
    display: grid;
    gap: 12px;
}

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

.shop-field-hint,
.shop-command-hint {
    margin-top: 6px;
    color: #717979;
    font-size: 11px;
    line-height: 1.5;
}

.shop-server-dropdown {
    position: relative;
}

.shop-server-dropdown-toggle {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    background: rgba(0, 0, 0, .18);
    color: #d9dede;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.shop-server-dropdown-toggle:hover,
.shop-server-dropdown-toggle:focus {
    border-color: rgba(181, 216, 0, .45);
    outline: none;
}

.shop-server-dropdown-toggle span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-server-dropdown-tray {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    max-height: 245px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(181, 216, 0, .22);
    border-radius: 8px;
    background: #11161c;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
}

.shop-server-dropdown-tray[hidden] {
    display: none;
}

.shop-image-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.shop-upload-button {
    min-height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(181, 216, 0, .3);
    border-radius: 7px;
    background: rgba(181, 216, 0, .08);
    color: #d8e48d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    white-space: nowrap;
}

.shop-upload-button:hover {
    border-color: rgba(181, 216, 0, .58);
    background: rgba(181, 216, 0, .13);
}

.shop-upload-button input[type="file"] {
    display: none;
}

.shop-command-field textarea,
.shop-bundle-entry textarea {
    min-height: 118px;
}

.shop-command-auto {
    margin-top: 9px;
}

.shop-description-editor {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(0, 0, 0, .12);
}

.shop-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .025);
}

.shop-editor-toolbar button {
    min-width: 31px;
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    background: rgba(255, 255, 255, .025);
    color: #aeb5b5;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.shop-editor-toolbar button:hover {
    color: #e7eeee;
    border-color: rgba(181, 216, 0, .4);
}

.shop-editor-area {
    min-height: 155px;
    max-height: 320px;
    overflow-y: auto;
    padding: 11px;
    color: #d4dada;
    font-size: 13px;
    line-height: 1.65;
    outline: none;
}

.shop-editor-area:focus {
    box-shadow: inset 0 0 0 1px rgba(181, 216, 0, .3);
}

.shop-editor-area h3,
.shop-editor-area h4,
.shop-editor-area p,
.shop-editor-area ul,
.shop-editor-area ol,
.shop-editor-area blockquote {
    margin: 0 0 8px;
}

.shop-editor-area ul,
.shop-editor-area ol {
    padding-left: 22px;
}

.shop-product-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.shop-product-form-actions .btn-primary,
.shop-product-form-actions .btn-secondary {
    min-width: 112px;
}

.shop-bundle-panel {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 10px;
    background: rgba(0, 0, 0, .13);
}

.shop-bundle-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.shop-bundle-panel-head > div {
    display: grid;
    gap: 3px;
}

.shop-bundle-panel-head strong {
    color: #edf1f1;
    font-size: 15px;
}

.shop-bundle-panel-head span {
    color: #727a7a;
    font-size: 10px;
}

#shopBundleEntries {
    display: grid;
    gap: 10px;
}

.shop-bundle-entry {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 9px;
    background: rgba(255, 255, 255, .018);
}

.shop-bundle-entry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.shop-bundle-entry-head strong {
    overflow: hidden;
    color: #dfe5e5;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-bundle-entry-head button {
    border: 0;
    background: transparent;
    color: #c77b7b;
    font-size: 10px;
    cursor: pointer;
}

.shop-bundle-entry .form-group {
    margin-bottom: 9px;
}

.shop-bundle-image-preview {
    width: 58px;
    height: 58px;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 7px;
    background: rgba(0, 0, 0, .2);
}

.shop-bundle-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-bundle-empty {
    padding: 20px 12px;
    border: 1px dashed rgba(255, 255, 255, .08);
    border-radius: 8px;
    color: #737b7b;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 900px) {
    .modal-box.shop-product-modal-wide {
        width: 94vw;
        max-width: 760px;
    }

    .shop-product-form.is-bundle .shop-product-form-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .shop-form-grid-2,
    .shop-image-control {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-upload-button {
        width: 100%;
        box-sizing: border-box;
    }

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

    .shop-product-form-actions .btn-primary,
    .shop-product-form-actions .btn-secondary {
        min-width: 0;
        width: 100%;
    }
}

.shop-catalog-header > div {
    display: grid;
    gap: 4px;
}

.shop-catalog-header > div > span {
    color: #6f7777;
    font-size: 11px;
}

.shop-catalog-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.shop-catalog-categories,
.shop-item-picker-categories {
    display: flex;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.shop-catalog-categories button,
.shop-item-picker-categories button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
    color: #92999a;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.shop-catalog-categories button span {
    margin-left: 4px;
    color: #636b6b;
    font-size: 9px;
}

.shop-catalog-categories button.active,
.shop-catalog-categories button:hover,
.shop-item-picker-categories button.active,
.shop-item-picker-categories button:hover {
    border-color: rgba(181, 216, 0, .42);
    background: rgba(181, 216, 0, .08);
    color: #c8ed12;
}

.shop-catalog-search,
.shop-item-picker-search {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    background: rgba(0, 0, 0, .18);
    color: #d9dede;
    font: inherit;
    font-size: 11px;
    outline: none;
    box-sizing: border-box;
}

.shop-catalog-search:focus,
.shop-item-picker-search:focus {
    border-color: rgba(181, 216, 0, .45);
}

.shop-catalog-grid {
    width: 100%;
    max-height: min(68vh, 760px);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(126px, 148px));
    justify-content: start;
    align-content: start;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 6px 8px 2px;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.shop-catalog-card {
    min-width: 0;
    width: 100%;
    max-width: 148px;
    display: grid;
    grid-template-rows: 104px minmax(68px, auto) 30px;
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 9px;
    background: rgba(255, 255, 255, .018);
    box-sizing: border-box;
}

.shop-catalog-card-image {
    width: 100%;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(0, 0, 0, .17);
    color: #505757;
    font-size: 22px;
    font-weight: 900;
}

.shop-catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-catalog-card-info {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 3px;
}

.shop-catalog-card-info strong {
    min-width: 0;
    overflow: hidden;
    color: #dce2e2;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-catalog-card-info span,
.shop-catalog-card-info small {
    min-width: 0;
    overflow: hidden;
    color: #737b7b;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-catalog-card .btn-sm {
    width: 100%;
    height: 30px;
    margin: 0;
    box-sizing: border-box;
}

.shop-catalog-empty,
.shop-item-picker-empty {
    grid-column: 1 / -1;
    padding: 32px 18px;
    border: 1px dashed rgba(255, 255, 255, .075);
    border-radius: 8px;
    color: #747c7c;
    font-size: 11px;
    text-align: center;
}

.modal-box.shop-item-catalog-modal {
    width: min(640px, calc(100vw - 40px));
    max-width: 640px;
    box-sizing: border-box;
}

.shop-catalog-item-form {
    display: grid;
    gap: 12px;
}

.shop-catalog-item-form .form-group {
    margin: 0;
}

.shop-catalog-item-form input,
.shop-catalog-item-form select {
    width: 100%;
    box-sizing: border-box;
}

.shop-catalog-current-image {
    width: 92px;
    height: 92px;
    margin-top: 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 8px;
    background: rgba(0, 0, 0, .18);
}

.shop-catalog-current-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-catalog-select-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.shop-catalog-select-control input[readonly] {
    color: #99a1a1;
    cursor: default;
}

.shop-catalog-select-control .btn-secondary {
    min-height: 38px;
    padding: 0 13px;
    white-space: nowrap;
}

.shop-item-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.shop-item-picker-modal {
    width: min(1080px, 100%);
    max-height: min(88vh, 860px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: #14181f;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
    box-sizing: border-box;
}

.shop-item-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.shop-item-picker-head > div {
    display: grid;
    gap: 4px;
}

.shop-item-picker-head strong {
    color: #eff3f3;
    font-size: 18px;
}

.shop-item-picker-head span {
    color: #747c7c;
    font-size: 10px;
}

.shop-item-picker-head > button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #727a7a;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.shop-item-picker-head > button:hover {
    color: #fff;
}

.shop-item-picker-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 12px;
    min-width: 0;
}

.shop-item-picker-grid {
    min-height: 260px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    grid-auto-rows: 150px;
    gap: 9px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 5px 5px 2px;
    scrollbar-width: thin;
}

.shop-item-picker-card {
    min-width: 0;
    display: grid;
    grid-template-rows: 92px auto auto;
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 8px;
    background: rgba(255, 255, 255, .018);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.shop-item-picker-card:hover,
.shop-item-picker-card.selected {
    border-color: rgba(181, 216, 0, .42);
    background: rgba(181, 216, 0, .055);
}

.shop-item-picker-image {
    min-width: 0;
    width: 100%;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(0, 0, 0, .18);
    color: #4e5555;
    font-size: 18px;
    font-weight: 900;
}

.shop-item-picker-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-item-picker-card strong,
.shop-item-picker-card small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-item-picker-card strong {
    color: #dce2e2;
    font-size: 9px;
}

.shop-item-picker-card small {
    color: #737b7b;
    font-size: 8px;
}

@media (max-width: 900px) {
    .shop-catalog-controls,
    .shop-item-picker-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(118px, 142px));
    }

    .shop-item-picker-overlay {
        padding: 14px;
    }

    .shop-item-picker-modal {
        max-height: 92vh;
        padding: 14px;
    }
}

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

    .shop-catalog-card {
        max-width: none;
    }

    .shop-catalog-select-control {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-catalog-select-control .btn-secondary {
        width: 100%;
    }

    .shop-item-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 154px;
    }
}

.shop-catalog-category-navigation {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 7px;
    align-items: center;
}

.shop-catalog-category-navigation .shop-catalog-categories {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
}

.shop-catalog-category-navigation .shop-catalog-categories::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.shop-catalog-category-arrow {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(181, 216, 0, .18);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(181, 216, 0, .085), rgba(181, 216, 0, .025));
    color: #c8ed12;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 5px 18px rgba(0, 0, 0, .12);
    font: inherit;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
}

.shop-catalog-category-arrow span {
    display: block;
    margin-top: -2px;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.shop-catalog-category-arrow:hover:not(:disabled) {
    border-color: rgba(181, 216, 0, .5);
    background: linear-gradient(180deg, rgba(181, 216, 0, .15), rgba(181, 216, 0, .055));
    color: #ddff31;
    transform: translateY(-1px);
}

.shop-catalog-category-arrow:active:not(:disabled) {
    transform: translateY(0);
}

.shop-catalog-category-arrow:disabled {
    border-color: rgba(255, 255, 255, .035);
    background: rgba(255, 255, 255, .015);
    color: #414747;
    box-shadow: none;
    cursor: default;
    opacity: .55;
}

@media (max-width: 900px) {
    .shop-catalog-category-navigation {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 6px;
    }

    .shop-catalog-category-arrow {
        width: 34px;
        height: 34px;
    }
}

.shop-catalog-browser {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
}

.shop-catalog-browser .shop-catalog-grid {
    max-height: none;
    overflow: visible;
    padding: 2px;
    scrollbar-width: none;
}

.shop-catalog-browser .shop-catalog-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.shop-catalog-page-arrow {
    width: 42px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0;
    border: 1px solid rgba(181, 216, 0, .2);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(181, 216, 0, .1), rgba(181, 216, 0, .025));
    color: #c8ed12;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 8px 24px rgba(0, 0, 0, .14);
    font: inherit;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
}

.shop-catalog-page-arrow span {
    display: block;
    margin-top: -3px;
    font-size: 31px;
    font-weight: 300;
    line-height: 1;
}

.shop-catalog-page-arrow:hover:not(:disabled) {
    border-color: rgba(181, 216, 0, .54);
    background: linear-gradient(180deg, rgba(181, 216, 0, .17), rgba(181, 216, 0, .055));
    color: #e1ff43;
    transform: scale(1.03);
}

.shop-catalog-page-arrow:active:not(:disabled) {
    transform: scale(.98);
}

.shop-catalog-page-arrow:disabled {
    border-color: rgba(255, 255, 255, .035);
    background: rgba(255, 255, 255, .012);
    color: #3d4343;
    box-shadow: none;
    cursor: default;
    opacity: .48;
}

.shop-catalog-page-status {
    min-height: 18px;
    margin-top: 9px;
    color: #656d6d;
    font-size: 9px;
    text-align: center;
}

@media (max-width: 900px) {
    .shop-catalog-browser {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 7px;
    }

    .shop-catalog-page-arrow {
        width: 36px;
        height: 62px;
        border-radius: 10px;
    }
}

@media (max-width: 620px) {
    .shop-catalog-browser {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 5px;
    }

    .shop-catalog-page-arrow {
        width: 32px;
        height: 58px;
    }

    .shop-catalog-page-arrow span {
        font-size: 27px;
    }
}

.shop-page .shop-product-card.is-blocked {
    background: linear-gradient(180deg, rgba(61, 65, 65, .98), rgba(43, 47, 47, .98));
    border-color: rgba(255, 255, 255, .075);
    box-shadow: none;
}

.shop-page .shop-product-card.is-blocked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, .1);
    box-shadow: none;
}

.shop-page .shop-product-card.is-blocked .shop-product-image,
.shop-page .shop-product-card.is-blocked .shop-product-bottom,
.shop-page .shop-product-card.is-blocked .shop-product-badges {
    filter: grayscale(1);
    opacity: .5;
}

.shop-page .shop-product-card.is-blocked .shop-product-bottom {
    padding-right: 10px;
}

.shop-page .shop-product-lock {
    position: absolute;
    z-index: 6;
    top: 50%;
    left: 50%;
    min-width: 148px;
    display: grid;
    gap: 5px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    background: rgba(15, 18, 18, .88);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
    text-align: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.shop-page .shop-product-lock span {
    color: #a2a8a8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.shop-page .shop-product-lock strong {
    color: #f0f2f2;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
}

.shop-products-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.shop-admin-server-filter {
    position: relative;
    min-width: 210px;
}

.shop-admin-server-filter-toggle {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(0, 0, 0, .18);
    color: #dce1e1;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.shop-admin-server-filter-toggle:hover,
.shop-admin-server-filter-toggle:focus {
    border-color: rgba(181, 216, 0, .42);
    outline: none;
}

.shop-admin-server-filter-toggle > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-admin-server-filter-arrow {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 2px solid #899191;
    border-bottom: 2px solid #899191;
    transform: translateY(-2px) rotate(45deg);
}

.shop-admin-server-filter-tray {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: grid;
    gap: 5px;
    max-height: 260px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid rgba(181, 216, 0, .22);
    border-radius: 9px;
    background: #11161c;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .46);
}

.shop-admin-server-filter-tray[hidden] {
    display: none;
}

.shop-admin-server-filter-tray button {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #9fa7a7;
    font: inherit;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}

.shop-admin-server-filter-tray button:hover,
.shop-admin-server-filter-tray button.active {
    border-color: rgba(181, 216, 0, .24);
    background: rgba(181, 216, 0, .08);
    color: #d6ee61;
}

.shop-admin-product-card .info {
    min-width: 0;
}

.shop-admin-product-server {
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    padding: 5px 8px;
    border: 1px solid rgba(181, 216, 0, .14);
    border-radius: 6px;
    background: rgba(181, 216, 0, .035);
}

.shop-admin-product-server span {
    color: #687070;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.shop-admin-product-server strong {
    min-width: 0;
    overflow: hidden;
    color: #aeb7b7;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-server-dropdown-tray .shop-server-check {
    position: relative;
    min-height: 34px;
    display: flex !important;
    align-items: center;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: rgba(255, 255, 255, .012);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}

.shop-server-dropdown-tray .shop-server-check:hover {
    border-color: rgba(181, 216, 0, .17);
    background: rgba(181, 216, 0, .04);
}

.shop-server-dropdown-tray .shop-server-check input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

.shop-server-dropdown-tray .shop-server-check span {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 20px;
    padding-left: 29px;
    color: #aab1b1;
    font-size: 11px;
    line-height: 1.35;
}

.shop-server-dropdown-tray .shop-server-check span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 5px;
    background: rgba(0, 0, 0, .22);
    transform: translateY(-50%);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.shop-server-dropdown-tray .shop-server-check span::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 6px;
    height: 10px;
    border-right: 2px solid #11161c;
    border-bottom: 2px solid #11161c;
    opacity: 0;
    transform: translateY(-62%) rotate(45deg) scale(.7);
    transition: opacity .16s ease, transform .16s ease;
}

.shop-server-dropdown-tray .shop-server-check input:checked + span::before {
    border-color: rgba(181, 216, 0, .72);
    background: #b5d800;
    box-shadow: 0 0 0 3px rgba(181, 216, 0, .08);
}

.shop-server-dropdown-tray .shop-server-check input:checked + span::after {
    opacity: 1;
    transform: translateY(-62%) rotate(45deg) scale(1);
}

.shop-server-dropdown-tray .shop-server-check input:focus-visible + span::before {
    outline: 2px solid rgba(181, 216, 0, .34);
    outline-offset: 2px;
}

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

.shop-item-id-control .btn-secondary {
    min-height: 38px;
    padding: 0 13px;
    white-space: nowrap;
}

.modal-box.shop-product-modal,
.shop-server-dropdown-tray,
.shop-admin-server-filter-tray,
.shop-editor-area {
    scrollbar-width: thin;
    scrollbar-color: rgba(181, 216, 0, .52) rgba(255, 255, 255, .035);
}

.modal-box.shop-product-modal::-webkit-scrollbar,
.shop-server-dropdown-tray::-webkit-scrollbar,
.shop-admin-server-filter-tray::-webkit-scrollbar,
.shop-editor-area::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal-box.shop-product-modal::-webkit-scrollbar-track,
.shop-server-dropdown-tray::-webkit-scrollbar-track,
.shop-admin-server-filter-tray::-webkit-scrollbar-track,
.shop-editor-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .025);
    border-radius: 999px;
}

.modal-box.shop-product-modal::-webkit-scrollbar-thumb,
.shop-server-dropdown-tray::-webkit-scrollbar-thumb,
.shop-admin-server-filter-tray::-webkit-scrollbar-thumb,
.shop-editor-area::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(181, 216, 0, .48);
    background-clip: padding-box;
}

.modal-box.shop-product-modal::-webkit-scrollbar-thumb:hover,
.shop-server-dropdown-tray::-webkit-scrollbar-thumb:hover,
.shop-admin-server-filter-tray::-webkit-scrollbar-thumb:hover,
.shop-editor-area::-webkit-scrollbar-thumb:hover {
    background: rgba(181, 216, 0, .7);
    background-clip: padding-box;
}

@media (max-width: 760px) {
    .shop-products-header {
        align-items: stretch;
    }

    .shop-products-header-actions {
        width: 100%;
    }

    .shop-admin-server-filter {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 620px) {
    .shop-products-header-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-item-id-control {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-item-id-control .btn-secondary {
        width: 100%;
    }

    .shop-admin-product-server {
        display: flex;
    }
}

/* RTR Panel v19 */
.admin-section-subtitle {
    margin: 6px 0 0;
    color: #758294;
    font-size: 13px;
    line-height: 1.5;
}

.admin-header-actions,
.admin-form-actions,
.admin-form-actions > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.overview-dashboard,
.admin-rules-page,
.admin-forum-page {
    min-width: 0;
}

.overview-heading p {
    margin: 6px 0 0;
    color: #758294;
    font-size: 13px;
}

.overview-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.overview-stat-card {
    min-width: 0;
    min-height: 130px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(126, 151, 181, 0.12);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(14, 20, 29, 0.94), rgba(8, 12, 18, 0.9));
}

.overview-stat-card > span {
    color: #7e8b9d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.overview-stat-card > strong {
    color: #fff;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1;
    overflow-wrap: anywhere;
}

.overview-stat-card > small {
    color: #657184;
    font-size: 11px;
    line-height: 1.45;
}

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

.overview-panel {
    min-width: 0;
    border: 1px solid rgba(126, 151, 181, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(7, 11, 17, 0.72);
}

.overview-panel-heading,
.admin-panel-title {
    min-height: 58px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(126, 151, 181, 0.1);
}

.overview-panel-heading h3,
.admin-panel-title h3 {
    margin: 0;
    color: #f7f9fc;
    font-size: 15px;
}

.overview-panel-heading a,
.overview-panel-heading button,
.admin-panel-title span {
    border: 0;
    background: transparent;
    color: #8492a5;
    font-size: 11px;
    text-decoration: none;
}

.overview-panel-heading a:hover,
.overview-panel-heading button:hover {
    color: #fff;
}

.overview-activity-list {
    padding: 6px 14px;
}

.overview-activity {
    min-width: 0;
    padding: 11px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(126, 151, 181, 0.08);
}

.overview-activity:last-child {
    border-bottom: 0;
}

.overview-activity > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.overview-activity strong {
    color: #dce3ec;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview-activity span {
    color: #687587;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview-activity > b {
    flex: 0 0 auto;
    color: #fff;
    font-size: 11px;
}

.overview-status {
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(126, 151, 181, 0.09);
    color: #b7c1cf !important;
    text-transform: uppercase;
    font-size: 9px !important;
}

.overview-empty {
    padding: 24px;
    color: #667487;
    text-align: center;
    border: 1px dashed rgba(126, 151, 181, 0.12);
    border-radius: 10px;
}

.admin-news-list,
.admin-server-grid,
.admin-users-grid {
    display: grid;
    gap: 10px;
}

.admin-news-card,
.admin-server-card-modern,
.admin-user-card {
    min-width: 0;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(126, 151, 181, 0.11);
    border-radius: 12px;
    background: rgba(10, 15, 22, 0.78);
    transition: border-color .2s ease, background .2s ease;
}

.admin-news-card:hover,
.admin-server-card-modern:hover,
.admin-user-card:hover {
    border-color: rgba(239, 61, 47, 0.3);
    background: rgba(13, 19, 27, 0.9);
}

.admin-news-thumb {
    width: 88px;
    height: 64px;
    flex: 0 0 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(239, 61, 47, 0.09);
    color: #ef5a4b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.admin-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-news-content,
.admin-server-card-main,
.admin-user-main {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-news-content .title {
    color: #f7f9fc;
    font-size: 14px;
    font-weight: 700;
}

.admin-news-content .desc {
    margin-top: 5px;
    color: #7c899b;
    font-size: 11px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.admin-news-content small {
    display: block;
    margin-top: 6px;
    color: #596677;
    font-size: 9px;
}

.admin-news-card .actions,
.admin-server-card-modern .actions,
.admin-user-card > .btn-sm {
    flex: 0 0 auto;
}

.admin-form {
    display: block;
    min-width: 0;
}

.admin-form-section {
    min-width: 0;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(126, 151, 181, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
}

.admin-form-section .form-group:last-child,
.admin-form .form-group:last-child {
    margin-bottom: 0;
}

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

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

.admin-form-actions {
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(126, 151, 181, 0.1);
}

.admin-form-actions-split {
    justify-content: space-between;
}

.admin-form-note,
.admin-field-hint {
    display: block;
    margin: 6px 0 0;
    color: #647184;
    font-size: 10px;
    line-height: 1.45;
}

.admin-upload-control {
    min-width: 0;
    min-height: 42px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed rgba(126, 151, 181, 0.18);
    border-radius: 9px;
    background: rgba(4, 8, 13, 0.48);
}

.admin-upload-control input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-upload-control > span {
    min-width: 0;
    color: #667487;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-upload-button {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 8px 11px;
    border: 1px solid rgba(126, 151, 181, 0.18);
    border-radius: 7px;
    background: rgba(126, 151, 181, 0.06);
    color: #c8d1dc !important;
    cursor: pointer;
    font-size: 10px !important;
    font-weight: 700 !important;
}

.admin-current-image-large,
.admin-image-preview-large {
    width: min(260px, 100%);
    height: 140px;
    margin-top: 10px;
}

.admin-current-image-large img,
.admin-image-preview-large img {
    object-fit: cover;
}

.modal-box.admin-editor-modal {
    width: min(920px, calc(100vw - 32px));
    max-width: 920px;
}

.modal-box.admin-server-modal {
    width: min(980px, calc(100vw - 32px));
    max-width: 980px;
}

.modal-box.admin-user-modal {
    width: min(880px, calc(100vw - 32px));
    max-width: 880px;
}

.modal-box.admin-forum-modal {
    width: min(820px, calc(100vw - 32px));
    max-width: 820px;
}

.modal-box.admin-editor-modal,
.modal-box.admin-server-modal,
.modal-box.admin-user-modal,
.modal-box.admin-forum-modal {
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 61, 47, .55) rgba(255, 255, 255, .03);
}

.modal-box.admin-editor-modal::-webkit-scrollbar,
.modal-box.admin-server-modal::-webkit-scrollbar,
.modal-box.admin-user-modal::-webkit-scrollbar,
.modal-box.admin-forum-modal::-webkit-scrollbar {
    width: 8px;
}

.modal-box.admin-editor-modal::-webkit-scrollbar-track,
.modal-box.admin-server-modal::-webkit-scrollbar-track,
.modal-box.admin-user-modal::-webkit-scrollbar-track,
.modal-box.admin-forum-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .025);
    border-radius: 999px;
}

.modal-box.admin-editor-modal::-webkit-scrollbar-thumb,
.modal-box.admin-server-modal::-webkit-scrollbar-thumb,
.modal-box.admin-user-modal::-webkit-scrollbar-thumb,
.modal-box.admin-forum-modal::-webkit-scrollbar-thumb {
    background: rgba(239, 61, 47, .52);
    border: 2px solid #14181f;
    border-radius: 999px;
}

.rich-editor {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(126, 151, 181, 0.14);
    border-radius: 10px;
    background: rgba(3, 7, 12, 0.62);
}

.rich-editor-toolbar {
    padding: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(126, 151, 181, 0.1);
    background: rgba(255, 255, 255, 0.025);
}

.rich-editor-tool {
    min-width: 31px;
    height: 29px;
    padding: 0 8px;
    border: 1px solid rgba(126, 151, 181, 0.13);
    border-radius: 6px;
    background: rgba(126, 151, 181, 0.045);
    color: #b9c4d1;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.rich-editor-tool:hover,
.rich-editor-tool.active {
    border-color: rgba(239, 61, 47, 0.45);
    background: rgba(239, 61, 47, 0.1);
    color: #fff;
}

.rich-editor-toolbar-spacer {
    flex: 1 1 auto;
}

.rich-editor-preview-toggle {
    min-width: 94px;
}

.rich-editor .rich-editor-textarea {
    width: 100%;
    min-height: 260px;
    margin: 0;
    padding: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    resize: vertical;
    line-height: 1.6;
}

.rich-editor .rich-editor-textarea:focus {
    border: 0;
    box-shadow: none;
}

.rich-editor-preview {
    min-height: 260px;
    padding: 16px;
    color: #c7d0dc;
    line-height: 1.65;
}

.rich-editor-preview h2,
.rich-text-content h2 {
    margin: 20px 0 10px;
    color: #fff;
    font-size: 22px;
}

.rich-editor-preview h3,
.rich-text-content h3 {
    margin: 18px 0 9px;
    color: #f0f3f7;
    font-size: 17px;
}

.rich-editor-preview blockquote,
.rich-text-content blockquote {
    margin: 14px 0;
    padding: 10px 13px;
    border-left: 3px solid #ef3d2f;
    background: rgba(239, 61, 47, 0.06);
    color: #aeb9c7;
}

.rich-editor-preview ul,
.rich-editor-preview ol,
.rich-text-content ul,
.rich-text-content ol {
    margin: 10px 0 10px 22px;
}

.rich-editor-preview code,
.rich-text-content code {
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(126, 151, 181, 0.09);
    color: #dce5ef;
    font-family: monospace;
}

.rich-editor-preview a,
.rich-text-content a {
    color: #f56b5d;
}

.admin-server-card-modern {
    align-items: center;
}

.admin-server-title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.admin-server-title-row > strong {
    min-width: 0;
    color: #f4f7fb;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.admin-server-meta {
    margin-top: 6px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #6c798b;
    font-size: 10px;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(126, 151, 181, 0.08);
    color: #91a0b3;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-status-badge.active {
    background: rgba(37, 174, 111, 0.1);
    color: #58c993;
}

.admin-status-badge.inactive,
.admin-status-badge.blocked {
    background: rgba(239, 61, 47, 0.1);
    color: #f06a5f;
}

.admin-status-badge.test {
    background: rgba(226, 166, 49, 0.09);
    color: #dfb45a;
}

.admin-server-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
    align-items: start;
}

.admin-server-form-fields,
.admin-server-form-preview {
    min-width: 0;
}

.admin-server-form-preview {
    position: sticky;
    top: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(126, 151, 181, 0.1);
    border-radius: 11px;
    background: rgba(3, 7, 12, 0.55);
    text-align: center;
}

.admin-server-preview-large {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(239, 61, 47, .08);
    color: #ef4b3d;
    font-size: 30px;
    font-weight: 900;
}

.admin-server-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-server-form-preview strong {
    max-width: 100%;
    color: #fff;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.admin-server-form-preview > span {
    color: #667487;
    font-size: 9px;
}

.admin-switch {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #aeb8c6;
    cursor: pointer;
}

.admin-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-switch-ui {
    position: relative;
    width: 34px;
    height: 19px;
    flex: 0 0 34px;
    border-radius: 999px;
    background: rgba(126, 151, 181, 0.12);
    border: 1px solid rgba(126, 151, 181, 0.14);
    transition: .2s ease;
}

.admin-switch-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #7d8999;
    transition: .2s ease;
}

.admin-switch input:checked + .admin-switch-ui {
    background: rgba(239, 61, 47, 0.18);
    border-color: rgba(239, 61, 47, 0.4);
}

.admin-switch input:checked + .admin-switch-ui::after {
    left: 18px;
    background: #f05a4d;
}

.admin-switch b {
    color: #aeb8c6;
    font-size: 11px;
    font-weight: 600;
}

.admin-toggle-group {
    display: flex;
    flex-direction: column;
}

.admin-toggle-group .admin-switch {
    min-height: 42px;
    padding: 0 2px;
}

.admin-forum-layout {
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr);
    gap: 14px;
    align-items: start;
}

.admin-forum-structure,
.admin-forum-topics {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(126, 151, 181, 0.11);
    border-radius: 12px;
    background: rgba(7, 11, 17, .68);
}

.admin-forum-category-card {
    margin: 10px;
    border: 1px solid rgba(126, 151, 181, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.015);
}

.admin-forum-category-card > header {
    padding: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255,255,255,.02);
}

.admin-forum-category-card > header > div:first-child,
.admin-forum-subcategory > div:first-child,
.admin-forum-topic-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-forum-category-card strong,
.admin-forum-subcategory strong,
.admin-forum-topic-card strong {
    color: #e9eef5;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.admin-forum-category-card span,
.admin-forum-subcategory span,
.admin-forum-topic-card span,
.admin-forum-topic-card small {
    color: #6d7a8c;
    font-size: 9px;
    line-height: 1.4;
}

.admin-forum-subcategories {
    padding: 7px;
}

.admin-forum-subcategory {
    min-width: 0;
    padding: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(126,151,181,.07);
}

.admin-forum-subcategory:last-of-type {
    border-bottom: 0;
}

.admin-forum-subcategory small {
    color: #505d6e;
    font-size: 8px;
}

.admin-forum-empty-row {
    padding: 12px 9px;
    color: #5f6c7e;
    font-size: 9px;
}

.admin-forum-add-subcategory {
    width: 100%;
    margin-top: 6px;
    padding: 8px;
    border: 1px dashed rgba(126, 151, 181, .15);
    border-radius: 7px;
    background: transparent;
    color: #7d8a9d;
    font-size: 9px;
    cursor: pointer;
}

.admin-forum-add-subcategory:hover {
    border-color: rgba(239, 61, 47, .35);
    color: #e66a5f;
}

.admin-forum-topic-list {
    padding: 7px;
}

.admin-forum-topic-card {
    min-width: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(126,151,181,.07);
}

.admin-forum-topic-card:last-child {
    border-bottom: 0;
}

.admin-forum-topic-main {
    flex: 1 1 auto;
}

.admin-forum-topic-badges {
    display: flex !important;
    flex-direction: row !important;
    gap: 5px !important;
}

.admin-forum-topic-badges span {
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(226, 166, 49, .08);
    color: #d9ad56;
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-forum-topic-badges span.closed {
    background: rgba(239,61,47,.08);
    color: #e86459;
}

.admin-forum-topic-card .actions,
.admin-forum-category-card .actions,
.admin-forum-subcategory .actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

.admin-user-card.is-blocked {
    border-color: rgba(239, 61, 47, .18);
    background: rgba(239, 61, 47, .025);
}

.admin-user-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(126,151,181,.12);
    border-radius: 10px;
    background: rgba(126,151,181,.07);
    color: #c4cfdb;
    font-weight: 800;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-avatar-large {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
}

.admin-user-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.admin-user-title strong {
    min-width: 0;
    color: #f4f7fb;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-user-system {
    display: block;
    margin-top: 2px;
    color: #5e6b7c;
    font-size: 9px;
}

.admin-user-meta {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-meta span {
    color: #748194;
    font-size: 9px;
}

.admin-user-form-head {
    margin-bottom: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(126,151,181,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.015);
}

.admin-user-form-head > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-user-form-head strong {
    color: #fff;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.admin-user-form-head span {
    color: #6d7a8d;
    font-size: 9px;
}

.admin-user-form input:disabled {
    opacity: .58;
    cursor: not-allowed;
    background: rgba(126, 151, 181, .035);
    color: #8490a0;
}

.admin-user-visibility {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.admin-user-block-note {
    margin-top: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(239, 61, 47, .18);
    border-radius: 9px;
    background: rgba(239, 61, 47, .045);
}

.admin-user-block-note[hidden] {
    display: none;
}

.admin-user-block-note strong {
    color: #ed776d;
    font-size: 11px;
}

.admin-user-block-note span {
    color: #9b7a7a;
    font-size: 9px;
    line-height: 1.5;
}

.admin-rules-form {
    max-width: 980px;
}

.account-blocked-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .74);
    backdrop-filter: blur(8px);
}

.account-blocked-alert {
    position: relative;
    width: min(470px, 100%);
    padding: 28px;
    border: 1px solid rgba(239, 61, 47, .28);
    border-radius: 14px;
    background: linear-gradient(145deg, #121820, #090d13);
    box-shadow: 0 26px 80px rgba(0,0,0,.5);
    text-align: center;
}

.account-blocked-alert-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #687587;
    font-size: 23px;
    cursor: pointer;
}

.account-blocked-alert-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239,61,47,.28);
    border-radius: 50%;
    background: rgba(239,61,47,.08);
    color: #ef5c50;
    font-size: 25px;
    font-weight: 900;
}

.account-blocked-alert h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.account-blocked-alert p {
    margin: 10px 0 20px;
    color: #8591a2;
    font-size: 12px;
    line-height: 1.6;
}

.account-blocked-alert-actions {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
}

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

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

    .admin-users-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .overview-stats-grid,
    .overview-panels,
    .admin-form-grid,
    .admin-server-form-layout {
        grid-template-columns: 1fr;
    }

    .admin-server-form-preview {
        position: static;
        order: -1;
    }

    .admin-server-preview-large {
        max-height: 180px;
    }

    .admin-news-card,
    .admin-server-card-modern,
    .admin-user-card,
    .admin-forum-topic-card,
    .admin-forum-category-card > header,
    .admin-forum-subcategory {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-news-card .actions,
    .admin-server-card-modern .actions,
    .admin-forum-topic-card .actions {
        width: 100%;
    }

    .admin-news-thumb {
        width: 70px;
        height: 52px;
        flex-basis: 70px;
    }

    .admin-form-actions-split {
        align-items: stretch;
    }

    .admin-form-actions-split,
    .admin-form-actions-split > div {
        width: 100%;
    }

    .admin-form-actions-split > div {
        justify-content: flex-end;
    }
}

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

    .admin-user-card > .btn-sm {
        margin-left: auto;
    }

    .rich-editor-toolbar-spacer {
        display: none;
    }

    .rich-editor-preview-toggle {
        width: 100%;
    }

    .account-blocked-alert {
        padding: 24px 18px 20px;
    }

    .account-blocked-alert-actions > * {
        width: 100%;
        justify-content: center;
    }
}

.admin-upload-control > .btn-sm {
    flex: 0 0 auto;
}

@media (max-width: 620px) {
    .admin-upload-control {
        flex-wrap: wrap;
    }

    .admin-upload-control > span {
        flex: 1 1 120px;
    }
}

.admin-header .left > .btn-secondary {
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: #78bd3f;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 7px 20px rgba(120, 189, 63, .16);
}

.admin-header .left > .btn-secondary:hover {
    background: #88ce4b;
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

.admin-news-card .actions,
.admin-server-card-modern .actions,
.admin-announcement-card .actions,
.admin-user-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-news-form .admin-form-actions > button,
.admin-announcement-form .admin-form-actions > button {
    min-height: 40px;
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rich-editor-wysiwyg {
    border-color: rgba(126, 151, 181, .16);
    background: rgba(4, 8, 13, .72);
}

.rich-editor-wysiwyg .rich-editor-toolbar {
    position: sticky;
    top: 0;
    z-index: 4;
    gap: 6px;
    padding: 8px;
    background: #11161d;
}

.rich-editor-select {
    height: 31px;
    min-width: 118px;
    padding: 0 26px 0 9px;
    border: 1px solid rgba(126, 151, 181, .14);
    border-radius: 6px;
    background: #0b1016;
    color: #c5cfda;
    font-size: 10px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.rich-editor-size-select {
    min-width: 76px;
}

.rich-editor-select:focus,
.rich-editor-select:hover {
    border-color: rgba(239, 61, 47, .4);
}

.rich-editor-canvas {
    width: 100%;
    min-height: 260px;
    max-height: min(560px, 58vh);
    overflow-y: auto;
    padding: 16px;
    border: 0;
    outline: none;
    background: rgba(2, 6, 10, .52);
    color: #c7d0dc;
    font-size: 14px;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 61, 47, .52) rgba(255, 255, 255, .025);
}

.rich-editor-canvas:focus {
    background: rgba(3, 8, 13, .72);
    box-shadow: inset 0 0 0 1px rgba(239, 61, 47, .18);
}

.rich-editor-canvas:empty::before {
    content: 'Введите текст...';
    color: #566171;
    pointer-events: none;
}

.rich-editor-canvas::-webkit-scrollbar {
    width: 8px;
}

.rich-editor-canvas::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .025);
}

.rich-editor-canvas::-webkit-scrollbar-thumb {
    border: 2px solid #0d1218;
    border-radius: 999px;
    background: rgba(239, 61, 47, .52);
}

.rich-editor-canvas p,
.rich-editor-canvas div {
    margin: 0 0 10px;
}

.rich-editor-canvas h2,
.rich-editor-canvas h3,
.rich-editor-canvas h4 {
    margin-top: 16px;
}

.rich-editor-canvas ul,
.rich-editor-canvas ol {
    padding-left: 24px;
}

.shop-admin-list {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.shop-admin-list .shop-admin-product-card {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.shop-admin-list .shop-admin-product-card .info {
    min-width: 0;
    flex: 1 1 auto;
}

.shop-admin-list .shop-admin-product-card .actions {
    margin-left: auto;
    flex: 0 0 auto;
}

.shop-archive-product-card {
    border-color: rgba(126, 151, 181, .12);
    background: rgba(126, 151, 181, .025);
}

.shop-archive-state {
    min-width: 126px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    border: 1px solid rgba(226, 166, 49, .17);
    border-radius: 8px;
    background: rgba(226, 166, 49, .045);
}

.shop-archive-state span {
    color: #8d7c5a;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.shop-archive-state strong {
    color: #dfb45a;
    font-size: 18px;
}

.admin-forum-layout {
    display: block;
}

.admin-forum-tree {
    display: grid;
    gap: 14px;
}

.admin-forum-section-card {
    overflow: hidden;
    border: 1px solid rgba(126, 151, 181, .13);
    border-radius: 13px;
    background: rgba(7, 11, 17, .72);
}

.admin-forum-section-head,
.admin-forum-subsection-head {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-forum-section-head {
    padding: 15px;
    background: rgba(239, 61, 47, .035);
    border-bottom: 1px solid rgba(126, 151, 181, .09);
}

.admin-forum-section-head > div:first-child,
.admin-forum-subsection-head > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-forum-level-label {
    display: block;
    margin-bottom: 5px;
    color: #ef675b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-forum-section-head strong {
    color: #fff;
    font-size: 15px;
}

.admin-forum-section-head p,
.admin-forum-subsection-head p {
    margin: 4px 0 0;
    color: #758294;
    font-size: 10px;
    line-height: 1.45;
}

.admin-forum-subsection-list {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.admin-forum-subsection-card {
    overflow: hidden;
    border: 1px solid rgba(126, 151, 181, .1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .012);
}

.admin-forum-subsection-head {
    padding: 12px;
    border-bottom: 1px solid rgba(126, 151, 181, .07);
    background: rgba(126, 151, 181, .018);
}

.admin-forum-subsection-head strong {
    color: #e7edf5;
    font-size: 13px;
}

.admin-forum-subsection-head small {
    display: block;
    margin-top: 5px;
    color: #536173;
    font-size: 8px;
}

.admin-forum-nested-topics {
    padding: 7px 10px;
}

.admin-forum-nested-topics .admin-forum-topic-card {
    position: relative;
    padding: 10px 8px 10px 16px;
    border-bottom: 1px solid rgba(126, 151, 181, .065);
    background: transparent;
}

.admin-forum-nested-topics .admin-forum-topic-card:last-child {
    border-bottom: 0;
}

.admin-forum-topic-rail {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 5px;
    width: 2px;
    border-radius: 999px;
    background: rgba(239, 61, 47, .32);
}

.admin-forum-add-topic,
.admin-forum-add-subcategory {
    width: calc(100% - 20px);
    margin: 0 10px 10px;
    min-height: 34px;
    border: 1px dashed rgba(126, 151, 181, .16);
    border-radius: 7px;
    background: transparent;
    color: #7f8d9f;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.admin-forum-add-topic:hover,
.admin-forum-add-subcategory:hover {
    border-color: rgba(239, 61, 47, .36);
    color: #e56f65;
    background: rgba(239, 61, 47, .035);
}

.admin-forum-section-head .actions,
.admin-forum-subsection-head .actions,
.admin-forum-topic-card .actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-user-actions {
    flex: 0 0 auto;
}

.admin-announcement-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-announcement-card {
    position: relative;
    min-width: 0;
    min-height: 118px;
    padding: 14px 14px 14px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    border: 1px solid rgba(126, 151, 181, .11);
    border-radius: 12px;
    background: rgba(10, 15, 22, .78);
}

.admin-announcement-card.is-inactive {
    opacity: .66;
}

.admin-announcement-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #4c86d8;
}

.admin-announcement-card.color-orange .admin-announcement-marker { background: #d98b32; }
.admin-announcement-card.color-red .admin-announcement-marker { background: #dc4b45; }
.admin-announcement-card.color-green .admin-announcement-marker { background: #4da46c; }

.admin-announcement-main {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-announcement-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-announcement-title-row strong {
    min-width: 0;
    color: #f3f6fa;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-announcement-main p {
    margin: 6px 0 0;
    color: #7d8998;
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.admin-announcement-meta {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-announcement-meta span {
    min-width: 0;
    color: #596777;
    font-size: 8px;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .admin-announcement-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .shop-admin-list .shop-admin-product-card,
    .admin-forum-section-head,
    .admin-forum-subsection-head,
    .admin-announcement-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .shop-admin-list .shop-admin-product-card .actions,
    .shop-archive-state,
    .admin-forum-section-head .actions,
    .admin-forum-subsection-head .actions,
    .admin-announcement-card .actions,
    .admin-user-actions {
        width: 100%;
        margin-left: 0;
        align-items: stretch;
        justify-content: flex-start;
    }

    .shop-archive-state {
        min-width: 0;
        flex-direction: row;
        justify-content: space-between;
    }

    .rich-editor-select {
        flex: 1 1 130px;
    }
}

.admin-section {
    --admin-action-height: 38px;
}

.admin-section .btn-primary,
.admin-section .btn-secondary,
.admin-section .btn-sm {
    min-height: var(--admin-action-height);
    height: var(--admin-action-height);
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.admin-section .btn-primary:hover,
.admin-section .btn-secondary:hover,
.admin-section .btn-sm:hover {
    transform: translateY(-1px);
}

.admin-news-card .actions .btn-sm,
.admin-server-card-modern .actions .btn-sm,
.admin-announcement-card .actions .btn-sm,
.admin-user-actions .btn-sm {
    min-width: 92px;
}

.admin-form-actions > .btn-primary,
.admin-form-actions > .btn-secondary,
.admin-form-actions > div > .btn-primary,
.admin-form-actions > div > .btn-secondary,
.shop-product-form-actions > .btn-primary,
.shop-product-form-actions > .btn-secondary {
    min-width: 148px;
}

.admin-upload-button {
    min-height: var(--admin-action-height);
    height: var(--admin-action-height);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.admin-forum-add-topic,
.admin-forum-add-subcategory {
    min-height: var(--admin-action-height);
    height: var(--admin-action-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.admin-header .left > .admin-home-button {
    min-height: 34px;
    height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #ef3030;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(239, 48, 48, .18);
}

.admin-header .left > .admin-home-button:hover {
    background: #ff4141;
    color: #fff;
    transform: translateY(-1px);
}

.rich-editor-wysiwyg .rich-editor-toolbar {
    min-height: 50px;
    padding: 7px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    overflow: visible;
    background: #11161d;
}

.form-group .rich-editor-toolbar .rich-editor-select,
.rich-editor-toolbar .rich-editor-select {
    width: auto !important;
    max-width: 190px;
    min-width: 128px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 30px 0 10px;
    flex: 0 0 auto;
    border: 1px solid rgba(126, 151, 181, .16);
    border-radius: 7px;
    background-color: #0b1016;
    color: #d1d8e1;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    box-sizing: border-box;
}

.form-group .rich-editor-toolbar .rich-editor-size-select,
.rich-editor-toolbar .rich-editor-size-select {
    width: 86px !important;
    min-width: 86px;
}

.rich-editor-toolbar .rich-editor-tool {
    width: auto;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(126, 151, 181, .16);
    border-radius: 7px;
    background: rgba(126, 151, 181, .05);
    color: #c7d0dc;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    box-sizing: border-box;
}

.rich-editor-toolbar .rich-editor-tool:hover,
.rich-editor-toolbar .rich-editor-tool.active {
    border-color: rgba(239, 61, 47, .5);
    background: rgba(239, 61, 47, .12);
    color: #fff;
    transform: none;
}

.rich-editor-toolbar .rich-editor-tool-bold {
    font-weight: 900;
}

.rich-editor-toolbar .rich-editor-tool-italic {
    font-style: italic;
}

.rich-editor-toolbar .rich-editor-tool-underline {
    text-decoration: underline;
}

.rich-editor-toolbar .rich-editor-tool-strike {
    text-decoration: line-through;
}

.rich-editor-toolbar .rich-editor-tool-link,
.rich-editor-toolbar .rich-editor-tool-clear {
    min-width: 68px;
}

.rich-editor-canvas:empty::before {
    content: attr(data-placeholder);
}

.modal-box.admin-server-modal {
    overflow-x: hidden;
}

.admin-server-form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 240px);
    gap: 18px;
    align-items: start;
}

.admin-server-form-fields {
    display: grid;
    gap: 12px;
}

.admin-server-form-fields > .admin-form-section {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.admin-server-form .form-group,
.admin-server-form .admin-form-grid,
.admin-server-form .admin-upload-control,
.admin-server-form input,
.admin-server-form select,
.admin-server-form textarea {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-server-form .admin-upload-control {
    flex-wrap: wrap;
}

.admin-server-form .admin-upload-control > span {
    flex: 1 1 120px;
}

.admin-server-form-preview {
    position: static;
    top: auto;
    width: 100%;
    box-sizing: border-box;
}

#serverApiFields[hidden],
#serverTestFields[hidden] {
    display: none !important;
}

.admin-server-form > .admin-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 150px));
    justify-content: end;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.admin-server-form > .admin-form-actions > button {
    width: 100%;
    min-width: 0;
    margin: 0;
}

@media (max-width: 900px) {
    .admin-server-form-layout {
        grid-template-columns: 1fr;
    }

    .admin-server-form-preview {
        order: -1;
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .admin-server-form > .admin-form-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-section .btn-primary,
    .admin-section .btn-secondary,
    .admin-section .btn-sm {
        padding-left: 10px;
        padding-right: 10px;
    }

    .form-group .rich-editor-toolbar .rich-editor-select,
    .rich-editor-toolbar .rich-editor-select {
        flex: 1 1 132px;
        max-width: none;
    }

    .form-group .rich-editor-toolbar .rich-editor-size-select,
    .rich-editor-toolbar .rich-editor-size-select {
        width: auto !important;
        min-width: 92px;
        flex: 1 1 92px;
    }
}

.admin-section .admin-news-form .admin-form-actions > button,
.admin-section .admin-announcement-form .admin-form-actions > button {
    min-height: var(--admin-action-height);
    height: var(--admin-action-height);
}

.admin-section .shop-admin-tab,
.admin-section .shop-catalog-categories button,
.admin-section .shop-item-picker-categories button,
.admin-section .shop-server-dropdown-toggle,
.admin-section .shop-admin-server-filter-toggle {
    min-height: var(--admin-action-height);
    height: var(--admin-action-height);
    box-sizing: border-box;
}

.admin-section .shop-catalog-category-arrow {
    width: var(--admin-action-height);
    height: var(--admin-action-height);
    min-width: var(--admin-action-height);
    min-height: var(--admin-action-height);
}

.rtr-panel-page {
    --admin-action-height: 38px;
}

.rtr-panel-page .btn-primary,
.rtr-panel-page .btn-secondary,
.rtr-panel-page .btn-sm {
    min-height: var(--admin-action-height);
    height: var(--admin-action-height);
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.rtr-panel-page .admin-news-form .admin-form-actions > button,
.rtr-panel-page .admin-announcement-form .admin-form-actions > button,
.rtr-panel-page .admin-server-form .admin-form-actions > button,
.rtr-panel-page .shop-product-form-actions > button {
    min-height: var(--admin-action-height);
    height: var(--admin-action-height);
}

.rtr-panel-page .admin-upload-button {
    min-height: var(--admin-action-height);
    height: var(--admin-action-height);
}

.rtr-panel-page .admin-header .left > .admin-home-button {
    min-height: 34px;
    height: 34px;
}


/* RTR server form and upload controls */
.rtr-panel-page .admin-server-form .form-group > .admin-field-label {
    display: block;
    margin: 0 0 8px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.rtr-panel-page .admin-server-form .form-group > label.admin-switch,
.rtr-panel-page .admin-server-form .admin-toggle-group > label.admin-switch {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.rtr-panel-page .admin-server-form .admin-toggle-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rtr-panel-page .admin-server-form .admin-switch-ui {
    display: block;
    flex: 0 0 34px;
}

.rtr-panel-page .admin-server-form .admin-switch b {
    min-width: 0;
    display: block;
    margin: 0;
    line-height: 1.3;
}

.rtr-panel-page .form-group > .admin-upload-control > label.admin-upload-button,
.rtr-panel-page label.admin-upload-button {
    min-height: var(--admin-action-height);
    height: var(--admin-action-height);
    margin: 0 !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center;
    flex: 0 0 auto;
    line-height: 1 !important;
    vertical-align: middle;
    box-sizing: border-box;
}

.rtr-panel-page .shop-upload-button {
    min-height: var(--admin-action-height);
    height: var(--admin-action-height);
    margin: 0 !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box;
}

.rtr-panel-page .admin-upload-control {
    align-items: center;
}

.rtr-panel-page .admin-upload-control > span {
    align-self: center;
    line-height: 1.3;
}

.rtr-panel-page .admin-user-profile-link {
    border: 1px solid rgba(126, 151, 181, .16);
    background: rgba(126, 151, 181, .06);
    color: #c5cfda;
    text-decoration: none;
}

.rtr-panel-page .admin-user-profile-link:hover {
    border-color: rgba(239, 61, 47, .38);
    background: rgba(239, 61, 47, .08);
    color: #fff;
}

/* Forum profile navigation */
.forum-topic-title-link,
.forum-topic-open-link,
.forum-profile-link {
    color: inherit;
    text-decoration: none;
}

.forum-topic-title-link {
    display: block;
    min-width: 0;
}

.forum-topic-author.forum-profile-link:hover,
.forum-topic-title-link:hover strong {
    color: #ff6257;
}

.forum-topic-comments.forum-topic-open-link {
    color: inherit;
}

.forum-topic-date.forum-topic-open-link {
    display: block;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 72px;
}

body {
    min-width: 280px;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

.rich-text-content,
.rich-editor-canvas,
.shop-editor-area,
.reference-post-body,
.admin-news-content,
.admin-announcement-main,
.admin-user-main,
.admin-server-card-main {
    overflow-wrap: anywhere;
    word-break: normal;
}

.rich-text-content img,
.rich-editor-canvas img,
.shop-editor-area img,
.reference-post-body img {
    max-width: 100%;
    height: auto;
}

.rich-text-content pre,
.rich-editor-canvas pre,
.shop-editor-area pre,
.reference-post-body pre,
.rich-text-content table,
.rich-editor-canvas table,
.shop-editor-area table,
.reference-post-body table {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 900px) {
    .header {
        height: 64px;
        padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
        justify-content: space-between;
        gap: 8px;
    }

    .header-left,
    .header-right {
        position: static;
        inset: auto;
    }

    .header-left {
        min-width: 0;
        max-width: 145px;
    }

    .header-right {
        min-width: 0;
        margin-left: auto;
        gap: 6px;
    }

    .header-right .user-block {
        min-width: 0;
        gap: 6px;
    }

    .logo img {
        width: 132px;
    }

    .hamburger {
        position: static;
        width: 40px;
        height: 40px;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 40px;
    }

    .hamburger span {
        width: 25px;
        height: 2px;
    }

    .mobile-menu {
        top: 64px;
        height: calc(100dvh - 64px);
        padding: 14px max(16px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        align-items: stretch;
        gap: 4px;
    }

    .mobile-menu a {
        min-height: 48px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        border-bottom: 0;
        font-size: 16px;
    }

    .mobile-menu a:hover,
    .mobile-menu a:focus-visible {
        background: rgba(255, 255, 255, .045);
    }

    .mobile-menu .mobile-auth {
        margin-top: 8px;
    }

    .mobile-menu .mobile-auth .btn-login {
        min-height: 48px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        letter-spacing: .03em;
    }

    .header-right .user-tray {
        width: min(250px, calc(100vw - 20px));
        min-width: 0;
        max-width: calc(100vw - 20px);
        right: 0 !important;
    }

    .forum-section,
    .form-section,
    .play-section,
    .profile-section,
    .rules-section,
    .servers-section,
    .settings-section,
    .shop-section,
    .support-section,
    .ticket-section,
    .tickets-section,
    .topic-section,
    .admin-section,
    body.content-page > #center-wrapper > #site-wrapper > section,
    body.content-page .play-section,
    body.content-page .rules-section,
    body.content-page .support-section,
    body.content-page .tickets-section,
    body.content-page .ticket-section,
    body.content-page .topic-section,
    body.content-page .profile-section,
    body.content-page .form-section,
    body.content-page .admin-section {
        width: min(calc(100% - 24px), 100%);
        padding-top: 34px;
        padding-bottom: 52px;
    }

    .forum-header,
    .form-header,
    .play-header,
    .profile-header,
    .rules-header,
    .servers-header,
    .settings-header,
    .shop-header,
    .support-header,
    .tickets-header {
        margin-bottom: 22px;
    }

    .forum-header h1,
    .form-header h1,
    .play-header h1,
    .profile-header h1,
    .rules-header h1,
    .servers-header h1,
    .settings-header h1,
    .shop-header h1,
    .support-header h1,
    .tickets-header h1 {
        font-size: clamp(28px, 7vw, 36px);
        line-height: 1.1;
    }

    .footer {
        padding: 24px 16px calc(28px + env(safe-area-inset-bottom));
        font-size: 12px;
        line-height: 1.6;
        text-align: center;
    }

    .hero {
        height: auto;
        min-height: calc(100svh - 64px);
        padding: 42px 20px 38px;
    }

    .hero-center-logo {
        width: min(72vw, 380px);
        height: auto;
    }

    .hero-title {
        max-width: 760px;
        font-size: clamp(30px, 7vw, 44px);
        line-height: 1.05;
        text-align: center;
    }

    .hero-description {
        max-width: 660px;
        font-size: 14px;
        line-height: 1.65;
    }

    .features {
        width: calc(100% - 24px);
        padding: 44px 0;
        gap: 12px;
    }

    .feature-card {
        min-width: 0;
        flex: 1 1 calc(50% - 8px);
    }

    .home-content-section {
        width: calc(100% - 24px);
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 42px;
    }

    .home-news-panel,
    .home-servers-panel,
    .home-news-list,
    .home-servers-list {
        width: 100%;
        min-width: 0;
        max-height: none !important;
        height: auto !important;
    }

    .home-news-card {
        max-height: none !important;
    }

    .server-ip-box,
    .play-steps,
    .play-extra,
    .rules-container,
    .ticket-form,
    .my-tickets,
    .ticket-container,
    .form-container,
    .profile-modern-card {
        width: 100%;
        max-width: 100%;
    }

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

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

    .ticket-main,
    .ticket-sidebar,
    .ticket-message,
    .comment-item-inline {
        min-width: 0;
    }

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

    body.forum-page .forum-layout,
    .forum-page .forum-layout {
        width: calc(100% - 24px);
        padding-top: 30px;
        grid-template-columns: 1fr;
    }

    body.forum-page .forum-sidebar,
    .forum-page .forum-sidebar {
        position: static;
    }

    .topic-shell,
    .profile-page-shell {
        width: calc(100% - 24px);
    }

    .reference-post {
        grid-template-columns: 1fr;
    }

    .reference-author {
        min-height: 0;
        flex-direction: row;
        align-items: center;
        text-align: left;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .045);
    }

    .reference-author-stats {
        width: auto;
        margin: 0 0 0 auto;
        padding-top: 0;
        text-align: right;
    }

    .shop-page .shop-page-shell {
        width: calc(100% - 24px);
        margin-top: 14px;
        padding: 14px;
    }

    .shop-page .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .shop-page .shop-product-card {
        max-width: none;
    }

    .shop-page .shop-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-page .shop-category-carousel,
    .shop-page .shop-search {
        width: 100%;
        flex: 1 1 auto;
    }

    .shop-page .shop-search {
        min-height: 42px;
    }

    .shop-modal-overlay {
        padding: 12px;
        align-items: center;
    }

    .shop-modal {
        width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 22px 18px;
    }

    .rtr-panel-page .admin-section {
        width: calc(100% - 16px);
        padding-top: 24px;
        padding-bottom: 44px;
    }

    .rtr-panel-page .admin-header {
        margin-bottom: 14px;
    }

    .rtr-panel-page .admin-header .left {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .rtr-panel-page .admin-header .left h1 {
        font-size: clamp(25px, 6vw, 31px);
    }

    .rtr-panel-page .admin-container {
        width: 100%;
        min-width: 0;
        gap: 0;
        flex-direction: column;
        overflow: visible;
        border-radius: 12px;
    }

    .rtr-panel-page .admin-sidebar {
        position: sticky;
        top: 64px;
        z-index: 80;
        width: 100%;
        padding: 8px;
        border-right: 0;
        border-bottom: 1px solid rgba(126, 151, 181, .12);
        border-radius: 12px 12px 0 0;
        background: rgba(7, 11, 17, .96);
        backdrop-filter: blur(14px);
    }

    .rtr-panel-page .admin-sidebar nav {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 5px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .rtr-panel-page .admin-sidebar nav::-webkit-scrollbar {
        display: none;
    }

    .rtr-panel-page .admin-sidebar nav a {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        scroll-snap-align: start;
        white-space: nowrap;
        font-size: 11px;
    }

    .rtr-panel-page .admin-content {
        width: 100%;
        min-width: 0;
        padding: 16px;
        border-radius: 0 0 12px 12px;
    }

    .rtr-panel-page .section-header,
    .rtr-panel-page .shop-products-header,
    .rtr-panel-page .shop-catalog-header {
        align-items: flex-start;
        gap: 12px;
    }

    .rtr-panel-page .section-header > div:first-child,
    .rtr-panel-page .shop-products-header > div:first-child,
    .rtr-panel-page .shop-catalog-header > div:first-child {
        min-width: 0;
    }

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

    .overview-panels {
        grid-template-columns: 1fr;
    }

    .admin-forum-layout,
    .admin-server-form-layout,
    .shop-product-form.is-bundle .shop-product-form-layout {
        grid-template-columns: 1fr;
    }

    .admin-users-grid,
    .admin-announcement-list {
        grid-template-columns: 1fr;
    }

    .admin-news-card,
    .admin-server-card-modern,
    .admin-user-card,
    .admin-announcement-card,
    .shop-admin-list .shop-admin-product-card,
    .shop-archive-product-card {
        min-width: 0;
        max-width: 100%;
    }

    .shop-admin-tabs {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .shop-admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .shop-admin-tabs .shop-admin-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .shop-admin-table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .shop-admin-table .shop-admin-row {
        min-width: 720px;
    }

    .shop-orders-table .shop-admin-row {
        min-width: 900px;
    }

    .modal-overlay {
        padding: 12px;
        align-items: center;
    }

    .modal-box,
    .modal-box.shop-product-modal,
    .modal-box.shop-product-modal-wide,
    .modal-box.admin-editor-modal,
    .modal-box.admin-server-modal,
    .modal-box.admin-user-modal,
    .modal-box.admin-forum-modal,
    .shop-item-picker-modal {
        width: min(100%, 760px);
        max-width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 20px 16px;
        border-radius: 14px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .modal-box.shop-product-modal-wide {
        width: min(100%, 760px);
    }

    .modal-box .close-modal {
        position: sticky;
        top: 0;
        z-index: 10;
        float: right;
    }

    .admin-form-grid,
    .shop-form-grid-2,
    .shop-image-control,
    .shop-catalog-controls {
        grid-template-columns: 1fr;
    }

    .shop-catalog-grid,
    .shop-item-picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
        justify-content: stretch;
    }

    .shop-catalog-card,
    .shop-item-picker-card {
        max-width: none;
    }

    .shop-catalog-categories,
    .shop-item-picker-categories {
        scrollbar-width: none;
    }

    .shop-catalog-categories::-webkit-scrollbar,
    .shop-item-picker-categories::-webkit-scrollbar {
        display: none;
    }

    .rich-editor-wysiwyg .rich-editor-toolbar,
    .shop-editor-toolbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .rich-editor-wysiwyg .rich-editor-toolbar::-webkit-scrollbar,
    .shop-editor-toolbar::-webkit-scrollbar {
        display: none;
    }

    .rich-editor-toolbar .rich-editor-select,
    .rich-editor-toolbar .rich-editor-tool,
    .shop-editor-toolbar button {
        flex: 0 0 auto;
    }

    .rich-editor-canvas,
    .shop-editor-area {
        min-height: 200px !important;
        max-height: 52dvh;
        overflow-y: auto;
    }
}

@media (max-width: 620px) {
    html {
        scroll-padding-top: 60px;
    }

    .header {
        height: 60px;
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .header-left {
        max-width: 118px;
    }

    .logo img {
        width: 110px;
    }

    .header-right .header-balance-box {
        display: none;
    }

    .header-right .header-deposit {
        min-width: 0;
        min-height: 36px;
        height: 36px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 10px;
    }

    .header-right .header-user-identity {
        width: 38px;
        min-width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }

    .header-right .header-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .header-right .header-user-name,
    .header-right .header-arrow {
        display: none;
    }

    .header-right .auth-buttons .btn-login {
        min-height: 36px;
        padding: 0 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
    }

    .hamburger {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .mobile-menu {
        top: 60px;
        height: calc(100dvh - 60px);
    }

    .forum-section,
    .form-section,
    .play-section,
    .profile-section,
    .rules-section,
    .servers-section,
    .settings-section,
    .shop-section,
    .support-section,
    .ticket-section,
    .tickets-section,
    .topic-section,
    .admin-section,
    body.content-page > #center-wrapper > #site-wrapper > section,
    body.content-page .play-section,
    body.content-page .rules-section,
    body.content-page .support-section,
    body.content-page .tickets-section,
    body.content-page .ticket-section,
    body.content-page .topic-section,
    body.content-page .profile-section,
    body.content-page .form-section,
    body.content-page .admin-section {
        width: calc(100% - 18px);
        padding-top: 26px;
        padding-bottom: 42px;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .hero {
        min-height: calc(100svh - 60px);
        padding: 34px 14px 32px;
    }

    .hero-center-logo {
        width: min(80vw, 300px);
    }

    .hero-title {
        font-size: clamp(27px, 9vw, 36px);
    }

    .hero-title span {
        display: block;
        margin-top: 5px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-btn {
        width: min(100%, 260px);
        min-height: 48px;
        padding: 0 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .features {
        width: calc(100% - 18px);
        padding: 34px 0;
    }

    .feature-card {
        flex-basis: 100%;
        min-height: 0;
        padding: 18px;
    }

    .feature-card .icon {
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
    }

    .home-content-section {
        width: calc(100% - 18px);
        gap: 12px;
    }

    .home-news-card {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        min-height: 0;
        max-height: none !important;
        padding: 14px;
    }

    .home-news-card figure {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: min(52vw, 190px) !important;
    }

    .home-news-card-content {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .home-news-card-header {
        flex-direction: column;
        gap: 5px;
    }

    .home-section-heading {
        min-height: 56px;
        padding: 0 14px;
    }

    .home-server-row {
        gap: 9px;
    }

    .home-server-name-row strong {
        font-size: 13px;
    }

    .play-section .server-ip-box,
    .play-steps,
    .play-extra,
    .rules-container,
    .ticket-form,
    .my-tickets,
    .ticket-container,
    .form-container,
    .profile-modern-card,
    .profile-settings-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    .play-section .server-ip-box .ip {
        font-size: clamp(22px, 7vw, 30px);
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .step {
        align-items: flex-start;
        gap: 12px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 18px;
    }

    .step-content h3 {
        font-size: 16px;
    }

    .step-content p,
    .play-extra p {
        font-size: 13px;
    }

    .step-content code {
        display: inline-block;
        max-width: 100%;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .rules-block {
        padding: 16px;
    }

    .rules-block h2 {
        font-size: 18px;
    }

    .rules-block ul li {
        gap: 9px;
        font-size: 14px;
    }

    .ticket-list-item,
    .ticket-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .ticket-list-item .info,
    .ticket-item .info,
    .ticket-item .right {
        width: 100%;
        min-width: 0;
    }

    .ticket-list-item .status-badge,
    .ticket-item .status-badge {
        align-self: flex-start;
    }

    .ticket-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .ticket-topbar .left,
    .ticket-topbar .right {
        width: 100%;
        min-width: 0;
    }

    .ticket-sidebar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ticket-message,
    .comment-item-inline {
        padding: 14px;
    }

    .profile-identity-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-avatar-large {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    .profile-identity h2 {
        font-size: 22px;
    }

    .profile-settings-button {
        width: 100%;
        justify-content: center;
    }

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

    .settings-panel-header {
        gap: 10px;
    }

    .settings-switch-row,
    .settings-static-row {
        gap: 10px;
        padding: 12px;
    }

    .settings-static-row b {
        text-align: right;
    }

    .profile-upload-card {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-upload-card input[type=file] {
        width: 100%;
        max-width: 100%;
    }

    .settings-actions,
    .reference-reply-form > div {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-button,
    .topic-submit {
        width: 100%;
        justify-content: center;
    }

    body.forum-page .forum-layout,
    .forum-page .forum-layout {
        width: calc(100% - 18px);
        padding-top: 20px;
    }

    .forum-page-header {
        gap: 14px;
    }

    .forum-page-header h1 {
        font-size: 30px;
    }

    .forum-create-button {
        width: 100%;
        justify-content: center;
    }

    .forum-toolbar {
        min-height: 0;
        padding: 10px;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .forum-toolbar-actions,
    .forum-toolbar-actions > * {
        width: 100%;
    }

    .forum-toolbar-button {
        justify-content: center;
    }

    .forum-category-heading {
        padding: 16px 13px;
    }

    .forum-category-heading h2 {
        font-size: 18px;
    }

    .forum-row {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 70px;
        padding: 10px 12px;
    }

    .forum-row:hover {
        padding-left: 12px;
    }

    .forum-row-icon {
        width: 38px;
        height: 38px;
    }

    .forum-row-main strong,
    .forum-topic-main strong {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .forum-row-main small,
    .forum-topic-main small {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .forum-topic-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .forum-create-small {
        width: 100%;
        justify-content: center;
    }

    .forum-topic-row {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 10px 12px;
    }

    .forum-sidebar {
        gap: 10px;
    }

    .topic-shell,
    .profile-page-shell {
        width: calc(100% - 18px);
        padding-top: 20px;
    }

    .reference-breadcrumb strong {
        max-width: 100%;
        white-space: normal;
    }

    .reference-topic-header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .reference-topic-header h1 {
        font-size: clamp(23px, 7vw, 30px);
        overflow-wrap: anywhere;
    }

    .topic-controls {
        justify-content: flex-start;
    }

    .topic-control {
        min-height: 40px;
    }

    .reference-author {
        padding: 11px;
        gap: 9px;
    }

    .reference-avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        margin: 0;
    }

    .reference-author-stats {
        display: none;
    }

    .reference-post-toolbar {
        gap: 8px;
        flex-wrap: wrap;
    }

    .reference-post-body,
    .reference-post-first .reference-post-body {
        min-height: 0;
        padding: 16px;
        font-size: 13px;
    }

    .reference-reply-form {
        padding: 12px;
    }

    .shop-page .shop-page-shell {
        width: calc(100% - 14px);
        padding: 12px 8px;
        border-radius: 12px;
    }

    .shop-page .shop-store-header {
        gap: 12px;
    }

    .shop-page .shop-store-header h1 {
        font-size: 28px;
    }

    .shop-page .shop-orders-button {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }

    .shop-page .shop-server-card {
        min-width: min(180px, 72vw);
        width: min(180px, 72vw);
        flex-basis: min(180px, 72vw);
    }

    .shop-page .shop-carousel-arrow {
        flex-basis: 32px;
        width: 32px;
        height: 38px;
    }

    .shop-page .shop-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .shop-page .shop-product-card {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 258px;
    }

    .shop-page .shop-product-image {
        height: 150px;
        min-height: 150px;
        flex-basis: 150px;
    }

    .shop-page .shop-product-image img {
        height: 132px;
    }

    .shop-page .shop-product-bottom {
        min-height: 108px;
    }

    .shop-page .shop-product-lock {
        width: calc(100% - 36px);
        min-width: 0;
    }

    .shop-modal-overlay {
        padding: 8px;
        align-items: flex-end;
    }

    .shop-modal {
        max-height: calc(100dvh - 8px);
        padding: 20px 14px calc(18px + env(safe-area-inset-bottom));
        border-radius: 16px 16px 0 0;
    }

    .rtr-panel-page .admin-section {
        width: calc(100% - 10px);
        padding-top: 16px;
    }

    .rtr-panel-page .admin-header .left {
        align-items: center;
    }

    .rtr-panel-page .admin-header .left h1 {
        font-size: 25px;
    }

    .rtr-panel-page .admin-header .left > .admin-home-button {
        min-height: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 10px;
    }

    .rtr-panel-page .admin-sidebar {
        top: 60px;
        padding: 6px;
    }

    .rtr-panel-page .admin-sidebar nav a {
        min-height: 36px;
        padding: 0 10px;
        font-size: 10px;
    }

    .rtr-panel-page .admin-content {
        padding: 12px 10px 14px;
    }

    .rtr-panel-page .section-header,
    .rtr-panel-page .shop-products-header,
    .rtr-panel-page .shop-catalog-header {
        flex-direction: column;
        align-items: stretch;
    }

    .rtr-panel-page .section-header > .btn-primary,
    .rtr-panel-page .shop-catalog-header > .btn-primary {
        width: 100%;
    }

    .overview-stats-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .overview-stat-card {
        min-height: 108px;
        padding: 14px;
    }

    .overview-activity {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .overview-activity > b,
    .overview-status {
        align-self: flex-start;
    }

    .admin-news-card,
    .admin-server-card-modern,
    .admin-user-card,
    .admin-announcement-card,
    .shop-admin-list .shop-admin-product-card,
    .shop-archive-product-card {
        padding: 11px;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .admin-news-thumb {
        width: 64px;
        height: 50px;
        flex-basis: 64px;
    }

    .admin-news-card .actions,
    .admin-server-card-modern .actions,
    .admin-announcement-card .actions,
    .admin-user-actions,
    .shop-admin-list .shop-admin-product-card .actions,
    .shop-archive-state {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .admin-news-card .actions .btn-sm,
    .admin-server-card-modern .actions .btn-sm,
    .admin-announcement-card .actions .btn-sm,
    .admin-user-actions .btn-sm,
    .shop-admin-list .shop-admin-product-card .actions .btn-sm {
        width: 100%;
        min-width: 0;
    }

    .admin-user-card > .admin-user-actions {
        margin-left: 0;
    }

    .admin-form-section,
    .shop-product-form .form-group,
    .shop-bundle-panel,
    .shop-bundle-entry {
        padding: 11px;
    }

    .admin-form-actions,
    .shop-product-form-actions,
    .admin-server-form > .admin-form-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-form-actions > button,
    .admin-form-actions > .btn-primary,
    .admin-form-actions > .btn-secondary,
    .admin-form-actions > div,
    .admin-form-actions > div > button,
    .shop-product-form-actions > button,
    .admin-server-form > .admin-form-actions > button {
        min-width: 0;
        width: 100%;
    }

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

    .admin-form-actions-split > div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .admin-upload-control,
    .shop-image-control {
        align-items: stretch;
    }

    .admin-upload-control {
        flex-direction: column;
    }

    .admin-upload-control > span {
        width: 100%;
        flex: 1 1 auto;
        white-space: normal;
    }

    .admin-upload-button,
    .shop-upload-button {
        width: 100%;
    }

    .admin-forum-section-head,
    .admin-forum-subsection-head,
    .admin-forum-topic-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-forum-section-head .actions,
    .admin-forum-subsection-head .actions,
    .admin-forum-topic-card .actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-forum-section-head .actions .btn-sm,
    .admin-forum-subsection-head .actions .btn-sm,
    .admin-forum-topic-card .actions .btn-sm {
        width: 100%;
        min-width: 0;
    }

    .shop-products-header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .shop-admin-server-filter {
        width: 100%;
        min-width: 0;
    }

    .shop-admin-server-filter-toggle,
    .shop-server-dropdown-toggle {
        min-height: 44px;
    }

    .shop-item-id-control {
        grid-template-columns: 1fr;
    }

    .shop-item-id-control .btn-secondary {
        width: 100%;
    }

    .shop-catalog-browser {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 4px;
    }

    .shop-catalog-page-arrow {
        width: 30px;
        min-width: 30px;
        height: 56px;
    }

    .shop-catalog-grid,
    .shop-item-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .shop-catalog-card {
        grid-template-rows: 86px minmax(62px, auto) 34px;
        padding: 7px;
    }

    .shop-catalog-card-image {
        height: 86px;
    }

    .shop-bundle-panel-head,
    .shop-bundle-entry-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal-overlay {
        padding: 6px 6px 0;
        align-items: flex-end;
    }

    .modal-box,
    .modal-box.shop-product-modal,
    .modal-box.shop-product-modal-wide,
    .modal-box.admin-editor-modal,
    .modal-box.admin-server-modal,
    .modal-box.admin-user-modal,
    .modal-box.admin-forum-modal,
    .shop-item-picker-modal {
        width: 100%;
        max-height: calc(100dvh - 6px);
        padding: 18px 12px calc(16px + env(safe-area-inset-bottom));
        border-radius: 16px 16px 0 0;
    }

    .modal-box h2 {
        padding-right: 34px;
        font-size: 19px;
        line-height: 1.25;
    }

    .rich-editor-wysiwyg .rich-editor-toolbar,
    .shop-editor-toolbar {
        padding: 6px;
        gap: 5px;
    }

    .form-group .rich-editor-toolbar .rich-editor-select,
    .rich-editor-toolbar .rich-editor-select {
        min-width: 118px;
        width: 118px !important;
        flex: 0 0 118px;
        font-size: 11px !important;
    }

    .form-group .rich-editor-toolbar .rich-editor-size-select,
    .rich-editor-toolbar .rich-editor-size-select {
        min-width: 82px;
        width: 82px !important;
        flex-basis: 82px;
    }

    .rich-editor-toolbar .rich-editor-tool {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
    }

    .rich-editor-canvas,
    .shop-editor-area {
        min-height: 180px !important;
        max-height: 44dvh;
        padding: 11px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .logo img {
        width: 96px;
    }

    .header-left {
        max-width: 100px;
    }

    .header-right .header-deposit {
        padding: 0 8px;
        font-size: 9px;
    }

    .header-right .header-user-identity {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    .header-right .header-avatar {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .hamburger {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .admin-news-card .actions,
    .admin-server-card-modern .actions,
    .admin-announcement-card .actions,
    .admin-user-actions,
    .shop-admin-list .shop-admin-product-card .actions,
    .shop-archive-state,
    .admin-form-actions,
    .shop-product-form-actions,
    .admin-server-form > .admin-form-actions,
    .admin-forum-section-head .actions,
    .admin-forum-subsection-head .actions,
    .admin-forum-topic-card .actions {
        grid-template-columns: 1fr;
    }

    .shop-catalog-grid,
    .shop-item-picker-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .header {
        position: sticky;
    }

    .mobile-menu {
        padding-top: 8px;
    }

    .mobile-menu a {
        min-height: 40px;
    }

    .modal-overlay,
    .shop-modal-overlay {
        align-items: center;
        padding: 6px;
    }

    .modal-box,
    .shop-modal,
    .modal-box.shop-product-modal,
    .modal-box.shop-product-modal-wide {
        max-height: calc(100dvh - 12px);
        border-radius: 12px;
    }
}
@media (max-width: 620px) {
    #toastContainer {
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: auto;
        max-width: none;
    }

    .toast {
        width: 100%;
        max-width: none;
    }

    .ticket-filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ticket-filters select,
    .ticket-filters input,
    .ticket-filters input[style] {
        width: 100% !important;
        min-width: 0 !important;
    }

    .form-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    .form-actions .hero-btn,
    .form-actions .btn-secondary,
    .form-actions .back-link {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .file-upload-area {
        padding: 20px 12px;
    }

    .file-upload-area .sub-text {
        overflow-wrap: anywhere;
    }

    .support-section .ticket-form > .hero-btn {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .comment-form .form-actions,
    .comment-form .form-actions > * {
        width: 100%;
    }

    .comment-form .btn {
        justify-content: center;
    }

    .rich-text-content table,
    .rich-editor-canvas table,
    .shop-editor-area table,
    .reference-post-body table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* Mobile header account controls v25 */
.mobile-account-balance {
    display: none;
}

@media (max-width: 620px) {
    .header-right .header-balance-box {
        display: flex !important;
        min-width: 0;
        min-height: 34px;
        height: 34px;
        padding: 0 8px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
    }

    .header-right .header-balance-label {
        display: none;
    }

    .header-right .header-balance-box strong {
        margin: 0;
        font-size: 11px;
        line-height: 1;
        white-space: nowrap;
    }

    .mobile-menu .mobile-auth:not([hidden]) {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .mobile-menu .mobile-auth .btn-login {
        width: 100%;
        min-height: 46px;
        height: 46px;
        margin: 0 !important;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
        box-sizing: border-box;
    }

    .mobile-menu .mobile-auth .mobile-admin-link {
        background: rgba(255, 255, 255, .055);
        border: 1px solid rgba(255, 255, 255, .1);
        color: #fff;
    }

    .mobile-menu .mobile-auth .mobile-logout {
        background: rgba(160, 32, 38, .22);
        border: 1px solid rgba(220, 58, 64, .3);
    }

    .mobile-account-balance {
        min-height: 46px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 10px;
        background: rgba(255, 255, 255, .035);
        color: #7d8796;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        box-sizing: border-box;
    }

    .mobile-account-balance strong {
        color: #fff;
        font-size: 15px;
        font-weight: 800;
        text-transform: none;
        letter-spacing: 0;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .header-right {
        gap: 4px;
    }

    .header-right .header-balance-box {
        min-height: 32px;
        height: 32px;
        padding: 0 6px;
    }

    .header-right .header-balance-box strong {
        max-width: 58px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 10px;
    }
}

.mobile-menu .mobile-admin-link[hidden] {
    display: none !important;
}
.forum-attachments{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.forum-attachment{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:220px;padding:10px 12px;border:1px solid rgba(255,255,255,.12);border-radius:10px;text-decoration:none}.forum-attachment strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.forum-attachment span{opacity:.7;white-space:nowrap}
