/* Основные стили для сайта */

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

a {
    text-decoration: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0e1621;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/images/bg/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(14, 22, 33, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.75rem 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    position: relative;
    z-index: 3000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.navbar-left .nav-dropdown {
    position: relative;
}

.logo a {
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-su {
    background: linear-gradient(135deg, #0078d4 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-home,
.nav-bugtracker,
.nav-chat {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s;
    padding: 0.45rem 0.2rem;
    border-bottom: 2px solid transparent;
}

.nav-home:hover,
.nav-bugtracker:hover,
.nav-chat:hover {
    opacity: 1;
    color: #8bd3ff;
    border-bottom-color: #00a8ff;
    text-decoration: none;
}

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

.nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid rgba(170, 196, 230, 0.32);
    background-color: rgba(255, 255, 255, 0.045);
    color: #eef6ff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-mobile-toggle:hover {
    background-color: rgba(36, 64, 96, 0.5);
    border-color: rgba(120, 194, 255, 0.52);
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 42px;
    z-index: 1;
}

.nav-menu > li:hover,
.nav-menu > li:focus-within {
    z-index: 3200;
}

.nav-menu a {
    color: #fff;
    text-decoration: none !important;
    transition: all 0.3s;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.nav-menu a:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

/* Выпадающее меню профиля */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    border: 1px solid rgba(170, 196, 230, 0.32);
    background-color: rgba(255, 255, 255, 0.045);
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
    height: 40px;
    box-sizing: border-box;
    line-height: 1;
}

.nav-dropdown-toggle:hover {
    background-color: rgba(36, 64, 96, 0.5);
    border-color: rgba(120, 194, 255, 0.52);
    opacity: 1 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-dropdown-simple {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none !important;
    transition: all 0.3s;
    padding: 0.5rem 0;
    font-weight: 500;
    white-space: nowrap;
}

.nav-dropdown-simple:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

.nav-locale-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    border: 1px solid rgba(170, 196, 230, 0.32);
    background-color: rgba(255, 255, 255, 0.045);
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
    height: 40px;
    box-sizing: border-box;
    line-height: 1;
}

.nav-locale-btn:hover {
    background-color: rgba(36, 64, 96, 0.5);
    border-color: rgba(120, 194, 255, 0.52);
    opacity: 1 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.lang-flag {
    display: inline-block;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
    width: 24px;
    height: 18px;
    vertical-align: middle;
}

.nav-locale-btn .lang-flag {
    width: 24px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.lang-code {
    font-size: 0.9rem;
    text-transform: uppercase;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: transform 0.3s;
    flex-shrink: 0;
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    min-width: 180px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 3300;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    padding: 0.75rem 1.25rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    text-decoration: none !important;
}

.nav-dropdown-menu a .lang-flag {
    flex-shrink: 0;
}

.nav-dropdown-menu a:hover {
    background-color: rgba(0, 168, 255, 0.1);
    color: #00a8ff;
    opacity: 1;
    text-decoration: none !important;
}

.nav-dropdown-menu a.active {
    background-color: rgba(0, 168, 255, 0.15);
    color: #00a8ff;
    font-weight: 600;
}

.nav-logout-form {
    margin: 0;
}

.nav-dropdown-menu-link {
    width: 100%;
    padding: 0.75rem 1.25rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    text-decoration: none !important;
    background: none;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.nav-dropdown-menu-link:hover {
    background-color: rgba(0, 168, 255, 0.1);
    color: #00a8ff;
    opacity: 1;
    text-decoration: none !important;
}

.nav-menu > li.nav-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    border: 1px solid rgba(170, 196, 230, 0.32);
    background-color: rgba(255, 255, 255, 0.045);
    transition: all 0.3s;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    height: 40px;
    box-sizing: border-box;
    line-height: 1;
}

.nav-menu > li.nav-server-status-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(170, 196, 230, 0.32);
    background-color: rgba(255, 255, 255, 0.045);
    color: #fff;
    white-space: nowrap;
    height: 40px;
    box-sizing: border-box;
    line-height: 1;
}

.nav-server-status-label {
    color: #d7dde7;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-server-status-value {
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-server-status-value.is-online {
    color: #54d87a;
}

.nav-server-status-value.is-offline {
    color: #ff6b6b;
}

.nav-online-link .nav-online-icon {
    display: inline-flex;
    align-items: center;
    color: #4caf50;
    flex-shrink: 0;
}

.nav-online-link .nav-online-count {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Кнопка входа */
.nav-login {
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    border: 1px solid rgba(170, 196, 230, 0.32);
    background-color: rgba(255, 255, 255, 0.045);
    transition: all 0.3s;
    font-weight: 600;
    color: #eef6ff !important;
    height: 40px;
    box-sizing: border-box;
}

.nav-login:hover {
    background-color: rgba(36, 64, 96, 0.5);
    border-color: rgba(120, 194, 255, 0.52);
    opacity: 1 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 21, 33, 0.4);
}

/* Кнопка пожертвовать */
.nav-donate {
    background: linear-gradient(135deg, #0284df 0%, #1cc5ff 100%);
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(8, 118, 189, 0.38);
    border: 1px solid rgba(110, 214, 255, 0.55);
    height: 40px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav-donate:hover {
    background: linear-gradient(135deg, #17b4ff 0%, #0278d0 100%);
    box-shadow: 0 8px 20px rgba(0, 150, 230, 0.42);
    transform: translateY(-1px);
    opacity: 1 !important;
    border-color: rgba(156, 232, 255, 0.75);
}

/* Header notifications dropdown */
.nav-notifications {
    position: relative;
    z-index: 1;
}

.nav-notifications.is-open {
    z-index: 3300;
}

.nav-notifications-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid rgba(170, 196, 230, 0.32);
    background-color: rgba(255, 255, 255, 0.045);
    color: #eef6ff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-notifications-toggle:hover {
    background-color: rgba(36, 64, 96, 0.5);
    border-color: rgba(120, 194, 255, 0.52);
    transform: translateY(-1px);
}

.nav-notifications-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff4d5a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(255, 77, 90, 0.4);
}

.nav-notifications-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    background: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 3301;
    overflow: hidden;
}

.nav-notifications.is-open .nav-notifications-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.nav-notifications-title {
    color: #f2f4f8;
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-notifications-mark-all {
    padding: 0;
    border: 0;
    background: transparent;
    color: #74c9ff;
    font-size: 0.8rem;
    cursor: pointer;
}

.nav-notifications-mark-all:hover {
    color: #9ddcff;
    text-decoration: underline;
}

.nav-notifications-mark-all:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: none;
}

.nav-notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

.nav-notification-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-notification-item:last-child {
    border-bottom: 0;
}

.nav-notification-item:not(.is-read) {
    background: rgba(0, 168, 255, 0.07);
}

.nav-notification-link {
    display: block;
    padding: 0.7rem 0.9rem;
    color: inherit;
    text-decoration: none;
    max-width: 100%;
}

.nav-notification-link:hover {
    background: rgba(255, 255, 255, 0.04);
}

.nav-notification-title {
    display: block;
    color: #f0f3f8;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nav-notification-message {
    display: block;
    color: #b4bfd1;
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nav-notification-empty {
    padding: 1rem;
    color: #9ba7bc;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-notifications-panel {
        right: -80px;
        width: min(360px, calc(100vw - 20px));
    }
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    color: #a0a0a0;
    font-size: 1.1rem;
}

/* Statistics Page */
.statistics-page {
    padding: 2rem 0;
}

.statistics-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

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

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0a0;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

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

.breadcrumb-link.active {
    color: #00a8ff;
    font-weight: 600;
}

.breadcrumb-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.breadcrumb-separator {
    color: #606060;
    margin: 0 0.25rem;
}

/* Hero Header */
.hero-header {
    margin-bottom: 3rem;
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.08) 0%, rgba(0, 120, 212, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.6), transparent);
}

.hero-header__content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-header__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.75rem;
    font-weight: 800;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-header__title svg {
    width: 36px;
    height: 36px;
    color: #00a8ff;
    filter: drop-shadow(0 2px 8px rgba(0, 168, 255, 0.4));
}

.hero-header__subtitle {
    color: #b0b0b0;
    font-size: 1.25rem;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Faction Counters */
.faction-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.counter {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(20, 28, 40, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.counter:hover {
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.25), 0 0 0 1px rgba(0, 168, 255, 0.1);
    transform: translateY(-2px);
}

.counter:hover::before {
    opacity: 1;
}

.total-counter {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15) 0%, rgba(0, 120, 212, 0.2) 100%);
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 168, 255, 0.15);
}

.total-counter:hover {
    box-shadow: 0 8px 32px rgba(0, 168, 255, 0.3), 0 0 0 1px rgba(0, 168, 255, 0.2);
}

.counter-icon {
    width: 40px;
    height: 40px;
    color: #00a8ff;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 168, 255, 0.3));
    transition: transform 0.3s;
}

.counter:hover .counter-icon {
    transform: scale(1.1);
}

.counter-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
}

.counter-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.counter-value.horde {
    color: #ff4757;
    text-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
}

.counter-value.alliance {
    color: #00a8ff;
    text-shadow: 0 2px 8px rgba(0, 120, 212, 0.4);
}

.counter-percent {
    font-size: 0.95rem;
    color: #b0b0b0;
    font-weight: 500;
    margin-top: 0.15rem;
}

.counter-label {
    font-size: 0.9rem;
    color: #909090;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.faction-icon {
    width: 44px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.counter:hover .faction-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Peak Record */
.peak-record {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.2) 100%);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.15);
}

.peak-record::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.peak-record:hover {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.3), 0 0 0 1px rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.peak-record:hover::before {
    opacity: 1;
}

.record-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.record-icon {
    width: 56px;
    height: 56px;
    color: #ffc107;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(255, 193, 7, 0.4));
    transition: transform 0.3s;
}

.peak-record:hover .record-icon {
    transform: scale(1.1) rotate(5deg);
}

.record-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
}

.record-label {
    font-size: 0.85rem;
    color: #b0b0b0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.record-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffc107;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(255, 193, 7, 0.5);
    letter-spacing: -1px;
}

.record-suffix {
    font-size: 0.9rem;
    color: #a0a0a0;
    font-weight: 500;
}

.record-date {
    font-size: 0.85rem;
    color: #808080;
    text-align: right;
    font-weight: 500;
}

/* Section Card */
.section-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.section-card:hover {
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 168, 255, 0.2), 0 0 0 1px rgba(0, 168, 255, 0.15);
    transform: translateY(-4px);
}

.section-card:hover::before {
    opacity: 1;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.75rem;
    color: #fff;
    margin: 0 0 2rem 0;
    font-weight: 700;
    flex-wrap: wrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-title svg {
    width: 28px;
    height: 28px;
    color: #00a8ff;
    filter: drop-shadow(0 2px 4px rgba(0, 168, 255, 0.3));
    flex-shrink: 0;
}

/* Period Selector */
.period-selector-inline {
    margin-left: auto;
}

.period-selector {
    display: flex;
    gap: 0.5rem;
    border: none;
    padding: 0;
    margin: 0;
}

.period-btn {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-family: inherit;
}

.period-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.period-btn.active {
    background-color: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.4);
    color: #00a8ff;
    font-weight: 600;
}

/* Chart Content */
.chart-content {
    margin-top: 1rem;
}

.chart-header {
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin: 0;
    font-weight: 500;
}

.chart-container {
    position: relative;
}

.chart-figure {
    margin: 0;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    min-height: 300px;
}

.chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #606060;
    font-style: italic;
}

/* Faction Balance */
.faction-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.faction-side {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.faction-side:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.faction-side.alliance:hover {
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 168, 255, 0.2);
}

.faction-side.horde:hover {
    border-color: rgba(255, 71, 87, 0.3);
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.2);
}

.faction-side.alliance {
    flex-direction: row;
}

.faction-side.horde {
    flex-direction: row-reverse;
}

.faction-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.faction-percent {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.faction-side.alliance .faction-percent {
    color: #00a8ff;
    text-shadow: 0 2px 8px rgba(0, 120, 212, 0.4);
}

.faction-side.horde .faction-percent {
    color: #ff4757;
    text-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
}

.faction-name {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.faction-vs {
    font-size: 1.5rem;
    font-weight: 900;
    color: #a0a0a0;
    padding: 0 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(20, 28, 40, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.25), 0 0 0 1px rgba(0, 168, 255, 0.1);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.gold {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.2) 100%);
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.15);
}

.stat-card.gold:hover {
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.3), 0 0 0 1px rgba(255, 193, 7, 0.2);
}

.stat-card.gold::before {
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.6), transparent);
}

.stat-card.blue {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15) 0%, rgba(0, 120, 212, 0.2) 100%);
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 168, 255, 0.15);
}

.stat-card.blue:hover {
    box-shadow: 0 8px 32px rgba(0, 168, 255, 0.3), 0 0 0 1px rgba(0, 168, 255, 0.2);
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a8ff;
    flex-shrink: 0;
}

.stat-card.gold .stat-card__icon {
    color: #ffc107;
}

.stat-card.blue .stat-card__icon {
    color: #00a8ff;
}

.stat-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-card__value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.stat-card.gold .stat-card__value {
    color: #ffc107;
    text-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.stat-card.blue .stat-card__value {
    color: #00a8ff;
    text-shadow: 0 2px 8px rgba(0, 120, 212, 0.4);
}

.stat-card__label {
    font-size: 0.9rem;
    color: #909090;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

/* Creation Chart */
.creation-chart {
    margin-top: 1rem;
}

.chart-area {
    position: relative;
    min-height: 300px;
}

/* Distribution Grid */
.distribution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

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

/* Compact List */
.compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s;
}

.list-item:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.list-item:hover::before {
    opacity: 0.6;
}

.item-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.list-item:hover .item-icon {
    transform: scale(1.1);
}

.item-name {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
    min-width: 140px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.item-bar {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 5px 5px 0 0;
}

.item-percent {
    font-size: 0.95rem;
    color: #d0d0d0;
    min-width: 70px;
    text-align: right;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Race List */
.race-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.race-list.scrollable {
    padding-right: 0;
}

.race-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.race-item.alliance {
    border-left: 3px solid rgba(0, 168, 255, 0.5);
}

.race-item.horde {
    border-left: 3px solid rgba(255, 71, 87, 0.5);
}

.race-item:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.race-item.alliance:hover {
    border-left-color: rgba(0, 168, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 168, 255, 0.2);
}

.race-item.horde:hover {
    border-left-color: rgba(255, 71, 87, 0.8);
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.2);
}

.race-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor, 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.race-item:hover .race-dot {
    transform: scale(1.2);
}

.race-dot.alliance {
    background-color: #00a8ff;
    color: #00a8ff;
}

.race-dot.horde {
    background-color: #ff4757;
    color: #ff4757;
}

.race-name {
    flex: 1;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.race-percent {
    font-size: 0.9rem;
    color: #d0d0d0;
    min-width: 70px;
    text-align: right;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Level Bars */
.level-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 240px;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.level-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s;
}

.level-bar-item:hover {
    transform: translateY(-4px);
}

.level-bar-bg {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.level-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #00a8ff 0%, #0078d4 50%, #005a9e 100%);
    border-radius: 8px 8px 0 0;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -2px 8px rgba(0, 168, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.level-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 8px 8px 0 0;
}

.level-bar-fill.max-level {
    background: linear-gradient(to top, #ffc107 0%, #ff9800 50%, #f57c00 100%);
    box-shadow: 0 -2px 12px rgba(255, 193, 7, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.level-label {
    font-size: 0.9rem;
    color: #d0d0d0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.3s;
}

.level-bar-item:hover .level-label {
    color: #fff;
}

/* Top Players Section */
.top-players-section {
    margin-top: 2.5rem;
}

.top-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.top-list {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.top-list:hover {
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 12px 48px rgba(0, 168, 255, 0.15), 0 0 0 1px rgba(0, 168, 255, 0.1);
}

.top-list__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.top-list__title svg {
    width: 24px;
    height: 24px;
    color: #00a8ff;
    filter: drop-shadow(0 2px 4px rgba(0, 168, 255, 0.3));
}

.top-list__items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.top-item:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.top-item__rank {
    font-size: 1rem;
    font-weight: 800;
    color: #808080;
    min-width: 32px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.3s;
}

.top-item:hover .top-item__rank {
    color: #00a8ff;
}

.top-item__class-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.top-item:hover .top-item__class-icon {
    transform: scale(1.15);
}

.top-item__name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.top-item__value {
    font-size: 0.9rem;
    color: #d0d0d0;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.top-item__value.achievements {
    color: #ffc107;
}

.top-item__value.honor {
    color: #00a8ff;
}

/* Bottom Stats */
.bottom-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mini-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.mini-stat:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-color: rgba(0, 168, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 168, 255, 0.2);
}

.mini-stat:hover::before {
    opacity: 1;
}

.mini-stat svg {
    width: 24px;
    height: 24px;
    color: #00a8ff;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 168, 255, 0.3));
    transition: transform 0.3s;
}

.mini-stat:hover svg {
    transform: scale(1.1);
}

.mini-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.statistics-content {
    display: block;
    width: 100%;
}

.statistics-card {
    background-color: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.statistics-card:hover {
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.2);
}

.statistics-card-header {
    background-color: rgba(0, 168, 255, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.statistics-card-header h2 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.statistics-card-body {
    padding: 1.5rem;
}

.stat-value {
    text-align: center;
    padding: 1rem 0;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #00a8ff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: #a0a0a0;
    font-size: 1rem;
}

.placeholder-content {
    text-align: center;
    padding: 2rem 1rem;
    color: #808080;
    font-style: italic;
}

/* Profile Page */
/* Profile Page */
.profile-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(0, 120, 212, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-avatar-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar-upload-form {
    margin: 0;
    position: relative;
}

.profile-avatar-wrapper {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.3) 0%, rgba(0, 120, 212, 0.2) 100%);
    border: 4px solid rgba(0, 168, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a8ff;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}

.profile-avatar-wrapper:hover .profile-avatar {
    border-color: rgba(0, 168, 255, 0.6);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.4);
    transform: scale(1.05);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: filter 0.3s;
}

.profile-avatar-wrapper:hover .profile-avatar img {
    filter: brightness(0.7);
}

.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

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

.profile-avatar-overlay svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.profile-avatar-overlay span {
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}


.profile-role {
    margin: 0.5rem 0;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.role-badge.role-user {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.role-badge.role-gm {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.role-badge.role-curator {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.profile-header-content {
    flex: 1;
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.profile-subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin: 0;
    font-weight: 400;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.profile-stat-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.profile-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-stat-card:hover {
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 168, 255, 0.2), 0 0 0 1px rgba(0, 168, 255, 0.15);
    transform: translateY(-4px);
}

.profile-stat-card:hover::before {
    opacity: 1;
}

.profile-stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.2) 0%, rgba(0, 120, 212, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a8ff;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 168, 255, 0.3));
    transition: transform 0.3s;
}

.profile-stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.profile-stat-card .stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.profile-stat-card .stat-label {
    font-size: 0.9rem;
    color: #909090;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-stat-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.profile-stat-card-link:hover {
    text-decoration: none;
}

.stat-link-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 168, 255, 0.5);
    transition: all 0.3s;
    opacity: 0;
}

.profile-stat-card-link:hover .stat-link-icon {
    opacity: 1;
    color: #00a8ff;
    transform: translateX(4px);
}

/* Profile Content */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-section:hover {
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 12px 48px rgba(0, 168, 255, 0.15), 0 0 0 1px rgba(0, 168, 255, 0.1);
}

.profile-section:hover::before {
    opacity: 1;
}

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

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00a8ff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.section-link:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.4);
    transform: translateX(4px);
    color: #00a8ff;
    text-decoration: none;
}

.section-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.section-link:hover svg {
    transform: translateX(2px);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-title svg {
    width: 28px;
    height: 28px;
    color: #00a8ff;
    filter: drop-shadow(0 2px 4px rgba(0, 168, 255, 0.3));
    flex-shrink: 0;
}

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00a8ff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.section-action:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.4);
    transform: translateX(4px);
}

.section-body {
    margin-top: 1rem;
}

/* User Awards */
.user-awards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.user-award-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: help;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.user-award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.user-award-card:hover {
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 168, 255, 0.2), 0 0 0 1px rgba(0, 168, 255, 0.15);
    transform: translateY(-4px);
}

.user-award-card:hover::before {
    opacity: 1;
}

.user-award-card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15) 0%, rgba(0, 120, 212, 0.1) 100%);
    border: 2px solid rgba(0, 168, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-award-card:hover .user-award-card-icon {
    border-color: rgba(0, 168, 255, 0.5);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.user-award-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    padding: 0.5rem;
}

.user-award-card-icon .user-award-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.15) 100%);
    border: none;
}

.user-award-card-icon .user-award-icon-placeholder svg {
    width: 48px;
    height: 48px;
    color: #ffd700;
}

.user-award-card-content {
    width: 100%;
}

.user-award-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-award-card-description {
    font-size: 0.875rem;
    color: #a0a0a0;
    line-height: 1.5;
}

/* Старый стиль для совместимости */
.user-award-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(14, 22, 33, 0.6);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: help;
}

.user-award-item:hover {
    background: rgba(14, 22, 33, 0.8);
    border-color: rgba(0, 168, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.2);
}

.user-award-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0, 168, 255, 0.1);
    border: 2px solid rgba(0, 168, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.user-award-item:hover .user-award-icon {
    border-color: rgba(0, 168, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
    transform: scale(1.05);
}

.user-award-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.user-award-icon-placeholder {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.15) 100%);
    border-color: rgba(255, 215, 0, 0.4);
}

.user-award-icon-placeholder svg {
    width: 28px;
    height: 28px;
    color: #ffd700;
}

.user-award-info {
    flex: 1;
    min-width: 0;
}

.user-award-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.user-award-description {
    font-size: 0.85rem;
    color: #a0a0a0;
    line-height: 1.4;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.info-item {
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.info-item:hover {
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 12px 48px rgba(0, 168, 255, 0.15), 0 0 0 1px rgba(0, 168, 255, 0.1);
    transform: translateY(-4px);
}

.info-item:hover::before {
    opacity: 1;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #a0a0a0;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-label svg {
    width: 20px;
    height: 20px;
    color: #00a8ff;
    opacity: 0.8;
    transition: all 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0, 168, 255, 0.3));
}

.info-item:hover .info-label svg {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 8px rgba(0, 168, 255, 0.5));
}

.info-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

/* Characters Empty */
.characters-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #808080;
}

.characters-empty svg {
    margin-bottom: 1.5rem;
}

.characters-empty p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Profile Page Responsive */
@media (max-width: 768px) {
    .profile-page {
        padding: 1.5rem 0;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar-overlay span {
        font-size: 0.65rem;
    }

    .profile-title {
        font-size: 2rem;
    }

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

    .profile-stat-card {
        padding: 1.5rem;
    }

    .profile-section {
        padding: 1.5rem;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-item {
        padding: 1.25rem;
    }
}

/* Donate Page */
.donate-page {
    padding: 2rem 0;
}

.donate-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.donate-card {
    background-color: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.donate-card:hover {
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.2);
}

.donate-card-header {
    background-color: rgba(0, 168, 255, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.donate-card-header h2 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.donate-card-body {
    padding: 1.5rem;
}

.donate-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.donate-method {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.donate-method:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 168, 255, 0.3);
    transform: translateY(-2px);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.donate-method h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.donate-method p {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin: 0;
}

/* Footer */
.footer {
    background-color: #1a2332;
    color: #fff;
    padding: 2.5rem 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.footer-left {
    max-width: 700px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    min-width: 200px;
}

.footer-copyright {
    font-size: 0.75rem;
    line-height: 1.7;
    color: #a0a0a0;
    text-align: left;
}

.footer-copyright-text {
    margin-bottom: 1rem;
}

.footer-copyright-site {
    color: #c0c0c0;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-right-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #a0a0a0;
    transition: all 0.3s ease;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: #00a8ff;
    background-color: rgba(0, 168, 255, 0.15);
    border-color: rgba(0, 168, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.2);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-creator {
    text-align: right;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #a0a0a0;
}

.footer-creator-title {
    font-size: 0.75rem;
    color: #a0a0a0;
    font-weight: 400;
}

.footer-creator-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #c0c0c0;
}

.footer-banners {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-banners img {
    max-height: 50px;
    opacity: 0.8;
    transition: opacity 0.3s;
    border-radius: 4px;
}

.footer-banners img:hover {
    opacity: 1;
}

/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-container {
    background-color: rgba(26, 35, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auth-container h1 {
    color: #e0e0e0;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00a8ff;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

.form-group input::placeholder {
    color: #a0a0a0;
}

.form-group small {
    color: #a0a0a0;
    font-size: 0.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #0078d4 0%, #00a8ff 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00a8ff 0%, #0078d4 100%);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.5);
    transform: translateY(-2px);
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-footer p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.form-footer a {
    color: #00a8ff;
    text-decoration: none;
    transition: color 0.3s;
}

.form-footer a:hover {
    color: #0078d4;
}

/* Уведомления */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background-color: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    min-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #e0e0e0;
}

/* Типы уведомлений */
.notification-success {
    border-left: 3px solid #00a8ff;
}

.notification-success .notification-icon {
    background-color: rgba(0, 168, 255, 0.2);
    color: #00a8ff;
}

.notification-error {
    border-left: 3px solid #e74c3c;
}

.notification-error .notification-icon {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.notification-info {
    border-left: 3px solid #0078d4;
}

.notification-info .notification-icon {
    background-color: rgba(0, 120, 212, 0.2);
    color: #0078d4;
}

.notification-warning {
    border-left: 3px solid #ffa500;
}

.notification-warning .notification-icon {
    background-color: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-right {
        align-items: flex-start;
        width: 100%;
    }
    
    .footer-right-group {
        align-items: flex-start;
        width: 100%;
    }
    
    .footer-creator {
        text-align: left;
        justify-content: flex-start;
        width: 100%;
    }
    
    .footer-banners {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Home Page */
.home-page {
    text-align: center;
    padding: 3rem 0;
}

.home-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.home-page p {
    font-size: 1.2rem;
    color: #a0a0a0;
}

/* Getting Started Section */
.getting-started-section {
    padding: 1rem 0 2rem;
}

.getting-started__header {
    max-width: 720px;
    margin: 0 auto 2rem;
}

.getting-started__title {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #f2f2f2;
}

.getting-started__subtitle {
    margin: 0;
    color: #a8b0bc;
    font-size: 1rem;
    line-height: 1.6;
}

.getting-started__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.getting-started__card {
    text-align: left;
    padding: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(20, 28, 40, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.getting-started__card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.18);
}

.getting-started__step {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 168, 255, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.35);
    color: #6bc4ff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.getting-started__card-title {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    line-height: 1.35;
    color: #ffffff;
}

.getting-started__card-text {
    margin: 0 0 0.9rem;
    color: #a8b0bc;
    font-size: 0.95rem;
    line-height: 1.55;
}

.getting-started__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #72caff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.getting-started__link:hover {
    color: #9edbff;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 5rem 0;
}

.error-page h1 {
    font-size: 6rem;
    color: #0078d4;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #a0a0a0;
}

.error-page a {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #0078d4;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.error-page a:hover {
    background-color: #005a9e;
}

/* News Section */
.news-section {
    padding: 4rem 0;
}

.news__top-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news__main-block {
    position: relative;
}

.news__side-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news__item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.4);
}

.news__item-main {
    height: 100%;
    min-height: 400px;
}

.news__item-side {
    flex: 1;
    min-height: 190px;
}

.news__item-grid {
    min-height: 250px;
}

.news__item-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.news__item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news__item:hover .news__item-image-container img {
    transform: scale(1.1);
}

.news__content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.95) 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.news__item-main .news__content-overlay {
    padding: 3rem 2rem 2rem;
}

.news__date {
    font-size: 0.85rem;
    color: #909090;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news__main-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.news__item-side .news__main-title {
    font-size: 1.1rem;
}

.news__item-grid .news__main-title {
    font-size: 1.2rem;
}

.news__item:hover .news__main-title {
    color: #00a8ff;
}

.news__bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .getting-started__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news__top-section {
        grid-template-columns: 1fr;
    }

    .news__side-blocks {
        flex-direction: row;
    }

    .news__item-side {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .getting-started-section {
        padding: 0.5rem 0 1.5rem;
    }

    .getting-started__header {
        margin-bottom: 1.2rem;
    }

    .getting-started__title {
        font-size: 1.6rem;
    }

    .getting-started__grid {
        grid-template-columns: 1fr;
    }

    .news-section {
        padding: 2rem 0;
    }

    .news__top-section {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .news__side-blocks {
        flex-direction: column;
    }

    .news__item-main {
        min-height: 300px;
    }

    .news__item-side {
        min-height: 200px;
    }

    .news__item-grid {
        min-height: 220px;
    }

    .news__bottom-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news__main-title {
        font-size: 1.2rem;
    }

    .news__item-side .news__main-title {
        font-size: 1rem;
    }

    .news__item-grid .news__main-title {
        font-size: 1.1rem;
    }

    .news__content-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .news__item-main .news__content-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
}

/* News Page - Страница просмотра новости */
.news-page {
    padding: 2rem 0;
    min-height: 60vh;
}

.news-article {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(26, 35, 50, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.news-article-header {
    position: relative;
}

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

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

.news-article-meta {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
}

.news-article-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 168, 255, 0.9);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.news-article-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.news-article-content {
    padding: 2.5rem;
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.news-article-content p:last-child {
    margin-bottom: 0;
}

.news-article-content a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: .2rem .35rem .2rem 0;
    padding: .42rem .72rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 168, 255, 0.38);
    background: rgba(0, 168, 255, 0.12);
    color: #bfe7ff;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.25;
    transition: all .2s ease;
    word-break: break-word;
}

.news-article-content a:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(124, 210, 255, 0.6);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.22);
}

.news-article-attachments {
    margin: 0 2.5rem 1.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 168, 255, 0.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 168, 255, 0.09) 0%, rgba(8, 17, 27, 0.45) 100%);
}

.news-attachments-title {
    margin: 0 0 .8rem;
    font-size: 1rem;
    font-weight: 700;
    color: #7ecfff;
}

.news-attachments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
}

.news-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .55rem .65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 14, 23, 0.45);
}

.news-attachment-link {
    min-width: 0;
    color: #bfe7ff;
    text-decoration: none;
}

.news-attachment-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.news-attachment-name {
    display: block;
    word-break: break-word;
}

.news-attachment-size {
    flex-shrink: 0;
    font-size: .84rem;
    color: rgba(205, 221, 237, 0.75);
}

.news-article-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00a8ff;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.news-back-link:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.5);
    transform: translateX(-5px);
}

.news-back-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .news-article-image {
        height: 250px;
    }

    .news-article-title {
        font-size: 1.5rem;
        padding: 1.5rem 1rem 1rem;
    }

    .news-article-content {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .news-article-attachments {
        margin: 0 1.5rem 1.25rem;
        padding: .85rem .9rem;
    }

    .news-article-footer {
        padding: 1rem 1.5rem;
    }

    .news-article-meta {
        top: 1rem;
        left: 1rem;
    }

    .news-article-date {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* News Comments */
.news-comments {
    margin-top: 2rem;
    padding: 2rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-comments-title {
    color: #00a8ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.news-comments-empty {
    text-align: center;
    padding: 2rem;
    color: #909090;
}

.news-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.news-comment {
    background: rgba(26, 35, 50, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    text-align: left;
}

.news-comment:hover {
    background: rgba(26, 35, 50, 0.8);
    border-color: rgba(0, 168, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.1);
}

.news-comment-author {
    flex-shrink: 0;
    width: 200px;
    padding: 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 22, 33, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.news-comment-author * {
    text-align: center;
}

.news-comment-main {
    text-align: left !important;
}

.news-comment-main *,
.news-comment-main div,
.news-comment-main p,
.news-comment-main span {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.news-comment-author-name {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.news-comment-author-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-comment-author-name a:hover {
    color: #00a8ff;
    text-decoration: none;
}

.news-comment-author-info {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.news-comment-author-role {
    width: 100%;
    display: flex;
    justify-content: center;
}

.news-comment-author-role .role-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
}

.news-comment-author-avatar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.news-comment-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
}

.news-comment-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 168, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.2);
    transition: all 0.3s ease;
}

.news-comment:hover .news-comment-avatar-img {
    border-color: rgba(0, 168, 255, 0.5);
    box-shadow: 0 6px 16px rgba(0, 168, 255, 0.3);
}

.news-comment-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.2) 0%, rgba(0, 120, 212, 0.15) 100%);
    border: 3px solid rgba(0, 168, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.2);
}

.news-comment-character-count {
    text-align: center;
    margin-top: 0.5rem;
    color: #a0a0a0;
    font-size: 0.85rem;
    white-space: nowrap;
}

.news-comment-awards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(14, 22, 33, 0.6);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 8px;
    flex-wrap: wrap;
}

.news-comment-award-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.3);
    transition: all 0.3s ease;
    cursor: help;
    flex-shrink: 0;
}

.news-comment-award-item:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

.news-comment-award-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.news-comment-award-item svg {
    width: 20px;
    height: 20px;
    color: #ffd700;
}

.news-comment-award-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    color: #ffd700;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: help;
}

.news-comment-avatar-placeholder svg {
    width: 40px;
    height: 40px;
    color: #00a8ff;
    opacity: 0.7;
}

.news-comment-main {
    flex: 1;
    min-width: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: left !important;
    align-items: stretch !important;
    justify-content: flex-start;
    width: 100%;
}

.news-comment-meta {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    width: 100%;
}

.news-comment-meta-date {
    font-size: 0.85rem;
    color: #a0a0a0;
    text-align: left;
}

.news-comment-link {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-comment-link:hover {
    color: #00a8ff;
    text-decoration: none;
}

.news-comment-link time {
    color: #909090;
}

.news-comment-content {
    flex: 1;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
}

.news-comment-text {
    color: #e0e0e0 !important;
    line-height: 1.75;
    font-size: 0.95rem;
    word-wrap: break-word;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: ltr !important;
    unicode-bidi: embed;
    max-width: 100% !important;
    box-sizing: border-box !important;
    align-self: flex-start !important;
    text-indent: 0 !important;
}

.news-comment-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.news-comment-menu-toggle {
    background: transparent;
    border: none;
    color: #909090;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.news-comment:hover .news-comment-menu-toggle {
    opacity: 1;
    pointer-events: all;
}

.news-comment-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00a8ff;
}

.news-comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(14, 22, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.news-comment-menu:hover .news-comment-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.news-comment-menu-item {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: left;
    border-radius: 0;
}

.news-comment-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.news-comment-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.news-comment-menu-item:hover {
    background: rgba(0, 168, 255, 0.1);
    color: #00a8ff;
}

.news-comment-menu-item svg {
    flex-shrink: 0;
}

.news-comment-menu-item.news-comment-delete:hover {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
}

.news-comment-form-wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-comment-form {
    background: rgba(14, 22, 33, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-comment-form-header {
    margin-bottom: 1rem;
}

.news-comment-form-header h4 {
    color: #00a8ff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.news-comment-textarea {
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: #e0e0e0;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.news-comment-textarea:focus {
    outline: none;
    border-color: #00a8ff;
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

.news-comment-textarea::placeholder {
    color: #707070;
}

.news-comment-form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.news-comment-form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.news-comments-login {
    text-align: center;
    padding: 1rem;
    color: #909090;
}

.news-comments-login a {
    color: #00a8ff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-comments {
        padding: 1.5rem;
    }

    .news-comment {
        flex-direction: column;
    }

    .news-comment-author {
        width: 100%;
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .news-comment-author-name {
        margin: 0 0 0 1rem;
        flex: 1;
    }

    .news-comment-author-info {
        flex-direction: row;
        gap: 0.5rem;
        width: auto;
        margin-left: auto;
    }

    .news-comment-author-role {
        width: auto;
    }

    .news-comment-author-avatar {
        width: auto;
    }

    .news-comment-avatar-wrap {
        width: 48px;
        height: 48px;
    }

    .news-comment-main {
        padding: 1rem;
    }
}

/* Bug Tracker */
.bugtracker-page {
    padding: 2rem 0;
    min-height: 60vh;
}

.bugtracker-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bugtracker-header h1 {
    font-size: 2.5rem;
    color: #00a8ff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 168, 255, 0.3);
}

.bugtracker-subtitle {
    color: #909090;
    font-size: 1.1rem;
}

.bugtracker-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.bugtracker-stat-card {
    background: rgba(26, 35, 50, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.bugtracker-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 168, 255, 0.2);
}

.bugtracker-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00a8ff;
    margin-bottom: 0.5rem;
}

.bugtracker-stat-card .stat-label {
    color: #909090;
    font-size: 0.9rem;
}

.bugtracker-stat-card.stat-open .stat-value {
    color: #ffa500;
}

.bugtracker-stat-card.stat-progress .stat-value {
    color: #00a8ff;
}

.bugtracker-stat-card.stat-resolved .stat-value {
    color: #4caf50;
}

.bugtracker-stat-card.stat-critical .stat-value {
    color: #f44336;
}

.bugtracker-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.bugtracker-item {
    background: rgba(26, 35, 50, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.bugtracker-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.3);
}

.bugtracker-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bugtracker-item-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bugtracker-priority,
.bugtracker-status,
.bugtracker-category {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.bugtracker-priority.priority-low {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.bugtracker-priority.priority-medium {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.bugtracker-priority.priority-high {
    background: rgba(255, 87, 34, 0.2);
    color: #ff5722;
}

.bugtracker-priority.priority-critical {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.bugtracker-status.status-open {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.bugtracker-status.status-in_progress {
    background: rgba(0, 168, 255, 0.2);
    color: #00a8ff;
}

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

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

.bugtracker-status.status-rejected {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.bugtracker-category {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.bugtracker-item-date {
    color: #909090;
    font-size: 0.9rem;
}

.bugtracker-item-title {
    margin-bottom: 0.75rem;
}

.bugtracker-item-title a {
    color: #00a8ff;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s;
}

.bugtracker-item-title a:hover {
    color: #00c3ff;
}

.bugtracker-item-description {
    color: #b0b0b0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.bugtracker-item-footer {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    color: #909090;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.bugtracker-item-author,
.bugtracker-item-assigned,
.bugtracker-item-comments {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bugtracker-item-author svg,
.bugtracker-item-assigned svg,
.bugtracker-item-comments svg {
    width: 14px;
    height: 14px;
}

.bugtracker-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #909090;
}

.bugtracker-empty svg {
    margin-bottom: 1rem;
}

.bugtracker-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.bugtracker-form {
    background: rgba(26, 35, 50, 0.6);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(14, 22, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #00a8ff;
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 168, 255, 0.2);
    border: 1px solid rgba(0, 168, 255, 0.4);
    border-radius: 8px;
    color: #00a8ff;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.file-label:hover {
    background: rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.6);
}

.file-preview {
    margin-top: 1rem;
    position: relative;
    display: inline-flex;
    max-width: 300px;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f44336;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.file-remove:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: #909090;
    font-size: 0.85rem;
}

.bugtracker-detail {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(26, 35, 50, 0.6);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bugtracker-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bugtracker-detail-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bugtracker-detail-date {
    color: #909090;
    font-size: 0.9rem;
}

.bugtracker-detail-title {
    font-size: 2rem;
    color: #00a8ff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.bugtracker-detail-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.bugtracker-detail-author,
.bugtracker-detail-assigned {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0b0b0;
}

.bugtracker-detail-image {
    margin-bottom: 1.5rem;
}

.bugtracker-detail-image img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bugtracker-detail-description {
    margin-bottom: 2rem;
}

.bugtracker-detail-description h3 {
    color: #00a8ff;
    margin-bottom: 1rem;
}

.bugtracker-content {
    color: #d0d0d0;
    line-height: 1.8;
    white-space: pre-wrap;
}

.bugtracker-comments {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bugtracker-comments h3 {
    color: #00a8ff;
    margin-bottom: 1.5rem;
}

.bugtracker-comments-empty {
    text-align: center;
    padding: 2rem;
    color: #909090;
}

.bugtracker-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.bugtracker-comment {
    background: rgba(26, 35, 50, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    text-align: left;
}

.bugtracker-comment:hover {
    background: rgba(26, 35, 50, 0.8);
    border-color: rgba(0, 168, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.1);
}

.bugtracker-comment-author {
    flex-shrink: 0;
    width: 200px;
    padding: 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 22, 33, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bugtracker-comment-author * {
    text-align: center;
}

.bugtracker-comment-main {
    text-align: left !important;
}

.bugtracker-comment-main *,
.bugtracker-comment-main div,
.bugtracker-comment-main p,
.bugtracker-comment-main span {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.bugtracker-comment-author-name {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.bugtracker-comment-author-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bugtracker-comment-author-name a:hover {
    color: #00a8ff;
    text-decoration: none;
}

.bugtracker-comment-author-info {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.bugtracker-comment-author-role {
    width: 100%;
    display: flex;
    justify-content: center;
}

.bugtracker-comment-author-role .role-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
}

.bugtracker-comment-author-avatar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bugtracker-comment-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
}

.bugtracker-comment-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 168, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.2);
    transition: all 0.3s ease;
}

.bugtracker-comment:hover .bugtracker-comment-avatar-img {
    border-color: rgba(0, 168, 255, 0.5);
    box-shadow: 0 6px 16px rgba(0, 168, 255, 0.3);
}

.bugtracker-comment-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.2) 0%, rgba(0, 120, 212, 0.15) 100%);
    border: 3px solid rgba(0, 168, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.2);
}

.bugtracker-comment-character-count {
    text-align: center;
    margin-top: 0.5rem;
    color: #a0a0a0;
    font-size: 0.85rem;
    white-space: nowrap;
}

.bugtracker-comment-awards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(14, 22, 33, 0.6);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 8px;
    flex-wrap: wrap;
}

.bugtracker-comment-award-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.3);
    transition: all 0.3s ease;
    cursor: help;
    flex-shrink: 0;
}

.bugtracker-comment-award-item:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

.bugtracker-comment-award-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bugtracker-comment-award-item svg {
    width: 20px;
    height: 20px;
    color: #ffd700;
}

.bugtracker-comment-award-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    color: #ffd700;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: help;
}

.bugtracker-comment-avatar-placeholder svg {
    width: 40px;
    height: 40px;
    color: #00a8ff;
    opacity: 0.7;
}

.bugtracker-comment-main {
    flex: 1;
    min-width: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: left !important;
    align-items: stretch !important;
    justify-content: flex-start;
    width: 100%;
}

.bugtracker-comment-meta {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    width: 100%;
}

.bugtracker-comment-meta-date {
    font-size: 0.85rem;
    color: #a0a0a0;
    text-align: left;
}

.bugtracker-comment-link {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bugtracker-comment-link:hover {
    color: #00a8ff;
    text-decoration: none;
}

.bugtracker-comment-link time {
    color: #909090;
}

.bugtracker-comment-content {
    flex: 1;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
}

.bugtracker-comment-text {
    color: #e0e0e0 !important;
    line-height: 1.75;
    font-size: 0.95rem;
    word-wrap: break-word;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: ltr !important;
    unicode-bidi: embed;
    max-width: 100% !important;
    box-sizing: border-box !important;
    align-self: flex-start !important;
    text-indent: 0 !important;
}

.bugtracker-comment-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.bugtracker-comment-menu-toggle {
    background: transparent;
    border: none;
    color: #909090;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.bugtracker-comment:hover .bugtracker-comment-menu-toggle {
    opacity: 1;
    pointer-events: all;
}

.bugtracker-comment-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00a8ff;
}

.bugtracker-comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(14, 22, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.bugtracker-comment-menu:hover .bugtracker-comment-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bugtracker-comment-menu-item {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: left;
    border-radius: 0;
}

.bugtracker-comment-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.bugtracker-comment-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.bugtracker-comment-menu-item:hover {
    background: rgba(0, 168, 255, 0.1);
    color: #00a8ff;
}

.bugtracker-comment-menu-item svg {
    flex-shrink: 0;
}

.bugtracker-comment-menu-item.bugtracker-comment-delete:hover {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
}

/* Модальные окна для комментариев */
.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.comment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.comment-modal-content {
    position: relative;
    background: rgba(26, 35, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    backdrop-filter: blur(10px);
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 22, 33, 0.4);
}

.comment-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.comment-modal-close {
    background: transparent;
    border: none;
    color: #909090;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.comment-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.comment-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.comment-modal-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    background: rgba(14, 22, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
}

.comment-modal-textarea:focus {
    outline: none;
    border-color: rgba(0, 168, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

.comment-modal-textarea::placeholder {
    color: #707070;
}

.comment-modal-message {
    margin: 0;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
}

.comment-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 22, 33, 0.4);
}

.comment-modal-footer .btn {
    min-width: 100px;
}

.btn-danger {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    box-shadow: none;
}

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

@media (max-width: 768px) {
    .comment-modal-content {
        max-width: 100%;
        margin: 1rem;
    }

    .comment-modal-header,
    .comment-modal-body,
    .comment-modal-footer {
        padding: 1rem;
    }
}

/* BBCode Editor Styles */
.bbcode-toolbar {
    background: rgba(14, 22, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    padding: 0.5rem;
    margin-bottom: -1px;
}

.bbcode-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bbcode-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
}

.bbcode-button:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.4);
    color: #00a8ff;
}

.bbcode-button svg {
    width: 16px;
    height: 16px;
}

.bbcode-size {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bbcode-size:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 168, 255, 0.4);
}

.bbcode-upload-label {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
}

.bbcode-upload-label:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.4);
    color: #00a8ff;
}

.bbcode-toolbar {
    position: relative;
}

.bbcode-editor-toolbar {
    background: rgba(14, 22, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    padding: 0.5rem;
    margin-bottom: -1px;
    position: relative;
}

.bbcode-editor-toolbar .bbcode-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bbcode-editor-toolbar .bbcode-color-palette {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    margin-top: 0.5rem;
}

.colour-palette {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 35, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.colour-palette-title {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.colour-palette-colors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.colour-palette-color {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.colour-palette-color:hover {
    border-color: #00a8ff;
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0, 168, 255, 0.5);
}

/* BBCode Output Styles */
.bbcode-quote {
    background: rgba(14, 22, 33, 0.6);
    border-left: 3px solid rgba(0, 168, 255, 0.5);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-style: italic;
    color: #c0c0c0;
}

/* BBCode Images */
.bbcode-image-thumbnail {
    max-width: 400px;
    max-height: 300px;
    width: auto;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: block;
    margin: 1rem 0;
    object-fit: contain;
}

.bbcode-image-thumbnail:hover {
    border-color: rgba(0, 168, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
    transform: scale(1.02);
}

/* Image Lightbox Modal */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
}

.image-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-lightbox-close:hover {
    background: rgba(255, 77, 77, 0.8);
    border-color: #ff4d4d;
    transform: rotate(90deg);
}

.image-lightbox-close svg {
    width: 24px;
    height: 24px;
}

.bbcode-quote-author {
    font-weight: 600;
    color: #00a8ff;
    margin-bottom: 0.5rem;
    font-style: normal;
    font-size: 0.9rem;
}

/* Формы редактирования комментариев */
.news-comment-edit-form,
.bugtracker-comment-edit-form {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(14, 22, 33, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-comment-form-actions,
.bugtracker-comment-form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.news-comment-form-actions .btn,
.bugtracker-comment-form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.news-comment-form-actions .btn-primary,
.bugtracker-comment-form-actions .btn-primary {
    background: linear-gradient(135deg, #0078d4 0%, #00a8ff 100%);
    color: #fff;
}

.news-comment-form-actions .btn-primary:hover,
.bugtracker-comment-form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #00a8ff 0%, #0078d4 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.4);
}

.news-comment-form-actions .btn-secondary,
.bugtracker-comment-form-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.news-comment-form-actions .btn-secondary:hover,
.bugtracker-comment-form-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.bbcode-code {
    background: rgba(14, 22, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.bbcode-code code {
    background: transparent;
    padding: 0;
    border: none;
}

.bbcode-list {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #e0e0e0;
}

.bbcode-list li {
    margin: 0.5rem 0;
}

.bbcode-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Уменьшенные изображения в комментариях имеют приоритет */
.bbcode-image-thumbnail.bbcode-image {
    max-width: 400px;
    max-height: 300px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.news-comment-textarea,
.bugtracker-comment-textarea {
    border-radius: 0 0 8px 8px;
}

@media (max-width: 768px) {
    .bugtracker-comment {
        flex-direction: column;
    }

    .bugtracker-comment-author {
        width: 100%;
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .bugtracker-comment-author-name {
        margin: 0 0 0 1rem;
        flex: 1;
    }

    .bugtracker-comment-author-info {
        flex-direction: row;
        gap: 0.5rem;
        width: auto;
        margin-left: auto;
    }

    .bugtracker-comment-author-role {
        width: auto;
    }

    .bugtracker-comment-author-avatar {
        width: auto;
    }

    .bugtracker-comment-avatar-wrap {
        width: 48px;
        height: 48px;
    }

    .bugtracker-comment-main {
        padding: 1rem;
    }
}

.bugtracker-comment-form-wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bugtracker-comment-form {
    background: rgba(14, 22, 33, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bugtracker-comment-form-header {
    margin-bottom: 1rem;
}

.bugtracker-comment-form-header h4 {
    color: #00a8ff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.bugtracker-comment-textarea {
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: #e0e0e0;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

.bugtracker-comment-textarea:focus {
    outline: none;
    border-color: #00a8ff;
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

.bugtracker-comment-textarea::placeholder {
    color: #707070;
}

.bugtracker-comment-form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.bugtracker-comment-form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.bugtracker-comments-login {
    text-align: center;
    padding: 1rem;
    color: #909090;
}

.bugtracker-comments-login a {
    color: #00a8ff;
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .bugtracker-header h1 {
        font-size: 2rem;
    }
    
    .bugtracker-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bugtracker-detail-title {
        font-size: 1.5rem;
    }
    
    .bugtracker-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Characters Grid */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.character-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.character-card:hover {
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 168, 255, 0.2);
    transform: translateY(-4px);
}

.character-card:hover::before {
    opacity: 1;
}

.character-card[data-online="true"] {
    border-left: 4px solid #4caf50;
}

.character-card[data-online="true"]::before {
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.5), transparent);
}

.character-card[data-faction="alliance"] {
    border-left: 4px solid #0078d4;
}

.character-card[data-faction="horde"] {
    border-left: 4px solid #c41e3a;
}

.character-card[data-online="true"][data-faction="alliance"] {
    border-left: 4px solid #4caf50;
}

.character-card[data-online="true"][data-faction="horde"] {
    border-left: 4px solid #4caf50;
}

.character-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

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

.character-avatar {
    position: relative;
}

.character-race-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 168, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.2) 0%, rgba(0, 120, 212, 0.15) 100%);
    display: block;
    box-shadow: 0 2px 8px rgba(0, 168, 255, 0.2);
}

.character-race-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.2) 0%, rgba(0, 120, 212, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid rgba(0, 168, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 168, 255, 0.2);
}

.character-faction-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: rgba(26, 35, 50, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.character-faction-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.character-info {
    flex: 1;
    min-width: 0;
}

.character-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    word-break: break-word;
}

.character-name-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.character-name-link:hover {
    color: var(--nav-accent-light);
    text-shadow: 0 2px 8px rgba(91, 127, 168, 0.5);
}

.character-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.character-race {
    font-weight: 500;
}

.character-separator {
    color: #606060;
}

.character-class {
    font-weight: 600;
}

.character-class-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.character-class-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.character-card[data-faction="alliance"] {
    border-left-color: #0078d4;
}

.character-card[data-faction="horde"] {
    border-left-color: #c41e3a;
}

.character-online-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 12px;
    color: #4caf50;
    font-size: 0.75rem;
    font-weight: 600;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
    animation: pulse 2s infinite;
}

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

.character-card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.character-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.character-stat-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #909090;
    font-weight: 500;
}

.character-stat-label svg {
    width: 16px;
    height: 16px;
    color: #00a8ff;
}

.character-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.characters-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #909090;
}

.characters-empty svg {
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.characters-empty h3 {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

.characters-empty p {
    font-size: 1rem;
    color: #909090;
}

@media (max-width: 768px) {
    .characters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .character-card {
        padding: 1.25rem;
    }
    
    .character-card-header {
        flex-wrap: wrap;
    }
    
    .character-online-badge {
        position: static;
        margin-top: 0.5rem;
    }
    
    .character-card-body {
        grid-template-columns: 1fr;
    }
}

/* Profile Character Cards */
.profile-characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.profile-character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.profile-character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-character-card[data-faction="alliance"]::before {
    background: linear-gradient(90deg, transparent, rgba(0, 112, 221, 0.5), transparent);
}

.profile-character-card[data-faction="horde"]::before {
    background: linear-gradient(90deg, transparent, rgba(204, 0, 0, 0.5), transparent);
}

.profile-character-card:hover {
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 168, 255, 0.2), 0 0 0 1px rgba(0, 168, 255, 0.15);
    transform: translateY(-4px);
}

.profile-character-card[data-faction="alliance"]:hover {
    border-color: rgba(0, 112, 221, 0.4);
    box-shadow: 0 12px 48px rgba(0, 112, 221, 0.2), 0 0 0 1px rgba(0, 112, 221, 0.15);
}

.profile-character-card[data-faction="horde"]:hover {
    border-color: rgba(204, 0, 0, 0.4);
    box-shadow: 0 12px 48px rgba(204, 0, 0, 0.2), 0 0 0 1px rgba(204, 0, 0, 0.15);
}

.profile-character-card:hover::before {
    opacity: 1;
}

.profile-character-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15) 0%, rgba(0, 120, 212, 0.1) 100%);
    border: 3px solid rgba(0, 168, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-character-card:hover .profile-character-avatar {
    border-color: rgba(0, 168, 255, 0.5);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.3);
    transform: scale(1.1);
}

.profile-character-card[data-faction="alliance"] .profile-character-avatar {
    border-color: rgba(0, 112, 221, 0.3);
}

.profile-character-card[data-faction="alliance"]:hover .profile-character-avatar {
    border-color: rgba(0, 112, 221, 0.5);
    box-shadow: 0 8px 24px rgba(0, 112, 221, 0.3);
}

.profile-character-card[data-faction="horde"] .profile-character-avatar {
    border-color: rgba(204, 0, 0, 0.3);
}

.profile-character-card[data-faction="horde"]:hover .profile-character-avatar {
    border-color: rgba(204, 0, 0, 0.5);
    box-shadow: 0 8px 24px rgba(204, 0, 0, 0.3);
}

.profile-character-race-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-character-faction {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 32px;
    height: 32px;
    background: rgba(14, 22, 33, 0.95);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.profile-character-faction img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-character-online {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
}

.profile-character-online .online-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.profile-character-info {
    width: 100%;
}

.profile-character-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-break: break-word;
}

.profile-character-name-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-character-name-link:hover {
    color: var(--nav-accent-light);
    text-shadow: 0 2px 4px rgba(91, 127, 168, 0.5);
}

.profile-character-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.profile-character-class-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.profile-character-level {
    font-weight: 700;
    color: #00a8ff;
    font-size: 1rem;
}

.profile-character-separator {
    color: #666;
}

.profile-character-class {
    font-weight: 600;
}
/* Online Page */
.online-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.online-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.online-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.online-title svg {
    color: #4caf50;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
}

.online-count-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.15) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.online-count-badge .online-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: pulse 2s infinite;
}

.online-realm-status {
    font-size: 0.95rem;
    font-weight: 700;
}

.online-realm-status-online {
    color: #7ff0a1;
}

.online-realm-status-offline {
    color: #ff8b8b;
}

.online-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.online-empty h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 1.5rem 0 0.5rem;
}

.online-empty p {
    color: #a0a0a0;
    font-size: 1rem;
}

.online-characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Online List Styles */
.online-characters-list {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.online-list-header {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.online-list-header:not(.online-list-header-with-owner) {
    grid-template-columns: 2fr 0.8fr 1.5fr 1.2fr 0.8fr 1.5fr;
}

.online-list-header.online-list-header-with-owner {
    grid-template-columns: 2fr 0.8fr 1.5fr 1.2fr 0.8fr 1.5fr 1.5fr;
}

.online-list-body {
    display: flex;
    flex-direction: column;
}

.online-list-item {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    align-items: center;
}

.online-list-item:not(.online-list-item-with-owner) {
    grid-template-columns: 2fr 0.8fr 1.5fr 1.2fr 0.8fr 1.5fr;
}

.online-list-item.online-list-item-with-owner {
    grid-template-columns: 2fr 0.8fr 1.5fr 1.2fr 0.8fr 1.5fr 1.5fr;
}

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

.online-list-item:hover {
    background: rgba(0, 168, 255, 0.05);
    border-left: 3px solid rgba(0, 168, 255, 0.3);
}

.online-list-item[data-faction="alliance"]:hover {
    border-left-color: rgba(0, 112, 221, 0.3);
    background: rgba(0, 112, 221, 0.05);
}

.online-list-item[data-faction="horde"]:hover {
    border-left-color: rgba(204, 0, 0, 0.3);
    background: rgba(204, 0, 0, 0.05);
}

.online-list-col {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.online-list-col-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.online-list-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(56, 142, 60, 0.1) 100%);
    border: 2px solid rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.online-list-item[data-faction="alliance"] .online-list-avatar {
    border-color: rgba(0, 112, 221, 0.3);
}

.online-list-item[data-faction="horde"] .online-list-avatar {
    border-color: rgba(204, 0, 0, 0.3);
}

.online-list-race-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.online-list-faction-badge {
    width: 32px;
    height: 32px;
    background: rgba(14, 22, 33, 0.6);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.online-list-item:hover .online-list-faction-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.online-list-faction-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.online-list-faction-empty {
    color: #666;
    font-style: italic;
}

.online-list-online {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
}

.online-list-online .online-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
    animation: pulse 2s infinite;
}

.online-list-name {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.online-list-name:hover {
    color: var(--nav-accent-light);
    text-shadow: 0 2px 4px rgba(91, 127, 168, 0.5);
}

.online-list-level {
    font-weight: 700;
    color: #4caf50;
    font-size: 1.1rem;
}

.online-list-class {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-list-class-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.online-list-class-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.online-list-race {
    color: #a0a0a0;
    font-size: 0.95rem;
}

.online-list-owner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0a0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.online-list-owner-link:hover {
    color: #00a8ff;
    text-decoration: none;
}

.online-list-owner-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.online-list-owner-empty {
    color: #666;
    font-style: italic;
}

.online-list-zone {
    color: #b0b0b0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.online-character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(20, 28, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.online-character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.online-character-card[data-faction= alliance]::before {
    background: linear-gradient(90deg, transparent, rgba(0, 112, 221, 0.5), transparent);
}

.online-character-card[data-faction=horde]::before {
    background: linear-gradient(90deg, transparent, rgba(204, 0, 0, 0.5), transparent);
}

.online-character-card:hover {
    border-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 12px 48px rgba(76, 175, 80, 0.2), 0 0 0 1px rgba(76, 175, 80, 0.15);
    transform: translateY(-4px);
}

.online-character-card[data-faction=alliance]:hover {
    border-color: rgba(0, 112, 221, 0.4);
    box-shadow: 0 12px 48px rgba(0, 112, 221, 0.2), 0 0 0 1px rgba(0, 112, 221, 0.15);
}

.online-character-card[data-faction=horde]:hover {
    border-color: rgba(204, 0, 0, 0.4);
    box-shadow: 0 12px 48px rgba(204, 0, 0, 0.2), 0 0 0 1px rgba(204, 0, 0, 0.15);
}

.online-character-card:hover::before {
    opacity: 1;
}

.online-character-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(56, 142, 60, 0.1) 100%);
    border: 3px solid rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.online-character-card:hover .online-character-avatar {
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
    transform: scale(1.1);
}

.online-character-card[data-faction=alliance] .online-character-avatar {
    border-color: rgba(0, 112, 221, 0.3);
}

.online-character-card[data-faction=alliance]:hover .online-character-avatar {
    border-color: rgba(0, 112, 221, 0.5);
    box-shadow: 0 8px 24px rgba(0, 112, 221, 0.3);
}

.online-character-card[data-faction=horde] .online-character-avatar {
    border-color: rgba(204, 0, 0, 0.3);
}

.online-character-card[data-faction=horde]:hover .online-character-avatar {
    border-color: rgba(204, 0, 0, 0.5);
    box-shadow: 0 8px 24px rgba(204, 0, 0, 0.3);
}

.online-character-race-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.online-character-faction {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 32px;
    height: 32px;
    background: rgba(14, 22, 33, 0.95);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.online-character-faction img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.online-character-online {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
}

.online-character-online .online-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: pulse 2s infinite;
}

.online-character-info {
    width: 100%;
}

.online-character-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-break: break-word;
}

.online-character-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.online-character-class-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.online-character-level {
    font-weight: 700;
    color: #4caf50;
    font-size: 1rem;
}

.online-character-separator {
    color: #666;
}

.online-character-class {
    font-weight: 600;
}

.online-character-owner {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.online-character-owner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0a0;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
}

.online-character-owner-link:hover {
    color: #00a8ff;
    text-decoration: none;
}

.online-character-owner-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ============================================
   ARMORY / CHARACTER VIEW STYLES
   ============================================ */

/* Character view page styles */
.character-view-page {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.character-view-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.character-view-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.character-view-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00a8ff;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.3);
    text-decoration: none;
}

.character-view-header .back-link:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.5);
    transform: translateX(-5px);
    text-decoration: none;
}

.character-view-header .back-link svg {
    width: 16px;
    height: 16px;
}

.character-view-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nav-text-hover);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.character-view-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Hero Section */
.character-hero-section {
    position: relative;
    background: rgba(26, 35, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.character-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    opacity: 1;
    z-index: 0;
}

.character-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.character-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.character-avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.character-avatar-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

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

.character-hero-info {
    flex: 1;
}

.character-name-section {
    margin-bottom: 2rem;
}

.character-name-large {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.character-meta-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.character-class-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.character-class-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.4);
}

.character-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.character-level-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.character-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-icon-race {
    padding: 4px;
    background: transparent;
    border: none;
}

.race-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.detail-icon-faction {
    padding: 4px;
    background: transparent;
    border: none;
}

.detail-icon-faction .faction-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.character-class-badge .class-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.detail-label {
    font-size: 0.75rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
}

/* Stats Section */
.character-stats-section {
    margin-top: 1rem;
}

.stats-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.character-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card-large {
    background: rgba(26, 35, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--stat-color, #5b7fa8);
    transition: all 0.3s ease;
}

.stat-card-large:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-card-large:hover::before {
    width: 100%;
    opacity: 0.08;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--stat-color, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.stat-card-large:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-content-large {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-label-large {
    font-size: 0.75rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value-large {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--stat-color, #ffffff);
}

/* Stat-specific colors */
.stat-strength {
    --stat-color: #ff6b6b;
}

.stat-stamina {
    --stat-color: #4ecdc4;
}

.stat-agility {
    --stat-color: #95e1d3;
}

.stat-intellect {
    --stat-color: #a8e6cf;
}

.stat-spirit {
    --stat-color: #ffd93d;
}

.stat-armor {
    --stat-color: #c7c7c7;
}

/* Equipment Panel */
.character-panel {
    background: rgba(26, 35, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.equipment-achievements-wrapper {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: flex-start;
}

.character-panel--equipment {
    flex: 1;
    min-width: 0;
}

.character-panel--achievements {
    width: 30%;
    flex-shrink: 0;
    min-width: 280px;
}

.achievements-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Bags Section */
.character-bags-section {
    margin-top: 2.5rem;
}

.character-panel--bags {
    width: 100%;
}

.bags-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bag-container {
    background: rgba(20, 28, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

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

.bag-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.bag-slot {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.bag-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(61px, 1fr));
    gap: 4px;
    max-width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.bag-item-slot {
    position: relative;
    flex-shrink: 0;
    margin: 2px;
}

.bag-item-slot .item-holder {
    height: 57px;
    width: 57px;
    position: relative;
}

.bag-item-slot .item-slot {
    position: relative;
    display: block;
    width: 49px;
    height: 49px;
    margin: 4px;
    background-color: transparent;
    background-image: url('/assets/images/armory/item-empty-bg.png');
    background-repeat: no-repeat;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
    overflow: visible;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bag-item-slot .item-slot.empty {
    opacity: 0.35;
}

.bag-item-slot .item-slot.empty:hover {
    opacity: 0.66;
}

.bag-item-slot .item-slot.empty::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/armory/inventory-slots.png');
    background-repeat: no-repeat;
    background-position: 0 0;
}

.bag-item-slot .item-slot .item-quality {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.bag-item-slot .item-slot .item-quality a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background-image: url('/assets/images/armory/inventory-slots.png');
    background-repeat: no-repeat;
    z-index: 2;
}

/* Обводка по качеству предметов для сумок */
.bag-item-slot .item-slot .item-quality.quality-0 a::before { background-position: -49px 0px !important; }
.bag-item-slot .item-slot .item-quality.quality-1 a::before { background-position: -98px 0px !important; }
.bag-item-slot .item-slot .item-quality.quality-2 a::before { background-position: -147px 0px !important; }
.bag-item-slot .item-slot .item-quality.quality-3 a::before { background-position: -196px 0px !important; }
.bag-item-slot .item-slot .item-quality.quality-4 a::before { background-position: -245px 0px !important; }
.bag-item-slot .item-slot .item-quality.quality-5 a::before { background-position: -294px 0px !important; }
.bag-item-slot .item-slot .item-quality.quality-6 a::before { background-position: -343px 0px !important; }
.bag-item-slot .item-slot .item-quality.quality-7 a::before { background-position: -392px 0px !important; }

.bag-item-slot .item-slot[data-entry] {
    cursor: pointer;
}

.bag-item-slot .item-slot:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.bag-item-slot .item-name-overlay {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.bag-item-slot .item-slot:hover .item-name-overlay {
    opacity: 1;
}

.panel-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.profile_row {
    margin: 0;
    padding: 0;
}

.armory_row {
    padding: 0;
    margin: 0;
}

.armory_tab {
    width: 100%;
}

.pull_left {
    float: left;
}

.pull_right {
    float: right;
}

.self_clear::after {
    content: "";
    display: block;
    clear: both;
}

.inventory_row {
    position: relative;
    width: 100%;
    min-height: 420px;
}

.inventory_row .inventory_left,
.inventory_row .inventory_right {
    margin: 0 0 -10px;
    width: auto;
    position: relative;
    z-index: 3;
}

.inventory_row .inventory_bottom {
    margin: 0 -10px 0 0;
    text-align: center;
}

.inventory_row .character_frame {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 360px;
    max-width: 100%;
    pointer-events: none;
    z-index: 1;
}

.inventory_row .character_frame .model {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventory_row .item-holder {
    height: 57px;
    width: 57px;
}

.inventory_row .item-holder .item-slot {
    position: relative;
    display: block;
    width: 49px;
    height: 49px;
    margin: 4px;
    background-color: transparent;
    background-image: url('/assets/images/armory/item-empty-bg.png');
    background-repeat: no-repeat;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
    overflow: visible;
    pointer-events: auto;
    cursor: pointer;
}

.inventory_row .item-holder .item-slot.empty {
    opacity: 0.35;
}

.inventory_row .item-holder .item-slot.empty:hover {
    opacity: 0.66;
}

.inventory_row .item-holder .item-slot.empty::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/armory/inventory-slots.png');
    background-repeat: no-repeat;
    background-position: 0 0;
}

.inventory_row .item-holder .item-slot .item-quality {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.inventory_row .item-holder .item-slot .item-quality a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background-image: url('/assets/images/armory/inventory-slots.png');
    background-repeat: no-repeat;
    z-index: 2;
}

.slot-0 { background-position: 1px 1px !important; }
.slot-1 { background-position: 1px -49px !important; }
.slot-2 { background-position: 1px -96px !important; }
.slot-3 { background-position: 1px -234px !important; }
.slot-4 { background-position: 1px -140px !important; }
.slot-5 { background-position: 1px -375px !important; }
.slot-6 { background-position: 1px -422px !important; }
.slot-7 { background-position: 1px -469px !important; }
.slot-8 { background-position: 1px -281px !important; }
.slot-9 { background-position: 1px -328px !important; }
.slot-10,
.slot-11 { background-position: 1px -516px !important; }
.slot-12,
.slot-13 { background-position: 1px -563px !important; }
.slot-14 { background-position: 1px -140px !important; }
.slot-15 { background-position: 1px -610px !important; }
.slot-16 { background-position: 1px -657px !important; }
.slot-17 { background-position: 1px -704px !important; }
.slot-18 { background-position: 1px -187px !important; }

.inventory_row.advanced .inventory_bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.inventory_row.advanced .inventory_bottom .item-holder {
    float: none;
    margin: 0;
}

/* Обводка по качеству предметов (Quality 0-7) */
.inventory_row .item-holder .item-slot .item-quality.quality-0 a::before { background-position: -49px 0px !important; }
.inventory_row .item-holder .item-slot .item-quality.quality-1 a::before { background-position: -98px 0px !important; }
.inventory_row .item-holder .item-slot .item-quality.quality-2 a::before { background-position: -147px 0px !important; }
.inventory_row .item-holder .item-slot .item-quality.quality-3 a::before { background-position: -196px 0px !important; }
.inventory_row .item-holder .item-slot .item-quality.quality-4 a::before { background-position: -245px 0px !important; }
.inventory_row .item-holder .item-slot .item-quality.quality-5 a::before { background-position: -294px 0px !important; }
.inventory_row .item-holder .item-slot .item-quality.quality-6 a::before { background-position: -343px 0px !important; }
.inventory_row .item-holder .item-slot .item-quality.quality-7 a::before { background-position: -392px 0px !important; }

.inventory_row .item-holder .item-slot[data-entry] {
    cursor: pointer;
}

.item-icon-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 49px;
    height: 49px;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.bag-item-slot .item-icon-image {
    width: 49px;
    height: 49px;
}

.clear {
    clear: both;
}

.achievement-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #d6def6;
}

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

.achievement-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.achievement-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.achievement-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.achievement-list li {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-bottom: 0.75rem;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: none;
    list-style: none;
}

.achievement-list li:last-child {
    margin-bottom: 0;
}

.achievement-list li:hover {
    background: transparent;
    transform: none;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ffd700 0%, #ffed4e 100%);
    transition: width 0.3s ease;
}

.achievement-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.achievement-item:hover::before {
    width: 100%;
    opacity: 0.1;
}

.achievement-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    padding-right: 0.5rem;
}

.achievement-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 0.25rem;
}

.achievement-points {
    font-size: 12px;
    color: #ffd700;
    font-weight: 600;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.achievement-points::before {
    content: '';
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.achievement-meta {
    font-size: 11px;
    color: #a0a0a0;
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.achievement-meta::before {
    content: '';
    width: 12px;
    height: 12px;
    background: rgba(160, 160, 160, 0.3);
    border-radius: 2px;
    display: inline-block;
    position: relative;
}

.achievement-meta::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid #a0a0a0;
    border-top: none;
    border-right: none;
    border-radius: 0 0 0 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Tooltip styles */
#tooltip {
    position: fixed !important;
    background: rgba(15, 20, 27, 0.96) !important;
    border: 1px solid !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    width: 336px !important;
    max-width: 336px !important;
    min-width: 250px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #e3eafc !important;
    pointer-events: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    transition: opacity 0.2s ease !important;
    display: none;
    visibility: hidden;
    opacity: 0;
    left: -9999px;
    top: -9999px;
}

#tooltip.show,
#tooltip[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#tooltip strong {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

#tooltip .socket {
    width: 16px !important;
    height: 16px !important;
    margin-right: 5px !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

#tooltip .classes-container {
    display: block !important;
    margin: 4px 0 2px 0 !important;
}

#tooltip .classes-container span {
    display: inline !important;
    margin-right: 5px !important;
}

#tooltip br {
    line-height: 1.3 !important;
    margin: 0 !important;
}

#tooltip span {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #d6def6 !important;
    margin: 2px 0 !important;
}

#tooltip div {
    margin: 3px 0 !important;
}

#tooltip font {
    display: block !important;
    margin-top: 4px !important;
    font-style: italic !important;
    font-size: 11px !important;
}

/* Panel styles */
.panel-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel-group--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.panel-subsection {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-subtitle {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #f4f7ff;
}

.key-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #d0d9f3;
}

.key-stats li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.key-stats li:last-child {
    border-bottom: none;
}

.key-stats .label {
    color: #8fa1c8;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.key-stats .value {
    color: #f4f7ff;
    font-weight: 600;
}

/* Responsive styles for armory */
@media (max-width: 1024px) {
    .character-hero-content {
        gap: 2rem;
    }

    .character-name-large {
        font-size: 2.5rem;
    }

    .inventory_row .character_frame {
        position: static;
        margin: 24px auto;
    }

    .pull_left,
    .pull_right {
        float: none;
    }

    .inventory_row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin: 0;
    }

    .inventory_row .inventory_left,
    .inventory_row .inventory_right {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 0;
    }

    .equipment-achievements-wrapper {
        flex-direction: column;
    }

    .character-panel--equipment {
        width: 100%;
    }

    .character-panel--achievements {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .character-view-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .character-hero-section {
        padding: 2rem;
    }

    .character-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .character-avatar-large {
        width: 160px;
        height: 160px;
    }

    .character-avatar-glow {
        width: 200px;
        height: 200px;
    }

    .character-name-large {
        font-size: 2rem;
    }

    .character-meta-badges {
        justify-content: center;
    }

    .character-details-grid {
        grid-template-columns: 1fr;
    }

    .character-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .character-view-title {
        font-size: 2rem;
    }

    .character-hero-section {
        padding: 1.5rem;
    }

    .character-avatar-large {
        width: 120px;
        height: 120px;
    }

    .character-avatar-glow {
        width: 160px;
        height: 160px;
    }

    .character-name-large {
        font-size: 1.75rem;
    }

    .character-class-badge,
    .character-level-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

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

    .stat-card-large {
        padding: 1.25rem;
    }

    .stat-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .stat-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .stat-value-large {
        font-size: 1.3rem;
    }

    .character-panel {
        padding: 1.5rem;
    }

    .panel-title {
        font-size: 1.5rem;
    }

    .equipment-achievements-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .character-panel--equipment,
    .character-panel--achievements {
        width: 100%;
        min-width: 0;
    }

    .achievement-list {
        max-height: 400px;
    }

    .achievement-list li {
        padding: 10px 12px;
    }

    .achievement-title {
        font-size: 13px;
    }
}

/* Global mobile hotfixes */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

.main-content,
.main-content .container {
    min-width: 0;
}

pre {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .navbar-left {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .nav-menu > li {
        height: auto;
    }

    .nav-menu > li.nav-server-status-item {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .navbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.5rem 0.75rem;
    }

    .navbar-left {
        justify-content: flex-start;
    }

    .nav-mobile-toggle {
        display: inline-flex;
    }

    .main-content {
        padding: 1rem 0;
    }

    .nav-home,
    .nav-bugtracker,
    .nav-chat {
        font-size: 0.76rem;
        padding: 0.35rem 0.1rem;
    }

    .nav-menu {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
        padding: 0.5rem;
        gap: 0.4rem;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        background: rgba(16, 24, 36, 0.92);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    }

    .navbar.is-mobile-menu-open .nav-menu {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
        justify-content: stretch;
        height: auto;
        min-height: 36px;
    }

    .nav-menu > li > a,
    .nav-menu > li > button,
    .nav-menu > li .nav-dropdown-toggle,
    .nav-menu > li .nav-locale-btn,
    .nav-menu > li .nav-login,
    .nav-menu > li .nav-donate,
    .nav-menu > li .nav-notifications-toggle {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown-toggle,
    .nav-locale-btn,
    .nav-login,
    .nav-donate,
    .nav-menu > li.nav-online {
        height: 36px;
        padding: 0.4rem 0.8rem !important;
    }

    .nav-menu > li.nav-server-status-item {
        height: auto;
        padding: 0.35rem 0.65rem;
        gap: 0.25rem;
        justify-content: center;
    }

    .nav-server-status-label,
    .nav-server-status-value {
        font-size: 0.78rem;
    }

    .nav-notifications-panel {
        right: 0;
        width: min(360px, calc(100vw - 24px));
    }

    .main-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
