/* WinxTools — dark theme */
:root {
    --bg-dark: #1a1a1a;
    --bg-card: #141414;
    --bg-input: #1a1a1a;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #ffffff;
    --accent-hover: #e8e8e8;
    --hover-text: #a0a0a0;
    --danger: #ff5252;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Local Inter font files — self-hosted, no Google Fonts request. */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Medium.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-SemiBold.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Максимально тёмно-чёрный переливающийся фон (только чёрные цвета) */
.site-bg-animated {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, #000 0%, #050505 20%, #030303 40%, #080808 60%, #020202 80%, #000 100%);
    overflow: hidden;
}

.site-bg-animated::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(ellipse 70% 50% at 30% 20%, rgba(10, 10, 10, 0.6), transparent 50%),
                radial-gradient(ellipse 60% 60% at 80% 80%, rgba(8, 8, 8, 0.5), transparent 50%),
                radial-gradient(ellipse 50% 70% at 50% 50%, rgba(5, 5, 5, 0.4), transparent 60%);
    animation: bgIridescentGlow 18s ease-in-out infinite;
    pointer-events: none;
}

.site-bg-animated::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 300%;
    background: linear-gradient(105deg, transparent 0%, rgba(20, 20, 20, 0.15) 25%, transparent 50%, rgba(15, 15, 15, 0.12) 75%, transparent 100%);
    pointer-events: none;
    will-change: transform;
    animation: bgShimmerTransform 14s linear infinite;
}

@keyframes bgShimmerTransform {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(33.333%, 0, 0); }
}

@keyframes bgIridescentGlow {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

@keyframes bgShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.site-header,
.main-content,
.site-footer {
    position: relative;
    z-index: 0;
}

.main-content {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px 48px;
    animation: mainContentFadeIn 0.35s ease;
}

@keyframes mainContentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-content--home {
    max-width: none;
    padding: 0;
    animation: none;
}

/* Header */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.header-right-widgets {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 8px;
}

.header-balance-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.header-balance-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.header-balance-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.header-balance-value {
    font-weight: 600;
}

.header-notifications {
    position: relative;
}

.header-notifications-trigger {
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

.header-notifications-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--danger);
    color: #000;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-notifications-menu {
    position: absolute;
    right: 0;
    top: 28px;
    min-width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    display: none;
    z-index: 20;
}

.header-notifications.open .header-notifications-menu {
    display: block;
}

.header-notifications-empty {
    padding: 8px 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.header-notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-notifications-item a {
    display: block;
    padding: 6px 14px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
}

.header-notifications-item a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.header-notif-author {
    font-weight: 600;
}

.header-notif-text {
    margin: 0 4px;
}

.header-notif-thread {
    display: block;
}

.header-notif-time {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo:hover {
    color: rgba(255, 255, 255, 0.85);
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    white-space: nowrap;
}

.logo-part--blue {
    color: #fff;
}

.header-home-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.header-search {
    padding: 8px 14px;
    min-width: 200px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
}

.header-search::placeholder {
    color: var(--text-muted);
}

.header-search:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-header-cabinet {
    padding: 8px 16px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-header-cabinet:hover {
    background: var(--bg-input);
    border-color: var(--hover-text);
    color: var(--hover-text);
}

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

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--hover-text);
}

/* Иконки в навигации (Font Awesome) */
.nav-icon {
    width: 1.15em;
    display: inline-block;
    text-align: center;
    font-size: 1.1rem;
}
.nav-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    padding: 6px;
    border-radius: 4px;
}
.nav-link-icon:hover {
    color: var(--hover-text);
}
.nav-dropdown .nav-link-icon.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.nav-dropdown .nav-dropdown-trigger::after {
    display: none;
}
.main-nav--icons {
    gap: 8px;
}

/* Поиск в шапке */
.header-search-form {
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-search-form .header-search {
    min-width: 140px;
    padding: 6px 10px;
    font-size: 0.9rem;
}
.header-search-btn {
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.header-search-btn:hover {
    border-color: var(--accent);
}
.header-search-btn i {
    display: inline-block;
}
.header-home-right .header-search-form {
    flex: 0 1 auto;
}

@media (max-width: 768px) {
    .header-search-form {
        position: relative;
        max-width: 36px;
        overflow: hidden;
        flex-shrink: 0;
    }
    .header-search-form .header-search {
        width: 0;
        min-width: 0;
        padding: 0;
        margin-right: 0;
        border: none;
        opacity: 0;
        transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease, margin 0.2s ease;
    }
    .header-search-form--open {
        max-width: 220px;
    }
    .header-search-form--open .header-search {
        width: 160px;
        min-width: 0;
        padding: 6px 10px;
        margin-right: 4px;
        border: 1px solid var(--border);
        opacity: 1;
    }
}

/* Выпадающее меню в навигации */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-dropdown-trigger:hover {
    color: var(--hover-text);
}
.nav-dropdown-trigger::after {
    content: '';
    border: 4px solid transparent;
    border-top-color: currentColor;
    margin-left: 2px;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 6px;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    padding: 6px 0 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 200;
}
/* Разметка меню — вложенные <ul>/<li>: снимаем браузерные отступы списков,
   сами отступы заданы в .nav-dropdown-menu выше. */
ul.nav-dropdown-menu,
ul.nav-dropdown-menu > li {
    margin: 0;
    list-style: none;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 10px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}
.nav-dropdown-menu a:hover {
    background: var(--bg-input);
    color: var(--hover-text);
}

/* Выпадающее меню личного кабинета в хедере */
.cabinet-dropdown {
    position: relative;
}
.cabinet-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}
.cabinet-dropdown-trigger:hover {
    background: var(--bg-card);
    border-color: var(--hover-text);
}
.cabinet-dropdown-avatar-wrap {
    flex-shrink: 0;
    padding: 2px;
    border-radius: 50%;
    background: var(--bg-card);
}
.cabinet-dropdown-avatar {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.cabinet-dropdown-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cabinet-dropdown-chevron {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-left: 2px;
}
.cabinet-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    padding-top: 6px;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 250;
}
.cabinet-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 10px;
}
.cabinet-dropdown:hover .cabinet-dropdown-menu,
.cabinet-dropdown-trigger[aria-expanded="true"] + .cabinet-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cabinet-dropdown-status {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.cabinet-dropdown-avatar-wrap {
    position: relative;
}
.cabinet-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}
.status-dot-online { background: #4caf50; }
.status-dot-dnd { background: #f44336; }
.status-dot-invisible { background: var(--text-muted); }
.cabinet-dropdown-status-block {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}
.cabinet-dropdown-status-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.cabinet-status-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}
.cabinet-status-option:hover {
    background: transparent;
    color: var(--hover-text);
}
.cabinet-status-option.is-active {
    color: var(--accent);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.profile-info-status.status-online { color: #4caf50; }
.profile-info-status.status-dnd { color: #f44336; }
.profile-info-status.status-invisible { color: var(--text-muted); }
.cabinet-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
.cabinet-dropdown-menu a:last-child {
    border-bottom: none;
}
.cabinet-dropdown-menu a:hover {
    background: var(--bg-input);
    color: var(--hover-text);
}

/* Выпадающее меню как на картинке */
.cabinet-dropdown-menu--image {
    padding: 0;
    min-width: 240px;
    background: #0a0a0a;
    border-color: #1a1a1a;
}
.cabinet-dropdown-menu--image .cabinet-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid #1a1a1a;
}
.cabinet-dropdown-menu--image .cabinet-dropdown-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.cabinet-dropdown-menu--image .cabinet-dropdown-email {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.cabinet-dropdown-menu--image .cabinet-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #1a1a1a;
}
.cabinet-dropdown-menu--image .cabinet-dropdown-item:last-child {
    border-bottom: none;
}
.cabinet-dropdown-menu--image .cabinet-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.nav-menu-icon {
    width: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Баланс и уведомления внутри дропдауна (мобильная версия) */
.cabinet-dropdown-mobile-only {
    display: none;
}

.cabinet-dropdown-balance-mobile {
    padding: 10px 16px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.9rem;
}

.cabinet-dropdown-balance-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cabinet-dropdown-balance-value {
    font-weight: 600;
}

.cabinet-dropdown-balance-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
}

.cabinet-dropdown-balance-link:hover {
    text-decoration: underline;
}

.cabinet-dropdown-notifs-mobile {
    padding: 10px 16px;
    border-bottom: 1px solid #1a1a1a;
}

.cabinet-dropdown-notifs-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cabinet-dropdown-notifs-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cabinet-dropdown-notifs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.cabinet-dropdown-notifs-list li a {
    display: block;
    padding: 4px 0;
    color: var(--text);
    text-decoration: none;
}

.cabinet-dropdown-notifs-list li a:hover {
    color: var(--accent);
}

.cabinet-dropdown-notifs-list .notif-author {
    font-weight: 600;
}

.cabinet-dropdown-notifs-list .notif-text {
    margin: 0 4px;
}

.cabinet-dropdown-notifs-list .notif-thread {
    display: block;
}

.header-home-right .cabinet-dropdown {
    margin-left: auto;
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.footer-brand strong {
    color: var(--text);
    font-size: 1rem;
}

.footer-brand span {
    color: var(--text-muted);
}

.footer-legal {
    flex: 1;
}

.footer-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer-links a,
.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

@media (max-width: 760px) {
    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* Главная страница — стиль в духе gravebirth home.css */
.main-content--home {
    min-height: calc(100vh - 140px);
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.home-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    min-height: calc(100vh - 140px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 24px 24px;
    align-items: center;
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 0;
}

.home-card-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.home-card-text {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

.home-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-nav-list li {
    margin-bottom: 0.75rem;
}

.home-nav-list a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.home-nav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.home-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.home-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2em;
}

.home-main .subtitle {
    font-size: 1.25rem;
    color: #888;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.btn-home-community {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #0a0a0a;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-home-community:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
    color: #0a0a0a;
}

.home-section {
    max-width: 1100px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.home-section-inner {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px 24px 28px;
}

.home-section-header h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.home-section-header p {
    margin: 0 0 18px;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.home-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.home-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 12px;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    border-color: var(--accent);
}

.home-social-icon {
    font-size: 1.6rem;
}

.home-social-name {
    font-size: 0.9rem;
}

.home-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.home-contact-item h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.home-contact-item p {
    margin: 0 0 4px;
}

.home-contact-item a {
    color: var(--accent);
    text-decoration: none;
}

.home-contact-item a:hover {
    color: var(--hover-text);
    text-decoration: underline;
}

.home-contact-hint {
    font-size: 0.85rem;
    color: #9e9e9e;
}

.home-hero-title.fade-in,
.home-main .btn.fade-in,
.home-card.fade-in {
    opacity: 0;
    animation: homeFadeIn 1s ease forwards;
}

.home-card.fade-in:nth-child(1) { animation-delay: 0.1s; }
.home-card.fade-in:nth-child(2) { animation-delay: 0.2s; }
.home-main .btn-home-community.fade-in { animation-delay: 0.2s; }

@keyframes homeFadeIn {
    to {
        opacity: 1;
    }
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-social {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 4px;
}

.footer-social:hover {
    color: var(--hover-text);
}

@media (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem 16px;
    }
    .home-sidebar {
        order: 2;
    }
    .home-main {
        order: 1;
        padding: 1.5rem;
    }
    .home-hero-title {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
    }
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px 80px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin: 0 0 8px;
    color: #fff;
}

.hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin: 0 0 32px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    color: #fff;
}

.btn-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Stats */
.stats-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.stats-inner {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Auth */
.auth-page {
    max-width: 400px;
    margin: 40px auto;
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
}

.auth-box h1 {
    margin: 0 0 20px;
    font-size: 1.5rem;
}

.auth-error {
    color: var(--danger);
    margin: 0 0 12px;
    font-size: 0.9rem;
}

.auth-success {
    color: var(--accent);
    margin: 0 0 12px;
}

.auth-form label {
    display: block;
    margin: 12px 0 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-form input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-form button {
    margin-top: 20px;
    width: 100%;
}

.auth-link {
    margin: 16px 0 0;
    text-align: center;
}

.auth-link a {
    color: var(--accent);
    text-decoration: none;
}

.auth-link a:hover {
    color: var(--hover-text);
    text-decoration: underline;
}

.auth-consent-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.auth-consent-checkbox {
    flex-shrink: 0;
    cursor: pointer;
}

.auth-consent-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.auth-consent-text {
    flex: 1;
    line-height: 1.4;
}

.auth-consent-link {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-consent-link:hover {
    color: rgba(255, 255, 255, 1);
}

.auth-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.auth-consent-modal[hidden] {
    display: none;
}

.auth-consent-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.auth-consent-modal-content {
    position: relative;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.auth-consent-modal-title {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.auth-consent-modal-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

.auth-consent-modal-body p {
    margin: 0 0 12px;
}

.auth-consent-modal-body p:last-of-type {
    margin-bottom: 8px;
}

.auth-consent-modal-body ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.auth-consent-modal-body a {
    color: var(--accent);
    text-decoration: none;
}

.auth-consent-modal-body a:hover {
    text-decoration: underline;
}

.auth-consent-modal-close {
    margin-top: 16px;
}

.forum-page {
    margin: 0;
}

.page-title {
    font-size: 1.6rem;
    margin: 0 0 20px;
    font-weight: 600;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--hover-text);
    text-decoration: underline;
}

.forum-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.forum-category {
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.forum-category:hover {
    background: rgba(255, 255, 255, 0.04);
}

.forum-category:last-child {
    border-bottom: none;
}

.forum-section-title {
    margin: 24px 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.forum-section-title:first-child {
    margin-top: 0;
}

.forum-section-title--admin {
    color: var(--accent);
}

.forum-category--admin {
    border-left: 3px solid var(--accent);
}

.forum-cat-main {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
}

.forum-cat-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.forum-cat-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.forum-cat-info h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 600;
}

.forum-cat-info h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forum-cat-info h2 a:hover {
    color: var(--hover-text);
}

.forum-cat-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.forum-cat-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

.forum-cat-stats span {
    color: var(--accent);
    font-weight: 600;
}

.forum-cat-last {
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-size: 0.85rem;
}

.forum-cat-last-avatar-wrap {
    flex-shrink: 0;
    display: block;
}

.forum-cat-last-avatar,
.forum-cat-last-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.5);
}

.forum-cat-last-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.forum-cat-last-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.forum-cat-last-title {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-cat-last-title:hover {
    color: var(--hover-text);
}

.forum-cat-last-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-actions {
    margin-top: 20px;
}

/* Thread list (старый вид — используется как база для нового) */
.thread-list {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
}

.thread-list-head {
    display: none;
}

.thread-row {
    display: none;
}

.thread-row .col-topic a {
    color: var(--text);
    text-decoration: none;
}

.thread-row .col-topic a:hover {
    color: var(--hover-text);
}

.col-author, .col-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.pinned-badge {
    background: var(--accent);
    color: #000;
}

/* Posts */
.post-list {
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
}

/* Старый .post используется в других местах, для темы вводим новый вид */

.thread-title {
    margin-bottom: 20px;
}

.thread-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.thread-delete-form .btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.staff-thread-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-right: 6px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid #ffc107;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.thread-closed-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-right: 6px;
    border-radius: 999px;
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid #ff6464;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.thread-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.thread-author-card {
    margin: 20px 0 24px;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(15, 15, 15, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.thread-author-main {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
}

.thread-author-avatar,
.thread-author-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.thread-author-avatar-placeholder {
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
}

.thread-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thread-author-name {
    font-weight: 600;
    font-size: 1rem;
}

.thread-author-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.thread-author-stats--icons {
    flex-direction: column;
    gap: 6px;
}

.thread-author-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread-author-stat-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

.thread-author-stat-value {
    font-weight: 600;
    margin-right: 4px;
    color: var(--text);
}

.thread-author-reactions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-like-thread,
.btn-like-post,
.btn-like-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-like-thread:hover,
.btn-like-post:hover,
.btn-like-main:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-like-thread--active,
.btn-like-post--active,
.btn-like-main--active {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4caf50;
    color: #c8e6c9;
}

.btn-like-icon {
    font-size: 0.9rem;
}

.thread-like-count,
.thread-post-like-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.thread-post-reactions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 6px;
}

.thread-post-reactions-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reaction-form {
    position: relative;
}

.reaction-toggle {
    position: relative;
    z-index: 2;
}

.reaction-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    display: flex;
    gap: 4px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.reaction-menu--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reaction-option {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.reaction-option:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

.reaction-option--clear {
    font-size: 0.9rem;
}

.thread-posts {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.thread-post-card {
    background: rgba(15, 15, 15, 0.9);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.thread-post-card--first {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.thread-post-inner {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 24px;
}

.thread-post-sidebar {
    border-right: 1px solid var(--border);
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.thread-post-user {
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.thread-post-avatar,
.thread-post-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.thread-post-avatar-placeholder {
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.thread-post-username {
    font-weight: 600;
}

.thread-post-user-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.thread-post-user-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread-post-user-stat-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

.thread-post-user-stat-value {
    font-weight: 600;
    color: var(--text-muted);
}

.thread-post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.thread-post-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thread-post-header {
    display: flex;
    justify-content: flex-end;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.thread-post-index {
    opacity: 0.7;
}

.thread-post-content {
    font-size: 0.98rem;
    line-height: 1.6;
}

.thread-post-actions {
    text-align: right;
}

.post-author {
    display: block;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 4px;
}

.post-author:hover {
    color: var(--hover-text);
    text-decoration: underline;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.post-delete-form {
    margin-top: 8px;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    color: var(--text-muted);
}

.btn-link:hover {
    color: var(--hover-text);
}

.btn-delete:hover {
    color: var(--danger) !important;
}

.btn-edit:hover {
    color: var(--accent);
}

.admin-edit-category-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

.reply-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.reply-form-wrap h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.reply-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 12px;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.forum-login-hint {
    color: var(--text-muted);
    margin-top: 20px;
}

.forum-login-hint a {
    color: var(--accent);
}

/* New topic form */
.new-topic-form label,
.cabinet-form label {
    display: block;
    margin: 12px 0 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.new-topic-form input,
.new-topic-form select,
.cabinet-form input {
    width: 100%;
    max-width: 500px;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 8px;
}

.new-topic-form textarea {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 12px;
}

.new-topic-form button,
.cabinet-form button {
    margin-top: 16px;
}

/* Кнопка "Создать тему" в разделах форума */
.forum-cat-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forum-cat-create-btn:hover {
    color: var(--hover-text);
}

.forum-cat-create-btn i {
    font-size: 0.85em;
}

.forum-create-topic-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Дизайн создания темы (как на картинке) */
.forum-new-topic-page .new-topic-form--styled {
    max-width: 100%;
}

.forum-new-topic-page .new-topic-title-input {
    max-width: 100%;
    padding: 14px 16px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
}

.new-topic-editor-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(15, 15, 15, 0.95);
    margin-bottom: 20px;
}

.forum-new-topic-page .new-topic-editor-wrap {
    max-width: 100%;
}

.new-topic-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(25, 25, 25, 0.9);
    border-bottom: 1px solid var(--border);
}

.new-topic-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.new-topic-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.new-topic-toolbar-btn b, .new-topic-toolbar-btn i, .new-topic-toolbar-btn code {
    font-weight: 600;
    font-style: normal;
    font-family: inherit;
}

.new-topic-toolbar-spacer {
    flex: 1;
    min-width: 20px;
}

.new-topic-content-input {
    width: 100%;
    min-height: 280px;
    padding: 16px;
    background: rgba(12, 12, 12, 0.98);
    border: none;
    border-radius: 0;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 0;
}

.forum-new-topic-page .new-topic-content-input {
    max-width: none;
}

.new-topic-content-input:focus {
    outline: none;
}

.new-topic-settings {
    margin: 20px 0;
    padding: 16px;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.new-topic-settings-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.forum-new-topic-page .forum-create-topic-btn {
    margin-top: 24px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #fff;
    color: #111;
}

.forum-new-topic-page .forum-create-topic-btn:hover {
    background: #f0f0f0;
    color: #111;
}

/* Cabinet */
.cabinet-page {
    max-width: 640px;
}

.cabinet-settings-page {
    max-width: 960px;
}

.cabinet-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.cabinet-profile {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cabinet-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.cabinet-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.cabinet-info h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.cabinet-info p {
    margin: 4px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.profile-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.profile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.profile-social-link:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.profile-social-link--text {
    padding: 0 10px;
    width: auto;
}

.profile-social-verified {
    display: inline-block;
    margin-left: 6px;
    color: #4caf50;
    font-weight: 700;
}

.settings-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.settings-social-card {
    background: rgba(20, 20, 20, 0.9);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-social-card .info h4 {
    margin: 0 0 4px;
}

.settings-social-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cabinet-actions {
    margin-top: 16px;
}

/* Cabinet layout — как на главной */
.cabinet-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.cabinet-sidebar .cabinet-card {
    margin-bottom: 20px;
}

.cabinet-profile-card {
    text-align: center;
}

.cabinet-profile-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cabinet-profile-card .cabinet-avatar,
.cabinet-profile-card .cabinet-avatar-placeholder {
    margin: 0 auto 12px;
    display: block;
}

.cabinet-avatar-large {
    width: 100px;
    height: 100px;
}

.cabinet-username {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.cabinet-stats, .cabinet-date {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.cabinet-balance, .cabinet-discount {
    margin: 10px 0 0;
    font-size: 0.95rem;
    color: var(--text);
}

/* Баланс */
.balance-card {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.balance-amount-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.balance-amount-value {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 6px;
}

.balance-topup-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.balance-topup-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.balance-topup-row input[type="number"] {
    max-width: 160px;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
}

.balance-topup-row input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
}

.balance-promo-form { margin-bottom: 12px; }
.balance-promo-form label { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--text-muted); }
.balance-promo-row { display: flex; gap: 10px; align-items: center; }
.balance-promo-row input[type="text"] { flex: 1; max-width: 200px; padding: 8px 10px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
.balance-promo-row input[type="text"]:focus { outline: none; border-color: var(--accent); }

.balance-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.balance-history {
    margin-top: 24px;
}

.balance-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.balance-history-table th,
.balance-history-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}

.balance-history-table th {
    text-align: left;
    color: var(--text-muted);
}
.cabinet-profile-card--image-layout .cabinet-balance,
.cabinet-profile-card--image-layout .cabinet-discount {
    text-align: center;
}
.cabinet-friends-card .cabinet-card-title {
    margin-bottom: 12px;
}
.cabinet-friends-all {
    color: var(--text);
    text-decoration: none;
}
.cabinet-friends-all:hover {
    color: var(--accent);
    text-decoration: underline;
}
.cabinet-friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.cabinet-friend-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Магазин */
.shop-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

.shop-balance-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15, 15, 15, 0.9);
    margin-bottom: 20px;
}

.shop-balance-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.shop-balance-value {
    font-weight: 600;
}

.shop-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.shop-case-card {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 18px 18px 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}

.shop-case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.shop-case-title {
    margin: 0;
    font-size: 1.1rem;
}

.shop-case-price {
    font-weight: 600;
}

.shop-case-description {
    margin: 6px 0 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.shop-case-rewards {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 0.9rem;
}

/* Прокрут кейсов — в стиле тематики сайта (тёмная тема) */
.shop-case-roller-wrapper {
    position: relative;
    margin-bottom: 16px;
}
.shop-case-roller-frame {
    position: relative;
    padding: 3px;
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 50%, #141414 100%);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}
.shop-case-roller {
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    background: #0a0a0a;
    min-height: 140px;
}
.shop-case-roller::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 12px rgba(255,255,255,0.3);
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}
.shop-case-roller-inner {
    display: flex;
    will-change: transform;
}
.shop-case-item {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
    padding: 24px 28px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    background: linear-gradient(180deg, #1e1e1e 0%, #161616 50%, #141414 100%);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    margin: 6px 4px;
    border-radius: 10px;
}
.shop-case-item:first-child {
    margin-left: 6px;
}
/* Chevron markers — точка выбора */
.shop-case-roller-marker {
    position: absolute;
    left: 50%;
    margin-left: -14px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    z-index: 3;
}
.shop-case-roller-marker--top {
    top: -6px;
    border-bottom: 12px solid var(--accent);
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.2));
}
.shop-case-roller-marker--bottom {
    bottom: -6px;
    border-top: 12px solid var(--accent);
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.2));
}

.shop-case-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-case-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.shop-drop-history {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.shop-drop-history-title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 600;
}
.shop-drop-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-drop-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.02);
}
.shop-drop-history-item--deportation {
    background: rgba(200,60,60,0.15);
    color: #e07070;
}
.shop-drop-history-user {
    font-weight: 500;
    min-width: 100px;
}
.shop-drop-history-reward {
    flex: 1;
}
.shop-drop-history-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cabinet-profile-card--image-layout .cabinet-balance,
.cabinet-profile-card--image-layout .cabinet-discount {
    text-align: center;
}
.cabinet-friends-card .cabinet-card-title {
    margin-bottom: 12px;
}
.cabinet-friends-all {
    color: var(--text);
    text-decoration: none;
}
.cabinet-friends-all:hover {
    color: var(--accent);
    text-decoration: underline;
}
.cabinet-friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.cabinet-friend-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
}
.cabinet-friend-tile:hover {
    color: var(--accent);
}
.cabinet-friend-tile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.cabinet-friend-tile-placeholder {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.cabinet-friend-tile-name {
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cabinet-friends-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cabinet-card-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
}

.cabinet-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cabinet-nav-list li { margin-bottom: 8px; }
.cabinet-nav-list a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}
.cabinet-nav-list a:hover { color: var(--hover-text); }

.cabinet-friends-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cabinet-friends-list li { margin-bottom: 8px; }
.cabinet-friends-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
}
.cabinet-friends-list a:hover { color: var(--hover-text); }
.cabinet-friends-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.cabinet-friends-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
}

.cabinet-friends-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.cabinet-friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    text-decoration: none;
    color: var(--text);
}

.cabinet-friend-item:hover {
    color: var(--accent);
}

.cabinet-friend-avatar,
.cabinet-friend-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cabinet-friend-avatar {
    object-fit: cover;
}

.cabinet-friend-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 1rem;
}

.cabinet-friend-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-avatar, .friend-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.friend-avatar-placeholder {
    background: var(--accent);
    color: #000;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-actions a.btn-primary {
    color: #000 !important;
}

/* Блок профиля как на картинке */
.profile-info-block {
    margin-top: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
}
.profile-info-block--above-wall {
    margin-top: 0;
    margin-bottom: 24px;
}
.cabinet-main .profile-info-block--above-wall {
    max-width: 420px;
}
.profile-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.profile-info-title {
    font-weight: 600;
    color: var(--text);
}
.profile-info-status {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.profile-info-section {
    border-bottom: 1px solid var(--border);
}
.profile-info-section:last-child {
    border-bottom: none;
}
.profile-info-section-title {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}
.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}
.profile-info-row:last-child {
    border-bottom: none;
}
.profile-info-label {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.profile-info-value {
    color: var(--text);
    text-align: right;
}
.profile-info-role.role-user {
    color: #4caf50;
    display: inline-block;
}
.profile-info-role.role-moderator {
    color: #64b5f6;
    display: inline-block;
}
.profile-info-role.role-admin {
    color: #ff5252;
    display: inline-block;
}
.profile-info-link {
    color: #2196f3;
    text-decoration: none;
}
.profile-info-link:hover {
    text-decoration: underline;
}

/* Стена */
.cabinet-wall {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.cabinet-section-title {
    margin: 0 0 20px;
    font-size: 1.2rem;
}

.wall-post-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    margin-bottom: 12px;
}

.wall-posts { margin-top: 20px; }
.wall-post {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.wall-post:last-child { border-bottom: none; }
.wall-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.wall-post-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
}
.wall-post-author:hover { color: var(--hover-text); }
.wall-author-avatar, .wall-author-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.wall-author-placeholder {
    background: var(--accent);
    color: #000;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wall-post-date { color: var(--text-muted); font-size: 0.85rem; }
.wall-empty, .wall-hint { color: var(--text-muted); margin: 16px 0; }

/* Сообщения / личные диалоги */
.messages-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
}
.messages-sidebar, .messages-main { min-width: 0; }
.messages-sidebar h2 { margin: 0 0 16px; font-size: 1.1rem; }
.dialog-item {
    display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 6px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    text-decoration: none; color: var(--text); transition: border-color .15s ease, background-color .15s ease;
}
.dialog-item:hover, .dialog-item.active { border-color: var(--accent); background: rgba(255,255,255,.04); }
.dialog-avatar, .dialog-avatar-placeholder { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dialog-avatar-placeholder { background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.dialog-info { flex: 1; min-width: 0; }
.dialog-preview { display: block; font-size: .85rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.messages-empty, .messages-select { color: var(--text-muted); }
.messages-main h2 { margin: 0 0 16px; }
.dialog-view-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.dialog-view-title { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.dialog-back-btn { padding: 8px 16px; font-size: .9rem; }
.messages-list { max-height: 400px; overflow-y: auto; margin-bottom: 20px; }
.messages-list--dialog {
    height: min(62vh, 620px); min-height: 320px; max-height: 620px;
    overflow-y: auto; overflow-x: hidden; padding: 12px 14px 14px 4px; margin-bottom: 16px;
    scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; overscroll-behavior: contain;
}
.messages-list--dialog::-webkit-scrollbar { width: 10px; }
.messages-list--dialog::-webkit-scrollbar-track { background: transparent; margin: 4px 0; }
.messages-list--dialog::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
.messages-list--dialog::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.42); border: 3px solid transparent; background-clip: padding-box; }
.dialog-msg-row { display: flex; width: 100%; gap: 10px; align-items: flex-end; padding: 4px 0; }
.dialog-msg-row--in { justify-content: flex-start; }
.dialog-msg-row--out { justify-content: flex-start; flex-direction: row-reverse; }
.dialog-msg-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--border); }
.dialog-msg-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.dialog-msg-avatar-placeholder { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #000; font-weight: 700; font-size: .95rem; }
.dialog-msg-body { min-width: 0; max-width: min(76%, 720px); display: flex; flex-direction: column; }
.dialog-msg-row--out .dialog-msg-body { align-items: flex-end; text-align: right; }
.dialog-msg-row--in .dialog-msg-body { align-items: flex-start; }
.dialog-msg-meta { display: flex; align-items: baseline; gap: 8px; margin: 0 6px 4px; }
.dialog-msg-row--out .dialog-msg-meta { justify-content: flex-end; flex-direction: row-reverse; }
.dialog-msg-nick { font-weight: 600; color: #64b5f6; text-decoration: none; font-size: .88rem; }
.dialog-msg-nick:hover { color: #90caf9; text-decoration: underline; }
.dialog-msg-time { font-size: .72rem; color: var(--text-muted); flex-shrink: 0; }
.dialog-msg-bubble { display: inline-block; max-width: 100%; padding: 9px 13px; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.dialog-msg-row--in .dialog-msg-bubble { background: var(--bg-input); border-radius: 14px 14px 14px 4px; }
.dialog-msg-row--out .dialog-msg-bubble { background: rgba(100,181,246,.16); border-color: rgba(100,181,246,.28); border-radius: 14px 14px 4px 14px; }
.dialog-msg-text { color: var(--text); font-size: .95rem; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.dialog-msg-text .msg-gif { display: block; max-width: min(360px, 100%); max-height: 240px; border-radius: 10px; margin: 4px 0 2px; object-fit: contain; }
.messages-form--dialog { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--border); }
.messages-form-row { display: flex; align-items: flex-end; gap: 10px; }
.dialog-send-btn { flex-shrink: 0; padding: 10px 20px; height: 44px; }
.messages-form-row textarea { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: inherit; font-size: .95rem; resize: vertical; margin-bottom: 0; }
.messages-form-row textarea:focus { outline: none; border-color: var(--accent); }
.dialog-emoji-wrap { position: relative; flex-shrink: 0; }
.dialog-emoji-wrap .btn-emoji-toggle { width: 44px; height: 44px; padding: 0; font-size: 1.2rem; }
.dialog-emoji-wrap .chat-emoji-panel { right: 0; left: auto; bottom: 100%; margin-bottom: 8px; max-height: 220px; overflow-y: auto; }
.msg-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.msg-out { text-align: right; }
.msg-out .msg-content { background: rgba(255,255,255,.1); display: inline-block; padding: 8px 12px; border-radius: 8px; }
.msg-in .msg-content { background: var(--bg-input); display: inline-block; padding: 8px 12px; border-radius: 8px; }
.msg-date { font-size: .8rem; color: var(--text-muted); }
.messages-form textarea { width: 100%; padding: 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; color: var(--text); margin-bottom: 12px; }

/* Уведомление о новом сообщении */
.msg-notify-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.msg-notify-toast.msg-notify-toast--show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.msg-notify-toast:hover {
    border-color: var(--accent);
    color: var(--hover-text);
}

/* Друзья */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.friend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
}
.friend-card:hover { border-color: var(--accent); }
.friend-card-avatar, .friend-card-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 8px;
    object-fit: cover;
}
.friend-card-placeholder {
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.friend-card-name {
    font-weight: 500;
    text-align: center;
    word-break: break-word;
}
.friends-empty { color: var(--text-muted); margin-top: 20px; }
.friends-back-link { color: #fff; }
.friends-back-link:hover { color: rgba(255,255,255,0.85); }

.friends-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.friends-tab {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-muted);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.friends-tab:hover { background: var(--border); color: var(--text); }
.friends-tab.friends-tab--active {
    background: var(--accent);
    color: #000;
}
.friends-requests-list { margin-top: 16px; }
.friend-request-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.friend-request-row:last-child { border-bottom: none; }
.friend-request-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    flex: 1;
    min-width: 120px;
}
.friend-request-user:hover { color: var(--hover-text); }

.user-role {
    margin: 4px 0;
}

.role-badge {
    display: inline-block;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    background: none;
    border: none;
}

.role-user {
    color: var(--text-muted);
}

.role-moderator {
    color: #64b5f6;
}

.role-admin {
    color: #ff5252;
}

.profile-info-role.role-moderator,
.profile-info-role.role-admin {
    background: none;
    border: none;
}

.cabinet-avatar-edit {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.cabinet-avatar-edit .cabinet-avatar,
.cabinet-avatar-edit .cabinet-avatar-placeholder {
    width: 80px;
    height: 80px;
}

.cabinet-avatar-edit input[type="file"] {
    margin: 8px 0;
    color: var(--text);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    max-width: none;
}

/* Chat */
.chat-page {
    max-width: 900px;
}

.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 300px);
    min-height: 500px;
    max-height: 800px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-input);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.chat-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-style: italic;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.chat-msg-user {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.chat-msg-user:hover {
    color: var(--accent);
}

.chat-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0;
    font-size: 1.2rem;
}
.chat-emoji-bar span[data-emoji] {
    cursor: pointer;
    padding: 2px;
    user-select: none;
}
.chat-emoji-bar span[data-emoji]:hover {
    opacity: 0.8;
}

/* Интерактивная панель эмодзи */
.chat-emoji-toggle-wrap {
    position: relative;
    display: inline-block;
}
.btn-emoji-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
    transition: border-color 0.2s;
}
.btn-emoji-toggle:hover {
    border-color: var(--accent);
}
.chat-emoji-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
    max-width: 420px;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", var(--font-sans);
}
/* Панель эмодзи как прокручиваемый список (форум и чат) */
.chat-emoji-panel--list {
    padding: 0;
    max-height: 280px;
    display: block;
}
.chat-emoji-panel--list .chat-emoji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}
.chat-emoji-panel--list .chat-emoji-list span[data-emoji] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 4px;
    font-size: 1.35rem;
    cursor: pointer;
    border-radius: 6px;
    user-select: none;
}
.chat-emoji-panel--list .chat-emoji-list span[data-emoji]:hover {
    background: var(--bg-input);
}
.chat-emoji-panel--list .chat-emoji-list::-webkit-scrollbar {
    width: 6px;
}
.chat-emoji-panel--list .chat-emoji-list::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 3px;
}
.chat-emoji-panel--list .chat-emoji-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.chat-emoji-panel::-webkit-scrollbar {
    width: 6px;
}
.chat-emoji-panel::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 3px;
}
.chat-emoji-panel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.chat-emoji-panel span[data-emoji] {
    cursor: pointer;
    padding: 5px;
    user-select: none;
    font-size: 1.25rem;
}
.chat-emoji-panel span[data-emoji]:hover {
    background: var(--bg-input);
    border-radius: 4px;
}

/* Страница техподдержки */
.support-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    /* Раньше фона не было вовсе, поэтому сквозь контент просвечивал анимированный фон сайта.
       Последнее число в rgba — прозрачность: 1 = непрозрачно, 0 = прозрачно полностью.
       Плотнее — поднимай 0.94 ближе к 1, вернуть прозрачность — уменьшай. */
    background: rgba(9, 9, 9, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
}

.support-header-card {
    margin-bottom: 24px;
    padding: 24px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #111111 0%, #171717 40%, #1f1f1f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.support-title {
    margin: 0 0 6px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-subtitle {
    margin: 0;
    color: var(--text-muted);
}

.support-layout {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 24px;
}

.support-form-card {
    background: #020202;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 24px 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.65);
}

.support-form-title {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.support-field {
    margin-bottom: 14px;
}

.support-field label {
    display: block;
    margin-bottom: 4px;
}

.support-field input[type="text"],
.support-field select,
.support-field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.96);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.support-field textarea {
    resize: vertical;
    min-height: 120px;
}

.support-hint {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.support-quick-templates {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-quick-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-muted);
}

.support-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.support-template-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.96);
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.support-template-btn:hover {
    background: rgba(35, 35, 35, 0.96);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.support-actions {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.support-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-info-card {
    background: rgba(12, 12, 12, 0.98);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 18px 18px;
}

.support-info-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.support-ticket-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.support-ticket-link:hover {
    color: var(--accent);
}

.support-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Страница тикетов (cabinet/tickets.php) */
.tickets-list-card,
.tickets-detail-card {
    background: rgba(12, 12, 12, 0.98);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.tickets-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.tickets-detail-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.tickets-detail-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tickets-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tickets-status--open {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.tickets-status--in_progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.tickets-status--closed {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.tickets-priority--high { color: #ff5252; }
.tickets-priority--medium { color: #ffc107; }
.tickets-priority--low { color: var(--text-muted); }

.tickets-detail-body {
    margin-bottom: 24px;
}

.tickets-message {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.tickets-message--user {
    background: rgba(255, 255, 255, 0.03);
}

.tickets-message--staff {
    background: rgba(33, 150, 243, 0.08);
    border-color: rgba(33, 150, 243, 0.3);
}

.tickets-message-author {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.tickets-message-content {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.tickets-message-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tickets-reply-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    margin-bottom: 12px;
}

.tickets-empty {
    margin: 16px 0;
    color: var(--text-muted);
}

.tickets-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tickets-list-item {
    border-bottom: 1px solid var(--border);
}

.tickets-list-item:last-child {
    border-bottom: none;
}

.tickets-list-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
}

.tickets-list-link:hover {
    color: var(--hover-text);
}

.tickets-list-title {
    flex: 1;
    min-width: 0;
    font-weight: 500;
}

.tickets-list-user {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tickets-list-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chat-role-badge {
    display: inline-block;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    background: none;
    border: none;
}
.chat-role-badge.role-user {
    color: var(--text-muted);
}
.chat-role-badge.role-moderator {
    color: #64b5f6;
}
.chat-role-badge.role-admin {
    color: #ff5252;
}

.chat-message-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border);
}

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

.chat-avatar-placeholder {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    background: var(--accent);
    color: #000;
}

.chat-message-body {
    flex: 1;
    min-width: 0;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.chat-author {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}
.chat-author.chat-author--user {
    color: var(--text);
}
.chat-author.chat-author--moderator {
    color: #64b5f6;
    animation: chat-nick-shimmer-mod 2.5s ease-in-out infinite;
}
.chat-author.chat-author--admin {
    color: #ff5252;
    animation: chat-nick-shimmer-admin 2.5s ease-in-out infinite;
}
.chat-author:hover {
    text-decoration: underline;
}
.chat-author.chat-author--user:hover {
    color: var(--hover-text);
}
.chat-author.chat-author--moderator:hover {
    color: #90caf9;
}
.chat-author.chat-author--admin:hover {
    color: #ff7676;
}
@keyframes chat-nick-shimmer-mod {
    0%, 100% { text-shadow: 0 0 8px rgba(100, 181, 246, 0.4); filter: brightness(1); }
    50% { text-shadow: 0 0 14px rgba(100, 181, 246, 0.7); filter: brightness(1.12); }
}
@keyframes chat-nick-shimmer-admin {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 82, 82, 0.4); filter: brightness(1); }
    50% { text-shadow: 0 0 14px rgba(255, 82, 82, 0.7); filter: brightness(1.12); }
}

.chat-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-admin-menu-btn {
    margin-left: 4px;
    padding: 0 6px;
    height: 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.chat-admin-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.chat-admin-menu {
    display: none;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}

.chat-admin-menu--open {
    display: block;
}

/* Чекбокс-хак для меню админа в чате на форуме */
.chat-admin-toggle {
    display: none;
}

.chat-admin-toggle:checked + .chat-admin-menu-btn + .chat-admin-menu {
    display: block;
}

.chat-admin-edit-text {
    width: 100%;
    padding: 6px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}

/* Список тем в разделе (новый вид) */
.thread-sections {
    margin-top: 24px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.thread-sections-toolbar {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.thread-section {
    background: rgba(0, 0, 0, 0.65);
}

.thread-section + .thread-section {
    border-top: 1px solid var(--border);
}

.thread-section-header {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.thread-section-body {
    padding: 4px 0 8px;
}

.thread-card {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.thread-card:last-child {
    border-bottom: none;
}

.thread-card-main {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 220px;
    gap: 16px;
    align-items: center;
}

.thread-card--pinned {
    background: rgba(255, 255, 255, 0.02);
}

.thread-card-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.thread-card-avatar,
.thread-card-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.thread-card-avatar-placeholder {
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.thread-card-title {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 3px;
}

.thread-card-title:hover {
    color: var(--accent);
}

.thread-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.thread-card-author {
    font-weight: 500;
}

.thread-card-dot {
    opacity: 0.6;
}

.thread-card-right {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.thread-card-stats {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 4px;
}

.thread-card-stat-label {
    display: block;
}

.thread-card-stat-value {
    color: var(--accent);
    font-weight: 600;
}

.thread-card-last-date {
    display: block;
}

.thread-card-last-user {
    display: block;
}

.forum-empty {
    margin-top: 16px;
    color: var(--text-muted);
}

.chat-admin-menu-btn {
    margin-left: 4px;
    padding: 0 6px;
    height: 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.chat-admin-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.chat-admin-menu {
    display: none;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}

.chat-admin-menu--open {
    display: block;
}

.chat-admin-edit-text {
    width: 100%;
    padding: 6px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}

.chat-message-text {
    color: var(--text);
    word-break: break-word;
    line-height: 1.5;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", var(--font-sans);
}

.chat-form-container {
    border-top: 1px solid var(--border);
    padding: 16px;
    background: var(--bg-card);
}

.chat-input-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input-wrap textarea {
    flex: 1;
    padding: 10px 12px;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", var(--font-sans);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    min-height: 44px;
    max-height: 120px;
}

.chat-input-wrap textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-input-wrap input[type="text"] {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", var(--font-sans);
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
    min-height: 44px;
}

.chat-input-wrap input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

/* Чат на странице форума */
.forum-chat-block {
    margin-top: 0;
    margin-bottom: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: visible;
    padding: 0 0 16px;
}

.forum-chat-title {
    margin: 0;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.forum-chat-messages {
    max-height: 320px;
    overflow-y: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forum-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.forum-chat-messages::-webkit-scrollbar-track {
    background: var(--bg-input);
}

.forum-chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.forum-chat-block .chat-empty {
    padding: 24px;
}

.forum-chat-block .auth-error {
    padding: 0 20px 8px;
    margin: 0;
}

.forum-chat-block .chat-form-container,
.forum-chat-block .forum-chat-form {
    padding: 0 20px 12px;
}
.forum-chat-form,
.chat-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}
.forum-chat-form .chat-input-wrap,
.chat-form .chat-input-wrap {
    flex: 1;
    min-width: 200px;
}

.forum-chat-block .chat-login-hint {
    padding: 0 20px 12px;
    margin: 0;
    border: none;
}

/* Ежедневный розыгрыш */
.forum-giveaway-block {
    background: linear-gradient(145deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    position: relative;
}
.forum-giveaway-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 50%, #ffc107 100%);
    background-size: 200% 100%;
    animation: giveawayShine 4s ease-in-out infinite;
}
@keyframes giveawayShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.forum-giveaway-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 152, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 193, 7, 0.15);
}
.forum-giveaway-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.4));
}
.forum-giveaway-header-text {
    flex: 1;
}
.forum-giveaway-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.forum-giveaway-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.forum-giveaway-prize {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffc107;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}
.forum-giveaway-prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}
.forum-giveaway-prize-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}
.forum-giveaway-prize-item i {
    font-size: 0.9rem;
}
.forum-giveaway-prize-1 { background: rgba(255, 193, 7, 0.15); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.3); }
.forum-giveaway-prize-2 { background: rgba(158, 158, 158, 0.15); color: #bdbdbd; border: 1px solid rgba(158, 158, 158, 0.3); }
.forum-giveaway-prize-3 { background: rgba(205, 127, 50, 0.2); color: #cd7f32; border: 1px solid rgba(205, 127, 50, 0.4); }
.forum-giveaway-msg { margin: 12px 24px 0 !important; }
.forum-giveaway-timer {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-bottom: 1px solid var(--border);
}
.forum-giveaway-timer i { margin-right: 8px; }
.forum-giveaway-wait {
    padding: 16px 24px;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}
.forum-giveaway-wait i { margin-right: 8px; }
.forum-giveaway-stats {
    padding: 16px 24px;
}
.forum-giveaway-participants {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.forum-giveaway-participants i {
    margin-right: 6px;
    color: var(--accent);
}
.forum-giveaway-participants strong {
    color: var(--text);
}
.forum-giveaway-form {
    padding: 0 24px 20px;
}
.forum-giveaway-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.forum-giveaway-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.45);
}
.forum-giveaway-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px 20px;
    margin: 0;
    color: #4caf50;
    font-weight: 500;
}
.forum-giveaway-status i {
    font-size: 1.1rem;
}
.forum-giveaway-hint {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.forum-giveaway-hint a {
    color: #ffc107;
    text-decoration: none;
}
.forum-giveaway-hint a:hover {
    text-decoration: underline;
}
.forum-giveaway-winners {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}
.forum-giveaway-winners-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}
.forum-giveaway-winners-title i {
    margin-right: 6px;
    color: #ffc107;
}
.forum-giveaway-winners-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.forum-giveaway-winner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}
.forum-giveaway-winner-item:last-child { margin-bottom: 0; }
.forum-giveaway-winner-1 { border-left-color: #ffc107; }
.forum-giveaway-winner-2 { border-left-color: #bdbdbd; }
.forum-giveaway-winner-3 { border-left-color: #cd7f32; }
.forum-giveaway-place {
    min-width: 70px;
    font-weight: 600;
    font-size: 0.8rem;
}
.forum-giveaway-winner-1 .forum-giveaway-place { color: #ffc107; }
.forum-giveaway-winner-2 .forum-giveaway-place { color: #bdbdbd; }
.forum-giveaway-winner-3 .forum-giveaway-place { color: #cd7f32; }
.forum-giveaway-winner-login {
    flex: 1;
    font-weight: 500;
}
.forum-giveaway-winner-amount {
    color: #4caf50;
    font-weight: 600;
}

.forum-chat-more {
    margin: 0;
    padding: 0 20px;
    font-size: 0.9rem;
}

.forum-chat-more a {
    color: var(--accent);
    text-decoration: none;
}

.forum-chat-more a:hover {
    color: var(--hover-text);
    text-decoration: underline;
}

.chat-send-btn {
    padding: 10px 20px;
    white-space: nowrap;
    height: 44px;
}

.chat-login-hint {
    border-top: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
}

.chat-login-hint a {
    color: var(--accent);
    text-decoration: none;
}

.chat-login-hint a:hover {
    color: var(--hover-text);
    text-decoration: underline;
}

.forum-layout-with-sidebar {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
.forum-sidebar-left {
    position: sticky;
    top: 80px;
}
.forum-main-content {
    min-width: 0;
}
.forum-online-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 24px;
}
.forum-online-block--sidebar {
    margin-bottom: 0;
}

/* Последние сообщения */
.forum-latest-posts-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 20px;
    margin-top: 24px;
}

.forum-latest-posts-title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.forum-latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forum-latest-post-item {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-latest-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.forum-latest-post-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.forum-latest-post-link:hover .forum-latest-post-text {
    color: var(--hover-text);
}

.forum-latest-post-avatar,
.forum-latest-post-avatar-placeholder {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.5);
}

.forum-latest-post-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.forum-latest-post-body {
    min-width: 0;
    flex: 1;
}

.forum-latest-post-text {
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-latest-post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.forum-latest-post-section {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: underline;
    margin-top: 6px;
}

.forum-latest-post-section:hover {
    color: var(--hover-text);
}

.forum-latest-posts-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.forum-online-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.forum-online-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}
.forum-online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.forum-online-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}
.forum-online-user:hover {
    border-color: var(--accent);
}
.forum-online-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.forum-online-avatar-placeholder {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.forum-online-text {
    display: flex;
    flex-direction: column;
    max-width: 130px;
}
.forum-online-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.forum-online-role {
    font-size: 0.8rem;
}

.forum-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}
.forum-search-form .forum-search-input {
    flex: 1;
    max-width: 400px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
}
.forum-search-form .forum-search-input:focus {
    outline: none;
    border-color: var(--accent);
}
.forum-search-empty, .forum-search-count {
    margin: 0 0 16px;
    color: var(--text-muted);
}
.thread-cat-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Результаты поиска тем — показываем список (иначе .thread-row скрыт глобально) */
.forum-page .thread-list .thread-list-head {
    display: grid;
    grid-template-columns: 1fr 120px 80px 140px;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-muted);
    font-weight: 600;
    font-size: 0.9rem;
}
.forum-page .thread-list .thread-row {
    display: grid;
    grid-template-columns: 1fr 120px 80px 140px;
    gap: 12px;
    padding: 12px 16px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.forum-page .thread-list .thread-row:last-child {
    border-bottom: none;
}
.forum-page .thread-list .thread-row:hover {
    background: var(--bg-muted);
}

.forum-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Admin panel */
.admin-page {
    max-width: 1000px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.admin-card {
    display: block;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.admin-card:hover {
    border-color: var(--hover-text);
    background: rgba(255, 255, 255, 0.05);
}

.admin-card h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--accent);
}

.admin-card:hover h2 {
    color: var(--hover-text);
}

.admin-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-section {
    margin-top: 32px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-section h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.admin-form label {
    display: block;
    margin: 10px 0 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-form input,
.admin-form select {
    max-width: 400px;
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    margin-bottom: 8px;
}

.admin-form button {
    margin-top: 12px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg-input);
    color: var(--text-muted);
    font-weight: 600;
}

.admin-table tr.row-banned {
    opacity: 0.7;
    background: rgba(255, 82, 82, 0.08);
}

.admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.admin-modal-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    max-width: 420px;
    width: 100%;
}

.admin-modal-inner h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.admin-modal-inner label {
    display: block;
    margin: 10px 0 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-modal-inner input,
.admin-modal-inner select {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    margin-bottom: 8px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

/* Личный кабинет — дизайн в стиле gravebirth profile */
.cabinet-profile-page {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.cabinet-banner-block {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(20, 20, 20, 0.5);
}

.cabinet-banner-block--inside-profile {
    margin: -30px -30px 20px -30px;
    border-radius: 8px 8px 0 0;
    border: none;
    border-bottom: 1px solid var(--border);
}

.cabinet-banner-block--inside-profile .cabinet-banner-img {
    max-height: 140px;
}

.cabinet-banner-block--inside-profile-info {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.cabinet-banner-block--inside-profile-info .cabinet-banner-img {
    max-height: 100px;
}



.cabinet-banner-block--bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    margin: 0;
    border: none;
    border-radius: 7px;
}

.cabinet-banner-block--bg .cabinet-banner-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    opacity: 0.25;
}

.cabinet-profile-info-with-banner > .profile-avatar-link,
.cabinet-profile-info-with-banner > .profile-details {
    position: relative;
    z-index: 1;
}

.cabinet-banner-img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.cabinet-banner-block--bg .cabinet-banner-img,
.cabinet-banner-block--bg .cabinet-banner-video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.profile-media-poster {
    background: #0a0a0a;
}

.profile-page-background-video {
    background: #050505;
}

.cabinet-profile-header {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.cabinet-profile-header .profile-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-avatar-link {
    text-decoration: none;
    color: inherit;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-block;
}

.profile-avatar-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.profile-online-check {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a6a6a, #3a3a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: none;
}

.profile-details h2 {
    font-size: 2rem;
    margin: 0 0 5px;
    color: var(--text);
}

.profile-details p {
    color: var(--text-muted);
    margin: 0 0 5px;
    font-size: 0.95rem;
}

.profile-clan-block {
    margin: 10px 0;
}

.profile-clan-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}

.profile-clan-link:hover {
    color: var(--accent);
}

.profile-clan-avatar,
.profile-clan-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.profile-clan-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-clan-tag {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-clan-name {
    font-size: 0.9rem;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.profile-status.status-online .profile-status-dot {
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}
.profile-status.status-offline .profile-status-dot {
    background: var(--text-muted);
}
.profile-status.status-dnd .profile-status-dot {
    background: #ff9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}
.profile-status.status-invisible .profile-status-dot {
    background: var(--text-muted);
}
.profile-username-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.profile-role.role-admin { color: #ff5252; }
.profile-role.role-moderator { color: #64b5f6; }
.profile-role.role-user { color: var(--text-muted); }

.cabinet-profile-header .profile-stats {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cabinet-profile-header .stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cabinet-profile-header .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    color: var(--text);
}

.cabinet-profile-header .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 4px;
}

.cabinet-profile-page .profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cabinet-profile-page .profile-posts {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.cabinet-profile-page .profile-posts h3 {
    margin: 0 0 20px;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.cabinet-profile-page .post-form {
    margin-bottom: 30px;
}

.cabinet-profile-page .post-form textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
}

.cabinet-profile-page .wall-post.post {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.cabinet-profile-page .post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cabinet-profile-page .post-content {
    color: var(--text);
    line-height: 1.6;
}

.cabinet-info-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.cabinet-info-block h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.cabinet-info-block p {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 0.95rem;
}

.cabinet-info-block .activity-stats.cabinet-activity-stats,
.cabinet-info-block .activity-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.cabinet-info-block .activity-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.cabinet-info-block .activity-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    display: block;
}

.cabinet-info-block .activity-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-actions-wrap { margin: 20px 0 12px; }
.profile-actions-wrap > a.btn-primary { color: #000 !important; }
.cabinet-info-block a { color: var(--accent); text-decoration: none; }
.cabinet-info-block a:hover { text-decoration: underline; }

/* Настройки (edit) — вкладки в стиле gravebirth settings */
.settings-container {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-top: 24px;
    backdrop-filter: blur(10px);
}

.settings-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 0;
}

.settings-tab {
    padding: 12px 25px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
    font-family: inherit;
    font-size: 0.95rem;
}

.settings-tab.active {
    color: var(--text);
}

.settings-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.settings-tab:hover {
    color: var(--text);
}

.settings-content {
    display: none;
}

.settings-content.active {
    display: block;
    animation: settingsFadeIn 0.3s ease;
}

@keyframes settingsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 12px;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item .info {
    flex: 1;
    min-width: 200px;
}

.settings-item .info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.settings-item .info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.privacy-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 6px;
}

.settings-security-card {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.settings-security-card label {
    display: block;
    font-size: 0.9rem;
    margin-top: 6px;
}

.settings-security-card input[type="text"],
.settings-security-card input[type="password"],
.settings-security-card input[type="email"],
.settings-security-card select {
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    margin: 4px 0 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.settings-security-card input:focus,
.settings-security-card select:focus {
    outline: none;
    border-color: var(--accent);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.settings-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(41, 98, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #64b5f6;
}

.settings-card-title h4 {
    margin: 0;
    font-size: 1.2rem;
}

.settings-card-title p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.settings-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 12px;
}

.settings-hint a {
    color: #ffffff;
    text-decoration: underline;
}

.settings-hint a:hover {
    color: var(--hover-text);
}

.login-stats-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.login-stat-item {
    flex: 1;
    min-width: 140px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
}

.login-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.login-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-last-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    color: #ffc107;
    font-size: 0.9rem;
}

.login-last-banner i {
    flex-shrink: 0;
}

/* 2FA настройка */
.two-factor-setup p,
.two-factor-status p {
    margin: 0 0 12px;
    color: var(--text);
}
.two-factor-qr {
    margin: 16px 0;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    display: inline-block;
}
.two-factor-qr canvas,
.two-factor-qr img,
.two-factor-qr table {
    display: block;
}
.two-factor-qr-fallback {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.two-factor-setup .settings-hint {
    margin: 12px 0;
}
.two-factor-setup code,
.two-factor-confirm-form input,
.two-factor-disable-form input {
    font-family: monospace;
}
.two-factor-enabled p {
    color: #4caf50;
}
.two-factor-disable-form,
.two-factor-confirm-form {
    margin-top: 16px;
}
.auth-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 16px;
}

.settings-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.settings-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.25s;
    border-radius: 24px;
}

.settings-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background: var(--text);
    transition: 0.25s;
    border-radius: 50%;
}

.settings-switch input:checked + .settings-slider {
    background: #4caf50;
}

.settings-switch input:checked + .settings-slider:before {
    transform: translateX(26px);
}

.page-header-settings {
    margin-bottom: 20px;
}

.page-header-settings p {
    color: var(--text-muted);
    margin: 5px 0 0;
}

/* Users list page */
.users-list-block {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.users-list-block h2 {
    margin: 0;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.users-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.users-list-item {
    border-bottom: 1px solid var(--border);
}

.users-list-item:last-child {
    border-bottom: none;
}

.users-list-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
}

.users-list-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.users-list-avatar {
    flex-shrink: 0;
}

.users-list-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.users-list-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 1rem;
}

.users-list-id {
    flex-shrink: 0;
    min-width: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.users-list-role {
    flex-shrink: 0;
    min-width: 100px;
    font-size: 0.9rem;
}

.users-list-login {
    font-weight: 500;
}

/* Users page: search by login/id + group filter */
.users-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.users-search-input,
.users-search-select {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
}

.users-search-input {
    flex: 1;
    min-width: 200px;
    max-width: 340px;
}

.users-search-select {
    min-width: 170px;
}

.users-search-input:focus,
.users-search-select:focus {
    outline: none;
    border-color: var(--accent);
}

.users-search-form .btn {
    padding: 10px 20px;
}

.users-search-reset {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.users-search-reset:hover {
    color: var(--text);
    text-decoration: underline;
}

.users-search-empty {
    padding: 18px 20px;
    color: var(--text-muted);
}

/* Clans page */
.clans-create-block {
    margin-top: 24px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.clans-create-block h2,
.clans-list-block h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.clans-create-form .form-row {
    margin-bottom: 12px;
}

.clans-create-form .form-row label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.clans-create-form .form-row input[type="text"],
.clans-create-form .form-row input[type="file"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}

.clans-create-form .form-hint {
    margin: 12px 0 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.clans-list-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.clans-list-block h2 {
    margin: 0;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.clans-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clans-list-item {
    border-bottom: 1px solid var(--border);
}

.clans-list-item:last-child {
    border-bottom: none;
}

.clans-list-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
    flex: 1;
}

.clans-list-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.clans-list-id {
    flex-shrink: 0;
    min-width: 55px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.clans-list-avatar {
    flex-shrink: 0;
}

.clans-list-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.clans-list-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 1rem;
}

.clans-list-tag {
    flex-shrink: 0;
    min-width: 70px;
    color: var(--accent);
    font-weight: 600;
}

.clans-list-name {
    flex: 1;
    font-weight: 500;
}

.clans-list-members {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.clans-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.clan-delete-form .btn-link {
    font-size: 0.85rem;
}

/* Clan single page */
.clan-tag {
    color: var(--text-muted);
    font-weight: 400;
}

.clan-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.clan-avatar-wrap .clan-avatar-img,
.clan-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.clan-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    font-weight: 600;
}

.clan-info p {
    margin: 8px 0;
}

.clan-leave-form {
    margin-top: 12px;
}

.clan-invite-block {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.clan-invite-block h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.clan-invite-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.clan-invite-form input[type="number"] {
    width: 120px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}

.clan-members-block {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.clan-members-block h3 {
    margin: 0 0 16px;
    font-size: 1rem;
}

.clan-members-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clan-member-item {
    margin-bottom: 8px;
}

.clan-member-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text);
}

.clan-member-link:hover {
    color: var(--accent);
}

.clan-member-avatar,
.clan-member-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.clan-member-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
}

.clan-member-role {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.btn-danger:hover {
    background: #e04545;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .forum-layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    .forum-sidebar-left {
        order: 2;
    }
    .forum-main-content {
        order: 1;
    }
    .forum-cat-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .forum-cat-last {
        max-width: none;
        text-align: left;
    }
    .thread-list-head,
    .thread-row {
        grid-template-columns: 1fr 80px;
        grid-template-rows: auto auto;
    }
    .forum-page .thread-list .thread-list-head,
    .forum-page .thread-list .thread-row {
        grid-template-columns: 1fr 80px;
        grid-template-rows: auto auto;
    }
    .thread-row .col-topic { grid-column: 1 / -1; }
    .thread-row .col-author { grid-column: 1; }
    .thread-row .col-posts { grid-column: 2; }
    .thread-row .col-date { grid-column: 1 / -1; font-size: 0.85rem; }
    .post {
        grid-template-columns: 1fr;
    }
    .chat-container {
        height: calc(100vh - 250px);
        min-height: 400px;
    }
    .chat-input-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .chat-send-btn {
        width: 100%;
    }
    .cabinet-layout,
    .messages-layout {
        grid-template-columns: 1fr;
    }
    .messages-layout { gap: 16px; }
    .messages-list--dialog { height: min(58vh, 520px); min-height: 280px; }
    .dialog-msg-body { max-width: 82%; }
    .dialog-msg-avatar { flex-basis: 34px; width: 34px; height: 34px; }
    .dialog-msg-avatar-placeholder { width: 34px; height: 34px; }
    .messages-form-row { flex-wrap: wrap; }
    .messages-form-row textarea { order: 1; flex-basis: 100%; }
    .dialog-send-btn { order: 2; }
    .dialog-emoji-wrap { order: 3; }
    .cabinet-profile-page .profile-content {
        grid-template-columns: 1fr;
    }
    .cabinet-profile-header .profile-info {
        flex-direction: column;
        text-align: center;
    }
    .cabinet-profile-header .profile-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    .settings-tabs {
        flex-direction: column;
    }
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
    }
    /* Новый адаптив для тем и постов */
    .thread-card-main {
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-rows: auto auto;
        row-gap: 8px;
    }
    .thread-card-right {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 4px;
    }
    .thread-post-inner {
        grid-template-columns: 1fr;
    }
    .thread-post-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 12px;
        align-items: center;
        text-align: center;
    }
    .thread-post-body {
        padding-top: 8px;
    }
    .header-right-widgets {
        display: none;
    }
    .cabinet-dropdown-mobile-only {
        display: block;
    }
    .forum-online-user {
        width: 100%;
    }
}
/* 1. РАСТЯГИВАЕМ ШАПКУ НА ВЕСЬ ЭКРАН */
.header-inner {
    max-width: 100% !important; /* Отменяем ограничение в 1100px */
    padding-left: 24px;
    padding-right: 24px;
}

/* 2. ВЫЕЗЖАЮЩЕЕ МЕНЮ СЛЕВА */
.slide-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.slide-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    padding: 20px;
    overflow-y: auto;
}
.slide-menu-drawer.active {
    transform: translateX(0);
}

.slide-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.slide-menu-close:hover {
    color: #fff;
}

.slide-menu-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
}
.slide-menu-list li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
}
.slide-menu-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}
.slide-menu-list a:hover {
    color: var(--accent);
}
/* =========================================================
   CS 1.6 SERVER LIST — главная страница
   ========================================================= */
.cs-servers-page {
    width: 100%;
    padding: 48px 24px 64px;
}

.cs-servers-wrap {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.cs-servers-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.cs-servers-kicker {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.cs-servers-heading h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.cs-servers-heading p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cs-total-online {
    min-width: 150px;
    padding: 12px 16px;
    text-align: right;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.cs-total-online strong {
    display: block;
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.2;
}

.cs-total-online span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cs-servers-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(9, 10, 13, 0.86);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.cs-server-row {
    display: grid;
    grid-template-columns: minmax(300px, 1.55fr) minmax(145px, 0.75fr) minmax(130px, 0.7fr) minmax(190px, 0.9fr);
    align-items: center;
}

.cs-server-head {
    min-height: 42px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.045);
    border-bottom: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cs-server-head > div,
.cs-server-item > div {
    min-width: 0;
    padding: 0 16px;
}

.cs-server-head > div:not(:last-child),
.cs-server-item > div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.055);
}

.cs-server-item {
    min-height: 54px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.16s ease, transform 0.16s ease;
}

.cs-server-item:last-child {
    border-bottom: 0;
}

.cs-server-item:hover {
    background: rgba(255, 255, 255, 0.055);
}

.cs-server-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-server-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 600;
}

.cs-server-status {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #777;
    box-shadow: 0 0 0 3px rgba(119, 119, 119, 0.08);
}

.cs-server-status.is-online {
    background: #5ecb7a;
    box-shadow: 0 0 0 3px rgba(94, 203, 122, 0.1);
}

.cs-server-status.is-offline {
    background: #d45d5d;
    box-shadow: 0 0 0 3px rgba(212, 93, 93, 0.1);
}

.cs-server-map,
.cs-server-ip {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.cs-server-players {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cs-player-count {
    min-width: 38px;
    color: var(--text);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.cs-player-bar {
    flex: 1;
    max-width: 105px;
    height: 7px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.cs-player-bar span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.25s ease;
}

.cs-server-ip {
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
}

.cs-servers-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 35px;
    margin-top: 1px;
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 7px 7px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.72rem;
}

.cs-servers-footer span:first-child {
    color: var(--text);
    font-weight: 700;
}

@media (max-width: 800px) {
    .cs-servers-page {
        padding: 30px 14px 48px;
    }

    .cs-servers-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .cs-total-online {
        width: fit-content;
        min-width: 0;
        text-align: left;
    }

    .cs-server-head {
        display: none;
    }

    .cs-server-row.cs-server-item {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0;
        padding: 13px 0;
    }

    .cs-server-item > div {
        padding: 5px 14px;
        border-right: 0 !important;
    }

    .cs-server-item > div[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: var(--text-muted);
        font-size: 0.62rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .cs-server-name {
        grid-column: 1 / -1;
    }

    .cs-server-players {
        justify-content: flex-end;
    }

    .cs-server-ip {
        grid-column: 1 / -1;
    }

    .cs-player-bar {
        max-width: 80px;
    }
}

/* =========================================================
   NB PROJECT — новая главная: сервера + чат + сообщество
   ========================================================= */
.main-content--home {
    max-width: none;
    width: 100%;
    padding: 0 16px 56px;
    background: transparent;
}

.home-steam-link-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.home-steam-link-prompt {
    position: relative;
    width: min(100%, 560px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #2b2d31;
    border-radius: 8px;
    background: #151618;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .58);
}

.home-steam-link-prompt-header {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 18px 52px 17px 20px;
}

.home-steam-link-prompt h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.06rem;
    line-height: 1.35;
}

.home-steam-link-prompt-divider {
    height: 1px;
    background: #292b2f;
}

.home-steam-link-prompt-body {
    padding: 18px 20px 20px;
}

.home-steam-link-prompt p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: .8rem;
    line-height: 1.6;
}

.home-steam-link-prompt-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #3a3c41;
    border-radius: 5px;
    background: #1f2024;
    color: #f2f2f2;
    text-decoration: none;
    font-size: .74rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.home-steam-link-prompt-action:hover {
    border-color: #4a4d53;
    background: #292b31;
    color: #fff;
    transform: translateY(-1px);
}

.home-steam-link-prompt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #3a3c41;
    border-radius: 5px;
    background: #1f2024;
    color: #f2f2f2;
    cursor: pointer;
    font-size: .82rem;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.home-steam-link-prompt-close:hover {
    border-color: #4a4d53;
    background: #292b31;
    color: #fff;
}

.home-dashboard {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 20px;
    align-items: start;
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.home-sidebar--left,
.home-sidebar--right {
    position: sticky;
    top: 82px;
}

.home-main {
    min-width: 0;
}

/* Поверхности главной: почти чёрные, чтобы не «светиться» на фоне-созвездии
   и не резать глаза. Раньше был #141414 — заметно светлее фона страницы. */
.home-panel,
.home-section,
.home-server-card,
.home-chat-panel {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(9, 9, 9, 0.94);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
}

.home-panel {
    border-radius: 8px;
    padding: 16px;
}

.home-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.home-panel-muted,
.home-panel small,
.home-panel p {
    color: var(--text-muted);
}

.home-panel-muted {
    margin: 10px 0 14px;
    font-size: 0.78rem;
    line-height: 1.55;
}

.home-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-count-badge {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: var(--text);
    font-size: .72rem;
    font-weight: 700;
}

.home-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 8px;
    padding: 0 12px;
    border: 1px solid #34343a;
    border-radius: 5px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    text-decoration: none;
    font-size: .78rem;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.home-action:hover {
    background: rgba(255,255,255,.06);
    border-color: #494950;
    transform: translateY(-1px);
}

.home-action--primary {
    background: rgba(255,255,255,.08);
    border-color: #505058;
}

.home-profile-link {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text);
}

.home-profile-avatar,
.home-profile-avatar--placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 42px;
}

.home-profile-avatar--placeholder,
.home-user-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25252b;
    color: #fff;
    font-weight: 700;
}

.home-profile-link strong,
.home-profile-link small {
    display: block;
}

.home-profile-link strong {
    font-size: .85rem;
}

.home-profile-link small {
    margin-top: 2px;
    font-size: .72rem;
}

.home-profile-balance {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: .78rem;
}

.home-profile-balance span { color: var(--text-muted); }
.home-profile-balance strong { color: #fff; }

.home-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
}

.home-profile-actions a,
.home-panel-link,
.home-mini-link,
.home-outline-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.home-profile-actions a {
    padding: 7px 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    text-align: center;
    font-size: .73rem;
}

.home-profile-actions a:hover,
.home-panel-link:hover,
.home-mini-link:hover,
.home-outline-link:hover {
    color: #fff;
}

.home-online-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
}

.home-online-list::-webkit-scrollbar,
.home-chat-messages::-webkit-scrollbar,
.home-topic-list::-webkit-scrollbar,
.home-player-list::-webkit-scrollbar {
    width: 6px;
}

.home-online-list::-webkit-scrollbar-thumb,
.home-chat-messages::-webkit-scrollbar-thumb,
.home-topic-list::-webkit-scrollbar-thumb,
.home-player-list::-webkit-scrollbar-thumb {
    background: #34343a;
    border-radius: 3px;
}

.home-online-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 6px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text);
    transition: background .18s ease;
}

.home-online-user:hover {
    background: rgba(255,255,255,.04);
}

.home-user-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    object-fit: cover;
}

.home-online-meta {
    min-width: 0;
}

.home-online-meta strong,
.home-online-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-online-meta strong {
    font-size: .78rem;
    font-weight: 600;
}

.home-online-meta small {
    margin-top: 1px;
    font-size: .67rem;
}

.home-panel-link {
    display: block;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: .74rem;
}

.home-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.045);
    color: var(--text);
    text-decoration: none;
    font-size: .75rem;
}

.home-quick-link:last-child { border-bottom: 0; padding-bottom: 0; }
.home-quick-link i { width: 16px; color: var(--text-muted); text-align: center; }
.home-quick-link:hover { color: #fff; }

.home-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 10px 2px 4px;
}

.home-eyebrow,
.home-section-kicker,
.home-server-live-label {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .64rem;
    font-weight: 700;
}

.home-eyebrow,
.home-section-kicker {
    color: var(--text-muted);
}

.home-hero h1 {
    margin: 6px 0 4px;
    color: #fff;
    font-size: clamp(1.65rem, 2.3vw, 2.25rem);
    line-height: 1.1;
}

.home-hero p {
    margin: 0;
    color: var(--text-muted);
    font-size: .86rem;
}

.home-hero-stats {
    display: flex;
    gap: 9px;
    flex: 0 0 auto;
}

.home-stat {
    min-width: 104px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(20,20,20,.72);
    text-align: right;
}

.home-stat strong,
.home-stat span { display: block; }
.home-stat strong { color: #fff; font-size: 1rem; }
.home-stat span { margin-top: 2px; color: var(--text-muted); font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; }

.home-section {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255,255,255,.012);
}

.home-section-head h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 1.04rem;
}

.home-section-hint {
    max-width: 340px;
    color: var(--text-muted);
    font-size: .7rem;
    line-height: 1.5;
    text-align: right;
}

.home-server-list {
    display: flex;
    flex-direction: column;
}

.home-server-card {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: rgba(255,255,255,.008);
    box-shadow: none;
    cursor: pointer;
    transition: background .18s ease;
}

.home-server-card:last-child { border-bottom: 0; }
.home-server-card:hover,
.home-server-card:focus-visible { background: rgba(255,255,255,.035); outline: none; }
.home-server-card:focus-visible { box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }

.home-server-card-main {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 16px 18px 10px;
}

.home-server-status {
    width: 7px;
    height: 7px;
    margin-top: 7px;
    border-radius: 50%;
    background: #6c6c73;
}

.home-server-status.is-online {
    background: #63d17d;
    box-shadow: 0 0 0 3px rgba(99,209,125,.1), 0 0 13px rgba(99,209,125,.35);
}

.home-server-status.is-offline { background: #66666c; }

.home-server-mode-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}

.home-server-mode {
    padding: 3px 7px;
    border: 1px solid #34343a;
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    color: #c8c8cc;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.home-server-live-label {
    color: #6f6f77;
    font-size: .58rem;
}

.home-server-card-title-wrap { min-width: 0; }
.home-server-name {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: .93rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-server-description {
    max-width: 700px;
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-server-action-column {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 1px;
}

.home-server-details,
.home-server-connect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
    color: #bdbdc3;
    font-family: inherit;
    font-size: .67rem;
    text-decoration: none;
    cursor: pointer;
}

.home-server-details:hover,
.home-server-connect:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.home-server-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 0;
    margin: 0 18px 14px 39px;
    border-top: 1px solid rgba(255,255,255,.045);
}

.home-server-meta-item {
    min-width: 0;
    padding: 10px 12px 0 0;
}

.home-server-meta-item + .home-server-meta-item {
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.04);
}

.home-server-meta-item span:first-child {
    display: block;
    margin-bottom: 3px;
    color: #67676f;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.home-server-meta-item strong,
.home-server-ip {
    display: block;
    overflow: hidden;
    color: #d5d5d9;
    font-size: .74rem;
    font-weight: 600;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

.home-server-ip:hover { color: #fff; text-decoration: underline; }

.home-server-players-meta { position: relative; }
.home-server-progress {
    display: block;
    height: 4px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #2a2a30;
}

.home-server-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #bfc1c7;
    transition: width .35s ease;
}

.home-chat-section-head { align-items: center; }
.home-outline-link { font-size: .72rem; }

.home-chat-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-chat-messages {
    height: 480px;
    overflow-y: auto;
    padding: 10px 18px 4px;
    scroll-behavior: smooth;
}

.home-chat-message {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.home-chat-message:last-child { border-bottom: 0; }

.home-chat-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    overflow: hidden;
    border: 1px solid #34343a;
    border-radius: 50%;
    background: #232329;
}

.home-chat-avatar img,
.home-chat-avatar span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.home-chat-avatar span { color: #fff; font-weight: 700; font-size: .8rem; }
.home-chat-body { min-width: 0; flex: 1; }
.home-chat-header-row { display: flex; align-items: center; gap: 8px; }
.home-chat-author { color: #fff; font-size: .75rem; font-weight: 700; text-decoration: none; }
.home-chat-author:hover { text-decoration: underline; }
.home-chat-author--admin { color: #ff7070; }
.home-chat-author--moderator { color: #72b5ee; }
.home-chat-time { color: #5f5f67; font-size: .62rem; }
.home-chat-text { margin-top: 3px; color: #bfc0c6; font-size: .76rem; line-height: 1.5; word-break: break-word; }
.home-chat-menu-btn { margin-left: auto; border: 0; background: transparent; color: #62626a; cursor: pointer; }
.home-chat-menu { display: none; margin-top: 7px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: #1b1b20; }
.home-chat-menu.is-open { display: block; }
.home-chat-menu form { margin: 0 0 8px; }
.home-chat-menu form:last-child { margin-bottom: 0; }
.home-chat-menu button { border: 0; background: transparent; color: var(--text); cursor: pointer; }
.home-chat-menu textarea { width: 100%; margin-bottom: 6px; padding: 7px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-family: inherit; }
.home-chat-error { padding: 0 18px 8px; color: #ff7676; font-size: .75rem; }
.home-chat-form { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--border); }
.home-chat-form input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: inherit; }
.home-chat-form button { padding: 0 16px; border: 1px solid #414148; border-radius: 6px; background: #222229; color: #fff; font-family: inherit; cursor: pointer; }
.home-chat-form button:hover { background: #2b2b32; }
.home-chat-login-hint { padding: 13px 18px 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .74rem; text-align: center; }
.home-chat-login-hint a { color: #fff; text-decoration: none; }
.home-chat-login-hint a:hover { text-decoration: underline; }
.home-chat-empty { padding: 50px 10px; }

.home-topic-list {
    display: flex;
    flex-direction: column;
    max-height: 480px;
    overflow: auto;
}

.home-topic-item {
    display: grid;
    grid-template-columns: 26px minmax(0,1fr);
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    text-decoration: none;
}

.home-topic-item:last-child { border-bottom: 0; }
.home-topic-icon { width: 26px; height: 26px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius: 6px; color:#85858d; font-size:.62rem; }
.home-topic-body { min-width:0; }
.home-topic-body strong { display:block; overflow:hidden; color:#d8d8dc; font-size:.74rem; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.home-topic-body small { display:block; margin-top:2px; overflow:hidden; color:#6d6d75; font-size:.62rem; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.home-topic-item:hover .home-topic-body strong { color:#fff; }

.home-mini-link { font-size:.66rem; }
.home-guide-card { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.05); color:var(--text); text-decoration:none; }
.home-guide-card:last-child { border-bottom:0; }
.home-guide-card > i { width:18px; color:#888892; text-align:center; }
.home-guide-card strong,
.home-guide-card small { display:block; }
.home-guide-card strong { font-size:.74rem; }
.home-guide-card small { margin-top:2px; color:var(--text-muted); font-size:.62rem; }
.home-guide-card:hover strong { color:#fff; }

.home-empty { padding: 16px 2px; color: var(--text-muted); font-size: .72rem; }

.home-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}
.home-modal.is-open { display:block; }
.home-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.72); backdrop-filter:blur(5px); }
.home-modal-dialog { position:relative; width:min(620px, calc(100vw - 24px)); max-height:min(700px, calc(100vh - 24px)); margin:6vh auto 0; overflow:hidden; border:1px solid var(--border); border-radius:9px; background:#151519; box-shadow:0 25px 90px rgba(0,0,0,.7); color:var(--text); }
.home-modal-head { display:flex; justify-content:space-between; gap:18px; padding:18px 20px; border-bottom:1px solid var(--border); }
.home-modal-kicker { color:#707078; font-size:.6rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.home-modal-head h2 { margin:4px 0 0; color:#fff; font-size:1.2rem; }
.home-modal-head p { margin:3px 0 0; color:var(--text-muted); font-size:.7rem; }
.home-modal-close { width:32px; height:32px; padding:0; border:1px solid #323239; border-radius:6px; background:#202027; color:#9c9ca4; font-size:23px; cursor:pointer; }
.home-modal-close:hover { color:#fff; }
.home-modal-content { padding:28px 20px; color:var(--text-muted); text-align:center; font-size:.8rem; }
.home-modal-error { display:none; color:#e97979; }
.home-modal-empty { display:none; }
.home-player-list { max-height:460px; overflow:auto; }
.home-player-line { display:grid; grid-template-columns:42px minmax(0,1fr) 80px; gap:10px; align-items:center; min-height:46px; padding:0 20px; border-bottom:1px solid rgba(255,255,255,.045); }
.home-player-line:nth-child(even) { background:rgba(255,255,255,.018); }
.home-player-index { color:#63636b; font-size:.65rem; }
.home-player-name { overflow:hidden; color:#fff; font-size:.76rem; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.home-player-score { color:#9b9ba4; font-size:.68rem; text-align:right; }
.home-details-dialog { max-width:760px; }
.home-details-content { padding:20px; }
.home-details-mode { display:inline-flex; margin-bottom:10px; padding:5px 9px; border:1px solid #3a3a42; border-radius:999px; background:rgba(255,255,255,.03); color:#e0e0e4; font-size:.66rem; text-transform:uppercase; letter-spacing:.08em; }
.home-details-description { margin:0 0 16px; color:#bdbdc5; font-size:.78rem; line-height:1.6; }
.home-details-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.home-details-grid > div { padding:14px; border:1px solid var(--border); border-radius:7px; background:rgba(255,255,255,.018); }
.home-details-grid h3 { margin:0 0 10px; color:#fff; font-size:.76rem; }
.home-details-grid ul { margin:0; padding-left:18px; color:var(--text-muted); font-size:.72rem; line-height:1.7; }

.home-modal-open { overflow:hidden; }

@media (max-width: 1180px) {
    .home-dashboard { grid-template-columns: 210px minmax(0, 1fr); }
    .home-sidebar--right { grid-column: 1 / -1; position: static; display:grid; grid-template-columns:1.2fr .8fr; }
}

@media (max-width: 880px) {
    .home-dashboard { grid-template-columns:1fr; }
    .home-sidebar--left,
    .home-sidebar--right { position: static; grid-column:auto; }
    .home-sidebar--left { order:2; }
    .home-main { order:1; }
    .home-sidebar--right { order:3; display:grid; grid-template-columns:1fr 1fr; }
    .home-hero { align-items:flex-start; flex-direction:column; }
    .home-hero-stats { width:100%; }
    .home-stat { flex:1; text-align:left; }
}

@media (max-width: 640px) {
    .main-content--home { padding-left:10px; padding-right:10px; }
    .home-dashboard { padding-top:16px; }
    .home-sidebar--left,
    .home-sidebar--right { display:flex; }
    .home-section-head { align-items:flex-start; flex-direction:column; }
    .home-section-hint { max-width:none; text-align:left; }
    .home-server-card-main { grid-template-columns:8px minmax(0,1fr); }
    .home-server-action-column { grid-column:2; padding-top:0; }
    .home-server-meta { grid-template-columns:1fr 1fr; }
    .home-server-meta-item:nth-child(3) { grid-column:1 / -1; padding-left:0; border-left:0; }
    .home-chat-messages { height:420px; }
    .home-chat-form { flex-direction:column; }
    .home-chat-form button { min-height:42px; }
    .home-details-grid { grid-template-columns:1fr; }
}

/* =========================================================
   NB PROJECT — HOME LAYOUT
   Чистая трёхколоночная сетка
   ========================================================= */

html,
body {
    overflow-x: hidden;
}

/* Главная */
.main-content--home {
    width: 100%;
    max-width: none !important;
    margin: 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: auto;
}

/* Основная сетка */
.home-dashboard {
    width: min(1260px, calc(100% - 40px));
    margin: 26px auto 0;

    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 20px;

    align-items: start;
}

/* =========================================================
   БОКОВЫЕ КОЛОНКИ
   ========================================================= */

.home-sidebar {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 18px;

    /*
     * ВАЖНО:
     * никакого fixed;
     * никакого sticky.
     */
    position: static !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Левая колонка */
.home-sidebar--left {
    grid-column: 1;
}

/* Правая колонка */
.home-sidebar--right {
    grid-column: 3;
}

/* =========================================================
   ЦЕНТР
   ========================================================= */

.home-main {
    grid-column: 2;

    width: 100%;
    min-width: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Все центральные блоки одинаковой ширины */
.home-main > *,
.home-main .home-section,
.home-main .home-chat-section,
.home-main .home-chat-panel {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Сбрасываем боковые отступы, унаследованные от старого .home-section (строка ~1040).
   Без этого шапка блока и её разделитель не доходили до скруглённых углов.
   Вертикальный отступ там и так 0, поэтому раскладка по высоте не меняется.
   Правило намеренно сужено до .home-main: about.php, contacts.php и
   yoomoney-application.php используют .home-section вне главной и сохраняют свой padding. */
.home-main .home-section {
    padding-left: 0;
    padding-right: 0;
}

/* =========================================================
   БОКОВЫЕ ПАНЕЛИ
   ========================================================= */

.home-panel {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;

    background: rgba(9, 9, 9, 0.94);

    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   ОНЛАЙН
   ========================================================= */

.home-online-panel {
    width: 100%;
}

.home-online-list {
    max-height: 360px;
    overflow-y: auto;
}

/* =========================================================
   ПОСЛЕДНИЕ ТЕМЫ
   ========================================================= */

.home-topics-panel {
    width: 100%;
}

.home-topic-list {
    max-height: 360px;
    overflow-y: auto;
}

/* =========================================================
   ИГРОВЫЕ СЕРВЕРА
   ========================================================= */

.home-main .home-section {
    width: 100%;
    margin: 0;
}

/* =========================================================
   ЧАТ
   ========================================================= */

.home-chat-section {
    width: 100%;
    margin-top: 0;
}

.home-chat-panel {
    width: 100%;
}

.home-chat-messages {
    width: 100%;
    height: 480px;
    box-sizing: border-box;

    overflow-y: auto;
    padding: 10px 18px 4px;
}

/* =========================================================
   МОДАЛЬНЫЕ ОКНА
   ========================================================= */

.home-modal {
    position: fixed !important;
    inset: 0 !important;

    z-index: 10000 !important;

    display: none;
}

.home-modal.is-open {
    display: block;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */

/* Средний монитор */
@media (max-width: 1200px) {

    .home-dashboard {
        grid-template-columns: 210px minmax(0, 1fr) 250px;
        gap: 16px;
    }

    .home-main {
        grid-column: 2;
    }

    .home-sidebar--left {
        grid-column: 1;
    }

    .home-sidebar--right {
        grid-column: 3;
    }
}

/* Планшет */
@media (max-width: 950px) {

    .home-dashboard {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 18px;

        padding: 20px 0 40px;
    }

    .home-main,
    .home-sidebar--left,
    .home-sidebar--right {
        grid-column: 1;
        width: 100%;
    }

    .home-main {
        order: 1;
    }

    .home-sidebar--left {
        order: 2;
    }

    .home-sidebar--right {
        order: 3;
    }

    .home-sidebar {
        position: static !important;
    }
}

/* Телефон */
@media (max-width: 640px) {

    .main-content--home {
        padding-left: 10px;
        padding-right: 10px;
    }

    .home-dashboard {
        padding-top: 16px;
    }

    .home-chat-messages {
        height: 420px;
    }

    .home-details-grid {
        grid-template-columns: 1fr;
    }
}
.home-main {
    padding: 0;
    align-items: stretch;
    text-align: left;
}
/* =========================================================
   NB PROJECT — обновлённая шапка
   Группированная навигация с меню по клику
   ========================================================= */
.site-header {
    background: rgba(10, 10, 10, 0.96);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    backdrop-filter: blur(14px);
    z-index: 500;
}

.header-inner {
    width: min(1480px, calc(100% - 32px));
    max-width: none !important;
    min-height: 68px;
    margin: 0 auto;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
}

.header-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #fff;
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
    background: #fff;
    color: #080808;
    font-size: .95rem;
    font-weight: 900;
    box-shadow: 0 4px 18px rgba(255,255,255,.08);
}

.main-nav {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
    height: 52px;
}

/* Обёртка пунктов верхнего уровня — <ul class="main-nav-list">. */
.main-nav > .main-nav-list {
    display: flex;
    align-items: stretch;
    gap: 2px;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #d5d5d8;
    font-family: inherit;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .015em;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

/* Пункт-родитель — <a> на раздел (раньше был <button>). Селектор намеренно
   специфичнее .main-nav a, иначе базовые правила навигации (строка ~360)
   перебили бы размер и цвет пункта меню. */
.main-nav a.nav-dropdown-trigger {
    color: #d5d5d8;
    font-size: .76rem;
    text-decoration: none;
}

.main-nav a.nav-dropdown-trigger:hover {
    color: #fff;
}

.nav-dropdown-trigger > i:first-child {
    width: 16px;
    text-align: center;
    color: #eee;
}

.nav-chevron {
    margin-left: 2px;
    color: #777;
    font-size: .55rem;
    transition: transform .18s ease, color .18s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger {
    background: rgba(255,255,255,.065);
    border-color: rgba(255,255,255,.09);
    color: #fff;
}

.nav-dropdown.is-open .nav-chevron {
    color: #fff;
    transform: rotate(180deg);
}

/* Меню раскрывается кликом по пункту верхнего уровня и не раскрывается
   наведением: клик по пункту не должен уводить на другую страницу, поэтому
   hover-открытие только мешало бы (навёл → раскрылось → кликнул → закрылось). */
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.nav-dropdown-menu {
    top: calc(100% - 2px);
    left: 0;
    min-width: 205px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: rgba(18,18,18,.985);
    box-shadow: 0 18px 45px rgba(0,0,0,.48);
    backdrop-filter: blur(14px);
}

.nav-dropdown-menu--wide {
    min-width: 270px;
}

.nav-dropdown-menu::before {
    height: 8px;
}

.nav-dropdown-menu a {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 7px;
    border: 0;
    color: #d4d4d8;
    font-size: .78rem;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav-dropdown-menu a > i {
    width: 17px;
    flex: 0 0 17px;
    text-align: center;
    color: #8e8e95;
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,.065);
    color: #fff;
    transform: translateX(2px);
}

.nav-dropdown-menu a:hover > i {
    color: #fff;
}

.nav-dropdown-menu a span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-dropdown-menu a strong {
    color: inherit;
    font-size: .78rem;
    font-weight: 700;
}

.nav-dropdown-menu a small {
    color: #707077;
    font-size: .64rem;
    line-height: 1.3;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.header-actions .header-right-widgets {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.header-balance-link {
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #ddd;
    font-size: .76rem;
    font-weight: 700;
}

.header-balance-link i {
    color: #999;
}

.header-notifications-trigger {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #d8d8db;
    font-size: .9rem;
    transition: background .18s ease, color .18s ease;
}

.header-notifications-trigger:hover {
    background: rgba(255,255,255,.075);
    color: #fff;
}

.header-notifications-menu {
    top: 44px;
    right: 0;
    border-color: rgba(255,255,255,.09);
    background: #121212;
    box-shadow: 0 18px 45px rgba(0,0,0,.5);
}

.cabinet-dropdown-trigger {
    min-height: 42px;
    padding: 3px 6px 3px 4px;
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.08);
}

.cabinet-dropdown-avatar,
.cabinet-dropdown-avatar-placeholder {
    width: 34px;
    height: 34px;
}

/* «Войти» / «Регистрация»: .btn задаёт inline-block с padding 12px 24px, а здесь
   вертикальный padding обнулён — текст прилипал к верху кнопки. Флекс центрирует его. */
.btn-header-cabinet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.btn-header-register {
    border-color: rgba(255,255,255,.22) !important;
    color: #fff !important;
    background: rgba(255,255,255,.06) !important;
}

.header-mobile-menu {
    display: none;
}

/* Семь пунктов верхнего уровня не помещаются в полном размере на узких
   десктопах — раньше сжимаем отступы и шрифт, чем включать бургер. */
@media (max-width: 1320px) {
    .header-inner { gap: 12px; }
    .main-nav { gap: 0; }
    .nav-dropdown-trigger,
    .main-nav a.nav-dropdown-trigger { padding: 0 7px; font-size: .68rem; gap: 4px; }
    .nav-dropdown-trigger > i:first-child { width: 14px; }
    .nav-chevron { margin-left: 0; font-size: .5rem; }
    .header-search { min-width: 120px !important; }
    .header-balance-link .header-balance-value { font-size: .7rem; }
}

@media (max-width: 1120px) {
    .main-nav { display: none; }
    .header-mobile-menu {
        display: flex;
        margin-right: 8px;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.1);
        background: rgba(255,255,255,.035);
    }
    .header-inner { min-height: 62px; }
    .header-actions { margin-left: auto; }
}

@media (max-width: 680px) {
    .header-inner { width: calc(100% - 20px); }
    .logo-text { display: none; }
    .header-balance-link { padding: 0 8px; }
    .header-balance-link i { margin-right: 0; }
    .header-balance-link .header-balance-value { display: none; }
    .btn-header-register { display: none; }
    .cabinet-dropdown-trigger { padding-right: 4px; }
}

/* =========================================================
   SERVER PAGES — отдельная страница каждого игрового сервера
   ========================================================= */
.server-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}
.server-hero { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:18px; padding:28px; border:1px solid var(--border); border-radius:12px; background:linear-gradient(135deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); box-shadow:0 18px 55px rgba(0,0,0,.25); }
.server-hero-kicker,.server-section-kicker,.server-page-kicker { color:#777780; font-size:.62rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.server-hero-kicker { display:flex; align-items:center; gap:7px; }
.server-live-dot { width:7px; height:7px; border-radius:50%; background:#66666d; }
.server-live-dot.is-online { background:#63d17d; box-shadow:0 0 12px rgba(99,209,125,.55); }
.server-hero h1 { margin:8px 0 9px; color:#fff; font-size:clamp(1.5rem,3vw,2.35rem); line-height:1.1; }
.server-hero-content > p { max-width:720px; margin:0; color:#a9a9b1; font-size:.84rem; line-height:1.65; }
.server-hero-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:20px; }
.server-page-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:0 14px; border:1px solid rgba(255,255,255,.11); border-radius:7px; background:rgba(255,255,255,.035); color:#d9d9dd; text-decoration:none; font-size:.73rem; font-weight:700; transition:.18s ease; }
.server-page-button:hover { background:rgba(255,255,255,.075); color:#fff; border-color:rgba(255,255,255,.18); transform:translateY(-1px); }
.server-page-button--primary { background:#f0f0f0; border-color:#f0f0f0; color:#111; }
.server-page-button--primary:hover { background:#fff; color:#000; }
.server-live-card { align-self:stretch; padding:18px; border:1px solid rgba(255,255,255,.08); border-radius:9px; background:rgba(0,0,0,.18); }
.server-live-card-title { color:#7b7b83; font-size:.65rem; text-transform:uppercase; letter-spacing:.09em; }
.server-live-players { display:block; margin-top:8px; color:#fff; font-size:1.8rem; }
.server-live-progress { height:5px; margin:9px 0 18px; overflow:hidden; border-radius:99px; background:#29292f; }
.server-live-progress i { display:block; height:100%; border-radius:inherit; background:#bfc1c7; }
.server-live-meta { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-top:1px solid rgba(255,255,255,.055); color:#686870; font-size:.63rem; }
.server-live-meta strong { overflow:hidden; color:#d2d2d6; font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.server-tabs { display:flex; gap:4px; margin:14px 0 18px; padding:5px; overflow:auto; border:1px solid var(--border); border-radius:9px; background:rgba(18,18,18,.8); }
.server-tabs a { display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:0 13px; border-radius:6px; color:#85858d; text-decoration:none; white-space:nowrap; font-size:.7rem; font-weight:700; }
.server-tabs a:hover,.server-tabs a.is-active { background:rgba(255,255,255,.065); color:#fff; }
.server-page { scroll-behavior:smooth; }
.server-page [id] { scroll-margin-top:90px; }
.server-content-grid { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:18px; }
.server-content-main { min-width:0; display:flex; flex-direction:column; gap:18px; }
.server-page-card { border:1px solid var(--border); border-radius:9px; background:rgba(18,18,18,.92); box-shadow:0 14px 45px rgba(0,0,0,.18); }
.server-card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 18px; border-bottom:1px solid var(--border); }
.server-card-heading h2 { margin:4px 0 0; color:#fff; font-size:1rem; }
.server-card-note { color:#67676f; font-size:.64rem; }
.server-card-text { margin:0; padding:18px; color:#a9a9b1; font-size:.78rem; line-height:1.7; }
.server-overview-body { padding-bottom: 2px; }
.server-overview-columns { display:grid; grid-template-columns:1fr 1fr; gap:1px; margin-top:0; background:rgba(255,255,255,.045); border-top:1px solid var(--border); }
.server-overview-columns > div { padding:17px 18px; background:#141417; }
.server-overview-columns h3 { margin:0 0 10px; color:#dedee2; font-size:.76rem; }
.server-overview-columns h3 i { width:18px; color:#8a8a92; }
.server-overview-columns ul { margin:0; padding-left:18px; color:#92929a; font-size:.7rem; line-height:1.7; }
.server-overview-columns p { margin:0; color:#66666e; font-size:.7rem; }
.server-showcase-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.server-showcase-card { overflow:hidden; }
.server-showcase-media { position:relative; aspect-ratio:16 / 9; min-height:190px; overflow:hidden; background:radial-gradient(circle at 50% 30%,rgba(255,255,255,.08),rgba(255,255,255,.015) 55%,#0d0d10 100%); }
.server-showcase-media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s ease, filter .25s ease; }
.server-showcase-card:hover .server-showcase-media img { transform:scale(1.025); filter:brightness(1.08); }
.server-showcase-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#8a8a92; text-align:center; padding:20px; }
.server-showcase-placeholder i { font-size:2rem; color:#5e5e67; }
.server-showcase-placeholder span { color:#c9c9ce; font-size:.78rem; font-weight:700; }
.server-showcase-placeholder small { max-width:260px; color:#686870; font-size:.62rem; line-height:1.5; }
.server-custom-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:rgba(255,255,255,.045); }
.server-custom-link { display:grid; grid-template-columns:40px minmax(0,1fr) 18px; align-items:center; gap:11px; min-height:70px; padding:12px 18px; background:#141417; color:#d6d6da; text-decoration:none; transition:.18s ease; }
.server-custom-link:hover { background:#1a1a1e; color:#fff; }
.server-custom-link > i { color:#606068; font-size:.68rem; }
.server-custom-link-icon { width:38px; height:38px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.08); border-radius:8px; background:rgba(255,255,255,.03); color:#aaaab1; }
.server-custom-link strong,.server-custom-link small { display:block; }
.server-custom-link strong { font-size:.76rem; }
.server-custom-link small { margin-top:3px; color:#6f6f77; font-size:.63rem; line-height:1.4; }
.server-players-card { position:sticky; top:84px; overflow:hidden; }
.server-players-summary { display:flex; align-items:baseline; gap:7px; padding:17px 18px; border-bottom:1px solid var(--border); }
.server-players-summary strong { color:#fff; font-size:1.55rem; }
.server-players-summary span { color:#707078; font-size:.65rem; }
.server-player-list { max-height:460px; overflow:auto; }
.server-player-row { display:grid; grid-template-columns:32px minmax(0,1fr) 48px; gap:8px; align-items:center; min-height:40px; padding:0 18px; border-bottom:1px solid rgba(255,255,255,.045); }
.server-player-row > span { color:#55555d; font-size:.62rem; }
.server-player-row strong { overflow:hidden; color:#d1d1d5; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.server-player-row em { color:#77777f; font-size:.63rem; font-style:normal; text-align:right; }
.server-player-loading,.server-player-empty { padding:30px 18px; color:#67676f; font-size:.7rem; text-align:center; }
.server-page--not-found { max-width:760px; }
.server-page--not-found .server-page-card { padding:32px; text-align:center; }
.server-page--not-found h1 { margin:8px 0; color:#fff; font-size:1.5rem; }
.server-page--not-found p { color:#777780; font-size:.78rem; }
.server-page--not-found .server-page-button { margin-top:10px; }

/* Действия карточки сервера на главной */
.home-server-action-column { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:7px; }
.home-server-details,.home-server-players { display:inline-flex; align-items:center; justify-content:center; min-height:30px; padding:0 10px; border:1px solid #303036; border-radius:6px; background:#1b1b20; color:#bdbdc3; font-family:inherit; font-size:.65rem; text-decoration:none; cursor:pointer; }
.home-server-details:hover,.home-server-players:hover { border-color:#55555d; background:#24242a; color:#fff; }
.nav-dropdown--servers .nav-server-menu { max-height: min(70vh, 520px); overflow-y:auto; }
.nav-server-all { border-bottom:1px solid rgba(255,255,255,.07) !important; margin-bottom:4px; padding-bottom:11px !important; }

@media (max-width: 880px) {
    .server-page { width:min(100% - 20px, 720px); padding-top:18px; }
    .server-hero,.server-content-grid { grid-template-columns:1fr; }
    .server-hero { padding:20px; }
    .server-players-card { position:static; }
}
@media (max-width: 600px) {
    .server-tabs { margin-left:-2px; margin-right:-2px; }
    .server-overview-columns { grid-template-columns:1fr; }
    .server-showcase-grid { grid-template-columns:1fr; }
    .server-custom-links { grid-template-columns:1fr; }
    .server-card-heading { align-items:flex-start; flex-direction:column; }
    .server-card-note { display:none; }
    .server-hero-actions .server-page-button { flex:1; }
    .home-server-action-column { justify-content:flex-start; grid-column:2; }
}

/* =========================================================
   SHOP / PRIVILEGES
   The shop has its own layout so it does not depend on the
   generic form/table styles used elsewhere on the site.
   ========================================================= */
.shop-flex-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(340px, 410px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.shop-form-card {
    width: 100%;
    padding: 22px;
    background: linear-gradient(180deg, rgba(24,24,24,.98), rgba(15,15,15,.98));
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.025);
}

.shop-form-card .page-title {
    color: #fff;
    font-size: 1.65rem;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.shop-form-card > label,
.shop-form-card #authBlock > label {
    display: block;
    margin: 14px 0 6px;
    color: #aaa;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.shop-form-card select,
.shop-form-card input {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    margin: 0 0 2px;
    border: 1px solid #303030;
    border-radius: 9px;
    outline: none;
    background: #111;
    color: #eee;
    font: inherit;
    font-size: .92rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.shop-form-card select:hover,
.shop-form-card input:hover {
    border-color: #444;
}

.shop-form-card select:focus,
.shop-form-card input:focus {
    border-color: #666;
    background: #151515;
    box-shadow: 0 0 0 3px rgba(255,255,255,.055);
}

.shop-form-card select:disabled,
.shop-form-card input:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.shop-form-card select option {
    background: #141414;
    color: #eee;
}

.shop-form-card #authBlock {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.shop-form-card #authBlock[style*="display:none"] {
    display: none !important;
}

.shop-form-card > div:last-child {
    gap: 14px;
    padding-top: 4px;
}

.shop-form-card #totalPrice {
    display: inline-block;
    margin-top: 3px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.shop-form-card #buyBtn {
    min-width: 118px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.shop-form-card #buyBtn:disabled {
    cursor: not-allowed;
    opacity: .42;
    box-shadow: none;
}

.shop-form-card > div:first-child > div {
    border: 1px solid rgba(255,255,255,.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.card-deck {
    width: 100%;
    min-width: 0;
    min-height: 420px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    align-items: start;
}

.card-deck:empty::before {
    content: 'Выберите товар, чтобы увидеть его описание';
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border: 1px dashed #303030;
    border-radius: 14px;
    color: #666;
    background: rgba(18,18,18,.45);
    text-align: center;
}

.priv-card {
    width: 100%;
    min-width: 0;
    padding: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(25,25,25,.98), rgba(15,15,15,.98));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.025);
    opacity: 0;
    transform: translateY(10px) scale(.985);
    transition: opacity .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    display: flex;
    flex-direction: column;
}

.priv-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.priv-card:hover {
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 16px 34px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.035);
}

.priv-card.flipping {
    opacity: 0;
    transform: translateY(-8px) scale(.985);
}

.size-small,
.size-medium,
.size-large,
.size-auto {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.priv-card-name {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.priv-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    margin: 0 0 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: #0b0b0b;
}

.priv-card-desc {
    margin: 2px 0 12px;
    color: #aaa;
    font-size: .88rem;
    line-height: 1.55;
}

.priv-card > div[style*="color:var(--text-muted)"] {
    color: #a2a2a2 !important;
    line-height: 1.55;
    margin-bottom: 12px;
}

.priv-card > div[style*="color:var(--accent)"] {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #ddd !important;
    font-size: .78rem;
}

.priv-card code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #090909;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .8rem;
}

.alert-msg {
    padding: 11px 12px;
    margin: 0 0 8px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: .88rem;
}

.alert-msg.error {
    display: block;
    color: #ff8585;
    background: rgba(255,82,82,.07);
    border-color: rgba(255,82,82,.18);
}

.alert-msg.success {
    display: block;
    color: #97e39d;
    background: rgba(76,175,80,.07);
    border-color: rgba(76,175,80,.18);
}

@media (max-width: 860px) {
    .shop-flex-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .shop-form-card {
        max-width: none;
    }

    .card-deck {
        min-height: 0;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .shop-flex-wrap {
        gap: 14px;
    }

    .shop-form-card {
        padding: 16px;
        border-radius: 12px;
    }

    .shop-form-card > div:last-child {
        flex-direction: column;
        align-items: stretch !important;
    }

    .shop-form-card #buyBtn {
        width: 100%;
    }

    .priv-card {
        padding: 12px;
        border-radius: 12px;
    }

    .priv-card img {
        max-height: 420px;
    }
}


/* Пользовательский фон публичного профиля */
.profile-page-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #050505;
    isolation: isolate;
}
.profile-page-background-image,
.profile-page-background img,
.profile-page-background video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.profile-page-background video {
    will-change: auto;
}
.profile-page-background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.26), rgba(0,0,0,.64));
}
body:has(.profile-page-background) .site-bg-animated {
    display: none !important;
}
body:has(.profile-page-background) .main-content {
    position: relative;
    z-index: 1;
    background: transparent !important;
}
body:has(.profile-page-background) .cabinet-profile-page,
body:has(.profile-page-background) .cabinet-profile-header,
body:has(.profile-page-background) .cabinet-profile-page .profile-content {
    position: relative;
    z-index: 1;
}
body:has(.profile-page-background) .site-header,
body:has(.profile-page-background) .site-footer {
    position: relative;
    z-index: 2;
}

.profile-background-preview {
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 6;
    margin: 0 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #090909;
}
.profile-background-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Персональные данные и форма вкладки «Аккаунт». */
.settings-profile-account-form {
    display: grid;
    gap: 6px;
}

.settings-profile-account-form input[type="date"] {
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    margin: 4px 0 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    color-scheme: dark;
}

.settings-profile-account-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.settings-media-form,
.settings-social-form,
.settings-privacy-form,
.settings-password-form {
    display: block;
}
.settings-media-form input[type="file"] {
    display: block;
    width: min(100%, 520px);
    margin: 6px 0;
}
.settings-social-form {
    display: grid;
    gap: 12px;
}
.settings-privacy-form {
    display: block;
}
.settings-password-form {
    display: block;
}
@media (max-width: 700px) {
    .profile-background-preview { aspect-ratio: 16 / 8; }
}

/* Server flash payload is consumed by JS and must never occupy layout space. */
.nb-server-flash { display: none !important; }

/* ===== NB Project: profile background v4 + non-blocking notifications ===== */
.nb-toast-stack {
    position: fixed;
    top: 82px;
    right: 22px;
    width: min(450px, calc(100vw - 44px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 30000;
    pointer-events: none;
}

.nb-toast-shell {
    width: 100%;
    will-change: transform;
}

.nb-toast {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 26px;
    column-gap: 12px;
    align-items: start;
    width: 100%;
    padding: 13px 13px 12px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-left-width: 4px;
    border-radius: 13px;
    background: rgba(19,19,19,.985);
    box-shadow: 0 18px 50px rgba(0,0,0,.48), 0 3px 12px rgba(0,0,0,.22);
    color: var(--text);
    pointer-events: auto;
    opacity: 0;
    transform: translate3d(120%,0,0);
    transition: transform .46s cubic-bezier(.22,.61,.36,1), opacity .32s ease;
    overflow: hidden;
}
.nb-toast.is-visible { opacity: 1; transform: translate3d(0,0,0); }
.nb-toast.is-exiting { opacity: 0; transform: translate3d(120%,0,0); }
.nb-toast--error { border-left-color: #f04f4f; }
.nb-toast--success { border-left-color: #4dc767; }
.nb-toast--warning { border-left-color: #e0ad4f; }
.nb-toast--info { border-left-color: #8d8d8d; }
.nb-toast--loading { border-left-color: #b8b8b8; }

.nb-toast-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255,255,255,.065);
    font-size: 1rem;
}
.nb-toast--error .nb-toast-icon { color: #ff7474; background: rgba(240,79,79,.13); }
.nb-toast--success .nb-toast-icon { color: #6fdb82; background: rgba(77,199,103,.12); }
.nb-toast--warning .nb-toast-icon { color: #f0c06b; background: rgba(224,173,79,.11); }
.nb-toast--loading .nb-toast-icon { color: #f1f1f1; }
.nb-toast--info .nb-toast-icon { color: #d1d1d1; }
.nb-toast-copy { min-width: 0; padding-top: 1px; }
.nb-toast-title { margin: 0; font-size: .93rem; font-weight: 750; line-height: 1.2; }
.nb-toast-message { margin: 5px 0 0; color: #bdbdbd; font-size: .82rem; line-height: 1.43; word-break: break-word; }
.nb-toast-close {
    width: 26px;
    height: 26px;
    padding: 0;
    margin: -2px -2px 0 0;
    border: 0;
    background: transparent;
    color: #888;
    font-size: 1.15rem;
    line-height: 26px;
    cursor: pointer;
    border-radius: 7px;
}
.nb-toast-close:hover { color: #fff; background: rgba(255,255,255,.06); }
.nb-toast-progress {
    grid-column: 1 / -1;
    height: 4px;
    margin: 12px 0 -2px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.nb-toast-progress > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: rgba(255,255,255,.82);
    transition: width .14s ease;
}
.nb-toast-loading-percent { margin-left: 6px; color: #fff; font-variant-numeric: tabular-nums; }
.nb-toast-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.22);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nbToastSpin .75s linear infinite;
}
@keyframes nbToastSpin { to { transform: rotate(360deg); } }
.nb-toast-actions {
    grid-column: 2 / 3;
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.nb-toast-action {
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    font-size: .77rem;
    font-weight: 650;
    cursor: pointer;
}
.nb-toast-action:hover { background: rgba(255,255,255,.1); }
.nb-toast-action.is-danger { border-color: rgba(240,79,79,.35); color: #ff8b8b; }

.profile-background-divider { margin: 22px 0 18px; border: 0; border-top: 1px solid var(--border); }
.profile-background-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.profile-background-section-head h4 { margin: 0; font-size: 1rem; }
.profile-background-section-head p { margin: 5px 0 0; color: var(--text-muted); font-size: .81rem; line-height: 1.45; }
.profile-background-payment-card {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    margin: 0 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
}
.profile-background-payment-card.is-unpaid { border-color: rgba(255,255,255,.12); }
.profile-background-payment-card.is-paid { border-color: rgba(77,199,103,.28); background: rgba(77,199,103,.055); }
.profile-background-payment-card.is-migration-required { grid-template-columns: 42px minmax(0,1fr); border-color: rgba(240,79,79,.28); }
.profile-background-payment-icon { width: 42px; height: 42px; display:flex; align-items:center; justify-content:center; border-radius: 11px; background: rgba(255,255,255,.07); font-size: 1rem; }
.profile-background-payment-card.is-paid .profile-background-payment-icon { color:#77de88; background:rgba(77,199,103,.12); }
.profile-background-payment-card.is-unpaid .profile-background-payment-icon { color:#d0d0d0; }
.profile-background-payment-card.is-migration-required .profile-background-payment-icon { color:#ff7373; background:rgba(240,79,79,.12); }
.profile-background-payment-copy { display:grid; gap:4px; min-width:0; }
.profile-background-payment-copy strong { font-size:.92rem; }
.profile-background-payment-copy span, .profile-background-payment-copy small { color:var(--text-muted); font-size:.8rem; line-height:1.42; }
.profile-background-payment-copy small b { color:var(--text); }
.profile-background-payment-form { margin:0; }
.profile-background-payment-btn { white-space: nowrap; }
.profile-background-format-hint { margin: 0 0 14px; color: var(--text-muted); font-size: .8rem; line-height: 1.45; }
.profile-background-root code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .77rem; }

.profile-background-unlocked { display:grid; gap:13px; }
.profile-background-unlocked-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.profile-background-unlocked-head strong { display:block; margin-top:7px; font-size:.95rem; }
.profile-background-unlocked-head p { max-width: 680px; margin:5px 0 0; color:var(--text-muted); font-size:.8rem; line-height:1.45; }
.profile-background-status-badge, .profile-background-free-badge { display:none;
 display:inline-flex; align-items:center; gap:6px; min-height:24px; padding:4px 8px; border-radius:999px; font-size:.72rem; font-weight:700; }
.profile-background-status-badge { color:#86e291; background:rgba(77,199,103,.1); border:1px solid rgba(77,199,103,.2); }
.profile-background-free-badge { display:none;
 color:#ddd; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); white-space:nowrap; }
.profile-background-upload-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(230px,.7fr); gap:14px; }
.profile-background-current { position:relative; min-height:210px; border:1px solid var(--border); border-radius:13px; overflow:hidden; background:#090909; }
.profile-background-current img { width:100%; height:100%; min-height:210px; display:block; object-fit:cover; }
.profile-background-current-label { position:absolute; left:11px; bottom:11px; padding:6px 9px; border-radius:8px; background:rgba(0,0,0,.68); color:#fff; font-size:.73rem; backdrop-filter: blur(6px); }
.profile-background-empty-state { min-height:210px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; color:var(--text-muted); font-size:.82rem; }
.profile-background-empty-state i { font-size:2.1rem; opacity:.45; }
.profile-background-preview-status { position:absolute; top:10px; right:10px; padding:6px 9px; border-radius:8px; background:rgba(0,0,0,.68); color:#fff; font-size:.72rem; backdrop-filter: blur(6px); }
.profile-background-picker-card { display:flex; flex-direction:column; justify-content:center; gap:8px; min-height:210px; padding:14px; border:1px solid var(--border); border-radius:13px; background:rgba(255,255,255,.02); }
.profile-background-file-label { min-height:150px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; padding:18px; border:1px dashed rgba(255,255,255,.24); border-radius:11px; background:rgba(255,255,255,.025); color:var(--text); text-align:center; cursor:pointer; transition:border-color .2s, background .2s, transform .2s; }
.profile-background-file-label:hover { border-color:rgba(255,255,255,.5); background:rgba(255,255,255,.045); transform:translateY(-1px); }
.profile-background-file-icon { width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:11px; background:rgba(255,255,255,.07); font-size:1.05rem; }
.profile-background-file-title { font-weight:700; font-size:.9rem; }
.profile-background-file-rule { color:var(--text-muted); font-size:.73rem; }
.profile-background-file-rule b { color:#777; margin:0 2px; }
.profile-background-form input[type="file"] { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.profile-background-file-meta { min-height:19px; color:var(--text-muted); font-size:.76rem; text-align:center; overflow-wrap:anywhere; }
.profile-background-file-meta:not(.is-muted) { color:#ddd; }
.profile-background-transfer { padding:11px 12px; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(255,255,255,.025); }
.profile-background-transfer-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.profile-background-transfer-top strong { display:block; font-size:.79rem; }
.profile-background-transfer-top span { display:block; margin-top:3px; color:var(--text-muted); font-size:.74rem; }
.profile-background-transfer-top > b { font-size:.8rem; font-variant-numeric:tabular-nums; }
.profile-background-transfer-bar { height:5px; margin-top:9px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; }
.profile-background-transfer-bar span { display:block; width:0; height:100%; border-radius:inherit; background:rgba(255,255,255,.78); transition:width .15s ease; }
.profile-background-ready { display:flex; align-items:center; gap:10px; padding:11px 12px; border:1px solid rgba(77,199,103,.25); border-radius:10px; background:rgba(77,199,103,.055); }
.profile-background-ready-icon { width:34px; height:34px; flex:0 0 34px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:rgba(77,199,103,.12); color:#72dd86; }
.profile-background-ready strong { display:block; font-size:.79rem; }
.profile-background-ready div span { display:block; margin-top:3px; color:var(--text-muted); font-size:.74rem; }
.profile-background-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-top:1px; }
.profile-background-install-btn { min-width:210px; }
.profile-background-install-btn:disabled { opacity:.46; cursor:not-allowed; }
.profile-background-remove-btn { display:inline-flex; align-items:center; gap:6px; padding:5px 4px; color:var(--danger); }
.profile-background-remove-btn:disabled { opacity:.5; cursor:not-allowed; }
.profile-background-form.is-uploading .profile-background-file-label { cursor:progress; opacity:.72; }

@media (max-width: 850px) {
    .profile-background-payment-card { grid-template-columns:42px minmax(0,1fr); }
    .profile-background-payment-form { grid-column:1 / -1; }
    .profile-background-payment-btn { width:100%; }
    .profile-background-upload-grid { grid-template-columns:1fr; }
    .profile-background-unlocked-head { flex-direction:column; }
}
@media (max-width: 700px) {
    .nb-toast-stack { top: 72px; right: 12px; width: min(450px, calc(100vw - 24px)); }
    .profile-background-current, .profile-background-current img, .profile-background-empty-state, .profile-background-picker-card { min-height:160px; }
    .profile-background-file-label { min-height:120px; }
}


/* ===== NB Project: cabinet banner uploader ===== */
.cabinet-banner-section { display:grid; gap:13px; }
.cabinet-banner-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.cabinet-banner-head h4 { margin:0; font-size:1rem; }
.cabinet-banner-head p { margin:5px 0 0; color:var(--text-muted); font-size:.8rem; line-height:1.45; }
.cabinet-banner-format-badge { display:inline-flex; align-items:center; min-height:24px; padding:4px 8px; border:1px solid rgba(255,255,255,.1); border-radius:999px; background:rgba(255,255,255,.04); color:#d6d6d6; font-size:.7rem; font-weight:700; white-space:nowrap; }
.cabinet-banner-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(230px,.7fr); gap:14px; }
.cabinet-banner-preview-wrap { position:relative; min-height:170px; border:1px solid var(--border); border-radius:13px; overflow:hidden; background:#090909; }
.cabinet-banner-preview-wrap img { width:100%; height:100%; min-height:170px; display:block; object-fit:cover; }
.cabinet-banner-preview-label { position:absolute; left:11px; bottom:11px; padding:6px 9px; border-radius:8px; background:rgba(0,0,0,.68); color:#fff; font-size:.73rem; backdrop-filter:blur(6px); }
.cabinet-banner-empty { min-height:170px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--text-muted); font-size:.82rem; }
.cabinet-banner-empty i { font-size:2rem; opacity:.42; }
.cabinet-banner-picker { display:flex; flex-direction:column; justify-content:center; gap:8px; min-height:170px; padding:14px; border:1px solid var(--border); border-radius:13px; background:rgba(255,255,255,.02); }
.cabinet-banner-file-label { min-height:125px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:18px; border:1px dashed rgba(255,255,255,.24); border-radius:11px; background:rgba(255,255,255,.025); color:var(--text); text-align:center; cursor:pointer; transition:border-color .2s, background .2s, transform .2s; }
.cabinet-banner-file-label:hover { border-color:rgba(255,255,255,.5); background:rgba(255,255,255,.045); transform:translateY(-1px); }
.cabinet-banner-file-icon { width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:11px; background:rgba(255,255,255,.07); font-size:1rem; }
.cabinet-banner-file-label strong { font-size:.88rem; }
.cabinet-banner-file-label span:last-child { color:var(--text-muted); font-size:.72rem; }
.cabinet-banner-form input[type=file] { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.cabinet-banner-file-meta { min-height:18px; color:var(--text-muted); font-size:.75rem; text-align:center; overflow-wrap:anywhere; }
.cabinet-banner-file-meta.has-file { color:#ddd; }
.cabinet-banner-transfer { padding:11px 12px; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(255,255,255,.025); }
.cabinet-banner-transfer-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.cabinet-banner-transfer-top strong { display:block; font-size:.79rem; }
.cabinet-banner-transfer-top span { display:block; margin-top:3px; color:var(--text-muted); font-size:.74rem; }
.cabinet-banner-transfer-top > b { font-size:.8rem; font-variant-numeric:tabular-nums; }
.cabinet-banner-transfer-bar { height:5px; margin-top:9px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; }
.cabinet-banner-transfer-bar span { display:block; width:0; height:100%; border-radius:inherit; background:rgba(255,255,255,.78); transition:width .15s ease; }
.cabinet-banner-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.cabinet-banner-actions button:disabled { opacity:.46; cursor:not-allowed; }
.cabinet-banner-remove-btn { display:inline-flex; align-items:center; gap:6px; padding:5px 4px; color:var(--danger); }
@media (max-width:850px) {
    .cabinet-banner-head { flex-direction:column; }
    .cabinet-banner-grid { grid-template-columns:1fr; }
    .cabinet-banner-actions .btn { width:100%; }
}
@media (max-width:700px) {
    .cabinet-banner-preview-wrap, .cabinet-banner-preview-wrap img, .cabinet-banner-empty, .cabinet-banner-picker { min-height:150px; }
    .cabinet-banner-file-label { min-height:110px; }
}


/* ===== NB Project media settings v7 ===== */
.cabinet-banner-payment-card { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:12px; align-items:center; padding:14px; margin:0 0 12px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.035); }
.cabinet-banner-payment-card.is-paid { border-color:rgba(77,199,103,.28); background:rgba(77,199,103,.055); }
.cabinet-banner-payment-icon { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:11px; background:rgba(255,255,255,.07); }
.cabinet-banner-payment-card.is-paid .cabinet-banner-payment-icon { color:#72dd86; background:rgba(77,199,103,.12); }
.cabinet-banner-payment-copy { min-width:0; }
.cabinet-banner-payment-copy strong { display:block; font-size:.9rem; }
.cabinet-banner-payment-copy small { display:block; margin-top:4px; color:var(--text-muted); font-size:.75rem; }
.cabinet-banner-payment-form { margin:0; }
.cabinet-banner-payment-btn { white-space:nowrap; }
.cabinet-banner-ready { display:flex; align-items:center; gap:10px; padding:11px 12px; margin-top:10px; border:1px solid rgba(77,199,103,.25); border-radius:10px; background:rgba(77,199,103,.055); }
.cabinet-banner-ready-icon { width:34px; height:34px; flex:0 0 34px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:rgba(77,199,103,.12); color:#72dd86; }
.cabinet-banner-ready strong { display:block; font-size:.79rem; }
.cabinet-banner-ready div span { display:block; margin-top:3px; color:var(--text-muted); font-size:.74rem; }
.cabinet-banner-section .cabinet-banner-file-meta.has-file { color:#ddd; }
.cabinet-banner-form.is-uploading .cabinet-banner-file-label { cursor:progress; opacity:.72; }
@media (max-width:850px){ .cabinet-banner-payment-card{grid-template-columns:42px minmax(0,1fr)} .cabinet-banner-payment-form{grid-column:1 / -1} .cabinet-banner-payment-btn{width:100%} }

/* MP4 preview in profile background uploader */
.profile-background-current-media { width:100%; height:100%; min-height:170px; display:block; object-fit:cover; object-position:center; }
.profile-background-current [data-background-preview] { width:100%; height:100%; min-height:170px; display:block; object-fit:cover; object-position:center; }


/* ============================================================
 * NB Project v9: profile media color correction
 *
 * The previous profile background used a strong black gradient
 * and the profile banner itself was rendered at 25% opacity.
 * This made the uploaded media look substantially darker than
 * the original files even though the files themselves were OK.
 *
 * Keep the media at full opacity and use only a very light overlay
 * for text readability. Cards remain translucent so the background
 * can still show through without changing the actual media colors.
 * ============================================================ */
.profile-page-background img.profile-page-background-image,
.profile-page-background video.profile-page-background-image,
.profile-page-background-image,
.profile-page-background video {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.profile-page-background-overlay {
    background: transparent !important;
    opacity: 0 !important;
}

/* Public profile header: keep it glassy, but do not bury the artwork. */
.cabinet-profile-header {
    background: rgba(20, 20, 20, 0.46) !important;
}

/* Profile content cards: slightly lighter transparency over the media. */
.cabinet-profile-page .profile-posts {
    background: rgba(20, 20, 20, 0.56) !important;
}

.cabinet-info-block {
    background: rgba(20, 20, 20, 0.48) !important;
}

/* The profile banner was explicitly dimmed to 25% in the old CSS. */
.cabinet-banner-block--bg .cabinet-banner-img {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Keep banner colors unchanged: no overlay is applied. */
.cabinet-banner-block--bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
    z-index: 0;
}

.cabinet-banner-block--bg .cabinet-banner-img {
    position: relative;
    z-index: 0;
}

.cabinet-profile-info-with-banner > .profile-avatar-link,
.cabinet-profile-info-with-banner > .profile-details {
    position: relative;
    z-index: 2;
}

/* ============================================================
 * NB Project v11: compact Steam-like public profile layout
 *
 * Goal:
 *   - one main vertical column instead of a 2-column posts/sidebar grid;
 *   - narrower profile container;
 *   - tighter typography and spacing;
 *   - keep the existing profile/background/banner functionality;
 *   - preserve the full-width original-color background.
 *
 * This override is scoped to .cabinet-profile-page so other pages
 * of the site keep their current layout.
 * ============================================================ */

.cabinet-profile-page {
    width: min(980px, 100%);
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0 56px;
}

.cabinet-profile-header {
    padding: 22px 24px 18px !important;
    margin-bottom: 18px !important;
    border-radius: 7px !important;
}

.cabinet-profile-header .profile-info {
    gap: 16px !important;
    margin-bottom: 14px !important;
}

.cabinet-profile-header .profile-details h2 {
    font-size: 1.65rem !important;
    line-height: 1.12;
    margin-bottom: 4px;
}

.cabinet-profile-header .profile-details p {
    font-size: 0.86rem !important;
    margin-bottom: 3px;
}

.cabinet-profile-header .profile-role {
    font-size: 0.84rem !important;
}

.cabinet-profile-header .profile-avatar,
.cabinet-profile-header .profile-avatar-img {
    width: 68px !important;
    height: 68px !important;
}

.cabinet-profile-header .profile-avatar {
    font-size: 26px;
}

.cabinet-profile-header .profile-avatar-online {
    width: 20px;
    height: 20px;
    bottom: 0;
    right: 0;
}

.cabinet-profile-header .profile-online-check {
    font-size: 10px;
}

.cabinet-profile-header .profile-clan-block {
    margin: 7px 0;
}

.cabinet-profile-header .profile-clan-avatar,
.cabinet-profile-header .profile-clan-avatar-placeholder {
    width: 24px;
    height: 24px;
}

.cabinet-profile-header .profile-clan-link {
    gap: 6px;
}

.cabinet-profile-header .profile-clan-tag,
.cabinet-profile-header .profile-clan-name {
    font-size: 0.82rem;
}

.cabinet-profile-header .profile-social-links {
    gap: 6px;
    margin-top: 7px;
}

.cabinet-profile-header .profile-status {
    gap: 6px;
}

.cabinet-profile-header .profile-status-dot {
    width: 7px;
    height: 7px;
}

.cabinet-profile-header .profile-stats {
    gap: 24px !important;
    padding-top: 14px !important;
}

.cabinet-profile-header .stat-item {
    min-width: 68px;
}

.cabinet-profile-header .stat-value {
    font-size: 1.18rem !important;
}

.cabinet-profile-header .stat-label {
    font-size: 0.76rem !important;
    margin-top: 2px;
}

/* One vertical content column. */
.cabinet-profile-page .profile-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.cabinet-profile-page .profile-posts,
.cabinet-profile-page .cabinet-profile-sidebar {
    width: 100% !important;
    min-width: 0;
}

.cabinet-profile-page .profile-posts {
    padding: 18px !important;
    border-radius: 7px !important;
}

.cabinet-profile-page .profile-posts h3 {
    margin-bottom: 14px !important;
    font-size: 1.08rem !important;
    padding-bottom: 8px !important;
}

.cabinet-profile-page .post-form {
    margin-bottom: 18px !important;
}

.cabinet-profile-page .post-form textarea {
    min-height: 84px !important;
    margin-bottom: 10px !important;
    padding: 10px !important;
    font-size: 0.86rem;
}

.cabinet-profile-page .wall-post.post {
    padding: 14px !important;
    margin-bottom: 10px !important;
    border-radius: 7px !important;
}

.cabinet-profile-page .post-header {
    margin-bottom: 7px !important;
    font-size: 0.78rem !important;
}

.cabinet-profile-page .post-content {
    font-size: 0.88rem;
    line-height: 1.48;
}

.cabinet-profile-page .cabinet-info-block {
    padding: 18px !important;
    border-radius: 7px !important;
}

.cabinet-profile-page .cabinet-info-block h2 {
    margin-bottom: 12px !important;
    font-size: 1.05rem !important;
    padding-bottom: 8px !important;
}

.cabinet-profile-page .cabinet-info-block > p {
    margin-bottom: 7px;
    font-size: 0.84rem;
}

/* Compact information row instead of large statistic cards. */
.cabinet-profile-page .cabinet-info-block .activity-stats.cabinet-activity-stats,
.cabinet-profile-page .cabinet-info-block .activity-stats {
    display: flex !important;
    flex-wrap: wrap;
    gap: 22px !important;
    margin: 14px 0 !important;
}

.cabinet-profile-page .cabinet-info-block .activity-item {
    flex: 0 1 auto;
    min-width: 130px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: left;
}

.cabinet-profile-page .cabinet-info-block .activity-value {
    font-size: 1.18rem !important;
    margin-bottom: 1px;
}

.cabinet-profile-page .cabinet-info-block .activity-label {
    font-size: 0.75rem;
}

.cabinet-profile-page .profile-actions-wrap {
    margin: 14px 0 10px !important;
}

.cabinet-profile-page .cabinet-friends-block {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.cabinet-profile-page .cabinet-friends-title {
    margin-bottom: 8px;
    font-size: 0.94rem;
}

/* The profile's main column should remain compact on smaller screens. */
@media (max-width: 760px) {
    .cabinet-profile-page {
        width: 100%;
        padding: 0 10px 40px;
    }

    .cabinet-profile-header {
        padding: 18px 16px 15px !important;
    }

    .cabinet-profile-header .profile-info {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .cabinet-profile-header .profile-stats {
        justify-content: flex-start !important;
        gap: 16px !important;
        overflow-x: auto;
        padding-bottom: 2px;
    }
}



/* ============================================================
 * NB Project v12: Steam-like narrow single-column profile
 *
 * Changes requested:
 *   - profile is narrower on desktop;
 *   - profile information is shown first;
 *   - comments/profile wall is moved to the very bottom;
 *   - keep one visual column and the current background behavior.
 * ============================================================ */
.cabinet-profile-page {
    width: min(860px, calc(100% - 24px));
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 48px;
}

.cabinet-profile-page .profile-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Put profile information before the comments/wall. */
.cabinet-profile-page .cabinet-profile-sidebar {
    order: 1 !important;
    width: 100% !important;
}

.cabinet-profile-page .profile-posts {
    order: 2 !important;
    width: 100% !important;
}

/* Slightly tighter Steam-like proportions. */
.cabinet-profile-header {
    padding: 18px 20px 15px !important;
    margin-bottom: 12px !important;
}

.cabinet-profile-header .profile-info {
    gap: 13px !important;
    margin-bottom: 11px !important;
}

.cabinet-profile-header .profile-details h2 {
    font-size: 1.52rem !important;
}

.cabinet-profile-header .profile-avatar,
.cabinet-profile-header .profile-avatar-img {
    width: 100px !important;
    height: 100px !important;
}

.cabinet-profile-header .profile-avatar-online {
    width: 22px;
    height: 22px;
    bottom: 1px;
    right: 1px;
}

.cabinet-profile-header .profile-username-uppercase {
    -webkit-text-stroke: 1.5px #000;
    text-shadow: 0 1px 2px rgba(0,0,0,.95), 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000;
}

.cabinet-profile-page .cabinet-info-block,
.cabinet-profile-page .profile-posts {
    padding: 16px !important;
}

.cabinet-profile-page .cabinet-info-block h2,
.cabinet-profile-page .profile-posts h3 {
    margin-bottom: 10px !important;
}

@media (max-width: 760px) {
    .cabinet-profile-page {
        width: calc(100% - 16px);
        max-width: none;
        padding-bottom: 36px;
    }
}


/* ============================================================
 * NB Project v13 — Steam-like public profile side column
 *
 * Layout:
 *   left  = main profile identity/statistics
 *   right = level / last online / badges / clan / friends
 *   bottom = full-width profile comments
 *
 * Scoped to .cabinet-profile-page so unrelated pages are untouched.
 * ============================================================ */
.cabinet-profile-page {
    width: min(980px, calc(100% - 24px));
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0 56px;
}

.cabinet-profile-page .profile-steam-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 14px;
    align-items: start;
}

.cabinet-profile-page .profile-main-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.cabinet-profile-page .cabinet-profile-header {
    min-height: auto !important;
    padding: 18px 20px 15px !important;
    margin: 0 !important;
    border-radius: 8px !important;
}

.cabinet-profile-page .cabinet-profile-header .profile-info {
    min-height: 150px;
}

.profile-steam-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.profile-level-card,
.profile-side-block {
    background: rgba(20, 20, 20, 0.50);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.profile-level-card {
    padding: 13px 14px;
}

.profile-level-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.profile-level-label {
    color: #e8e8e8;
    font-size: 1.05rem;
    font-weight: 700;
}

.profile-level-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    border: 2px solid rgba(142, 93, 255, 0.95);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(142,93,255,0.10);
}

.profile-level-progress {
    height: 4px;
    margin-top: 10px;
    background: rgba(255,255,255,0.10);
    border-radius: 999px;
    overflow: hidden;
}

.profile-level-progress span {
    display: block;
    width: 3%;
    height: 100%;
    background: rgba(142, 93, 255, 0.9);
    border-radius: inherit;
}

.profile-mini-edit,
.profile-side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 9px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 5px;
    background: rgba(255,255,255,0.07);
    color: #f0f0f0 !important;
    font-size: 0.74rem;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.profile-mini-edit:hover,
.profile-side-link:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

.profile-mini-edit--muted {
    color: var(--text-muted) !important;
}

.profile-side-actions {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-side-actions--edit {
    margin-top: 4px;
}

.profile-side-actions form {
    margin: 0;
}

.profile-side-actions .profile-mini-edit,
.profile-side-actions button.profile-mini-edit {
    width: 100%;
    margin-top: 5px;
    cursor: pointer;
    font-family: inherit;
}

.profile-side-block {
    padding: 12px 13px;
}

.profile-side-title,
.profile-side-title-row {
    font-size: 0.73rem;
    font-weight: 700;
    color: #d8d8d8;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.profile-side-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-side-count {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.profile-online-value {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.79rem;
    line-height: 1.4;
}

.profile-online-value.is-online {
    color: #6ddb73;
}

.profile-side-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7d7d7d;
    flex: 0 0 auto;
}

.profile-online-value.is-online .profile-side-status-dot {
    background: #50d467;
    box-shadow: 0 0 8px rgba(80,212,103,0.45);
}

.profile-badges-row {
    display: flex;
    gap: 6px;
    margin-top: 9px;
}

.profile-badge-placeholder {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.34);
    font-size: 0.9rem;
}

.profile-side-note {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.profile-clan-placeholder {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
}

.profile-clan-placeholder-icon {
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 5px;
    color: #c4c4c4;
    background: rgba(255,255,255,0.05);
}

.profile-clan-placeholder strong,
.profile-clan-placeholder span {
    display: block;
}

.profile-clan-placeholder strong {
    font-size: 0.77rem;
    color: #e1e1e1;
}

.profile-clan-placeholder div > span {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.69rem;
    line-height: 1.3;
}

.profile-friends-list {
    display: flex;
    flex-direction: column;
    margin-top: 7px;
}

.profile-friend-row {
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) 24px;
    align-items: center;
    gap: 7px;
    padding: 5px 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.profile-friend-row:hover .profile-friend-meta strong {
    color: #fff;
}

.profile-friend-avatar {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255,255,255,0.12);
}

.profile-friend-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    color: #cfcfcf;
    font-size: 0.72rem;
    font-weight: 700;
}

.profile-friend-meta {
    min-width: 0;
}

.profile-friend-meta strong,
.profile-friend-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-friend-meta strong {
    color: #dedede;
    font-size: 0.76rem;
    font-weight: 600;
}

.profile-friend-meta small {
    margin-top: 1px;
    color: var(--text-muted);
    font-size: 0.64rem;
}

.profile-friend-meta small.is-online {
    color: #54d36a;
}

.profile-friend-level {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(142,93,255,0.9);
    border-radius: 50%;
    color: #eee;
    font-size: 0.63rem;
    font-weight: 700;
}

.profile-friends-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 78px;
    margin-top: 7px;
    border: 1px dashed rgba(255,255,255,0.10);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.profile-friends-empty i {
    font-size: 0.9rem;
    opacity: 0.55;
}

.profile-side-link {
    width: 100%;
    margin-top: 9px;
    font-size: 0.7rem;
}

.profile-comments-section {
    width: 100%;
    margin-top: 14px;
}

.profile-comments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.profile-comments-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.profile-comments-heading h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 1.08rem !important;
}

.profile-comments-count {
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.69rem;
}

.profile-comments-form {
    margin-bottom: 14px !important;
}

.profile-comments-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-comments-form-footer > span {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.profile-comments-locked {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-size: 0.74rem;
}

.profile-wall-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cabinet-profile-page .profile-wall-post {
    margin-bottom: 0 !important;
    padding: 12px !important;
}

.profile-comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    gap: 5px;
    border: 1px dashed rgba(255,255,255,0.10);
    border-radius: 7px;
    color: var(--text-muted);
    text-align: center;
}

.profile-comments-empty i {
    margin-bottom: 3px;
    font-size: 1.1rem;
    opacity: 0.48;
}

.profile-comments-empty strong {
    color: #d2d2d2;
    font-size: 0.8rem;
}

.profile-comments-empty span {
    font-size: 0.7rem;
}

@media (max-width: 820px) {
    .cabinet-profile-page .profile-steam-layout {
        grid-template-columns: 1fr;
    }

    .profile-steam-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .profile-friends-side-block,
    .profile-clan-side-block,
    .profile-online-block,
    .profile-level-card {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .cabinet-profile-page {
        width: calc(100% - 14px);
    }

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

    .cabinet-profile-page .cabinet-profile-header .profile-info {
        min-height: auto;
    }

    .profile-comments-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-comments-form-footer button {
        width: 100%;
    }
}


/* ============================================================
 * NB Project v15 — unified profile information block
 * Same markup/style is used for own and public profiles.
 * ============================================================ */
.profile-user-info-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 12px;
    padding: 15px 16px 14px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.50);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #e8e8e8;
}

.profile-user-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.profile-user-info-kicker {
    display: block;
    margin-bottom: 2px;
    color: rgba(255,255,255,0.45);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.profile-user-info-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #ededed;
    font-size: 1rem !important;
    font-weight: 700;
}

.profile-user-info-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: rgba(255,255,255,0.48);
    font-size: 0.68rem;
    white-space: nowrap;
}

.profile-user-info-status.is-online {
    color: #62dc78;
}

.profile-user-info-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #777;
}

.profile-user-info-status.is-online .profile-user-info-status-dot {
    background: #55d768;
    box-shadow: 0 0 8px rgba(85,215,104,0.40);
}

.profile-user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px 20px;
    padding: 12px 0;
}

.profile-user-info-item {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
}

.profile-user-info-label {
    color: rgba(255,255,255,0.48);
    font-size: 0.69rem;
    white-space: nowrap;
}

.profile-user-info-item strong {
    min-width: 0;
    color: #e7e7e7;
    font-size: 0.76rem;
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-user-info-role.role-user { color: #e1e1e1; }
.profile-user-info-role.role-moderator { color: #6bb8ff; }
.profile-user-info-role.role-admin { color: #ff5f57; }

.profile-user-info-socials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.profile-user-info-social {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    background: rgba(255,255,255,0.035);
}

.profile-user-info-social-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255,255,255,0.06);
    color: #d9d9d9;
    font-size: 0.86rem;
}

.profile-user-info-social-content {
    min-width: 0;
}

.profile-user-info-social-content > span,
.profile-user-info-social-content > strong,
.profile-user-info-social-content > a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-user-info-social-content > span {
    color: rgba(255,255,255,0.42);
    font-size: 0.62rem;
    line-height: 1.1;
}

.profile-user-info-social-content > strong,
.profile-user-info-social-content > a {
    margin-top: 2px;
    color: #e7e7e7;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
}

.profile-user-info-social-content > a:hover {
    color: #fff;
}

.profile-user-info-steam {
    display: flex;
    justify-content: center;
    padding: 6px 0 10px;
}

.profile-user-info-steam-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 100%;
    color: #e7e7e7;
    text-decoration: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.profile-user-info-steam-link:hover {
    color: #fff;
    opacity: 0.96;
    transform: translateY(-1px);
}

.profile-user-info-steam-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: #dcdcdc;
    font-size: 1.05rem;
}

.profile-user-info-steam-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-user-info-steam-name {
    max-width: min(320px, 60vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ececec;
    font-size: 0.79rem;
    font-weight: 700;
}

.profile-user-info-stats {
    display: grid;
    grid-template-columns: minmax(0,0.85fr) minmax(0,1.25fr);
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.profile-user-info-stat {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    background: rgba(255,255,255,0.035);
}

.profile-user-info-stat strong,
.profile-user-info-stat span {
    display: block;
}

.profile-user-info-stat strong {
    color: #eeeeee;
    font-size: 0.91rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-user-info-stat span {
    margin-top: 3px;
    color: rgba(255,255,255,0.42);
    font-size: 0.64rem;
    line-height: 1.25;
}


@media (max-width: 760px) {
    .profile-user-info-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

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

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

/* ============================================================
 * NB Project v16 — синхронизация высоты профиля
 * На desktop карточка профиля и блок «Друзья» заканчиваются
 * на одной линии и автоматически подстраиваются под контент.
 * ============================================================ */
@media (min-width: 821px) {
    .cabinet-profile-page .profile-steam-layout {
        align-items: stretch;
    }

    .cabinet-profile-page .profile-main-column {
        align-self: stretch;
        min-height: 100%;
    }

    .cabinet-profile-page .profile-user-info-card {
        flex: 1 1 auto;
        min-height: 0;
    }

    .cabinet-profile-page .profile-steam-sidebar {
        align-self: stretch;
        min-height: 100%;
    }

    .cabinet-profile-page .profile-friends-side-block {
        margin-top: auto;
    }
}

@media (max-width: 820px) {
    .cabinet-profile-page .profile-friends-side-block {
        margin-top: 0;
    }
}


/* ============================================================
 * NB Project v17 — настройки профиля: дата и социальные поля
 * Единый внешний вид для нативного datepicker, VK и Discord.
 * ============================================================ */
.settings-profile-account-form input[type="text"],
.settings-profile-account-form input[type="date"],
.settings-social-form .settings-social-input {
    width: min(100%, 320px);
    box-sizing: border-box;
    height: 40px;
    padding: 9px 12px;
    margin: 4px 0 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    background: rgba(18,18,18,0.78);
    color: #eeeeee;
    caret-color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.2;
    color-scheme: dark;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.settings-profile-account-form input[type="text"]::placeholder,
.settings-profile-account-form input[type="date"]::placeholder,
.settings-social-form .settings-social-input::placeholder {
    color: rgba(255,255,255,0.34);
}

.settings-profile-account-form input[type="text"]:hover,
.settings-profile-account-form input[type="date"]:hover,
.settings-social-form .settings-social-input:hover {
    border-color: rgba(255,255,255,0.20);
    background: rgba(24,24,24,0.9);
}

.settings-profile-account-form input[type="text"]:focus,
.settings-profile-account-form input[type="date"]:focus,
.settings-social-form .settings-social-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(139,92,246,0.14);
    background: rgba(24,24,24,0.94);
}

/* Нативный календарь Chromium/Edge уважает color-scheme и эти параметры. */
.settings-profile-account-form input[type="date"] {
    color-scheme: dark;
    accent-color: var(--accent);
}

.settings-profile-account-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .78;
    filter: invert(1) brightness(1.15);
    transition: opacity .18s ease;
}

.settings-profile-account-form input[type="date"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.settings-profile-account-form input[type="date"]::-webkit-datetime-edit,
.settings-profile-account-form input[type="date"]::-webkit-datetime-edit-text,
.settings-profile-account-form input[type="date"]::-webkit-datetime-edit-month-field,
.settings-profile-account-form input[type="date"]::-webkit-datetime-edit-day-field,
.settings-profile-account-form input[type="date"]::-webkit-datetime-edit-year-field {
    color: #eeeeee;
}

.settings-social-form .settings-social-input {
    margin-top: 7px;
}

.settings-social-form .settings-social-card {
    min-width: 0;
}

@media (max-width: 700px) {
    .settings-profile-account-form input[type="text"],
    .settings-profile-account-form input[type="date"],
    .settings-social-form .settings-social-input {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================================
   CLANS V1.7 — заявки, приглашения, роли и управление
   ========================================================= */
.clan-page-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.clan-manage-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.clan-membership-notice,
.clan-pending-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 18px 0;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.clan-membership-notice a,
.clan-pending-card a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.clan-membership-notice a:hover { color: var(--accent); }
.clan-membership-notice span { color: var(--text-muted); font-size: .78rem; }

.clan-hero-block,
.clan-panel {
    background: rgba(18,18,18,.68);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(0,0,0,.16);
    backdrop-filter: blur(12px);
}

.clan-header {
    margin-top: 0;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}

.clan-hero-actions {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 230px;
}

.clan-access-note,
.clan-muted {
    color: var(--text-muted);
    font-size: .8rem;
    line-height: 1.55;
}

.clan-pending-card {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    min-width: min(330px, 100%);
    background: rgba(255,255,255,.03);
}

.clan-pending-card strong { color: var(--text); }
.clan-pending-card > span { color: var(--text-muted); font-size: .76rem; }
.clan-inline-actions { display:flex; flex-wrap:wrap; gap:8px; }

.clan-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, .9fr);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.clan-page-grid > aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.clan-panel {
    padding: 18px;
    margin-bottom: 18px;
}

.clan-panel:last-child { margin-bottom: 0; }

.clan-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.clan-panel-heading h2 {
    margin: 4px 0 0;
    font-size: 1rem;
    font-weight: 700;
}

.clan-kicker {
    color: #777780;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.clan-capacity,
.clan-counter {
    min-width: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: #aaaab0;
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
}

.clan-modern-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.clan-modern-form input,
.clan-settings-form input[type="text"],
.clan-settings-form input[type="file"],
.clan-settings-form select,
.clan-role-form select {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    background: rgba(10,10,10,.55);
    color: var(--text);
    font: inherit;
}

.clan-modern-form input:focus,
.clan-settings-form input:focus,
.clan-settings-form select:focus,
.clan-role-form select:focus {
    outline: none;
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 0 0 3px rgba(255,255,255,.035);
}

.clan-inline-actions form,
.clan-row-actions form,
.clan-member-controls form { margin: 0; }

.clan-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

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

.clan-user-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    color: var(--text);
    text-decoration: none;
}

.clan-user-main > span,
.clan-user-main-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.clan-user-main strong { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clan-user-main small { color: var(--text-muted); font-size: .68rem; }

.clan-row-actions,
.clan-member-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.clan-online-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #63d17d;
    font-size: .68rem;
    white-space: nowrap;
}

.clan-online-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #63d17d;
    box-shadow: 0 0 8px rgba(99,209,125,.55);
}

.clan-role-card {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.clan-role-card:last-child { border-bottom: 0; }
.clan-role-card strong { display: block; margin-bottom: 3px; font-size: .78rem; }
.clan-role-card span { display:block; color: var(--text-muted); font-size:.68rem; line-height:1.5; }

.clan-compact-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,.05);
}
.clan-compact-row:last-child { border-bottom:0; }
.clan-compact-row span { display:flex; flex-direction:column; gap:2px; }
.clan-compact-row strong { font-size:.76rem; }
.clan-compact-row small { color:var(--text-muted); font-size:.65rem; }
.clan-compact-row > i { color:var(--text-muted); }

.clan-activity-item,
.clan-activity-line {
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.clan-activity-item:last-child,
.clan-activity-line:last-child { border-bottom:0; }
.clan-activity-item span,
.clan-activity-line span { display:block; color:var(--text); font-size:.72rem; line-height:1.45; }
.clan-activity-item small,
.clan-activity-line small { display:block; margin-top:3px; color:var(--text-muted); font-size:.62rem; }

.clan-settings-form {
    display:grid;
    gap:13px;
}
.clan-settings-form label {
    display:flex;
    flex-direction:column;
    gap:6px;
    color:var(--text-muted);
    font-size:.72rem;
    font-weight:600;
}
.clan-settings-form input[type="file"] { padding:8px 10px; }

.clan-current-role {
    display:grid;
    gap:4px;
    margin-bottom:14px;
    padding:12px;
    border:1px solid rgba(255,255,255,.06);
    border-radius:8px;
    background:rgba(255,255,255,.025);
}
.clan-current-role strong { font-size:.85rem; }
.clan-current-role span { color:var(--text-muted); font-size:.7rem; }

.clan-permission-grid {
    display:grid;
    gap:1px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.05);
    border-radius:8px;
}
.clan-permission-grid span {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:9px 10px;
    background:rgba(255,255,255,.02);
    color:var(--text-muted);
    font-size:.68rem;
}
.clan-permission-grid b { color:var(--text); font-size:.65rem; }

.clan-role-pill {
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 9px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:999px;
    color:var(--text-muted);
    font-size:.62rem;
}
.clan-role-owner { color:#fff; border-color:rgba(255,255,255,.14); }

/* CLAN MANAGE V2.0 — ровная двухколоночная сетка без пустых промежутков */
.clan-manage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    grid-template-areas:
        "invite settings"
        "role settings";
    gap: 18px;
    align-items: stretch;
}
.clan-manage-grid > .clan-panel {
    min-width: 0;
    margin-bottom: 0;
}
.clan-manage-invite { grid-area: invite; }
.clan-manage-settings { grid-area: settings; }
.clan-manage-role { grid-area: role; }
.clan-manage-members-list { display:flex; flex-direction:column; }
.clan-member-controls { max-width: 60%; }
.clan-role-form { min-width:135px; }
.clan-role-form select { min-height:32px; padding:0 9px; font-size:.65rem; }

.clan-danger-panel {
    border-color: rgba(255,82,82,.16);
    background: linear-gradient(135deg, rgba(255,82,82,.04), rgba(255,255,255,.015));
}

.notifications-list-v17 { display:flex; flex-direction:column; }
.notification-row-v17 {
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 0;
    color:var(--text);
    text-decoration:none;
    border-bottom:1px solid rgba(255,255,255,.05);
}
.notification-row-v17:last-child { border-bottom:0; }
.notification-row-v17:hover .notification-body-v17 strong { color:#fff; }
.notification-icon-v17 {
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 34px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:rgba(255,255,255,.035);
    color:#aaaab0;
}
.notification-body-v17 { min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }
.notification-body-v17 strong { font-size:.76rem; }
.notification-body-v17 span { color:var(--text-muted); font-size:.7rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notification-body-v17 small { color:#66666e; font-size:.62rem; }
.notification-row-v17.is-unread .notification-icon-v17 { border-color:rgba(99,209,125,.2); color:#63d17d; }
.notification-unread-dot { color:#63d17d; font-size:.4rem; }
.header-notifications-item--clan .header-notif-author { color:#63d17d; }

/* Новый список кланов */
.clans-list-main { min-width:0; flex:1; }
.clans-list-name-row { display:flex; align-items:center; gap:6px; min-width:0; }
.clans-list-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.clans-list-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:3px; color:var(--text-muted); font-size:.63rem; }
.clans-empty { padding:18px 20px; margin:0; color:var(--text-muted); }

@media (max-width: 900px) {
    .clan-page-grid,
    .clan-manage-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "invite"
            "settings"
            "role";
    }
    .clan-hero-actions { margin-left:0; min-width:0; justify-content:flex-start; }
    .clan-header { flex-wrap:wrap; }
}

@media (max-width: 680px) {
    .clan-page-topbar { align-items:flex-start; flex-direction:column; }
    .clan-modern-form { grid-template-columns:1fr; }
    .clan-user-row { align-items:flex-start; flex-direction:column; }
    .clan-row-actions,
    .clan-member-controls { width:100%; max-width:100%; justify-content:flex-start; }
    .clan-member-controls { padding-left:42px; }
    .clan-membership-notice { align-items:flex-start; flex-direction:column; }
}

.profile-clan-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 0;
    color: var(--text);
    text-decoration: none;
}
.profile-clan-side-link:hover { color: var(--accent); }
.profile-clan-side-link > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.profile-clan-side-link strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .76rem;
}
.profile-clan-side-link small { color: var(--text-muted); font-size: .62rem; }
.profile-clan-side-avatar,
.profile-clan-side-avatar--placeholder {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    object-fit: cover;
}
.profile-clan-side-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.07);
    color: var(--text);
    font-size: .8rem;
    font-weight: 700;
}

.header-notifications-all {
    display: block;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: #777780;
    text-align: center;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 700;
}
.header-notifications-all:hover { color:#fff; background:rgba(255,255,255,.035); }

/* CLANS V1.8 — аккуратная навигация без системного фиолетового цвета */
.clans-page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.clan-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.clan-page-action,
.clan-manage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    white-space: nowrap;
    text-decoration: none;
}

.clan-page .clan-page-action,
.clan-page .clan-manage-link,
.clan-manage-page .clan-page-action,
.clan-manage-page .clan-manage-link {
    color: var(--text);
}

.clan-page .clan-page-action:hover,
.clan-manage-page .clan-page-action:hover {
    color: #fff;
    text-decoration: none;
}

.clan-page .clan-manage-link,
.clan-manage-page .clan-manage-link {
    color: #000;
    text-decoration: none;
}

.clan-page .clan-manage-link:hover,
.clan-manage-page .clan-manage-link:hover {
    color: #000;
    text-decoration: none;
}

.clan-page a:not(.btn),
.clan-manage-page a:not(.btn),
.clans-page a:not(.btn) {
    color: var(--text);
    text-decoration: none;
}

.clan-page a:not(.btn):hover,
.clan-manage-page a:not(.btn):hover,
.clans-page a:not(.btn):hover {
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 680px) {
    .clan-page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .clan-page-action,
    .clan-manage-link {
        flex: 0 0 auto;
    }
}

/* CLAN INVITATIONS V1.9 */
.clan-nav-badge {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:18px;
    padding:0 5px;
    margin-left:2px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    color:var(--text);
    font-size:.58rem;
    line-height:1;
}

.header-notifications-item--invite .header-notif-author { color:#63d17d; }
.header-notifications-item--invite .header-notif-author i { margin-right:2px; }

.clan-invitations-list { display:flex; flex-direction:column; }
.clan-invitation-card {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:16px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
}
.clan-invitation-card:last-child { border-bottom:0; }
.clan-invitation-main {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
    flex:1;
    color:var(--text);
    text-decoration:none;
}
.clan-invitation-main:hover { color:var(--text); }
.clan-invitation-avatar {
    width:52px;
    height:52px;
    flex:0 0 52px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    background:rgba(255,255,255,.04);
    color:var(--text);
    font-weight:700;
}
.clan-invitation-avatar-img { width:100%; height:100%; object-fit:cover; }
.clan-invitation-info { min-width:0; display:flex; flex-direction:column; gap:4px; }
.clan-invitation-info strong { font-size:.82rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.clan-invitation-info span { color:var(--text-muted); font-size:.7rem; }
.clan-invitation-info small { color:#686870; font-size:.62rem; }
.clan-invitation-actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.clan-invitation-actions form { margin:0; }
.clan-invitations-empty {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:220px;
    text-align:center;
    color:var(--text-muted);
}
.clan-invitations-empty strong { color:var(--text); font-size:.85rem; }
.clan-invitations-empty span:last-child { font-size:.68rem; }
.clan-invitations-empty-icon {
    width:42px; height:42px; display:flex; align-items:center; justify-content:center;
    margin-bottom:4px; border:1px solid rgba(255,255,255,.07); border-radius:10px;
    background:rgba(255,255,255,.025); color:#777780;
}

@media (max-width:680px) {
    .clan-invitation-card { align-items:flex-start; flex-direction:column; }
    .clan-invitation-actions { width:100%; }
    .clan-invitation-actions .btn { flex:1; }
}

/* Level system */
.profile-level-xp {
    margin-top: 7px;
    color: rgba(255,255,255,0.55);
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
}

.admin-level-inline-form {
    display: contents;
}

.admin-level-inline-form input[type="number"] {
    width: 120px;
    max-width: 100%;
}

/* Admin level management */
.admin-level-search-form {
    margin: 18px 0;
}

.admin-level-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-level-search-row input[type="search"] {
    max-width: 420px;
    flex: 1 1 280px;
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

.admin-level-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}


@media (max-width: 700px) {
    .home-steam-link-modal-backdrop {
        padding: 16px;
    }

    .home-steam-link-prompt-header {
        min-height: 84px;
        padding: 18px 18px 16px;
    }

    .home-steam-link-prompt-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 1.2rem;
    }

    .home-steam-link-prompt h2 {
        font-size: .98rem;
    }

    .home-steam-link-prompt-body {
        padding: 16px 18px 18px;
    }

    .home-steam-link-prompt p {
        font-size: .74rem;
    }
}

/* ============================================================
 * NB Project v18 — profile sidebar: no empty gap before friends
 * The friends card fills the remaining sidebar height and its
 * bottom edge aligns with the bottom of the profile information
 * card on desktop. This keeps the sidebar visually continuous.
 * ============================================================ */
@media (min-width: 821px) {
    .cabinet-profile-page .profile-steam-sidebar {
        display: flex;
        flex-direction: column;
        align-self: stretch;
        min-height: 100%;
    }

    .cabinet-profile-page .profile-friends-side-block {
        margin-top: 0;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .cabinet-profile-page .profile-friends-side-block .profile-friends-list,
    .cabinet-profile-page .profile-friends-side-block .profile-friends-empty {
        flex: 0 0 auto;
    }

    .cabinet-profile-page .profile-friends-side-block .profile-side-link {
        margin-top: auto;
    }
}

/* === Ежедневные награды === */
.daily-rewards-page { max-width:1100px; margin:0 auto; padding:10px 0 40px; }
.daily-rewards-hero { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:22px; padding:24px; border:1px solid var(--border); border-radius:14px; background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); box-shadow:0 16px 45px rgba(0,0,0,.20); }
.daily-rewards-kicker { color:var(--text-muted); font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px; }
.daily-rewards-kicker i { color:var(--accent); margin-right:7px; }
.daily-rewards-hero .page-title { margin:0 0 6px; }
.daily-rewards-hero p { margin:0; color:var(--text-muted); max-width:720px; line-height:1.55; }
.daily-rewards-balance { min-width:160px; padding:14px 16px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.035); text-align:right; }
.daily-rewards-balance span { display:block; color:var(--text-muted); font-size:.8rem; margin-bottom:4px; }
.daily-rewards-balance strong { display:block; color:var(--accent); font-size:1.35rem; }
.daily-reward-alert { margin-bottom:18px; }
.daily-reward-lock-card { display:flex; align-items:center; gap:18px; padding:20px; margin-bottom:20px; border:1px solid var(--border); border-radius:12px; background:var(--bg-card); }
.daily-reward-lock-card--waiting { background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.02)); }
.daily-reward-lock-icon { width:44px; height:44px; border-radius:50%; display:grid; place-items:center; flex:0 0 auto; background:rgba(255,255,255,.06); color:var(--accent); }
.daily-reward-lock-card h2 { margin:0 0 4px; font-size:1rem; }
.daily-reward-lock-card p { margin:0 0 4px; color:var(--text-muted); line-height:1.5; }
.daily-reward-lock-card small { color:var(--text-muted); opacity:.8; }
.daily-reward-lock-card .btn { margin-left:auto; white-space:nowrap; }
.daily-reward-calendar-card,.daily-reward-history-card { border:1px solid var(--border); border-radius:14px; background:var(--bg-card); padding:22px; margin-bottom:20px; }
.daily-reward-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.daily-reward-section-head h2 { margin:0 0 4px; font-size:1.08rem; }
.daily-reward-section-head p { margin:0; color:var(--text-muted); font-size:.88rem; }
.daily-reward-today-pill,.daily-reward-streak { border:1px solid var(--accent); color:var(--accent); background:rgba(255,255,255,.04); padding:8px 12px; border-radius:999px; font-size:.82rem; white-space:nowrap; }
.daily-reward-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; }
.daily-reward-day { min-height:180px; padding:14px; display:flex; flex-direction:column; border:1px solid var(--border); border-radius:11px; background:rgba(255,255,255,.025); transition:transform .2s ease,border-color .2s ease,background .2s ease; }
.daily-reward-day-top { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--text-muted); font-size:.78rem; }
.daily-reward-day-top i { color:var(--accent); }
.daily-reward-amount { margin-top:18px; font-weight:800; font-size:1.18rem; color:#fff; }
.daily-reward-day-title { display:block; margin-top:7px; color:#fff; font-size:.87rem; }
.daily-reward-day-description { margin-top:4px; min-height:32px; color:var(--text-muted); font-size:.75rem; line-height:1.35; }
.daily-reward-day-label { margin-top:auto; padding-top:10px; color:var(--text-muted); font-size:.78rem; line-height:1.35; }
.daily-reward-day.is-current { border-color:var(--accent); background:rgba(255,255,255,.06); box-shadow:0 0 0 1px rgba(255,255,255,.02),0 10px 30px rgba(0,0,0,.16); transform:translateY(-2px); }
.daily-reward-day.is-current .daily-reward-amount { color:var(--accent); }
.daily-reward-day.is-claimed .daily-reward-amount { color:#65d889; }
.daily-reward-day.is-claimed { border-color:rgba(70,190,110,.45); background:rgba(70,190,110,.05); }
.daily-reward-day.is-locked { opacity:.58; }
.daily-reward-claim-form { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:16px; padding:16px; border-radius:10px; border:1px solid var(--border); background:rgba(255,255,255,.025); }
.daily-reward-claim-form>div { display:flex; flex-direction:column; gap:4px; }
.daily-reward-claim-form strong { font-size:1rem; }
.daily-reward-claim-form span { color:var(--text-muted); font-size:.82rem; }
.daily-reward-claim-form .btn { white-space:nowrap; }
.daily-reward-claimed-banner { margin-top:16px; padding:13px 15px; border-radius:9px; color:#65d889; background:rgba(70,180,100,.08); border:1px solid rgba(70,180,100,.25); }
.daily-reward-claimed-banner i { margin-right:6px; }
.daily-reward-claimed-banner--disabled { color:var(--text-muted); background:rgba(255,255,255,.04); border-color:var(--border); }
.daily-reward-history-list { display:flex; flex-direction:column; }
.daily-reward-history-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--border); }
.daily-reward-history-row:first-child { border-top:0; }
.daily-reward-history-icon { width:34px; height:34px; border-radius:8px; display:grid; place-items:center; background:rgba(255,255,255,.05); color:var(--accent); flex:0 0 auto; }
.daily-reward-history-main { display:flex; flex-direction:column; gap:2px; min-width:0; }
.daily-reward-history-main span { color:var(--text-muted); font-size:.78rem; }
.daily-reward-history-amount { margin-left:auto; color:#65d889; white-space:nowrap; }

/* === Администрирование ежедневных наград === */
.daily-reward-admin-header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.daily-reward-admin-header p { margin:6px 0 0; color:var(--text-muted); max-width:760px; }
.daily-reward-admin-section { padding:22px; }
.daily-reward-admin-note { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; margin-bottom:18px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.025); }
.daily-reward-admin-note>i { color:var(--accent); margin-top:2px; }
.daily-reward-admin-note div { display:flex; flex-direction:column; gap:3px; }
.daily-reward-admin-note span { color:var(--text-muted); font-size:.84rem; line-height:1.45; }
.daily-reward-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.daily-reward-admin-card { border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.018); padding:16px; }
.daily-reward-admin-card-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:14px; }
.daily-reward-admin-card-head>div { display:flex; flex-direction:column; gap:3px; }
.daily-reward-admin-day { color:var(--text-muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.06em; }
.daily-reward-switch { display:flex; align-items:center; gap:7px; color:var(--text-muted); font-size:.8rem; white-space:nowrap; }
.daily-reward-switch input { accent-color:var(--accent); }
.daily-reward-admin-card label { display:flex; flex-direction:column; gap:6px; margin-top:11px; color:var(--text-muted); font-size:.8rem; }
.daily-reward-admin-card input,.daily-reward-admin-card textarea { width:100%; box-sizing:border-box; border:1px solid var(--border); background:var(--bg-input); color:var(--text); border-radius:7px; padding:10px 11px; font:inherit; }
.daily-reward-admin-card textarea { resize:vertical; min-height:82px; }
.daily-reward-admin-actions { display:flex; justify-content:flex-end; margin-top:18px; }
@media (max-width:900px) { .daily-reward-calendar { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:760px) { .daily-reward-admin-header { flex-direction:column; align-items:stretch; } .daily-reward-admin-grid { grid-template-columns:1fr; } }
@media (max-width:640px) { .daily-rewards-hero { flex-direction:column; align-items:stretch; padding:18px; } .daily-rewards-balance { text-align:left; } .daily-reward-lock-card,.daily-reward-claim-form { align-items:stretch; flex-direction:column; } .daily-reward-lock-card .btn { margin-left:0; width:100%; } .daily-reward-calendar { grid-template-columns:repeat(2,minmax(0,1fr)); } .daily-reward-section-head { flex-direction:column; align-items:flex-start; } .daily-reward-claim-form .btn { width:100%; } }


/* Public user group colors/effects. */
.nb-group-name{--group-color-start:#d9d9d9;--group-color-end:#fff;--group-glow:#9b9b9b;color:var(--group-color-start)!important;font-weight:700;overflow:visible;transition:color .2s ease,text-shadow .2s ease}
.nb-group-name[data-group-effect=gradient]{background:linear-gradient(90deg,var(--group-color-start),var(--group-color-end));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent!important}
.nb-group-name[data-group-effect=shimmer]{background:linear-gradient(90deg,var(--group-color-start) 0%,var(--group-color-end) 43%,#fff 50%,var(--group-color-end) 57%,var(--group-color-start) 100%);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent!important;animation:nbGroupShimmer 2.4s linear infinite}
.nb-group-name[data-group-effect=pulse]{text-shadow:0 0 0 var(--group-glow);animation:nbGroupPulse 1.8s ease-in-out infinite}
.nb-group-name[data-group-effect=glow]{text-shadow:0 0 8px var(--group-glow),0 0 18px var(--group-glow)}
.nb-group-name[data-group-effect=rainbow]{background:linear-gradient(90deg,#ff5d7a,#ffbf69,#f6f27a,#69e6a1,#69c7ff,#b88cff,#ff5dca,#ff5d7a);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent!important;animation:nbGroupRainbow 4s linear infinite}
@keyframes nbGroupShimmer{from{background-position:220% 0}to{background-position:-20% 0}}
@keyframes nbGroupPulse{0%,100%{text-shadow:0 0 0 var(--group-glow)}50%{text-shadow:0 0 10px var(--group-glow),0 0 22px var(--group-glow)}}
@keyframes nbGroupRainbow{from{background-position:0% 50%}to{background-position:300% 50%}}
@media(prefers-reduced-motion:reduce){.nb-group-name[data-group-effect=shimmer],.nb-group-name[data-group-effect=pulse],.nb-group-name[data-group-effect=rainbow]{animation:none}}

/* Group badges must not clip their glow: text-shadow has to bleed over the
   neighbouring elements, so the ellipsis rules of the containers are dropped
   for .nb-group-name only (long names wrap instead of being cut off). */
.home-online-meta small.nb-group-name,
.profile-user-info-item strong.nb-group-name{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}

/* ---------------------------------------------------------
   Privilege giveaways: public page, home sidebar and admin
   --------------------------------------------------------- */
.home-giveaways-panel { margin-top: 16px; }
.home-giveaway-list { display:flex; flex-direction:column; padding:0 14px; }
.home-giveaway-item { display:flex; gap:11px; align-items:flex-start; padding:12px 0; border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); }
.home-giveaway-item:last-child { border-bottom:0; }
.home-giveaway-icon { display:flex; align-items:center; justify-content:center; flex:0 0 34px; height:34px; border-radius:9px; background:rgba(230,178,70,.12); color:var(--accent); }
.home-giveaway-body { display:flex; min-width:0; flex-direction:column; gap:4px; }
.home-giveaway-body strong { font-size:.88rem; line-height:1.35; overflow-wrap:anywhere; }
.home-giveaway-body small { color:var(--text-muted); font-size:.74rem; line-height:1.4; }
.home-giveaway-item:hover .home-giveaway-body strong { color:var(--accent); }
.home-giveaway-empty { padding:16px; color:var(--text-muted); font-size:.86rem; }

.giveaways-page { max-width:1180px; margin:24px auto 54px; padding:0 20px; }
.giveaways-page-heading { max-width:780px; margin:0 0 28px; }
.giveaways-eyebrow { color:var(--accent); font-size:.75rem; font-weight:800; letter-spacing:.16em; margin-bottom:9px; }
.giveaways-page-heading .page-title { margin-bottom:9px; }
.giveaways-page-heading p,.giveaways-admin-intro { color:var(--text-muted); line-height:1.65; }
.giveaways-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.giveaway-card { min-width:0; padding:21px; border:1px solid var(--border); border-radius:14px; background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); box-shadow:0 12px 35px rgba(0,0,0,.12); scroll-margin-top:95px; }
.giveaway-card--completed { opacity:.91; }
.giveaway-card-top { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:15px; }
.giveaway-status { display:inline-flex; align-items:center; width:fit-content; max-width:100%; padding:5px 9px; border:1px solid var(--border); border-radius:99px; color:var(--text-muted); font-size:.72rem; font-weight:700; line-height:1.35; }
.giveaway-status--active { color:#7fe0a1; border-color:rgba(72,192,112,.3); background:rgba(72,192,112,.08); }
.giveaway-status--drawing { color:#f0c36a; border-color:rgba(240,195,106,.3); background:rgba(240,195,106,.08); }
.giveaway-status--completed { color:var(--text-muted); background:rgba(255,255,255,.025); }
.giveaway-status--cancelled { color:#ef8888; }
.giveaway-entrants { color:var(--text-muted); font-size:.76rem; white-space:nowrap; }
.giveaway-entrants i { margin-right:4px; }
.giveaway-card h2 { margin:0 0 9px; font-size:1.24rem; line-height:1.35; overflow-wrap:anywhere; }
.giveaway-description { white-space:normal; color:var(--text-muted); font-size:.88rem; line-height:1.6; margin:0 0 17px; }
.giveaway-prize { display:flex; gap:12px; align-items:center; padding:14px; margin:15px 0; border:1px solid rgba(230,178,70,.2); border-radius:11px; background:rgba(230,178,70,.045); }
.giveaway-prize-icon { display:flex; align-items:center; justify-content:center; flex:0 0 42px; height:42px; border-radius:10px; color:var(--accent); background:rgba(230,178,70,.12); font-size:1.05rem; }
.giveaway-prize>span:last-child { display:flex; flex-direction:column; min-width:0; gap:4px; }
.giveaway-prize small { color:var(--text-muted); font-size:.75rem; }
.giveaway-prize strong { font-size:.98rem; line-height:1.35; overflow-wrap:anywhere; }
.giveaway-meta { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; margin:17px 0; }
.giveaway-meta>div { display:flex; flex-direction:column; gap:5px; }
.giveaway-meta small { color:var(--text-muted); font-size:.75rem; }
.giveaway-meta strong { font-size:.88rem; }
.giveaway-join-form { display:flex; flex-direction:column; gap:10px; margin-top:17px; padding-top:16px; border-top:1px solid var(--border); }
.giveaway-join-form label { font-size:.8rem; color:var(--text-muted); }
.giveaway-join-form input,.giveaway-join-form select { width:100%; box-sizing:border-box; min-height:42px; padding:10px 12px; border:1px solid var(--border); border-radius:8px; outline:none; color:var(--text); background:var(--bg-input); font:inherit; }
.giveaway-join-form input:focus,.giveaway-join-form select:focus { border-color:var(--accent); }
.giveaway-join-form .btn { align-self:flex-start; }
.giveaway-form-note { margin:0; color:var(--text-muted); font-size:.77rem; line-height:1.55; }
.giveaway-form-note strong { color:var(--text); overflow-wrap:anywhere; }
.giveaway-form-note--error { color:#ef8888; }
.giveaway-login-note,.giveaway-entry-state { margin-top:17px; padding:13px 14px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.025); font-size:.83rem; line-height:1.5; }
.giveaway-login-note a { color:var(--accent); font-weight:700; }
.giveaway-entry-state { display:flex; flex-direction:column; gap:5px; }
.giveaway-entry-state strong { color:var(--text); }
.giveaway-entry-state strong .fas { color:var(--accent); margin-right:4px; }
.giveaway-entry-state span { color:var(--text-muted); }
.giveaway-winners { margin-top:18px; padding-top:15px; border-top:1px solid var(--border); }
.giveaway-winners h3 { margin:0 0 10px; font-size:.91rem; }
.giveaway-winners h3 i { color:var(--accent); margin-right:6px; }
.giveaway-winner-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.045); font-size:.82rem; }
.giveaway-winner-row:last-child { border-bottom:0; }
.giveaway-winner-row a { color:var(--text); font-weight:700; overflow-wrap:anywhere; }
.giveaway-winner-row span { color:var(--text-muted); font-size:.74rem; text-align:right; }
.giveaway-empty-state { padding:32px; border:1px dashed var(--border); border-radius:13px; text-align:center; }
.giveaway-empty-state h2 { margin-top:0; }
.giveaway-empty-state p { color:var(--text-muted); line-height:1.6; }
.giveaway-alert { padding:12px 15px; margin:0 0 18px; border:1px solid var(--border); border-radius:9px; line-height:1.5; }
.giveaway-alert--error { color:#ffb4b4; border-color:rgba(220,80,80,.35); background:rgba(220,80,80,.07); }
.giveaway-alert--success { color:#9be4b0; border-color:rgba(72,192,112,.3); background:rgba(72,192,112,.07); }

.giveaways-admin-page .admin-section { margin-bottom:24px; }
.giveaway-admin-form { max-width:880px; }
.giveaway-admin-form textarea { width:100%; box-sizing:border-box; padding:11px 12px; border:1px solid var(--border); border-radius:8px; background:var(--bg-input); color:var(--text); font:inherit; resize:vertical; }
.giveaway-admin-form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.giveaway-admin-form-row>div { min-width:0; }
.giveaways-admin-table td { vertical-align:top; }
.giveaways-admin-table td strong,.giveaways-admin-table td small { display:block; }
.giveaways-admin-table td small { margin-top:5px; color:var(--text-muted); font-size:.75rem; line-height:1.45; }
.giveaways-admin-table details { margin-top:7px; }
.giveaways-admin-table summary,.giveaway-admin-details-row summary { cursor:pointer; color:var(--text-muted); font-size:.79rem; }
.giveaway-admin-actions { min-width:145px; }
.giveaway-admin-actions form { margin:0 0 6px; }
.giveaway-admin-actions .btn { white-space:nowrap; padding:7px 10px; font-size:.77rem; }
.giveaway-admin-failed-count,.giveaway-admin-error-detail { color:#ef8888!important; }
.giveaway-admin-details-row>td { background:rgba(255,255,255,.018); }
.giveaway-admin-participants { display:flex; flex-direction:column; gap:7px; padding-top:12px; }
.giveaway-admin-participant { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 12px; padding:9px 10px; border:1px solid var(--border); border-radius:7px; font-size:.79rem; overflow-wrap:anywhere; }
.giveaway-admin-participant i { color:var(--accent); }
.giveaway-admin-participant-status { color:var(--text-muted); }
.giveaway-admin-error-detail { grid-column:1/-1; }

@media (max-width:850px) { .giveaways-grid { grid-template-columns:1fr; } .giveaway-card { padding:18px; } }
@media (max-width:620px) { .giveaways-page { margin-top:17px; padding:0 12px; } .giveaway-card-top { align-items:flex-start; flex-direction:column; } .giveaway-admin-form-row { grid-template-columns:1fr; gap:0; } .giveaway-join-form .btn { align-self:stretch; width:100%; } .giveaway-winner-row { align-items:flex-start; flex-direction:column; gap:3px; } .giveaway-winner-row span { text-align:left; } .giveaway-admin-participant { grid-template-columns:1fr; } .giveaway-admin-participant-status { grid-row:auto; } }

.shop-section-tabs { display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; }
.shop-section-tab { display:inline-flex; align-items:center; gap:7px; min-height:36px; box-sizing:border-box; padding:8px 12px; border:1px solid var(--border); border-radius:8px; color:var(--text-muted); text-decoration:none; font-size:.82rem; font-weight:700; transition:background .15s ease,border-color .15s ease,color .15s ease; }
.shop-section-tab:hover,.shop-section-tab--active { color:var(--text); border-color:rgba(230,178,70,.38); background:rgba(230,178,70,.08); }
.shop-section-tab--active i,.shop-section-tab:hover i { color:var(--accent); }

/* Multi-place giveaways */
.giveaway-place-prizes { display:flex; flex-direction:column; gap:9px; margin:15px 0; }
.giveaway-place-prize { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.025); min-width:0; }
.giveaway-place-number { flex:0 0 72px; color:var(--accent); font-size:.76rem; font-weight:800; }
.giveaway-place-prize .giveaway-prize-icon { flex:0 0 34px; height:34px; font-size:.9rem; }
.giveaway-place-prize-info { display:flex; flex-direction:column; gap:4px; min-width:0; }
.giveaway-place-prize-info strong { font-size:.9rem; line-height:1.35; overflow-wrap:anywhere; }
.giveaway-place-prize-info small { color:var(--text-muted); font-size:.74rem; line-height:1.4; }
.giveaway-prize-builder-head { display:flex; justify-content:space-between; align-items:center; gap:14px; margin:20px 0 12px; }
.giveaway-prize-builder-head h3 { margin:0 0 4px; font-size:1rem; }
.giveaway-prize-builder-head p { margin:0; color:var(--text-muted); font-size:.8rem; line-height:1.5; }
.giveaway-prize-builder { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.giveaway-admin-prize-row { min-width:0; padding:15px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.02); }
.giveaway-admin-prize-row-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; }
.giveaway-admin-prize-row-head strong { color:var(--accent); }
.giveaway-prize-remove { border:0; border-radius:6px; padding:5px 8px; background:rgba(225,80,80,.1); color:#ef9696; cursor:pointer; font-size:.75rem; }
.giveaway-prize-remove:disabled { opacity:.35; cursor:not-allowed; }
.giveaway-admin-prize-row [data-privilege-fields],.giveaway-admin-prize-row [data-text-fields] { display:flex; flex-direction:column; }
.giveaway-admin-prize-row [data-text-fields] small { color:var(--text-muted); font-size:.76rem; line-height:1.5; margin-top:5px; }
.giveaway-admin-prize-summary { display:flex; flex-direction:column; gap:8px; min-width:190px; }
.giveaway-admin-prize-summary>div { padding-left:8px; border-left:2px solid var(--border); line-height:1.45; }
.giveaway-admin-prize-summary small { display:block; color:var(--text-muted); font-size:.73rem; margin-top:3px; }
.giveaway-login-note { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:17px; padding-top:16px; border-top:1px solid var(--border); }
.giveaway-login-note>span { color:var(--text-muted); font-size:.8rem; }
.giveaway-winner-row { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--border); font-size:.83rem; }
.giveaway-winner-row:last-child { border-bottom:0; }
.giveaway-winner-row>span:last-child { color:var(--text-muted); text-align:right; }
@media (max-width: 760px) {
  .giveaway-prize-builder { grid-template-columns:minmax(0,1fr); }
  .giveaway-prize-builder-head { align-items:flex-start; flex-direction:column; }
  .giveaway-place-number { flex-basis:58px; }
  .giveaway-winner-row { flex-direction:column; gap:4px; }
  .giveaway-winner-row>span:last-child { text-align:left; }
}
.giveaway-admin-prize-row [data-privilege-fields][hidden],
.giveaway-admin-prize-row [data-text-fields][hidden] { display:none !important; }

/* ---------------------------------------------------------
   NB PROJECT — premium giveaways experience
   --------------------------------------------------------- */
.giveaways-page--premium {
    --gw-gold: #e8b85c;
    --gw-gold-bright: #ffdc91;
    --gw-gold-soft: rgba(232,184,92,.12);
    --gw-line: rgba(255,255,255,.085);
    --gw-panel: #0d0d0e;
    --gw-panel-raised: #121213;
    width: 100%;
    max-width: 1200px;
    margin: 22px auto 58px;
    padding: 0 20px;
    color: var(--text);
}
.giveaways-page--premium .giveaways-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1.12fr) minmax(275px,.88fr);
    align-items: center;
    gap: 8px;
    min-height: 365px;
    padding: 34px 38px 0;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(232,184,92,.2);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 84% 42%,rgba(159,108,29,.17),transparent 40%),
        radial-gradient(ellipse at 12% 4%,rgba(255,255,255,.045),transparent 36%),
        linear-gradient(125deg,#101011 0%,#0a0a0b 58%,#11100d 100%);
    box-shadow: 0 22px 65px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.025);
}
.giveaways-page--premium .giveaways-hero::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    content: "";
    opacity: .25;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg,transparent,black 55%);
    pointer-events: none;
}
.giveaways-hero-copy { position: relative; z-index: 2; padding: 4px 0 32px; }
.giveaways-page--premium .giveaways-eyebrow,
.giveaways-section-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--gw-gold);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.4;
}
.giveaways-eyebrow-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--gw-gold); box-shadow: 0 0 13px rgba(232,184,92,.72); }
.giveaways-eyebrow-separator { color: #555; }
.giveaways-page--premium .giveaways-hero h1 {
    max-width: 650px;
    margin: 17px 0 16px;
    color: #f7f6f2;
    font-size: clamp(2.25rem,4.5vw,3.65rem);
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: 1.02;
}
.giveaways-page--premium .giveaways-hero h1 span {
    display: block;
    color: var(--gw-gold-bright);
    background: linear-gradient(100deg,#ffe4a6 0%,#d7a64a 72%,#f5d48a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.giveaways-page--premium .giveaways-hero-copy > p {
    max-width: 540px;
    margin: 0;
    color: #a7a6a1;
    font-size: .94rem;
    line-height: 1.8;
}
.giveaways-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 25px; }
.giveaways-page--premium .giveaways-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 45px;
    padding: 0 18px;
    border: 1px solid rgba(255,226,164,.35);
    border-radius: 9px;
    background: linear-gradient(135deg,#f5d58f,#d6a143);
    box-shadow: 0 8px 24px rgba(197,143,49,.17);
    color: #17120a;
    font-size: .83rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.giveaways-page--premium .giveaways-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(197,143,49,.25); filter: brightness(1.04); }
.giveaways-hero-cta i { font-size: .75rem; }
.giveaways-hero-note { display: inline-flex; align-items: center; gap: 7px; color: #8a8984; font-size: .75rem; }
.giveaways-hero-note i { color: #8bcba0; }
.giveaways-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 270px; overflow: visible; }
.giveaways-hero-glow { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: rgba(200,143,45,.17); filter: blur(48px); }
.giveaways-hero-orbit { position: absolute; left: 50%; top: 47%; border: 1px solid rgba(232,184,92,.23); border-radius: 50%; transform: translate(-50%,-50%) rotate(-24deg); }
.giveaways-hero-orbit--outer { width: 265px; height: 190px; }
.giveaways-hero-orbit--inner { width: 190px; height: 255px; transform: translate(-50%,-50%) rotate(34deg); border-color: rgba(255,255,255,.09); }
.giveaways-hero-emblem { position: relative; display: flex; align-items: center; justify-content: center; width: 146px; height: 146px; border: 1px solid rgba(255,225,161,.44); border-radius: 42px; transform: rotate(-8deg); background: linear-gradient(145deg,rgba(255,224,152,.17),rgba(103,66,14,.11)); box-shadow: 0 0 0 10px rgba(232,184,92,.025),0 25px 75px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.16); }
.giveaways-hero-emblem::before { position: absolute; inset: 8px; content: ""; border: 1px solid rgba(232,184,92,.15); border-radius: 34px; }
.giveaways-hero-emblem > i { color: var(--gw-gold-bright); font-size: 4.2rem; filter: drop-shadow(0 8px 19px rgba(232,184,92,.2)); }
.giveaways-hero-emblem-spark { position: absolute; color: #fff1cc; font-size: 1.35rem; transform: rotate(8deg); }
.giveaways-hero-emblem-spark--one { top: -18px; right: -17px; }
.giveaways-hero-emblem-spark--two { bottom: 2px; left: -24px; color: var(--gw-gold); font-size: 1.1rem; }
.giveaways-float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(16,16,17,.86); box-shadow: 0 12px 30px rgba(0,0,0,.28); backdrop-filter: blur(10px); }
.giveaways-float-card--top { top: 32px; right: 0; padding: 10px 12px; color: #d5d2c8; font-size: .61rem; font-weight: 800; letter-spacing: .12em; }
.giveaways-float-dot { width: 6px; height: 6px; border-radius: 50%; background: #8bcba0; box-shadow: 0 0 10px rgba(139,203,160,.55); }
.giveaways-float-card--bottom { bottom: 38px; left: -2px; padding: 12px 14px; }
.giveaways-float-card--bottom > i { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--gw-gold-soft); color: var(--gw-gold); }
.giveaways-float-card--bottom > span { display: flex; flex-direction: column; gap: 2px; }
.giveaways-float-card--bottom strong { color: #f5f1e8; font-size: .72rem; }
.giveaways-float-card--bottom small { color: #85837d; font-size: .66rem; }
.giveaways-hero-index { position: absolute; right: 9px; bottom: 9px; display: flex; align-items: center; gap: 7px; color: #79756c; font-size: .66rem; font-weight: 800; letter-spacing: .13em; }
.giveaways-hero-index span { color: #b29a67; font-weight: 600; }
.giveaways-hero-index b { margin-left: 9px; color: #4a4842; font-size: .6rem; }
.giveaways-hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 0; border-top: 1px solid rgba(255,255,255,.09); }
.giveaways-hero-stat { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 18px 22px 20px 0; }
.giveaways-hero-stat + .giveaways-hero-stat { padding-left: 23px; border-left: 1px solid rgba(255,255,255,.08); }
.giveaways-stat-icon { display: flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(232,184,92,.13); border-radius: 10px; background: rgba(232,184,92,.075); color: var(--gw-gold); font-size: .82rem; }
.giveaways-hero-stat > span:last-child { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.giveaways-hero-stat strong { color: #f5f2eb; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25; }
.giveaways-hero-stat small { color: #85847e; font-size: .72rem; }
.giveaways-catalog { margin-top: 38px; scroll-margin-top: 105px; }
.giveaways-catalog-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 19px; }
.giveaways-catalog-copy { min-width: 0; }
.giveaways-section-kicker { margin-bottom: 8px; font-size: .64rem; }
.giveaways-page--premium .giveaways-catalog-heading h2 { margin: 0 0 7px; color: #f2f0eb; font-size: clamp(1.5rem,2.4vw,2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.15; }
.giveaways-catalog-heading p { margin: 0; color: var(--text-muted); font-size: .83rem; line-height: 1.6; }
.giveaways-filters { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 5px; padding: 4px; border: 1px solid var(--gw-line); border-radius: 11px; background: rgba(255,255,255,.025); }
.giveaways-filter { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 0 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #96948f; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; transition: color .15s ease,background .15s ease,border-color .15s ease; }
.giveaways-filter:hover { color: #f0ede6; }
.giveaways-filter.is-active { border-color: rgba(232,184,92,.18); background: rgba(232,184,92,.1); color: var(--gw-gold-bright); }
.giveaways-filter span { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 6px; background: rgba(255,255,255,.07); font-size: .65rem; }
.giveaways-grid--premium { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 18px; }
.giveaways-grid--premium .giveaway-card--premium { display: flex; min-width: 0; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: linear-gradient(155deg,#101011 0%,#0b0b0c 100%); box-shadow: 0 12px 30px rgba(0,0,0,.15); scroll-margin-top: 105px; transition: border-color .2s ease,transform .2s ease,box-shadow .2s ease; }
.giveaways-grid--premium .giveaway-card--premium:hover { transform: translateY(-3px); border-color: rgba(232,184,92,.26); box-shadow: 0 20px 42px rgba(0,0,0,.24); }
.giveaways-grid--premium .giveaway-card--premium[hidden] { display: none !important; }
.giveaway-card-cover { position: relative; display: flex; min-height: 142px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 15px 17px 13px; border-bottom: 1px solid rgba(255,255,255,.075); background: radial-gradient(ellipse at 78% 55%,rgba(182,130,42,.16),transparent 40%),linear-gradient(115deg,#171613,#0d0d0e 68%,#17130c); }
.giveaway-card-cover::before { position: absolute; inset: 0; content: ""; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 21px 21px; mask-image: linear-gradient(90deg,transparent,black 70%); pointer-events: none; }
.giveaway-card-cover--upcoming { background: radial-gradient(ellipse at 78% 55%,rgba(104,136,175,.18),transparent 42%),linear-gradient(115deg,#14161a,#0d0d0e 68%,#0d1118); }
.giveaway-card-cover--drawing { background: radial-gradient(ellipse at 78% 55%,rgba(223,172,78,.16),transparent 42%),linear-gradient(115deg,#17150f,#0d0d0e 68%,#17120a); }
.giveaway-card-cover--completed { background: radial-gradient(ellipse at 78% 55%,rgba(255,255,255,.07),transparent 42%),linear-gradient(115deg,#151515,#0d0d0e 68%,#121212); }
.giveaway-card-cover-top,.giveaway-card-cover-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.giveaway-status { display: inline-flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; padding: 6px 9px; border: 1px solid rgba(139,203,160,.23); border-radius: 99px; background: rgba(26,70,43,.3); color: #9cdbac; font-size: .66rem; font-weight: 800; line-height: 1.2; }
.giveaway-status--upcoming { border-color: rgba(138,179,226,.24); background: rgba(40,67,100,.24); color: #a8c9f0; }
.giveaway-status--drawing { border-color: rgba(232,184,92,.23); background: rgba(97,66,18,.22); color: #f1cb7c; }
.giveaway-status--completed { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #a5a39d; }
.giveaway-status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.giveaway-status--active .giveaway-status-dot { animation: giveawayStatusPulse 2s ease-in-out infinite; }
@keyframes giveawayStatusPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.giveaway-card-id { color: #68665e; font-size: .62rem; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.giveaway-cover-symbol { position: absolute; top: 50%; left: 58%; display: flex; width: 78px; height: 78px; align-items: center; justify-content: center; border: 1px solid rgba(232,184,92,.27); border-radius: 24px; transform: translate(-50%,-50%) rotate(-9deg); background: linear-gradient(145deg,rgba(232,184,92,.11),rgba(232,184,92,.025)); box-shadow: 0 0 0 8px rgba(232,184,92,.025),0 13px 36px rgba(0,0,0,.28); }
.giveaway-cover-symbol > i { color: #edc56f; font-size: 2.2rem; filter: drop-shadow(0 5px 13px rgba(232,184,92,.17)); }
.giveaway-cover-symbol-halo { position: absolute; inset: -17px; border: 1px solid rgba(232,184,92,.09); border-radius: 30px; }
.giveaway-cover-symbol-star { position: absolute; color: #ffe5ad; font-size: 1rem; transform: rotate(9deg); }
.giveaway-cover-symbol-star--one { top: -13px; right: -18px; }
.giveaway-cover-symbol-star--two { bottom: 2px; left: -16px; color: #a88c54; font-size: .8rem; }
.giveaway-card-cover-bottom { color: #aaa79f; font-size: .7rem; }
.giveaway-card-cover-bottom span { display: inline-flex; align-items: center; gap: 7px; }
.giveaway-card-cover-bottom i { color: #bca06a; font-size: .68rem; }
.giveaway-card-content { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 19px; }
.giveaway-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.giveaways-page--premium .giveaway-card-heading h3 { margin: 0; color: #f1efe9; font-size: 1.15rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.35; overflow-wrap: anywhere; }
.giveaway-card-number { padding-top: 3px; color: #5c5951; font-size: .67rem; font-weight: 800; letter-spacing: .08em; }
.giveaways-page--premium .giveaway-description { display: -webkit-box; margin: 9px 0 17px; overflow: hidden; color: #999791; font-size: .81rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.giveaways-page--premium .giveaway-description--empty { color: #77756f; font-style: italic; }
.giveaway-prizes-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: #bdb8ad; font-size: .72rem; font-weight: 800; }
.giveaway-prizes-heading > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.giveaway-prizes-heading > span:first-child i { color: var(--gw-gold); }
.giveaway-prizes-heading > span:last-child { color: #77736a; font-size: .66rem; font-weight: 600; }
.giveaway-place-prizes--premium { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.giveaways-grid--premium .giveaway-place-prize { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; margin: 0; padding: 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 9px; background: rgba(255,255,255,.025); transition: border-color .15s ease,background .15s ease; }
.giveaways-grid--premium .giveaway-place-prize:hover { border-color: rgba(232,184,92,.15); background: rgba(255,255,255,.04); }
.giveaways-grid--premium .giveaway-place-number { display: flex; flex: 0 0 70px; align-items: center; gap: 6px; color: #aaa69a; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.giveaways-grid--premium .giveaway-place-number i { width: 11px; color: #8a867d; font-size: .67rem; text-align: center; }
.giveaways-grid--premium .giveaway-place-prize--rank-1 { border-color: rgba(232,184,92,.17); background: linear-gradient(90deg,rgba(232,184,92,.065),rgba(255,255,255,.018)); }
.giveaways-grid--premium .giveaway-place-prize--rank-1 .giveaway-place-number,.giveaways-grid--premium .giveaway-place-prize--rank-1 .giveaway-place-number i { color: #efc56d; }
.giveaways-grid--premium .giveaway-place-prize--rank-2 .giveaway-place-number,.giveaways-grid--premium .giveaway-place-prize--rank-2 .giveaway-place-number i { color: #c1c4ca; }
.giveaways-grid--premium .giveaway-place-prize--rank-3 .giveaway-place-number,.giveaways-grid--premium .giveaway-place-prize--rank-3 .giveaway-place-number i { color: #cd9972; }
.giveaways-grid--premium .giveaway-place-prize .giveaway-prize-icon { display: flex; flex: 0 0 31px; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 8px; background: rgba(255,255,255,.055); color: #c1bcb0; font-size: .79rem; }
.giveaways-grid--premium .giveaway-place-prize .giveaway-prize-icon--privilege { background: rgba(232,184,92,.1); color: #e3b95d; }
.giveaways-grid--premium .giveaway-place-prize .giveaway-prize-icon--balance { background: rgba(95,189,132,.1); color: #82c99b; }
.giveaways-grid--premium .giveaway-place-prize .giveaway-prize-icon--text { background: rgba(139,164,212,.1); color: #a3bae8; }
.giveaways-grid--premium .giveaway-place-prize-info { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.giveaways-grid--premium .giveaway-place-prize-info strong { color: #e3e0d8; font-size: .77rem; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.giveaways-grid--premium .giveaway-place-prize-info small { color: #85827a; font-size: .67rem; line-height: 1.45; overflow-wrap: anywhere; }
.giveaway-card-details { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-top: 14px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.065); border-bottom: 1px solid rgba(255,255,255,.065); }
.giveaway-card-detail { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.giveaway-card-detail > span { display: inline-flex; align-items: center; gap: 6px; color: #85827a; font-size: .65rem; }
.giveaway-card-detail > span i { color: #a88d57; }
.giveaway-card-detail > strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: #d6d1c6; font-size: .76rem; font-weight: 800; }
.giveaway-card-detail > strong small { color: #9a968c; font-size: .68rem; font-weight: 600; }
.giveaway-card-action { margin-top: auto; padding-top: 14px; }
.giveaways-grid--premium .giveaway-join-form { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; border: 0; }
.giveaways-grid--premium .giveaway-join-form label { margin: 2px 0 0; color: #aaa69d; font-size: .72rem; }
.giveaways-grid--premium .giveaway-join-form input,.giveaways-grid--premium .giveaway-join-form select { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; outline: 0; background: #111112; color: #ebe7df; font: inherit; font-size: .78rem; }
.giveaways-grid--premium .giveaway-join-form input:focus,.giveaways-grid--premium .giveaway-join-form select:focus { border-color: rgba(232,184,92,.5); box-shadow: 0 0 0 3px rgba(232,184,92,.08); }
.giveaways-grid--premium .giveaway-join-form .btn,.giveaway-login-note--premium .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 42px; margin-top: 2px; border: 1px solid rgba(255,226,164,.25); border-radius: 8px; background: linear-gradient(135deg,#f2d28d,#d5a043); color: #18130b; font-size: .79rem; font-weight: 800; text-align: center; }
.giveaways-grid--premium .giveaway-join-form .btn:hover,.giveaway-login-note--premium .btn:hover { filter: brightness(1.05); }
.giveaways-page--premium .giveaway-form-note { color: #8d8a82; font-size: .72rem; line-height: 1.55; }
.giveaways-page--premium .giveaway-form-note strong { color: #d8d2c7; overflow-wrap: anywhere; }
.giveaway-login-note--premium { display: flex; flex-direction: column; align-items: stretch; gap: 11px; margin: 0; padding: 0; border: 0; background: transparent; }
.giveaway-login-note--premium > span { display: flex; align-items: center; gap: 7px; color: #99958b; font-size: .73rem; }
.giveaway-login-note--premium > span i { color: var(--gw-gold); }
.giveaways-page--premium .giveaway-entry-state--premium { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 12px 13px; border: 1px solid rgba(255,255,255,.075); border-radius: 9px; background: rgba(255,255,255,.025); font-size: .77rem; line-height: 1.5; }
.giveaways-page--premium .giveaway-entry-state--premium strong { display: flex; align-items: center; gap: 7px; color: #e5dfd2; font-size: .79rem; }
.giveaways-page--premium .giveaway-entry-state--premium strong i { color: var(--gw-gold); }
.giveaways-page--premium .giveaway-entry-state--premium span { color: #8d8980; }
.giveaways-page--premium .giveaway-winners--premium { margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.giveaways-page--premium .giveaway-winners--premium h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #d7d1c5; font-size: .78rem; }
.giveaways-page--premium .giveaway-winners--premium h4 i { color: var(--gw-gold); }
.giveaways-page--premium .giveaway-winner-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .7rem; }
.giveaways-page--premium .giveaway-winner-row:last-child { border-bottom: 0; }
.giveaways-page--premium .giveaway-winner-row > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.giveaways-page--premium .giveaway-winner-row b { color: var(--gw-gold); white-space: nowrap; }
.giveaways-page--premium .giveaway-winner-row a { color: #dad5ca; font-weight: 700; overflow-wrap: anywhere; }
.giveaways-page--premium .giveaway-winner-row > span:last-child { max-width: 58%; color: #8e8a81; font-size: .66rem; text-align: right; }
.giveaways-empty-panel { display: flex; flex-direction: column; align-items: center; min-height: 300px; justify-content: center; padding: 38px 24px; border: 1px dashed rgba(255,255,255,.12); border-radius: 16px; background: radial-gradient(ellipse at 50% 0%,rgba(232,184,92,.055),transparent 54%),rgba(255,255,255,.012); text-align: center; }
.giveaways-empty-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 20px; border: 1px solid rgba(232,184,92,.18); border-radius: 16px; background: rgba(232,184,92,.07); color: var(--gw-gold); font-size: 1.3rem; }
.giveaways-empty-panel .giveaways-section-kicker { justify-content: center; }
.giveaways-empty-panel h3 { margin: 8px 0; color: #eeeae2; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.giveaways-empty-panel p { max-width: 520px; margin: 0 0 20px; color: #99958d; font-size: .84rem; line-height: 1.75; }
.giveaways-empty-panel .btn { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border-radius: 8px; font-size: .77rem; }
.giveaways-filter-empty { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 12px; padding: 34px; border: 1px dashed var(--gw-line); border-radius: 12px; color: #969188; text-align: center; }
.giveaways-filter-empty[hidden] { display: none !important; }
.giveaways-filter-empty > i { margin-bottom: 4px; color: var(--gw-gold); font-size: 1.3rem; }
.giveaways-filter-empty strong { color: #d9d3c7; font-size: .88rem; }
.giveaways-filter-empty span { font-size: .78rem; }
.giveaways-page-footnote { display: flex; align-items: flex-start; gap: 10px; margin-top: 21px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.055); border-radius: 10px; color: #77746d; background: rgba(255,255,255,.015); font-size: .72rem; line-height: 1.65; }
.giveaways-page-footnote > i { margin-top: 3px; color: #a48a56; }
.giveaways-page--premium .giveaway-alert { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding: 13px 15px; border-radius: 10px; font-size: .82rem; }
.giveaways-page--premium .giveaway-alert > i { margin-top: 3px; }
.giveaways-admin-page .admin-section { padding: 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,.01)); }
.giveaways-admin-page .admin-section > h2 { margin: 0 0 15px; font-size: 1.12rem; letter-spacing: -.02em; }
.giveaway-admin-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 0 21px; }
.giveaway-admin-guide-step { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid rgba(232,184,92,.13); border-radius: 9px; background: rgba(232,184,92,.035); }
.giveaway-admin-guide-step > b { display: flex; flex: 0 0 25px; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 7px; background: rgba(232,184,92,.12); color: #e8bd68; font-size: .72rem; }
.giveaway-admin-guide-step > span { color: var(--text-muted); font-size: .74rem; line-height: 1.5; }
.giveaway-admin-guide-step strong { display: block; margin-bottom: 2px; color: var(--text); font-size: .77rem; }
@media (max-width: 980px) {
    .giveaways-page--premium .giveaways-hero { grid-template-columns: minmax(0,1.05fr) minmax(220px,.8fr); padding-right: 26px; padding-left: 26px; }
    .giveaways-hero-visual { transform: scale(.9); }
    .giveaways-grid--premium { gap: 13px; }
    .giveaway-card-content { padding: 15px; }
}
@media (max-width: 760px) {
    .giveaways-page--premium { margin-top: 13px; padding: 0 13px 35px; }
    .giveaways-page--premium .giveaways-hero { grid-template-columns: minmax(0,1fr); gap: 0; padding: 25px 21px 0; border-radius: 17px; }
    .giveaways-hero-copy { padding-bottom: 0; }
    .giveaways-page--premium .giveaways-hero h1 { max-width: 480px; margin-top: 13px; font-size: clamp(2.25rem,9vw,3.2rem); }
    .giveaways-page--premium .giveaways-hero-copy > p { font-size: .85rem; }
    .giveaways-hero-actions { gap: 12px; margin-top: 19px; }
    .giveaways-hero-visual { min-height: 220px; max-height: 230px; margin-top: -1px; transform: none; }
    .giveaways-hero-emblem { width: 116px; height: 116px; border-radius: 33px; }
    .giveaways-hero-emblem > i { font-size: 3.5rem; }
    .giveaways-hero-orbit--outer { width: 220px; height: 152px; }
    .giveaways-hero-orbit--inner { width: 155px; height: 210px; }
    .giveaways-float-card--top { top: 19px; right: 0; font-size: .54rem; }
    .giveaways-float-card--bottom { bottom: 23px; left: -4px; }
    .giveaways-hero-index { right: 0; bottom: 0; }
    .giveaways-hero-stats { margin-top: 0; }
    .giveaways-hero-stat { gap: 8px; padding: 14px 8px 15px 0; }
    .giveaways-hero-stat + .giveaways-hero-stat { padding-left: 9px; }
    .giveaways-stat-icon { width: 29px; height: 29px; flex-basis: 29px; border-radius: 8px; font-size: .7rem; }
    .giveaways-hero-stat strong { font-size: 1rem; }
    .giveaways-hero-stat small { font-size: .61rem; }
    .giveaways-catalog { margin-top: 29px; }
    .giveaways-catalog-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .giveaways-filters { width: 100%; box-sizing: border-box; }
    .giveaways-filter { flex: 1; padding: 0 8px; }
    .giveaways-grid--premium { grid-template-columns: minmax(0,1fr); gap: 13px; }
    .giveaway-card-cover { min-height: 133px; }
    .giveaway-card-content { padding: 17px; }
    .giveaway-admin-guide { grid-template-columns: minmax(0,1fr); }
    .giveaways-admin-page .admin-section { padding: 16px; }
}
@media (max-width: 420px) {
    .giveaways-page--premium .giveaways-hero { padding-right: 16px; padding-left: 16px; }
    .giveaways-page--premium .giveaways-hero h1 { font-size: 2.18rem; }
    .giveaways-hero-note { width: 100%; }
    .giveaways-hero-stat { align-items: flex-start; flex-direction: column; }
    .giveaways-hero-stat + .giveaways-hero-stat { padding-left: 8px; }
    .giveaway-card-cover-top { align-items: flex-start; }
    .giveaway-card-id { padding-top: 4px; font-size: .54rem; }
    .giveaways-grid--premium .giveaway-place-prize { gap: 7px; padding: 9px 7px; }
    .giveaways-grid--premium .giveaway-place-number { flex-basis: 64px; font-size: .62rem; }
    .giveaways-grid--premium .giveaway-place-prize .giveaway-prize-icon { flex-basis: 28px; width: 28px; height: 28px; }
    .giveaways-grid--premium .giveaway-place-prize-info strong { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
    .giveaways-page--premium *, .giveaways-page--premium *::before, .giveaways-page--premium *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* NB PROJECT giveaways — restrained monochrome theme */
.giveaways-page--premium {
    --gw-gold: #c9c9c9;
    --gw-gold-bright: #ffffff;
    --gw-gold-soft: rgba(255,255,255,.075);
    --gw-line: rgba(255,255,255,.1);
    --gw-panel: #0d0d0e;
    --gw-panel-raised: #151516;
}
.giveaways-page--premium .giveaways-hero {
    border-color: rgba(255,255,255,.12);
    background: radial-gradient(ellipse at 84% 42%,rgba(255,255,255,.055),transparent 42%),
                radial-gradient(ellipse at 12% 4%,rgba(255,255,255,.035),transparent 36%),
                linear-gradient(125deg,#101011 0%,#090909 60%,#111112 100%);
}
.giveaways-page--premium .giveaways-eyebrow,
.giveaways-page--premium .giveaways-section-kicker { color: #bdbdbd; }
.giveaways-page--premium .giveaways-eyebrow-dot { background: #d9d9d9; box-shadow: 0 0 11px rgba(255,255,255,.22); }
.giveaways-page--premium .giveaways-hero h1 span {
    color: #fff;
    background: linear-gradient(100deg,#fff 0%,#bcbcbc 72%,#f4f4f4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.giveaways-page--premium .giveaways-hero-cta {
    border-color: rgba(255,255,255,.24);
    background: linear-gradient(135deg,#f4f4f4,#c9c9c9);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    color: #111;
}
.giveaways-page--premium .giveaways-hero-cta:hover { box-shadow: 0 12px 28px rgba(0,0,0,.4); }
.giveaways-page--premium .giveaways-hero-note i { color: #c9c9c9; }
.giveaways-page--premium .giveaways-hero-glow { background: rgba(255,255,255,.065); }
.giveaways-page--premium .giveaways-hero-orbit { border-color: rgba(255,255,255,.13); }
.giveaways-page--premium .giveaways-hero-emblem {
    border-color: rgba(255,255,255,.25);
    background: linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.015));
    box-shadow: 0 0 0 10px rgba(255,255,255,.015),0 25px 75px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.1);
}
.giveaways-page--premium .giveaways-hero-emblem::before { border-color: rgba(255,255,255,.12); }
.giveaways-page--premium .giveaways-hero-emblem > i { color: #f0f0f0; filter: drop-shadow(0 8px 19px rgba(255,255,255,.08)); }
.giveaways-page--premium .giveaways-hero-emblem-spark,
.giveaways-page--premium .giveaways-hero-emblem-spark--two { color: #a9a9a9; }
.giveaways-page--premium .giveaways-float-card--bottom > i { background: rgba(255,255,255,.07); color: #e5e5e5; }
.giveaways-page--premium .giveaways-hero-index span { color: #b8b8b8; }
.giveaways-page--premium .giveaways-stat-icon { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.045); color: #ddd; }
.giveaways-page--premium .giveaways-filter.is-active { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.09); color: #fff; }
.giveaways-page--premium .giveaway-card--premium:hover { border-color: rgba(255,255,255,.2); }
.giveaways-page--premium .giveaway-card-cover,
.giveaways-page--premium .giveaway-card-cover--upcoming,
.giveaways-page--premium .giveaway-card-cover--drawing,
.giveaways-page--premium .giveaway-card-cover--completed {
    background: radial-gradient(ellipse at 78% 55%,rgba(255,255,255,.055),transparent 42%),linear-gradient(115deg,#171718,#0c0c0d 68%,#131314);
}
.giveaways-page--premium .giveaway-status,
.giveaways-page--premium .giveaway-status--upcoming,
.giveaways-page--premium .giveaway-status--drawing,
.giveaways-page--premium .giveaway-status--completed {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.055);
    color: #d0d0d0;
}
.giveaways-page--premium .giveaway-cover-symbol { border-color: rgba(255,255,255,.19); background: linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.015)); box-shadow: 0 0 0 8px rgba(255,255,255,.015),0 13px 36px rgba(0,0,0,.28); }
.giveaways-page--premium .giveaway-cover-symbol > i { color: #ededed; filter: drop-shadow(0 5px 13px rgba(255,255,255,.08)); }
.giveaways-page--premium .giveaway-cover-symbol-halo { border-color: rgba(255,255,255,.09); }
.giveaways-page--premium .giveaway-cover-symbol-star,
.giveaways-page--premium .giveaway-cover-symbol-star--two { color: #b8b8b8; }
.giveaways-page--premium .giveaway-card-cover-bottom i { color: #a9a9a9; }
.giveaways-page--premium .giveaway-prizes-heading > span:first-child i { color: #cfcfcf; }
.giveaways-page--premium .giveaway-place-prize:hover { border-color: rgba(255,255,255,.16); }
.giveaways-page--premium .giveaway-place-prize--rank-1 { border-color: rgba(255,255,255,.18); background: linear-gradient(90deg,rgba(255,255,255,.055),rgba(255,255,255,.015)); }
.giveaways-page--premium .giveaway-place-prize--rank-1 .giveaway-place-number,
.giveaways-page--premium .giveaway-place-prize--rank-1 .giveaway-place-number i { color: #fff; }
.giveaways-page--premium .giveaway-place-prize--rank-2 .giveaway-place-number,
.giveaways-page--premium .giveaway-place-prize--rank-2 .giveaway-place-number i { color: #c4c4c4; }
.giveaways-page--premium .giveaway-place-prize--rank-3 .giveaway-place-number,
.giveaways-page--premium .giveaway-place-prize--rank-3 .giveaway-place-number i { color: #a6a6a6; }
.giveaways-page--premium .giveaway-place-prize .giveaway-prize-icon--privilege,
.giveaways-page--premium .giveaway-place-prize .giveaway-prize-icon--balance,
.giveaways-page--premium .giveaway-place-prize .giveaway-prize-icon--text { background: rgba(255,255,255,.06); color: #d6d6d6; }
.giveaways-page--premium .giveaway-card-detail > span i { color: #aaa; }
.giveaways-page--premium .giveaway-join-form input:focus,
.giveaways-page--premium .giveaway-join-form select:focus { border-color: rgba(255,255,255,.35); box-shadow: 0 0 0 3px rgba(255,255,255,.045); }
.giveaways-page--premium .giveaway-join-form .btn,
.giveaways-page--premium .giveaway-login-note--premium .btn {
    border-color: rgba(255,255,255,.2);
    background: linear-gradient(135deg,#e8e8e8,#bcbcbc);
    color: #101010;
}
.giveaways-page--premium .giveaway-login-note--premium > span i { color: #cfcfcf; }
.giveaways-page--premium .giveaway-entry-state--premium strong i,
.giveaways-page--premium .giveaway-winners--premium h4 i,
.giveaways-page--premium .giveaway-filter-empty > i { color: #cfcfcf; }
.giveaways-page--premium .giveaway-winner-row b { color: #eee; }
.giveaways-page--premium .giveaways-empty-panel {
    background: radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.035),transparent 54%),rgba(255,255,255,.012);
}
.giveaways-page--premium .giveaways-empty-icon { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.045); color: #dedede; }
.giveaways-page--premium .giveaways-filter-empty > i { color: #cfcfcf; }
.giveaways-admin-page .giveaway-admin-guide-step { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.025); }
.giveaways-admin-page .giveaway-admin-guide-step > b { background: rgba(255,255,255,.09); color: #e6e6e6; }

/* Giveaway detail view: timer, real participant list and standard profile links. */
.giveaway-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: .86rem;
    font-weight: 700;
    transition: color .18s ease;
}
.giveaway-detail-back:hover { color: var(--accent); }
.giveaway-detail-heading { margin: 12px 0 25px; }
.giveaway-detail-heading .giveaways-section-kicker { margin-bottom: 9px; }
.giveaway-detail-heading h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; overflow-wrap: anywhere; }
.giveaway-detail-heading p { margin: 10px 0 0; color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
.giveaways-grid--detail { grid-template-columns: minmax(0, 1fr) !important; }
.giveaways-grid--detail .giveaway-card { width: 100%; }
.giveaways-grid--detail .giveaway-card-cover { min-height: 190px; }
.giveaway-open-detail {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 17px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: .8rem;
    font-weight: 700;
    transition: border-color .18s ease, color .18s ease;
}
.giveaway-open-detail:hover { color: var(--accent); border-color: var(--accent); }
.giveaway-detail-stats {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(115px, .7fr));
    gap: 10px;
    margin: 18px 0 20px;
}
.giveaway-countdown-card,
.giveaway-detail-stat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}
.giveaway-countdown-card small,
.giveaway-detail-stat small { color: var(--text-muted); font-size: .75rem; }
.giveaway-countdown-card strong,
.giveaway-detail-stat strong {
    font-size: 1.28rem;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.giveaway-countdown-card strong { color: var(--accent); }
.giveaway-countdown-card span,
.giveaway-detail-stat span { color: var(--text-muted); font-size: .72rem; line-height: 1.45; }
.giveaway-countdown-card--ended strong { color: var(--text); font-size: 1rem; }
.giveaway-participants {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.018);
}
.giveaway-participants-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.giveaway-participants-heading .giveaways-section-kicker { margin-bottom: 7px; }
.giveaway-participants-heading h2 { margin: 0; font-size: 1.35rem; }
.giveaway-participants-heading p { margin: 7px 0 0; color: var(--text-muted); font-size: .82rem; line-height: 1.5; }
.giveaway-participants-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: .85rem;
    font-weight: 800;
}
.giveaway-participants-count i { color: var(--accent); }
.giveaway-participants-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.giveaway-participant {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    transition: border-color .18s ease, background-color .18s ease;
}
.giveaway-participant:hover { border-color: var(--accent); background: rgba(255,255,255,.025); }
.giveaway-participant-avatar {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    font-size: .9rem;
    font-weight: 800;
}
.giveaway-participant-main { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.giveaway-participant-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.giveaway-participant-main small { color: var(--text-muted); font-size: .7rem; }
.giveaway-participant-winner { display: inline-flex; flex-shrink: 0; align-items: center; gap: 5px; color: var(--accent); font-size: .73rem; font-weight: 800; }
.giveaway-participant-arrow { color: var(--text-muted); font-size: .75rem; }
.giveaway-participants-empty { padding: 24px 14px; border: 1px dashed var(--border); border-radius: 10px; color: var(--text-muted); text-align: center; font-size: .86rem; }
.giveaway-participants-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 17px; margin-top: 16px; border-top: 1px solid var(--border); font-size: .8rem; }
.giveaway-participants-pagination a { color: var(--accent); font-weight: 750; }
.giveaway-participants-pagination span { color: var(--text-muted); }
.giveaway-participants-pagination .disabled { opacity: .4; }
@media (max-width: 760px) {
    .giveaway-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .giveaway-countdown-card { grid-column: 1 / -1; }
    .giveaway-participants { padding: 16px; }
    .giveaway-participants-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .giveaway-detail-stats { gap: 7px; }
    .giveaway-countdown-card, .giveaway-detail-stat { padding: 12px; }
    .giveaway-countdown-card strong, .giveaway-detail-stat strong { font-size: 1.05rem; }
    .giveaway-participants-heading { align-items: flex-start; }
    .giveaway-participants-heading h2 { font-size: 1.15rem; }
    .giveaway-participants-count { padding: 8px 9px; }
    .giveaway-participants-pagination { gap: 10px; font-size: .74rem; }
}
