/**
 * WOTLK.SU — цветоваѝ ѝхема и ѝтили
 * Тёмнаѝ тема, акцент #3FC7EB (frost blue — Lich King)
 */

:root {
    --bg-primary: #1a1a1e;
    --bg-secondary: #282830;
    --bg-tertiary: #32323a;
    --accent: #3fc7eb;
    --accent-hover: #5dd4f5;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --layout-max: 1300px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 84px;
}

body:not(.home-page) {
    background-image: linear-gradient(rgba(26, 26, 30, 0.88), rgba(26, 26, 30, 0.88)), url('/public/images/bg/general-page-bg.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Header — плавающаѝ панель по референѝу */
.header-wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: 10px;
    z-index: 100;
    padding: 0 1rem;
}

.drawer-toggle {
    display: none;
}

.header-nav {
    position: relative;
    max-width: var(--layout-max);
    margin: 0 auto;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: visible;
}

.header-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1rem;
}

.header-mobile-btn {
    display: none;
    padding: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
}

.header-mobile-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.header-icon {
    width: 24px;
    height: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 4px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    height: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link--play {
    background: rgba(63, 199, 235, 0.15);
    color: var(--accent);
}

.nav-link--play:hover {
    background: rgba(63, 199, 235, 0.25);
    color: var(--accent-hover);
}

.nav-chevron {
    opacity: 0.6;
}

.nav-play-icon {
    margin-left: 0.25rem;
}

/* Выпадающее меню */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin-top: 2px;
    padding: 0.5rem;
    background: #1e1e24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 12px 24px -4px rgba(0, 0, 0, 0.5);
    list-style: none;
    z-index: 200;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-item--dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li {
    margin: 0;
}

.nav-dropdown li + li {
    margin-top: 2px;
}

.nav-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-dropdown a:hover {
    color: var(--text-primary);
    background: rgba(63, 199, 235, 0.12);
}

.nav-item--dropdown:hover .nav-link {
    color: var(--text-primary);
}

.nav-item--dropdown .nav-link.active:hover {
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
}

.header-lang-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0 1px;
}

.header-lang-link.active {
    color: var(--accent);
    font-weight: 600;
}

.header-lang-sep {
    color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .header-lang-switch {
        display: none;
    }
}

.verify-banner {
    position: fixed;
    z-index: 95;
    left: 0;
    right: 0;
    top: 86px; /* сразу под плавающим меню */
    padding: 0 1rem;
}

.verify-banner__inner {
    margin: 0 auto;
    max-width: var(--layout-max);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #fef9c3;
    font-size: 0.9rem;
}

.verify-banner__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.verify-banner__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.verify-banner__title {
    font-weight: 600;
}

.verify-banner__text {
    color: #e5e7eb;
    font-size: 0.85rem;
}

.verify-banner__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.verify-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.8);
    background: rgba(250, 204, 21, 0.15);
    color: #fef9c3;
    cursor: pointer;
}

.verify-banner__button:hover {
    background: rgba(250, 204, 21, 0.25);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(63, 199, 235, 0.12);
    border: 1px solid rgba(63, 199, 235, 0.5);
    font-size: 10px;
    color: #e0f2fe;
}

.verified-badge__icon {
    width: 11px;
    height: 11px;
}

.verified-badge__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.header-currency-wrap {
    position: relative;
}

.header-currency-wrap:hover .currency-tooltip {
    opacity: 1;
    visibility: visible;
}

.header-currency {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.currency-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 240px;
    padding: 1rem;
    background: #1e1e24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 12px 24px -4px rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.currency-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 10px;
}

.currency-tooltip-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.currency-tooltip-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.currency-tooltip-link {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: rgba(63, 199, 235, 0.2);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}

.currency-tooltip-link:hover {
    background: rgba(63, 199, 235, 0.3);
    color: var(--accent-hover);
}

.currency-icon--green {
    color: #34d399;
}

.currency-icon--accent {
    color: var(--accent);
}

.currency-icon-svg {
    width: 16px;
    height: 16px;
    display: block;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.user-menu-btn:hover {
    opacity: 0.9;
}

.user-chevron {
    opacity: 0.6;
    color: var(--text-primary);
}

.user-avatar--lg {
    width: 40px;
    height: 40px;
}

/* Drawer — мобильное меню */
.drawer-side {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.drawer-toggle:checked ~ .drawer-side {
    transform: translateX(0);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.drawer-toggle:checked ~ .drawer-side .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.drawer-panel {
    position: relative;
    width: 320px;
    height: 100%;
    background: #1e1e1e;
    padding: 1rem;
    overflow-y: auto;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.drawer-close {
    padding: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

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

.drawer-links {
    list-style: none;
}

.drawer-links li {
    margin-bottom: 0.25rem;
}

.drawer-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
}

.drawer-links a:hover,
.drawer-links a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.drawer-link-play {
    background: rgba(63, 199, 235, 0.15) !important;
    color: var(--accent) !important;
}

.drawer-user {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.drawer-user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.drawer-user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.drawer-user-links {
    margin-top: 1rem;
}

.drawer-user-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
}

.drawer-user-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.drawer-link-accent {
    color: #facc15 !important;
}

.drawer-link-accent:hover {
    color: #fde047 !important;
}

.drawer-logout {
    color: #f87171 !important;
}

.drawer-logout:hover {
    color: #fca5a5 !important;
}

@media (max-width: 1024px) {
    .header-mobile-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .header-left .logo {
        margin-left: 0;
    }
}

@media (min-width: 1025px) {
    .header-mobile-btn {
        display: none;
    }
}

.home-page {
    padding-top: 0;
}

.btn-play {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(180deg, var(--accent) 0%, #0787ac 100%);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 8px;
    border: none;
}

.btn-play:hover {
    background: linear-gradient(180deg, var(--accent-hover) 0%, #0a9bc4 100%);
}

.lang-selector {
    display: flex;
    gap: 0.25rem;
}

.lang-btn {
    padding: 0.35rem 0.6rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--accent);
}

.currency {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-primary);
    font-weight: 600;
}

.currency-icon {
    color: var(--accent);
}

.notifications-wrap {
    position: relative;
}

.notifications-btn {
    position: relative;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    width: 340px;
    background: #1e1e24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 12px 24px -4px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.notifications-wrap:hover .notifications-dropdown {
    display: block;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notifications-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
}

.mark-read {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.notifications-list {
    list-style: none;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    margin: 0.25rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.notification-item .dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 0.4rem;
}

.notification-item p {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.notification-item .time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.view-all {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    text-align: center;
}

.view-all:hover {
    color: var(--accent);
}

.user-menu-wrap {
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    margin-top: 0.875rem;
    padding: 0.25rem;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 12px 24px -4px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 12px;
}

.user-menu-wrap.is-open .user-dropdown {
    display: block;
}

.user-dropdown-header {
    display: flex;
    flex-direction: column;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.25rem;
}

.user-dropdown-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.user-dropdown-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.user-dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.user-dropdown-icon {
    opacity: 0.6;
    flex-shrink: 0;
}

.user-dropdown-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.25rem;
}

.user-dropdown-item--accent {
    color: #facc15;
}

.user-dropdown-item--accent:hover {
    color: #fde047;
}

.user-dropdown-item--logout {
    color: #f87171;
}

.user-dropdown-item--logout:hover {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    border: 2px solid var(--text-muted);
}

.user-avatar--letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.user-avatar--img {
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Main content — единая ширина с меню (магазин, новости и т.д.) */
.main-content {
    flex: 1;
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    min-width: 0;
}

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

/* Hero section with video — вне main, не ѝжимаетѝѝ */
.hero {
    position: relative;
    min-height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 30, 0.4) 0%,
        rgba(26, 26, 30, 0.6) 50%,
        rgba(26, 26, 30, 0.85) 100%
    );
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.hero-content-block {
    text-align: left;
    max-width: 640px;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

.hero-buttons-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hero-buttons-row {
        flex-direction: row;
        gap: 0.5rem;
    }
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

@media (min-width: 640px) {
    .hero-btn {
        width: auto;
    }
}

.hero-btn--primary {
    background: var(--accent);
    color: #0a0a0a;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.hero-btn--primary:hover {
    background: var(--accent-hover);
    transform: scale(0.98);
}

.hero-btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(63, 199, 235, 0.5);
}

.hero-btn--outline:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: var(--accent);
    color: #0a0a0a;
    border-color: transparent;
    transform: scale(0.98);
}

.hero-btn--icon svg {
    flex-shrink: 0;
}

.btn-play--hero {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
}

/* Hero — блок новоѝтей */
.hero-news {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem;
}

.hero-news-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin-bottom: 2rem;
}

.hero-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hero-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hero-news-card {
    display: block;
    background: rgba(39, 39, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    text-decoration: none;
}

.hero-news-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-news-card:hover .hero-news-card-img img {
    transform: scale(1.1);
}

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

.hero-news-card-img {
    position: relative;
    width: 100%;
    height: 192px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.hero-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-news-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.hero-news-card-body {
    padding: 1rem;
}

.hero-news-card-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.hero-news-card-date svg {
    color: var(--accent);
    flex-shrink: 0;
}

.hero-news-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

/* Разделение ѝекций — заметнаѝ линиѝ ѝ акцентом */
.content-section {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section .container {
    max-width: var(--layout-max);
    margin: 0 auto;
}

.section-divider {
    height: 2px;
    margin: 0;
    border: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(63, 199, 235, 0.25) 15%,
        rgba(63, 199, 235, 0.4) 50%,
        rgba(63, 199, 235, 0.25) 85%,
        transparent 100%
    );
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.page-content {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 100%;
}

/* --- Vote page --- */
.vote-page {
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.vote-box {
    background: rgba(33, 33, 33, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    margin: 3rem 0;
}

.vote-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.vote-title-wrap h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vote-title-wrap h1 .vote-title-icon {
    width: 2rem;
    height: 2rem;
    color: #eab308;
    flex-shrink: 0;
}

.vote-title-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.vote-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vote-btn-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.vote-btn-top--primary {
    background: rgba(16, 185, 129, 0.8);
    color: #fff;
}

.vote-btn-top--primary:hover {
    background: rgb(16, 185, 129);
}

.vote-btn-top--secondary {
    background: rgba(50, 50, 50, 0.8);
    color: #fff;
}

.vote-btn-top--secondary:hover {
    background: #393939;
}

.vote-btn-top svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.vote-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .vote-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vote-card {
    background: rgba(39, 39, 39, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
}

@media (min-width: 768px) {
    .vote-card {
        padding: 1rem;
    }
}

.vote-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.vote-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.vote-card-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: #86efac;
    font-weight: 500;
}

.vote-card-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #4ade80;
    animation: vote-pulse 1.5s ease-in-out infinite;
}

@keyframes vote-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.vote-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0.75rem;
}

.vote-card-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .vote-card-body {
        grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
    }
}

.vote-card-logo {
    display: flex;
    justify-content: flex-start;
}

.vote-card-logo img {
    max-width: 200px;
    max-height: 64px;
    width: auto;
    height: 64px;
    object-fit: contain;
}

.vote-card-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: rgba(26, 26, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-card-logo-placeholder svg {
    width: 2rem;
    height: 2rem;
    color: rgba(234, 179, 8, 0.3);
}

.vote-card-reward,
.vote-card-cooldown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vote-card-reward-icon,
.vote-card-cooldown-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .vote-card-reward-icon,
    .vote-card-cooldown-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.vote-card-cooldown-icon svg {
    color: #60a5fa;
}

.vote-card-reward-label,
.vote-card-cooldown-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.vote-card-reward-value,
.vote-card-cooldown-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .vote-card-reward-value,
    .vote-card-cooldown-value {
        font-size: 1rem;
    }
}

.vote-card-action {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .vote-card-action {
        justify-content: flex-end;
    }
}

.vote-card .vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: 4px;
    background: #10b981;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s, transform 0.1s;
}

.vote-card .vote-btn:hover {
    background: #059669;
}

.vote-card .vote-btn:active {
    transform: scale(0.98);
}

.vote-card .vote-btn svg {
    width: 1rem;
    height: 1rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.news-list--cards {
    gap: 3rem;
}

.news-card {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.news-card--horizontal {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .news-card--horizontal {
        flex-direction: row;
    }
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 256px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .news-card-image {
        width: 256px;
        min-width: 256px;
        max-width: 256px;
        height: 256px;
        aspect-ratio: 1;
    }
}

.news-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.news-card-image-link:hover img {
    transform: scale(1.1);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 0;
    min-width: 0;
    padding: 1.5rem;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.news-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.news-card-meta-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.news-card-meta-item--link {
    color: inherit;
    text-decoration: none;
}

.news-card-meta-item--link:hover {
    color: var(--accent);
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0.75rem 0 0.75rem;
}

.news-card-title a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.news-card-title a:hover {
    color: var(--text-primary);
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-readmore {
    display: inline-block;
    font-weight: 500;
    color: #facc15;
    text-decoration: none;
    transition: color 0.3s;
    margin-top: auto;
}

.news-card-readmore:hover {
    color: #fde047;
}

.hero-news-empty {
    grid-column: 1 / -1;
    color: var(--text-muted);
    padding: 2rem;
}

/* Dashboard / Страница профилѝ */
.main-content--dashboard {
    max-width: none;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.main-content--article {
    max-width: none;
    padding: 1rem 1rem 2.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.article-page {
    width: 100%;
    max-width: var(--layout-max);
}

.article-container {
    background: rgba(33, 33, 33, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .article-container {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .article-container {
        padding: 2rem;
    }
}

.article-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.article-image-wrap {
    position: relative;
    width: 100%;
    height: 256px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .article-image-wrap {
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .article-image-wrap {
        height: 384px;
    }
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 1rem;
}

@media (min-width: 640px) {
    .article-body {
        padding: 1.5rem;
    }
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .article-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.article-meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.article-comments-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(63, 199, 235, 0.1);
    color: var(--accent);
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.article-comments-btn:hover {
    background: rgba(63, 199, 235, 0.2);
    color: var(--accent-hover);
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .article-title {
        font-size: 1.5rem;
    }
}

.article-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.article-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-content h2,
.article-content-h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.25rem;
}

.article-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.article-author-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-top: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

@media (min-width: 640px) {
    .article-author-block {
        padding: 1.5rem;
        align-items: center;
    }
}

.article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .article-author-avatar {
        width: 56px;
        height: 56px;
    }
}

.article-author-info {
    flex: 1;
}

.article-author-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.article-author-meta svg {
    color: var(--text-primary);
}

.article-author-name {
    color: var(--accent);
    font-weight: 600;
}

.article-author-role {
    color: #f87171;
    font-weight: 500;
}

.article-author-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.article-author-date svg {
    color: var(--text-primary);
}

.article-comments-section {
    margin-top: 1.25rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

@media (min-width: 640px) {
    .article-comments-section {
        padding: 1.5rem;
    }
}

.article-comments-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.article-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

@media (min-width: 640px) {
    .article-comment {
        padding: 1rem;
    }
}

.article-comment-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .article-comment-avatar {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
}

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

.article-comment-avatar-fallback {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
}

.article-comment-error {
    color: #f87171;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.article-comment-success {
    color: #2ecc71;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.article-comments-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem;
}

.article-comment-login {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-comment-login a {
    color: var(--accent);
}

.article-comment-body {
    flex: 1;
    min-width: 0;
}

.article-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.article-comment-author {
    color: var(--accent);
    font-weight: 600;
}

.article-comment-date {
    color: var(--text-muted);
}

.article-comment-text {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.article-comment-form {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.article-comment-form-body {
    flex: 1;
    min-width: 0;
}

.article-comment-form-author {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.article-comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(33, 33, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: none;
    font-family: inherit;
}

.article-comment-form textarea:focus {
    outline: none;
    border-color: rgba(63, 199, 235, 0.5);
}

.article-comment-form textarea::placeholder {
    color: var(--text-muted);
}

.article-comment-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    .article-comment-form-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.article-comment-form-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-comment-submit {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.article-comment-submit:hover {
    background: var(--accent-hover);
}

.dashboard-page {
    width: 100%;
    max-width: var(--layout-max);
}

.dashboard-container {
    background: rgba(33, 33, 33, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    margin: 3rem 0;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.dashboard-card {
    background: rgba(39, 39, 39, 0.5);
    border-radius: 4px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-avatar-wrap {
    position: relative;
    cursor: pointer;
}

.profile-avatar-wrap:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar-wrap:hover .profile-avatar-img {
    border-color: rgba(63, 199, 235, 0.5);
}

.profile-avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.2s;
}

.profile-avatar-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
}

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

.profile-avatar-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.profile-avatar-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar-error {
    color: var(--red, #e74c3c);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.profile-avatar-success {
    color: var(--green, #2ecc71);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-avatar-overlay svg {
    color: white;
    width: 24px;
    height: 24px;
}

.profile-avatar-btn {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
}

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

.profile-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-field-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.profile-field-edit {
    padding: 0.25rem;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.profile-field-edit:hover {
    color: var(--text-primary);
    background: rgba(63, 199, 235, 0.2);
}

.profile-field-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 300;
}

.profile-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-actions-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.profile-actions-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-dashboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 36px;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid transparent;
}

.btn-dashboard--teal {
    background: rgba(20, 184, 166, 0.2);
    color: #2dd4bf;
    border-color: rgba(20, 184, 166, 0.3);
}

.btn-dashboard--teal:hover {
    background: rgba(20, 184, 166, 0.3);
    color: #5eead4;
}

.btn-dashboard--red {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-dashboard--red:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.btn-dashboard--green {
    background: #059669;
    color: white;
}

.btn-dashboard--green:hover {
    background: #047857;
}

.dashboard-crystals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.crystal-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

@media (min-width: 640px) {
    .crystal-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.crystal-card--green {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.crystal-card--accent {
    background: rgba(63, 199, 235, 0.2);
    border: 1px solid rgba(63, 199, 235, 0.2);
}

.crystal-card--referral {
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.crystal-card--referral .crystal-title {
    color: #bfdbfe;
}

/* Referral page */
.dashboard-referral-conditions {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.dashboard-referral-conditions li + li {
    margin-top: 4px;
}

.crystal-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.crystal-icon--green {
    color: #34d399;
}

.crystal-icon--accent {
    color: var(--accent);
}

.crystal-icon-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.crystal-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.crystal-card--green .crystal-title {
    color: #6ee7b7;
}

.crystal-card--accent .crystal-title {
    color: #7dd3fc;
}

.crystal-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-crystal {
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    background: #10b981;
    color: black;
    border: none;
}

.btn-crystal:hover {
    background: #34d399;
}

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

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

.dashboard-tools {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-tools-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.dashboard-block-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-referral-counter {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(63, 199, 235, 0.12);
    border: 1px solid rgba(63, 199, 235, 0.4);
    color: #e0f2fe;
}

.dashboard-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .dashboard-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tool-card {
    position: relative;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 140px;
}

.tool-card:hover {
    transform: scale(1.02);
}

.tool-card-bg {
    position: absolute;
    inset: 0;
}

.tool-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.tool-card:hover .tool-card-img {
    opacity: 0.4;
}

.tool-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    transition: background 0.3s;
}

.tool-card--green .tool-card-bg::after {
    background: linear-gradient(to bottom right, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
}

.tool-card--green:hover .tool-card-bg::after {
    background: linear-gradient(to bottom right, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
}

.tool-card--purple .tool-card-bg::after {
    background: linear-gradient(to bottom right, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.05));
}

.tool-card--purple:hover .tool-card-bg::after {
    background: linear-gradient(to bottom right, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.1));
}

.tool-card--red .tool-card-bg::after {
    background: linear-gradient(to bottom right, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
}

.tool-card--red:hover .tool-card-bg::after {
    background: linear-gradient(to bottom right, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
}

.tool-card-body {
    position: relative;
    z-index: 10;
}

.tool-card--red {
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tool-card--red:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

.tool-card--green {
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tool-card--green:hover {
    border-color: rgba(34, 197, 94, 0.4);
}

.tool-card--purple {
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.tool-card--purple:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.tool-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.tool-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dashboard-block {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-block-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .dashboard-block-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.dashboard-block-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dashboard-block-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.referrals-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.referrals-table th,
.referrals-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.referrals-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 500;
}

.referrals-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.referrals-name {
    font-weight: 500;
    color: var(--text-primary);
}

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

.referrals-status {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.referrals-status--success {
    border-color: rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.18);
}

.referrals-status--ready {
    border-color: rgba(56, 189, 248, 0.7);
    color: #e0f2fe;
    background: rgba(37, 99, 235, 0.18);
}

.referrals-status--pending {
    border-color: rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
    background: rgba(31, 41, 55, 0.7);
}

.referrals-actions {
    display: flex;
    justify-content: flex-end;
}

/* Страница наѝтроек */
/* Страница авторизации */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 84px - 4rem);
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 900px;
    background: rgba(33, 33, 33, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .auth-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-form-wrap {
    padding: 2rem;
}

@media (min-width: 640px) {
    .auth-form-wrap {
        padding: 2.5rem;
    }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.auth-error {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #f87171;
    font-size: 0.9rem;
}

.auth-success {
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #4ade80;
    font-size: 0.9rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}

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

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-field-footer {
    margin-top: 0.25rem;
    text-align: right;
}

.auth-link {
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
}

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

.auth-field--checkbox {
    gap: 0.25rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

.auth-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 1.5rem;
}

.auth-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-submit:hover {
    background: var(--accent-hover);
}

.auth-footer {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* ============================================
   FORUM STYLES — Forum Page Components
   ============================================ */
/* === FORUM LAYOUT SHELL === */
.forum-shell {
    width: 100%;
}

.forum-container {
    max-width: var(--layout-max);
    width: 100%;
    margin: 0 auto;
}

.forum-header {
    margin-bottom: 2rem;
}

.forum-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 640px) {
    .forum-title {
        font-size: 2.5rem;
    }
}

/* Forum Categories Section */
.forum-section {
    margin-bottom: 2.5rem;
}

.forum-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .forum-section-title {
        font-size: 1.25rem;
    }
}

/* Forum Category Card */
.forum-category {
    background: rgba(33, 33, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .forum-category {
        padding: 1.25rem;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.forum-category:hover {
    background: rgba(33, 33, 33, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.forum-category-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

@media (min-width: 640px) {
    .forum-category-header {
        flex-direction: row;
        align-items: flex-start;
    }
}

.forum-category-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .forum-category-right {
        flex-shrink: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        padding-left: 1.5rem;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

.forum-category-icon {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.6;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

@media (min-width: 640px) {
    .forum-category-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

.forum-category-content {
    flex: 1;
    min-width: 0;
}

.forum-category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

@media (min-width: 640px) {
    .forum-category-name {
        font-size: 1.125rem;
    }
}

.forum-category-name:hover {
    color: var(--accent);
}

.forum-category-desc {
    font-size: 0.875rem;
    color: rgba(204, 204, 204, 0.8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .forum-category-desc {
        font-size: 0.9375rem;
    }
}

.forum-category-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8125rem;
    color: rgba(204, 204, 204, 0.8);
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .forum-category-stats {
        gap: 2rem;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        flex-direction: row;
        align-items: center;
        text-align: right;
        white-space: nowrap;
        justify-content: flex-end;
    }
}

.forum-stat-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .forum-stat-item {
        justify-content: flex-end;
    }
}

.forum-stat-label {
    display: none;
    font-size: 0.75rem;
    opacity: 0.8;
}

@media (min-width: 640px) {
    .forum-stat-label {
        display: inline;
    }
}

.forum-stat-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.forum-last-post {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .forum-last-post {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        padding-left: 2rem;
        text-align: right;
        flex-shrink: 0;
    }
}

.forum-last-post-title {
    font-size: 0.75rem;
    color: rgba(204, 204, 204, 0.6);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: none;
}

@media (min-width: 640px) {
    .forum-last-post-title {
        display: block;
    }
}

.forum-last-post-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .forum-last-post-link {
        font-size: 0.8125rem;
        white-space: normal;
        max-width: 200px;
    }
}

.forum-last-post-link:hover {
    color: var(--accent);
}

.forum-last-post-time {
    font-size: 0.75rem;
    color: rgba(204, 204, 204, 0.5);
    margin-top: 0.25rem;
    display: none;
}

@media (min-width: 640px) {
    .forum-last-post-time {
        display: block;
    }
}

/* Forum Statistics Section */
.forum-stats {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.forum-stats-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .forum-stats-title {
        font-size: 1.25rem;
    }
}

.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .forum-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .forum-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .forum-stats-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
}

.forum-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .forum-stat-card {
        padding: 1.25rem;
    }
}

.forum-stat-card-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: rgba(204, 204, 204, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .forum-stat-card-label {
        font-size: 0.875rem;
    }
}

.forum-stat-card-icon {
    width: 1rem;
    height: 1rem;
    opacity: 0.6;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .forum-stat-card-icon {
        width: 1.125rem;
        height: 1.125rem;
    }
}

.forum-stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (min-width: 640px) {
    .forum-stat-card-value {
        font-size: 1.75rem;
    }
}

.forum-stat-card-content {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .forum-stat-card-content {
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forum-title-animated {
    animation: fadeInDown 0.6s ease-out;
}

/* ============================================
   FORUM CATEGORY PAGE —Проѝмотр топиков в категории
   ============================================ */

.forum-category-page {
    max-width: var(--layout-max);
    margin: 0 auto;
}

.forum-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(204, 204, 204, 0.8);
    margin-bottom: 1.5rem;
    transition: color 0.2s;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .forum-back-link {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }
}

.forum-back-link:hover {
    color: var(--text-primary);
}

.forum-back-link svg {
    width: 1rem;
    height: 1rem;
}

@media (min-width: 640px) {
    .forum-back-link svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.forum-category-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .forum-category-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        margin-bottom: 1.5rem;
    }
}

.forum-category-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: capitalize;
}

@media (min-width: 640px) {
    .forum-category-page-title {
        font-size: 2.25rem;
    }
}

.forum-topic-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.forum-topic-title-row .forum-category-page-title {
    margin: 0;
}

.forum-mod-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.forum-mod-btn {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.forum-mod-btn--edit {
    background: rgba(63, 199, 235, 0.2);
    color: var(--accent);
}

.forum-mod-btn--edit:hover {
    background: rgba(63, 199, 235, 0.3);
}

.forum-mod-btn--delete {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: none;
    cursor: pointer;
}

.forum-mod-btn--delete:hover {
    background: rgba(248, 113, 113, 0.25);
}

.forum-mod-form {
    display: inline;
}

.forum-post-mod-actions {
    margin-left: auto;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.forum-post-mod-link {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
}

.forum-post-mod-link:hover {
    text-decoration: underline;
}

.forum-post-mod-link--delete {
    color: #f87171;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.forum-post-mod-form {
    display: inline;
}

.forum-new-topic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: #0a0a0a;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(63, 199, 235, 0.6);
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .forum-new-topic-btn {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
}

.forum-new-topic-btn:hover {
    background: var(--accent-hover);
    border-color: rgba(63, 199, 235, 0.9);
    box-shadow: 0 10px 25px rgba(15, 118, 178, 0.35);
    transform: translateY(-1px);
}

.forum-new-topic-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Topics List */
.forum-topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.forum-no-topics {
    text-align: center;
    color: rgba(204, 204, 204, 0.6);
    padding: 2rem 1rem;
    font-size: 1rem;
}

/* Topic Card */
.forum-topic-card {
    background: rgba(33, 33, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.forum-topic-card-link {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    transition: background 0.2s;
}

.forum-topic-card-link:hover {
    background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 640px) {
    .forum-topic-card-link {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding: 1.25rem;
        gap: 1.5rem;
    }
}

.forum-topic-card:hover .forum-topic-card-link {
    background: rgba(255, 255, 255, 0.02);
}

.forum-topic-card-mod {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.forum-mod-link {
    font-size: 0.8125rem;
    color: var(--accent);
    text-decoration: none;
}

.forum-mod-link:hover {
    text-decoration: underline;
}

.forum-mod-link--delete {
    color: #f87171;
}

.forum-mod-form-inline {
    display: inline;
}

.forum-topic-left {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.forum-topic-avatar {
    flex-shrink: 0;
}

.forum-avatar-img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .forum-avatar-img {
        width: 3rem;
        height: 3rem;
    }
}

.forum-topic-content {
    flex: 1;
    min-width: 0;
}

.forum-topic-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    word-break: break-word;
}

@media (min-width: 640px) {
    .forum-topic-title {
        font-size: 1.125rem;
    }
}

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

.forum-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(204, 204, 204, 0.7);
}

@media (min-width: 640px) {
    .forum-topic-meta {
        gap: 1.5rem;
        font-size: 0.875rem;
    }
}

.forum-meta-author {
    color: var(--text-primary);
    font-weight: 500;
}

.forum-meta-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.forum-meta-time svg {
    width: 0.875rem;
    height: 0.875rem;
    opacity: 0.6;
}

/* Topic Right Stats */
.forum-topic-right {
    display: flex;
    gap: 2rem;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .forum-topic-right {
        gap: 1.5rem;
        flex-direction: row;
        align-items: center;
        border-top: none;
        padding-top: 0;
        text-align: right;
        flex-shrink: 0;
    }
}

.forum-topic-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
    color: rgba(204, 204, 204, 0.7);
}

@media (min-width: 640px) {
    .forum-topic-stats {
        gap: 1.5rem;
        padding-left: 1.5rem;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: column;
        align-items: flex-end;
    }
}

.forum-topic-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .forum-topic-stat {
        justify-content: flex-end;
    }
}

.forum-stat-icon {
    display: flex;
    width: 0.875rem;
    height: 0.875rem;
    opacity: 0.6;
}

.forum-stat-icon svg {
    width: 100%;
    height: 100%;
}

.forum-stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

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

@media (min-width: 640px) {
    .forum-stat-label {
        display: inline;
    }
}

.forum-topic-last-reply {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: rgba(204, 204, 204, 0.7);
}

@media (min-width: 640px) {
    .forum-topic-last-reply {
        font-size: 0.8125rem;
    }
}

.forum-last-reply-author {
    color: var(--text-primary);
    font-weight: 500;
}

.forum-last-reply-meta {
    display: none;
}

@media (min-width: 640px) {
    .forum-last-reply-meta {
        display: block;
    }
}

.forum-last-reply-time {
    color: rgba(204, 204, 204, 0.6);
}

.auth-footer .auth-link {
    font-weight: 500;
}

.auth-art-wrap {
    position: relative;
    min-height: 200px;
    background: linear-gradient(135deg, rgba(63, 199, 235, 0.1) 0%, rgba(26, 26, 30, 0.9) 100%);
}

@media (min-width: 1024px) {
    .auth-art-wrap {
        min-height: 400px;
    }
}

.auth-art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(33, 33, 33, 0.95) 0%, transparent 60%);
}

.auth-art-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.settings-page {
    max-width: 560px;
}

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-section {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.settings-section-title {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.05em;
}

.settings-block {
    padding: 1rem 1.5rem;
}

.settings-row {
    margin-bottom: 1rem;
}

.settings-row:last-child {
    margin-bottom: 0;
}

.settings-row--toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.settings-row--toggle .settings-label {
    margin-bottom: 0;
}

.settings-input,
.settings-select {
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
}

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

.settings-input::placeholder {
    color: var(--text-muted);
}

.settings-select {
    cursor: pointer;
}

.settings-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

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

.settings-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-tertiary);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.2s;
}

.settings-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: 0.2s;
}

.settings-toggle input:checked + .settings-toggle-slider {
    background: rgba(63, 199, 235, 0.2);
    border-color: var(--accent);
}

.settings-toggle input:checked + .settings-toggle-slider::before {
    transform: translateX(20px);
    background: var(--accent);
}

.settings-actions {
    margin-top: 1rem;
}

.btn-save {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(180deg, var(--accent) 0%, #0787ac 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-save:hover {
    background: linear-gradient(180deg, var(--accent-hover) 0%, #0a9bc4 100%);
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-secondary);
}

.footer-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-main {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.footer-brand {
    flex: 1;
    min-width: 280px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 420px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.social-link:hover {
    color: var(--accent);
    background: rgba(63, 199, 235, 0.15);
}

.footer-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-author-label {
    color: var(--text-muted);
}

.footer-author-name {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-author-name:hover {
    color: var(--accent-hover);
}

/* Модальное окно — плавное поѝвление */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.modal.is-open .modal-overlay {
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    transform: scale(0.92) translateY(30px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    transition-delay: 0.15s;
}

.modal.is-open .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content {
    background: #1e1e24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    padding: 0.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.modal-form {
    padding: 1.5rem;
}

.modal-field {
    margin-bottom: 1rem;
}

.modal-field:last-of-type {
    margin-bottom: 1.5rem;
}

.modal-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.modal-field input {
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

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

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ============================================
   FORUM TOPIC DETAIL PAGE  �������� ��������� ����
   ============================================ */

.forum-topic-main {
    padding: 1rem;
}

@media (min-width: 640px) {
    .forum-topic-main {
        padding: 1rem;
    }
}

@media (min-width: 1024px) {
    .forum-topic-main {
        padding: 2rem;
    }
}

.forum-topic-container {
    max-width: var(--layout-max);
    width: 100%;
    background: rgba(33, 33, 33, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
    padding: 1rem;
    margin: 1rem auto;
}

@media (min-width: 640px) {
    .forum-topic-container {
        padding: 1.5rem;
        margin: 2rem auto;
    }
}

@media (min-width: 1024px) {
    .forum-topic-container {
        padding: 2rem;
        margin: 3rem auto;
    }
}

/* Breadcrumb */
.forum-breadcrumb {
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .forum-breadcrumb {
        margin-bottom: 1.5rem;
    }
}

.forum-breadcrumb-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: rgba(204, 204, 204, 0.7);
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .forum-breadcrumb-items {
        gap: 0.5rem;
        font-size: 0.875rem;
    }
}

.forum-breadcrumb-link {
    color: rgba(204, 204, 204, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

@media (min-width: 768px) {
    .forum-breadcrumb-link {
        max-width: none;
    }
}

.forum-breadcrumb-link:hover {
    color: var(--text-primary);
}

.forum-breadcrumb-sep {
    color: rgba(204, 204, 204, 0.5);
}

.forum-breadcrumb-current {
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

@media (min-width: 768px) {
    .forum-breadcrumb-current {
        max-width: none;
    }
}

/* Posts Container */
.forum-posts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .forum-posts-container {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Post Card */
.forum-post-card {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

@media (min-width: 768px) {
    .forum-post-card {
        flex-direction: row;
    }
}

/* Post Author Sidebar */
.forum-post-author {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .forum-post-author {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .forum-post-author {
        width: 200px;
        flex-shrink: 0;
        flex-direction: column;
        align-items: center;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        gap: 0.5rem;
    }
}

.forum-post-avatar-wrapper {
    flex-shrink: 0;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .forum-post-avatar-wrapper {
        margin-bottom: 0.75rem;
    }
}

.forum-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

@media (min-width: 640px) {
    .forum-post-avatar {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 768px) {
    .forum-post-avatar {
        width: 80px;
        height: 80px;
    }
}

.forum-post-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: left;
    flex: 1;
}

@media (min-width: 768px) {
    .forum-post-author-name {
        text-align: center;
        font-size: 1rem;
        flex: none;
        width: 100%;
    }
}

.forum-post-role {
    display: flex;
    justify-content: flex-start;
}

.forum-post-role--above {
    justify-content: center;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .forum-post-role {
        justify-content: center;
        width: 100%;
    }
}

.forum-post-role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .forum-post-role-badge {
        padding: 0.375rem 0.75rem;
    }
}

.forum-role-administrator {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(248, 113, 113);
    border-color: rgba(239, 68, 68, 0.3);
}

.forum-role-moderator {
    background: rgba(168, 85, 247, 0.2);
    color: rgb(196, 181, 253);
    border-color: rgba(168, 85, 247, 0.3);
}

.forum-role-member {
    background: rgba(96, 165, 250, 0.2);
    color: rgb(147, 197, 253);
    border-color: rgba(96, 165, 250, 0.3);
}

.forum-post-author-stats {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    font-size: 0.75rem;
    color: rgba(204, 204, 204, 0.7);
}

@media (min-width: 768px) {
    .forum-post-author-stats {
        display: flex;
        gap: 0.75rem;
    }
}

.forum-post-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.forum-stat-icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    opacity: 0.6;
}

.forum-post-stat-label {
    display: none;
}

@media (min-width: 768px) {
    .forum-post-stat-label {
        display: inline;
    }
}

.forum-post-stat-value-short {
    display: inline;
}

@media (min-width: 640px) {
    .forum-post-stat-value-short {
        display: none;
    }
}

.forum-post-stat-value-full {
    display: none;
}

@media (min-width: 640px) {
    .forum-post-stat-value-full {
        display: inline;
    }
}

.forum-post-stat-highlight {
    color: var(--text-primary);
    font-weight: 600;
}

/* Post Content Area */
.forum-post-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .forum-post-content {
        padding: 1rem;
    }
}

/* Post Header */
.forum-post-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .forum-post-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
}

.forum-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(204, 204, 204, 0.7);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .forum-post-meta {
        gap: 0.75rem;
        font-size: 0.875rem;
    }
}

.forum-post-number {
    color: var(--text-primary);
    font-weight: 600;
}

.forum-post-meta-sep {
    color: rgba(204, 204, 204, 0.5);
}

.forum-post-date,
.forum-post-time {
    white-space: nowrap;
}

.forum-post-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .forum-post-actions {
        gap: 0.75rem;
    }
}

.forum-post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: rgba(204, 204, 204, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

@media (min-width: 640px) {
    .forum-post-action-btn {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

.forum-post-action-btn:hover:not(:disabled) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.forum-post-action-btn:disabled {
    cursor: default;
    opacity: 0.6;
}

.forum-post-action-liked {
    color: rgb(72, 187, 120);
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.forum-post-action-liked:disabled {
    opacity: 1;
}

.forum-post-action-disliked {
    color: rgb(248, 113, 113);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.forum-post-action-disliked:disabled {
    opacity: 1;
}

.forum-post-stat-votes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.forum-vote-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.forum-vote-icon {
    flex-shrink: 0;
}

.forum-vote-icon-up {
    color: rgb(72, 187, 120);
}

.forum-vote-icon-down {
    color: rgb(248, 113, 113);
}

.forum-vote-count {
    font-weight: 600;
    color: var(--text-secondary);
}

.forum-vote-form {
    display: inline-block;
}

.forum-vote-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.forum-post-actions--muted {
    margin-top: 0.5rem;
}

.forum-post-action-report:hover {
    color: rgb(248, 113, 113);
    background: rgba(239, 68, 68, 0.1);
}

.forum-action-icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    flex-shrink: 0;
}

.forum-action-label {
    display: none;
}

@media (min-width: 640px) {
    .forum-action-label {
        display: inline;
    }
}

/* Post Body Content */
.forum-post-body {
    flex: 1;
    color: rgba(204, 204, 204, 0.9);
    line-height: 1.6;
    word-wrap: break-word;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .forum-post-body {
        font-size: 0.95rem;
    }
}

.forum-post-body h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0 0.75rem;
}

.forum-post-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
}

.forum-post-body p {
    margin: 0.75rem 0;
}

.forum-post-body p:first-child {
    margin-top: 0;
}

.forum-post-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.forum-post-body ul,
.forum-post-body ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.forum-post-body li {
    margin: 0.375rem 0;
}

.forum-post-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.forum-post-body a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.forum-post-body a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Reply Form */
.forum-reply-form {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .forum-reply-form {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
}

.forum-reply-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

@media (min-width: 640px) {
    .forum-reply-title {
        font-size: 1.125rem;
    }
}

.forum-reply-editor {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: visible;
    background: #191b1f;
}

.forum-bbcode-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    background: #252830;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-bbcode-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.forum-bbcode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.forum-bbcode-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.25rem;
}

.forum-bbcode-color-wrap {
    position: relative;
}

.forum-bbcode-color-btn {
    text-decoration: underline;
}

.forum-bbcode-palette {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 2px;
    padding: 0.5rem;
    background: #1f2129;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 4px;
    width: 140px;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.forum-bbcode-color-wrap:hover .forum-bbcode-palette,
.forum-bbcode-palette.is-open {
    display: flex;
}

.forum-bbcode-palette button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7rem;
    color: transparent;
    background: var(--btn-bg, #555);
}

.forum-bbcode-palette button:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

.forum-reply-textarea {
    width: 100%;
    padding: 0.75rem;
    background: #191b1f;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 120px;
}

@media (min-width: 640px) {
    .forum-reply-textarea {
        padding: 1rem;
        font-size: 0.95rem;
        min-height: 150px;
    }
}

.forum-reply-textarea::placeholder {
    color: rgba(204, 204, 204, 0.5);
}

.forum-reply-textarea:focus {
    outline: none;
    background: #1f2129;
}

.forum-reply-actions {
    display: flex;
    justify-content: flex-end;
}

.forum-reply-submit-btn {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .forum-reply-submit-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

.forum-reply-submit-btn:hover {
    background: #2ab5d8;
}

.forum-reply-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   FORUM TOPIC POST CONTENT STYLING
   ============================================ */

/* BBCode code block */
.forum-code {
    display: block;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.forum-post-body .forum-code {
    white-space: pre-wrap;
}

.forum-post-body img.forum-img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

/* BBCode [color] — вложенные теги наследуют цвет */
.forum-post-body span[style*="color:"] strong,
.forum-post-body span[style*="color:"] b,
.forum-post-body span[style*="color:"] em,
.forum-post-body span[style*="color:"] i,
.forum-post-body span[style*="color:"] u {
    color: inherit;
}

/* Post body content styling */
.text-gray-300 {
    color: #d1d5db;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.text-gray-300 h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
}

.text-gray-300 h1:first-child {
    margin-top: 0;
}

.text-gray-300 h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1.5rem 0 0.875rem;
    line-height: 1.3;
}

.text-gray-300 h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1.25rem 0 0.75rem;
}

.text-gray-300 p {
    margin: 0.875rem 0;
    line-height: 1.6;
}

.text-gray-300 p:first-child {
    margin-top: 0;
}

.text-gray-300 strong,
.text-gray-300 b {
    font-weight: 600;
    color: #ffffff;
}

.text-gray-300 em,
.text-gray-300 i {
    font-style: italic;
}

.text-gray-300 u {
    text-decoration: underline;
}

.text-gray-300 ul {
    list-style: disc;
    padding-left: 2rem;
    margin: 0.875rem 0;
}

.text-gray-300 ol {
    list-style: decimal;
    padding-left: 2rem;
    margin: 0.875rem 0;
}

.text-gray-300 li {
    margin: 0.375rem 0;
    line-height: 1.6;
}

.text-gray-300 li ul,
.text-gray-300 li ol {
    margin: 0.375rem 0 0.375rem;
}

.text-gray-300 hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
    height: 0;
}

.text-gray-300 a {
    color: #3fc7eb;
    text-decoration: none;
    transition: opacity 0.2s;
}

.text-gray-300 a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.text-gray-300 blockquote {
    border-left: 4px solid #3fc7eb;
    padding-left: 1rem;
    margin: 0.875rem 0;
    color: rgba(209, 213, 219, 0.8);
    font-style: italic;
}

.text-gray-300 code {
    background: rgba(0, 0, 0, 0.3);
    color: #a8e6ff;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
}

.text-gray-300 pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0.875rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-gray-300 pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Emoji styling */
.text-gray-300 .emoji {
    font-size: 1.25em;
}

/* Quote styling */
.text-gray-300 > blockquote {
    background: rgba(63, 199, 235, 0.05);
    border-left-color: #3fc7eb;
    padding: 0.875rem 1rem;
    border-radius: 4px;
}

/* Inline code in text */
.text-gray-300 :not(pre) > code {
    color: #ffdab9;
}

/* === FORUM BLOCKS & CARDS === */

/* Post Card */
.bg-\[\#1a1a1e\] {
    background-color: #1a1a1e;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.hover\:border-white\/20:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.transition-colors {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Sidebar Styling */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-black\/40 {
    --tw-gradient-from: rgba(0, 0, 0, 0.4);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-black\/20 {
    --tw-gradient-to: rgba(0, 0, 0, 0.2);
}

.shrink-0 {
    flex-shrink: 0;
}

.sm\:w-56 {
    width: 14rem;
}

.border-b-0 {
    border-bottom: 0;
}

.sm\:border-b-0 {
    border-bottom: 0;
}

.sm\:border-r {
    border-right: 1px solid currentColor;
}

/* Image Styling */
img.rounded-lg {
    border-radius: 0.5rem;
}

.border-2 {
    border-width: 2px;
}

img.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Role Badges */
.bg-red-500\/20 {
    background-color: rgba(239, 68, 68, 0.2);
}

.text-red-300 {
    color: rgba(252, 165, 165, 1);
}

.border-red-500\/40 {
    border-color: rgba(239, 68, 68, 0.4);
}

.bg-purple-500\/20 {
    background-color: rgba(168, 85, 247, 0.2);
}

.text-purple-300 {
    color: rgba(216, 180, 254, 1);
}

.border-purple-500\/40 {
    border-color: rgba(168, 85, 247, 0.4);
}

.bg-blue-500\/20 {
    background-color: rgba(59, 130, 246, 0.2);
}

.text-blue-300 {
    color: rgba(147, 197, 253, 1);
}

.border-blue-500\/40 {
    border-color: rgba(59, 130, 246, 0.4);
}

.font-semibold {
    font-weight: 600;
}

.px-2\.5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* === FORMS STYLING === */

textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus {
    outline: none;
    border-color: #3fc7eb;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(63, 199, 235, 0.2);
}

textarea::placeholder,
input::placeholder {
    color: rgba(107, 114, 128, 0.8);
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* === BUTTON STYLING === */

button {
    transition: all 0.2s ease;
    cursor: pointer;
}

button:active:not(:disabled) {
    transform: scale(0.98);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-pink-500\/20 {
    background-color: rgba(236, 72, 153, 0.2);
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-pink-500\/30 {
    border-color: rgba(236, 72, 153, 0.3);
}

.bg-pink-500\/30 {
    background-color: rgba(236, 72, 153, 0.3);
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-pink-500\/30:hover {
    background-color: rgba(236, 72, 153, 0.3);
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:text-red-400:hover {
    color: rgba(248, 113, 113, 1);
}

.hover\:bg-red-500\/10:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.hover\:border-red-500\/20:hover {
    border-color: rgba(239, 68, 68, 0.2);
}

.text-pink-400 {
    color: rgba(244, 114, 182, 1);
}

.text-gray-400 {
    color: rgba(156, 163, 175, 1);
}

/* === UTILITY CLASSES === */

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.gap-2\.5 {
    gap: 0.625rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.inline-block {
    display: inline-block;
}

.flex-col {
    flex-direction: column;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.grow {
    flex-grow: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.w-full {
    width: 100%;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}


.w-40 {
    width: 10rem;
}
.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-3\.5 {
    height: 0.875rem;
}

.w-3\.5 {
    width: 0.875rem;
}

.object-cover {
    object-fit: cover;
}

.text-white {
    color: #ffffff;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-60 {
    opacity: 0.6;
}

@media (min-width: 640px) {
    .sm\:p-4 {
        padding: 1rem;
    }
    .sm\:p-6 {
        padding: 1.5rem;
    }
    .sm\:text-center {
        text-align: center;
    }
    .sm\:flex-row {
        flex-direction: row;
    }
    .sm\:items-center {
        align-items: center;
    }
    .sm\:items-justify {
        justify-content: space-between;
    }
    .sm\:text-sm {
        font-size: 0.875rem;
    }
    .sm\:text-lg {
        font-size: 1.125rem;
    }
    .sm\:border-r {
        border-right: 1px solid currentColor;
    }
    .sm\:border-b-0 {
        border-bottom: none;
    }
    .sm\:inline {
        display: inline;
    }
    .sm\:hidden {
        display: none;
    }
    .sm\:w-24 {
        width: 6rem;
    }
    
    .sm\:w-40 {
        width: 10rem;
    }
    .sm\:h-24 {
        height: 6rem;
    }
}

/* === FORUM TOPIC UTILITIES (EXTRA) === */
.min-h-screen {
    min-height: 100vh;
}

.max-w-7xl {
    max-width: var(--layout-max);
}

.relative {
    position: relative;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-sm {
    border-radius: 0.125rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.35);
}

.backdrop-blur-sm {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.bg-\[\#212121\]\/90 {
    background-color: rgba(33, 33, 33, 0.9);
}

.bg-\[\#191B1F\] {
    background-color: #191B1F;
}

.bg-black\/10 {
    background-color: rgba(0, 0, 0, 0.1);
}

.bg-black\/20 {
    background-color: rgba(0, 0, 0, 0.2);
}

.bg-transparent {
    background-color: transparent;
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-r {
    border-right-width: 1px;
    border-right-style: solid;
}

.border-red-500\/30 {
    border-color: rgba(239, 68, 68, 0.3);
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.px-1\.5 {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-0 {
    margin-bottom: 0;
}

.text-base {
    font-size: 1rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-left {
    text-align: left;
}

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

.min-w-0 {
    min-width: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whitespace-normal {
    white-space: normal;
}

.wrap-break-word {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gap-0 {
    gap: 0;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.list-disc {
    list-style-type: disc;
}

.pl-6 {
    padding-left: 1.5rem;
}

.underline {
    text-decoration: underline;
}

.overflow-hidden {
    overflow: hidden;
}

.transition-all {
    transition: all 0.2s ease;
}

.bg-orange-400 {
    background-color: #fb923c;
}

.hover\:bg-orange-500:hover {
    background-color: #f97316;
}

.text-orange-400 {
    color: #fb923c;
}

.hover\:text-orange-300:hover {
    color: #fdba74;
}

.cursor-default {
    cursor: default;
}

.hidden {
    display: none;
}

.fill-current {
    fill: currentColor;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

@media (min-width: 640px) {
    .sm\:gap-0 {
        gap: 0;
    }
    .sm\:gap-2 {
        gap: 0.5rem;
    }
    .sm\:gap-3 {
        gap: 0.75rem;
    }
    .sm\:mb-2 {
        margin-bottom: 0.5rem;
    }
    .sm\:mb-3 {
        margin-bottom: 0.75rem;
    }
    .sm\:mb-4 {
        margin-bottom: 1rem;
    }
    .sm\:mb-6 {
        margin-bottom: 1.5rem;
    }
    .sm\:text-base {
        font-size: 1rem;
    }
    .sm\:text-2xl {
        font-size: 1.5rem;
    }
    .sm\:w-20 {
        width: 5rem;
    }
    .sm\:h-20 {
        height: 5rem;
    }
    .sm\:w-\[200px\] {
        width: 200px;
    }
    .sm\:whitespace-normal {
        white-space: normal;
    }
    .sm\:space-y-2 > * + * {
        margin-top: 0.5rem;
    }
    .sm\:py-1 {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    .sm\:px-2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .sm\:px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .sm\:my-8 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    .sm\:mt-6 {
        margin-top: 1.5rem;
    }
    .sm\:flex-col {
        flex-direction: column;
    }
    .sm\:flex-none {
        flex: none;
    }
}

@media (min-width: 1024px) {
    .lg\:p-8 {
        padding: 2rem;
    }
    .lg\:my-12 {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    .lg\:text-3xl {
        font-size: 1.875rem;
    }
}
/* === EXTRA FLEX & SIZE UTILITIES === */
.flex-1 {
    flex: 1 1 0%;
}

.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}
/* === FORUM TOPIC UTILITIES (PATCH 2) === */
.justify-end {
    justify-content: flex-end;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-red-500\/10:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.tooltip {
    position: relative;
    display: inline-flex;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, -0.4rem);
    background: #1e1e24;
    color: var(--text-primary);
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}

.tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, -0.05rem);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #1e1e24 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 199;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -0.65rem);
}

.tooltip[data-tip='']::after,
.tooltip[data-tip='']::before {
    display: none;
}

@media (min-width: 640px) {
    .sm\:justify-between {
        justify-content: space-between;
    }
}
/* === FORUM TOPIC UTILITIES (PATCH 3) === */
.forum-topic .forum-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 6px;
    box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.6);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.forum-topic .forum-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.forum-topic .forum-action-btn:active {
    transform: translateY(0);
}

.forum-topic .forum-action-btn:disabled {
    opacity: 0.6;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.forum-topic .forum-action-btn--liked {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.35);
    color: #f472b6;
}

.forum-topic .forum-action-btn--liked:hover {
    background: rgba(236, 72, 153, 0.25);
    color: #f9a8d4;
}

.forum-topic .forum-action-btn--danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
}

.forum-topic .forum-primary-btn {
    border-radius: 9999px;
    border: 1px solid rgba(63, 199, 235, 0.6);
    background: linear-gradient(180deg, var(--accent) 0%, #0787ac 100%);
    color: var(--text-primary);
    box-shadow: 0 8px 18px rgba(15, 118, 178, 0.28);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.forum-topic .forum-primary-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.3);
}

.forum-topic .forum-primary-btn:active {
    transform: translateY(0);
}

.forum-topic .forum-primary-btn:disabled {
    opacity: 0.55;
    box-shadow: none;
    filter: none;
    transform: none;
}

.forum-topic .forum-reply {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forum-topic .forum-reply:focus-within {
    border-color: rgba(63, 199, 235, 0.45);
    box-shadow: 0 0 0 2px rgba(63, 199, 235, 0.15);
}

.forum-topic textarea {
    outline: none;
}

.forum-topic textarea::placeholder {
    color: var(--text-muted);
}