body {
    margin: 0;
    background: #0b1016;
    font-family: 'Poppins', Arial, sans-serif;
    color: #f4f5f7;
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --navbar-height: 104px;
    --content-gutter: 28px;
    --color-primary: #3b82f6;
}

.page-content {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.navbar {
    width: 100%;
    padding: 18px 32px;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-inner {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--content-gutter);
    gap: 48px;
    background: linear-gradient(90deg, rgba(10, 14, 18, 0.95) 0%, rgba(10, 14, 18, 0.75) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(21, 26, 33, 0.75);
    cursor: pointer;
    padding: 8px;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.menu-toggle span {
    height: 2px;
    background: #f4f5f7;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #f4f5f7;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.6px;
}

.brand span {
    display: inline-block;
}

.brand-name span {
    color: #3b82f6;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    position: relative;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.brand-icon::after,
.brand-icon::before {
    content: "";
    position: absolute;
    background: rgba(8, 10, 12, 0.12);
    border-radius: 2px;
}

.brand-icon::after {
    width: 18px;
    height: 4px;
    top: 12px;
    left: 9px;
    transform: rotate(-35deg);
}

.brand-icon::before {
    width: 8px;
    height: 8px;
    bottom: 8px;
    right: 9px;
    transform: rotate(45deg);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-links li {
    position: relative;
}

.nav-links a,
.nav-links button {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #c6cad5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 10px;
    transition: color 0.25s ease, background 0.25s ease;
    position: relative;
}

.nav-links button {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.nav-links a:hover,
.nav-links button:hover {
    color: #ffffff;
}

.nav-links a:focus-visible,
.nav-links button:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.65);
    outline-offset: 2px;
}

.nav-links a.active,
.nav-links button.active {
    color: #fff;
    font-weight: 600;
}

.nav-links a.active::after,
.nav-links button.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6 0%, #93c5fd 100%);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
}

.nav-links li:not(.play-item):not(.donate-item) > a:hover,
.nav-links li:not(.play-item):not(.donate-item) > button:hover,
.nav-links li:not(.play-item):not(.donate-item) > a.active,
.nav-links li:not(.play-item):not(.donate-item) > button.active {
    background: rgba(255, 255, 255, 0.05);
}

.has-dropdown {
    position: relative;
}

.link-caret {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.25s ease;
}

.has-dropdown.dropdown-open > .dropdown-toggle .link-caret,
.has-dropdown:hover > .dropdown-toggle .link-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 16px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(15, 20, 27, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: inherit;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
}

.dropdown-menu::after {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #e3eafc;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.has-dropdown.dropdown-open > .dropdown-menu,
.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.play-item > .dropdown-toggle {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #131519;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.35);
}

.play-item > .dropdown-toggle:hover {
    color: #0b1016;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.45);
}

.play-item .dropdown-menu {
    background: rgba(8, 18, 36, 0.96);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 18px 35px rgba(59, 130, 246, 0.28);
}

.play-item .dropdown-menu::before {
    border-left-color: rgba(59, 130, 246, 0.25);
    border-top-color: rgba(59, 130, 246, 0.25);
}

.play-item .dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.donate-item {
    margin-left: 8px;
}

.donate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #131519;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.donate-button:hover {
    color: #0b1016;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

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

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-button--login {
    background: rgba(18, 26, 40, 0.75);
    color: #f4f5f7;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(6, 10, 18, 0.35);
}

.auth-button--login:hover {
    background: rgba(24, 32, 48, 0.85);
    border-color: rgba(239, 151, 47, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(6, 10, 18, 0.45);
}

.auth-button--login:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(6, 10, 18, 0.3);
}

.auth-button--register {
    background: linear-gradient(135deg, #ef972f 0%, #d4821f 100%);
    color: #1a0f08;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(239, 151, 47, 0.35);
}

.auth-button--register:hover {
    background: linear-gradient(135deg, #d4821f 0%, #c0731a 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(239, 151, 47, 0.45);
    color: #0b1016;
}

.auth-button--register:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(239, 151, 47, 0.3);
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.auth-button:hover::before {
    left: 100%;
}

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

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(21, 26, 33, 0.68);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.language-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #c6cad5;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.language-option:hover {
    color: #ffffff;
}

.language-option.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #131519;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.35);
}

.language-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
}

.language-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notifications {
    position: relative;
}

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

.currency-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #dce4f7;
    background: rgba(21, 26, 33, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.currency-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.currency-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 0 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
    color: #ffffff;
}

.currency-item:hover::before {
    left: 100%;
}

.currency-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
}

.icon-blue {
    background: radial-gradient(circle at 30% 30%, #cbe6ff, #3a8bfa 70%, #1d3d81);
    box-shadow: 0 0 12px rgba(58, 139, 250, 0.55);
}

.icon-gold {
    background: radial-gradient(circle at 30% 30%, #dbeafe, #3b82f6 65%, #1e3a8a);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
}

.currency-value {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Специальные стили для иконки голосов */
.currency-item .currency-icon:not(.icon-gold):not(.icon-blue) {
    width: 22px;
    height: 22px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.25);
}

.currency-item:hover .currency-icon:not(.icon-gold):not(.icon-blue) {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
    transition: all 0.25s ease;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(21, 26, 33, 0.75);
    color: #f3f4f8;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: border 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.profile-button:hover {
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b3f4b 0%, #21242b 100%);
    position: relative;
    overflow: hidden;
}

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

.username {
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
}

.profile-caret {
    font-size: 10px;
    opacity: 0.7;
}

.profile-menu {
    position: relative;
}

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

.profile-auth-buttons a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 10px 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.profile-auth-buttons .btn-login {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(18, 26, 40, 0.75);
    color: #f3f4f8;
    box-shadow: 0 12px 30px rgba(6, 10, 18, 0.45);
}

.profile-auth-buttons .btn-login:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 16px 38px rgba(10, 16, 26, 0.55);
    color: #bfdbfe;
}

.profile-auth-buttons .btn-register {
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #14181f;
    box-shadow: 0 18px 46px rgba(59, 130, 246, 0.38);
}

.profile-auth-buttons .btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 58px rgba(59, 130, 246, 0.48);
    color: #0b1016;
}

.profile-dropdown {
    width: 240px;
    left: auto;
    right: 0;
    padding: 20px 20px 16px;
    gap: 6px;
    margin-top: 4px;
    top: calc(100% + 4px);
}

.profile-dropdown::before {
    top: -12px;
    left: auto;
    right: 36px;
    width: 18px;
    height: 18px;
}

.profile-dropdown::after {
    top: -24px;
    left: 0;
    right: 0;
    height: 28px;
}

.profile-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-name {
    font-size: 15px;
    font-weight: 600;
    color: #f3f4f8;
}

.profile-role {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #93a0c2;
}

.profile-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
    margin: 4px 0;
}

.profile-dropdown a {
    font-size: 13px;
    font-weight: 500;
}

.profile-dropdown a.logout-link {
    color: #ff8d8d;
}

.profile-dropdown a.logout-link:hover {
    color: #ffc0c0;
}

.notifications-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(21, 26, 33, 0.75);
    cursor: pointer;
    transition: border 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.notifications-button:hover {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.notification-icon svg {
    width: 22px;
    height: 22px;
    fill: #f3f4f8;
    transition: fill 0.25s ease;
}

.notifications-button:hover .notification-icon svg {
    fill: #bfdbfe;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #0b1016;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 95, 109, 0.35);
}

.notifications.no-unread .notification-badge {
    display: none;
}

.notifications-menu {
    width: 320px;
    max-width: 90vw;
    padding: 20px 20px 14px;
    gap: 10px;
    left: auto;
    right: 0;
    margin-top: 4px;
    top: calc(100% + 4px);
}
.notifications-menu::before {
    top: -12px;
    left: auto;
    right: 36px;
    width: 18px;
    height: 18px;
}

.notifications-menu::after {
    top: -24px;
    left: 0;
    right: 0;
    height: 28px;
}

.notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
}

.notifications-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #f3f4f8;
}

.notifications-mark-read {
    border: none;
    background: transparent;
    color: #9aa5c6;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.notifications-mark-read:hover {
    color: #bfdbfe;
}

.notification-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: #d7ddf3;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.notification-item.unread {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.22);
    background: rgba(59, 130, 246, 0.12);
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 30%, #bfdbfe, #3b82f6 70%, #1e3a8a);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    margin-top: 4px;
    opacity: 0.6;
}

.notification-item:not(.unread) .notification-dot {
    opacity: 0.25;
    box-shadow: none;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.35;
}

.notification-text {
    font-weight: 500;
}

.notification-time {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #93a0c2;
}

.notifications-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
    margin-top: 4px;
    text-align: center;
}

.notifications-link {
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.notifications-link:hover {
    color: #ffffff;
}

.hero-video {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: calc(-1 * var(--navbar-height)) 0 0;
    padding-top: var(--navbar-height);
    width: 100%;
    min-height: calc(100vh);
    min-height: 100svh;
    color: #f4f8ff;
}
.hero-background {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-background::-webkit-media-controls {
    display: none !important;
}

.hero-background::-webkit-media-controls-enclosure,
.hero-background::-webkit-media-text-track-display,
.hero-background::-webkit-media-text-track-container {
    display: none !important;
}

.hero-background::cue {
    display: none;
    visibility: hidden;
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(54, 82, 128, 0.45) 0%, rgba(9, 13, 18, 0) 54%),
        radial-gradient(circle at 82% 15%, rgba(2, 3, 5, 0.55) 0%, rgba(9, 13, 18, 0) 60%),
        linear-gradient(120deg, rgba(6, 8, 12, 0.88) 0%, rgba(9, 13, 18, 0.62) 46%, rgba(9, 13, 18, 0.28) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
    padding: 64px var(--content-gutter) 56px;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.hero-inner::before,
.hero-inner::after {
    content: none !important;
}

.hero-copy {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    margin: 0;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #e4e6eb 50%, #c9d6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.hero-description {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: #d1d9f0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    letter-spacing: 0.2px;
}

.hero-top {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 36px;
}

.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    min-width: 460px;
    max-width: 500px;
}

.hero-stats {
    display: inline-flex;
    gap: 16px;
    align-items: stretch;
    min-width: 0;
    justify-self: end;
}

.hero-stats-card {
    position: relative;
    min-width: 460px;
    max-width: 500px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(12, 18, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(6, 10, 16, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.hero-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px rgba(6, 10, 16, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero-stats-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.25;
    pointer-events: none;
}

.hero-stats-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats-card__realm {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.hero-stats-card__realm-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-stats-card__realm-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stats-card__realm-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-stats-card__realm-type {
    font-size: 11px;
    font-weight: 500;
    color: #97a9d4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stats-card__rates {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hero-stats-card__rate {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.hero-stats-card__rate:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.hero-stats-card__rate--premium {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-stats-card__rate--premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-stats-card__rate--premium:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.hero-stats-card__rate--premium:hover::before {
    opacity: 1;
}

.hero-stats-card__rate-icon {
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.hero-stats-card__rate-value {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-stats-card__rate--premium .hero-stats-card__rate-value {
    color: #2563eb;
    text-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
}

.hero-stats-card__rate-label {
    font-size: 10px;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 2px;
    opacity: 0.9;
}

.hero-stats-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-stats-card__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.hero-stats-card__stat-value {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-stats-card__stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #b8c5e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stats-card__factions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats-card__factions-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.hero-stats-card__faction-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-stats-card__faction-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-stats-card__faction-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-stats-card__faction-card:hover::before {
    opacity: 1;
}

.hero-stats-card__faction-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-stats-card__faction-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    object-fit: contain;
}

.hero-stats-card__faction-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-stats-card__faction-card-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.hero-stats-card__faction-value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-stats-card__faction-percent {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.9;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stats-card__faction-card--alliance {
    border-color: rgba(74, 144, 226, 0.2);
}

.hero-stats-card__faction-card--alliance:hover {
    border-color: rgba(74, 144, 226, 0.4);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
}

.hero-stats-card__faction-card--alliance .hero-stats-card__faction-label,
.hero-stats-card__faction-card--alliance .hero-stats-card__faction-value,
.hero-stats-card__faction-card--alliance .hero-stats-card__faction-percent {
    color: #4a90e2;
}

.hero-stats-card__faction-card--horde {
    border-color: rgba(231, 76, 60, 0.2);
}

.hero-stats-card__faction-card--horde:hover {
    border-color: rgba(231, 76, 60, 0.4);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.2);
}

.hero-stats-card__faction-card--horde .hero-stats-card__faction-label,
.hero-stats-card__faction-card--horde .hero-stats-card__faction-value,
.hero-stats-card__faction-card--horde .hero-stats-card__faction-percent {
    color: #e74c3c;
}

.hero-stats-card__factions-progress {
    margin-top: 4px;
}

.hero-stats-card__progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 2px;
}

.hero-stats-card__progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-stats-card__progress-fill--alliance {
    background: linear-gradient(90deg, #4a90e2 0%, #5ba3f5 100%);
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.4);
}

.hero-stats-card__progress-fill--alliance::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
    animation: fadeShine 2s ease-in-out infinite;
}

.hero-stats-card__progress-fill--horde {
    background: linear-gradient(90deg, #e74c3c 0%, #f55c4d 100%);
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

.hero-stats-card__progress-fill--horde::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
    animation: fadeShine 2s ease-in-out infinite;
}

@keyframes fadeShine {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.hero-stats-card__footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats-card__guilds {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.hero-stats-card__guilds-icon {
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-stats-card__guilds-label {
    font-size: 12px;
    font-weight: 500;
    color: #97a9d4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stats-card__guilds-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-stats-card--realm-list {
    margin-top: 0;
}

.hero-stats-card__realm-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-stats-card__realm-list-icon {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-stats-card__realm-list-label {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-stats-card__realm-list-description {
    margin: 0 0 16px;
    font-size: 13px;
    color: #97a9d4;
    line-height: 1.5;
}

.hero-stats-card__realm-list-box {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.hero-stats-card__realm-list-content {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e4e6eb;
    background: rgba(5, 8, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
    line-height: 1.6;
    word-break: break-all;
    user-select: all;
    cursor: text;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-stats-card__realm-list-content:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(5, 8, 13, 0.7);
}

.hero-stats-card__realm-list-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-stats-card__realm-list-copy:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.hero-stats-card__realm-list-copy:active {
    transform: translateY(0);
}

.hero-stats-card__realm-list-copy .copy-button__icon {
    font-size: 16px;
    line-height: 1;
}

.hero-stats-card__realm-list-copy .copy-button__label {
    font-size: 13px;
    font-weight: 600;
}

.hero-stats-card--realm-list {
    margin-top: 0;
}

.hero-stats-card__realm-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-stats-card__realm-list-icon {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-stats-card__realm-list-label {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-stats-card__realm-list-description {
    margin: 0 0 16px;
    font-size: 13px;
    color: #97a9d4;
    line-height: 1.5;
}

.hero-stats-card__realm-list-box {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.hero-stats-card__realm-list-content {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e4e6eb;
    background: rgba(5, 8, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
    line-height: 1.6;
    word-break: break-all;
    user-select: all;
    cursor: text;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-stats-card__realm-list-content:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(5, 8, 13, 0.7);
}

.hero-stats-card__realm-list-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-stats-card__realm-list-copy:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.hero-stats-card__realm-list-copy:active {
    transform: translateY(0);
}

.hero-stats-card__realm-list-copy .copy-button__icon {
    font-size: 16px;
    line-height: 1;
}

.hero-stats-card__realm-list-copy .copy-button__label {
    font-size: 13px;
    font-weight: 600;
}

.hero-stat {
    position: relative;
    min-width: 160px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(12, 18, 26, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(6, 10, 16, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    color: #eaeefc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.hero-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(6, 10, 16, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.hero-stat::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.2;
    pointer-events: none;
}

.hero-stat__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.hero-stat__icon {
    font-size: 18px;
    line-height: 1;
}

.hero-stat__title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #b8c5e0;
    line-height: 1.2;
}

.hero-stat__value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    margin: 4px 0;
}

.hero-stat__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: none;
    color: #97a9d4;
    line-height: 1.4;
}

.hero-stat__factions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat__faction {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #c9d6ff;
}

.hero-stat__faction .faction-icon {
    font-size: 14px;
}

.hero-stat__faction--alliance {
    color: #4a90e2;
}

.hero-stat__faction--horde {
    color: #e74c3c;
}

.hero-stat--realm {
    min-width: 180px;
}

.hero-stat--rate {
    min-width: 140px;
}

.hero-stat--guilds {
    min-width: 150px;
}

.stat-card {
    position: relative;
    width: 160px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(12, 18, 26, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 16px 32px rgba(6, 10, 16, 0.28);
    backdrop-filter: blur(8px);
    color: #eaeefc;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.18;
    pointer-events: none;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #97a9d4;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.stat-value.online {
    color: #7fffc3;
    text-shadow: 0 16px 32px rgba(14, 236, 160, 0.35);
}

.stat-footer {
    font-size: 11px;
    font-weight: 500;
    color: #a8b5da;
    letter-spacing: 0.4px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    align-items: center;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-action {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #14181f;
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.35);
}

.primary-action:hover {
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

.secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f4f8ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(10, 16, 24, 0.45);
}

.secondary-action:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.hero-news {
    width: 100%;
    padding: 80px var(--content-gutter, 28px);
    max-width: 1480px;
    margin: 0 auto;
}

.hero-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.hero-news-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
    letter-spacing: -0.5px;
}

.hero-news-link {
    color: #8fa6d8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.hero-news-link:hover {
    color: #3b82f6;
}

.hero-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hero-news-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    background: rgba(12, 18, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 52px rgba(3, 7, 14, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    height: 100%;
}

.hero-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(3, 7, 14, 0.45);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero-news-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.hero-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 0.35s ease;
}

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

.hero-news-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.hero-news-card__category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8fa6d8;
    align-self: flex-start;
    background: rgba(143, 166, 216, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
}

.hero-news-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #f4f7ff;
}

.hero-news-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #a7b4ce;
    flex: 1;
}

.hero-news-card__date {
    font-size: 12px;
    color: #8fa6d8;
    font-weight: 500;
}

.hero-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 0.35s ease;
}

.hero-news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(190deg, rgba(1, 4, 9, 0.05) 0%, rgba(1, 4, 9, 0.75) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-news-card:hover::after {
    opacity: 0.3;
}

.hero-news-overlay {
    position: absolute;
    inset: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;
    pointer-events: none;
}

.home-info {
    padding: 64px var(--content-gutter, 28px) 80px;
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, rgba(9, 13, 18, 0.4) 0%, rgba(9, 13, 18, 0.8) 100%);
}

.home-info__card {
    width: min(100%, 1040px);
    padding: 36px 42px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(12, 18, 30, 0.88);
    box-shadow: 0 32px 90px rgba(3, 6, 12, 0.56);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.home-info__head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #f4f7ff;
    letter-spacing: 0.3px;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(15, 22, 36, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8fa4ce;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #f4f7ff;
}

.status-online {
    color: #7bffb0;
}

.status-offline {
    color: #ff9a9a;
}

.home-info__realmlist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.realmlist-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9fb4dd;
}

.realmlist-field {
    display: flex;
    align-items: center;
    gap: 14px;
}

.realmlist-input {
    flex: 1;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(93, 140, 255, 0.25);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 15px;
    font-family: inherit;
}

.realmlist-input:focus-visible {
    outline: none;
    border-color: rgba(93, 140, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(93, 140, 255, 0.18);
}

.realmlist-copy {
    padding: 12px 20px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #5d8cff 0%, #3a62d8 100%);
    color: #f7f9ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.realmlist-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(61, 104, 218, 0.45);
}

.realmlist-status {
    font-size: 12px;
    font-weight: 600;
    color: #7bffb0;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .home-info__card {
        padding: 28px 24px;
    }

    .home-info__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .realmlist-field {
        flex-direction: column;
        align-items: stretch;
    }

    .realmlist-copy {
        width: 100%;
    }

    .footer-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-payment {
        margin-top: 24px;
        justify-content: center;
    }
}


.hero-news-meta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #8fa6d8;
    align-self: flex-end;
    background: rgba(4, 7, 12, 0.55);
    padding: 6px 10px;
    border-radius: 999px;
}

.hero-news-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #ffffff;
    max-width: 80%;
}


.site-footer {
    background: rgba(5, 9, 14, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -24px 60px rgba(2, 5, 9, 0.45);
    padding: 48px var(--content-gutter) 36px;
    color: #a7b4ce;
}

.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand .brand {
    width: max-content;
}

.footer-description {
    margin: 0;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.6;
    color: #c6d3eb;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 13px;
    color: #8f9bb8;
}

.footer-meta strong {
    color: #bfdbfe;
    font-weight: 700;
}

.footer-payment {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-payment a {
    display: inline-block;
    transition: all 0.2s ease;
    overflow: hidden;
    border-radius: 12px;
}

.footer-payment a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.footer-payment img {
    max-width: 180px;
    width: auto;
    height: auto;
    max-height: 60px;
    display: block;
    border-radius: 12px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .hero-news {
        padding: 60px var(--content-gutter, 28px);
    }

    .hero-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .hero-news-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hero-news {
        padding: 48px var(--content-gutter, 28px);
    }

    .hero-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }

    .hero-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-news-title {
        font-size: 24px;
    }
}

@media (max-width: 520px) {
    .hero-news {
        padding: 36px var(--content-gutter, 20px);
    }

    .hero-news-card__image {
        height: 180px;
    }

    .hero-news-card__content {
        padding: 16px;
    }
}

/* Server Info Section */
.server-info {
    width: 100%;
    padding: 80px var(--content-gutter, 28px);
    background: linear-gradient(180deg, rgba(9, 13, 18, 0.95) 0%, rgba(11, 16, 22, 0.98) 100%);
    position: relative;
}

.server-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(54, 82, 128, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(2, 3, 5, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.server-info-container {
    max-width: 1480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.server-info-header {
    text-align: center;
    margin-bottom: 48px;
}

.server-info-title {
    margin: 0 0 12px;
    font-size: 36px;
    font-weight: 700;
    color: #f4f7ff;
    letter-spacing: -0.5px;
}

.server-info-subtitle {
    margin: 0;
    font-size: 16px;
    color: #9fb4dd;
    line-height: 1.6;
}

.server-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.server-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(12, 18, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.server-info-card:hover {
    background: rgba(15, 22, 32, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.server-info-card__icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

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

.server-info-card__title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    color: #9fb4dd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-info-card__value {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
    line-height: 1.4;
}

.server-info-card__value.online {
    color: #4ade80;
}

.realm-list-section {
    margin-top: 48px;
}

.realm-list-header {
    text-align: center;
    margin-bottom: 24px;
}

.realm-list-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.realm-list-description {
    margin: 0;
    font-size: 14px;
    color: #9fb4dd;
}

.realm-list-box {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 12px;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.realm-list-content {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #f4f7ff;
    background: rgba(5, 8, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px 20px;
    line-height: 1.6;
    word-break: break-all;
    user-select: all;
    cursor: text;
}

.realm-list-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.realm-list-copy:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    color: #bfdbfe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.realm-list-copy:active {
    transform: translateY(0);
}

.realm-list-copy.copied {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.25) 100%);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.copy-button__icon {
    font-size: 18px;
    line-height: 1;
}

.copy-button__label {
    font-size: 14px;
}

@media (max-width: 768px) {
    .server-info {
        padding: 60px var(--content-gutter, 28px);
    }

    .server-info-title {
        font-size: 28px;
    }

    .server-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .server-info-card {
        padding: 20px;
    }

    .realm-list-box {
        flex-direction: column;
        padding: 16px;
    }

    .realm-list-copy {
        width: 100%;
        justify-content: center;
    }

    .realm-list-content {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 820px) {
    .site-footer {
        margin-top: 36px;
        padding: 40px var(--content-gutter) 30px;
    }
}

@media (max-width: 520px) {
    .site-footer {
        margin-top: 24px;
    }
}
/* ---------- Auth page ---------- */

.auth-page {
    background:
        radial-gradient(circle at 15% 20%, rgba(74, 109, 173, 0.22), rgba(9, 13, 18, 0)) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at 82% 8%, rgba(46, 67, 110, 0.3), rgba(9, 13, 18, 0)) 0 0 / 100% 100% no-repeat,
        linear-gradient(140deg, #05080d 0%, #101722 55%, #0a1018 100%);
}

.auth-layout {
    min-height: calc(100svh - 40px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: calc(var(--navbar-height, 104px) + 8px) var(--content-gutter, 28px) 100px;
}

.auth-shell {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    background: rgba(7, 10, 16, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 36px 120px rgba(2, 5, 12, 0.55);
    position: relative;
}

.auth-card {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #e9eefb;
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.96) 0%, rgba(9, 13, 18, 0.94) 100%);
}

.auth-card__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ffffff;
}

.auth-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #aebce0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form--register {
    gap: 20px;
}

.auth-form--register .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.auth-form--recovery {
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8896ba;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 16px;
    background: rgba(14, 19, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(15, 20, 29, 0.8);
    transition: border 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.input-wrapper:focus-within {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.25);
    background: rgba(18, 23, 32, 0.95);
}

.auth-form .form-input,
.auth-card .form-input {
    width: 100%;
    padding: 16px 18px 16px 54px;
    border: none;
    outline: none;
    background: transparent;
    color: #f4f7ff;
    font-size: 15px;
    font-family: inherit;
    border-radius: 0;
    box-shadow: none;
}

.auth-form .form-input::placeholder,
.auth-card .form-input::placeholder {
    color: #63708d;
}

.form-input {
    width: 100%;
    padding: 16px 18px 16px 54px;
    border: none;
    outline: none;
    background: transparent;
    color: #f4f7ff;
    font-size: 15px;
    font-family: inherit;
}

.form-input::placeholder {
    color: #63708d;
}

.input-icon {
    position: absolute;
    left: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.input-icon svg {
    width: 22px;
    height: 22px;
    fill: #5f6c8a;
    transition: fill 0.25s ease;
}

.input-wrapper:focus-within .input-icon svg {
    fill: #3b82f6;
}

.input-action {
    position: absolute;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    color: inherit;
    padding: 0;
}

.input-action:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.input-action svg {
    width: 20px;
    height: 20px;
    fill: #6f7b96;
    transition: fill 0.25s ease;
}

.input-action[aria-pressed="true"] svg {
    fill: #3b82f6;
}

.form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: #93a0c2;
}

.form-note {
    margin: 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(12, 18, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #98a6c9;
    font-size: 13px;
    line-height: 1.6;
}

.terms-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #aebce0;
    font-weight: 500;
}

.terms-field input {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(15, 20, 29, 0.85);
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border 0.2s ease, background 0.2s ease;
}

.terms-field input:checked {
    border-color: rgba(59, 130, 246, 0.75);
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.terms-field input:checked::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #14181f;
}

.terms-field a {
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 600;
}

.terms-field a:hover {
    color: #ffffff;
}

.recovery-hint {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(71, 118, 190, 0.25);
    background: rgba(18, 26, 40, 0.78);
    color: #a4b5dd;
    font-size: 13px;
    line-height: 1.6;
}

.recovery-hint a {
    color: #bfdbfe;
    font-weight: 600;
    text-decoration: none;
}

.recovery-hint a:hover {
    color: #ffffff;
}

.hint-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(91, 134, 229, 0.65) 0%, rgba(54, 89, 182, 0.65) 100%);
    box-shadow: 0 0 18px rgba(80, 120, 220, 0.35);
    flex-shrink: 0;
}
.hint-icon svg {
    width: 16px;
    height: 16px;
    fill: #0b1016;
}

.recovery-steps {
    margin-top: 8px;
    padding: 24px 28px;
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(16, 24, 38, 0.92) 0%, rgba(9, 13, 18, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 24px 60px rgba(6, 10, 18, 0.45);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.recovery-steps h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #f4f7ff;
}

.recovery-steps ol {
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #c0cbed;
    font-size: 14px;
    line-height: 1.6;
}

.recovery-steps li::marker {
    color: #3b82f6;
    font-weight: 700;
}

body.online-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg6.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.profile-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(74, 109, 173, 0.2), transparent 55%),
        radial-gradient(circle at 82% 18%, rgba(146, 92, 202, 0.25), transparent 58%),
        linear-gradient(140deg, #05070d 0%, #0f1520 48%, #060a12 100%);
}

body.friends-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg6.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

body.referrals-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg-dis.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

body.reputation-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg11.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: calc(100svh - var(--navbar-height, 104px));
    padding: calc(var(--navbar-height, 104px) + 32px) var(--content-gutter, 28px) 72px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.profile-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(8, 11, 18, 0.88);
    box-shadow: 0 40px 120px rgba(3, 6, 12, 0.55);
}

.profile-hero__background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 24%, rgba(88, 124, 212, 0.6), rgba(12, 18, 30, 0) 48%),
        radial-gradient(circle at 88% 18%, rgba(225, 145, 255, 0.35), rgba(10, 14, 22, 0) 60%),
        linear-gradient(110deg, rgba(10, 16, 26, 0.95) 0%, rgba(8, 12, 20, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.profile-hero__background::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 24%, rgba(88, 124, 212, 0.3), rgba(12, 18, 30, 0) 48%),
        radial-gradient(circle at 88% 18%, rgba(225, 145, 255, 0.2), rgba(10, 14, 22, 0) 60%),
        linear-gradient(110deg, rgba(10, 16, 26, 0.7) 0%, rgba(8, 12, 20, 0.6) 100%);
    z-index: 1;
}

.profile-hero__background::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 80%, rgba(78, 117, 255, 0.2) 0, rgba(78, 117, 255, 0) 58%),
        radial-gradient(circle at 82% 70%, rgba(222, 124, 255, 0.18) 0, rgba(222, 124, 255, 0) 62%);
    mix-blend-mode: screen;
    opacity: 0.65;
    z-index: 2;
}

/* Overlay для кнопок управления баннером */
.banner-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex !important;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: auto !important;
    width: auto;
    height: auto;
}

.profile-hero:hover .banner-overlay {
    opacity: 1;
}

.banner-overlay:hover {
    opacity: 1;
}

.banner-upload-btn,
.banner-delete-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(15, 17, 23, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #e4e6eb;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer !important;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    position: relative !important;
    z-index: 11;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.banner-upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

.banner-upload-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.4);
    color: #4a90e2;
}

.banner-delete-btn {
    padding: 10px;
    min-width: 40px;
    justify-content: center;
}

.banner-delete-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.banner-upload-btn:disabled,
.banner-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.banner-upload-btn svg,
.banner-delete-btn svg {
    flex-shrink: 0;
}

.profile-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 56px;
    pointer-events: auto;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-avatar {
    position: relative;
    width: 132px;
    height: 132px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

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

/* Кликабельный аватар с оверлеем */
.profile-avatar--clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-avatar--clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
    border-color: rgba(59, 130, 246, 0.4);
}

.profile-avatar--clickable .avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

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

.profile-avatar--clickable.uploading .avatar-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.75);
}

.avatar-overlay svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.avatar-overlay-text {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-avatar--clickable .status-dot {
    z-index: 2;
    pointer-events: none;
}

.status-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7bff8f 0%, #30c95a 100%);
    box-shadow: 0 0 18px rgba(123, 255, 143, 0.48);
    border: 3px solid rgba(8, 12, 20, 0.85);
}

.profile-basics {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 620px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-name {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #ffffff;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #151821;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
}

.profile-tagline {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #c5d2f1;
}

.profile-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #96a7cc;
    font-size: 13px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #8493ba;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #e7efff;
}

.meta-separator {
    display: none;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-actions .primary-action,
.profile-actions .secondary-action {
    min-width: auto;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
}

.profile-actions .primary-action {
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #121621;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-actions .primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
}

.profile-actions .secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #e4e6eb;
    box-shadow: 0 4px 16px rgba(10, 16, 24, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-actions .secondary-action:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 16, 24, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-content {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 32px;
    width: 100%;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.profile-card {
    background: linear-gradient(180deg, rgba(13, 18, 26, 0.96) 0%, rgba(9, 13, 20, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 26px 64px rgba(4, 8, 14, 0.45);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #f4f7ff;
}

.card-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #bfdbfe;
    text-decoration: none;
}

.card-link:hover {
    color: #ffffff;
}

.profile-card.profile-friends {
    gap: 18px;
}

.friends-grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.friend-preview-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 16px;
    background: rgba(18, 24, 36, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
}

.friend-preview-card:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 140, 255, 0.35);
    box-shadow: 0 16px 36px rgba(9, 14, 24, 0.4);
}
.friend-preview-card a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.friend-preview-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    background: rgba(15, 22, 34, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #9fb4dd;
}

.friend-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.friend-preview-name {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-preview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9fb4dd;
}

.friend-preview-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(153, 164, 191, 0.65);
    box-shadow: 0 0 10px rgba(153, 164, 191, 0.35);
}

.friend-preview-status .status-dot.online {
    background: linear-gradient(135deg, #7bff8f 0%, #30c95a 100%);
    box-shadow: 0 0 12px rgba(123, 255, 143, 0.48);
}

.friend-preview-status .status-dot.offline {
    background: linear-gradient(135deg, #ff837a 0%, #ff5252 100%);
    box-shadow: 0 0 12px rgba(255, 131, 122, 0.38);
}

.friend-preview-avatar.placeholder {
    font-size: 26px;
}

.profile-card.profile-friends .card-link {
    margin-left: auto;
}

@media (max-width: 768px) {
    .friends-grid-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #aebce0;
}

.summary-label {
    color: #7d8cab;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 11px;
}

.summary-value {
    font-weight: 600;
    color: #f4f7ff;
}

.summary-value--positive {
    color: #7bff8f;
}

.credit-unit {
    font-size: 12px;
    font-weight: 600;
    color: #bfdbfe;
}

.progress-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8d9ec5;
}

.progress-value {
    font-weight: 600;
    color: #bfdbfe;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(28, 36, 52, 0.8);
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
    border-radius: inherit;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.achievement-list li {
    display: flex;
    gap: 14px;
}

.achievement-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

.achievement-icon--gold {
    background: radial-gradient(circle at 30% 30%, #bfdbfe, #1e40af 65%, #1e3a8a);
}

.achievement-icon--purple {
    background: radial-gradient(circle at 30% 30%, #f6c9ff, #8c4fe0 65%, #4a207d);
}

.achievement-icon--blue {
    background: radial-gradient(circle at 30% 30%, #cde4ff, #4a87f3 65%, #1f3d82);
}

.achievement-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.achievement-name {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.achievement-meta {
    font-size: 12px;
    color: #94a3c5;
}

.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
}

.social-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7d8cab;
}

.social-value {
    font-weight: 600;
    color: #e7efff;
}

.social-value--open {
    color: #7bff8f;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.character-card {
    padding: 22px;
    border-radius: 18px;
    background: rgba(18, 26, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.character-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #90a0ca;
}

.character-class {
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.character-class--mage {
    background: rgba(88, 150, 255, 0.14);
    color: #8fb7ff;
}

.character-class--paladin {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.character-class--rogue {
    background: rgba(255, 209, 123, 0.18);
    color: #93c5fd;
}

.character-level {
    color: #bfdbfe;
    font-weight: 700;
}

.character-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.character-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #aebce0;
}

.character-stats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.character-stats strong {
    color: #f4f7ff;
    font-weight: 600;
}

.activity-filters {
    display: inline-flex;
    gap: 10px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 19, 30, 0.75);
}

.tab-button {
    border: none;
    background: transparent;
    color: #9aa7c7;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tab-button:hover {
    color: #ffffff;
}

.tab-button.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #151821;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.activity-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(17, 24, 36, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.activity-icon::after {
    content: "";
    width: 20px;
    height: 20px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2ZM8.71 15.29 7.29 13.87l3.58-3.59a1 1 0 0 1 1.41 0l3.59 3.59-1.42 1.42L12 12.41Z'/%3E%3C/svg%3E") center/contain no-repeat;
    background: #90a0ca;
}

.activity-icon--raid::after {
    background: #9fafff;
}

.activity-icon--auction::after {
    background: #bfdbfe;
}

.activity-icon--security::after {
    background: #ff8d8d;
}

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

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.activity-meta {
    font-size: 12px;
    color: #8f9ec4;
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.activity-badge--neutral {
    background: rgba(138, 191, 255, 0.18);
    color: #a5c9ff;
}

.activity-badge--alert {
    background: rgba(255, 141, 141, 0.22);
    color: #ffb2b2;
}
.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.perk-card {
    padding: 22px;
    border-radius: 18px;
    background: rgba(18, 24, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.perk-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.perk-icon::after {
    content: "";
    width: 24px;
    height: 24px;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    background: #0b1016;
}

.perk-icon--boost {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.perk-icon--boost::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 7 6-4 12h-6L5 9Z'/%3E%3C/svg%3E");
}

.perk-icon--teleport {
    background: linear-gradient(135deg, #9fafff 0%, #5567f2 100%);
}

.perk-icon--teleport::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 1 7 7c0 3.87-4.09 8.88-6.09 11.08a1.2 1.2 0 0 1-1.82 0C9.09 17.88 5 12.87 5 9a7 7 0 0 1 7-7Zm0 9.5A2.5 2.5 0 1 0 9.5 9 2.5 2.5 0 0 0 12 11.5Z'/%3E%3C/svg%3E");
}

.perk-icon--vault {
    background: linear-gradient(135deg, #ffd7ff 0%, #b578e4 100%);
}

.perk-icon--vault::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm7 4a4 4 0 1 0 4 4 4 4 0 0 0-4-4Zm0 2a2 2 0 1 1-2 2 2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
}

.perk-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #f4f7ff;
}

.perk-description {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #9fb0d8;
}

.perk-status {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #bfdbfe;
}

.perk-status--active {
    color: #7bff8f;
}

.perk-status--cooldown {
    color: #9fafff;
}

.profile-page .site-footer {
    margin-top: 32px;
}

.characters-page .profile-hero {
    background: rgba(8, 12, 20, 0.92);
}

.characters-page .profile-name {
    font-size: 34px;
}

.characters-content {
    align-items: start;
}

.characters-sidebar {
    gap: 24px;
}

.filter-card {
    gap: 18px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8a99c0;
}

.filter-select {
    position: relative;
    display: flex;
}

.filter-select select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 24, 36, 0.86);
    color: #f4f7ff;
    font-size: 14px;
    appearance: none;
}

.filter-select select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    pointer-events: none;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.characters-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.character-detail {
    gap: 24px;
}

.character-detail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.character-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.character-class-bubble {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.character-class-bubble::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    opacity: 0.6;
}

.character-class-bubble--mage {
    background: radial-gradient(circle at 30% 30%, #b4ceff, #4b8cff 62%, #203d82);
}
.character-class-bubble--paladin {
    background: radial-gradient(circle at 30% 30%, #bfdbfe, #3b82f6 62%, #1e3a8a);
}

.character-class-bubble--rogue {
    background: radial-gradient(circle at 30% 30%, #bfdbfe, #3b82f6 60%, #1e3a8a);
}

.character-detail__name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #f4f7ff;
}

.character-detail__meta {
    font-size: 13px;
    color: #94a3c5;
}

.character-level-badge {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.character-detail__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    gap: 24px;
}

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

.stat-block {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(18, 26, 40, 0.74);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8795bb;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.stat-value--highlight {
    color: #7bff8f;
}

.gear-overview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gear-overview h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #bfdbfe;
    letter-spacing: 0.4px;
}

.gear-overview ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #c7d2f1;
}

.character-detail__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.character-detail__footer .secondary-action,
.character-detail__footer .primary-action {
    flex: 1 1 auto;
    min-width: 200px;
}

.action-ghost {
    background: rgba(27, 34, 48, 0.78);
    border: 1px solid rgba(148, 170, 255, 0.4);
    color: #c9d6ff;
    box-shadow: inset 0 0 0 1px rgba(66, 118, 255, 0.18), 0 16px 36px rgba(8, 14, 26, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-ghost:hover {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25), 0 22px 48px rgba(10, 16, 30, 0.55);
    transform: translateY(-2px);
    color: #bfdbfe;
}

.action-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px 14px 48px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.6);
    background:
        linear-gradient(135deg, #bfdbfe 0%, #3b82f6 55%, #2563eb 100%);
    color: #1b1408;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 18px 40px rgba(59, 130, 246, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-glow::before {
    content: "";
    position: absolute;
    left: 20px;
    width: 18px;
    height: 18px;
    background: rgba(27, 21, 10, 0.85);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    opacity: 0.85;
}

.action-glow[data-icon="raid"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 2.39 4.85 5.35.78-3.87 3.77.91 5.33L12 14.77 6.22 16.7l.91-5.33-3.87-3.77 5.35-.78L12 2Z'/%3E%3C/svg%3E");
}

.action-glow[data-icon="support"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a5 5 0 0 1 5 5v1h1a3 3 0 0 1 3 3v2h-2v5h-4v-5H9v5H5v-5H3v-2a3 3 0 0 1 3-3h1V9a5 5 0 0 1 5-5Z'/%3E%3C/svg%3E");
}

.action-glow[data-icon="mission"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 3 7l9 5 8-4.44V17h2V7Zm-9 8v7l9 5 8-4.44V14l-8 4.44Z'/%3E%3C/svg%3E");
}

.action-glow:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 24px 54px rgba(59, 130, 246, 0.55);
}

.action-filter {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    background: linear-gradient(135deg, #7a8cff 0%, #46d1ff 100%);
    color: #0b1016;
    box-shadow: 0 16px 40px rgba(81, 154, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(81, 154, 255, 0.45);
}

.profile-avatar--compact {
    width: 110px;
    height: 110px;
}

.security-page .profile-name {
    font-size: 34px;
}

.security-hero .status-dot--secure {
    background: linear-gradient(135deg, #7bffb0 0%, #1fd57a 100%);
}

.security-content {
    align-items: start;
}

.security-sidebar {
    gap: 24px;
}

.security-overview .summary-value--warning {
    color: #60a5fa;
}

.security-alert {
    gap: 18px;
}

.alert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.alert-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7bffb0 0%, #1fd57a 100%);
    box-shadow: 0 0 12px rgba(31, 213, 122, 0.48);
}

.alert-dot--warning {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 12px rgba(255, 146, 71, 0.48);
}

.alert-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.alert-title {
    font-weight: 600;
    color: #f4f7ff;
}

.alert-meta {
    color: #94a3c5;
    font-size: 12px;
}

.security-card {
    gap: 22px;
}

.security-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1d2b3f;
    background: linear-gradient(135deg, #7bffb0 0%, #1fd57a 100%);
    box-shadow: 0 12px 30px rgba(31, 213, 122, 0.35);
}

.security-description {
    font-size: 14px;
    color: #aebce0;
    line-height: 1.6;
}

.security-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.security-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(18, 26, 40, 0.7);
}

.security-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.security-icon::after {
    content: "";
    width: 24px;
    height: 24px;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    background: #7bffb0;
}

.security-icon--totp::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 1 1-8 8 8 8 0 0 1 8-8Zm0 2a6 6 0 1 0 6 6 6 6 0 0 0-6-6Zm1 9h-2v-5h2zm0 4h-2v-2h2Z'/%3E%3C/svg%3E");
}

.security-icon--key::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2a6 6 0 0 1 6 6v1h1a2 2 0 0 1 2 2v2h-2v5h-4v-5h-2v5H8v-5H6v-2a2 2 0 0 1 2-2h1V8a6 6 0 0 1 6-6Z'/%3E%3C/svg%3E");
}

.security-option h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #f4f7ff;
}

.security-option__body p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #9fb0d8;
}

.device-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.device-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(16, 22, 34, 0.78);
}

.device-list__pending {
    background: rgba(255, 229, 155, 0.12);
    border-color: rgba(255, 229, 155, 0.35);
    box-shadow: 0 16px 38px rgba(255, 229, 155, 0.2);
    grid-template-columns: auto 1fr auto;
}

.device-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.device-icon::after {
    content: "";
    width: 24px;
    height: 24px;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    background: #9fafff;
}

.device-icon--desktop::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10h-8l2 3v1H8v-1l2-3H2V6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
}

.device-icon--mobile::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm5 17a1 1 0 1 0 1 1 1 1 0 0 0-1-1Z'/%3E%3C/svg%3E");
}

.device-icon--laptop::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v9h2v2H2v-2h2Zm2 0v9h12V5Z'/%3E%3C/svg%3E");
}

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

.device-name {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.device-meta {
    font-size: 12px;
    color: #96a4c8;
}

.device-actions {
    display: inline-flex;
    gap: 10px;
}

.security-activity {
    gap: 14px;
}

.security-activity .activity-badge {
    min-width: 98px;
    justify-content: center;
}

@media (max-width: 1040px) {
    .character-detail__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .gear-overview {
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    .security-option {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .device-list li,
    .alert-list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .alert-dot,
    .device-icon {
        display: none;
    }

    .device-actions {
        justify-content: flex-start;
    }
}
.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.remember-me input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 29, 0.8);
    position: relative;
    transition: border 0.2s ease, background 0.2s ease;
}

.remember-me input:checked {
    border-color: rgba(59, 130, 246, 0.75);
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.remember-me input:checked::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: #14181f;
}

.meta-link {
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.meta-link:hover {
    color: #ffffff;
}

.submit-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #0b1016;
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(59, 130, 246, 0.38);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.45);
}

.auth-divider {
    position: relative;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #576382;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

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

.alt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(15, 20, 29, 0.86);
    color: #cfd8f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.alt-button:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 18px 36px rgba(10, 16, 24, 0.5);
}

.alt-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.alt-icon--bnet {
    background: radial-gradient(circle at 30% 30%, #b3e3ff, #1a6ddb 65%, #0b3b88);
}

.alt-icon--discord {
    background: radial-gradient(circle at 30% 30%, #d3d9ff, #5b6bee 60%, #3239a5);
}

.auth-footer {
    margin: 0;
    font-size: 14px;
    color: #96a4c8;
    text-align: center;
}

.auth-footer a {
    color: #bfdbfe;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #ffffff;
}

.auth-aside {
    position: relative;
    background: linear-gradient(140deg, rgba(23, 35, 56, 0.95) 0%, rgba(9, 13, 18, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-aside__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.auth-aside__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(10, 14, 20, 0.25) 0%, rgba(6, 9, 15, 0.75) 100%);
}

.auth-aside__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    filter: saturate(1.1);
}

.auth-aside__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(125, 170, 243, 0.35), transparent 55%),
        radial-gradient(circle at 80% 65%, rgba(59, 130, 246, 0.25), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.85;
}

.auth-aside__content {
    position: relative;
    z-index: 2;
    padding: 72px 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #f6f9ff;
}

.aside-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #bfdbfe;
}

.aside-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.6;
}

.auth-aside h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 700;
}

.aside-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 15px;
    color: #cfd8f1;
}

.aside-benefits li {
    position: relative;
    padding-left: 26px;
}

.aside-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
}

.auth-page .site-footer {
    margin-top: 64px;
}

@media (max-width: 1040px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-aside {
        display: none;
    }

    .auth-card {
        padding: 40px 36px;
    }

    .profile-hero__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 36px;
    }

    .profile-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .profile-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .profile-actions .primary-action,
    .profile-actions .secondary-action {
        flex: 1 1 auto;
        justify-content: center;
    }

    .profile-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-sidebar {
        order: 2;
    }

    .profile-main {
        order: 1;
    }
}

@media (max-width: 620px) {
    .auth-layout {
        padding: calc(var(--navbar-height, 104px) + 12px) var(--content-gutter, 28px) 48px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 28px;
    }

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

    .form-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .recovery-hint {
        flex-direction: column;
        align-items: stretch;
    }

    .recovery-hint .hint-icon {
        margin-bottom: 4px;
    }

    .profile-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) var(--content-gutter, 20px) 56px;
        gap: 24px;
    }

    .profile-hero {
        border-radius: 22px;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
    }

    .profile-name {
        font-size: 30px;
    }

    .profile-hero__content {
        padding: 32px 26px;
    }

    .profile-card {
        padding: 22px;
        border-radius: 20px;
    }

    .activity-list li {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .activity-badge {
        justify-self: flex-start;
    }

    .security-description {
        font-size: 13px;
    }

    .security-option h3 {
        font-size: 14px;
    }

    .security-option {
        padding: 16px;
    }

    .device-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .profile-actions {
        flex-direction: column;
    }

    .profile-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.online-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.online-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.online-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.online-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.online-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.online-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    position: relative;
    overflow: hidden;
}

.online-stat-card__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9eb1d7;
}

.online-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #f8faff;
}

.online-stat-card__split {
    display: flex;
    align-items: center;
    gap: 12px;
}

.online-stat-card__icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 6px 12px rgba(10, 15, 28, 0.45));
}

.online-stat-card__meta {
    font-size: 13px;
    color: #8fa4ce;
}

.trend-up {
    font-size: 13px;
    color: #8ff1af;
}

.trend-down {
    font-size: 13px;
    color: #ff7f9e;
}

.online-panel {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.online-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(11, 17, 28, 0.78);
}

.online-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.online-filters .filter-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9fb4dd;
}

.online-filters .filter-control {
    position: relative;
}

.online-filters .filter-input,
.online-filters .filter-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 174, 221, 0.2);
    background: rgba(8, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 14px;
}

.online-filters .filter-input:focus,
.online-filters .filter-select:focus {
    outline: none;
    border-color: #5d8cff;
    box-shadow: 0 0 0 3px rgba(93, 140, 255, 0.18);
}

.online-filters .filter-toggle-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.online-filters .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 174, 221, 0.25);
    background: rgba(8, 13, 23, 0.55);
    color: #cbd8f1;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.online-filters .filter-toggle.active {
    border-color: #5d8cff;
    background: rgba(93, 140, 255, 0.18);
    color: #f4f7ff;
}

.online-filters .filter-toggle__icon {
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
}

.online-filters .filter-toggle__icon--horde {
    background-image: url('/images/factions/horde.svg');
}

.online-filters .filter-toggle__icon--alliance {
    background-image: url('/images/factions/alliance.svg');
}

.online-filters .filter-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.online-filters .filter-checkbox {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: #dce7ff;
}

.online-filters .filter-checkbox input {
    accent-color: #5d8cff;
}

.online-filters .filter-meta {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: #9fb4dd;
}

.online-filters .filter-meta__refresh {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(93, 140, 255, 0.3);
    background: rgba(12, 21, 36, 0.65);
    color: #aecaff;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.online-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 16, 27, 0.82);
}

.online-table-head,
.online-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.table-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.table-meta__title {
    font-size: 16px;
    font-weight: 600;
    color: #f6f8ff;
}

.table-meta__hint {
    font-size: 13px;
    color: #9cb1dd;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.table-action {
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 174, 221, 0.25);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.table-action:hover {
    transform: translateY(-1px);
    border-color: rgba(93, 140, 255, 0.55);
    box-shadow: 0 14px 26px rgba(12, 21, 36, 0.45);
    color: #e1e8ff;
}

.table-action.is-active {
    border-color: rgba(93, 140, 255, 0.6);
    background: rgba(93, 140, 255, 0.18);
    color: #f5f7ff;
    box-shadow: 0 16px 32px rgba(12, 21, 36, 0.55);
}

.table-action.is-active[data-direction="asc"] {
    --sort-indicator: "▲";
}

.table-action.is-active[data-direction="desc"] {
    --sort-indicator: "▼";
}

.table-action.is-active[data-direction]:not([data-direction=""])::after {
    content: var(--sort-indicator);
    margin-left: 6px;
    font-size: 12px;
}

.online-table-wrapper__inner {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(9, 13, 23, 0.65);
    overflow: hidden;
}

.online-table {
    width: 100%;
    border-collapse: collapse;
}

.online-table thead {
    background: rgba(93, 140, 255, 0.08);
}

.online-table th,
.online-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    color: #dce6ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.online-table tbody tr:hover {
    background: rgba(93, 140, 255, 0.08);
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-cell__faction {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.player-cell__faction--horde {
    background: rgba(184, 55, 55, 0.22);
    -webkit-mask: url('/images/factions/horde.svg') center / 18px 18px no-repeat;
    mask: url('/images/factions/horde.svg') center / 18px 18px no-repeat;
    background-color: #dd6a6a;
}

.player-cell__faction--alliance {
    background: rgba(74, 119, 196, 0.22);
    -webkit-mask: url('/images/factions/alliance.svg') center / 18px 18px no-repeat;
    mask: url('/images/factions/alliance.svg') center / 18px 18px no-repeat;
    background-color: #7ba6ff;
}

.player-cell__race {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: rgba(18, 26, 40, 0.55);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.class-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.class-icon img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 6px 12px rgba(9, 14, 22, 0.45));
}

.player-name-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.player-name {
    font-weight: 600;
    color: #f6f8ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.player-name:hover {
    color: #bfdbfe;
}

.player-gm-icon {
    width: 20px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: opacity 0.2s ease, transform 0.2s ease;
    object-fit: contain;
}

.player-gm-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.player-meta {
    display: block;
    font-size: 12px;
    color: #9fb4dd;
}

.player-level-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.player-level {
    font-weight: 600;
    color: #f0f5ff;
}

.player-faction-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.player-faction-icon:hover {
    opacity: 1;
}
.guild-link {
    color: #8fb5ff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.guild-link:hover {
    color: #ffffff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #091024;
    background: linear-gradient(135deg, #93c5fd, #3b82f6);
}

.status-pill--raid {
    background: linear-gradient(135deg, #7bf5c1, #35d87f);
}

.status-pill--pvp {
    background: linear-gradient(135deg, #ff837a, #ff5252);
    color: #ffffff;
}

.status-pill--city {
    background: linear-gradient(135deg, #aac6ff, #739bf8);
    color: #0b1323;
}

.status-pill--quest {
    background: linear-gradient(135deg, #93c5fd, #3b82f6);
    color: #3a2104;
}

.online-empty {
    padding: 42px;
    border-radius: 18px;
    border: 1px solid rgba(93, 140, 255, 0.25);
    background: rgba(12, 18, 32, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #b3c5ef;
}

@media (max-width: 1080px) {
    .online-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .online-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .online-filters .filter-group {
        flex: 1 1 220px;
    }
}

@media (max-width: 768px) {
    .online-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .online-table-wrapper {
        padding: 18px;
    }

    .online-filters {
        flex-direction: column;
    }

    .online-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 540px) {
    .online-table {
        min-width: 560px;
    }

    .online-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* === Rewards Vault Page Styles === */

body.rewards-vault-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg13.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.rewards-vault-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.rewards-vault-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rewards-vault-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rewards-vault-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.rewards-vault-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.vault-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    position: relative;
    overflow: hidden;
}

.vault-stat-card__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9eb1d7;
}

.vault-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #f8faff;
}

.vault-stat-card__split {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vault-stat-card__icon {
    font-size: 24px;
}

.vault-stat-card__meta {
    font-size: 12px;
    color: #9fb4dd;
}

.rewards-vault-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vault-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
}

.vault-filters__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vault-filter-select {
    padding: 10px 32px 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239fb4dd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.vault-filter-select:focus {
    outline: none;
    border-color: rgba(234, 76, 137, 0.5);
    box-shadow: 0 0 0 3px rgba(234, 76, 137, 0.1);
}

.vault-filters__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vault-action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(93, 140, 255, 0.1);
    color: #8fb5ff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vault-action-button:hover {
    background: rgba(93, 140, 255, 0.2);
    border-color: rgba(93, 140, 255, 0.3);
    color: #f4f7ff;
}

.vault-action-button--claim-all {
    background: linear-gradient(135deg, rgba(139, 255, 139, 0.2), rgba(139, 255, 139, 0.1));
    border-color: rgba(139, 255, 139, 0.3);
    color: #8bff8b;
}

.vault-action-button--claim-all:hover {
    background: linear-gradient(135deg, rgba(139, 255, 139, 0.3), rgba(139, 255, 139, 0.2));
    border-color: rgba(139, 255, 139, 0.4);
    color: #aaffaa;
}

.vault-empty {
    margin: 48px auto;
    max-width: 560px;
    padding: 48px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.38), rgba(18, 26, 40, 0.78));
    box-shadow: 0 30px 80px rgba(3, 6, 14, 0.45);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.vault-empty__icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    background: rgba(93, 140, 255, 0.16);
    border: 1px solid rgba(93, 140, 255, 0.35);
    box-shadow: 0 12px 36px rgba(74, 135, 243, 0.25);
}

.vault-empty__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #f4f7ff;
}

.vault-empty__description {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #9fb4dd;
    max-width: 420px;
}

.vault-empty__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.vault-action-button--secondary {
    background: rgba(234, 76, 137, 0.16);
    border-color: rgba(234, 76, 137, 0.35);
    color: #ff8aaf;
}

.vault-action-button--secondary:hover {
    background: rgba(234, 76, 137, 0.26);
    border-color: rgba(234, 76, 137, 0.45);
    color: #ffd9e6;
}

.vault-action-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(93, 140, 255, 0.25);
}

@media (max-width: 720px) {
    .vault-empty {
        padding: 36px 28px;
        margin: 32px auto;
    }

    .vault-empty__title {
        font-size: 24px;
    }

    .vault-empty__icon {
        width: 72px;
        height: 72px;
        font-size: 36px;
    }

    .vault-empty__description {
        font-size: 14px;
    }

    .vault-empty__actions {
        gap: 12px;
    }
}

.vault-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.reward-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reward-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.reward-item__icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}

.reward-icon {
    font-size: 32px;
}

.reward-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reward-badge--coins {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #fff;
}

.reward-badge--rare {
    background: linear-gradient(135deg, #5d8cff, #4a87f3);
    color: #fff;
}

.reward-badge--epic {
    background: linear-gradient(135deg, #ea4c89, #c73a6f);
    color: #fff;
}

.reward-badge--legendary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #3a2104;
}

.reward-item__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.reward-item__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #f4f7ff;
}

.reward-item__source {
    margin: 0;
    font-size: 13px;
    color: #9fb4dd;
}

.reward-item__date {
    font-size: 11px;
    color: #6b7a9f;
}

.reward-item__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reward-character-select {
    width: 100%;
    padding: 10px 32px 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239fb4dd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.reward-character-select:focus {
    outline: none;
    border-color: rgba(234, 76, 137, 0.5);
    box-shadow: 0 0 0 3px rgba(234, 76, 137, 0.1);
}

.reward-claim-button {
    width: 100%;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, rgba(139, 255, 139, 0.2), rgba(139, 255, 139, 0.1));
    border: 1px solid rgba(139, 255, 139, 0.3);
    color: #8bff8b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reward-claim-button:hover {
    background: linear-gradient(135deg, rgba(139, 255, 139, 0.3), rgba(139, 255, 139, 0.2));
    border-color: rgba(139, 255, 139, 0.4);
    color: #aaffaa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 255, 139, 0.2);
}

@media (max-width: 1080px) {
    .rewards-vault-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .vault-rewards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .rewards-vault-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .vault-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .vault-filters__left {
        flex-direction: column;
        width: 100%;
    }

    .vault-filter-select {
        width: 100%;
    }

    .vault-filters__right {
        width: 100%;
        justify-content: stretch;
    }

    .vault-action-button {
        flex: 1;
        justify-content: center;
    }

    .vault-rewards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 540px) {
    .rewards-vault-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .reward-item {
        padding: 16px;
    }
}

/* === Toast Notifications === */

.toast-container {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(21, 26, 33, 0.98) 0%, rgba(15, 20, 27, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.toast.hide {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(400px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.toast--success .toast-icon {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(56, 142, 60, 0.2));
    color: #4caf50;
}

.toast--error .toast-icon {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(198, 40, 40, 0.2));
    color: #f44336;
}

.toast--warning .toast-icon {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(245, 124, 0, 0.2));
    color: #ff9800;
}

.toast--info .toast-icon {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(25, 118, 210, 0.2));
    color: #2196f3;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #f4f5f7;
    line-height: 1.5;
    margin: 0;
}

.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #9aa5c6;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
}

.toast-close:hover {
    color: #f4f5f7;
    background: rgba(255, 255, 255, 0.1);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(191, 219, 254, 0.8));
    border-radius: 0 0 12px 12px;
    animation: toastProgress linear forwards;
}

.toast--success .toast-progress {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.8), rgba(129, 199, 132, 0.8));
}

.toast--error .toast-progress {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.8), rgba(239, 154, 154, 0.8));
}

.toast--warning .toast-progress {
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.8), rgba(255, 183, 77, 0.8));
}

.toast--info .toast-progress {
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.8), rgba(100, 181, 246, 0.8));
}
@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* === Characters Page Styles (imported from Styles/css/pages/characters.css) === */

/* Characters Pages */
body.characters-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg2.webp') center / cover no-repeat;
    background-attachment: fixed;
}

.characters-page .profile-hero {
    background: rgba(8, 12, 20, 0.92);
}

.characters-page .profile-name {
    font-size: 34px;
}

.characters-content {
    align-items: start;
}

.characters-sidebar {
    gap: 24px;
}

.filter-card {
    gap: 18px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8a99c0;
}

.filter-select {
    position: relative;
    display: flex;
}

.filter-select select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 24, 36, 0.86);
    color: #f4f7ff;
    font-size: 14px;
    appearance: none;
}

.filter-select select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    pointer-events: none;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.characters-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.character-detail {
    gap: 24px;
}

.character-detail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.character-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.character-class-bubble {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background-color: rgba(18, 26, 40, 0.65);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.character-class-bubble--mage {
    background-image: url('/images/classes/mage.png');
}

.character-class-bubble--paladin {
    background-image: url('/images/classes/paladin.png');
}

.character-class-bubble--rogue {
    background-image: url('/images/classes/rogue.png');
}

.character-race-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(18, 26, 40, 0.55);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.character-race-bubble--bloodelf {
    background-image: url('/images/races/10-1.png');
}

.character-race-bubble--draenei {
    background-image: url('/images/races/11-1.png');
}

.character-race-bubble--undead {
    background-image: url('/images/races/5-0.png');
}

.character-detail__name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #f4f7ff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

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

.character-link:hover,
.character-link:focus {
    color: #bfdbfe;
}

.character-detail__meta {
    display: block;
    font-size: 13px;
    color: #94a3c5;
    margin-top: 6px;
}

.character-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.character-detail__body {
    margin-top: 12px;
}

.gear-overview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gear-overview h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #bfdbfe;
    letter-spacing: 0.4px;
}

.gear-overview ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #c7d2f1;
}

.character-detail__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.character-detail__footer .secondary-action,
.character-detail__footer .primary-action {
    flex: 1 1 auto;
    min-width: 200px;
}

.action-ghost {
    background: rgba(27, 34, 48, 0.78);
    border: 1px solid rgba(148, 170, 255, 0.4);
    color: #c9d6ff;
    box-shadow: inset 0 0 0 1px rgba(66, 118, 255, 0.18), 0 16px 36px rgba(8, 14, 26, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.action-ghost:hover {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25), 0 22px 48px rgba(10, 16, 30, 0.55);
    transform: translateY(-2px);
    color: #bfdbfe;
}

.action-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px 14px 48px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.6);
    background:
        linear-gradient(135deg, #bfdbfe 0%, #3b82f6 55%, #2563eb 100%);
    color: #1b1408;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 18px 40px rgba(59, 130, 246, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-glow::before {
    content: "";
    position: absolute;
    left: 20px;
    width: 18px;
    height: 18px;
    background: rgba(27, 21, 10, 0.85);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    opacity: 0.85;
}

.action-glow[data-icon="raid"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 2.39 4.85 5.35.78-3.87 3.77.91 5.33L12 14.77 6.22 16.7l.91-5.33-3.87-3.77 5.35-.78L12 2Z'/%3E%3C/svg%3E");
}

.action-glow[data-icon="support"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a5 5 0 0 1 5 5v1h1a3 3 0 0 1 3 3v2h-2v5h-4v-5H9v5H5v-5H3v-2a3 3 0 0 1 3-3h1V9a5 5 0 0 1 5-5Z'/%3E%3C/svg%3E");
}

.action-glow[data-icon="mission"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 3 7l9 5 8-4.44V17h2V7Zm-9 8v7l9 5 8-4.44V14l-8 4.44Z'/%3E%3C/svg%3E");
}

.action-glow:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 24px 54px rgba(59, 130, 246, 0.55);
}

.action-filter {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    background: linear-gradient(135deg, #7a8cff 0%, #46d1ff 100%);
    color: #0b1016;
    box-shadow: 0 16px 40px rgba(81, 154, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(81, 154, 255, 0.45);
}

.profile-avatar--compact {
    width: 110px;
    height: 110px;
}

body.security-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/b2.webp') center / cover no-repeat;
    background-attachment: fixed;
}

.security-page .profile-name {
    font-size: 34px;
}

.security-hero .status-dot--secure {
    background: linear-gradient(135deg, #7bffb0 0%, #1fd57a 100%);
}

.security-content {
    align-items: start;
}

.security-sidebar {
    gap: 24px;
}

.security-overview .summary-value--warning {
    color: #60a5fa;
}

.security-alert {
    gap: 18px;
}

.alert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.alert-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7bffb0 0%, #1fd57a 100%);
    box-shadow: 0 0 12px rgba(31, 213, 122, 0.48);
}

.alert-dot--warning {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 12px rgba(255, 146, 71, 0.48);
}

.alert-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.alert-title {
    font-weight: 600;
    color: #f4f7ff;
}

.alert-meta {
    color: #94a3c5;
    font-size: 12px;
}

.security-card {
    gap: 22px;
}

.security-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1d2b3f;
    background: linear-gradient(135deg, #7bffb0 0%, #1fd57a 100%);
    box-shadow: 0 12px 30px rgba(31, 213, 122, 0.35);
}

.security-description {
    font-size: 14px;
    color: #aebce0;
    line-height: 1.6;
}

.security-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.security-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(18, 26, 40, 0.7);
}

.security-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.security-icon::after {
    content: "";
    width: 24px;
    height: 24px;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    background: #7bffb0;
}

.security-icon--totp::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 1 1-8 8 8 8 0 0 1 8-8Zm0 2a6 6 0 1 0 6 6 6 6 0 0 0-6-6Zm1 9h-2v-5h2zm0 4h-2v-2h2Z'/%3E%3C/svg%3E");
}

.security-icon--key::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2a6 6 0 0 1 6 6v1h1a2 2 0 0 1 2 2v2h-2v5h-4v-5h-2v5H8v-5H6v-2a2 2 0 0 1 2-2h1V8a6 6 0 0 1 6-6Z'/%3E%3C/svg%3E");
}

.security-option h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #f4f7ff;
}

.security-option__body p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #9fb0d8;
}

.device-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.device-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(16, 22, 34, 0.78);
}

.device-list__pending {
    background: rgba(255, 229, 155, 0.12);
    border-color: rgba(255, 229, 155, 0.35);
    box-shadow: 0 16px 38px rgba(255, 229, 155, 0.2);
    grid-template-columns: auto 1fr auto;
}

.device-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.device-icon::after {
    content: "";
    width: 24px;
    height: 24px;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    background: #9fafff;
}

.device-icon--desktop::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10h-8l2 3v1H8v-1l2-3H2V6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
}

.device-icon--mobile::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm5 17a1 1 0 1 0 1 1 1 1 0 0 0-1-1Z'/%3E%3C/svg%3E");
}

.device-icon--laptop::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v9h2v2H2v-2h2Zm2 0v9h12V5Z'/%3E%3C/svg%3E");
}

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

.device-name {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.device-meta {
    font-size: 12px;
    color: #96a4c8;
}

.device-actions {
    display: inline-flex;
    gap: 10px;
}

.security-activity {
    gap: 14px;
}

.security-activity .activity-badge {
    min-width: 98px;
    justify-content: center;
}

@media (max-width: 1040px) {
    .character-detail__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .gear-overview {
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    .security-option {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .device-list li,
    .alert-list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .alert-dot,
    .device-icon {
        display: none;
    }

    .device-actions {
        justify-content: flex-start;
    }
}
.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.remember-me input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 29, 0.8);
    position: relative;
    transition: border 0.2s ease, background 0.2s ease;
}

.remember-me input:checked {
    border-color: rgba(59, 130, 246, 0.75);
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.remember-me input:checked::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: #14181f;
}
.meta-link {
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.meta-link:hover {
    color: #ffffff;
}

.submit-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #0b1016;
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(59, 130, 246, 0.38);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.45);
}

.auth-divider {
    position: relative;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #576382;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

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

.alt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(15, 20, 29, 0.86);
    color: #cfd8f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.alt-button:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 18px 36px rgba(10, 16, 24, 0.5);
}

.alt-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.alt-icon--bnet {
    background: radial-gradient(circle at 30% 30%, #b3e3ff, #1a6ddb 65%, #0b3b88);
}

.alt-icon--discord {
    background: radial-gradient(circle at 30% 30%, #d3d9ff, #5b6bee 60%, #3239a5);
}

.auth-footer {
    margin: 0;
    font-size: 14px;
    color: #96a4c8;
    text-align: center;
}

.auth-footer a {
    color: #bfdbfe;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #ffffff;
}

.auth-aside {
    position: relative;
    background: linear-gradient(140deg, rgba(23, 35, 56, 0.95) 0%, rgba(9, 13, 18, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-aside__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.auth-aside__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(10, 14, 20, 0.25) 0%, rgba(6, 9, 15, 0.75) 100%);
}

.auth-aside__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    filter: saturate(1.1);
}

.auth-aside__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(125, 170, 243, 0.35), transparent 55%),
        radial-gradient(circle at 80% 65%, rgba(59, 130, 246, 0.25), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.85;
}

.auth-aside__content {
    position: relative;
    z-index: 2;
    padding: 72px 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #f6f9ff;
}

.aside-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #bfdbfe;
}

.aside-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.6;
}

.auth-aside h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 700;
}

.aside-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 15px;
    color: #cfd8f1;
}

.aside-benefits li {
    position: relative;
    padding-left: 26px;
}

.aside-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
}

.auth-page .site-footer {
    margin-top: 64px;
}

@media (max-width: 1040px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-aside {
        display: none;
    }

    .auth-card {
        padding: 40px 36px;
    }

    .profile-hero__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 36px;
    }

    .profile-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .profile-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .profile-actions .primary-action,
    .profile-actions .secondary-action {
        flex: 1 1 auto;
        justify-content: center;
    }

    .profile-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-sidebar {
        order: 2;
    }

    .profile-main {
        order: 1;
    }
}

@media (max-width: 620px) {
    .auth-layout {
        padding: calc(var(--navbar-height, 104px) + 12px) var(--content-gutter, 28px) 48px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 28px;
    }

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

    .form-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .recovery-hint {
        flex-direction: column;
        align-items: stretch;
    }

    .recovery-hint .hint-icon {
        margin-bottom: 4px;
    }

    .profile-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) var(--content-gutter, 20px) 56px;
        gap: 24px;
    }

    .profile-hero {
        border-radius: 22px;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
    }

    .profile-name {
        font-size: 30px;
    }

    .profile-hero__content {
        padding: 32px 26px;
    }

    .profile-card {
        padding: 22px;
        border-radius: 20px;
    }

    .activity-list li {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .activity-badge {
        justify-self: flex-start;
    }

    .security-description {
        font-size: 13px;
    }

    .security-option h3 {
        font-size: 14px;
    }

    .security-option {
        padding: 16px;
    }

    .device-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .profile-actions {
        flex-direction: column;
    }

    .profile-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.character-faction-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(18, 26, 40, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70%;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.character-faction-icon--horde {
    background-image: url('/images/factions/horde.svg');
}
.character-faction-icon--alliance {
    background-image: url('/images/factions/alliance.svg');
}

body.character-profile-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg-xalatath.webp') center / cover no-repeat;
    background-attachment: fixed;
}

.character-profile {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: calc(var(--navbar-height, 104px) + 32px) var(--content-gutter, 28px) 80px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.character-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 36px 120px rgba(2, 5, 12, 0.6);
    background: rgba(10, 14, 22, 0.85);
    backdrop-filter: blur(18px);
}

.character-hero__bg {
    position: absolute;
    inset: -20% 0;
    background: radial-gradient(circle at 30% 20%, rgba(101, 138, 255, 0.25), transparent 55%),
        radial-gradient(circle at 75% 25%, rgba(248, 178, 90, 0.2), transparent 60%),
        linear-gradient(120deg, rgba(6, 10, 18, 0.95), rgba(14, 20, 32, 0.75));
}

.character-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 36px 40px;
}

.character-hero__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.character-hero__nameblock {
    display: flex;
    flex-direction: column;
}

.character-hero__name {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    color: #f4f7ff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.character-hero__meta {
    font-size: 15px;
    color: #aebce0;
    margin-top: 8px;
}

.character-hero__second-meta {
    font-size: 13px;
    color: #8f9ec4;
    margin-top: 6px;
}

.character-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.character-hero__content {
    position: relative;
    overflow: hidden;
}

.character-hero__stats {
    position: relative;
    z-index: 1;
}

.character-hero__identity {
    position: relative;
    z-index: 1;
}

.character-hero__faction {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    opacity: 0.3;
    background-repeat: no-repeat;
    background-size: 75% auto;
    background-position: center;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.character-hero__faction--horde {
    background-image: url('/images/factions/horde.svg');
}

.character-hero__faction--alliance {
    background-image: url('/images/factions/alliance.svg');
}

.character-hero__stat {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 22, 32, 0.75);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-transform: uppercase;
}

.character-hero__stat .stat-label {
    font-size: 11px;
    letter-spacing: 0.8px;
    color: #8fa1c8;
}

.character-hero__stat .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.character-detail-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr);
    grid-template-areas: "timeline main";
    gap: 24px;
    align-items: start;
}

.character-panel {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 30px 72px rgba(3, 6, 14, 0.45);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f6f8ff;
}

.key-stats,
.gear-list,
.activity-log {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #d0d9f3;
}

.key-stats li,
.gear-list li,
.activity-log 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,
.gear-list li:last-child,
.activity-log li:last-child {
    border-bottom: none;
}

.key-stats .label,
.gear-list .slot,
.activity-log .time {
    color: #8fa1c8;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.key-stats .value,
.gear-list .item,
.activity-log .desc {
    color: #f4f7ff;
    font-weight: 600;
}

.activity-log .desc {
    font-weight: 500;
    color: #d5defa;
    text-align: right;
}

.character-timeline {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 26px 72px rgba(3, 6, 14, 0.42);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline {
    list-style: none;
    margin: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.timeline li {
    display: flex;
    gap: 18px;
    align-items: center;
    border-left: 2px solid rgba(59, 130, 246, 0.35);
    padding-left: 18px;
}

.timeline__date {
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #bfdbfe;
    min-width: 110px;
}

.timeline__event {
    font-size: 14px;
    color: #d6def6;
}

@media (max-width: 960px) {
    .character-hero__content {
        padding: 28px;
    }

    .character-hero__name {
        font-size: 28px;
    }

    .character-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .character-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "main"
            "timeline";
    }
}

@media (max-width: 640px) {
    .character-profile {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
    }

    .character-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .character-hero__identity {
        gap: 14px;
    }
}

.character-panel {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 30px 72px rgba(3, 6, 14, 0.45);
    padding: 26px 28px;
    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;
}

.achievement-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: #d6def6;
}

.achievement-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(18, 26, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.achievement-title {
    font-weight: 600;
    color: #f4f7ff;
}

.achievement-meta {
    font-size: 12px;
    color: #8fa1c8;
}

.character-panel--equipment {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    align-items: start;
}

.equipment-grid__column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.equipment-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.equipment-portrait__frame {
    width: 220px;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 30%, rgba(234, 76, 137, 0.35), rgba(16, 24, 37, 0.8));
    box-shadow: 0 18px 46px rgba(10, 16, 28, 0.58), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.equipment-portrait__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-portrait__crest {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(18, 26, 40, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.equipment-portrait__crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.equipment-slot {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(18, 26, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.equipment-slot:hover {
    transform: translateY(-2px);
    border-color: rgba(234, 76, 137, 0.35);
    box-shadow: 0 12px 20px rgba(7, 12, 22, 0.35), inset 0 0 0 1px rgba(234, 76, 137, 0.12);
}

.equipment-slot__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(9, 14, 24, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.equipment-slot__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-slot__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.equipment-slot__type {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8fa1c8;
}

.equipment-slot__name {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equipment-slot__level {
    font-size: 12px;
    color: #b5c4ec;
}

.equipment-slot--empty .equipment-slot__name {
    color: #7a88a8;
}

.equipment-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1200px) {
    .equipment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .equipment-portrait {
        order: 3;
    }
}

@media (max-width: 780px) {
    .equipment-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .equipment-row,
    .equipment-grid--bottom {
        grid-template-columns: minmax(0, 1fr);
    }

    .equipment-portrait__frame {
        width: 180px;
        height: 180px;
    }
}

.equipment-grid--bottom {
    grid-template-columns: repeat(3, 70px);
    justify-content: center;
}

.character-panel--equipment {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.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-portrait {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(10, 16, 28, 0.55);
}

.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('/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;
}

.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('/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;
}

.inventory_row .item-holder .item-slot .item-quality a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background-image: url('/images/armory/inventory-slots.png');
    background-repeat: no-repeat;
}

.inventory_row .item-holder .item-slot .item-quality img {
    position: relative;
    z-index: 1;
}

.slot-0 { background-position: 1px 1px !important; }
.slot-1 { background-position: 1px -46px !important; }
.slot-2 { background-position: 1px -93px !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;
}

@media (max-width: 1024px) {
    .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;
    }
}

/* Обводка по качеству предметов (Quality 0-7) */
/* Спрайт inventory-slots.png: каждый спрайт 49px шириной */
/* Если на Quality 4 показывается синяя (должна быть фиолетовая), значит позиции сдвинуты на одну влево */
.inventory_row .item-holder .item-slot .item-quality.quality-0 a::before { background-position: -49px 0px !important; } /* Серый (Poor) */
.inventory_row .item-holder .item-slot .item-quality.quality-1 a::before { background-position: -98px 0px !important; } /* Белый (Common) */
.inventory_row .item-holder .item-slot .item-quality.quality-2 a::before { background-position: -147px 0px !important; } /* Зеленый (Uncommon) */
.inventory_row .item-holder .item-slot .item-quality.quality-3 a::before { background-position: -196px 0px !important; } /* Синий (Rare) */
.inventory_row .item-holder .item-slot .item-quality.quality-4 a::before { background-position: -245px 0px !important; } /* Фиолетовый (Epic) */
.inventory_row .item-holder .item-slot .item-quality.quality-5 a::before { background-position: -294px 0px !important; } /* Оранжевый (Legendary) */
.inventory_row .item-holder .item-slot .item-quality.quality-6 a::before { background-position: -343px 0px !important; } /* Красный (Artifact) */
.inventory_row .item-holder .item-slot .item-quality.quality-7 a::before { background-position: -392px 0px !important; } /* Золотой (Heirloom) */

/* Старый стиль для совместимости */
.inventory_row .item-holder .item-quality.quality-7 a::before { background-position: -392px 0 !important; }

/* Курсор pointer для слотов с предметами */
.inventory_row .item-holder .item-slot[data-entry] {
    cursor: pointer;
}

.profile {
    background-color: transparent;
    background-position: top;
    background-repeat: no-repeat;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    height: auto;
    position: relative;
    width: 100%;
}

.profile * {
    box-sizing: border-box;
    line-height: 1.5;
    position: relative;
}

.profile a { color: #a4492c; }
.profile a:hover { color: #c35633; }
.profile .pull_left { float: left; }
.profile .pull_right { float: right; }

.profile .self_clear:after {
    clear: both;
    content: "";
    display: block;
    font-size: 0;
    height: 0;
    visibility: hidden;
}

.profile:before {
    background-position: 0 0;
    background-repeat: no-repeat;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.profile.faction_horde:before { background-image: url('/images/crest-horde.png'); }
.profile.faction_alliance:before { background-image: url('/images/crest-alliance.png'); }

.profile:after {
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100%;
    content: "";
    height: 100%;
    left: 0;
    opacity: .4;
    position: absolute;
    top: 0;
    width: 100%;
}

.zone_theexodar:after { background-image: url('/images/zone_exodar.png'); }
.zone_ironforge:after { background-image: url('/images/zone_ironforge.png'); }
.zone_darnassus:after { background-image: url('/images/zone_darnassus.png'); }
.zone_orgrimmar:after { background-image: url('/images/zone_orgrimmar.png'); }
.zone_stormwind:after { background-image: url('/images/zone_stormwind.png'); }
.zone_undercity:after { background-image: url('/images/zone_undercity.png'); }
.zone_silvermoon:after { background-image: url('/images/zone_silvermoon.png'); }
.zone_deathknight:after { background-image: url('/images/zone_deathknight.png'); }
.zone_thunderbluff:after { background-image: url('/images/zone_thunderbluff.png'); }

.profile_row {
    display: block;
    height: auto;
    width: 100%;
    z-index: 9;
}
.armory_row {
    background-color: transparent;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
    min-height: 628px;
    padding: 50px 40px;
}

.inventory_row .item-holder .item-details {
    margin: 4px 0;
    width: calc(100% - 57px);
    text-align: left;
}

.inventory_row .inventory_right .item-holder .item-details {
    text-align: right;
}

.inventory_row .item-holder .item-details span {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #d6def6;
}

.inventory_row .item-holder .item-details .item-name {
    font-weight: 600;
    color: #f4f7ff;
}

.inventory_row .item-holder .item-details .item-level {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8fa1c8;
}

.inventory_row .item-holder .item-transmog {
    background-image: url('/images/armory/transmogrify-icon.gif');
    background-repeat: no-repeat;
    bottom: 0;
    height: 17px;
    position: absolute;
    width: 17px;
    z-index: 99;
}

.inventory_row .inventory_left .item-holder,
.inventory_row .inventory_right .item-holder {
    margin: 0 0 10px;
}

.inventory_row .inventory_bottom .item-holder {
    display: inline-block;
    margin: 0 10px 0 0;
}

.inventory_row .inventory_left .item-holder .item-transmog {
    background-position: 0 100%;
    left: 0;
}

.inventory_row .inventory_left .item-holder .item-transmog:hover {
    background-position: 100% 100%;
}

.inventory_row .inventory_right .item-holder .item-transmog {
    background-position: 0 0;
    right: 0;
}

.inventory_row .inventory_right .item-holder .item-transmog:hover {
    background-position: 100% 0;
}

.inventory_row .inventory_bottom .item-holder .item-transmog {
    right: 0;
    background-position: 0 0;
}

.inventory_row .inventory_bottom .item-holder .item-transmog:hover {
    background-position: 100% 0;
}

.inventory_row.advanced .item-holder {
    border-radius: 4px;
    height: 57px;
    width: 57px;
}

.inventory_row.advanced .item-holder .item-slot {
    margin: 4px;
}
.inventory_row.advanced .inventory_bottom {
    align-content: stretch;
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: auto 0 0;
    padding: 0 10px;
}

.inventory_row.advanced .inventory_bottom .item-holder {
    float: left;
    margin: 0;
}

.inventory_row.advanced .inventory_bottom .item-holder + .item-holder {
    margin-left: 10px;
}

/* Profile wrapper states */
.profile_row.armory_row {
    position: relative;
}

@media (max-width: 969px) {
    .inventory_row.advanced .item-holder {
        width: auto;
    }

    .inventory_bottom .item-holder {
        float: none !important;
        width: auto !important;
    }

    .pull_left,
    .pull_right {
        float: none;
    }
}

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

    .armory_row .armory_menu,
    .armory_row .armory_tabs,
    .inventory_row .character_frame {
        top: 0;
        width: 100%;
    }

    .inventory_row .character_frame .model {
        margin: 0 auto;
    }
}

.character-panel--stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    grid-column: 1 / -1;
    width: 100%;
}

.character-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(18, 26, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.stats-column__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #f4f7ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(8, 13, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-name {
    font-size: 13px;
    color: #9cb0d8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

@media (max-width: 960px) {
    .character-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .character-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* === Achievements Page Styles === */

body.achievements-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg15.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.achievements-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.achievements-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.achievements-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievements-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.achievements-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.achievement-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    position: relative;
    overflow: hidden;
}

.achievement-stat-card__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9eb1d7;
}

.achievement-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #f8faff;
}

.achievement-stat-card__meta {
    font-size: 12px;
    color: #9fb4dd;
}

.achievement-stat-card__progress {
    margin-top: 8px;
}

.achievements-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

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

.achievements-filter-card,
.achievements-summary-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
}

.filter-card__title,
.summary-card__title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.achievements-sidebar .category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.category-item:hover {
    background: rgba(93, 140, 255, 0.1);
    color: #f4f7ff;
}

.category-item.active {
    background: rgba(234, 76, 137, 0.2);
    border: 1px solid rgba(234, 76, 137, 0.4);
    color: #f4f7ff;
}

.category-count {
    font-size: 12px;
    color: #9fb4dd;
    font-weight: 600;
}

.category-item.active .category-count {
    color: #f4f7ff;
}

.filter-group {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-group-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9eb1d7;
}

.status-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #cbd8f1;
    cursor: pointer;
}

.status-filter input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ea4c89;
}

.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.summary-label {
    font-size: 13px;
    color: #9cb0d8;
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.achievements-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.achievements-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
}

.achievements-count {
    font-size: 14px;
    color: #9fb4dd;
}

.achievements-sort {
    display: flex;
    align-items: center;
}

.achievements-sort .sort-select {
    padding: 8px 32px 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239fb4dd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.achievement-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.achievement-card--completed {
    border-color: rgba(139, 255, 139, 0.2);
}

.achievement-card--in-progress {
    border-color: rgba(255, 184, 77, 0.2);
}

.achievement-card--not-started {
    opacity: 0.6;
}

.achievement-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.achievement-card__icon--gold {
    background: radial-gradient(circle at 30% 30%, #bfdbfe, #1e40af 65%, #1e3a8a);
}

.achievement-card__icon--purple {
    background: radial-gradient(circle at 30% 30%, #f6c9ff, #8c4fe0 65%, #4a207d);
}

.achievement-card__icon--blue {
    background: radial-gradient(circle at 30% 30%, #cde4ff, #4a87f3 65%, #1f3d82);
}

.achievement-card__icon--green {
    background: radial-gradient(circle at 30% 30%, #c8ffc8, #4fc04f 65%, #1f7a1f);
}

.achievement-card__icon--orange {
    background: radial-gradient(circle at 30% 30%, #bfdbfe, #3b82f6 65%, #1e40af);
}

.achievement-card__icon--red {
    background: radial-gradient(circle at 30% 30%, #ffb3b3, #ff5252 65%, #cc0000);
}

.achievement-card__icon--gray {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.achievement-card__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #f4f7ff;
}

.achievement-card__description {
    margin: 0;
    font-size: 13px;
    color: #9fb4dd;
    line-height: 1.5;
}

.achievement-card__progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.achievements-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.achievements-pagination .pagination-button,
.achievements-pagination .pagination-page {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.achievements-pagination .pagination-button:hover:not(:disabled),
.achievements-pagination .pagination-page:hover {
    border-color: rgba(234, 76, 137, 0.35);
    color: #f4f7ff;
}

.achievements-pagination .pagination-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.achievements-pagination .pagination-page.active {
    background: rgba(234, 76, 137, 0.2);
    border-color: rgba(234, 76, 137, 0.5);
    color: #f4f7ff;
}

.achievements-pagination .pagination-ellipsis {
    padding: 0 8px;
    color: #9fb4dd;
    display: flex;
    align-items: center;
}

@media (max-width: 1080px) {
    .achievements-content {
        grid-template-columns: 240px 1fr;
    }

    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .achievements-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .achievements-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .achievements-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .achievements-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 540px) {
    .achievements-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* === Download Page Styles === */

body.download-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg15.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.download-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 32px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.download-hero {
    text-align: center;
    padding: 60px 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 72px rgba(3, 6, 14, 0.45);
}

.download-hero__title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 700;
    color: #f4f7ff;
}

.download-hero__subtitle {
    margin: 0;
    font-size: 18px;
    color: #aebce0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.download-card {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 30px 72px rgba(3, 6, 14, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 90px rgba(3, 6, 14, 0.55);
}

.download-card__header {
    padding: 28px 28px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.download-card__icon {
    font-size: 36px;
    line-height: 1;
}

.download-card__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.download-card__body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.download-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.download-version {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(93, 140, 255, 0.2);
    border: 1px solid rgba(93, 140, 255, 0.4);
    color: #8fb5ff;
    font-size: 13px;
    font-weight: 600;
}

.download-size {
    font-size: 14px;
    color: #9fb4dd;
}
.download-description {
    margin: 0;
    font-size: 14px;
    color: #cbd8f1;
    line-height: 1.6;
}

.download-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.download-button {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.download-button--primary {
    background: linear-gradient(135deg, rgba(234, 76, 137, 0.9), rgba(234, 76, 137, 0.7));
    border: 1px solid rgba(234, 76, 137, 0.5);
    color: #f4f7ff;
    box-shadow: 0 8px 24px rgba(234, 76, 137, 0.3);
}

.download-button--primary:hover {
    background: linear-gradient(135deg, rgba(234, 76, 137, 1), rgba(234, 76, 137, 0.9));
    box-shadow: 0 12px 32px rgba(234, 76, 137, 0.4);
    transform: translateY(-2px);
}

.download-button--secondary {
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(148, 174, 221, 0.25);
    color: #cbd8f1;
}

.download-button--secondary:hover {
    border-color: rgba(234, 76, 137, 0.35);
    color: #f4f7ff;
    box-shadow: inset 0 0 0 1px rgba(234, 76, 137, 0.12);
}

/* Вкладки для загрузок */
.download-tabs {
    margin: 0;
}

.tabs-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #aebce0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(3, 6, 14, 0.3);
}

.tab-button:hover {
    background: rgba(18, 26, 40, 0.95);
    color: #cbd8f1;
    border-color: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(234, 76, 137, 0.9), rgba(234, 76, 137, 0.7));
    border-color: rgba(234, 76, 137, 0.5);
    color: #f4f7ff;
    box-shadow: 0 8px 24px rgba(234, 76, 137, 0.3);
}

.tab-button.active:hover {
    background: linear-gradient(135deg, rgba(234, 76, 137, 1), rgba(234, 76, 137, 0.9));
    box-shadow: 0 12px 32px rgba(234, 76, 137, 0.4);
}

/* Контент вкладок */
.download-content {
    margin-top: 32px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Список файлов */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-item {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(3, 6, 14, 0.3);
}

.download-item:hover {
    background: rgba(18, 26, 40, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(3, 6, 14, 0.4);
    transform: translateY(-2px);
}

.download-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
}

.download-item__description {
    margin: 0;
    font-size: 14px;
    color: #cbd8f1;
    line-height: 1.6;
}

.download-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.download-meta {
    font-size: 13px;
    color: #9fb4dd;
    padding: 4px 10px;
    background: rgba(93, 140, 255, 0.1);
    border: 1px solid rgba(93, 140, 255, 0.2);
    border-radius: 6px;
}

.download-item__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.download-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.download-btn--primary {
    background: linear-gradient(135deg, rgba(234, 76, 137, 0.9), rgba(234, 76, 137, 0.7));
    border: 1px solid rgba(234, 76, 137, 0.5);
    color: #f4f7ff;
    box-shadow: 0 6px 20px rgba(234, 76, 137, 0.3);
}

.download-btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(234, 76, 137, 1), rgba(234, 76, 137, 0.9));
    box-shadow: 0 8px 28px rgba(234, 76, 137, 0.4);
    transform: translateY(-2px);
}

.download-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(13, 19, 30, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.download-btn--secondary {
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(148, 174, 221, 0.25);
    color: #cbd8f1;
}

.download-btn--secondary:hover {
    border-color: rgba(234, 76, 137, 0.35);
    color: #f4f7ff;
    box-shadow: inset 0 0 0 1px rgba(234, 76, 137, 0.12);
}

.download-btn__icon {
    font-size: 16px;
    line-height: 1;
}

.download-empty {
    text-align: center;
    padding: 60px 40px;
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    color: #9fb4dd;
    font-size: 16px;
}

.download-instructions,
.download-faq,
.system-requirements {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 30px 72px rgba(3, 6, 14, 0.45);
    padding: 32px 36px;
}

.section-title {
    margin: 0 0 32px;
    font-size: 28px;
    font-weight: 700;
    color: #f4f7ff;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

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

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(234, 76, 137, 0.3), rgba(234, 76, 137, 0.2));
    border: 1px solid rgba(234, 76, 137, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ff8a8a;
}

.step-content {
    flex: 1;
}

.step-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.step-description {
    margin: 0;
    font-size: 14px;
    color: #cbd8f1;
    line-height: 1.6;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.requirement-card {
    padding: 24px;
    border-radius: 16px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.requirement-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #f4f7ff;
}

.requirement-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.requirement-list li {
    font-size: 14px;
    color: #cbd8f1;
    display: flex;
    gap: 8px;
}

.requirement-label {
    font-weight: 600;
    color: #8fb5ff;
    min-width: 120px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    padding: 20px;
    border-radius: 16px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.faq-answer {
    margin: 0;
    font-size: 14px;
    color: #cbd8f1;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .download-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-item__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .download-btn {
        flex: 1;
    }

    .download-options {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .download-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 32px;
    }

    .download-hero {
        padding: 40px 24px;
    }

    .download-hero__title {
        font-size: 32px;
    }

    .download-hero__subtitle {
        font-size: 16px;
    }

    .download-instructions,
    .download-faq,
    .system-requirements {
        padding: 24px 20px;
    }

    .download-actions {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .download-hero__subtitle {
        font-size: 15px;
    }
}

/* === Guild Rating Page Styles === */

body.guild-rating-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg11.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.guild-rating-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.guild-rating-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guild-rating-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guild-rating-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.guild-rating-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.guild-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    position: relative;
    overflow: hidden;
}

.guild-stat-card__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9eb1d7;
}

.guild-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #f8faff;
}

.guild-stat-card__split {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guild-stat-card__icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 6px 12px rgba(10, 15, 28, 0.45));
}

.guild-stat-card__meta {
    font-size: 13px;
    color: #8fa4ce;
}

.guild-stat-card__trend {
    font-size: 13px;
    color: #8ff1af;
}

.guild-rating-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 16, 27, 0.82);
}

.guild-rating-table-head,
.guild-rating-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.guild-rating-table-scroll {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(9, 13, 23, 0.65);
}

.guild-rating-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.guild-rating-table thead {
    background: rgba(93, 140, 255, 0.08);
}

.guild-rating-table th,
.guild-rating-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    color: #dce6ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guild-rating-table tbody tr:hover {
    background: rgba(93, 140, 255, 0.08);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #f4f7ff;
    background: rgba(93, 140, 255, 0.2);
    border: 1px solid rgba(93, 140, 255, 0.4);
}

.rank-badge--gold {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(59, 130, 246, 0.2));
    border-color: rgba(37, 99, 235, 0.6);
    color: #2563eb;
}

.rank-badge--silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3), rgba(169, 169, 169, 0.2));
    border-color: rgba(192, 192, 192, 0.6);
    color: #c0c0c0;
}

.rank-badge--bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.3), rgba(184, 115, 51, 0.2));
    border-color: rgba(205, 127, 50, 0.6);
    color: #cd7f32;
}

.guild-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guild-cell__icon {
    font-size: 24px;
    line-height: 1;
}

.guild-name {
    display: block;
    font-weight: 600;
    color: #f6f8ff;
    font-size: 14px;
}

.guild-meta {
    display: block;
    font-size: 12px;
    color: #9fb4dd;
    margin-top: 2px;
}

.faction-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(93, 140, 255, 0.15);
    border: 1px solid rgba(93, 140, 255, 0.3);
    color: #cbd8f1;
}

.faction-badge img {
    width: 16px;
    height: 16px;
}

.faction-badge--horde {
    background: rgba(184, 55, 55, 0.2);
    border-color: rgba(184, 55, 55, 0.4);
    color: #ff8a8a;
}

.faction-badge--alliance {
    background: rgba(74, 119, 196, 0.2);
    border-color: rgba(74, 119, 196, 0.4);
    color: #9bb5ff;
}

.member-count {
    font-weight: 600;
    color: #f0f5ff;
}

.gs-value {
    font-weight: 600;
    color: #2563eb;
}

.progress-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.progress-text {
    font-size: 12px;
    color: #cbd8f1;
    font-weight: 500;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5d8cff, #7ba6ff);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.last-raid {
    font-size: 12px;
    color: #9fb4dd;
}

@media (max-width: 1080px) {
    .guild-rating-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .guild-rating-table-wrapper {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .guild-rating-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* === Guild Profile Page Styles === */

body.guild-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg12.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.guild-profile {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: calc(var(--navbar-height, 104px) + 32px) var(--content-gutter, 28px) 80px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.guild-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 36px 120px rgba(2, 5, 12, 0.6);
    background: rgba(10, 14, 22, 0.85);
    backdrop-filter: blur(18px);
}

.guild-hero__bg {
    position: absolute;
    inset: -20% 0;
    background: radial-gradient(circle at 30% 20%, rgba(101, 138, 255, 0.25), transparent 55%),
        radial-gradient(circle at 75% 25%, rgba(248, 178, 90, 0.2), transparent 60%),
        linear-gradient(120deg, rgba(6, 10, 18, 0.95), rgba(14, 20, 32, 0.75));
}

.guild-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 36px 40px;
}

.guild-hero__identity {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.guild-hero__nameblock {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.guild-hero__name {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    color: #f4f7ff;
}
.guild-hero__meta {
    font-size: 15px;
    color: #aebce0;
    margin-top: 8px;
}

.guild-hero__second-meta {
    font-size: 13px;
    color: #8f9ec4;
    margin-top: 6px;
}

.guild-hero__faction {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    opacity: 0.3;
    background-repeat: no-repeat;
    background-size: 75% auto;
    background-position: center right;
    pointer-events: none;
}

.guild-hero__faction--horde {
    background-image: url('/images/factions/horde.svg');
}

.guild-hero__faction--alliance {
    background-image: url('/images/factions/alliance.svg');
}

.guild-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 1;
}

.guild-hero__stat {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 22, 32, 0.75);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-transform: uppercase;
}

.guild-hero__stat .stat-label {
    font-size: 11px;
    letter-spacing: 0.8px;
    color: #8fa1c8;
}

.guild-hero__stat .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.guild-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.guild-panel {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 30px 72px rgba(3, 6, 14, 0.45);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.guild-panel--members,
.guild-panel--achievements {
    grid-column: 1 / -1;
}

.panel-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-subsection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #f4f7ff;
}

.guild-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cbd8f1;
}

.raid-schedule {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.raid-schedule li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-day {
    font-weight: 600;
    color: #f4f7ff;
    min-width: 100px;
}

.schedule-time {
    color: #8fb5ff;
    min-width: 120px;
}

.schedule-raid {
    color: #cbd8f1;
    flex: 1;
}

.raid-progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.raid-progress-item {
    padding: 16px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.raid-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.raid-name {
    font-weight: 600;
    color: #f4f7ff;
    font-size: 14px;
}

.raid-status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.raid-status--completed {
    background: rgba(139, 255, 139, 0.2);
    color: #8bff8b;
}

.raid-progress-meta {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 12px;
    color: #9fb4dd;
}

.guild-members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.member-item:hover {
    background: rgba(93, 140, 255, 0.08);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-faction {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-faction--horde {
    background: rgba(184, 55, 55, 0.22);
    -webkit-mask: url('/images/factions/horde.svg') center / 18px 18px no-repeat;
    mask: url('/images/factions/horde.svg') center / 18px 18px no-repeat;
    background-color: #dd6a6a;
}

.member-faction--alliance {
    background: rgba(74, 119, 196, 0.22);
    -webkit-mask: url('/images/factions/alliance.svg') center / 18px 18px no-repeat;
    mask: url('/images/factions/alliance.svg') center / 18px 18px no-repeat;
    background-color: #7ba6ff;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-name {
    font-weight: 600;
    color: #f4f7ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.member-name:hover {
    color: #8fb5ff;
}

.member-class {
    font-size: 12px;
    color: #9fb4dd;
}

.member-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.member-gs {
    font-weight: 600;
    color: #2563eb;
    font-size: 13px;
}

.member-rank {
    font-size: 12px;
    color: #8fb5ff;
}

.guild-members-footer {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.guild-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.achievement-icon {
    font-size: 24px;
    line-height: 1;
}

.achievement-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.achievement-title {
    font-weight: 600;
    color: #f4f7ff;
    font-size: 13px;
}

.achievement-date {
    font-size: 11px;
    color: #9fb4dd;
}

@media (max-width: 1024px) {
    .guild-detail-grid {
        grid-template-columns: 1fr;
    }

    .guild-panel--members,
    .guild-panel--achievements {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .guild-profile {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .guild-hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .guild-achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* === Product View Page Styles === */

body.product-view-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg-dis.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.product-view-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-view-header {
    margin-bottom: -8px;
}

.product-view-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.product-view-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-view-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-view-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-large {
    font-size: 120px;
    opacity: 0.8;
}

.product-view-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-view-header-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-view-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #f4f7ff;
}

.product-view-category {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-badge {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(93, 140, 255, 0.15);
    color: #8fb5ff;
    font-size: 13px;
    font-weight: 600;
}

.product-view-id {
    font-size: 12px;
    color: #9fb4dd;
}

.product-view-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
}

.product-view-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-label {
    font-size: 13px;
    color: #9fb4dd;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.price-value-large {
    font-size: 36px;
    font-weight: 700;
    color: #3b82f6;
}

.price-icon-large {
    font-size: 32px;
}

.product-view-stock {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.stock-label {
    font-size: 12px;
    color: #9fb4dd;
}

.stock-value {
    font-size: 14px;
    font-weight: 600;
    color: #8bff8b;
}

.product-view-section {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
}

.product-view-description p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #cbd8f1;
    line-height: 1.7;
}

.product-view-description p:last-child {
    margin-bottom: 0;
}

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

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-label {
    font-size: 12px;
    color: #9fb4dd;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.spec-value {
    font-size: 16px;
    font-weight: 700;
    color: #f4f7ff;
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: #cbd8f1;
    line-height: 1.6;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8bff8b;
    font-weight: 700;
}

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

.product-purchase-card,
.product-info-card {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    width: 100%;
}

.purchase-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.purchase-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
}

.purchase-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.purchase-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
}

.purchase-card-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.balance-label {
    font-size: 13px;
    color: #9fb4dd;
}
.balance-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #f4f7ff;
}

.purchase-card-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.purchase-card-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.summary-label {
    color: #9fb4dd;
}

.summary-value {
    font-weight: 600;
    color: #f4f7ff;
}

.summary-row--total {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
}

.summary-row--total .summary-label {
    color: #f4f7ff;
    font-weight: 700;
}

.summary-row--total .summary-value {
    font-size: 18px;
    color: #3b82f6;
}

.purchase-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, rgba(234, 76, 137, 0.9), rgba(234, 76, 137, 0.7));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(234, 76, 137, 0.3);
}

.purchase-button:hover {
    background: linear-gradient(135deg, rgba(234, 76, 137, 1), rgba(234, 76, 137, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 76, 137, 0.4);
}

.purchase-card-note {
    padding: 12px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.purchase-card-note p {
    margin: 0;
    font-size: 12px;
    color: #93c5fd;
    line-height: 1.5;
}

.info-card-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #f4f7ff;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.info-label {
    font-size: 13px;
    color: #9fb4dd;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.info-value--legendary {
    color: #2563eb;
}

.product-view-related {
    margin-top: 16px;
}

.related-title {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-product-card {
    display: block;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.related-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.related-product-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.related-product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-product-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.related-product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
}

@media (max-width: 1080px) {
    .product-view-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .product-view-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .product-view-title {
        font-size: 28px;
    }

    .product-view-price-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-view-stock {
        text-align: left;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 540px) {
    .product-view-image {
        aspect-ratio: 4 / 3;
    }

    .product-image-large {
        font-size: 80px;
    }

    .product-view-title {
        font-size: 24px;
    }

    .specs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === PvP Ladder Page Styles === */

body.pvp-ladder-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg13.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.pvp-ladder-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pvp-ladder-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pvp-ladder-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pvp-ladder-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.pvp-ladder-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.pvp-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    position: relative;
    overflow: hidden;
}

.pvp-stat-card__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9eb1d7;
}

.pvp-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #f8faff;
}

.pvp-stat-card__split {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pvp-stat-card__icon {
    font-size: 24px;
    line-height: 1;
}

.pvp-stat-card__meta {
    font-size: 13px;
    color: #8fa4ce;
}

.pvp-stat-card__trend {
    font-size: 13px;
    color: #8ff1af;
}
.pvp-ladder-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 16, 27, 0.82);
}

.pvp-ladder-table-head,
.pvp-ladder-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pvp-ladder-table-head .table-action {
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(148, 174, 221, 0.25);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pvp-ladder-table-head .table-action:hover {
    border-color: rgba(234, 76, 137, 0.35);
    box-shadow: inset 0 0 0 1px rgba(234, 76, 137, 0.12);
}

.pvp-ladder-table-head .table-action.active {
    background: rgba(234, 76, 137, 0.2);
    border-color: rgba(234, 76, 137, 0.5);
    color: #f4f7ff;
}

.pvp-ladder-table-scroll {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(9, 13, 23, 0.65);
}

.pvp-ladder-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.pvp-ladder-table thead {
    background: rgba(93, 140, 255, 0.08);
}

.pvp-ladder-table th,
.pvp-ladder-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    color: #dce6ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pvp-ladder-table tbody tr:hover {
    background: rgba(93, 140, 255, 0.08);
}

.team-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-members {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.member-class-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.team-member .member-name {
    font-size: 12px;
    font-weight: 500;
    color: #f4f7ff;
}

.team-name {
    font-size: 12px;
    color: #8fb5ff;
    font-weight: 500;
}

.rating-value {
    font-weight: 600;
    font-size: 13px;
}

.rating-value--high {
    color: #2563eb;
}

.rating-value--medium {
    color: #8fb5ff;
}

.rating-value--low {
    color: #cbd8f1;
}

.wins-count {
    color: #8bff8b;
    font-weight: 600;
}

.losses-count {
    color: #ff8a8a;
    font-weight: 600;
}

.winrate {
    font-weight: 600;
    color: #f4f7ff;
}

.rating-change {
    font-weight: 600;
    font-size: 13px;
}

.rating-change--up {
    color: #8bff8b;
}

.rating-change--down {
    color: #ff8a8a;
}

@media (max-width: 1080px) {
    .pvp-ladder-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .pvp-ladder-table-wrapper {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .pvp-ladder-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-members {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .pvp-ladder-table {
        min-width: 900px;
    }
}

/* === Raid Stats Page Styles === */

body.raid-stats-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg14.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.raid-stats-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.raid-stats-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.raid-stats-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.raid-stats-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.raid-stats-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.raid-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    position: relative;
    overflow: hidden;
}

.raid-stat-card__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9eb1d7;
}

.raid-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #f8faff;
}

.raid-stat-card__split {
    display: flex;
    align-items: center;
    gap: 12px;
}

.raid-stat-card__icon {
    font-size: 24px;
    line-height: 1;
}

.raid-stat-card__meta {
    font-size: 13px;
    color: #8fa4ce;
}

.raid-stat-card__trend {
    font-size: 13px;
    color: #8ff1af;
}

.raid-stats-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 16, 27, 0.82);
}
.raid-stats-table-head,
.raid-stats-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.raid-stats-table-head .table-action {
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(148, 174, 221, 0.25);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.raid-stats-table-head .table-action:hover {
    border-color: rgba(234, 76, 137, 0.35);
    box-shadow: inset 0 0 0 1px rgba(234, 76, 137, 0.12);
}

.raid-stats-table-head .table-action.active {
    background: rgba(234, 76, 137, 0.2);
    border-color: rgba(234, 76, 137, 0.5);
    color: #f4f7ff;
}

.raid-stats-table-scroll {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(9, 13, 23, 0.65);
}

.raid-stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.raid-stats-table thead {
    background: rgba(93, 140, 255, 0.08);
}

.raid-stats-table th,
.raid-stats-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    color: #dce6ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.raid-stats-table tbody tr:hover {
    background: rgba(93, 140, 255, 0.08);
}

.raid-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.raid-icon {
    font-size: 28px;
    line-height: 1;
}

.raid-name {
    display: block;
    font-weight: 600;
    color: #f4f7ff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.raid-name:hover {
    color: #8fb5ff;
}

.raid-meta {
    display: block;
    font-size: 12px;
    color: #9fb4dd;
    margin-top: 2px;
}

.difficulty-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.difficulty-badge--heroic {
    background: rgba(234, 76, 137, 0.2);
    border: 1px solid rgba(234, 76, 137, 0.4);
    color: #ff8a8a;
}

.difficulty-badge--normal {
    background: rgba(93, 140, 255, 0.2);
    border: 1px solid rgba(93, 140, 255, 0.4);
    color: #8fb5ff;
}

.completion-count {
    font-weight: 600;
    color: #f4f7ff;
}

.best-time {
    font-weight: 600;
    color: #2563eb;
}

.top-guild-link {
    color: #8fb5ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.top-guild-link:hover {
    color: #aecaff;
    text-decoration: underline;
}

.last-completion {
    font-size: 12px;
    color: #9fb4dd;
}

@media (max-width: 1080px) {
    .raid-stats-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .raid-stats-table-wrapper {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .raid-stats-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 540px) {
    .raid-stats-table {
        min-width: 900px;
    }
}

/* === Shop Page Styles === */

body.shop-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg-dis.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.shop-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.shop-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.shop-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.shop-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.shop-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    position: relative;
    overflow: hidden;
}

.shop-stat-card__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9eb1d7;
}

.shop-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #f8faff;
}

.shop-stat-card__split {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-stat-card__icon {
    font-size: 24px;
    line-height: 1;
}

.shop-stat-card__link {
    font-size: 13px;
    color: #8fb5ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-stat-card__link:hover {
    color: #aecaff;
    text-decoration: underline;
}

.shop-stat-card__trend {
    font-size: 13px;
    color: #8ff1af;
}

.shop-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.shop-filters {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 30px 72px rgba(3, 6, 14, 0.45);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--navbar-height, 104px) + 24px);
}

.filters-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.shop-filters .category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-filters .category-item {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.shop-filters .category-item:hover {
    border-color: rgba(234, 76, 137, 0.35);
    box-shadow: inset 0 0 0 1px rgba(234, 76, 137, 0.12);
    color: #f4f7ff;
}

.shop-filters .category-item.active {
    background: rgba(234, 76, 137, 0.2);
    border-color: rgba(234, 76, 137, 0.5);
    color: #f4f7ff;
}

.category-count {
    font-size: 12px;
    color: #9fb4dd;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.shop-filters .category-item.active .category-count {
    background: rgba(234, 76, 137, 0.3);
    color: #f4f7ff;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-range {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9fb4dd;
}

.shop-products {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.products-count {
    font-size: 15px;
    font-weight: 600;
    color: #f4f7ff;
}

.products-sort {
    display: flex;
    align-items: center;
}

.products-sort .sort-select {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d6def6;
    font-size: 14px;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="8" fill="none" viewBox="0 0 12 8"%3E%3Cpath d="M1 1l5 5 5-5" stroke="%239fb4dd" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 30px 72px rgba(3, 6, 14, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 90px rgba(3, 6, 14, 0.55);
}

.product-card__image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-placeholder {
    font-size: 64px;
    line-height: 1;
    opacity: 0.6;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-badge--new {
    background: rgba(139, 255, 139, 0.2);
    border: 1px solid rgba(139, 255, 139, 0.4);
    color: #8bff8b;
}

.product-badge--sale {
    background: rgba(234, 76, 137, 0.2);
    border: 1px solid rgba(234, 76, 137, 0.4);
    color: #ff8a8a;
}

.product-badge--popular {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #2563eb;
}

.product-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.product-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.product-description {
    margin: 0;
    font-size: 13px;
    color: #cbd8f1;
    line-height: 1.5;
    flex: 1;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

.price-value--old {
    font-size: 14px;
    color: #9fb4dd;
    text-decoration: line-through;
    opacity: 0.6;
}

.price-icon {
    font-size: 18px;
}

.product-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(234, 76, 137, 0.5);
    background: rgba(234, 76, 137, 0.2);
    color: #f4f7ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-button:hover {
    background: rgba(234, 76, 137, 0.3);
    border-color: rgba(234, 76, 137, 0.7);
    transform: translateY(-1px);
}

.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.products-pagination .pagination-button {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.products-pagination .pagination-button:hover:not(:disabled) {
    border-color: rgba(234, 76, 137, 0.35);
    color: #f4f7ff;
}

.products-pagination .pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.products-pagination .pagination-pages {
    display: flex;
    gap: 4px;
}

.products-pagination .pagination-page {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.products-pagination .pagination-page:hover {
    border-color: rgba(234, 76, 137, 0.35);
    color: #f4f7ff;
}

.products-pagination .pagination-page.active {
    background: rgba(234, 76, 137, 0.2);
    border-color: rgba(234, 76, 137, 0.5);
    color: #f4f7ff;
}

.products-pagination .pagination-ellipsis {
    padding: 0 8px;
    color: #9fb4dd;
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .shop-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-filters {
        position: static;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .shop-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .shop-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* === Ticket View Page Styles === */

body.ticket-view-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg11.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.ticket-view-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ticket-view-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
}

.ticket-view-header__back {
    margin-bottom: 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8fb5ff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #f4f7ff;
}

.ticket-view-header__title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ticket-view-header__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #f4f7ff;
}

.ticket-view-header__id {
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(143, 181, 255, 0.15);
    color: #8fb5ff;
    font-size: 14px;
    font-weight: 600;
}

.ticket-view-header__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ticket-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ticket-meta-label {
    color: #9fb4dd;
}

.ticket-meta-value {
    color: #f4f7ff;
    font-weight: 600;
}

.ticket-meta-value--high {
    color: #ff837a;
}

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

.ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-message {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
}

.ticket-message--user {
    border-left: 4px solid #5d8cff;
}

.ticket-message--support {
    border-left: 4px solid #8bff8b;
}

.ticket-message__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-message__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-message__avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.ticket-message__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-message__avatar--support {
    background: linear-gradient(135deg, #8bff8b, #35d87f);
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-badge {
    font-size: 20px;
    font-weight: 700;
    color: #091024;
}

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

.ticket-message__name {
    font-size: 15px;
    font-weight: 700;
    color: #f4f7ff;
}

.ticket-message__role {
    font-size: 12px;
    color: #9fb4dd;
}

.ticket-message__role--support {
    color: #8bff8b;
    font-weight: 600;
}

.ticket-message__date {
    font-size: 12px;
    color: #6b7a9f;
}

.ticket-message__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-message__edit-btn,
.ticket-message__delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7a9f;
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ticket-message__edit-btn:hover {
    opacity: 1;
    color: #5d8cff;
}

.ticket-message__delete-btn:hover {
    opacity: 1;
    color: #ef4444;
}

.ticket-message__edit-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-message__body {
    font-size: 14px;
    color: #cbd8f1;
    line-height: 1.7;
}

.ticket-message__body p {
    margin: 0 0 12px 0;
}

.ticket-message__body p:last-child {
    margin-bottom: 0;
}

.ticket-message__body ol,
.ticket-message__body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.ticket-message__body li {
    margin-bottom: 6px;
}

.ticket-message__attachments {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-message__attachment {
    margin: 0;
    padding: 0;
    border: none;
}

.attachment-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.2s ease;
}

.attachment-link:hover {
    opacity: 0.8;
}

.attachment-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.attachment-link:hover .attachment-preview {
    background: rgba(9, 13, 23, 0.85);
    border-color: rgba(93, 140, 255, 0.2);
}

.attachment-preview--image {
    cursor: pointer;
    transition: all 0.2s ease;
}

.attachment-preview--image:hover {
    background: rgba(9, 13, 23, 0.85);
    border-color: rgba(93, 140, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 140, 255, 0.2);
}

.attachment-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.attachment-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.attachment-preview--image:hover .attachment-image {
    transform: scale(1.05);
}

.attachment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-size: 13px;
    font-weight: 600;
    color: #f4f7ff;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.attachment-size {
    font-size: 12px;
    color: #9fb4dd;
}

.attachment-hint {
    font-size: 11px;
    color: #6b7a9f;
    font-style: italic;
    margin-top: 2px;
}

/* Модальное окно для просмотра изображений */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

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

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

.image-modal__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
    padding: 0;
    margin: 0;
}

.image-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.image-modal__image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.image-modal__info {
    margin-top: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-modal__name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    display: block;
}

@media (max-width: 768px) {
    .image-modal {
        padding: 10px;
    }

    .image-modal__close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }

    .image-modal__image {
        max-height: 80vh;
    }

    .image-modal__info {
        margin-top: 12px;
        padding: 10px 16px;
    }

    .image-modal__name {
        font-size: 13px;
    }
}

/* Стили для формы загрузки файлов */
.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.attachment-item .attachment-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #f4f7ff;
    word-break: break-word;
}

.attachment-item .attachment-size {
    font-size: 12px;
    color: #9fb4dd;
    white-space: nowrap;
}

.attachment-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.attachment-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ff6b6b;
}

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

.ticket-sidebar-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
}

.ticket-sidebar-card__title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #f4f7ff;
}

.ticket-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.sidebar-info-label {
    font-size: 12px;
    color: #9fb4dd;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sidebar-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.sidebar-info-value--high {
    color: #ff837a;
}

.ticket-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-action-button {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-action-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f4f7ff;
}

.sidebar-action-button--close {
    background: rgba(255, 131, 122, 0.1);
    border-color: rgba(255, 131, 122, 0.2);
    color: #ff837a;
}

.sidebar-action-button--close:hover {
    background: rgba(255, 131, 122, 0.2);
    border-color: rgba(255, 131, 122, 0.3);
    color: #ffaaaa;
}

.ticket-reply-section {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
}

.ticket-reply-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket-reply-form__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
}

.ticket-reply-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.ticket-reply-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ticket-reply-form__attachments {
    display: flex;
    align-items: center;
}

.attachment-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #8fb5ff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attachment-button:hover {
    background: rgba(93, 140, 255, 0.1);
    border-color: rgba(93, 140, 255, 0.2);
    color: #f4f7ff;
}

.attachment-button--clear {
    margin-left: 8px;
    color: #ef4444;
}

.attachment-button--clear:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ff6b6b;
}

.ticket-reply-form__attachments {
    display: flex;
    align-items: center;
    gap: 0;
}

.ticket-reply-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-reply-form__cancel {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-reply-form__cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f4f7ff;
}

.ticket-reply-form__submit {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, rgba(234, 76, 137, 0.9), rgba(234, 76, 137, 0.7));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-reply-form__submit:hover {
    background: linear-gradient(135deg, rgba(234, 76, 137, 1), rgba(234, 76, 137, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 76, 137, 0.4);
}

@media (max-width: 1080px) {
    .ticket-view-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 20px;
    }

    .ticket-view-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .ticket-view-header__title-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-view-header__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ticket-message__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ticket-reply-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ticket-reply-form__actions {
        width: 100%;
    }

    .ticket-reply-form__cancel,
    .ticket-reply-form__submit {
        flex: 1;
    }
}

@media (max-width: 540px) {
    .ticket-view-header {
        padding: 16px;
    }

    .ticket-message {
        padding: 16px;
    }

    .ticket-reply-section {
        padding: 16px;
    }
}

/* === Tickets Page Styles === */

body.tickets-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg11.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.tickets-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tickets-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tickets-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tickets-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.tickets-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.ticket-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    position: relative;
    overflow: hidden;
}

.ticket-stat-card__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9eb1d7;
}

.ticket-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #f8faff;
}

.ticket-stat-card__meta {
    font-size: 12px;
    color: #9fb4dd;
}

.tickets-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tickets-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ticket-create-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, rgba(234, 76, 137, 0.9), rgba(234, 76, 137, 0.7));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(234, 76, 137, 0.3);
}

.ticket-create-button:hover {
    background: linear-gradient(135deg, rgba(234, 76, 137, 1), rgba(234, 76, 137, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(234, 76, 137, 0.4);
}

.tickets-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: rgba(93, 140, 255, 0.1);
    color: #f4f7ff;
}
.filter-tab.active {
    background: rgba(234, 76, 137, 0.2);
    border-color: rgba(234, 76, 137, 0.4);
    color: #f4f7ff;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket-card {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ticket-card--open {
    border-left: 4px solid #8bff8b;
}

.ticket-card--pending {
    border-left: 4px solid #3b82f6;
}

.ticket-card--closed {
    border-left: 4px solid #9fb4dd;
    opacity: 0.8;
}

.ticket-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.ticket-card__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ticket-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.ticket-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #9fb4dd;
}

.ticket-id {
    font-weight: 600;
    color: #8fb5ff;
}

.ticket-category {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(93, 140, 255, 0.15);
    color: #8fb5ff;
}

.ticket-date {
    color: #9fb4dd;
}

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

.ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ticket-status--open {
    background: rgba(139, 255, 139, 0.2);
    color: #8bff8b;
    border: 1px solid rgba(139, 255, 139, 0.3);
}

.ticket-status--pending {
    background: rgba(255, 184, 77, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(255, 184, 77, 0.3);
}

.ticket-status--closed {
    background: rgba(159, 180, 221, 0.2);
    color: #9fb4dd;
    border: 1px solid rgba(159, 180, 221, 0.3);
}

.ticket-card__preview {
    margin-bottom: 16px;
}

.ticket-card__preview p {
    margin: 0;
    font-size: 14px;
    color: #cbd8f1;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-card__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #9fb4dd;
}

.ticket-replies {
    font-weight: 600;
}

.ticket-last-update {
    color: #9fb4dd;
}

.ticket-view-button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(93, 140, 255, 0.1);
    color: #8fb5ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-view-button:hover {
    background: rgba(93, 140, 255, 0.2);
    border-color: rgba(93, 140, 255, 0.3);
    color: #f4f7ff;
}

.ticket-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ticket-modal.show {
    opacity: 1;
    visibility: visible;
}

.ticket-modal__content {
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.95), rgba(18, 26, 40, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ticket-modal.show .ticket-modal__content {
    transform: scale(1);
}

.ticket-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.ticket-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd8f1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
}

.ticket-form {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.form-select,
.form-input,
.form-textarea {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(234, 76, 137, 0.5);
    box-shadow: 0 0 0 3px rgba(234, 76, 137, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239fb4dd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: #6b7a9f;
}

.ticket-form__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

.ticket-form__cancel {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-form__cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f4f7ff;
}

.ticket-form__submit {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, rgba(234, 76, 137, 0.9), rgba(234, 76, 137, 0.7));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-form__submit:hover {
    background: linear-gradient(135deg, rgba(234, 76, 137, 1), rgba(234, 76, 137, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 76, 137, 0.4);
}

@media (max-width: 1080px) {
    .tickets-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .tickets-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .ticket-create-button {
        width: 100%;
        justify-content: center;
    }

    .tickets-filters {
        width: 100%;
        justify-content: center;
    }

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

    .ticket-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ticket-view-button {
        width: 100%;
    }

    .ticket-modal__content {
        width: 95%;
        max-height: 95vh;
    }
}

@media (max-width: 540px) {
    .ticket-card {
        padding: 16px;
    }

    .ticket-modal__header {
        padding: 20px;
    }

    .ticket-form {
        padding: 20px;
    }
}

/* === Vote Page Styles === */

body.vote-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg12.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.vote-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.vote-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vote-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vote-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.vote-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.vote-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    position: relative;
    overflow: hidden;
}

.vote-stat-card__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9eb1d7;
}

.vote-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #f8faff;
}

.vote-stat-card__split {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vote-stat-card__icon {
    font-size: 24px;
}

.vote-stat-card__trend {
    font-size: 13px;
    font-weight: 600;
}

.trend-up {
    color: #8bff8b;
}

.vote-stat-card__meta {
    font-size: 12px;
    color: #9fb4dd;
}

.vote-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.vote-info {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
}

.vote-info__title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
}

.vote-info__list {
    margin: 0 0 16px 0;
    padding-left: 24px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vote-info__list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: #cbd8f1;
    line-height: 1.6;
}

.vote-info__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8bff8b;
    font-weight: 700;
}

.vote-info__note {
    padding: 16px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 13px;
    color: #93c5fd;
    line-height: 1.6;
}

.vote-info__note strong {
    color: #3b82f6;
    font-weight: 600;
}

.vote-sites {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vote-sites__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.vote-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vote-site-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vote-site-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vote-site-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.vote-site-card__icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vote-site-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.vote-site-card__name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.vote-site-card__rank {
    font-size: 12px;
    color: #9fb4dd;
}
.vote-site-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vote-site-card__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vote-site-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.vote-site-stat__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9eb1d7;
}

.vote-site-stat__value {
    font-size: 16px;
    font-weight: 700;
    color: #f4f7ff;
}

.vote-site-card__status {
    display: flex;
    align-items: center;
}

.vote-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vote-status--ready {
    background: linear-gradient(135deg, #7bf5c1, #35d87f);
    color: #091024;
}

.vote-status--cooldown {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #3a2104;
}

.vote-site-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, rgba(234, 76, 137, 0.9), rgba(234, 76, 137, 0.7));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vote-site-card__button:hover {
    background: linear-gradient(135deg, rgba(234, 76, 137, 1), rgba(234, 76, 137, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 76, 137, 0.4);
}

.vote-site-card__button--disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #6b7a9f;
    cursor: not-allowed;
    opacity: 0.6;
}

.vote-site-card__button--disabled:hover {
    transform: none;
    box-shadow: none;
}

.vote-history {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vote-history__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.vote-history-table-wrapper {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    overflow-x: auto;
}

.vote-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vote-history-table thead {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-history-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9eb1d7;
}

.vote-history-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.vote-history-table tbody tr:hover {
    background: rgba(93, 140, 255, 0.08);
}

.vote-history-table td {
    padding: 16px;
    color: #f4f7ff;
}
.vote-history-site {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vote-history-site__icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vote-history-site__name {
    font-weight: 600;
    color: #f4f7ff;
}

.vote-history-reward {
    font-weight: 600;
    color: #3b82f6;
}

.vote-history-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vote-history-status--success {
    background: rgba(139, 255, 139, 0.2);
    color: #8bff8b;
    border: 1px solid rgba(139, 255, 139, 0.3);
}

.vote-history-status--pending {
    background: rgba(255, 184, 77, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(255, 184, 77, 0.3);
}

@media (max-width: 1080px) {
    .vote-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .vote-sites-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .vote-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .vote-sites-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vote-history-table {
        min-width: 600px;
    }
}

@media (max-width: 540px) {
    .vote-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* === Wheel Page Styles === */

body.wheel-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg14.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.wheel-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wheel-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wheel-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wheel-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.wheel-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.wheel-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    position: relative;
    overflow: hidden;
}

.wheel-stat-card__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9eb1d7;
}

.wheel-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #f8faff;
}

.wheel-stat-card__split {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wheel-stat-card__icon {
    font-size: 24px;
}

.wheel-stat-card__meta {
    font-size: 12px;
    color: #9fb4dd;
}

.wheel-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 50px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.35), rgba(18, 26, 40, 0.75));
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wheel-wrapper {
    position: relative;
    width: 650px;
    height: 650px;
    margin: 0 auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 12px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 60px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(59, 130, 246, 0.2);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.95), rgba(18, 26, 40, 0.95));
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 130, 246, 0.3);
    z-index: 5;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 50%;
    transform-origin: 0 100%;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 30px;
    box-sizing: border-box;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    transition: filter 0.2s ease;
}

.wheel-segment:hover {
    filter: brightness(1.1);
}

.wheel-segment:nth-child(1) { 
    background: linear-gradient(135deg, #ea4c89 0%, #c73d6f 100%);
}
.wheel-segment:nth-child(2) { 
    background: linear-gradient(135deg, #5d8cff 0%, #4a6fd4 100%);
}
.wheel-segment:nth-child(3) { 
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}
.wheel-segment:nth-child(4) { 
    background: linear-gradient(135deg, #7bf5c1 0%, #5dd4a0 100%);
}
.wheel-segment:nth-child(5) { 
    background: linear-gradient(135deg, #ff837a 0%, #e66a61 100%);
}
.wheel-segment:nth-child(6) { 
    background: linear-gradient(135deg, #aac6ff 0%, #8ba8e6 100%);
}
.wheel-segment:nth-child(7) { 
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}
.wheel-segment:nth-child(8) { 
    background: linear-gradient(135deg, #8bff8b 0%, #6de66d 100%);
}
.wheel-segment:nth-child(9) { 
    background: linear-gradient(135deg, #ff6b9d 0%, #e64d7f 100%);
}
.wheel-segment:nth-child(10) { 
    background: linear-gradient(135deg, #6bcfff 0%, #4ba8d9 100%);
}
.wheel-segment:nth-child(11) { 
    background: linear-gradient(135deg, #ffa500 0%, #e68a00 100%);
}
.wheel-segment:nth-child(12) { 
    background: linear-gradient(135deg, #9b59b6 0%, #7d3fa3 100%);
}
.wheel-segment:nth-child(13) { 
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}
.wheel-segment:nth-child(14) { 
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}
.wheel-segment:nth-child(15) { 
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}
.wheel-segment:nth-child(16) { 
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.wheel-segment__text {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
    line-height: 1.2;
    padding: 0 8px;
    transform-origin: center;
}

.wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 60px solid #3b82f6;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
    z-index: 10;
}

.wheel-pointer::before {
    content: '';
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid rgba(59, 130, 246, 0.6);
    filter: blur(4px);
}

.wheel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.wheel-controls-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    width: 180px;
}

.wheel-spin-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 48px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0.7));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.wheel-spin-button--inner {
    padding: 12px 24px;
    width: 100%;
    font-size: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.wheel-spin-button--inner .spin-button__text {
    font-size: 15px;
}

.wheel-spin-button--inner .spin-button__cost {
    font-size: 11px;
}

.wheel-spin-button:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(59, 130, 246, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.wheel-spin-button:disabled,
.wheel-spin-button.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #6b7a9f;
    cursor: not-allowed;
    box-shadow: none;
}

.wheel-spin-button.spinning {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.spin-button__text {
    font-size: 18px;
    font-weight: 700;
}

.spin-button__cost {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wheel-info {
    text-align: center;
}

.wheel-info__text {
    margin: 0;
    font-size: 14px;
    color: #cbd8f1;
}

.wheel-info__hint {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #9fb4dd;
}

.wheel-prizes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wheel-prizes__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.wheel-prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.prize-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prize-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.prize-card__icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.prize-card--common .prize-card__icon {
    background: rgba(155, 176, 216, 0.2);
    border-color: rgba(155, 176, 216, 0.3);
}

.prize-card--rare .prize-card__icon {
    background: rgba(93, 140, 255, 0.2);
    border-color: rgba(93, 140, 255, 0.3);
}

.prize-card--epic .prize-card__icon {
    background: rgba(234, 76, 137, 0.2);
    border-color: rgba(234, 76, 137, 0.3);
}

.prize-card--legendary .prize-card__icon {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

.prize-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.prize-card__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #f4f7ff;
}

.prize-card__chance {
    margin: 0;
    font-size: 12px;
    color: #9fb4dd;
}

.wheel-history {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wheel-history__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.wheel-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wheel-history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.28), rgba(18, 26, 40, 0.68));
    transition: background 0.2s ease;
}

.wheel-history-item:hover {
    background: rgba(93, 140, 255, 0.08);
}

.wheel-history-item__icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wheel-history-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wheel-history-item__prize {
    font-size: 15px;
    font-weight: 600;
    color: #f4f7ff;
}

.wheel-history-item__date {
    font-size: 12px;
    color: #9fb4dd;
}

.wheel-history-item__status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wheel-history-item__status--success {
    background: rgba(139, 255, 139, 0.2);
    color: #8bff8b;
    border: 1px solid rgba(139, 255, 139, 0.3);
}

.prize-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prize-modal.show {
    opacity: 1;
}

.prize-modal__content {
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.95), rgba(18, 26, 40, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.prize-modal.show .prize-modal__content {
    transform: scale(1);
}

.prize-modal__icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.prize-modal__title {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 700;
    color: #f4f7ff;
}

.prize-modal__prize {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #cbd8f1;
}

.prize-modal__prize strong {
    color: #3b82f6;
    font-size: 24px;
    font-weight: 700;
}

.prize-modal__message {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #9fb4dd;
}

.prize-modal__button {
    padding: 12px 32px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0.7));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prize-modal__button:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(59, 130, 246, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

@media (max-width: 1080px) {
    .wheel-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .wheel-wrapper {
        width: 350px;
        height: 350px;
    }

    .wheel-prizes-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .wheel-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .wheel-wrapper {
        width: 500px;
        height: 500px;
    }

    .wheel-segment__text {
        font-size: 11px;
        padding-top: 25px;
    }
    
    .wheel {
        border-width: 10px;
    }
    
    .wheel::before {
        width: 150px;
        height: 150px;
    }
    
    .wheel-controls-inner {
        width: 140px;
    }
    
    .wheel-spin-button--inner {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .wheel-spin-button--inner .spin-button__text {
        font-size: 13px;
    }
    
    .wheel-spin-button--inner .spin-button__cost {
        font-size: 10px;
    }
    
    .wheel-pointer {
        top: -25px;
        border-left-width: 25px;
        border-right-width: 25px;
        border-top-width: 50px;
    }

    .wheel-prizes-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 540px) {
    .wheel-container {
        padding: 24px;
    }

    .wheel-wrapper {
        width: 400px;
        height: 400px;
    }

    .wheel-segment__text {
        font-size: 10px;
        padding-top: 20px;
    }
    
    .wheel {
        border-width: 8px;
    }
    
    .wheel::before {
        width: 120px;
        height: 120px;
    }
    
    .wheel-controls-inner {
        width: 110px;
    }
    
    .wheel-spin-button--inner {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .wheel-spin-button--inner .spin-button__text {
        font-size: 12px;
    }
    
    .wheel-spin-button--inner .spin-button__cost {
        font-size: 9px;
    }
    
    .wheel-pointer {
        top: -20px;
        border-left-width: 20px;
        border-right-width: 20px;
        border-top-width: 40px;
    }
    
    .wheel-container {
        padding: 30px 20px;
    }
}

/* Rules Page */
body.rules-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg11.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.rules-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.rules-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rules-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rules-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.rules-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

.rules-content {
    display: flex;
    gap: 32px;
}

.rules-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

.rules-sidebar {
    position: sticky;
    top: calc(var(--navbar-height, 104px) + 16px);
    height: fit-content;
}

.rules-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.rules-nav__link {
    padding: 12px 16px;
    border-radius: 8px;
    color: #9fb4dd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rules-nav__link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f4f7ff;
}

.rules-nav__link.active {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.rules-main {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.rules-section {
    scroll-margin-top: 120px;
}

.rules-section__title {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 700;
    color: #f4f7ff;
}

.rules-section__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.rule-block {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.rule-block__title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.rule-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #dce6ff;
    line-height: 1.6;
}

.rule-text {
    margin: 0;
    color: #dce6ff;
    line-height: 1.7;
}

.faq-item {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.faq-question {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.faq-answer {
    margin: 0;
    color: #dce6ff;
    line-height: 1.7;
}

.punishment-table {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.punishment-table__content {
    width: 100%;
    border-collapse: collapse;
}

.punishment-table__content thead {
    background: rgba(59, 130, 246, 0.1);
}

.punishment-table__content th {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #93c5fd;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.punishment-table__content td {
    padding: 16px;
    font-size: 14px;
    color: #dce6ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.punishment-table__content tbody tr:last-child td {
    border-bottom: none;
}

.rule-list li {
    position: relative;
    padding-left: 8px;
}

.rule-list li::marker {
    color: #8fb5ff;
}

.faq-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rule-block {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rule-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1080px) {
    .rules-layout {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
    }

    .rules-container {
        grid-template-columns: 1fr;
    }

    .rules-sidebar {
        position: static;
    }

    .rules-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        gap: 8px;
    }

    .rules-nav__link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .rules-section {
        scroll-margin-top: 100px;
    }
}

@media (max-width: 768px) {
    .rules-hero__name {
        font-size: 28px;
    }

    .rules-section__title {
        font-size: 24px;
    }

    .rule-block,
    .faq-item {
        padding: 20px;
    }

    .punishment-table__content {
        font-size: 12px;
    }

    .punishment-table__content th,
    .punishment-table__content td {
        padding: 12px 8px;
    }
}

/* Server Stats Page */
body.server-stats-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg6.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.server-stats-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.server-stats-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.server-stats-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-stats-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.server-stats-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

.server-stats-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.server-stat-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-stat-card__label {
    font-size: 13px;
    color: #9fb4dd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-stat-card__value {
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.server-stat-card__meta {
    font-size: 12px;
    color: #9fb4dd;
}

.server-stats-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.stats-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.stats-card__header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.stats-card__period {
    display: flex;
    gap: 8px;
}

.period-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9fb4dd;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.period-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.stats-card__body {
    padding: 20px;
}

.chart-container {
    width: 100%;
    height: 200px;
}

.faction-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faction-stat-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faction-stat-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.faction-name {
    font-size: 16px;
    font-weight: 600;
    color: #f4f7ff;
}

.faction-stat-item__progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.faction-percent {
    font-size: 14px;
    font-weight: 600;
    color: #93c5fd;
    min-width: 45px;
}

.faction-stat-item__value {
    font-size: 14px;
    color: #9fb4dd;
}

.class-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.class-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.class-name {
    font-size: 14px;
    color: #dce6ff;
}

.class-count {
    font-size: 14px;
    font-weight: 600;
    color: #93c5fd;
}

.registration-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.registration-stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.registration-label {
    font-size: 13px;
    color: #9fb4dd;
}

.registration-value {
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.realm-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.realm-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.realm-name {
    font-size: 16px;
    font-weight: 600;
    color: #f4f7ff;
}

.realm-online {
    font-size: 16px;
    font-weight: 600;
    color: #4ade80;
}

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

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

/* Donate Page */
body.donate-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg-dis.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.donate-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.donate-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.donate-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donate-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.donate-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

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

.donate-stat-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donate-stat-card__label {
    font-size: 13px;
    color: #9fb4dd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donate-stat-card__value {
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.donate-stat-card__meta {
    font-size: 12px;
    color: #9fb4dd;
}

.donate-stat-card__progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #93c5fd;
    min-width: 45px;
}

.donate-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.donate-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.donate-main {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.donate-info {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
}

.donate-info__title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.donate-info__text {
    margin: 0 0 24px;
    color: #dce6ff;
    line-height: 1.7;
}

.donate-benefits {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #dce6ff;
}

.donate-payment-systems {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.donate-payment-systems__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.payment-systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.payment-system-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-system-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.payment-system-card__header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-system-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-system-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.payment-system-card__body {
    padding: 24px;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-form .form-label {
    font-size: 14px;
    font-weight: 600;
    color: #9fb4dd;
    text-transform: none;
    letter-spacing: 0;
}

.payment-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.payment-form .input-wrapper:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.payment-form .form-input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: none;
    outline: none;
    background: transparent;
    color: #f4f7ff;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
}

.payment-form .form-input::placeholder {
    color: #6b7a9f;
}

.payment-form .form-input[readonly] {
    cursor: default;
    opacity: 0.8;
    background: rgba(9, 13, 23, 0.4);
}

.input-currency {
    position: absolute;
    right: 18px;
    font-size: 18px;
    font-weight: 600;
    color: #93c5fd;
    pointer-events: none;
}

.amount-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amount-preset {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

.amount-preset:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.amount-preset:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.payment-form .form-select {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

.payment-form .form-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.payment-form .form-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.payment-system-card--unified {
    max-width: 500px;
}

.payment-submit-btn--unified {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
}

.payment-submit-btn--unified:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.form-hint {
    font-size: 12px;
    color: #9fb4dd;
}

.payment-submit-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.payment-submit-btn--freekassa {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.payment-submit-btn--freekassa:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.payment-submit-btn--aaio {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.payment-submit-btn--aaio:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.payment-submit-btn:active {
    transform: translateY(0);
}

.donate-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.donate-methods__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

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

.payment-method {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method__icon {
    font-size: 32px;
}

.payment-method__name {
    font-size: 16px;
    font-weight: 600;
    color: #f4f7ff;
}

.payment-method__desc {
    font-size: 13px;
    color: #9fb4dd;
}

.donate-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.donate-sidebar__card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.donate-sidebar__title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.top-donors {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-donor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.donor-rank {
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
    min-width: 24px;
}

.donor-name {
    flex: 1;
    font-size: 14px;
    color: #dce6ff;
}

.donor-amount {
    font-size: 14px;
    font-weight: 600;
    color: #4ade80;
}

.recent-donations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-donation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.donation-name {
    font-size: 14px;
    color: #dce6ff;
}

.donation-amount {
    font-size: 14px;
    font-weight: 600;
    color: #93c5fd;
}

@media (max-width: 1080px) {
    .donate-container {
        grid-template-columns: 1fr;
    }

    .payment-systems-grid {
        grid-template-columns: 1fr;
    }
}

/* Donate Success & Fail Pages */
.donate-success,
.donate-fail {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height, 104px) - 200px);
}

.donate-success__container,
.donate-fail__container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.donate-success__card,
.donate-fail__card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.donate-success__icon,
.donate-fail__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.donate-success__icon svg,
.donate-fail__icon svg {
    width: 100%;
    height: 100%;
}

.donate-success__title,
.donate-fail__title {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.donate-success__title {
    color: #4ade80;
}

.donate-fail__title {
    color: #f44336;
}

.donate-success__message,
.donate-fail__message {
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.7;
    color: #dce6ff;
}

.donate-success__message strong,
.donate-fail__message strong {
    color: #f4f7ff;
    font-weight: 600;
}

.donate-success__actions,
.donate-fail__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #14181f;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f4f8ff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn--secondary:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .donate-success__card,
    .donate-fail__card {
        padding: 36px 24px;
        margin: 0 16px;
    }

    .donate-success__title,
    .donate-fail__title {
        font-size: 28px;
    }

    .donate-success__message,
    .donate-fail__message {
        font-size: 15px;
    }

    .donate-success__actions,
    .donate-fail__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .payment-systems-grid {
        grid-template-columns: 1fr;
    }

    .payment-system-card__header {
        padding: 20px;
    }

    .payment-system-card__body {
        padding: 20px;
    }
}

/* Streamers Page */
body.streamers-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg12.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.streamers-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.streamers-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.streamers-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.streamers-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.streamers-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

.streamers-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.streamer-stat-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.streamer-stat-card__label {
    font-size: 13px;
    color: #9fb4dd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.streamer-stat-card__value {
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.streamer-stat-card__value.online {
    color: #4ade80;
}

.streamers-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.streamers-filters {
    display: flex;
    gap: 12px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9fb4dd;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
}

.filter-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.streamer-card {
    position: relative;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.streamer-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.streamer-card__status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #4ade80;
    z-index: 2;
}

.streamer-card__status.offline {
    background: rgba(100, 116, 139, 0.2);
    border-color: rgba(100, 116, 139, 0.4);
    color: #94a3b8;
}

.streamer-card__thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.streamer-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-card__viewers {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #f4f7ff;
    z-index: 2;
}

.viewers-icon {
    font-size: 14px;
}

.streamer-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4f7ff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.streamer-card:hover .streamer-card__play {
    opacity: 1;
}

.streamer-card__offline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    z-index: 2;
}

.streamer-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.streamer-card__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.streamer-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.streamer-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border: 2px solid #0b1016;
    border-radius: 50%;
}

.streamer-status-dot.offline {
    background: #94a3b8;
}

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

.streamer-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #f4f7ff;
}

.streamer-title {
    margin: 0;
    font-size: 13px;
    color: #9fb4dd;
}

.streamer-description {
    margin: 0;
    font-size: 14px;
    color: #dce6ff;
    line-height: 1.5;
}

.streamer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.streamer-platform {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #9fb4dd;
}

.streamer-link {
    font-size: 14px;
    font-weight: 600;
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.streamer-link:hover {
    color: #bfdbfe;
}

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

/* News View Page */
body.news-view-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg11.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.news-view-layout {
    max-width: 900px;
    width: min(100%, 900px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 32px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-view {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.news-view__header {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-view__image {
    width: 100%;
    height: 100%;
}

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

.news-view__meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-category {
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    font-size: 14px;
    color: #9fb4dd;
}

.news-view__content {
    padding: 40px;
}

.news-view__head {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-view__title {
    margin: 0 0 16px;
    font-size: 36px;
    font-weight: 700;
    color: #f4f7ff;
    line-height: 1.3;
}

.news-view__stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.news-votes {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-vote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9fb4dd;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-vote-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.news-vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-vote-btn--like.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.news-vote-btn--like.active:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.news-vote-btn--dislike.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.news-vote-btn--dislike.active:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

.news-vote-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.news-vote-count {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.news-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9fb4dd;
}

.news-stat svg {
    opacity: 0.7;
}

.news-view__body {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #dce6ff;
}

.news-view__body h2 {
    margin: 32px 0 16px;
    font-size: 28px;
    font-weight: 700;
    color: #f4f7ff;
}

.news-view__body h3 {
    margin: 24px 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: #f4f7ff;
}

.news-view__body p {
    margin: 0 0 16px;
}

.news-view__body ul,
.news-view__body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.news-view__body li {
    margin: 8px 0;
}

.news-view__body code {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #93c5fd;
}

.news-view__body strong {
    font-weight: 600;
    color: #f4f7ff;
}

.news-attachments {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-attachments__title {
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
    margin-bottom: 20px;
}

.news-attachments__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-attachment {
    margin: 0;
    padding: 0;
    border: none;
}

.news-attachment .attachment-preview,
.news-attachment .attachment-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.news-attachment .attachment-link:hover {
    background: rgba(9, 13, 23, 0.85);
    border-color: rgba(93, 140, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 140, 255, 0.2);
}

.news-view__footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

/* Отдельный блок автора */
.news-author-section {
    width: 100%;
    margin-top: 0;
}

.news-author-section .news-author-card {
    width: 100%;
}

.news-author-card {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 13, 23, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.news-author-card:hover {
    border-color: rgba(93, 140, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(93, 140, 255, 0.15);
}

.news-author-card__banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 13, 23, 0.92) 0%, rgba(9, 13, 23, 0.88) 50%, rgba(9, 13, 23, 0.95) 100%);
    z-index: 1;
}

.news-author-card__header {
    position: relative;
    padding: 16px 24px 0;
    z-index: 2;
}

.news-author-card__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #9fb4dd;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    background: rgba(93, 140, 255, 0.15);
    border: 1px solid rgba(93, 140, 255, 0.2);
    border-radius: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.news-author-card__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    z-index: 2;
}

.news-author-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(93, 140, 255, 0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.news-author-card:hover .news-author-card__avatar {
    border-color: rgba(93, 140, 255, 0.4);
    box-shadow: 0 6px 20px rgba(93, 140, 255, 0.3), 0 0 0 4px rgba(93, 140, 255, 0.15);
    transform: scale(1.05);
}

.news-author-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-author-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.news-author-card__name {
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
}

.news-author-card__role {
    font-size: 13px;
    color: #9fb4dd;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    padding: 4px 0;
}

/* Старые классы для обратной совместимости */
.news-author {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-author:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.news-author__banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 13, 23, 0.85) 0%, rgba(9, 13, 23, 0.75) 100%);
    z-index: 1;
}

.news-author__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
    width: 100%;
}

.news-author__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

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

.news-author__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-author__name {
    font-size: 16px;
    font-weight: 600;
    color: #f4f7ff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.news-author__role {
    font-size: 13px;
    color: #9fb4dd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.news-actions {
    display: flex;
    gap: 12px;
}

.news-back-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9fb4dd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.news-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f4f7ff;
}

@media (max-width: 768px) {
    .news-view-layout {
        padding: calc(var(--navbar-height, 104px) + 16px) 16px 60px;
    }

    .news-view__content {
        padding: 24px;
    }

    .news-view__title {
        font-size: 28px;
    }

    .news-view__body {
        font-size: 15px;
    }

    .news-view__body h2 {
        font-size: 24px;
    }

    .news-view__body h3 {
        font-size: 20px;
    }

    .news-view__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .news-back-btn {
        width: 100%;
        text-align: center;
    }
}

/* Character Restore Page */
.restore-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.restore-info {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.info-card__title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.info-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #dce6ff;
    line-height: 1.7;
}

.deleted-characters {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.characters-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deleted-character-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.deleted-character-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(12, 18, 28, 0.9);
}

.deleted-character-card.disabled {
    opacity: 0.6;
}

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

.character-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.character-card__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.character-card__name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
}

.character-card__meta {
    font-size: 14px;
    color: #9fb4dd;
    display: flex;
    gap: 8px;
}

.character-card__realm,
.character-card__deleted {
    font-size: 13px;
    color: #9fb4dd;
}

.character-card__actions {
    display: flex;
    gap: 12px;
}

.restore-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.restore-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.restore-disabled {
    padding: 10px 24px;
    color: #94a3b8;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.empty-state__icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state__title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.empty-state__text {
    margin: 0;
    color: #9fb4dd;
    font-size: 15px;
}

/* Character Transfer Page */
.transfer-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.transfer-form-section {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.transfer-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.transfer-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transfer-form .form-label {
    font-size: 14px;
    font-weight: 600;
    color: #9fb4dd;
}

.transfer-form .form-select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.transfer-form .form-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.transfer-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: rgba(9, 13, 23, 0.65);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 14px;
    color: #9fb4dd;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.currency-icon {
    font-size: 18px;
}

.transfer-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 12px;
}

.warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
    color: #fbbf24;
    font-size: 14px;
    line-height: 1.6;
}

.transfer-submit-btn {
    padding: 14px 32px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.transfer-submit-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

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

/* Friends Page */
.friends-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.friends-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #9fb4dd;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f4f7ff;
}

.tab-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.friends-list,
.ignored-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.friend-card,
.ignored-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.friend-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(12, 18, 28, 0.9);
}

.friend-card__info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.friend-card__avatar {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border: 2px solid #0b1016;
    border-radius: 50%;
}

.friend-card__name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

.friend-card__name a {
    color: #f4f7ff;
    text-decoration: none;
}

.friend-card__name a:hover {
    color: #93c5fd;
}

.friend-card__meta {
    font-size: 13px;
    color: #9fb4dd;
    display: flex;
    gap: 8px;
}

.friend-card__status {
    margin-top: 8px;
    font-size: 13px;
}

.status-online {
    color: #4ade80;
}

.status-offline {
    color: #94a3b8;
}

.friend-card__actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9fb4dd;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.remove-friend {
    color: #ef4444;
}

.remove-friend:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.ignored-card__info {
    flex: 1;
}

.ignored-card__name {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.ignored-card__reason {
    font-size: 13px;
    color: #9fb4dd;
}

.unignore-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unignore-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.add-friend-form {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.form-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.add-friend-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.add-friend-form .form-input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.add-friend-form .form-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Talent Calculator Page */
body.talent-calculator-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg11.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.talent-calculator-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.talent-calculator-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.talent-calculator-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.talent-calculator-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.talent-calculator-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

.talent-calculator-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calculator-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
}

.calculator-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.character-selector,
.talent-stats {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.sidebar-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.class-btn {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 13, 23, 0.65);
    color: #9fb4dd;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.class-btn:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
}

.class-btn.active {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.class-icon {
    font-size: 24px;
}

.class-name {
    font-size: 12px;
    font-weight: 500;
}

.stats-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(9, 13, 23, 0.65);
    border-radius: 8px;
}

.stat-label {
    font-size: 14px;
    color: #9fb4dd;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.talent-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.talent-actions .action-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 13, 23, 0.65);
    color: #9fb4dd;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.talent-actions .action-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.calculator-main {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
}

.talent-trees {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.talent-tree {
    display: none;
}

.talent-tree.active {
    display: block;
}

.tree-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.talent-tree-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.talent-row {
    display: flex;
    gap: 16px;
}

.talent-slot {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 13, 23, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.talent-slot:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

.talent-icon {
    font-size: 24px;
    color: #9fb4dd;
}

.talent-rank {
    position: absolute;
    bottom: 4px;
    font-size: 10px;
    color: #93c5fd;
    font-weight: 600;
}

.empty-message {
    text-align: center;
    color: #9fb4dd;
    font-size: 14px;
    padding: 40px;
}

@media (max-width: 1080px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
}

/* Character Compare Page */
body.character-compare-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg6.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.character-compare-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.character-compare-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.character-compare-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.character-compare-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.character-compare-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

.character-compare-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.compare-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}

.character-selector-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.selector-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.character-search {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input,
.realm-select {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 14px;
    font-family: inherit;
}

.search-input:focus,
.realm-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
    transform: translateY(-2px);
}

.vs-divider {
    font-size: 32px;
    font-weight: 700;
    color: #93c5fd;
    align-self: center;
    padding: 20px;
}

.selected-character {
    margin-top: 20px;
}

.char-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(9, 13, 23, 0.65);
    border-radius: 10px;
}

.char-avatar {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.char-info {
    flex: 1;
}

.char-name {
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
    margin: 0 0 4px;
}

.char-details {
    font-size: 13px;
    color: #9fb4dd;
}

.compare-results {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.compare-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    padding: 12px;
    background: rgba(9, 13, 23, 0.65);
    border-radius: 8px;
    align-items: center;
}

.stat-name {
    font-size: 14px;
    color: #9fb4dd;
}

.char1-value {
    font-size: 16px;
    font-weight: 600;
    color: #93c5fd;
    text-align: right;
    min-width: 80px;
}

.char2-value {
    font-size: 16px;
    font-weight: 600;
    color: #fbbf24;
    text-align: right;
    min-width: 80px;
}

@media (max-width: 1080px) {
    .compare-selector {
        grid-template-columns: 1fr;
    }

    .vs-divider {
        transform: rotate(90deg);
    }
}

/* Discord Page */
body.discord-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg-dis.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.discord-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.discord-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.discord-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discord-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.discord-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

.discord-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.discord-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.discord-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.discord-status {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.status-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.status-card.connected {
    border-color: rgba(34, 197, 94, 0.4);
}

.status-card.disconnected {
    border-color: rgba(239, 68, 68, 0.4);
}

.status-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon svg {
    width: 100%;
    height: 100%;
    color: #93c5fd;
}

.status-card.connected .status-icon svg {
    color: #4ade80;
}

.status-card.disconnected .status-icon svg {
    color: #ef4444;
}

.status-info {
    flex: 1;
}

.status-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.status-text {
    margin: 0;
    font-size: 14px;
    color: #9fb4dd;
}

.connect-btn,
.disconnect-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.connect-btn {
    border: 1px solid rgba(88, 101, 242, 0.5);
    background: rgba(88, 101, 242, 0.2);
    color: #a5b4fc;
}

.connect-btn:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.7);
}

.disconnect-btn {
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.7);
}

.discord-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.features-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

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

.feature-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.feature-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.feature-desc {
    margin: 0;
    font-size: 14px;
    color: #9fb4dd;
    line-height: 1.6;
}

.discord-settings {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
}

.settings-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.setting-label {
    font-size: 14px;
    color: #dce6ff;
    cursor: pointer;
}

.save-settings-btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-settings-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
    transform: translateY(-2px);
}

.discord-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.discord-info-card,
.discord-stats-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.info-card-title,
.stats-card-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.info-card-text {
    margin: 0 0 20px;
    font-size: 14px;
    color: #9fb4dd;
    line-height: 1.6;
}

.discord-invite-btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid rgba(88, 101, 242, 0.5);
    background: rgba(88, 101, 242, 0.2);
    color: #a5b4fc;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: block;
}

.discord-invite-btn:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.7);
}

.discord-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discord-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(9, 13, 23, 0.65);
    border-radius: 8px;
}

@media (max-width: 1080px) {
    .discord-container {
        grid-template-columns: 1fr;
    }
}

/* Notifications Center Page */
.notifications-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.notifications-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.notifications-filters .filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9fb4dd;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notifications-filters .filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
}

.notifications-filters .filter-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.notifications-actions {
    display: flex;
    gap: 12px;
}

.notifications-actions .action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9fb4dd;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notifications-actions .action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: all 0.2s ease;
}

.notification-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(12, 18, 28, 0.9);
}

.notification-item.unread {
    border-left: 4px solid rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.05);
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

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

.notification-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #f4f7ff;
}

.notification-message {
    margin: 0 0 8px;
    font-size: 14px;
    color: #dce6ff;
    line-height: 1.5;
}

.notification-time {
    font-size: 12px;
    color: #9fb4dd;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mark-read-btn,
.delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9fb4dd;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mark-read-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.notification-badge-large {
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 14px;
    font-weight: 700;
}

/* Referrals Page */
.referrals-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.referral-link-section {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.referral-link-box {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.referral-link-input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 13, 23, 0.65);
    color: #f4f7ff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.copy-link-btn {
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-link-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.copy-link-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.referral-hint {
    margin: 0;
    font-size: 13px;
    color: #9fb4dd;
}

.referrals-list-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.referrals-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.referrals-stats .stat-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referrals-stats .stat-label {
    font-size: 13px;
    color: #9fb4dd;
}

.referrals-stats .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.referrals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referral-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.referral-card__info {
    flex: 1;
}

.referral-name {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
}

.referral-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #9fb4dd;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.status-badge.inactive {
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    color: #94a3b8;
}

.reward-amount {
    font-size: 18px;
    font-weight: 700;
    color: #4ade80;
}

.reward-pending {
    font-size: 14px;
    color: #9fb4dd;
}

/* Reputation Page */
.reputation-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--content-gutter, 28px);
}

.reputation-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.overview-card,
.breakdown-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.overview-title,
.breakdown-title {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 32px;
}

.star {
    color: #64748b;
}

.star.filled {
    color: #3b82f6;
}

.star.half {
    background: linear-gradient(90deg, #3b82f6 50%, #64748b 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-value {
    font-size: 48px;
    font-weight: 700;
    color: #f4f7ff;
}

.rating-count {
    font-size: 14px;
    color: #9fb4dd;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: grid;
    grid-template-columns: 60px 1fr 50px;
    gap: 12px;
    align-items: center;
}

.breakdown-rating {
    font-size: 14px;
    color: #9fb4dd;
}

.breakdown-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.breakdown-count {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
    text-align: right;
}

.reviews-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.reviews-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.add-review-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-review-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

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

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #93c5fd;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #f4f7ff;
}

.review-date {
    font-size: 12px;
    color: #9fb4dd;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 16px;
}

.reviews-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9fb4dd;
    font-size: 16px;
}

.rating-input {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.rating-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 40px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.rating-star:hover {
    transform: scale(1.1);
}

.rating-star .star {
    color: #64748b;
    transition: color 0.2s ease;
}

.rating-star.active .star,
.rating-star:hover .star {
    color: #3b82f6;
}

.rating-star.active .star.filled {
    color: #3b82f6;
}

.review-content {
    margin: 0;
}

.review-content p {
    margin: 0;
    font-size: 14px;
    color: #dce6ff;
    line-height: 1.6;
}

.reputation-rating {
    color: #3b82f6;
}

/* Модальное окно для отзывов */
#addReviewModal.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

#addReviewModal.modal-overlay[style*="flex"] {
    display: flex !important;
}

#addReviewModal .modal {
    background: rgba(8, 12, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

#addReviewModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#addReviewModal .modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #f4f7ff;
}

#addReviewModal .modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #9fb4dd;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 24px;
    line-height: 1;
}

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

#addReviewModal .modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

#addReviewModal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 20, 0.5);
}

#addReviewModal .form-group {
    margin-bottom: 24px;
}

#addReviewModal .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

#addReviewModal .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #f4f7ff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

#addReviewModal .form-textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#addReviewModal .action-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#addReviewModal .action-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9fb4dd;
}

#addReviewModal .action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
}

#addReviewModal .action-btn:not(.action-btn-secondary) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#addReviewModal .action-btn:not(.action-btn-secondary):hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .reputation-overview {
        grid-template-columns: 1fr;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    #addReviewModal .modal {
        width: 95%;
        max-height: 95vh;
    }

    #addReviewModal .modal-header,
    #addReviewModal .modal-body,
    #addReviewModal .modal-footer {
        padding: 20px;
    }
}

/* === News Page Styles === */

body.news-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg11.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.news-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.news-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

.news-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.news-stat-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-stat-card__label {
    font-size: 13px;
    color: #9fb4dd;
    font-weight: 500;
}

.news-stat-card__value {
    font-size: 28px;
    font-weight: 700;
    color: #f4f7ff;
}

.news-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.news-filters {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 30px 72px rgba(3, 6, 14, 0.45);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--navbar-height, 104px) + 24px);
}

.news-filters .filters-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.news-filters .category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-filters .category-item {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(9, 13, 23, 0.65);
    color: #cbd8f1;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.news-filters .category-item:hover {
    border-color: rgba(234, 76, 137, 0.35);
    box-shadow: inset 0 0 0 1px rgba(234, 76, 137, 0.12);
    color: #f4f7ff;
}

.news-filters .category-item.active {
    background: rgba(234, 76, 137, 0.2);
    border-color: rgba(234, 76, 137, 0.5);
    color: #f4f7ff;
}

.news-filters .category-count {
    font-size: 12px;
    color: #9fb4dd;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.news-filters .category-item.active .category-count {
    background: rgba(234, 76, 137, 0.3);
    color: #f4f7ff;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-count {
    font-size: 14px;
    color: #9fb4dd;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.news-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card__image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(9, 13, 23, 0.65);
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

.news-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(234, 76, 137, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9fb4dd;
}

.news-card__date {
    color: #9fb4dd;
}

.news-card__stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-card__views,
.news-card__likes {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9fb4dd;
}

.news-card__views svg,
.news-card__likes svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.news-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
    line-height: 1.4;
}

.news-card__excerpt {
    margin: 0;
    font-size: 14px;
    color: #dce6ff;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.news-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.news-author-name {
    font-size: 13px;
    color: #9fb4dd;
    font-weight: 500;
}

.news-card__read-more {
    font-size: 13px;
    color: #93c5fd;
    font-weight: 600;
    transition: color 0.2s ease;
}

.news-card:hover .news-card__read-more {
    color: #60a5fa;
}

@media (max-width: 1080px) {
    .news-content {
        grid-template-columns: 1fr;
    }

    .news-filters {
        position: static;
    }
}

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

    .news-hero__stats {
        grid-template-columns: 1fr;
    }
}

/* Новые стили для секции новостей на главной */
.news {
    padding: 0;
    position: relative;
}

.container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.news__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(239, 151, 47, 0.2);
    padding-bottom: 20px;
    position: relative;
    width: 100%;
}

.news__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary, #ef972f);
    margin: 0;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 1px;
}

.news__title:after {
    display: none !important;
    content: none !important;
}

.news__top-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    align-items: stretch;
    width: 100%;
}

.news__main-block {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    grid-column: span 2;
    box-sizing: border-box;
}

.news__side-blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    min-height: 400px;
    width: 100%;
    margin: 0;
    padding: 0;
    grid-column: span 1;
    box-sizing: border-box;
}

.news__side-blocks .news__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-sizing: border-box;
}

.news__bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.news__item {
    position: relative;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    backdrop-filter: blur(0);
    box-sizing: border-box;
}

.news__item:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    border-color: rgba(239, 151, 47, 0.4);
    z-index: 2;
}

.news__item-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0d0c0b;
    transform: translateZ(0);
    box-sizing: border-box;
    flex-shrink: 0;
}

.news__item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: auto;
    transform: translateZ(0) scale(1);
    will-change: transform;
    backface-visibility: hidden;
    filter: brightness(0.95);
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.news__item:hover img {
    transform: translateZ(0) scale(1.05);
    filter: brightness(1);
}

.news__content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
    padding: 60px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 140px;
    transition: padding 0.3s ease;
}

.news__date {
    position: relative;
    color: var(--color-primary, #ef972f);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    line-height: 1.2;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.news__main-title {
    position: relative;
    font-size: 18px;
    font-weight: 800;
    color: #b49a84;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 1);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-height: 2.8em;
}

.news__item-main {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
    z-index: 1;
    height: 100%;
    min-height: 400px;
}

.news__item-main .news__content-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.15) 80%, transparent 100%);
    padding: 70px 28px 28px;
    min-height: 180px;
}

.news__item-main .news__main-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.3;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: 3.9em;
}

.news__item-main .news__date {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.news__item-main .news__item-image-container {
    height: 480px;
}

.news__item-side {
    z-index: 1;
    min-height: 0;
    flex-shrink: 0;
}

.news__item-side .news__content-overlay {
    padding: 50px 20px 20px;
    min-height: 130px;
}

.news__item-side .news__main-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: 2.8em;
}

.news__item-side .news__date {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.news__item-side .news__item-image-container {
    height: 100%;
}

.news__item-grid {
    z-index: 1;
    height: 280px;
}

.news__item-grid .news__content-overlay {
    padding: 50px 20px 20px;
    min-height: 120px;
}

.news__item-grid .news__main-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: 2.8em;
}

.news__item-grid .news__date {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.news__item-grid .news__item-image-container {
    height: 100%;
}

.news__item:hover .news__content-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.25) 80%, transparent 100%);
}

.news__btn {
    display: inline-block;
    background: linear-gradient(135deg, #ef972f, #d4821f);
    color: #1a0f08;
    border-radius: 4px;
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 2;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.news__btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    transform: skew(-15deg);
}

.news__btn:hover {
    background-color: transparent;
    color: var(--color-primary, #ef972f);
    border-color: var(--color-primary, #ef972f);
    transform: none;
    box-shadow: none;
}

.news__btn:hover:before {
    left: 100%;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }

    .news__top-section {
        gap: 15px;
        margin-bottom: 15px;
    }

    .news__bottom-grid,
    .news__side-blocks {
        gap: 15px;
    }

    .news__side-blocks .news__item {
        height: calc((100% - 15px) / 2);
    }

    .news__item-main .news__content-overlay {
        min-height: 200px;
        padding: 80px 32px 32px;
    }

    .news__item-main .news__main-title {
        font-size: 28px;
    }

    .news__item-main .news__item-image-container {
        height: 540px;
    }

    .news__item-side .news__item-image-container {
        height: 100%;
    }

    .news__item-grid {
        height: 320px;
    }

    .news__item-grid .news__item-image-container {
        height: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .news__top-section {
        gap: 12px;
        margin-bottom: 12px;
    }

    .news__bottom-grid,
    .news__side-blocks {
        gap: 12px;
    }

    .news__side-blocks .news__item {
        height: calc((100% - 12px) / 2);
    }

    .news__item-main .news__content-overlay {
        min-height: 170px;
    }

    .news__item-main .news__item-image-container {
        height: 440px;
    }

    .news__item-side .news__item-image-container {
        height: 100%;
    }

    .news__item-grid {
        height: 260px;
    }

    .news__item-grid .news__item-image-container {
        height: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .news__top-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 12px;
    }

    .news__main-block {
        grid-column: span 1;
    }

    .news__side-blocks {
        grid-column: span 1;
        gap: 12px;
    }

    .news__side-blocks .news__item {
        height: calc((100% - 12px) / 2);
    }

    .news__bottom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .news__title {
        font-size: 28px;
    }

    .news__item-main .news__content-overlay {
        min-height: 170px;
        padding: 70px 26px 26px;
    }

    .news__item-main .news__main-title {
        font-size: 22px;
    }

    .news__item-main .news__item-image-container {
        height: 420px;
    }

    .news__item-side .news__content-overlay {
        padding: 55px 20px 20px;
    }

    .news__item-side .news__item-image-container {
        height: 100%;
    }

    .news__item-grid {
        height: 300px;
    }

    .news__item-grid .news__content-overlay {
        padding: 55px 20px 20px;
    }

    .news__item-grid .news__item-image-container {
        height: 100%;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .news__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        padding-bottom: 20px;
        margin-bottom: 30px;
    }

    .news__title {
        font-size: 24px;
        margin-bottom: 10px;
        width: 100%;
    }

    .news__btn {
        font-size: 13px;
        padding: 12px 25px;
    }

    .news__top-section {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .news__main-block {
        grid-column: span 1;
    }

    .news__side-blocks {
        gap: 12px;
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .news__side-blocks .news__item {
        flex: none;
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }

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

    .news__item-main,
    .news__item-side,
    .news__item-grid {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    .news__item-main .news__content-overlay,
    .news__item-side .news__content-overlay,
    .news__item-grid .news__content-overlay {
        padding: 40px 20px 20px;
        min-height: 120px;
    }

    .news__item-main .news__main-title,
    .news__item-side .news__main-title,
    .news__item-grid .news__main-title {
        font-size: 16px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: 2.8em;
        margin-bottom: 0;
    }

    .news__item-main .news__date,
    .news__item-side .news__date,
    .news__item-grid .news__date {
        font-size: 11px;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .news__item-main .news__item-image-container,
    .news__item-side .news__item-image-container,
    .news__item-grid .news__item-image-container {
        height: 100%;
    }
}

/* Разделитель секций */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
    margin: 0;
    position: relative;
    overflow: visible;
    background: transparent;
    height: 60px;
    min-height: 60px;
}

.section-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 15%,
        rgba(239, 151, 47, 0.2) 30%,
        rgba(239, 151, 47, 0.3) 50%,
        rgba(239, 151, 47, 0.2) 70%,
        rgba(255, 255, 255, 0.08) 85%,
        transparent 100%
    );
    position: relative;
}

.section-divider__line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(239, 151, 47, 0.15) 50%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

.section-divider__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 30px;
    color: var(--color-primary, #ef972f);
    position: absolute;
    z-index: 1;
    opacity: 0.8;
    top: 50%;
    transform: translateY(-50%);
}

.section-divider__ornament svg {
    filter: drop-shadow(0 0 6px rgba(239, 151, 47, 0.4));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .section-divider {
        padding: 0 15px;
    }

    .section-divider__ornament {
        width: 50px;
        height: 50px;
        margin: 0 20px;
    }

    .section-divider__ornament svg {
        width: 50px;
        height: 50px;
    }
}

/* Стили для индикатора загрузки формы восстановления пароля */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-button .btn-loader {
    display: inline-block;
}

.submit-button .btn-text,
.submit-button .btn-loader {
    transition: opacity 0.2s ease;
}

/* Стили для модального окна подтверждения */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog {
    background: linear-gradient(135deg, rgba(39, 55, 88, 0.95), rgba(18, 26, 40, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.confirm-overlay.show .confirm-dialog {
    transform: scale(1);
}

.confirm-dialog__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 151, 47, 0.2), rgba(239, 151, 47, 0.1));
    border: 2px solid rgba(239, 151, 47, 0.4);
    border-radius: 50%;
    font-size: 32px;
    font-weight: 700;
    color: #ef972f;
}

.confirm-dialog__title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: #f4f7ff;
}

.confirm-dialog__message {
    margin: 0 0 28px;
    font-size: 16px;
    color: #cbd8f1;
    line-height: 1.6;
}

.confirm-dialog__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-dialog__button {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.confirm-dialog__button--cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd8f1;
}

.confirm-dialog__button--cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f4f7ff;
}

.confirm-dialog__button--confirm {
    background: linear-gradient(135deg, rgba(239, 151, 47, 0.9), rgba(239, 151, 47, 0.7));
    border: 1px solid rgba(239, 151, 47, 0.5);
    color: #f4f7ff;
    box-shadow: 0 8px 24px rgba(239, 151, 47, 0.3);
}

.confirm-dialog__button--confirm:hover {
    background: linear-gradient(135deg, rgba(239, 151, 47, 1), rgba(239, 151, 47, 0.9));
    box-shadow: 0 12px 32px rgba(239, 151, 47, 0.4);
    transform: translateY(-2px);
}

/* === Raid View Page Styles === */

body.raid-view-page {
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg12.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.raid-profile {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: calc(var(--navbar-height, 104px) + 32px) var(--content-gutter, 28px) 80px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.raid-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 36px 120px rgba(2, 5, 12, 0.6);
    background: rgba(10, 14, 22, 0.85);
    backdrop-filter: blur(18px);
}

.raid-hero__bg {
    position: absolute;
    inset: -20% 0;
    background: radial-gradient(circle at 30% 20%, rgba(101, 138, 255, 0.25), transparent 55%),
        radial-gradient(circle at 75% 25%, rgba(248, 178, 90, 0.2), transparent 60%),
        linear-gradient(120deg, rgba(6, 10, 18, 0.95), rgba(14, 20, 32, 0.75));
}

.raid-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 36px 40px;
}

.raid-hero__identity {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.raid-hero__nameblock {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.raid-hero__name {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    color: #f4f7ff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.raid-hero__name .raid-icon {
    font-size: 40px;
    line-height: 1;
}

.raid-hero__meta {
    font-size: 15px;
    color: #aebce0;
    margin-top: 8px;
}

.raid-hero__second-meta {
    font-size: 13px;
    color: #8f9ec4;
    margin-top: 6px;
}

.raid-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 1;
}

.raid-hero__stat {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 22, 32, 0.75);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-transform: uppercase;
}

.raid-hero__stat .stat-label {
    font-size: 11px;
    letter-spacing: 0.8px;
    color: #8fa1c8;
}

.raid-hero__stat .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.raid-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.raid-panel {
    background: rgba(13, 19, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 30px 72px rgba(3, 6, 14, 0.45);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.raid-panel--guilds {
    grid-column: 1 / -1;
}

.panel-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.stat-item {
    padding: 14px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-item__label {
    font-size: 12px;
    color: #8fa1c8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item__value {
    font-size: 18px;
    font-weight: 700;
    color: #f4f7ff;
}

.guild-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guild-ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.guild-ranking-item:hover {
    background: rgba(12, 18, 28, 0.85);
}

.guild-ranking-rank {
    flex-shrink: 0;
}

.guild-ranking-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guild-ranking-name {
    font-size: 15px;
    font-weight: 600;
    color: #f4f7ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.guild-ranking-name:hover {
    color: #8fb5ff;
}

.guild-ranking-meta {
    font-size: 12px;
    color: #8fa1c8;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #f4f7ff;
    background: rgba(93, 140, 255, 0.15);
    border: 1px solid rgba(93, 140, 255, 0.3);
}

.rank-badge--gold {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
    color: #2563eb;
}

.rank-badge--silver {
    background: rgba(192, 192, 192, 0.2);
    border-color: rgba(192, 192, 192, 0.4);
    color: #c0c0c0;
}

.rank-badge--bronze {
    background: rgba(205, 127, 50, 0.2);
    border-color: rgba(205, 127, 50, 0.4);
    color: #cd7f32;
}

@media (max-width: 1080px) {
    .raid-profile {
        padding: calc(var(--navbar-height, 104px) + 24px) 20px 56px;
        gap: 24px;
    }

    .raid-detail-grid {
        grid-template-columns: 1fr;
    }
}

.raid-panel--players {
    grid-column: 1 / -1;
}

.raid-players-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.raid-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(9, 13, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.raid-player-item:hover {
    background: rgba(12, 18, 28, 0.85);
}

.raid-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.raid-player-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.raid-player-name {
    font-size: 15px;
    font-weight: 600;
    color: #f4f7ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.raid-player-name:hover {
    color: #8fb5ff;
}

.raid-player-meta {
    font-size: 12px;
    color: #8fa1c8;
}

.raid-player-guild {
    color: #8fb5ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.raid-player-guild:hover {
    color: #a8c5ff;
}

.raid-player-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.raid-player-completions {
    font-size: 14px;
    font-weight: 600;
    color: #f4f7ff;
}

.raid-player-last {
    font-size: 12px;
    color: #8fa1c8;
}

.raid-players-footer {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.member-class-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.member-faction {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.member-faction--alliance {
    background-image: url('/images/factions/alliance.svg');
}

.member-faction--horde {
    background-image: url('/images/factions/horde.svg');
}

@media (max-width: 768px) {
    .raid-hero__stats {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

    .raid-player-stats {
        align-items: flex-start;
        width: 100%;
    }
}

/* Changelog styles */
body.changelog-page {
    background: 
        linear-gradient(180deg, rgba(5, 8, 13, 0.85) 0%, rgba(10, 15, 24, 0.9) 100%),
        url('/images/fon/bg11.webp') center / cover no-repeat;
    background-attachment: fixed;
    color: #f4f7ff;
}

.changelog-layout {
    max-width: 1480px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: calc(var(--navbar-height, 104px) + 16px) 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.changelog-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.changelog-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.changelog-hero__name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #f4f7ff;
}

.changelog-hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: #9fb4dd;
}

.changelog-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.changelog-empty {
    padding: 40px 20px;
}

.changelog-timeline {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.changelog-date-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.changelog-date-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #f4f7ff;
}

.changelog-date-version {
    font-size: 13px;
    color: #9fb4dd;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 12px;
}

.changelog-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.changelog-item {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.changelog-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.changelog-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.changelog-item-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
}

.changelog-item-type--feature {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.changelog-item-type--bugfix {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.changelog-item-type--improvement {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.changelog-item-type--security {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.changelog-item-type--other {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.changelog-item-version {
    font-size: 12px;
    color: #9fb4dd;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.changelog-item-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f7ff;
    line-height: 1.4;
}

.changelog-item-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cbd8f1;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
    color: #9fb4dd;
    margin: 0;
}

/* ---------- Плавающие кнопки социальных сетей ---------- */

.floating-social {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-social__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(10, 14, 18, 0.95) 0%, rgba(10, 14, 18, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #f4f5f7;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.floating-social__button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-social__button:hover::before {
    opacity: 1;
}

.floating-social__button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.floating-social__button:active {
    transform: translateY(-2px) scale(1.02);
}

.floating-social__button svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.floating-social__button:hover svg {
    transform: scale(1.1);
}

.floating-social__button--telegram {
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.95) 0%, rgba(27, 130, 170, 0.85) 100%);
    border-color: rgba(37, 150, 190, 0.4);
}

.floating-social__button--telegram:hover {
    background: linear-gradient(135deg, rgba(47, 160, 200, 0.95) 0%, rgba(37, 140, 180, 0.85) 100%);
    border-color: rgba(47, 160, 200, 0.6);
    box-shadow: 0 12px 32px rgba(37, 150, 190, 0.4), 0 6px 12px rgba(0, 0, 0, 0.4);
}

.floating-social__button--vk {
    background: linear-gradient(135deg, rgba(70, 128, 194, 0.95) 0%, rgba(60, 118, 184, 0.85) 100%);
    border-color: rgba(70, 128, 194, 0.4);
}

.floating-social__button--vk:hover {
    background: linear-gradient(135deg, rgba(80, 138, 204, 0.95) 0%, rgba(70, 128, 194, 0.85) 100%);
    border-color: rgba(80, 138, 204, 0.6);
    box-shadow: 0 12px 32px rgba(70, 128, 194, 0.4), 0 6px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .floating-social {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .floating-social__button {
        width: 48px;
        height: 48px;
    }

    .floating-social__button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .floating-social {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .floating-social__button {
        width: 44px;
        height: 44px;
    }

    .floating-social__button svg {
        width: 18px;
        height: 18px;
    }
}

/* Downloads */
.downloads-page {
    background: radial-gradient(circle at top, rgba(25, 47, 89, 0.4), rgba(3, 6, 12, 0.95));
}

.downloads-layout {
    min-height: 100vh;
    padding-bottom: 80px;
}

.downloads-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 80px 20px 40px;
}

.downloads-hero__content {
    max-width: 620px;
}

.downloads-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6ea8ff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.downloads-hero__title {
    font-size: clamp(32px, 5vw, 48px);
    margin: 0 0 10px;
}

.downloads-hero__subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.downloads-hero__home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.downloads-hero__home:hover {
    color: #89b6ff;
}

.downloads-hero__illustration {
    flex: 1;
    min-height: 220px;
    background: url('/images/fon/fon-04.webp') center/cover no-repeat;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.downloads-section {
    padding: 20px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.download-card {
    background: rgba(8, 12, 20, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.download-card__tag {
    display: inline-flex;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9fb4dd;
}

.download-card__title {
    margin: 6px 0;
    font-size: 20px;
}

.download-card__description {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.download-card__meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-tertiary);
}

.download-card__button {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    background: var(--accent-primary);
    border-radius: 8px;
    color: #020409;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(77, 151, 255, 0.35);
}

.downloads-note {
    margin-top: 40px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.downloads-note h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.downloads-note ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.downloads-note code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* TOTP Modal Styles */
.totp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.totp-modal-overlay[style*="block"] {
    display: flex !important;
    opacity: 1;
}

.totp-modal {
    background: linear-gradient(135deg, rgba(18, 26, 40, 0.98), rgba(8, 12, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.totp-modal-overlay[style*="block"] .totp-modal {
    transform: scale(1);
}

.totp-modal--compact {
    max-width: 420px;
    max-height: auto;
}

.totp-modal--small {
    max-width: 440px;
}

.totp-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.totp-modal--compact .totp-modal__header {
    padding: 18px 20px;
}

.totp-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.totp-modal__icon--warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #ef4444;
}

.totp-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
    flex: 1;
    line-height: 1.3;
}

.totp-modal--compact .totp-modal__title {
    font-size: 18px;
}

.totp-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #9fb4dd;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.totp-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
    transform: rotate(90deg);
}

.totp-modal__body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.totp-modal--compact .totp-modal__body {
    padding: 20px;
}

.totp-modal__description {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #aebce0;
    line-height: 1.5;
}

.totp-qr-container {
    display: flex;
    justify-content: center;
    margin: 0 0 16px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.totp-modal--compact .totp-qr-container {
    padding: 12px;
    margin-bottom: 12px;
}

.totp-qr-code {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.totp-modal--compact .totp-qr-code {
    padding: 10px;
}

.totp-qr-code img {
    display: block;
    max-width: 100%;
    height: auto;
    width: 180px;
    height: 180px;
}

.totp-modal--compact .totp-qr-code img {
    width: 160px;
    height: 160px;
}

.totp-secret-section {
    margin-bottom: 16px;
}

.totp-modal--compact .totp-secret-section {
    margin-bottom: 12px;
}

.totp-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd8f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.totp-secret-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.totp-secret-input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(9, 13, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f4f7ff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.totp-secret-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.totp-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0.7));
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.totp-copy-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(59, 130, 246, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.totp-copy-btn:active {
    transform: translateY(0);
}

.totp-copy-btn span {
    display: none;
}

.totp-verify-section {
    margin-bottom: 16px;
}

.totp-modal--compact .totp-verify-section {
    margin-bottom: 12px;
}

.totp-code-input {
    width: 100%;
    padding: 14px;
    background: rgba(9, 13, 23, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f4f7ff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 6px;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
}

.totp-modal--compact .totp-code-input {
    padding: 12px;
    font-size: 18px;
    letter-spacing: 5px;
}

.totp-code-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(9, 13, 23, 0.9);
}

.totp-code-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 6px;
}

.totp-modal--compact .totp-code-input::placeholder {
    letter-spacing: 5px;
}

.totp-hint {
    margin: 8px 0 0 0;
    font-size: 11px;
    color: #8f9bb8;
    text-align: center;
}

.totp-error {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.5;
}

.totp-success {
    display: none;
    text-align: center;
    padding: 16px 0;
}

.totp-modal--compact .totp-success {
    padding: 12px 0;
}

.totp-success__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    animation: scaleIn 0.4s ease;
}

.totp-modal--compact .totp-success__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.totp-success__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
}

.totp-modal--compact .totp-success__title {
    font-size: 18px;
}

.totp-success__message {
    margin: 0;
    font-size: 13px;
    color: #aebce0;
    line-height: 1.5;
}

.totp-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 20, 0.5);
}

.totp-modal--compact .totp-modal__footer {
    padding: 14px 20px;
}

.totp-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.totp-btn--primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0.7));
    color: #fff;
}

.totp-btn--primary:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(59, 130, 246, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.totp-btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd8f1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.totp-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
}

.totp-btn--danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(239, 68, 68, 0.7));
    color: #fff;
}

.totp-btn--danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(239, 68, 68, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .totp-modal {
        max-width: 95%;
        border-radius: 16px;
    }

    .totp-modal__header {
        padding: 20px 24px;
        gap: 12px;
    }

    .totp-modal__icon {
        width: 40px;
        height: 40px;
    }

    .totp-modal__title {
        font-size: 18px;
    }

    .totp-modal__body {
        padding: 24px;
    }

    .totp-qr-container {
        padding: 16px;
    }

    .totp-secret-wrapper {
        flex-direction: column;
    }

    .totp-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .totp-code-input {
        font-size: 20px;
        letter-spacing: 6px;
        padding: 16px;
    }

    .totp-modal__footer {
        padding: 16px 24px;
        flex-direction: column-reverse;
    }

    .totp-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .downloads-hero {
        padding-top: 60px;
    }

    .downloads-hero__illustration {
        min-height: 160px;
    }
}